@zyphr-dev/node-sdk 0.1.32 → 0.1.34

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 (45) hide show
  1. package/dist/index.cjs +2245 -117
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +3139 -933
  4. package/dist/index.d.ts +3139 -933
  5. package/dist/index.js +2100 -117
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/.openapi-generator/FILES +30 -0
  9. package/src/client.ts +9 -0
  10. package/src/src/apis/AuthOrganizationsApi.ts +823 -0
  11. package/src/src/apis/AuthUserProfileApi.ts +62 -0
  12. package/src/src/apis/DomainsApi.ts +73 -0
  13. package/src/src/apis/InboundEmailApi.ts +264 -0
  14. package/src/src/apis/MuseApi.ts +531 -0
  15. package/src/src/apis/index.ts +3 -0
  16. package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
  17. package/src/src/models/CreateOrganizationRequest.ts +82 -0
  18. package/src/src/models/InboundAttachmentUrlResponse.ts +88 -0
  19. package/src/src/models/InboundAttachmentUrlResponseData.ts +81 -0
  20. package/src/src/models/InboundEmail.ts +247 -0
  21. package/src/src/models/InboundEmailAttachment.ts +89 -0
  22. package/src/src/models/InboundEmailFrom.ts +73 -0
  23. package/src/src/models/InboundEmailListResponse.ts +88 -0
  24. package/src/src/models/InboundEmailListResponseMeta.ts +89 -0
  25. package/src/src/models/InboundEmailResponse.ts +88 -0
  26. package/src/src/models/LoginRequest.ts +12 -0
  27. package/src/src/models/Organization.ts +137 -0
  28. package/src/src/models/OrganizationListResponse.ts +90 -0
  29. package/src/src/models/OrganizationListResponseMeta.ts +73 -0
  30. package/src/src/models/OrganizationMembersListResponse.ts +90 -0
  31. package/src/src/models/OrganizationMembership.ts +119 -0
  32. package/src/src/models/OrganizationMembershipResponse.ts +90 -0
  33. package/src/src/models/OrganizationMembershipWithUser.ts +135 -0
  34. package/src/src/models/OrganizationResponse.ts +90 -0
  35. package/src/src/models/RegisterRequest.ts +23 -0
  36. package/src/src/models/SetDomainInboundRequest.ts +65 -0
  37. package/src/src/models/SwitchOrganizationRequest.ts +75 -0
  38. package/src/src/models/SwitchOrganizationResponse.ts +90 -0
  39. package/src/src/models/SwitchOrganizationResponseData.ts +99 -0
  40. package/src/src/models/SwitchOrganizationResponseDataTokens.ts +103 -0
  41. package/src/src/models/SwitchOrganizationResponseDataUser.ts +73 -0
  42. package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +66 -0
  43. package/src/src/models/UpdateOrganizationRequest.ts +81 -0
  44. package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +105 -0
  45. package/src/src/models/index.ts +27 -0
package/dist/index.js CHANGED
@@ -502,6 +502,36 @@ function AddDomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
502
502
  };
503
503
  }
504
504
 
505
+ // src/src/models/AddOrganizationMemberRequest.ts
506
+ function instanceOfAddOrganizationMemberRequest(value) {
507
+ if (!("userId" in value) || value["userId"] === void 0) return false;
508
+ return true;
509
+ }
510
+ function AddOrganizationMemberRequestFromJSON(json) {
511
+ return AddOrganizationMemberRequestFromJSONTyped(json, false);
512
+ }
513
+ function AddOrganizationMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
514
+ if (json == null) {
515
+ return json;
516
+ }
517
+ return {
518
+ "userId": json["user_id"],
519
+ "role": json["role"] == null ? void 0 : json["role"]
520
+ };
521
+ }
522
+ function AddOrganizationMemberRequestToJSON(json) {
523
+ return AddOrganizationMemberRequestToJSONTyped(json, false);
524
+ }
525
+ function AddOrganizationMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
526
+ if (value == null) {
527
+ return value;
528
+ }
529
+ return {
530
+ "user_id": value["userId"],
531
+ "role": value["role"]
532
+ };
533
+ }
534
+
505
535
  // src/src/models/AddTopicSubscribersRequest.ts
506
536
  function instanceOfAddTopicSubscribersRequest(value) {
507
537
  if (!("subscriberIds" in value) || value["subscriberIds"] === void 0) return false;
@@ -2484,6 +2514,38 @@ function CreateCategoryRequestToJSONTyped(value, ignoreDiscriminator = false) {
2484
2514
  };
2485
2515
  }
2486
2516
 
2517
+ // src/src/models/CreateOrganizationRequest.ts
2518
+ function instanceOfCreateOrganizationRequest(value) {
2519
+ if (!("name" in value) || value["name"] === void 0) return false;
2520
+ return true;
2521
+ }
2522
+ function CreateOrganizationRequestFromJSON(json) {
2523
+ return CreateOrganizationRequestFromJSONTyped(json, false);
2524
+ }
2525
+ function CreateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
2526
+ if (json == null) {
2527
+ return json;
2528
+ }
2529
+ return {
2530
+ "name": json["name"],
2531
+ "slug": json["slug"] == null ? void 0 : json["slug"],
2532
+ "metadata": json["metadata"] == null ? void 0 : json["metadata"]
2533
+ };
2534
+ }
2535
+ function CreateOrganizationRequestToJSON(json) {
2536
+ return CreateOrganizationRequestToJSONTyped(json, false);
2537
+ }
2538
+ function CreateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
2539
+ if (value == null) {
2540
+ return value;
2541
+ }
2542
+ return {
2543
+ "name": value["name"],
2544
+ "slug": value["slug"],
2545
+ "metadata": value["metadata"]
2546
+ };
2547
+ }
2548
+
2487
2549
  // src/src/models/CreateSubscriberRequest.ts
2488
2550
  function instanceOfCreateSubscriberRequest(value) {
2489
2551
  if (!("externalId" in value) || value["externalId"] === void 0) return false;
@@ -4640,6 +4702,301 @@ function InAppNotificationToJSONTyped(value, ignoreDiscriminator = false) {
4640
4702
  };
4641
4703
  }
4642
4704
 
4705
+ // src/src/models/InboundAttachmentUrlResponseData.ts
4706
+ function instanceOfInboundAttachmentUrlResponseData(value) {
4707
+ return true;
4708
+ }
4709
+ function InboundAttachmentUrlResponseDataFromJSON(json) {
4710
+ return InboundAttachmentUrlResponseDataFromJSONTyped(json, false);
4711
+ }
4712
+ function InboundAttachmentUrlResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4713
+ if (json == null) {
4714
+ return json;
4715
+ }
4716
+ return {
4717
+ "downloadUrl": json["download_url"] == null ? void 0 : json["download_url"],
4718
+ "filename": json["filename"] == null ? void 0 : json["filename"],
4719
+ "contentType": json["content_type"] == null ? void 0 : json["content_type"]
4720
+ };
4721
+ }
4722
+ function InboundAttachmentUrlResponseDataToJSON(json) {
4723
+ return InboundAttachmentUrlResponseDataToJSONTyped(json, false);
4724
+ }
4725
+ function InboundAttachmentUrlResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
4726
+ if (value == null) {
4727
+ return value;
4728
+ }
4729
+ return {
4730
+ "download_url": value["downloadUrl"],
4731
+ "filename": value["filename"],
4732
+ "content_type": value["contentType"]
4733
+ };
4734
+ }
4735
+
4736
+ // src/src/models/InboundAttachmentUrlResponse.ts
4737
+ function instanceOfInboundAttachmentUrlResponse(value) {
4738
+ return true;
4739
+ }
4740
+ function InboundAttachmentUrlResponseFromJSON(json) {
4741
+ return InboundAttachmentUrlResponseFromJSONTyped(json, false);
4742
+ }
4743
+ function InboundAttachmentUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
4744
+ if (json == null) {
4745
+ return json;
4746
+ }
4747
+ return {
4748
+ "data": json["data"] == null ? void 0 : InboundAttachmentUrlResponseDataFromJSON(json["data"]),
4749
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
4750
+ };
4751
+ }
4752
+ function InboundAttachmentUrlResponseToJSON(json) {
4753
+ return InboundAttachmentUrlResponseToJSONTyped(json, false);
4754
+ }
4755
+ function InboundAttachmentUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
4756
+ if (value == null) {
4757
+ return value;
4758
+ }
4759
+ return {
4760
+ "data": InboundAttachmentUrlResponseDataToJSON(value["data"]),
4761
+ "meta": RequestMetaToJSON(value["meta"])
4762
+ };
4763
+ }
4764
+
4765
+ // src/src/models/InboundEmailFrom.ts
4766
+ function instanceOfInboundEmailFrom(value) {
4767
+ return true;
4768
+ }
4769
+ function InboundEmailFromFromJSON(json) {
4770
+ return InboundEmailFromFromJSONTyped(json, false);
4771
+ }
4772
+ function InboundEmailFromFromJSONTyped(json, ignoreDiscriminator) {
4773
+ if (json == null) {
4774
+ return json;
4775
+ }
4776
+ return {
4777
+ "email": json["email"] == null ? void 0 : json["email"],
4778
+ "name": json["name"] == null ? void 0 : json["name"]
4779
+ };
4780
+ }
4781
+ function InboundEmailFromToJSON(json) {
4782
+ return InboundEmailFromToJSONTyped(json, false);
4783
+ }
4784
+ function InboundEmailFromToJSONTyped(value, ignoreDiscriminator = false) {
4785
+ if (value == null) {
4786
+ return value;
4787
+ }
4788
+ return {
4789
+ "email": value["email"],
4790
+ "name": value["name"]
4791
+ };
4792
+ }
4793
+
4794
+ // src/src/models/InboundEmailAttachment.ts
4795
+ function instanceOfInboundEmailAttachment(value) {
4796
+ return true;
4797
+ }
4798
+ function InboundEmailAttachmentFromJSON(json) {
4799
+ return InboundEmailAttachmentFromJSONTyped(json, false);
4800
+ }
4801
+ function InboundEmailAttachmentFromJSONTyped(json, ignoreDiscriminator) {
4802
+ if (json == null) {
4803
+ return json;
4804
+ }
4805
+ return {
4806
+ "id": json["id"] == null ? void 0 : json["id"],
4807
+ "filename": json["filename"] == null ? void 0 : json["filename"],
4808
+ "contentType": json["content_type"] == null ? void 0 : json["content_type"],
4809
+ "size": json["size"] == null ? void 0 : json["size"]
4810
+ };
4811
+ }
4812
+ function InboundEmailAttachmentToJSON(json) {
4813
+ return InboundEmailAttachmentToJSONTyped(json, false);
4814
+ }
4815
+ function InboundEmailAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
4816
+ if (value == null) {
4817
+ return value;
4818
+ }
4819
+ return {
4820
+ "id": value["id"],
4821
+ "filename": value["filename"],
4822
+ "content_type": value["contentType"],
4823
+ "size": value["size"]
4824
+ };
4825
+ }
4826
+
4827
+ // src/src/models/InboundEmail.ts
4828
+ var InboundEmailSpfVerdictEnum = {
4829
+ PASS: "PASS",
4830
+ FAIL: "FAIL",
4831
+ GRAY: "GRAY",
4832
+ PROCESSING_FAILED: "PROCESSING_FAILED"
4833
+ };
4834
+ var InboundEmailDkimVerdictEnum = {
4835
+ PASS: "PASS",
4836
+ FAIL: "FAIL",
4837
+ GRAY: "GRAY",
4838
+ PROCESSING_FAILED: "PROCESSING_FAILED"
4839
+ };
4840
+ var InboundEmailDmarcVerdictEnum = {
4841
+ PASS: "PASS",
4842
+ FAIL: "FAIL",
4843
+ GRAY: "GRAY",
4844
+ PROCESSING_FAILED: "PROCESSING_FAILED"
4845
+ };
4846
+ var InboundEmailStatusEnum = {
4847
+ RECEIVED: "received",
4848
+ PROCESSED: "processed",
4849
+ QUARANTINED: "quarantined",
4850
+ DROPPED: "dropped",
4851
+ FAILED: "failed"
4852
+ };
4853
+ function instanceOfInboundEmail(value) {
4854
+ return true;
4855
+ }
4856
+ function InboundEmailFromJSON(json) {
4857
+ return InboundEmailFromJSONTyped(json, false);
4858
+ }
4859
+ function InboundEmailFromJSONTyped(json, ignoreDiscriminator) {
4860
+ if (json == null) {
4861
+ return json;
4862
+ }
4863
+ return {
4864
+ "id": json["id"] == null ? void 0 : json["id"],
4865
+ "toEmail": json["to_email"] == null ? void 0 : json["to_email"],
4866
+ "from": json["from"] == null ? void 0 : InboundEmailFromFromJSON(json["from"]),
4867
+ "cc": json["cc"] == null ? void 0 : json["cc"],
4868
+ "subject": json["subject"] == null ? void 0 : json["subject"],
4869
+ "textBody": json["text_body"] == null ? void 0 : json["text_body"],
4870
+ "htmlBody": json["html_body"] == null ? void 0 : json["html_body"],
4871
+ "inReplyTo": json["in_reply_to"] == null ? void 0 : json["in_reply_to"],
4872
+ "repliedToMessageId": json["replied_to_message_id"] == null ? void 0 : json["replied_to_message_id"],
4873
+ "verified": json["verified"] == null ? void 0 : json["verified"],
4874
+ "spfVerdict": json["spf_verdict"] == null ? void 0 : json["spf_verdict"],
4875
+ "dkimVerdict": json["dkim_verdict"] == null ? void 0 : json["dkim_verdict"],
4876
+ "dmarcVerdict": json["dmarc_verdict"] == null ? void 0 : json["dmarc_verdict"],
4877
+ "status": json["status"] == null ? void 0 : json["status"],
4878
+ "attachments": json["attachments"] == null ? void 0 : json["attachments"].map(InboundEmailAttachmentFromJSON),
4879
+ "createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
4880
+ };
4881
+ }
4882
+ function InboundEmailToJSON(json) {
4883
+ return InboundEmailToJSONTyped(json, false);
4884
+ }
4885
+ function InboundEmailToJSONTyped(value, ignoreDiscriminator = false) {
4886
+ if (value == null) {
4887
+ return value;
4888
+ }
4889
+ return {
4890
+ "id": value["id"],
4891
+ "to_email": value["toEmail"],
4892
+ "from": InboundEmailFromToJSON(value["from"]),
4893
+ "cc": value["cc"],
4894
+ "subject": value["subject"],
4895
+ "text_body": value["textBody"],
4896
+ "html_body": value["htmlBody"],
4897
+ "in_reply_to": value["inReplyTo"],
4898
+ "replied_to_message_id": value["repliedToMessageId"],
4899
+ "verified": value["verified"],
4900
+ "spf_verdict": value["spfVerdict"],
4901
+ "dkim_verdict": value["dkimVerdict"],
4902
+ "dmarc_verdict": value["dmarcVerdict"],
4903
+ "status": value["status"],
4904
+ "attachments": value["attachments"] == null ? void 0 : value["attachments"].map(InboundEmailAttachmentToJSON),
4905
+ "created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
4906
+ };
4907
+ }
4908
+
4909
+ // src/src/models/InboundEmailListResponseMeta.ts
4910
+ function instanceOfInboundEmailListResponseMeta(value) {
4911
+ return true;
4912
+ }
4913
+ function InboundEmailListResponseMetaFromJSON(json) {
4914
+ return InboundEmailListResponseMetaFromJSONTyped(json, false);
4915
+ }
4916
+ function InboundEmailListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
4917
+ if (json == null) {
4918
+ return json;
4919
+ }
4920
+ return {
4921
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"],
4922
+ "total": json["total"] == null ? void 0 : json["total"],
4923
+ "limit": json["limit"] == null ? void 0 : json["limit"],
4924
+ "offset": json["offset"] == null ? void 0 : json["offset"]
4925
+ };
4926
+ }
4927
+ function InboundEmailListResponseMetaToJSON(json) {
4928
+ return InboundEmailListResponseMetaToJSONTyped(json, false);
4929
+ }
4930
+ function InboundEmailListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
4931
+ if (value == null) {
4932
+ return value;
4933
+ }
4934
+ return {
4935
+ "request_id": value["requestId"],
4936
+ "total": value["total"],
4937
+ "limit": value["limit"],
4938
+ "offset": value["offset"]
4939
+ };
4940
+ }
4941
+
4942
+ // src/src/models/InboundEmailListResponse.ts
4943
+ function instanceOfInboundEmailListResponse(value) {
4944
+ return true;
4945
+ }
4946
+ function InboundEmailListResponseFromJSON(json) {
4947
+ return InboundEmailListResponseFromJSONTyped(json, false);
4948
+ }
4949
+ function InboundEmailListResponseFromJSONTyped(json, ignoreDiscriminator) {
4950
+ if (json == null) {
4951
+ return json;
4952
+ }
4953
+ return {
4954
+ "data": json["data"] == null ? void 0 : json["data"].map(InboundEmailFromJSON),
4955
+ "meta": json["meta"] == null ? void 0 : InboundEmailListResponseMetaFromJSON(json["meta"])
4956
+ };
4957
+ }
4958
+ function InboundEmailListResponseToJSON(json) {
4959
+ return InboundEmailListResponseToJSONTyped(json, false);
4960
+ }
4961
+ function InboundEmailListResponseToJSONTyped(value, ignoreDiscriminator = false) {
4962
+ if (value == null) {
4963
+ return value;
4964
+ }
4965
+ return {
4966
+ "data": value["data"] == null ? void 0 : value["data"].map(InboundEmailToJSON),
4967
+ "meta": InboundEmailListResponseMetaToJSON(value["meta"])
4968
+ };
4969
+ }
4970
+
4971
+ // src/src/models/InboundEmailResponse.ts
4972
+ function instanceOfInboundEmailResponse(value) {
4973
+ return true;
4974
+ }
4975
+ function InboundEmailResponseFromJSON(json) {
4976
+ return InboundEmailResponseFromJSONTyped(json, false);
4977
+ }
4978
+ function InboundEmailResponseFromJSONTyped(json, ignoreDiscriminator) {
4979
+ if (json == null) {
4980
+ return json;
4981
+ }
4982
+ return {
4983
+ "data": json["data"] == null ? void 0 : InboundEmailFromJSON(json["data"]),
4984
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
4985
+ };
4986
+ }
4987
+ function InboundEmailResponseToJSON(json) {
4988
+ return InboundEmailResponseToJSONTyped(json, false);
4989
+ }
4990
+ function InboundEmailResponseToJSONTyped(value, ignoreDiscriminator = false) {
4991
+ if (value == null) {
4992
+ return value;
4993
+ }
4994
+ return {
4995
+ "data": InboundEmailToJSON(value["data"]),
4996
+ "meta": RequestMetaToJSON(value["meta"])
4997
+ };
4998
+ }
4999
+
4643
5000
  // src/src/models/InboxListMeta.ts
4644
5001
  function instanceOfInboxListMeta(value) {
4645
5002
  return true;
@@ -4914,7 +5271,8 @@ function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
4914
5271
  return {
4915
5272
  "email": json["email"],
4916
5273
  "password": json["password"],
4917
- "customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"]
5274
+ "customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
5275
+ "organizationId": json["organization_id"] == null ? void 0 : json["organization_id"]
4918
5276
  };
4919
5277
  }
4920
5278
  function LoginRequestToJSON(json) {
@@ -4927,7 +5285,8 @@ function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
4927
5285
  return {
4928
5286
  "email": value["email"],
4929
5287
  "password": value["password"],
4930
- "custom_claims": value["customClaims"]
5288
+ "custom_claims": value["customClaims"],
5289
+ "organization_id": value["organizationId"]
4931
5290
  };
4932
5291
  }
4933
5292
 
@@ -6298,44 +6657,342 @@ function OAuthTokensResponseToJSONTyped(value, ignoreDiscriminator = false) {
6298
6657
  };
6299
6658
  }
6300
6659
 
6301
- // src/src/models/PasswordRequirements.ts
6302
- function instanceOfPasswordRequirements(value) {
6660
+ // src/src/models/Organization.ts
6661
+ function instanceOfOrganization(value) {
6662
+ if (!("id" in value) || value["id"] === void 0) return false;
6663
+ if (!("applicationId" in value) || value["applicationId"] === void 0) return false;
6664
+ if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
6665
+ if (!("name" in value) || value["name"] === void 0) return false;
6666
+ if (!("metadata" in value) || value["metadata"] === void 0) return false;
6667
+ if (!("isDefault" in value) || value["isDefault"] === void 0) return false;
6668
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
6669
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
6303
6670
  return true;
6304
6671
  }
6305
- function PasswordRequirementsFromJSON(json) {
6306
- return PasswordRequirementsFromJSONTyped(json, false);
6672
+ function OrganizationFromJSON(json) {
6673
+ return OrganizationFromJSONTyped(json, false);
6307
6674
  }
6308
- function PasswordRequirementsFromJSONTyped(json, ignoreDiscriminator) {
6675
+ function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
6309
6676
  if (json == null) {
6310
6677
  return json;
6311
6678
  }
6312
6679
  return {
6313
- "minLength": json["min_length"] == null ? void 0 : json["min_length"],
6314
- "maxLength": json["max_length"] == null ? void 0 : json["max_length"],
6315
- "requireUppercase": json["require_uppercase"] == null ? void 0 : json["require_uppercase"],
6316
- "requireLowercase": json["require_lowercase"] == null ? void 0 : json["require_lowercase"],
6317
- "requireNumbers": json["require_numbers"] == null ? void 0 : json["require_numbers"],
6318
- "requireSpecial": json["require_special"] == null ? void 0 : json["require_special"]
6680
+ "id": json["id"],
6681
+ "applicationId": json["application_id"],
6682
+ "environmentId": json["environment_id"],
6683
+ "name": json["name"],
6684
+ "slug": json["slug"] == null ? void 0 : json["slug"],
6685
+ "metadata": json["metadata"],
6686
+ "isDefault": json["is_default"],
6687
+ "createdAt": new Date(json["created_at"]),
6688
+ "updatedAt": new Date(json["updated_at"])
6319
6689
  };
6320
6690
  }
6321
- function PasswordRequirementsToJSON(json) {
6322
- return PasswordRequirementsToJSONTyped(json, false);
6691
+ function OrganizationToJSON(json) {
6692
+ return OrganizationToJSONTyped(json, false);
6323
6693
  }
6324
- function PasswordRequirementsToJSONTyped(value, ignoreDiscriminator = false) {
6694
+ function OrganizationToJSONTyped(value, ignoreDiscriminator = false) {
6325
6695
  if (value == null) {
6326
6696
  return value;
6327
6697
  }
6328
6698
  return {
6329
- "min_length": value["minLength"],
6330
- "max_length": value["maxLength"],
6331
- "require_uppercase": value["requireUppercase"],
6332
- "require_lowercase": value["requireLowercase"],
6333
- "require_numbers": value["requireNumbers"],
6334
- "require_special": value["requireSpecial"]
6699
+ "id": value["id"],
6700
+ "application_id": value["applicationId"],
6701
+ "environment_id": value["environmentId"],
6702
+ "name": value["name"],
6703
+ "slug": value["slug"],
6704
+ "metadata": value["metadata"],
6705
+ "is_default": value["isDefault"],
6706
+ "created_at": value["createdAt"].toISOString(),
6707
+ "updated_at": value["updatedAt"].toISOString()
6335
6708
  };
6336
6709
  }
6337
6710
 
6338
- // src/src/models/PasswordRequirementsResponseData.ts
6711
+ // src/src/models/OrganizationListResponseMeta.ts
6712
+ function instanceOfOrganizationListResponseMeta(value) {
6713
+ return true;
6714
+ }
6715
+ function OrganizationListResponseMetaFromJSON(json) {
6716
+ return OrganizationListResponseMetaFromJSONTyped(json, false);
6717
+ }
6718
+ function OrganizationListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
6719
+ if (json == null) {
6720
+ return json;
6721
+ }
6722
+ return {
6723
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"],
6724
+ "nextCursor": json["next_cursor"] == null ? void 0 : json["next_cursor"]
6725
+ };
6726
+ }
6727
+ function OrganizationListResponseMetaToJSON(json) {
6728
+ return OrganizationListResponseMetaToJSONTyped(json, false);
6729
+ }
6730
+ function OrganizationListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
6731
+ if (value == null) {
6732
+ return value;
6733
+ }
6734
+ return {
6735
+ "request_id": value["requestId"],
6736
+ "next_cursor": value["nextCursor"]
6737
+ };
6738
+ }
6739
+
6740
+ // src/src/models/OrganizationListResponse.ts
6741
+ function instanceOfOrganizationListResponse(value) {
6742
+ if (!("data" in value) || value["data"] === void 0) return false;
6743
+ if (!("meta" in value) || value["meta"] === void 0) return false;
6744
+ return true;
6745
+ }
6746
+ function OrganizationListResponseFromJSON(json) {
6747
+ return OrganizationListResponseFromJSONTyped(json, false);
6748
+ }
6749
+ function OrganizationListResponseFromJSONTyped(json, ignoreDiscriminator) {
6750
+ if (json == null) {
6751
+ return json;
6752
+ }
6753
+ return {
6754
+ "data": json["data"].map(OrganizationFromJSON),
6755
+ "meta": OrganizationListResponseMetaFromJSON(json["meta"])
6756
+ };
6757
+ }
6758
+ function OrganizationListResponseToJSON(json) {
6759
+ return OrganizationListResponseToJSONTyped(json, false);
6760
+ }
6761
+ function OrganizationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
6762
+ if (value == null) {
6763
+ return value;
6764
+ }
6765
+ return {
6766
+ "data": value["data"].map(OrganizationToJSON),
6767
+ "meta": OrganizationListResponseMetaToJSON(value["meta"])
6768
+ };
6769
+ }
6770
+
6771
+ // src/src/models/OrganizationMembershipWithUser.ts
6772
+ function instanceOfOrganizationMembershipWithUser(value) {
6773
+ if (!("id" in value) || value["id"] === void 0) return false;
6774
+ if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
6775
+ if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
6776
+ if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
6777
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
6778
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
6779
+ return true;
6780
+ }
6781
+ function OrganizationMembershipWithUserFromJSON(json) {
6782
+ return OrganizationMembershipWithUserFromJSONTyped(json, false);
6783
+ }
6784
+ function OrganizationMembershipWithUserFromJSONTyped(json, ignoreDiscriminator) {
6785
+ if (json == null) {
6786
+ return json;
6787
+ }
6788
+ return {
6789
+ "id": json["id"],
6790
+ "organizationId": json["organization_id"],
6791
+ "endUserId": json["end_user_id"],
6792
+ "environmentId": json["environment_id"],
6793
+ "role": json["role"] == null ? void 0 : json["role"],
6794
+ "createdAt": new Date(json["created_at"]),
6795
+ "updatedAt": new Date(json["updated_at"]),
6796
+ "email": json["email"] == null ? void 0 : json["email"],
6797
+ "name": json["name"] == null ? void 0 : json["name"]
6798
+ };
6799
+ }
6800
+ function OrganizationMembershipWithUserToJSON(json) {
6801
+ return OrganizationMembershipWithUserToJSONTyped(json, false);
6802
+ }
6803
+ function OrganizationMembershipWithUserToJSONTyped(value, ignoreDiscriminator = false) {
6804
+ if (value == null) {
6805
+ return value;
6806
+ }
6807
+ return {
6808
+ "id": value["id"],
6809
+ "organization_id": value["organizationId"],
6810
+ "end_user_id": value["endUserId"],
6811
+ "environment_id": value["environmentId"],
6812
+ "role": value["role"],
6813
+ "created_at": value["createdAt"].toISOString(),
6814
+ "updated_at": value["updatedAt"].toISOString(),
6815
+ "email": value["email"],
6816
+ "name": value["name"]
6817
+ };
6818
+ }
6819
+
6820
+ // src/src/models/OrganizationMembersListResponse.ts
6821
+ function instanceOfOrganizationMembersListResponse(value) {
6822
+ if (!("data" in value) || value["data"] === void 0) return false;
6823
+ if (!("meta" in value) || value["meta"] === void 0) return false;
6824
+ return true;
6825
+ }
6826
+ function OrganizationMembersListResponseFromJSON(json) {
6827
+ return OrganizationMembersListResponseFromJSONTyped(json, false);
6828
+ }
6829
+ function OrganizationMembersListResponseFromJSONTyped(json, ignoreDiscriminator) {
6830
+ if (json == null) {
6831
+ return json;
6832
+ }
6833
+ return {
6834
+ "data": json["data"].map(OrganizationMembershipWithUserFromJSON),
6835
+ "meta": OrganizationListResponseMetaFromJSON(json["meta"])
6836
+ };
6837
+ }
6838
+ function OrganizationMembersListResponseToJSON(json) {
6839
+ return OrganizationMembersListResponseToJSONTyped(json, false);
6840
+ }
6841
+ function OrganizationMembersListResponseToJSONTyped(value, ignoreDiscriminator = false) {
6842
+ if (value == null) {
6843
+ return value;
6844
+ }
6845
+ return {
6846
+ "data": value["data"].map(OrganizationMembershipWithUserToJSON),
6847
+ "meta": OrganizationListResponseMetaToJSON(value["meta"])
6848
+ };
6849
+ }
6850
+
6851
+ // src/src/models/OrganizationMembership.ts
6852
+ function instanceOfOrganizationMembership(value) {
6853
+ if (!("id" in value) || value["id"] === void 0) return false;
6854
+ if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
6855
+ if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
6856
+ if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
6857
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
6858
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
6859
+ return true;
6860
+ }
6861
+ function OrganizationMembershipFromJSON(json) {
6862
+ return OrganizationMembershipFromJSONTyped(json, false);
6863
+ }
6864
+ function OrganizationMembershipFromJSONTyped(json, ignoreDiscriminator) {
6865
+ if (json == null) {
6866
+ return json;
6867
+ }
6868
+ return {
6869
+ "id": json["id"],
6870
+ "organizationId": json["organization_id"],
6871
+ "endUserId": json["end_user_id"],
6872
+ "environmentId": json["environment_id"],
6873
+ "role": json["role"] == null ? void 0 : json["role"],
6874
+ "createdAt": new Date(json["created_at"]),
6875
+ "updatedAt": new Date(json["updated_at"])
6876
+ };
6877
+ }
6878
+ function OrganizationMembershipToJSON(json) {
6879
+ return OrganizationMembershipToJSONTyped(json, false);
6880
+ }
6881
+ function OrganizationMembershipToJSONTyped(value, ignoreDiscriminator = false) {
6882
+ if (value == null) {
6883
+ return value;
6884
+ }
6885
+ return {
6886
+ "id": value["id"],
6887
+ "organization_id": value["organizationId"],
6888
+ "end_user_id": value["endUserId"],
6889
+ "environment_id": value["environmentId"],
6890
+ "role": value["role"],
6891
+ "created_at": value["createdAt"].toISOString(),
6892
+ "updated_at": value["updatedAt"].toISOString()
6893
+ };
6894
+ }
6895
+
6896
+ // src/src/models/OrganizationMembershipResponse.ts
6897
+ function instanceOfOrganizationMembershipResponse(value) {
6898
+ if (!("data" in value) || value["data"] === void 0) return false;
6899
+ if (!("meta" in value) || value["meta"] === void 0) return false;
6900
+ return true;
6901
+ }
6902
+ function OrganizationMembershipResponseFromJSON(json) {
6903
+ return OrganizationMembershipResponseFromJSONTyped(json, false);
6904
+ }
6905
+ function OrganizationMembershipResponseFromJSONTyped(json, ignoreDiscriminator) {
6906
+ if (json == null) {
6907
+ return json;
6908
+ }
6909
+ return {
6910
+ "data": OrganizationMembershipFromJSON(json["data"]),
6911
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
6912
+ };
6913
+ }
6914
+ function OrganizationMembershipResponseToJSON(json) {
6915
+ return OrganizationMembershipResponseToJSONTyped(json, false);
6916
+ }
6917
+ function OrganizationMembershipResponseToJSONTyped(value, ignoreDiscriminator = false) {
6918
+ if (value == null) {
6919
+ return value;
6920
+ }
6921
+ return {
6922
+ "data": OrganizationMembershipToJSON(value["data"]),
6923
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
6924
+ };
6925
+ }
6926
+
6927
+ // src/src/models/OrganizationResponse.ts
6928
+ function instanceOfOrganizationResponse(value) {
6929
+ if (!("data" in value) || value["data"] === void 0) return false;
6930
+ if (!("meta" in value) || value["meta"] === void 0) return false;
6931
+ return true;
6932
+ }
6933
+ function OrganizationResponseFromJSON(json) {
6934
+ return OrganizationResponseFromJSONTyped(json, false);
6935
+ }
6936
+ function OrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
6937
+ if (json == null) {
6938
+ return json;
6939
+ }
6940
+ return {
6941
+ "data": OrganizationFromJSON(json["data"]),
6942
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
6943
+ };
6944
+ }
6945
+ function OrganizationResponseToJSON(json) {
6946
+ return OrganizationResponseToJSONTyped(json, false);
6947
+ }
6948
+ function OrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
6949
+ if (value == null) {
6950
+ return value;
6951
+ }
6952
+ return {
6953
+ "data": OrganizationToJSON(value["data"]),
6954
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
6955
+ };
6956
+ }
6957
+
6958
+ // src/src/models/PasswordRequirements.ts
6959
+ function instanceOfPasswordRequirements(value) {
6960
+ return true;
6961
+ }
6962
+ function PasswordRequirementsFromJSON(json) {
6963
+ return PasswordRequirementsFromJSONTyped(json, false);
6964
+ }
6965
+ function PasswordRequirementsFromJSONTyped(json, ignoreDiscriminator) {
6966
+ if (json == null) {
6967
+ return json;
6968
+ }
6969
+ return {
6970
+ "minLength": json["min_length"] == null ? void 0 : json["min_length"],
6971
+ "maxLength": json["max_length"] == null ? void 0 : json["max_length"],
6972
+ "requireUppercase": json["require_uppercase"] == null ? void 0 : json["require_uppercase"],
6973
+ "requireLowercase": json["require_lowercase"] == null ? void 0 : json["require_lowercase"],
6974
+ "requireNumbers": json["require_numbers"] == null ? void 0 : json["require_numbers"],
6975
+ "requireSpecial": json["require_special"] == null ? void 0 : json["require_special"]
6976
+ };
6977
+ }
6978
+ function PasswordRequirementsToJSON(json) {
6979
+ return PasswordRequirementsToJSONTyped(json, false);
6980
+ }
6981
+ function PasswordRequirementsToJSONTyped(value, ignoreDiscriminator = false) {
6982
+ if (value == null) {
6983
+ return value;
6984
+ }
6985
+ return {
6986
+ "min_length": value["minLength"],
6987
+ "max_length": value["maxLength"],
6988
+ "require_uppercase": value["requireUppercase"],
6989
+ "require_lowercase": value["requireLowercase"],
6990
+ "require_numbers": value["requireNumbers"],
6991
+ "require_special": value["requireSpecial"]
6992
+ };
6993
+ }
6994
+
6995
+ // src/src/models/PasswordRequirementsResponseData.ts
6339
6996
  function instanceOfPasswordRequirementsResponseData(value) {
6340
6997
  return true;
6341
6998
  }
@@ -7545,7 +8202,9 @@ function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
7545
8202
  "email": json["email"],
7546
8203
  "password": json["password"],
7547
8204
  "name": json["name"] == null ? void 0 : json["name"],
7548
- "metadata": json["metadata"] == null ? void 0 : json["metadata"]
8205
+ "metadata": json["metadata"] == null ? void 0 : json["metadata"],
8206
+ "organizationId": json["organization_id"] == null ? void 0 : json["organization_id"],
8207
+ "organizationRole": json["organization_role"] == null ? void 0 : json["organization_role"]
7549
8208
  };
7550
8209
  }
7551
8210
  function RegisterRequestToJSON(json) {
@@ -7559,7 +8218,9 @@ function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
7559
8218
  "email": value["email"],
7560
8219
  "password": value["password"],
7561
8220
  "name": value["name"],
7562
- "metadata": value["metadata"]
8221
+ "metadata": value["metadata"],
8222
+ "organization_id": value["organizationId"],
8223
+ "organization_role": value["organizationRole"]
7563
8224
  };
7564
8225
  }
7565
8226
 
@@ -9308,6 +9969,33 @@ function SessionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
9308
9969
  };
9309
9970
  }
9310
9971
 
9972
+ // src/src/models/SetDomainInboundRequest.ts
9973
+ function instanceOfSetDomainInboundRequest(value) {
9974
+ return true;
9975
+ }
9976
+ function SetDomainInboundRequestFromJSON(json) {
9977
+ return SetDomainInboundRequestFromJSONTyped(json, false);
9978
+ }
9979
+ function SetDomainInboundRequestFromJSONTyped(json, ignoreDiscriminator) {
9980
+ if (json == null) {
9981
+ return json;
9982
+ }
9983
+ return {
9984
+ "enabled": json["enabled"] == null ? void 0 : json["enabled"]
9985
+ };
9986
+ }
9987
+ function SetDomainInboundRequestToJSON(json) {
9988
+ return SetDomainInboundRequestToJSONTyped(json, false);
9989
+ }
9990
+ function SetDomainInboundRequestToJSONTyped(value, ignoreDiscriminator = false) {
9991
+ if (value == null) {
9992
+ return value;
9993
+ }
9994
+ return {
9995
+ "enabled": value["enabled"]
9996
+ };
9997
+ }
9998
+
9311
9999
  // src/src/models/SetPreferencesRequestPreferencesInner.ts
9312
10000
  function instanceOfSetPreferencesRequestPreferencesInner(value) {
9313
10001
  return true;
@@ -10046,76 +10734,241 @@ function SuccessResultToJSONTyped(value, ignoreDiscriminator = false) {
10046
10734
  };
10047
10735
  }
10048
10736
 
10049
- // src/src/models/Template.ts
10050
- function instanceOfTemplate(value) {
10737
+ // src/src/models/SwitchOrganizationRequest.ts
10738
+ function instanceOfSwitchOrganizationRequest(value) {
10739
+ if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
10740
+ if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
10051
10741
  return true;
10052
10742
  }
10053
- function TemplateFromJSON(json) {
10054
- return TemplateFromJSONTyped(json, false);
10743
+ function SwitchOrganizationRequestFromJSON(json) {
10744
+ return SwitchOrganizationRequestFromJSONTyped(json, false);
10055
10745
  }
10056
- function TemplateFromJSONTyped(json, ignoreDiscriminator) {
10746
+ function SwitchOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
10057
10747
  if (json == null) {
10058
10748
  return json;
10059
10749
  }
10060
10750
  return {
10061
- "id": json["id"] == null ? void 0 : json["id"],
10062
- "name": json["name"] == null ? void 0 : json["name"],
10063
- "description": json["description"] == null ? void 0 : json["description"],
10064
- "subject": json["subject"] == null ? void 0 : json["subject"],
10065
- "html": json["html"] == null ? void 0 : json["html"],
10066
- "text": json["text"] == null ? void 0 : json["text"],
10067
- "variables": json["variables"] == null ? void 0 : json["variables"],
10068
- "version": json["version"] == null ? void 0 : json["version"],
10069
- "createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
10070
- "updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
10751
+ "refreshToken": json["refresh_token"],
10752
+ "organizationId": json["organization_id"]
10071
10753
  };
10072
10754
  }
10073
- function TemplateToJSON(json) {
10074
- return TemplateToJSONTyped(json, false);
10755
+ function SwitchOrganizationRequestToJSON(json) {
10756
+ return SwitchOrganizationRequestToJSONTyped(json, false);
10075
10757
  }
10076
- function TemplateToJSONTyped(value, ignoreDiscriminator = false) {
10758
+ function SwitchOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
10077
10759
  if (value == null) {
10078
10760
  return value;
10079
10761
  }
10080
10762
  return {
10081
- "id": value["id"],
10082
- "name": value["name"],
10083
- "description": value["description"],
10084
- "subject": value["subject"],
10085
- "html": value["html"],
10086
- "text": value["text"],
10087
- "version": value["version"],
10088
- "created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
10089
- "updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
10763
+ "refresh_token": value["refreshToken"],
10764
+ "organization_id": value["organizationId"]
10090
10765
  };
10091
10766
  }
10092
10767
 
10093
- // src/src/models/TemplateListResponse.ts
10094
- function instanceOfTemplateListResponse(value) {
10768
+ // src/src/models/SwitchOrganizationResponseDataUser.ts
10769
+ function instanceOfSwitchOrganizationResponseDataUser(value) {
10095
10770
  return true;
10096
10771
  }
10097
- function TemplateListResponseFromJSON(json) {
10098
- return TemplateListResponseFromJSONTyped(json, false);
10772
+ function SwitchOrganizationResponseDataUserFromJSON(json) {
10773
+ return SwitchOrganizationResponseDataUserFromJSONTyped(json, false);
10099
10774
  }
10100
- function TemplateListResponseFromJSONTyped(json, ignoreDiscriminator) {
10775
+ function SwitchOrganizationResponseDataUserFromJSONTyped(json, ignoreDiscriminator) {
10101
10776
  if (json == null) {
10102
10777
  return json;
10103
10778
  }
10104
10779
  return {
10105
- "data": json["data"] == null ? void 0 : json["data"].map(TemplateFromJSON),
10106
- "meta": json["meta"] == null ? void 0 : PaginationMetaFromJSON(json["meta"])
10780
+ "id": json["id"] == null ? void 0 : json["id"],
10781
+ "email": json["email"] == null ? void 0 : json["email"]
10107
10782
  };
10108
10783
  }
10109
- function TemplateListResponseToJSON(json) {
10110
- return TemplateListResponseToJSONTyped(json, false);
10784
+ function SwitchOrganizationResponseDataUserToJSON(json) {
10785
+ return SwitchOrganizationResponseDataUserToJSONTyped(json, false);
10111
10786
  }
10112
- function TemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) {
10787
+ function SwitchOrganizationResponseDataUserToJSONTyped(value, ignoreDiscriminator = false) {
10113
10788
  if (value == null) {
10114
10789
  return value;
10115
10790
  }
10116
10791
  return {
10117
- "data": value["data"] == null ? void 0 : value["data"].map(TemplateToJSON),
10118
- "meta": PaginationMetaToJSON(value["meta"])
10792
+ "id": value["id"],
10793
+ "email": value["email"]
10794
+ };
10795
+ }
10796
+
10797
+ // src/src/models/SwitchOrganizationResponseDataTokens.ts
10798
+ var SwitchOrganizationResponseDataTokensTokenTypeEnum = {
10799
+ BEARER: "Bearer"
10800
+ };
10801
+ function instanceOfSwitchOrganizationResponseDataTokens(value) {
10802
+ if (!("accessToken" in value) || value["accessToken"] === void 0) return false;
10803
+ if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
10804
+ if (!("expiresIn" in value) || value["expiresIn"] === void 0) return false;
10805
+ if (!("tokenType" in value) || value["tokenType"] === void 0) return false;
10806
+ return true;
10807
+ }
10808
+ function SwitchOrganizationResponseDataTokensFromJSON(json) {
10809
+ return SwitchOrganizationResponseDataTokensFromJSONTyped(json, false);
10810
+ }
10811
+ function SwitchOrganizationResponseDataTokensFromJSONTyped(json, ignoreDiscriminator) {
10812
+ if (json == null) {
10813
+ return json;
10814
+ }
10815
+ return {
10816
+ "accessToken": json["access_token"],
10817
+ "refreshToken": json["refresh_token"],
10818
+ "expiresIn": json["expires_in"],
10819
+ "tokenType": json["token_type"]
10820
+ };
10821
+ }
10822
+ function SwitchOrganizationResponseDataTokensToJSON(json) {
10823
+ return SwitchOrganizationResponseDataTokensToJSONTyped(json, false);
10824
+ }
10825
+ function SwitchOrganizationResponseDataTokensToJSONTyped(value, ignoreDiscriminator = false) {
10826
+ if (value == null) {
10827
+ return value;
10828
+ }
10829
+ return {
10830
+ "access_token": value["accessToken"],
10831
+ "refresh_token": value["refreshToken"],
10832
+ "expires_in": value["expiresIn"],
10833
+ "token_type": value["tokenType"]
10834
+ };
10835
+ }
10836
+
10837
+ // src/src/models/SwitchOrganizationResponseData.ts
10838
+ function instanceOfSwitchOrganizationResponseData(value) {
10839
+ if (!("tokens" in value) || value["tokens"] === void 0) return false;
10840
+ if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
10841
+ if (!("user" in value) || value["user"] === void 0) return false;
10842
+ return true;
10843
+ }
10844
+ function SwitchOrganizationResponseDataFromJSON(json) {
10845
+ return SwitchOrganizationResponseDataFromJSONTyped(json, false);
10846
+ }
10847
+ function SwitchOrganizationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
10848
+ if (json == null) {
10849
+ return json;
10850
+ }
10851
+ return {
10852
+ "tokens": SwitchOrganizationResponseDataTokensFromJSON(json["tokens"]),
10853
+ "organizationId": json["organization_id"],
10854
+ "user": SwitchOrganizationResponseDataUserFromJSON(json["user"])
10855
+ };
10856
+ }
10857
+ function SwitchOrganizationResponseDataToJSON(json) {
10858
+ return SwitchOrganizationResponseDataToJSONTyped(json, false);
10859
+ }
10860
+ function SwitchOrganizationResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
10861
+ if (value == null) {
10862
+ return value;
10863
+ }
10864
+ return {
10865
+ "tokens": SwitchOrganizationResponseDataTokensToJSON(value["tokens"]),
10866
+ "organization_id": value["organizationId"],
10867
+ "user": SwitchOrganizationResponseDataUserToJSON(value["user"])
10868
+ };
10869
+ }
10870
+
10871
+ // src/src/models/SwitchOrganizationResponse.ts
10872
+ function instanceOfSwitchOrganizationResponse(value) {
10873
+ if (!("data" in value) || value["data"] === void 0) return false;
10874
+ if (!("meta" in value) || value["meta"] === void 0) return false;
10875
+ return true;
10876
+ }
10877
+ function SwitchOrganizationResponseFromJSON(json) {
10878
+ return SwitchOrganizationResponseFromJSONTyped(json, false);
10879
+ }
10880
+ function SwitchOrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
10881
+ if (json == null) {
10882
+ return json;
10883
+ }
10884
+ return {
10885
+ "data": SwitchOrganizationResponseDataFromJSON(json["data"]),
10886
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
10887
+ };
10888
+ }
10889
+ function SwitchOrganizationResponseToJSON(json) {
10890
+ return SwitchOrganizationResponseToJSONTyped(json, false);
10891
+ }
10892
+ function SwitchOrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
10893
+ if (value == null) {
10894
+ return value;
10895
+ }
10896
+ return {
10897
+ "data": SwitchOrganizationResponseDataToJSON(value["data"]),
10898
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
10899
+ };
10900
+ }
10901
+
10902
+ // src/src/models/Template.ts
10903
+ function instanceOfTemplate(value) {
10904
+ return true;
10905
+ }
10906
+ function TemplateFromJSON(json) {
10907
+ return TemplateFromJSONTyped(json, false);
10908
+ }
10909
+ function TemplateFromJSONTyped(json, ignoreDiscriminator) {
10910
+ if (json == null) {
10911
+ return json;
10912
+ }
10913
+ return {
10914
+ "id": json["id"] == null ? void 0 : json["id"],
10915
+ "name": json["name"] == null ? void 0 : json["name"],
10916
+ "description": json["description"] == null ? void 0 : json["description"],
10917
+ "subject": json["subject"] == null ? void 0 : json["subject"],
10918
+ "html": json["html"] == null ? void 0 : json["html"],
10919
+ "text": json["text"] == null ? void 0 : json["text"],
10920
+ "variables": json["variables"] == null ? void 0 : json["variables"],
10921
+ "version": json["version"] == null ? void 0 : json["version"],
10922
+ "createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
10923
+ "updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
10924
+ };
10925
+ }
10926
+ function TemplateToJSON(json) {
10927
+ return TemplateToJSONTyped(json, false);
10928
+ }
10929
+ function TemplateToJSONTyped(value, ignoreDiscriminator = false) {
10930
+ if (value == null) {
10931
+ return value;
10932
+ }
10933
+ return {
10934
+ "id": value["id"],
10935
+ "name": value["name"],
10936
+ "description": value["description"],
10937
+ "subject": value["subject"],
10938
+ "html": value["html"],
10939
+ "text": value["text"],
10940
+ "version": value["version"],
10941
+ "created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
10942
+ "updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
10943
+ };
10944
+ }
10945
+
10946
+ // src/src/models/TemplateListResponse.ts
10947
+ function instanceOfTemplateListResponse(value) {
10948
+ return true;
10949
+ }
10950
+ function TemplateListResponseFromJSON(json) {
10951
+ return TemplateListResponseFromJSONTyped(json, false);
10952
+ }
10953
+ function TemplateListResponseFromJSONTyped(json, ignoreDiscriminator) {
10954
+ if (json == null) {
10955
+ return json;
10956
+ }
10957
+ return {
10958
+ "data": json["data"] == null ? void 0 : json["data"].map(TemplateFromJSON),
10959
+ "meta": json["meta"] == null ? void 0 : PaginationMetaFromJSON(json["meta"])
10960
+ };
10961
+ }
10962
+ function TemplateListResponseToJSON(json) {
10963
+ return TemplateListResponseToJSONTyped(json, false);
10964
+ }
10965
+ function TemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) {
10966
+ if (value == null) {
10967
+ return value;
10968
+ }
10969
+ return {
10970
+ "data": value["data"] == null ? void 0 : value["data"].map(TemplateToJSON),
10971
+ "meta": PaginationMetaToJSON(value["meta"])
10119
10972
  };
10120
10973
  }
10121
10974
 
@@ -10920,6 +11773,65 @@ function UpdateEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
10920
11773
  };
10921
11774
  }
10922
11775
 
11776
+ // src/src/models/UpdateOrganizationMemberRoleRequest.ts
11777
+ function instanceOfUpdateOrganizationMemberRoleRequest(value) {
11778
+ if (!("role" in value) || value["role"] === void 0) return false;
11779
+ return true;
11780
+ }
11781
+ function UpdateOrganizationMemberRoleRequestFromJSON(json) {
11782
+ return UpdateOrganizationMemberRoleRequestFromJSONTyped(json, false);
11783
+ }
11784
+ function UpdateOrganizationMemberRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
11785
+ if (json == null) {
11786
+ return json;
11787
+ }
11788
+ return {
11789
+ "role": json["role"]
11790
+ };
11791
+ }
11792
+ function UpdateOrganizationMemberRoleRequestToJSON(json) {
11793
+ return UpdateOrganizationMemberRoleRequestToJSONTyped(json, false);
11794
+ }
11795
+ function UpdateOrganizationMemberRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
11796
+ if (value == null) {
11797
+ return value;
11798
+ }
11799
+ return {
11800
+ "role": value["role"]
11801
+ };
11802
+ }
11803
+
11804
+ // src/src/models/UpdateOrganizationRequest.ts
11805
+ function instanceOfUpdateOrganizationRequest(value) {
11806
+ return true;
11807
+ }
11808
+ function UpdateOrganizationRequestFromJSON(json) {
11809
+ return UpdateOrganizationRequestFromJSONTyped(json, false);
11810
+ }
11811
+ function UpdateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
11812
+ if (json == null) {
11813
+ return json;
11814
+ }
11815
+ return {
11816
+ "name": json["name"] == null ? void 0 : json["name"],
11817
+ "slug": json["slug"] == null ? void 0 : json["slug"],
11818
+ "metadata": json["metadata"] == null ? void 0 : json["metadata"]
11819
+ };
11820
+ }
11821
+ function UpdateOrganizationRequestToJSON(json) {
11822
+ return UpdateOrganizationRequestToJSONTyped(json, false);
11823
+ }
11824
+ function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
11825
+ if (value == null) {
11826
+ return value;
11827
+ }
11828
+ return {
11829
+ "name": value["name"],
11830
+ "slug": value["slug"],
11831
+ "metadata": value["metadata"]
11832
+ };
11833
+ }
11834
+
10923
11835
  // src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
10924
11836
  var UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum = {
10925
11837
  EMAIL: "email",
@@ -11340,6 +12252,45 @@ function UserDevicesDeleteResponseToJSONTyped(value, ignoreDiscriminator = false
11340
12252
  };
11341
12253
  }
11342
12254
 
12255
+ // src/src/models/V1MuseSubjectsSuggestPostRequest.ts
12256
+ var V1MuseSubjectsSuggestPostRequestChannelEnum = {
12257
+ EMAIL: "email",
12258
+ PUSH: "push"
12259
+ };
12260
+ function instanceOfV1MuseSubjectsSuggestPostRequest(value) {
12261
+ if (!("channel" in value) || value["channel"] === void 0) return false;
12262
+ if (!("projectId" in value) || value["projectId"] === void 0) return false;
12263
+ return true;
12264
+ }
12265
+ function V1MuseSubjectsSuggestPostRequestFromJSON(json) {
12266
+ return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
12267
+ }
12268
+ function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, ignoreDiscriminator) {
12269
+ if (json == null) {
12270
+ return json;
12271
+ }
12272
+ return {
12273
+ "templateId": json["template_id"] == null ? void 0 : json["template_id"],
12274
+ "templateBody": json["template_body"] == null ? void 0 : json["template_body"],
12275
+ "channel": json["channel"],
12276
+ "projectId": json["project_id"]
12277
+ };
12278
+ }
12279
+ function V1MuseSubjectsSuggestPostRequestToJSON(json) {
12280
+ return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
12281
+ }
12282
+ function V1MuseSubjectsSuggestPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
12283
+ if (value == null) {
12284
+ return value;
12285
+ }
12286
+ return {
12287
+ "template_id": value["templateId"],
12288
+ "template_body": value["templateBody"],
12289
+ "channel": value["channel"],
12290
+ "project_id": value["projectId"]
12291
+ };
12292
+ }
12293
+
11343
12294
  // src/src/models/ValidateResetTokenRequest.ts
11344
12295
  function instanceOfValidateResetTokenRequest(value) {
11345
12296
  if (!("token" in value) || value["token"] === void 0) return false;
@@ -14640,17 +15591,22 @@ var AuthOAuthApi = class extends BaseAPI {
14640
15591
  }
14641
15592
  };
14642
15593
 
14643
- // src/src/apis/AuthPasswordResetApi.ts
14644
- var AuthPasswordResetApi = class extends BaseAPI {
15594
+ // src/src/apis/AuthOrganizationsApi.ts
15595
+ var AuthOrganizationsApi = class extends BaseAPI {
14645
15596
  /**
14646
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
14647
- * Request a password reset
15597
+ * Add a member to an organization
14648
15598
  */
14649
- async forgotPasswordRaw(requestParameters, initOverrides) {
14650
- if (requestParameters["forgotPasswordRequest"] == null) {
15599
+ async addOrganizationMemberRaw(requestParameters, initOverrides) {
15600
+ if (requestParameters["id"] == null) {
14651
15601
  throw new RequiredError(
14652
- "forgotPasswordRequest",
14653
- 'Required parameter "forgotPasswordRequest" was null or undefined when calling forgotPassword().'
15602
+ "id",
15603
+ 'Required parameter "id" was null or undefined when calling addOrganizationMember().'
15604
+ );
15605
+ }
15606
+ if (requestParameters["addOrganizationMemberRequest"] == null) {
15607
+ throw new RequiredError(
15608
+ "addOrganizationMemberRequest",
15609
+ 'Required parameter "addOrganizationMemberRequest" was null or undefined when calling addOrganizationMember().'
14654
15610
  );
14655
15611
  }
14656
15612
  const queryParameters = {};
@@ -14663,31 +15619,30 @@ var AuthPasswordResetApi = class extends BaseAPI {
14663
15619
  headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
14664
15620
  }
14665
15621
  const response = await this.request({
14666
- path: `/auth/forgot-password`,
15622
+ path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
14667
15623
  method: "POST",
14668
15624
  headers: headerParameters,
14669
15625
  query: queryParameters,
14670
- body: ForgotPasswordRequestToJSON(requestParameters["forgotPasswordRequest"])
15626
+ body: AddOrganizationMemberRequestToJSON(requestParameters["addOrganizationMemberRequest"])
14671
15627
  }, initOverrides);
14672
- return new JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
15628
+ return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
14673
15629
  }
14674
15630
  /**
14675
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
14676
- * Request a password reset
15631
+ * Add a member to an organization
14677
15632
  */
14678
- async forgotPassword(forgotPasswordRequest, initOverrides) {
14679
- const response = await this.forgotPasswordRaw({ forgotPasswordRequest }, initOverrides);
15633
+ async addOrganizationMember(id, addOrganizationMemberRequest, initOverrides) {
15634
+ const response = await this.addOrganizationMemberRaw({ id, addOrganizationMemberRequest }, initOverrides);
14680
15635
  return await response.value();
14681
15636
  }
14682
15637
  /**
14683
- * Reset a user\'s password using a valid reset token.
14684
- * Reset password
15638
+ * Create a new organization inside the current application × environment. Membership is many-to-many — add end users via POST /auth/organizations/{id}/members. The Default organization for the environment is auto-created at migration time and cannot be created via API.
15639
+ * Create an organization
14685
15640
  */
14686
- async resetEndUserPasswordRaw(requestParameters, initOverrides) {
14687
- if (requestParameters["resetPasswordRequest"] == null) {
15641
+ async createOrganizationRaw(requestParameters, initOverrides) {
15642
+ if (requestParameters["createOrganizationRequest"] == null) {
14688
15643
  throw new RequiredError(
14689
- "resetPasswordRequest",
14690
- 'Required parameter "resetPasswordRequest" was null or undefined when calling resetEndUserPassword().'
15644
+ "createOrganizationRequest",
15645
+ 'Required parameter "createOrganizationRequest" was null or undefined when calling createOrganization().'
14691
15646
  );
14692
15647
  }
14693
15648
  const queryParameters = {};
@@ -14700,36 +15655,35 @@ var AuthPasswordResetApi = class extends BaseAPI {
14700
15655
  headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
14701
15656
  }
14702
15657
  const response = await this.request({
14703
- path: `/auth/reset-password`,
15658
+ path: `/auth/organizations`,
14704
15659
  method: "POST",
14705
15660
  headers: headerParameters,
14706
15661
  query: queryParameters,
14707
- body: ResetPasswordRequestToJSON(requestParameters["resetPasswordRequest"])
15662
+ body: CreateOrganizationRequestToJSON(requestParameters["createOrganizationRequest"])
14708
15663
  }, initOverrides);
14709
- return new JSONApiResponse(response, (jsonValue) => ResetPasswordResponseFromJSON(jsonValue));
15664
+ return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
14710
15665
  }
14711
15666
  /**
14712
- * Reset a user\'s password using a valid reset token.
14713
- * Reset password
15667
+ * Create a new organization inside the current application × environment. Membership is many-to-many — add end users via POST /auth/organizations/{id}/members. The Default organization for the environment is auto-created at migration time and cannot be created via API.
15668
+ * Create an organization
14714
15669
  */
14715
- async resetEndUserPassword(resetPasswordRequest, initOverrides) {
14716
- const response = await this.resetEndUserPasswordRaw({ resetPasswordRequest }, initOverrides);
15670
+ async createOrganization(createOrganizationRequest, initOverrides) {
15671
+ const response = await this.createOrganizationRaw({ createOrganizationRequest }, initOverrides);
14717
15672
  return await response.value();
14718
15673
  }
14719
15674
  /**
14720
- * Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
14721
- * Validate a password reset token
15675
+ * Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
15676
+ * Delete an organization
14722
15677
  */
14723
- async validateResetTokenRaw(requestParameters, initOverrides) {
14724
- if (requestParameters["validateResetTokenRequest"] == null) {
15678
+ async deleteOrganizationRaw(requestParameters, initOverrides) {
15679
+ if (requestParameters["id"] == null) {
14725
15680
  throw new RequiredError(
14726
- "validateResetTokenRequest",
14727
- 'Required parameter "validateResetTokenRequest" was null or undefined when calling validateResetToken().'
15681
+ "id",
15682
+ 'Required parameter "id" was null or undefined when calling deleteOrganization().'
14728
15683
  );
14729
15684
  }
14730
15685
  const queryParameters = {};
14731
15686
  const headerParameters = {};
14732
- headerParameters["Content-Type"] = "application/json";
14733
15687
  if (this.configuration && this.configuration.apiKey) {
14734
15688
  headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
14735
15689
  }
@@ -14737,23 +15691,446 @@ var AuthPasswordResetApi = class extends BaseAPI {
14737
15691
  headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
14738
15692
  }
14739
15693
  const response = await this.request({
14740
- path: `/auth/validate-reset-token`,
14741
- method: "POST",
15694
+ path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
15695
+ method: "DELETE",
14742
15696
  headers: headerParameters,
14743
- query: queryParameters,
14744
- body: ValidateResetTokenRequestToJSON(requestParameters["validateResetTokenRequest"])
15697
+ query: queryParameters
14745
15698
  }, initOverrides);
14746
- return new JSONApiResponse(response, (jsonValue) => ValidateResetTokenResponseFromJSON(jsonValue));
15699
+ return new VoidApiResponse(response);
14747
15700
  }
14748
15701
  /**
14749
- * Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
14750
- * Validate a password reset token
15702
+ * Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
15703
+ * Delete an organization
14751
15704
  */
14752
- async validateResetToken(validateResetTokenRequest, initOverrides) {
14753
- const response = await this.validateResetTokenRaw({ validateResetTokenRequest }, initOverrides);
14754
- return await response.value();
15705
+ async deleteOrganization(id, initOverrides) {
15706
+ await this.deleteOrganizationRaw({ id }, initOverrides);
14755
15707
  }
14756
- };
15708
+ /**
15709
+ * Get organization by id
15710
+ */
15711
+ async getOrganizationRaw(requestParameters, initOverrides) {
15712
+ if (requestParameters["id"] == null) {
15713
+ throw new RequiredError(
15714
+ "id",
15715
+ 'Required parameter "id" was null or undefined when calling getOrganization().'
15716
+ );
15717
+ }
15718
+ const queryParameters = {};
15719
+ const headerParameters = {};
15720
+ if (this.configuration && this.configuration.apiKey) {
15721
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15722
+ }
15723
+ if (this.configuration && this.configuration.apiKey) {
15724
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15725
+ }
15726
+ const response = await this.request({
15727
+ path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
15728
+ method: "GET",
15729
+ headers: headerParameters,
15730
+ query: queryParameters
15731
+ }, initOverrides);
15732
+ return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
15733
+ }
15734
+ /**
15735
+ * Get organization by id
15736
+ */
15737
+ async getOrganization(id, initOverrides) {
15738
+ const response = await this.getOrganizationRaw({ id }, initOverrides);
15739
+ return await response.value();
15740
+ }
15741
+ /**
15742
+ * List organization members
15743
+ */
15744
+ async listOrganizationMembersRaw(requestParameters, initOverrides) {
15745
+ if (requestParameters["id"] == null) {
15746
+ throw new RequiredError(
15747
+ "id",
15748
+ 'Required parameter "id" was null or undefined when calling listOrganizationMembers().'
15749
+ );
15750
+ }
15751
+ const queryParameters = {};
15752
+ if (requestParameters["limit"] != null) {
15753
+ queryParameters["limit"] = requestParameters["limit"];
15754
+ }
15755
+ if (requestParameters["cursor"] != null) {
15756
+ queryParameters["cursor"] = requestParameters["cursor"];
15757
+ }
15758
+ const headerParameters = {};
15759
+ if (this.configuration && this.configuration.apiKey) {
15760
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15761
+ }
15762
+ if (this.configuration && this.configuration.apiKey) {
15763
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15764
+ }
15765
+ const response = await this.request({
15766
+ path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
15767
+ method: "GET",
15768
+ headers: headerParameters,
15769
+ query: queryParameters
15770
+ }, initOverrides);
15771
+ return new JSONApiResponse(response, (jsonValue) => OrganizationMembersListResponseFromJSON(jsonValue));
15772
+ }
15773
+ /**
15774
+ * List organization members
15775
+ */
15776
+ async listOrganizationMembers(id, limit, cursor, initOverrides) {
15777
+ const response = await this.listOrganizationMembersRaw({ id, limit, cursor }, initOverrides);
15778
+ return await response.value();
15779
+ }
15780
+ /**
15781
+ * List organizations in the current environment. Cursor-paginated.
15782
+ * List organizations
15783
+ */
15784
+ async listOrganizationsRaw(requestParameters, initOverrides) {
15785
+ const queryParameters = {};
15786
+ if (requestParameters["limit"] != null) {
15787
+ queryParameters["limit"] = requestParameters["limit"];
15788
+ }
15789
+ if (requestParameters["cursor"] != null) {
15790
+ queryParameters["cursor"] = requestParameters["cursor"];
15791
+ }
15792
+ if (requestParameters["search"] != null) {
15793
+ queryParameters["search"] = requestParameters["search"];
15794
+ }
15795
+ const headerParameters = {};
15796
+ if (this.configuration && this.configuration.apiKey) {
15797
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15798
+ }
15799
+ if (this.configuration && this.configuration.apiKey) {
15800
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15801
+ }
15802
+ const response = await this.request({
15803
+ path: `/auth/organizations`,
15804
+ method: "GET",
15805
+ headers: headerParameters,
15806
+ query: queryParameters
15807
+ }, initOverrides);
15808
+ return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
15809
+ }
15810
+ /**
15811
+ * List organizations in the current environment. Cursor-paginated.
15812
+ * List organizations
15813
+ */
15814
+ async listOrganizations(limit, cursor, search, initOverrides) {
15815
+ const response = await this.listOrganizationsRaw({ limit, cursor, search }, initOverrides);
15816
+ return await response.value();
15817
+ }
15818
+ /**
15819
+ * Inverse of the membership list — returns all orgs the user is a member of within the current environment. Use this when the orgs[] JWT claim is omitted because the user belongs to more than 50.
15820
+ * List organizations an end user belongs to
15821
+ */
15822
+ async listOrganizationsForEndUserRaw(requestParameters, initOverrides) {
15823
+ if (requestParameters["userId"] == null) {
15824
+ throw new RequiredError(
15825
+ "userId",
15826
+ 'Required parameter "userId" was null or undefined when calling listOrganizationsForEndUser().'
15827
+ );
15828
+ }
15829
+ const queryParameters = {};
15830
+ const headerParameters = {};
15831
+ if (this.configuration && this.configuration.apiKey) {
15832
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15833
+ }
15834
+ if (this.configuration && this.configuration.apiKey) {
15835
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15836
+ }
15837
+ const response = await this.request({
15838
+ path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
15839
+ method: "GET",
15840
+ headers: headerParameters,
15841
+ query: queryParameters
15842
+ }, initOverrides);
15843
+ return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
15844
+ }
15845
+ /**
15846
+ * Inverse of the membership list — returns all orgs the user is a member of within the current environment. Use this when the orgs[] JWT claim is omitted because the user belongs to more than 50.
15847
+ * List organizations an end user belongs to
15848
+ */
15849
+ async listOrganizationsForEndUser(userId, initOverrides) {
15850
+ const response = await this.listOrganizationsForEndUserRaw({ userId }, initOverrides);
15851
+ return await response.value();
15852
+ }
15853
+ /**
15854
+ * Remove a member from an organization
15855
+ */
15856
+ async removeOrganizationMemberRaw(requestParameters, initOverrides) {
15857
+ if (requestParameters["id"] == null) {
15858
+ throw new RequiredError(
15859
+ "id",
15860
+ 'Required parameter "id" was null or undefined when calling removeOrganizationMember().'
15861
+ );
15862
+ }
15863
+ if (requestParameters["userId"] == null) {
15864
+ throw new RequiredError(
15865
+ "userId",
15866
+ 'Required parameter "userId" was null or undefined when calling removeOrganizationMember().'
15867
+ );
15868
+ }
15869
+ const queryParameters = {};
15870
+ const headerParameters = {};
15871
+ if (this.configuration && this.configuration.apiKey) {
15872
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15873
+ }
15874
+ if (this.configuration && this.configuration.apiKey) {
15875
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15876
+ }
15877
+ const response = await this.request({
15878
+ path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
15879
+ method: "DELETE",
15880
+ headers: headerParameters,
15881
+ query: queryParameters
15882
+ }, initOverrides);
15883
+ return new VoidApiResponse(response);
15884
+ }
15885
+ /**
15886
+ * Remove a member from an organization
15887
+ */
15888
+ async removeOrganizationMember(id, userId, initOverrides) {
15889
+ await this.removeOrganizationMemberRaw({ id, userId }, initOverrides);
15890
+ }
15891
+ /**
15892
+ * Takes a valid refresh token + a target organization the user is a member of, verifies membership at mint time, revokes the old session, and mints a fresh access + refresh pair with `org_id` set to the target. The old refresh token is invalidated (jti rotated). Use this when the user\'s active workspace changes (the Slack/Linear workspace-switch pattern).
15893
+ * Switch the active organization on a session
15894
+ */
15895
+ async switchOrganizationRaw(requestParameters, initOverrides) {
15896
+ if (requestParameters["switchOrganizationRequest"] == null) {
15897
+ throw new RequiredError(
15898
+ "switchOrganizationRequest",
15899
+ 'Required parameter "switchOrganizationRequest" was null or undefined when calling switchOrganization().'
15900
+ );
15901
+ }
15902
+ const queryParameters = {};
15903
+ const headerParameters = {};
15904
+ headerParameters["Content-Type"] = "application/json";
15905
+ if (this.configuration && this.configuration.apiKey) {
15906
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15907
+ }
15908
+ if (this.configuration && this.configuration.apiKey) {
15909
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15910
+ }
15911
+ const response = await this.request({
15912
+ path: `/auth/sessions/switch-organization`,
15913
+ method: "POST",
15914
+ headers: headerParameters,
15915
+ query: queryParameters,
15916
+ body: SwitchOrganizationRequestToJSON(requestParameters["switchOrganizationRequest"])
15917
+ }, initOverrides);
15918
+ return new JSONApiResponse(response, (jsonValue) => SwitchOrganizationResponseFromJSON(jsonValue));
15919
+ }
15920
+ /**
15921
+ * Takes a valid refresh token + a target organization the user is a member of, verifies membership at mint time, revokes the old session, and mints a fresh access + refresh pair with `org_id` set to the target. The old refresh token is invalidated (jti rotated). Use this when the user\'s active workspace changes (the Slack/Linear workspace-switch pattern).
15922
+ * Switch the active organization on a session
15923
+ */
15924
+ async switchOrganization(switchOrganizationRequest, initOverrides) {
15925
+ const response = await this.switchOrganizationRaw({ switchOrganizationRequest }, initOverrides);
15926
+ return await response.value();
15927
+ }
15928
+ /**
15929
+ * The Default organization cannot be renamed or have its slug/metadata changed.
15930
+ * Update an organization
15931
+ */
15932
+ async updateOrganizationRaw(requestParameters, initOverrides) {
15933
+ if (requestParameters["id"] == null) {
15934
+ throw new RequiredError(
15935
+ "id",
15936
+ 'Required parameter "id" was null or undefined when calling updateOrganization().'
15937
+ );
15938
+ }
15939
+ if (requestParameters["updateOrganizationRequest"] == null) {
15940
+ throw new RequiredError(
15941
+ "updateOrganizationRequest",
15942
+ 'Required parameter "updateOrganizationRequest" was null or undefined when calling updateOrganization().'
15943
+ );
15944
+ }
15945
+ const queryParameters = {};
15946
+ const headerParameters = {};
15947
+ headerParameters["Content-Type"] = "application/json";
15948
+ if (this.configuration && this.configuration.apiKey) {
15949
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15950
+ }
15951
+ if (this.configuration && this.configuration.apiKey) {
15952
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
15953
+ }
15954
+ const response = await this.request({
15955
+ path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
15956
+ method: "PATCH",
15957
+ headers: headerParameters,
15958
+ query: queryParameters,
15959
+ body: UpdateOrganizationRequestToJSON(requestParameters["updateOrganizationRequest"])
15960
+ }, initOverrides);
15961
+ return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
15962
+ }
15963
+ /**
15964
+ * The Default organization cannot be renamed or have its slug/metadata changed.
15965
+ * Update an organization
15966
+ */
15967
+ async updateOrganization(id, updateOrganizationRequest, initOverrides) {
15968
+ const response = await this.updateOrganizationRaw({ id, updateOrganizationRequest }, initOverrides);
15969
+ return await response.value();
15970
+ }
15971
+ /**
15972
+ * Update a member\'s role
15973
+ */
15974
+ async updateOrganizationMemberRoleRaw(requestParameters, initOverrides) {
15975
+ if (requestParameters["id"] == null) {
15976
+ throw new RequiredError(
15977
+ "id",
15978
+ 'Required parameter "id" was null or undefined when calling updateOrganizationMemberRole().'
15979
+ );
15980
+ }
15981
+ if (requestParameters["userId"] == null) {
15982
+ throw new RequiredError(
15983
+ "userId",
15984
+ 'Required parameter "userId" was null or undefined when calling updateOrganizationMemberRole().'
15985
+ );
15986
+ }
15987
+ if (requestParameters["updateOrganizationMemberRoleRequest"] == null) {
15988
+ throw new RequiredError(
15989
+ "updateOrganizationMemberRoleRequest",
15990
+ 'Required parameter "updateOrganizationMemberRoleRequest" was null or undefined when calling updateOrganizationMemberRole().'
15991
+ );
15992
+ }
15993
+ const queryParameters = {};
15994
+ const headerParameters = {};
15995
+ headerParameters["Content-Type"] = "application/json";
15996
+ if (this.configuration && this.configuration.apiKey) {
15997
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
15998
+ }
15999
+ if (this.configuration && this.configuration.apiKey) {
16000
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
16001
+ }
16002
+ const response = await this.request({
16003
+ path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
16004
+ method: "PATCH",
16005
+ headers: headerParameters,
16006
+ query: queryParameters,
16007
+ body: UpdateOrganizationMemberRoleRequestToJSON(requestParameters["updateOrganizationMemberRoleRequest"])
16008
+ }, initOverrides);
16009
+ return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
16010
+ }
16011
+ /**
16012
+ * Update a member\'s role
16013
+ */
16014
+ async updateOrganizationMemberRole(id, userId, updateOrganizationMemberRoleRequest, initOverrides) {
16015
+ const response = await this.updateOrganizationMemberRoleRaw({ id, userId, updateOrganizationMemberRoleRequest }, initOverrides);
16016
+ return await response.value();
16017
+ }
16018
+ };
16019
+
16020
+ // src/src/apis/AuthPasswordResetApi.ts
16021
+ var AuthPasswordResetApi = class extends BaseAPI {
16022
+ /**
16023
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
16024
+ * Request a password reset
16025
+ */
16026
+ async forgotPasswordRaw(requestParameters, initOverrides) {
16027
+ if (requestParameters["forgotPasswordRequest"] == null) {
16028
+ throw new RequiredError(
16029
+ "forgotPasswordRequest",
16030
+ 'Required parameter "forgotPasswordRequest" was null or undefined when calling forgotPassword().'
16031
+ );
16032
+ }
16033
+ const queryParameters = {};
16034
+ const headerParameters = {};
16035
+ headerParameters["Content-Type"] = "application/json";
16036
+ if (this.configuration && this.configuration.apiKey) {
16037
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
16038
+ }
16039
+ if (this.configuration && this.configuration.apiKey) {
16040
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
16041
+ }
16042
+ const response = await this.request({
16043
+ path: `/auth/forgot-password`,
16044
+ method: "POST",
16045
+ headers: headerParameters,
16046
+ query: queryParameters,
16047
+ body: ForgotPasswordRequestToJSON(requestParameters["forgotPasswordRequest"])
16048
+ }, initOverrides);
16049
+ return new JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
16050
+ }
16051
+ /**
16052
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
16053
+ * Request a password reset
16054
+ */
16055
+ async forgotPassword(forgotPasswordRequest, initOverrides) {
16056
+ const response = await this.forgotPasswordRaw({ forgotPasswordRequest }, initOverrides);
16057
+ return await response.value();
16058
+ }
16059
+ /**
16060
+ * Reset a user\'s password using a valid reset token.
16061
+ * Reset password
16062
+ */
16063
+ async resetEndUserPasswordRaw(requestParameters, initOverrides) {
16064
+ if (requestParameters["resetPasswordRequest"] == null) {
16065
+ throw new RequiredError(
16066
+ "resetPasswordRequest",
16067
+ 'Required parameter "resetPasswordRequest" was null or undefined when calling resetEndUserPassword().'
16068
+ );
16069
+ }
16070
+ const queryParameters = {};
16071
+ const headerParameters = {};
16072
+ headerParameters["Content-Type"] = "application/json";
16073
+ if (this.configuration && this.configuration.apiKey) {
16074
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
16075
+ }
16076
+ if (this.configuration && this.configuration.apiKey) {
16077
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
16078
+ }
16079
+ const response = await this.request({
16080
+ path: `/auth/reset-password`,
16081
+ method: "POST",
16082
+ headers: headerParameters,
16083
+ query: queryParameters,
16084
+ body: ResetPasswordRequestToJSON(requestParameters["resetPasswordRequest"])
16085
+ }, initOverrides);
16086
+ return new JSONApiResponse(response, (jsonValue) => ResetPasswordResponseFromJSON(jsonValue));
16087
+ }
16088
+ /**
16089
+ * Reset a user\'s password using a valid reset token.
16090
+ * Reset password
16091
+ */
16092
+ async resetEndUserPassword(resetPasswordRequest, initOverrides) {
16093
+ const response = await this.resetEndUserPasswordRaw({ resetPasswordRequest }, initOverrides);
16094
+ return await response.value();
16095
+ }
16096
+ /**
16097
+ * Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
16098
+ * Validate a password reset token
16099
+ */
16100
+ async validateResetTokenRaw(requestParameters, initOverrides) {
16101
+ if (requestParameters["validateResetTokenRequest"] == null) {
16102
+ throw new RequiredError(
16103
+ "validateResetTokenRequest",
16104
+ 'Required parameter "validateResetTokenRequest" was null or undefined when calling validateResetToken().'
16105
+ );
16106
+ }
16107
+ const queryParameters = {};
16108
+ const headerParameters = {};
16109
+ headerParameters["Content-Type"] = "application/json";
16110
+ if (this.configuration && this.configuration.apiKey) {
16111
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
16112
+ }
16113
+ if (this.configuration && this.configuration.apiKey) {
16114
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
16115
+ }
16116
+ const response = await this.request({
16117
+ path: `/auth/validate-reset-token`,
16118
+ method: "POST",
16119
+ headers: headerParameters,
16120
+ query: queryParameters,
16121
+ body: ValidateResetTokenRequestToJSON(requestParameters["validateResetTokenRequest"])
16122
+ }, initOverrides);
16123
+ return new JSONApiResponse(response, (jsonValue) => ValidateResetTokenResponseFromJSON(jsonValue));
16124
+ }
16125
+ /**
16126
+ * Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
16127
+ * Validate a password reset token
16128
+ */
16129
+ async validateResetToken(validateResetTokenRequest, initOverrides) {
16130
+ const response = await this.validateResetTokenRaw({ validateResetTokenRequest }, initOverrides);
16131
+ return await response.value();
16132
+ }
16133
+ };
14757
16134
 
14758
16135
  // src/src/apis/AuthPhoneApi.ts
14759
16136
  var AuthPhoneApi = class extends BaseAPI {
@@ -15221,6 +16598,40 @@ var AuthUserProfileApi = class extends BaseAPI {
15221
16598
  const response = await this.deleteEndUserRaw(initOverrides);
15222
16599
  return await response.value();
15223
16600
  }
16601
+ /**
16602
+ * App-credentialed soft-delete for an end user, scoped to the test environment only. Live-mode credentials receive 403 — this is the intentional safety guard against a misconfigured CI runner nuking production users. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve. Intended for smoke / test-fixture cleanup. Production deletes should continue to use `DELETE /auth/users/me` from the end-user\'s own session or the dashboard.
16603
+ * Delete an end user (test environment only)
16604
+ */
16605
+ async deleteEndUserByApplicationRaw(requestParameters, initOverrides) {
16606
+ if (requestParameters["userId"] == null) {
16607
+ throw new RequiredError(
16608
+ "userId",
16609
+ 'Required parameter "userId" was null or undefined when calling deleteEndUserByApplication().'
16610
+ );
16611
+ }
16612
+ const queryParameters = {};
16613
+ const headerParameters = {};
16614
+ if (this.configuration && this.configuration.apiKey) {
16615
+ headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
16616
+ }
16617
+ if (this.configuration && this.configuration.apiKey) {
16618
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
16619
+ }
16620
+ const response = await this.request({
16621
+ path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
16622
+ method: "DELETE",
16623
+ headers: headerParameters,
16624
+ query: queryParameters
16625
+ }, initOverrides);
16626
+ return new VoidApiResponse(response);
16627
+ }
16628
+ /**
16629
+ * App-credentialed soft-delete for an end user, scoped to the test environment only. Live-mode credentials receive 403 — this is the intentional safety guard against a misconfigured CI runner nuking production users. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve. Intended for smoke / test-fixture cleanup. Production deletes should continue to use `DELETE /auth/users/me` from the end-user\'s own session or the dashboard.
16630
+ * Delete an end user (test environment only)
16631
+ */
16632
+ async deleteEndUserByApplication(userId, initOverrides) {
16633
+ await this.deleteEndUserByApplicationRaw({ userId }, initOverrides);
16634
+ }
15224
16635
  /**
15225
16636
  * Retrieve the profile of the currently authenticated end user.
15226
16637
  * Get current end user profile
@@ -15952,17 +17363,56 @@ var DomainsApi = class extends BaseAPI {
15952
17363
  path: `/domains`,
15953
17364
  method: "GET",
15954
17365
  headers: headerParameters,
15955
- query: queryParameters
17366
+ query: queryParameters
17367
+ }, initOverrides);
17368
+ return new JSONApiResponse(response, (jsonValue) => DomainListResponseFromJSON(jsonValue));
17369
+ }
17370
+ /**
17371
+ * List sending domains on the current project, with verification status and DNS records.
17372
+ * List sending domains
17373
+ */
17374
+ async listDomains(initOverrides) {
17375
+ const response = await this.listDomainsRaw(initOverrides);
17376
+ return await response.value();
17377
+ }
17378
+ /**
17379
+ * Toggle email receiving for a domain. When enabled, the domain\'s DNS records gain an MX record on the `inbound.` subdomain that the tenant must publish. Requires a plan with inbound email (Starter+).
17380
+ * Enable or disable inbound email for a domain
17381
+ */
17382
+ async setDomainInboundRaw(requestParameters, initOverrides) {
17383
+ if (requestParameters["id"] == null) {
17384
+ throw new RequiredError(
17385
+ "id",
17386
+ 'Required parameter "id" was null or undefined when calling setDomainInbound().'
17387
+ );
17388
+ }
17389
+ if (requestParameters["setDomainInboundRequest"] == null) {
17390
+ throw new RequiredError(
17391
+ "setDomainInboundRequest",
17392
+ 'Required parameter "setDomainInboundRequest" was null or undefined when calling setDomainInbound().'
17393
+ );
17394
+ }
17395
+ const queryParameters = {};
17396
+ const headerParameters = {};
17397
+ headerParameters["Content-Type"] = "application/json";
17398
+ if (this.configuration && this.configuration.apiKey) {
17399
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
17400
+ }
17401
+ const response = await this.request({
17402
+ path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
17403
+ method: "PUT",
17404
+ headers: headerParameters,
17405
+ query: queryParameters,
17406
+ body: SetDomainInboundRequestToJSON(requestParameters["setDomainInboundRequest"])
15956
17407
  }, initOverrides);
15957
- return new JSONApiResponse(response, (jsonValue) => DomainListResponseFromJSON(jsonValue));
17408
+ return new VoidApiResponse(response);
15958
17409
  }
15959
17410
  /**
15960
- * List sending domains on the current project, with verification status and DNS records.
15961
- * List sending domains
17411
+ * Toggle email receiving for a domain. When enabled, the domain\'s DNS records gain an MX record on the `inbound.` subdomain that the tenant must publish. Requires a plan with inbound email (Starter+).
17412
+ * Enable or disable inbound email for a domain
15962
17413
  */
15963
- async listDomains(initOverrides) {
15964
- const response = await this.listDomainsRaw(initOverrides);
15965
- return await response.value();
17414
+ async setDomainInbound(id, setDomainInboundRequest, initOverrides) {
17415
+ await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
15966
17416
  }
15967
17417
  /**
15968
17418
  * Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
@@ -16313,6 +17763,128 @@ var ExecutionsApi = class extends BaseAPI {
16313
17763
  }
16314
17764
  };
16315
17765
 
17766
+ // src/src/apis/InboundEmailApi.ts
17767
+ var InboundEmailApi = class extends BaseAPI {
17768
+ /**
17769
+ * Return a short-lived presigned S3 download URL for one attachment of a received email. `attachmentId` is the positional id from the email\'s `attachments` array.
17770
+ * Get an attachment download URL
17771
+ */
17772
+ async getInboundAttachmentUrlRaw(requestParameters, initOverrides) {
17773
+ if (requestParameters["id"] == null) {
17774
+ throw new RequiredError(
17775
+ "id",
17776
+ 'Required parameter "id" was null or undefined when calling getInboundAttachmentUrl().'
17777
+ );
17778
+ }
17779
+ if (requestParameters["attachmentId"] == null) {
17780
+ throw new RequiredError(
17781
+ "attachmentId",
17782
+ 'Required parameter "attachmentId" was null or undefined when calling getInboundAttachmentUrl().'
17783
+ );
17784
+ }
17785
+ const queryParameters = {};
17786
+ const headerParameters = {};
17787
+ if (this.configuration && this.configuration.apiKey) {
17788
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
17789
+ }
17790
+ const response = await this.request({
17791
+ path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
17792
+ method: "GET",
17793
+ headers: headerParameters,
17794
+ query: queryParameters
17795
+ }, initOverrides);
17796
+ return new JSONApiResponse(response, (jsonValue) => InboundAttachmentUrlResponseFromJSON(jsonValue));
17797
+ }
17798
+ /**
17799
+ * Return a short-lived presigned S3 download URL for one attachment of a received email. `attachmentId` is the positional id from the email\'s `attachments` array.
17800
+ * Get an attachment download URL
17801
+ */
17802
+ async getInboundAttachmentUrl(id, attachmentId, initOverrides) {
17803
+ const response = await this.getInboundAttachmentUrlRaw({ id, attachmentId }, initOverrides);
17804
+ return await response.value();
17805
+ }
17806
+ /**
17807
+ * Retrieve a single inbound email by id (scoped to the project).
17808
+ * Get a received email
17809
+ */
17810
+ async getInboundEmailRaw(requestParameters, initOverrides) {
17811
+ if (requestParameters["id"] == null) {
17812
+ throw new RequiredError(
17813
+ "id",
17814
+ 'Required parameter "id" was null or undefined when calling getInboundEmail().'
17815
+ );
17816
+ }
17817
+ const queryParameters = {};
17818
+ const headerParameters = {};
17819
+ if (this.configuration && this.configuration.apiKey) {
17820
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
17821
+ }
17822
+ const response = await this.request({
17823
+ path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
17824
+ method: "GET",
17825
+ headers: headerParameters,
17826
+ query: queryParameters
17827
+ }, initOverrides);
17828
+ return new JSONApiResponse(response, (jsonValue) => InboundEmailResponseFromJSON(jsonValue));
17829
+ }
17830
+ /**
17831
+ * Retrieve a single inbound email by id (scoped to the project).
17832
+ * Get a received email
17833
+ */
17834
+ async getInboundEmail(id, initOverrides) {
17835
+ const response = await this.getInboundEmailRaw({ id }, initOverrides);
17836
+ return await response.value();
17837
+ }
17838
+ /**
17839
+ * List inbound (received) emails for the project, newest first. By default only delivered mail (`received`/`processed`) is returned; pass `include_withheld=true` to also see quarantined/dropped.
17840
+ * List received emails
17841
+ */
17842
+ async listInboundEmailsRaw(requestParameters, initOverrides) {
17843
+ const queryParameters = {};
17844
+ if (requestParameters["status"] != null) {
17845
+ queryParameters["status"] = requestParameters["status"];
17846
+ }
17847
+ if (requestParameters["to"] != null) {
17848
+ queryParameters["to"] = requestParameters["to"];
17849
+ }
17850
+ if (requestParameters["includeWithheld"] != null) {
17851
+ queryParameters["include_withheld"] = requestParameters["includeWithheld"];
17852
+ }
17853
+ if (requestParameters["limit"] != null) {
17854
+ queryParameters["limit"] = requestParameters["limit"];
17855
+ }
17856
+ if (requestParameters["offset"] != null) {
17857
+ queryParameters["offset"] = requestParameters["offset"];
17858
+ }
17859
+ const headerParameters = {};
17860
+ if (this.configuration && this.configuration.apiKey) {
17861
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
17862
+ }
17863
+ const response = await this.request({
17864
+ path: `/inbound-emails`,
17865
+ method: "GET",
17866
+ headers: headerParameters,
17867
+ query: queryParameters
17868
+ }, initOverrides);
17869
+ return new JSONApiResponse(response, (jsonValue) => InboundEmailListResponseFromJSON(jsonValue));
17870
+ }
17871
+ /**
17872
+ * List inbound (received) emails for the project, newest first. By default only delivered mail (`received`/`processed`) is returned; pass `include_withheld=true` to also see quarantined/dropped.
17873
+ * List received emails
17874
+ */
17875
+ async listInboundEmails(status, to, includeWithheld, limit, offset, initOverrides) {
17876
+ const response = await this.listInboundEmailsRaw({ status, to, includeWithheld, limit, offset }, initOverrides);
17877
+ return await response.value();
17878
+ }
17879
+ };
17880
+ var ListInboundEmailsStatusEnum = {
17881
+ RECEIVED: "received",
17882
+ PROCESSED: "processed",
17883
+ QUARANTINED: "quarantined",
17884
+ DROPPED: "dropped",
17885
+ FAILED: "failed"
17886
+ };
17887
+
16316
17888
  // src/src/apis/InboxApi.ts
16317
17889
  var InboxApi = class extends BaseAPI {
16318
17890
  /**
@@ -17028,6 +18600,266 @@ var ListAllInboxStatusEnum = {
17028
18600
  ARCHIVED: "archived"
17029
18601
  };
17030
18602
 
18603
+ // src/src/apis/MuseApi.ts
18604
+ var MuseApi = class extends BaseAPI {
18605
+ /**
18606
+ * Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
18607
+ * Paginated per-call audit log for Muse
18608
+ */
18609
+ async v1MuseAuditLogGetRaw(initOverrides) {
18610
+ const queryParameters = {};
18611
+ const headerParameters = {};
18612
+ const response = await this.request({
18613
+ path: `/v1/muse/audit-log`,
18614
+ method: "GET",
18615
+ headers: headerParameters,
18616
+ query: queryParameters
18617
+ }, initOverrides);
18618
+ return new VoidApiResponse(response);
18619
+ }
18620
+ /**
18621
+ * Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
18622
+ * Paginated per-call audit log for Muse
18623
+ */
18624
+ async v1MuseAuditLogGet(initOverrides) {
18625
+ await this.v1MuseAuditLogGetRaw(initOverrides);
18626
+ }
18627
+ /**
18628
+ * Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
18629
+ * Stream a pre-send advisory for a draft broadcast
18630
+ */
18631
+ async v1MuseBroadcastsAnalyzePostRaw(initOverrides) {
18632
+ const queryParameters = {};
18633
+ const headerParameters = {};
18634
+ const response = await this.request({
18635
+ path: `/v1/muse/broadcasts/analyze`,
18636
+ method: "POST",
18637
+ headers: headerParameters,
18638
+ query: queryParameters
18639
+ }, initOverrides);
18640
+ return new VoidApiResponse(response);
18641
+ }
18642
+ /**
18643
+ * Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
18644
+ * Stream a pre-send advisory for a draft broadcast
18645
+ */
18646
+ async v1MuseBroadcastsAnalyzePost(initOverrides) {
18647
+ await this.v1MuseBroadcastsAnalyzePostRaw(initOverrides);
18648
+ }
18649
+ /**
18650
+ * Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
18651
+ * Return the current account\'s Zyphr Muse entitlement
18652
+ */
18653
+ async v1MuseEntitlementGetRaw(initOverrides) {
18654
+ const queryParameters = {};
18655
+ const headerParameters = {};
18656
+ const response = await this.request({
18657
+ path: `/v1/muse/entitlement`,
18658
+ method: "GET",
18659
+ headers: headerParameters,
18660
+ query: queryParameters
18661
+ }, initOverrides);
18662
+ return new VoidApiResponse(response);
18663
+ }
18664
+ /**
18665
+ * Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
18666
+ * Return the current account\'s Zyphr Muse entitlement
18667
+ */
18668
+ async v1MuseEntitlementGet(initOverrides) {
18669
+ await this.v1MuseEntitlementGetRaw(initOverrides);
18670
+ }
18671
+ /**
18672
+ * Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
18673
+ * Per-prompt eval baseline snapshots
18674
+ */
18675
+ async v1MuseEvalBaselinesGetRaw(initOverrides) {
18676
+ const queryParameters = {};
18677
+ const headerParameters = {};
18678
+ const response = await this.request({
18679
+ path: `/v1/muse/eval-baselines`,
18680
+ method: "GET",
18681
+ headers: headerParameters,
18682
+ query: queryParameters
18683
+ }, initOverrides);
18684
+ return new VoidApiResponse(response);
18685
+ }
18686
+ /**
18687
+ * Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
18688
+ * Per-prompt eval baseline snapshots
18689
+ */
18690
+ async v1MuseEvalBaselinesGet(initOverrides) {
18691
+ await this.v1MuseEvalBaselinesGetRaw(initOverrides);
18692
+ }
18693
+ /**
18694
+ * Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
18695
+ * Read Muse settings for a project
18696
+ */
18697
+ async v1MuseSettingsProjectIdGetRaw(requestParameters, initOverrides) {
18698
+ if (requestParameters["projectId"] == null) {
18699
+ throw new RequiredError(
18700
+ "projectId",
18701
+ 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdGet().'
18702
+ );
18703
+ }
18704
+ const queryParameters = {};
18705
+ const headerParameters = {};
18706
+ const response = await this.request({
18707
+ path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
18708
+ method: "GET",
18709
+ headers: headerParameters,
18710
+ query: queryParameters
18711
+ }, initOverrides);
18712
+ return new VoidApiResponse(response);
18713
+ }
18714
+ /**
18715
+ * Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
18716
+ * Read Muse settings for a project
18717
+ */
18718
+ async v1MuseSettingsProjectIdGet(projectId, initOverrides) {
18719
+ await this.v1MuseSettingsProjectIdGetRaw({ projectId }, initOverrides);
18720
+ }
18721
+ /**
18722
+ * Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
18723
+ * Update Muse settings for a project (admin or developer only)
18724
+ */
18725
+ async v1MuseSettingsProjectIdPatchRaw(requestParameters, initOverrides) {
18726
+ if (requestParameters["projectId"] == null) {
18727
+ throw new RequiredError(
18728
+ "projectId",
18729
+ 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdPatch().'
18730
+ );
18731
+ }
18732
+ const queryParameters = {};
18733
+ const headerParameters = {};
18734
+ const response = await this.request({
18735
+ path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
18736
+ method: "PATCH",
18737
+ headers: headerParameters,
18738
+ query: queryParameters
18739
+ }, initOverrides);
18740
+ return new VoidApiResponse(response);
18741
+ }
18742
+ /**
18743
+ * Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
18744
+ * Update Muse settings for a project (admin or developer only)
18745
+ */
18746
+ async v1MuseSettingsProjectIdPatch(projectId, initOverrides) {
18747
+ await this.v1MuseSettingsProjectIdPatchRaw({ projectId }, initOverrides);
18748
+ }
18749
+ /**
18750
+ * Suggest 5 ranked subject-line candidates for a template
18751
+ */
18752
+ async v1MuseSubjectsSuggestPostRaw(requestParameters, initOverrides) {
18753
+ if (requestParameters["v1MuseSubjectsSuggestPostRequest"] == null) {
18754
+ throw new RequiredError(
18755
+ "v1MuseSubjectsSuggestPostRequest",
18756
+ 'Required parameter "v1MuseSubjectsSuggestPostRequest" was null or undefined when calling v1MuseSubjectsSuggestPost().'
18757
+ );
18758
+ }
18759
+ const queryParameters = {};
18760
+ const headerParameters = {};
18761
+ headerParameters["Content-Type"] = "application/json";
18762
+ const response = await this.request({
18763
+ path: `/v1/muse/subjects/suggest`,
18764
+ method: "POST",
18765
+ headers: headerParameters,
18766
+ query: queryParameters,
18767
+ body: V1MuseSubjectsSuggestPostRequestToJSON(requestParameters["v1MuseSubjectsSuggestPostRequest"])
18768
+ }, initOverrides);
18769
+ return new VoidApiResponse(response);
18770
+ }
18771
+ /**
18772
+ * Suggest 5 ranked subject-line candidates for a template
18773
+ */
18774
+ async v1MuseSubjectsSuggestPost(v1MuseSubjectsSuggestPostRequest, initOverrides) {
18775
+ await this.v1MuseSubjectsSuggestPostRaw({ v1MuseSubjectsSuggestPostRequest }, initOverrides);
18776
+ }
18777
+ /**
18778
+ * Stream a draft template from a natural-language brief
18779
+ */
18780
+ async v1MuseTemplatesDraftPostRaw(initOverrides) {
18781
+ const queryParameters = {};
18782
+ const headerParameters = {};
18783
+ const response = await this.request({
18784
+ path: `/v1/muse/templates/draft`,
18785
+ method: "POST",
18786
+ headers: headerParameters,
18787
+ query: queryParameters
18788
+ }, initOverrides);
18789
+ return new VoidApiResponse(response);
18790
+ }
18791
+ /**
18792
+ * Stream a draft template from a natural-language brief
18793
+ */
18794
+ async v1MuseTemplatesDraftPost(initOverrides) {
18795
+ await this.v1MuseTemplatesDraftPostRaw(initOverrides);
18796
+ }
18797
+ /**
18798
+ * Stream a rewritten block per the user\'s instruction
18799
+ */
18800
+ async v1MuseTemplatesRewritePostRaw(initOverrides) {
18801
+ const queryParameters = {};
18802
+ const headerParameters = {};
18803
+ const response = await this.request({
18804
+ path: `/v1/muse/templates/rewrite`,
18805
+ method: "POST",
18806
+ headers: headerParameters,
18807
+ query: queryParameters
18808
+ }, initOverrides);
18809
+ return new VoidApiResponse(response);
18810
+ }
18811
+ /**
18812
+ * Stream a rewritten block per the user\'s instruction
18813
+ */
18814
+ async v1MuseTemplatesRewritePost(initOverrides) {
18815
+ await this.v1MuseTemplatesRewritePostRaw(initOverrides);
18816
+ }
18817
+ /**
18818
+ * Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
18819
+ * Per-account Zyphr Muse usage + budget tier
18820
+ */
18821
+ async v1MuseUsageGetRaw(initOverrides) {
18822
+ const queryParameters = {};
18823
+ const headerParameters = {};
18824
+ const response = await this.request({
18825
+ path: `/v1/muse/usage`,
18826
+ method: "GET",
18827
+ headers: headerParameters,
18828
+ query: queryParameters
18829
+ }, initOverrides);
18830
+ return new VoidApiResponse(response);
18831
+ }
18832
+ /**
18833
+ * Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
18834
+ * Per-account Zyphr Muse usage + budget tier
18835
+ */
18836
+ async v1MuseUsageGet(initOverrides) {
18837
+ await this.v1MuseUsageGetRaw(initOverrides);
18838
+ }
18839
+ /**
18840
+ * Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
18841
+ * Stream a generated workflow from a natural-language description
18842
+ */
18843
+ async v1MuseWorkflowsGeneratePostRaw(initOverrides) {
18844
+ const queryParameters = {};
18845
+ const headerParameters = {};
18846
+ const response = await this.request({
18847
+ path: `/v1/muse/workflows/generate`,
18848
+ method: "POST",
18849
+ headers: headerParameters,
18850
+ query: queryParameters
18851
+ }, initOverrides);
18852
+ return new VoidApiResponse(response);
18853
+ }
18854
+ /**
18855
+ * Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
18856
+ * Stream a generated workflow from a natural-language description
18857
+ */
18858
+ async v1MuseWorkflowsGeneratePost(initOverrides) {
18859
+ await this.v1MuseWorkflowsGeneratePostRaw(initOverrides);
18860
+ }
18861
+ };
18862
+
17031
18863
  // src/src/apis/PushApi.ts
17032
18864
  var PushApi = class extends BaseAPI {
17033
18865
  /**
@@ -21028,6 +22860,8 @@ var Zyphr = class {
21028
22860
  topics;
21029
22861
  devices;
21030
22862
  domains;
22863
+ /** Inbound (received) email — read access. Requires the `email:read` scope. */
22864
+ inbound;
21031
22865
  waas;
21032
22866
  auth;
21033
22867
  options;
@@ -21053,6 +22887,7 @@ var Zyphr = class {
21053
22887
  this.topics = new TopicsApi(config);
21054
22888
  this.devices = new DevicesApi(config);
21055
22889
  this.domains = new DomainsApi(config);
22890
+ this.inbound = new InboundEmailApi(config);
21056
22891
  this.waas = {
21057
22892
  applications: new WaaSApplicationsApi(config),
21058
22893
  eventTypes: new WaaSEventTypesApi(config),
@@ -21070,6 +22905,9 @@ var Zyphr = class {
21070
22905
  mfa: new AuthMFAApi(config),
21071
22906
  magicLinks: new AuthMagicLinksApi(config),
21072
22907
  oauth: new AuthOAuthApi(config),
22908
+ // sc-5594 / epic-5587 — Auth-as-a-Service Organizations (Pro/Enterprise).
22909
+ // Sub-tenant CRUD + membership + the active-org switch flow.
22910
+ organizations: new AuthOrganizationsApi(config),
21073
22911
  phone: new AuthPhoneApi(config),
21074
22912
  profile: new AuthUserProfileApi(config),
21075
22913
  webauthn: new AuthWebAuthnApi(config)
@@ -21119,6 +22957,10 @@ export {
21119
22957
  AddDomainRequestFromJSONTyped,
21120
22958
  AddDomainRequestToJSON,
21121
22959
  AddDomainRequestToJSONTyped,
22960
+ AddOrganizationMemberRequestFromJSON,
22961
+ AddOrganizationMemberRequestFromJSONTyped,
22962
+ AddOrganizationMemberRequestToJSON,
22963
+ AddOrganizationMemberRequestToJSONTyped,
21122
22964
  AddTopicSubscribersRequestFromJSON,
21123
22965
  AddTopicSubscribersRequestFromJSONTyped,
21124
22966
  AddTopicSubscribersRequestToJSON,
@@ -21224,6 +23066,7 @@ export {
21224
23066
  AuthMFAApi,
21225
23067
  AuthMagicLinksApi,
21226
23068
  AuthOAuthApi,
23069
+ AuthOrganizationsApi,
21227
23070
  AuthPasswordResetApi,
21228
23071
  AuthPhoneApi,
21229
23072
  AuthRegistrationApi,
@@ -21363,6 +23206,10 @@ export {
21363
23206
  CreateCategoryRequestFromJSONTyped,
21364
23207
  CreateCategoryRequestToJSON,
21365
23208
  CreateCategoryRequestToJSONTyped,
23209
+ CreateOrganizationRequestFromJSON,
23210
+ CreateOrganizationRequestFromJSONTyped,
23211
+ CreateOrganizationRequestToJSON,
23212
+ CreateOrganizationRequestToJSONTyped,
21366
23213
  CreateSubscriberRequestFromJSON,
21367
23214
  CreateSubscriberRequestFromJSONTyped,
21368
23215
  CreateSubscriberRequestToJSON,
@@ -21604,6 +23451,43 @@ export {
21604
23451
  InAppNotificationPriorityEnum,
21605
23452
  InAppNotificationToJSON,
21606
23453
  InAppNotificationToJSONTyped,
23454
+ InboundAttachmentUrlResponseDataFromJSON,
23455
+ InboundAttachmentUrlResponseDataFromJSONTyped,
23456
+ InboundAttachmentUrlResponseDataToJSON,
23457
+ InboundAttachmentUrlResponseDataToJSONTyped,
23458
+ InboundAttachmentUrlResponseFromJSON,
23459
+ InboundAttachmentUrlResponseFromJSONTyped,
23460
+ InboundAttachmentUrlResponseToJSON,
23461
+ InboundAttachmentUrlResponseToJSONTyped,
23462
+ InboundEmailApi,
23463
+ InboundEmailAttachmentFromJSON,
23464
+ InboundEmailAttachmentFromJSONTyped,
23465
+ InboundEmailAttachmentToJSON,
23466
+ InboundEmailAttachmentToJSONTyped,
23467
+ InboundEmailDkimVerdictEnum,
23468
+ InboundEmailDmarcVerdictEnum,
23469
+ InboundEmailFromFromJSON,
23470
+ InboundEmailFromFromJSONTyped,
23471
+ InboundEmailFromJSON,
23472
+ InboundEmailFromJSONTyped,
23473
+ InboundEmailFromToJSON,
23474
+ InboundEmailFromToJSONTyped,
23475
+ InboundEmailListResponseFromJSON,
23476
+ InboundEmailListResponseFromJSONTyped,
23477
+ InboundEmailListResponseMetaFromJSON,
23478
+ InboundEmailListResponseMetaFromJSONTyped,
23479
+ InboundEmailListResponseMetaToJSON,
23480
+ InboundEmailListResponseMetaToJSONTyped,
23481
+ InboundEmailListResponseToJSON,
23482
+ InboundEmailListResponseToJSONTyped,
23483
+ InboundEmailResponseFromJSON,
23484
+ InboundEmailResponseFromJSONTyped,
23485
+ InboundEmailResponseToJSON,
23486
+ InboundEmailResponseToJSONTyped,
23487
+ InboundEmailSpfVerdictEnum,
23488
+ InboundEmailStatusEnum,
23489
+ InboundEmailToJSON,
23490
+ InboundEmailToJSONTyped,
21607
23491
  InboxApi,
21608
23492
  InboxListMetaFromJSON,
21609
23493
  InboxListMetaFromJSONTyped,
@@ -21621,6 +23505,7 @@ export {
21621
23505
  ListAllInboxStatusEnum,
21622
23506
  ListDevicesPlatformEnum,
21623
23507
  ListEmailsStatusEnum,
23508
+ ListInboundEmailsStatusEnum,
21624
23509
  ListPushStatusEnum,
21625
23510
  ListSlackMessagesStatusEnum,
21626
23511
  ListSmsStatusEnum,
@@ -21759,6 +23644,7 @@ export {
21759
23644
  MfaVerifyRequestFromJSONTyped,
21760
23645
  MfaVerifyRequestToJSON,
21761
23646
  MfaVerifyRequestToJSONTyped,
23647
+ MuseApi,
21762
23648
  OAuthAuthorizationUrlResponseDataFromJSON,
21763
23649
  OAuthAuthorizationUrlResponseDataFromJSONTyped,
21764
23650
  OAuthAuthorizationUrlResponseDataToJSON,
@@ -21831,6 +23717,38 @@ export {
21831
23717
  OAuthTokensResponseFromJSONTyped,
21832
23718
  OAuthTokensResponseToJSON,
21833
23719
  OAuthTokensResponseToJSONTyped,
23720
+ OrganizationFromJSON,
23721
+ OrganizationFromJSONTyped,
23722
+ OrganizationListResponseFromJSON,
23723
+ OrganizationListResponseFromJSONTyped,
23724
+ OrganizationListResponseMetaFromJSON,
23725
+ OrganizationListResponseMetaFromJSONTyped,
23726
+ OrganizationListResponseMetaToJSON,
23727
+ OrganizationListResponseMetaToJSONTyped,
23728
+ OrganizationListResponseToJSON,
23729
+ OrganizationListResponseToJSONTyped,
23730
+ OrganizationMembersListResponseFromJSON,
23731
+ OrganizationMembersListResponseFromJSONTyped,
23732
+ OrganizationMembersListResponseToJSON,
23733
+ OrganizationMembersListResponseToJSONTyped,
23734
+ OrganizationMembershipFromJSON,
23735
+ OrganizationMembershipFromJSONTyped,
23736
+ OrganizationMembershipResponseFromJSON,
23737
+ OrganizationMembershipResponseFromJSONTyped,
23738
+ OrganizationMembershipResponseToJSON,
23739
+ OrganizationMembershipResponseToJSONTyped,
23740
+ OrganizationMembershipToJSON,
23741
+ OrganizationMembershipToJSONTyped,
23742
+ OrganizationMembershipWithUserFromJSON,
23743
+ OrganizationMembershipWithUserFromJSONTyped,
23744
+ OrganizationMembershipWithUserToJSON,
23745
+ OrganizationMembershipWithUserToJSONTyped,
23746
+ OrganizationResponseFromJSON,
23747
+ OrganizationResponseFromJSONTyped,
23748
+ OrganizationResponseToJSON,
23749
+ OrganizationResponseToJSONTyped,
23750
+ OrganizationToJSON,
23751
+ OrganizationToJSONTyped,
21834
23752
  PaginationMetaFromJSON,
21835
23753
  PaginationMetaFromJSONTyped,
21836
23754
  PaginationMetaToJSON,
@@ -22190,6 +24108,10 @@ export {
22190
24108
  SessionListResponseFromJSONTyped,
22191
24109
  SessionListResponseToJSON,
22192
24110
  SessionListResponseToJSONTyped,
24111
+ SetDomainInboundRequestFromJSON,
24112
+ SetDomainInboundRequestFromJSONTyped,
24113
+ SetDomainInboundRequestToJSON,
24114
+ SetDomainInboundRequestToJSONTyped,
22193
24115
  SetPreferencesRequestFromJSON,
22194
24116
  SetPreferencesRequestFromJSONTyped,
22195
24117
  SetPreferencesRequestPreferencesInnerFromJSON,
@@ -22301,6 +24223,27 @@ export {
22301
24223
  SuccessResultFromJSONTyped,
22302
24224
  SuccessResultToJSON,
22303
24225
  SuccessResultToJSONTyped,
24226
+ SwitchOrganizationRequestFromJSON,
24227
+ SwitchOrganizationRequestFromJSONTyped,
24228
+ SwitchOrganizationRequestToJSON,
24229
+ SwitchOrganizationRequestToJSONTyped,
24230
+ SwitchOrganizationResponseDataFromJSON,
24231
+ SwitchOrganizationResponseDataFromJSONTyped,
24232
+ SwitchOrganizationResponseDataToJSON,
24233
+ SwitchOrganizationResponseDataToJSONTyped,
24234
+ SwitchOrganizationResponseDataTokensFromJSON,
24235
+ SwitchOrganizationResponseDataTokensFromJSONTyped,
24236
+ SwitchOrganizationResponseDataTokensToJSON,
24237
+ SwitchOrganizationResponseDataTokensToJSONTyped,
24238
+ SwitchOrganizationResponseDataTokensTokenTypeEnum,
24239
+ SwitchOrganizationResponseDataUserFromJSON,
24240
+ SwitchOrganizationResponseDataUserFromJSONTyped,
24241
+ SwitchOrganizationResponseDataUserToJSON,
24242
+ SwitchOrganizationResponseDataUserToJSONTyped,
24243
+ SwitchOrganizationResponseFromJSON,
24244
+ SwitchOrganizationResponseFromJSONTyped,
24245
+ SwitchOrganizationResponseToJSON,
24246
+ SwitchOrganizationResponseToJSONTyped,
22304
24247
  TemplateFromJSON,
22305
24248
  TemplateFromJSONTyped,
22306
24249
  TemplateListResponseFromJSON,
@@ -22418,6 +24361,14 @@ export {
22418
24361
  UpdateEndUserRequestFromJSONTyped,
22419
24362
  UpdateEndUserRequestToJSON,
22420
24363
  UpdateEndUserRequestToJSONTyped,
24364
+ UpdateOrganizationMemberRoleRequestFromJSON,
24365
+ UpdateOrganizationMemberRoleRequestFromJSONTyped,
24366
+ UpdateOrganizationMemberRoleRequestToJSON,
24367
+ UpdateOrganizationMemberRoleRequestToJSONTyped,
24368
+ UpdateOrganizationRequestFromJSON,
24369
+ UpdateOrganizationRequestFromJSONTyped,
24370
+ UpdateOrganizationRequestToJSON,
24371
+ UpdateOrganizationRequestToJSONTyped,
22421
24372
  UpdateSubscriberPreferencesRequestFromJSON,
22422
24373
  UpdateSubscriberPreferencesRequestFromJSONTyped,
22423
24374
  UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
@@ -22476,6 +24427,11 @@ export {
22476
24427
  UserDevicesDeleteResponseToJSON,
22477
24428
  UserDevicesDeleteResponseToJSONTyped,
22478
24429
  UtilityApi,
24430
+ V1MuseSubjectsSuggestPostRequestChannelEnum,
24431
+ V1MuseSubjectsSuggestPostRequestFromJSON,
24432
+ V1MuseSubjectsSuggestPostRequestFromJSONTyped,
24433
+ V1MuseSubjectsSuggestPostRequestToJSON,
24434
+ V1MuseSubjectsSuggestPostRequestToJSONTyped,
22479
24435
  ValidateResetTokenRequestFromJSON,
22480
24436
  ValidateResetTokenRequestFromJSONTyped,
22481
24437
  ValidateResetTokenRequestToJSON,
@@ -22821,6 +24777,7 @@ export {
22821
24777
  instanceOfAddDomain200Response,
22822
24778
  instanceOfAddDomain200ResponseMeta,
22823
24779
  instanceOfAddDomainRequest,
24780
+ instanceOfAddOrganizationMemberRequest,
22824
24781
  instanceOfAddTopicSubscribersRequest,
22825
24782
  instanceOfApiError,
22826
24783
  instanceOfApiErrorError,
@@ -22875,6 +24832,7 @@ export {
22875
24832
  instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
22876
24833
  instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
22877
24834
  instanceOfCreateCategoryRequest,
24835
+ instanceOfCreateOrganizationRequest,
22878
24836
  instanceOfCreateSubscriberRequest,
22879
24837
  instanceOfCreateTemplateRequest,
22880
24838
  instanceOfCreateTopicRequest,
@@ -22931,6 +24889,14 @@ export {
22931
24889
  instanceOfGetWaaSEndpoint200Response,
22932
24890
  instanceOfGetWaaSUsage200Response,
22933
24891
  instanceOfInAppNotification,
24892
+ instanceOfInboundAttachmentUrlResponse,
24893
+ instanceOfInboundAttachmentUrlResponseData,
24894
+ instanceOfInboundEmail,
24895
+ instanceOfInboundEmailAttachment,
24896
+ instanceOfInboundEmailFrom,
24897
+ instanceOfInboundEmailListResponse,
24898
+ instanceOfInboundEmailListResponseMeta,
24899
+ instanceOfInboundEmailResponse,
22934
24900
  instanceOfInboxListMeta,
22935
24901
  instanceOfInboxListResponse,
22936
24902
  instanceOfInboxNotificationResponse,
@@ -22984,6 +24950,14 @@ export {
22984
24950
  instanceOfOAuthTokensRefreshResponseData,
22985
24951
  instanceOfOAuthTokensResponse,
22986
24952
  instanceOfOAuthTokensResponseData,
24953
+ instanceOfOrganization,
24954
+ instanceOfOrganizationListResponse,
24955
+ instanceOfOrganizationListResponseMeta,
24956
+ instanceOfOrganizationMembersListResponse,
24957
+ instanceOfOrganizationMembership,
24958
+ instanceOfOrganizationMembershipResponse,
24959
+ instanceOfOrganizationMembershipWithUser,
24960
+ instanceOfOrganizationResponse,
22987
24961
  instanceOfPaginationMeta,
22988
24962
  instanceOfPasswordRequirements,
22989
24963
  instanceOfPasswordRequirementsResponse,
@@ -23070,6 +25044,7 @@ export {
23070
25044
  instanceOfSessionListResponse,
23071
25045
  instanceOfSessionListResponseData,
23072
25046
  instanceOfSessionListResponseDataSessionInfo,
25047
+ instanceOfSetDomainInboundRequest,
23073
25048
  instanceOfSetPreferencesRequest,
23074
25049
  instanceOfSetPreferencesRequestPreferencesInner,
23075
25050
  instanceOfSignInAnonymouslyRequest,
@@ -23096,6 +25071,11 @@ export {
23096
25071
  instanceOfSubscriberPreference,
23097
25072
  instanceOfSubscriberResponse,
23098
25073
  instanceOfSuccessResult,
25074
+ instanceOfSwitchOrganizationRequest,
25075
+ instanceOfSwitchOrganizationResponse,
25076
+ instanceOfSwitchOrganizationResponseData,
25077
+ instanceOfSwitchOrganizationResponseDataTokens,
25078
+ instanceOfSwitchOrganizationResponseDataUser,
23099
25079
  instanceOfTemplate,
23100
25080
  instanceOfTemplateListResponse,
23101
25081
  instanceOfTemplateRenderResponse,
@@ -23124,6 +25104,8 @@ export {
23124
25104
  instanceOfUnsubscribeResponse,
23125
25105
  instanceOfUpdateCategoryRequest,
23126
25106
  instanceOfUpdateEndUserRequest,
25107
+ instanceOfUpdateOrganizationMemberRoleRequest,
25108
+ instanceOfUpdateOrganizationRequest,
23127
25109
  instanceOfUpdateSubscriberPreferencesRequest,
23128
25110
  instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
23129
25111
  instanceOfUpdateSubscriberRequest,
@@ -23137,6 +25119,7 @@ export {
23137
25119
  instanceOfUpsertSmsConfigRequest,
23138
25120
  instanceOfUserDevicesDeleteResponse,
23139
25121
  instanceOfUserDevicesDeleteResponseData,
25122
+ instanceOfV1MuseSubjectsSuggestPostRequest,
23140
25123
  instanceOfValidateResetTokenRequest,
23141
25124
  instanceOfValidateResetTokenResponse,
23142
25125
  instanceOfValidateResetTokenResponseData,