@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.
- package/dist/index.cjs +2245 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3139 -933
- package/dist/index.d.ts +3139 -933
- package/dist/index.js +2100 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +30 -0
- package/src/client.ts +9 -0
- package/src/src/apis/AuthOrganizationsApi.ts +823 -0
- package/src/src/apis/AuthUserProfileApi.ts +62 -0
- package/src/src/apis/DomainsApi.ts +73 -0
- package/src/src/apis/InboundEmailApi.ts +264 -0
- package/src/src/apis/MuseApi.ts +531 -0
- package/src/src/apis/index.ts +3 -0
- package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
- package/src/src/models/CreateOrganizationRequest.ts +82 -0
- package/src/src/models/InboundAttachmentUrlResponse.ts +88 -0
- package/src/src/models/InboundAttachmentUrlResponseData.ts +81 -0
- package/src/src/models/InboundEmail.ts +247 -0
- package/src/src/models/InboundEmailAttachment.ts +89 -0
- package/src/src/models/InboundEmailFrom.ts +73 -0
- package/src/src/models/InboundEmailListResponse.ts +88 -0
- package/src/src/models/InboundEmailListResponseMeta.ts +89 -0
- package/src/src/models/InboundEmailResponse.ts +88 -0
- package/src/src/models/LoginRequest.ts +12 -0
- package/src/src/models/Organization.ts +137 -0
- package/src/src/models/OrganizationListResponse.ts +90 -0
- package/src/src/models/OrganizationListResponseMeta.ts +73 -0
- package/src/src/models/OrganizationMembersListResponse.ts +90 -0
- package/src/src/models/OrganizationMembership.ts +119 -0
- package/src/src/models/OrganizationMembershipResponse.ts +90 -0
- package/src/src/models/OrganizationMembershipWithUser.ts +135 -0
- package/src/src/models/OrganizationResponse.ts +90 -0
- package/src/src/models/RegisterRequest.ts +23 -0
- package/src/src/models/SetDomainInboundRequest.ts +65 -0
- package/src/src/models/SwitchOrganizationRequest.ts +75 -0
- package/src/src/models/SwitchOrganizationResponse.ts +90 -0
- package/src/src/models/SwitchOrganizationResponseData.ts +99 -0
- package/src/src/models/SwitchOrganizationResponseDataTokens.ts +103 -0
- package/src/src/models/SwitchOrganizationResponseDataUser.ts +73 -0
- package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +66 -0
- package/src/src/models/UpdateOrganizationRequest.ts +81 -0
- package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +105 -0
- package/src/src/models/index.ts +27 -0
package/dist/index.cjs
CHANGED
|
@@ -32,6 +32,10 @@ __export(index_exports, {
|
|
|
32
32
|
AddDomainRequestFromJSONTyped: () => AddDomainRequestFromJSONTyped,
|
|
33
33
|
AddDomainRequestToJSON: () => AddDomainRequestToJSON,
|
|
34
34
|
AddDomainRequestToJSONTyped: () => AddDomainRequestToJSONTyped,
|
|
35
|
+
AddOrganizationMemberRequestFromJSON: () => AddOrganizationMemberRequestFromJSON,
|
|
36
|
+
AddOrganizationMemberRequestFromJSONTyped: () => AddOrganizationMemberRequestFromJSONTyped,
|
|
37
|
+
AddOrganizationMemberRequestToJSON: () => AddOrganizationMemberRequestToJSON,
|
|
38
|
+
AddOrganizationMemberRequestToJSONTyped: () => AddOrganizationMemberRequestToJSONTyped,
|
|
35
39
|
AddTopicSubscribersRequestFromJSON: () => AddTopicSubscribersRequestFromJSON,
|
|
36
40
|
AddTopicSubscribersRequestFromJSONTyped: () => AddTopicSubscribersRequestFromJSONTyped,
|
|
37
41
|
AddTopicSubscribersRequestToJSON: () => AddTopicSubscribersRequestToJSON,
|
|
@@ -137,6 +141,7 @@ __export(index_exports, {
|
|
|
137
141
|
AuthMFAApi: () => AuthMFAApi,
|
|
138
142
|
AuthMagicLinksApi: () => AuthMagicLinksApi,
|
|
139
143
|
AuthOAuthApi: () => AuthOAuthApi,
|
|
144
|
+
AuthOrganizationsApi: () => AuthOrganizationsApi,
|
|
140
145
|
AuthPasswordResetApi: () => AuthPasswordResetApi,
|
|
141
146
|
AuthPhoneApi: () => AuthPhoneApi,
|
|
142
147
|
AuthRegistrationApi: () => AuthRegistrationApi,
|
|
@@ -276,6 +281,10 @@ __export(index_exports, {
|
|
|
276
281
|
CreateCategoryRequestFromJSONTyped: () => CreateCategoryRequestFromJSONTyped,
|
|
277
282
|
CreateCategoryRequestToJSON: () => CreateCategoryRequestToJSON,
|
|
278
283
|
CreateCategoryRequestToJSONTyped: () => CreateCategoryRequestToJSONTyped,
|
|
284
|
+
CreateOrganizationRequestFromJSON: () => CreateOrganizationRequestFromJSON,
|
|
285
|
+
CreateOrganizationRequestFromJSONTyped: () => CreateOrganizationRequestFromJSONTyped,
|
|
286
|
+
CreateOrganizationRequestToJSON: () => CreateOrganizationRequestToJSON,
|
|
287
|
+
CreateOrganizationRequestToJSONTyped: () => CreateOrganizationRequestToJSONTyped,
|
|
279
288
|
CreateSubscriberRequestFromJSON: () => CreateSubscriberRequestFromJSON,
|
|
280
289
|
CreateSubscriberRequestFromJSONTyped: () => CreateSubscriberRequestFromJSONTyped,
|
|
281
290
|
CreateSubscriberRequestToJSON: () => CreateSubscriberRequestToJSON,
|
|
@@ -517,6 +526,43 @@ __export(index_exports, {
|
|
|
517
526
|
InAppNotificationPriorityEnum: () => InAppNotificationPriorityEnum,
|
|
518
527
|
InAppNotificationToJSON: () => InAppNotificationToJSON,
|
|
519
528
|
InAppNotificationToJSONTyped: () => InAppNotificationToJSONTyped,
|
|
529
|
+
InboundAttachmentUrlResponseDataFromJSON: () => InboundAttachmentUrlResponseDataFromJSON,
|
|
530
|
+
InboundAttachmentUrlResponseDataFromJSONTyped: () => InboundAttachmentUrlResponseDataFromJSONTyped,
|
|
531
|
+
InboundAttachmentUrlResponseDataToJSON: () => InboundAttachmentUrlResponseDataToJSON,
|
|
532
|
+
InboundAttachmentUrlResponseDataToJSONTyped: () => InboundAttachmentUrlResponseDataToJSONTyped,
|
|
533
|
+
InboundAttachmentUrlResponseFromJSON: () => InboundAttachmentUrlResponseFromJSON,
|
|
534
|
+
InboundAttachmentUrlResponseFromJSONTyped: () => InboundAttachmentUrlResponseFromJSONTyped,
|
|
535
|
+
InboundAttachmentUrlResponseToJSON: () => InboundAttachmentUrlResponseToJSON,
|
|
536
|
+
InboundAttachmentUrlResponseToJSONTyped: () => InboundAttachmentUrlResponseToJSONTyped,
|
|
537
|
+
InboundEmailApi: () => InboundEmailApi,
|
|
538
|
+
InboundEmailAttachmentFromJSON: () => InboundEmailAttachmentFromJSON,
|
|
539
|
+
InboundEmailAttachmentFromJSONTyped: () => InboundEmailAttachmentFromJSONTyped,
|
|
540
|
+
InboundEmailAttachmentToJSON: () => InboundEmailAttachmentToJSON,
|
|
541
|
+
InboundEmailAttachmentToJSONTyped: () => InboundEmailAttachmentToJSONTyped,
|
|
542
|
+
InboundEmailDkimVerdictEnum: () => InboundEmailDkimVerdictEnum,
|
|
543
|
+
InboundEmailDmarcVerdictEnum: () => InboundEmailDmarcVerdictEnum,
|
|
544
|
+
InboundEmailFromFromJSON: () => InboundEmailFromFromJSON,
|
|
545
|
+
InboundEmailFromFromJSONTyped: () => InboundEmailFromFromJSONTyped,
|
|
546
|
+
InboundEmailFromJSON: () => InboundEmailFromJSON,
|
|
547
|
+
InboundEmailFromJSONTyped: () => InboundEmailFromJSONTyped,
|
|
548
|
+
InboundEmailFromToJSON: () => InboundEmailFromToJSON,
|
|
549
|
+
InboundEmailFromToJSONTyped: () => InboundEmailFromToJSONTyped,
|
|
550
|
+
InboundEmailListResponseFromJSON: () => InboundEmailListResponseFromJSON,
|
|
551
|
+
InboundEmailListResponseFromJSONTyped: () => InboundEmailListResponseFromJSONTyped,
|
|
552
|
+
InboundEmailListResponseMetaFromJSON: () => InboundEmailListResponseMetaFromJSON,
|
|
553
|
+
InboundEmailListResponseMetaFromJSONTyped: () => InboundEmailListResponseMetaFromJSONTyped,
|
|
554
|
+
InboundEmailListResponseMetaToJSON: () => InboundEmailListResponseMetaToJSON,
|
|
555
|
+
InboundEmailListResponseMetaToJSONTyped: () => InboundEmailListResponseMetaToJSONTyped,
|
|
556
|
+
InboundEmailListResponseToJSON: () => InboundEmailListResponseToJSON,
|
|
557
|
+
InboundEmailListResponseToJSONTyped: () => InboundEmailListResponseToJSONTyped,
|
|
558
|
+
InboundEmailResponseFromJSON: () => InboundEmailResponseFromJSON,
|
|
559
|
+
InboundEmailResponseFromJSONTyped: () => InboundEmailResponseFromJSONTyped,
|
|
560
|
+
InboundEmailResponseToJSON: () => InboundEmailResponseToJSON,
|
|
561
|
+
InboundEmailResponseToJSONTyped: () => InboundEmailResponseToJSONTyped,
|
|
562
|
+
InboundEmailSpfVerdictEnum: () => InboundEmailSpfVerdictEnum,
|
|
563
|
+
InboundEmailStatusEnum: () => InboundEmailStatusEnum,
|
|
564
|
+
InboundEmailToJSON: () => InboundEmailToJSON,
|
|
565
|
+
InboundEmailToJSONTyped: () => InboundEmailToJSONTyped,
|
|
520
566
|
InboxApi: () => InboxApi,
|
|
521
567
|
InboxListMetaFromJSON: () => InboxListMetaFromJSON,
|
|
522
568
|
InboxListMetaFromJSONTyped: () => InboxListMetaFromJSONTyped,
|
|
@@ -534,6 +580,7 @@ __export(index_exports, {
|
|
|
534
580
|
ListAllInboxStatusEnum: () => ListAllInboxStatusEnum,
|
|
535
581
|
ListDevicesPlatformEnum: () => ListDevicesPlatformEnum,
|
|
536
582
|
ListEmailsStatusEnum: () => ListEmailsStatusEnum,
|
|
583
|
+
ListInboundEmailsStatusEnum: () => ListInboundEmailsStatusEnum,
|
|
537
584
|
ListPushStatusEnum: () => ListPushStatusEnum,
|
|
538
585
|
ListSlackMessagesStatusEnum: () => ListSlackMessagesStatusEnum,
|
|
539
586
|
ListSmsStatusEnum: () => ListSmsStatusEnum,
|
|
@@ -672,6 +719,7 @@ __export(index_exports, {
|
|
|
672
719
|
MfaVerifyRequestFromJSONTyped: () => MfaVerifyRequestFromJSONTyped,
|
|
673
720
|
MfaVerifyRequestToJSON: () => MfaVerifyRequestToJSON,
|
|
674
721
|
MfaVerifyRequestToJSONTyped: () => MfaVerifyRequestToJSONTyped,
|
|
722
|
+
MuseApi: () => MuseApi,
|
|
675
723
|
OAuthAuthorizationUrlResponseDataFromJSON: () => OAuthAuthorizationUrlResponseDataFromJSON,
|
|
676
724
|
OAuthAuthorizationUrlResponseDataFromJSONTyped: () => OAuthAuthorizationUrlResponseDataFromJSONTyped,
|
|
677
725
|
OAuthAuthorizationUrlResponseDataToJSON: () => OAuthAuthorizationUrlResponseDataToJSON,
|
|
@@ -744,6 +792,38 @@ __export(index_exports, {
|
|
|
744
792
|
OAuthTokensResponseFromJSONTyped: () => OAuthTokensResponseFromJSONTyped,
|
|
745
793
|
OAuthTokensResponseToJSON: () => OAuthTokensResponseToJSON,
|
|
746
794
|
OAuthTokensResponseToJSONTyped: () => OAuthTokensResponseToJSONTyped,
|
|
795
|
+
OrganizationFromJSON: () => OrganizationFromJSON,
|
|
796
|
+
OrganizationFromJSONTyped: () => OrganizationFromJSONTyped,
|
|
797
|
+
OrganizationListResponseFromJSON: () => OrganizationListResponseFromJSON,
|
|
798
|
+
OrganizationListResponseFromJSONTyped: () => OrganizationListResponseFromJSONTyped,
|
|
799
|
+
OrganizationListResponseMetaFromJSON: () => OrganizationListResponseMetaFromJSON,
|
|
800
|
+
OrganizationListResponseMetaFromJSONTyped: () => OrganizationListResponseMetaFromJSONTyped,
|
|
801
|
+
OrganizationListResponseMetaToJSON: () => OrganizationListResponseMetaToJSON,
|
|
802
|
+
OrganizationListResponseMetaToJSONTyped: () => OrganizationListResponseMetaToJSONTyped,
|
|
803
|
+
OrganizationListResponseToJSON: () => OrganizationListResponseToJSON,
|
|
804
|
+
OrganizationListResponseToJSONTyped: () => OrganizationListResponseToJSONTyped,
|
|
805
|
+
OrganizationMembersListResponseFromJSON: () => OrganizationMembersListResponseFromJSON,
|
|
806
|
+
OrganizationMembersListResponseFromJSONTyped: () => OrganizationMembersListResponseFromJSONTyped,
|
|
807
|
+
OrganizationMembersListResponseToJSON: () => OrganizationMembersListResponseToJSON,
|
|
808
|
+
OrganizationMembersListResponseToJSONTyped: () => OrganizationMembersListResponseToJSONTyped,
|
|
809
|
+
OrganizationMembershipFromJSON: () => OrganizationMembershipFromJSON,
|
|
810
|
+
OrganizationMembershipFromJSONTyped: () => OrganizationMembershipFromJSONTyped,
|
|
811
|
+
OrganizationMembershipResponseFromJSON: () => OrganizationMembershipResponseFromJSON,
|
|
812
|
+
OrganizationMembershipResponseFromJSONTyped: () => OrganizationMembershipResponseFromJSONTyped,
|
|
813
|
+
OrganizationMembershipResponseToJSON: () => OrganizationMembershipResponseToJSON,
|
|
814
|
+
OrganizationMembershipResponseToJSONTyped: () => OrganizationMembershipResponseToJSONTyped,
|
|
815
|
+
OrganizationMembershipToJSON: () => OrganizationMembershipToJSON,
|
|
816
|
+
OrganizationMembershipToJSONTyped: () => OrganizationMembershipToJSONTyped,
|
|
817
|
+
OrganizationMembershipWithUserFromJSON: () => OrganizationMembershipWithUserFromJSON,
|
|
818
|
+
OrganizationMembershipWithUserFromJSONTyped: () => OrganizationMembershipWithUserFromJSONTyped,
|
|
819
|
+
OrganizationMembershipWithUserToJSON: () => OrganizationMembershipWithUserToJSON,
|
|
820
|
+
OrganizationMembershipWithUserToJSONTyped: () => OrganizationMembershipWithUserToJSONTyped,
|
|
821
|
+
OrganizationResponseFromJSON: () => OrganizationResponseFromJSON,
|
|
822
|
+
OrganizationResponseFromJSONTyped: () => OrganizationResponseFromJSONTyped,
|
|
823
|
+
OrganizationResponseToJSON: () => OrganizationResponseToJSON,
|
|
824
|
+
OrganizationResponseToJSONTyped: () => OrganizationResponseToJSONTyped,
|
|
825
|
+
OrganizationToJSON: () => OrganizationToJSON,
|
|
826
|
+
OrganizationToJSONTyped: () => OrganizationToJSONTyped,
|
|
747
827
|
PaginationMetaFromJSON: () => PaginationMetaFromJSON,
|
|
748
828
|
PaginationMetaFromJSONTyped: () => PaginationMetaFromJSONTyped,
|
|
749
829
|
PaginationMetaToJSON: () => PaginationMetaToJSON,
|
|
@@ -1103,6 +1183,10 @@ __export(index_exports, {
|
|
|
1103
1183
|
SessionListResponseFromJSONTyped: () => SessionListResponseFromJSONTyped,
|
|
1104
1184
|
SessionListResponseToJSON: () => SessionListResponseToJSON,
|
|
1105
1185
|
SessionListResponseToJSONTyped: () => SessionListResponseToJSONTyped,
|
|
1186
|
+
SetDomainInboundRequestFromJSON: () => SetDomainInboundRequestFromJSON,
|
|
1187
|
+
SetDomainInboundRequestFromJSONTyped: () => SetDomainInboundRequestFromJSONTyped,
|
|
1188
|
+
SetDomainInboundRequestToJSON: () => SetDomainInboundRequestToJSON,
|
|
1189
|
+
SetDomainInboundRequestToJSONTyped: () => SetDomainInboundRequestToJSONTyped,
|
|
1106
1190
|
SetPreferencesRequestFromJSON: () => SetPreferencesRequestFromJSON,
|
|
1107
1191
|
SetPreferencesRequestFromJSONTyped: () => SetPreferencesRequestFromJSONTyped,
|
|
1108
1192
|
SetPreferencesRequestPreferencesInnerFromJSON: () => SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -1214,6 +1298,27 @@ __export(index_exports, {
|
|
|
1214
1298
|
SuccessResultFromJSONTyped: () => SuccessResultFromJSONTyped,
|
|
1215
1299
|
SuccessResultToJSON: () => SuccessResultToJSON,
|
|
1216
1300
|
SuccessResultToJSONTyped: () => SuccessResultToJSONTyped,
|
|
1301
|
+
SwitchOrganizationRequestFromJSON: () => SwitchOrganizationRequestFromJSON,
|
|
1302
|
+
SwitchOrganizationRequestFromJSONTyped: () => SwitchOrganizationRequestFromJSONTyped,
|
|
1303
|
+
SwitchOrganizationRequestToJSON: () => SwitchOrganizationRequestToJSON,
|
|
1304
|
+
SwitchOrganizationRequestToJSONTyped: () => SwitchOrganizationRequestToJSONTyped,
|
|
1305
|
+
SwitchOrganizationResponseDataFromJSON: () => SwitchOrganizationResponseDataFromJSON,
|
|
1306
|
+
SwitchOrganizationResponseDataFromJSONTyped: () => SwitchOrganizationResponseDataFromJSONTyped,
|
|
1307
|
+
SwitchOrganizationResponseDataToJSON: () => SwitchOrganizationResponseDataToJSON,
|
|
1308
|
+
SwitchOrganizationResponseDataToJSONTyped: () => SwitchOrganizationResponseDataToJSONTyped,
|
|
1309
|
+
SwitchOrganizationResponseDataTokensFromJSON: () => SwitchOrganizationResponseDataTokensFromJSON,
|
|
1310
|
+
SwitchOrganizationResponseDataTokensFromJSONTyped: () => SwitchOrganizationResponseDataTokensFromJSONTyped,
|
|
1311
|
+
SwitchOrganizationResponseDataTokensToJSON: () => SwitchOrganizationResponseDataTokensToJSON,
|
|
1312
|
+
SwitchOrganizationResponseDataTokensToJSONTyped: () => SwitchOrganizationResponseDataTokensToJSONTyped,
|
|
1313
|
+
SwitchOrganizationResponseDataTokensTokenTypeEnum: () => SwitchOrganizationResponseDataTokensTokenTypeEnum,
|
|
1314
|
+
SwitchOrganizationResponseDataUserFromJSON: () => SwitchOrganizationResponseDataUserFromJSON,
|
|
1315
|
+
SwitchOrganizationResponseDataUserFromJSONTyped: () => SwitchOrganizationResponseDataUserFromJSONTyped,
|
|
1316
|
+
SwitchOrganizationResponseDataUserToJSON: () => SwitchOrganizationResponseDataUserToJSON,
|
|
1317
|
+
SwitchOrganizationResponseDataUserToJSONTyped: () => SwitchOrganizationResponseDataUserToJSONTyped,
|
|
1318
|
+
SwitchOrganizationResponseFromJSON: () => SwitchOrganizationResponseFromJSON,
|
|
1319
|
+
SwitchOrganizationResponseFromJSONTyped: () => SwitchOrganizationResponseFromJSONTyped,
|
|
1320
|
+
SwitchOrganizationResponseToJSON: () => SwitchOrganizationResponseToJSON,
|
|
1321
|
+
SwitchOrganizationResponseToJSONTyped: () => SwitchOrganizationResponseToJSONTyped,
|
|
1217
1322
|
TemplateFromJSON: () => TemplateFromJSON,
|
|
1218
1323
|
TemplateFromJSONTyped: () => TemplateFromJSONTyped,
|
|
1219
1324
|
TemplateListResponseFromJSON: () => TemplateListResponseFromJSON,
|
|
@@ -1331,6 +1436,14 @@ __export(index_exports, {
|
|
|
1331
1436
|
UpdateEndUserRequestFromJSONTyped: () => UpdateEndUserRequestFromJSONTyped,
|
|
1332
1437
|
UpdateEndUserRequestToJSON: () => UpdateEndUserRequestToJSON,
|
|
1333
1438
|
UpdateEndUserRequestToJSONTyped: () => UpdateEndUserRequestToJSONTyped,
|
|
1439
|
+
UpdateOrganizationMemberRoleRequestFromJSON: () => UpdateOrganizationMemberRoleRequestFromJSON,
|
|
1440
|
+
UpdateOrganizationMemberRoleRequestFromJSONTyped: () => UpdateOrganizationMemberRoleRequestFromJSONTyped,
|
|
1441
|
+
UpdateOrganizationMemberRoleRequestToJSON: () => UpdateOrganizationMemberRoleRequestToJSON,
|
|
1442
|
+
UpdateOrganizationMemberRoleRequestToJSONTyped: () => UpdateOrganizationMemberRoleRequestToJSONTyped,
|
|
1443
|
+
UpdateOrganizationRequestFromJSON: () => UpdateOrganizationRequestFromJSON,
|
|
1444
|
+
UpdateOrganizationRequestFromJSONTyped: () => UpdateOrganizationRequestFromJSONTyped,
|
|
1445
|
+
UpdateOrganizationRequestToJSON: () => UpdateOrganizationRequestToJSON,
|
|
1446
|
+
UpdateOrganizationRequestToJSONTyped: () => UpdateOrganizationRequestToJSONTyped,
|
|
1334
1447
|
UpdateSubscriberPreferencesRequestFromJSON: () => UpdateSubscriberPreferencesRequestFromJSON,
|
|
1335
1448
|
UpdateSubscriberPreferencesRequestFromJSONTyped: () => UpdateSubscriberPreferencesRequestFromJSONTyped,
|
|
1336
1449
|
UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum: () => UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
|
|
@@ -1389,6 +1502,11 @@ __export(index_exports, {
|
|
|
1389
1502
|
UserDevicesDeleteResponseToJSON: () => UserDevicesDeleteResponseToJSON,
|
|
1390
1503
|
UserDevicesDeleteResponseToJSONTyped: () => UserDevicesDeleteResponseToJSONTyped,
|
|
1391
1504
|
UtilityApi: () => UtilityApi,
|
|
1505
|
+
V1MuseSubjectsSuggestPostRequestChannelEnum: () => V1MuseSubjectsSuggestPostRequestChannelEnum,
|
|
1506
|
+
V1MuseSubjectsSuggestPostRequestFromJSON: () => V1MuseSubjectsSuggestPostRequestFromJSON,
|
|
1507
|
+
V1MuseSubjectsSuggestPostRequestFromJSONTyped: () => V1MuseSubjectsSuggestPostRequestFromJSONTyped,
|
|
1508
|
+
V1MuseSubjectsSuggestPostRequestToJSON: () => V1MuseSubjectsSuggestPostRequestToJSON,
|
|
1509
|
+
V1MuseSubjectsSuggestPostRequestToJSONTyped: () => V1MuseSubjectsSuggestPostRequestToJSONTyped,
|
|
1392
1510
|
ValidateResetTokenRequestFromJSON: () => ValidateResetTokenRequestFromJSON,
|
|
1393
1511
|
ValidateResetTokenRequestFromJSONTyped: () => ValidateResetTokenRequestFromJSONTyped,
|
|
1394
1512
|
ValidateResetTokenRequestToJSON: () => ValidateResetTokenRequestToJSON,
|
|
@@ -1734,6 +1852,7 @@ __export(index_exports, {
|
|
|
1734
1852
|
instanceOfAddDomain200Response: () => instanceOfAddDomain200Response,
|
|
1735
1853
|
instanceOfAddDomain200ResponseMeta: () => instanceOfAddDomain200ResponseMeta,
|
|
1736
1854
|
instanceOfAddDomainRequest: () => instanceOfAddDomainRequest,
|
|
1855
|
+
instanceOfAddOrganizationMemberRequest: () => instanceOfAddOrganizationMemberRequest,
|
|
1737
1856
|
instanceOfAddTopicSubscribersRequest: () => instanceOfAddTopicSubscribersRequest,
|
|
1738
1857
|
instanceOfApiError: () => instanceOfApiError,
|
|
1739
1858
|
instanceOfApiErrorError: () => instanceOfApiErrorError,
|
|
@@ -1788,6 +1907,7 @@ __export(index_exports, {
|
|
|
1788
1907
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUser: () => instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
|
|
1789
1908
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUserName: () => instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
|
|
1790
1909
|
instanceOfCreateCategoryRequest: () => instanceOfCreateCategoryRequest,
|
|
1910
|
+
instanceOfCreateOrganizationRequest: () => instanceOfCreateOrganizationRequest,
|
|
1791
1911
|
instanceOfCreateSubscriberRequest: () => instanceOfCreateSubscriberRequest,
|
|
1792
1912
|
instanceOfCreateTemplateRequest: () => instanceOfCreateTemplateRequest,
|
|
1793
1913
|
instanceOfCreateTopicRequest: () => instanceOfCreateTopicRequest,
|
|
@@ -1844,6 +1964,14 @@ __export(index_exports, {
|
|
|
1844
1964
|
instanceOfGetWaaSEndpoint200Response: () => instanceOfGetWaaSEndpoint200Response,
|
|
1845
1965
|
instanceOfGetWaaSUsage200Response: () => instanceOfGetWaaSUsage200Response,
|
|
1846
1966
|
instanceOfInAppNotification: () => instanceOfInAppNotification,
|
|
1967
|
+
instanceOfInboundAttachmentUrlResponse: () => instanceOfInboundAttachmentUrlResponse,
|
|
1968
|
+
instanceOfInboundAttachmentUrlResponseData: () => instanceOfInboundAttachmentUrlResponseData,
|
|
1969
|
+
instanceOfInboundEmail: () => instanceOfInboundEmail,
|
|
1970
|
+
instanceOfInboundEmailAttachment: () => instanceOfInboundEmailAttachment,
|
|
1971
|
+
instanceOfInboundEmailFrom: () => instanceOfInboundEmailFrom,
|
|
1972
|
+
instanceOfInboundEmailListResponse: () => instanceOfInboundEmailListResponse,
|
|
1973
|
+
instanceOfInboundEmailListResponseMeta: () => instanceOfInboundEmailListResponseMeta,
|
|
1974
|
+
instanceOfInboundEmailResponse: () => instanceOfInboundEmailResponse,
|
|
1847
1975
|
instanceOfInboxListMeta: () => instanceOfInboxListMeta,
|
|
1848
1976
|
instanceOfInboxListResponse: () => instanceOfInboxListResponse,
|
|
1849
1977
|
instanceOfInboxNotificationResponse: () => instanceOfInboxNotificationResponse,
|
|
@@ -1897,6 +2025,14 @@ __export(index_exports, {
|
|
|
1897
2025
|
instanceOfOAuthTokensRefreshResponseData: () => instanceOfOAuthTokensRefreshResponseData,
|
|
1898
2026
|
instanceOfOAuthTokensResponse: () => instanceOfOAuthTokensResponse,
|
|
1899
2027
|
instanceOfOAuthTokensResponseData: () => instanceOfOAuthTokensResponseData,
|
|
2028
|
+
instanceOfOrganization: () => instanceOfOrganization,
|
|
2029
|
+
instanceOfOrganizationListResponse: () => instanceOfOrganizationListResponse,
|
|
2030
|
+
instanceOfOrganizationListResponseMeta: () => instanceOfOrganizationListResponseMeta,
|
|
2031
|
+
instanceOfOrganizationMembersListResponse: () => instanceOfOrganizationMembersListResponse,
|
|
2032
|
+
instanceOfOrganizationMembership: () => instanceOfOrganizationMembership,
|
|
2033
|
+
instanceOfOrganizationMembershipResponse: () => instanceOfOrganizationMembershipResponse,
|
|
2034
|
+
instanceOfOrganizationMembershipWithUser: () => instanceOfOrganizationMembershipWithUser,
|
|
2035
|
+
instanceOfOrganizationResponse: () => instanceOfOrganizationResponse,
|
|
1900
2036
|
instanceOfPaginationMeta: () => instanceOfPaginationMeta,
|
|
1901
2037
|
instanceOfPasswordRequirements: () => instanceOfPasswordRequirements,
|
|
1902
2038
|
instanceOfPasswordRequirementsResponse: () => instanceOfPasswordRequirementsResponse,
|
|
@@ -1983,6 +2119,7 @@ __export(index_exports, {
|
|
|
1983
2119
|
instanceOfSessionListResponse: () => instanceOfSessionListResponse,
|
|
1984
2120
|
instanceOfSessionListResponseData: () => instanceOfSessionListResponseData,
|
|
1985
2121
|
instanceOfSessionListResponseDataSessionInfo: () => instanceOfSessionListResponseDataSessionInfo,
|
|
2122
|
+
instanceOfSetDomainInboundRequest: () => instanceOfSetDomainInboundRequest,
|
|
1986
2123
|
instanceOfSetPreferencesRequest: () => instanceOfSetPreferencesRequest,
|
|
1987
2124
|
instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
|
|
1988
2125
|
instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
|
|
@@ -2009,6 +2146,11 @@ __export(index_exports, {
|
|
|
2009
2146
|
instanceOfSubscriberPreference: () => instanceOfSubscriberPreference,
|
|
2010
2147
|
instanceOfSubscriberResponse: () => instanceOfSubscriberResponse,
|
|
2011
2148
|
instanceOfSuccessResult: () => instanceOfSuccessResult,
|
|
2149
|
+
instanceOfSwitchOrganizationRequest: () => instanceOfSwitchOrganizationRequest,
|
|
2150
|
+
instanceOfSwitchOrganizationResponse: () => instanceOfSwitchOrganizationResponse,
|
|
2151
|
+
instanceOfSwitchOrganizationResponseData: () => instanceOfSwitchOrganizationResponseData,
|
|
2152
|
+
instanceOfSwitchOrganizationResponseDataTokens: () => instanceOfSwitchOrganizationResponseDataTokens,
|
|
2153
|
+
instanceOfSwitchOrganizationResponseDataUser: () => instanceOfSwitchOrganizationResponseDataUser,
|
|
2012
2154
|
instanceOfTemplate: () => instanceOfTemplate,
|
|
2013
2155
|
instanceOfTemplateListResponse: () => instanceOfTemplateListResponse,
|
|
2014
2156
|
instanceOfTemplateRenderResponse: () => instanceOfTemplateRenderResponse,
|
|
@@ -2037,6 +2179,8 @@ __export(index_exports, {
|
|
|
2037
2179
|
instanceOfUnsubscribeResponse: () => instanceOfUnsubscribeResponse,
|
|
2038
2180
|
instanceOfUpdateCategoryRequest: () => instanceOfUpdateCategoryRequest,
|
|
2039
2181
|
instanceOfUpdateEndUserRequest: () => instanceOfUpdateEndUserRequest,
|
|
2182
|
+
instanceOfUpdateOrganizationMemberRoleRequest: () => instanceOfUpdateOrganizationMemberRoleRequest,
|
|
2183
|
+
instanceOfUpdateOrganizationRequest: () => instanceOfUpdateOrganizationRequest,
|
|
2040
2184
|
instanceOfUpdateSubscriberPreferencesRequest: () => instanceOfUpdateSubscriberPreferencesRequest,
|
|
2041
2185
|
instanceOfUpdateSubscriberPreferencesRequestPreferencesInner: () => instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
|
|
2042
2186
|
instanceOfUpdateSubscriberRequest: () => instanceOfUpdateSubscriberRequest,
|
|
@@ -2050,6 +2194,7 @@ __export(index_exports, {
|
|
|
2050
2194
|
instanceOfUpsertSmsConfigRequest: () => instanceOfUpsertSmsConfigRequest,
|
|
2051
2195
|
instanceOfUserDevicesDeleteResponse: () => instanceOfUserDevicesDeleteResponse,
|
|
2052
2196
|
instanceOfUserDevicesDeleteResponseData: () => instanceOfUserDevicesDeleteResponseData,
|
|
2197
|
+
instanceOfV1MuseSubjectsSuggestPostRequest: () => instanceOfV1MuseSubjectsSuggestPostRequest,
|
|
2053
2198
|
instanceOfValidateResetTokenRequest: () => instanceOfValidateResetTokenRequest,
|
|
2054
2199
|
instanceOfValidateResetTokenResponse: () => instanceOfValidateResetTokenResponse,
|
|
2055
2200
|
instanceOfValidateResetTokenResponseData: () => instanceOfValidateResetTokenResponseData,
|
|
@@ -2637,6 +2782,36 @@ function AddDomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2637
2782
|
};
|
|
2638
2783
|
}
|
|
2639
2784
|
|
|
2785
|
+
// src/src/models/AddOrganizationMemberRequest.ts
|
|
2786
|
+
function instanceOfAddOrganizationMemberRequest(value) {
|
|
2787
|
+
if (!("userId" in value) || value["userId"] === void 0) return false;
|
|
2788
|
+
return true;
|
|
2789
|
+
}
|
|
2790
|
+
function AddOrganizationMemberRequestFromJSON(json) {
|
|
2791
|
+
return AddOrganizationMemberRequestFromJSONTyped(json, false);
|
|
2792
|
+
}
|
|
2793
|
+
function AddOrganizationMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2794
|
+
if (json == null) {
|
|
2795
|
+
return json;
|
|
2796
|
+
}
|
|
2797
|
+
return {
|
|
2798
|
+
"userId": json["user_id"],
|
|
2799
|
+
"role": json["role"] == null ? void 0 : json["role"]
|
|
2800
|
+
};
|
|
2801
|
+
}
|
|
2802
|
+
function AddOrganizationMemberRequestToJSON(json) {
|
|
2803
|
+
return AddOrganizationMemberRequestToJSONTyped(json, false);
|
|
2804
|
+
}
|
|
2805
|
+
function AddOrganizationMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2806
|
+
if (value == null) {
|
|
2807
|
+
return value;
|
|
2808
|
+
}
|
|
2809
|
+
return {
|
|
2810
|
+
"user_id": value["userId"],
|
|
2811
|
+
"role": value["role"]
|
|
2812
|
+
};
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2640
2815
|
// src/src/models/AddTopicSubscribersRequest.ts
|
|
2641
2816
|
function instanceOfAddTopicSubscribersRequest(value) {
|
|
2642
2817
|
if (!("subscriberIds" in value) || value["subscriberIds"] === void 0) return false;
|
|
@@ -4619,6 +4794,38 @@ function CreateCategoryRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4619
4794
|
};
|
|
4620
4795
|
}
|
|
4621
4796
|
|
|
4797
|
+
// src/src/models/CreateOrganizationRequest.ts
|
|
4798
|
+
function instanceOfCreateOrganizationRequest(value) {
|
|
4799
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
4800
|
+
return true;
|
|
4801
|
+
}
|
|
4802
|
+
function CreateOrganizationRequestFromJSON(json) {
|
|
4803
|
+
return CreateOrganizationRequestFromJSONTyped(json, false);
|
|
4804
|
+
}
|
|
4805
|
+
function CreateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
4806
|
+
if (json == null) {
|
|
4807
|
+
return json;
|
|
4808
|
+
}
|
|
4809
|
+
return {
|
|
4810
|
+
"name": json["name"],
|
|
4811
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
4812
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
4813
|
+
};
|
|
4814
|
+
}
|
|
4815
|
+
function CreateOrganizationRequestToJSON(json) {
|
|
4816
|
+
return CreateOrganizationRequestToJSONTyped(json, false);
|
|
4817
|
+
}
|
|
4818
|
+
function CreateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4819
|
+
if (value == null) {
|
|
4820
|
+
return value;
|
|
4821
|
+
}
|
|
4822
|
+
return {
|
|
4823
|
+
"name": value["name"],
|
|
4824
|
+
"slug": value["slug"],
|
|
4825
|
+
"metadata": value["metadata"]
|
|
4826
|
+
};
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4622
4829
|
// src/src/models/CreateSubscriberRequest.ts
|
|
4623
4830
|
function instanceOfCreateSubscriberRequest(value) {
|
|
4624
4831
|
if (!("externalId" in value) || value["externalId"] === void 0) return false;
|
|
@@ -6775,6 +6982,301 @@ function InAppNotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6775
6982
|
};
|
|
6776
6983
|
}
|
|
6777
6984
|
|
|
6985
|
+
// src/src/models/InboundAttachmentUrlResponseData.ts
|
|
6986
|
+
function instanceOfInboundAttachmentUrlResponseData(value) {
|
|
6987
|
+
return true;
|
|
6988
|
+
}
|
|
6989
|
+
function InboundAttachmentUrlResponseDataFromJSON(json) {
|
|
6990
|
+
return InboundAttachmentUrlResponseDataFromJSONTyped(json, false);
|
|
6991
|
+
}
|
|
6992
|
+
function InboundAttachmentUrlResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6993
|
+
if (json == null) {
|
|
6994
|
+
return json;
|
|
6995
|
+
}
|
|
6996
|
+
return {
|
|
6997
|
+
"downloadUrl": json["download_url"] == null ? void 0 : json["download_url"],
|
|
6998
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
6999
|
+
"contentType": json["content_type"] == null ? void 0 : json["content_type"]
|
|
7000
|
+
};
|
|
7001
|
+
}
|
|
7002
|
+
function InboundAttachmentUrlResponseDataToJSON(json) {
|
|
7003
|
+
return InboundAttachmentUrlResponseDataToJSONTyped(json, false);
|
|
7004
|
+
}
|
|
7005
|
+
function InboundAttachmentUrlResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7006
|
+
if (value == null) {
|
|
7007
|
+
return value;
|
|
7008
|
+
}
|
|
7009
|
+
return {
|
|
7010
|
+
"download_url": value["downloadUrl"],
|
|
7011
|
+
"filename": value["filename"],
|
|
7012
|
+
"content_type": value["contentType"]
|
|
7013
|
+
};
|
|
7014
|
+
}
|
|
7015
|
+
|
|
7016
|
+
// src/src/models/InboundAttachmentUrlResponse.ts
|
|
7017
|
+
function instanceOfInboundAttachmentUrlResponse(value) {
|
|
7018
|
+
return true;
|
|
7019
|
+
}
|
|
7020
|
+
function InboundAttachmentUrlResponseFromJSON(json) {
|
|
7021
|
+
return InboundAttachmentUrlResponseFromJSONTyped(json, false);
|
|
7022
|
+
}
|
|
7023
|
+
function InboundAttachmentUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7024
|
+
if (json == null) {
|
|
7025
|
+
return json;
|
|
7026
|
+
}
|
|
7027
|
+
return {
|
|
7028
|
+
"data": json["data"] == null ? void 0 : InboundAttachmentUrlResponseDataFromJSON(json["data"]),
|
|
7029
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7030
|
+
};
|
|
7031
|
+
}
|
|
7032
|
+
function InboundAttachmentUrlResponseToJSON(json) {
|
|
7033
|
+
return InboundAttachmentUrlResponseToJSONTyped(json, false);
|
|
7034
|
+
}
|
|
7035
|
+
function InboundAttachmentUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7036
|
+
if (value == null) {
|
|
7037
|
+
return value;
|
|
7038
|
+
}
|
|
7039
|
+
return {
|
|
7040
|
+
"data": InboundAttachmentUrlResponseDataToJSON(value["data"]),
|
|
7041
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
7042
|
+
};
|
|
7043
|
+
}
|
|
7044
|
+
|
|
7045
|
+
// src/src/models/InboundEmailFrom.ts
|
|
7046
|
+
function instanceOfInboundEmailFrom(value) {
|
|
7047
|
+
return true;
|
|
7048
|
+
}
|
|
7049
|
+
function InboundEmailFromFromJSON(json) {
|
|
7050
|
+
return InboundEmailFromFromJSONTyped(json, false);
|
|
7051
|
+
}
|
|
7052
|
+
function InboundEmailFromFromJSONTyped(json, ignoreDiscriminator) {
|
|
7053
|
+
if (json == null) {
|
|
7054
|
+
return json;
|
|
7055
|
+
}
|
|
7056
|
+
return {
|
|
7057
|
+
"email": json["email"] == null ? void 0 : json["email"],
|
|
7058
|
+
"name": json["name"] == null ? void 0 : json["name"]
|
|
7059
|
+
};
|
|
7060
|
+
}
|
|
7061
|
+
function InboundEmailFromToJSON(json) {
|
|
7062
|
+
return InboundEmailFromToJSONTyped(json, false);
|
|
7063
|
+
}
|
|
7064
|
+
function InboundEmailFromToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7065
|
+
if (value == null) {
|
|
7066
|
+
return value;
|
|
7067
|
+
}
|
|
7068
|
+
return {
|
|
7069
|
+
"email": value["email"],
|
|
7070
|
+
"name": value["name"]
|
|
7071
|
+
};
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
// src/src/models/InboundEmailAttachment.ts
|
|
7075
|
+
function instanceOfInboundEmailAttachment(value) {
|
|
7076
|
+
return true;
|
|
7077
|
+
}
|
|
7078
|
+
function InboundEmailAttachmentFromJSON(json) {
|
|
7079
|
+
return InboundEmailAttachmentFromJSONTyped(json, false);
|
|
7080
|
+
}
|
|
7081
|
+
function InboundEmailAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
7082
|
+
if (json == null) {
|
|
7083
|
+
return json;
|
|
7084
|
+
}
|
|
7085
|
+
return {
|
|
7086
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
7087
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
7088
|
+
"contentType": json["content_type"] == null ? void 0 : json["content_type"],
|
|
7089
|
+
"size": json["size"] == null ? void 0 : json["size"]
|
|
7090
|
+
};
|
|
7091
|
+
}
|
|
7092
|
+
function InboundEmailAttachmentToJSON(json) {
|
|
7093
|
+
return InboundEmailAttachmentToJSONTyped(json, false);
|
|
7094
|
+
}
|
|
7095
|
+
function InboundEmailAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7096
|
+
if (value == null) {
|
|
7097
|
+
return value;
|
|
7098
|
+
}
|
|
7099
|
+
return {
|
|
7100
|
+
"id": value["id"],
|
|
7101
|
+
"filename": value["filename"],
|
|
7102
|
+
"content_type": value["contentType"],
|
|
7103
|
+
"size": value["size"]
|
|
7104
|
+
};
|
|
7105
|
+
}
|
|
7106
|
+
|
|
7107
|
+
// src/src/models/InboundEmail.ts
|
|
7108
|
+
var InboundEmailSpfVerdictEnum = {
|
|
7109
|
+
PASS: "PASS",
|
|
7110
|
+
FAIL: "FAIL",
|
|
7111
|
+
GRAY: "GRAY",
|
|
7112
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7113
|
+
};
|
|
7114
|
+
var InboundEmailDkimVerdictEnum = {
|
|
7115
|
+
PASS: "PASS",
|
|
7116
|
+
FAIL: "FAIL",
|
|
7117
|
+
GRAY: "GRAY",
|
|
7118
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7119
|
+
};
|
|
7120
|
+
var InboundEmailDmarcVerdictEnum = {
|
|
7121
|
+
PASS: "PASS",
|
|
7122
|
+
FAIL: "FAIL",
|
|
7123
|
+
GRAY: "GRAY",
|
|
7124
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7125
|
+
};
|
|
7126
|
+
var InboundEmailStatusEnum = {
|
|
7127
|
+
RECEIVED: "received",
|
|
7128
|
+
PROCESSED: "processed",
|
|
7129
|
+
QUARANTINED: "quarantined",
|
|
7130
|
+
DROPPED: "dropped",
|
|
7131
|
+
FAILED: "failed"
|
|
7132
|
+
};
|
|
7133
|
+
function instanceOfInboundEmail(value) {
|
|
7134
|
+
return true;
|
|
7135
|
+
}
|
|
7136
|
+
function InboundEmailFromJSON(json) {
|
|
7137
|
+
return InboundEmailFromJSONTyped(json, false);
|
|
7138
|
+
}
|
|
7139
|
+
function InboundEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
7140
|
+
if (json == null) {
|
|
7141
|
+
return json;
|
|
7142
|
+
}
|
|
7143
|
+
return {
|
|
7144
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
7145
|
+
"toEmail": json["to_email"] == null ? void 0 : json["to_email"],
|
|
7146
|
+
"from": json["from"] == null ? void 0 : InboundEmailFromFromJSON(json["from"]),
|
|
7147
|
+
"cc": json["cc"] == null ? void 0 : json["cc"],
|
|
7148
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
7149
|
+
"textBody": json["text_body"] == null ? void 0 : json["text_body"],
|
|
7150
|
+
"htmlBody": json["html_body"] == null ? void 0 : json["html_body"],
|
|
7151
|
+
"inReplyTo": json["in_reply_to"] == null ? void 0 : json["in_reply_to"],
|
|
7152
|
+
"repliedToMessageId": json["replied_to_message_id"] == null ? void 0 : json["replied_to_message_id"],
|
|
7153
|
+
"verified": json["verified"] == null ? void 0 : json["verified"],
|
|
7154
|
+
"spfVerdict": json["spf_verdict"] == null ? void 0 : json["spf_verdict"],
|
|
7155
|
+
"dkimVerdict": json["dkim_verdict"] == null ? void 0 : json["dkim_verdict"],
|
|
7156
|
+
"dmarcVerdict": json["dmarc_verdict"] == null ? void 0 : json["dmarc_verdict"],
|
|
7157
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
7158
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"].map(InboundEmailAttachmentFromJSON),
|
|
7159
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
7160
|
+
};
|
|
7161
|
+
}
|
|
7162
|
+
function InboundEmailToJSON(json) {
|
|
7163
|
+
return InboundEmailToJSONTyped(json, false);
|
|
7164
|
+
}
|
|
7165
|
+
function InboundEmailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7166
|
+
if (value == null) {
|
|
7167
|
+
return value;
|
|
7168
|
+
}
|
|
7169
|
+
return {
|
|
7170
|
+
"id": value["id"],
|
|
7171
|
+
"to_email": value["toEmail"],
|
|
7172
|
+
"from": InboundEmailFromToJSON(value["from"]),
|
|
7173
|
+
"cc": value["cc"],
|
|
7174
|
+
"subject": value["subject"],
|
|
7175
|
+
"text_body": value["textBody"],
|
|
7176
|
+
"html_body": value["htmlBody"],
|
|
7177
|
+
"in_reply_to": value["inReplyTo"],
|
|
7178
|
+
"replied_to_message_id": value["repliedToMessageId"],
|
|
7179
|
+
"verified": value["verified"],
|
|
7180
|
+
"spf_verdict": value["spfVerdict"],
|
|
7181
|
+
"dkim_verdict": value["dkimVerdict"],
|
|
7182
|
+
"dmarc_verdict": value["dmarcVerdict"],
|
|
7183
|
+
"status": value["status"],
|
|
7184
|
+
"attachments": value["attachments"] == null ? void 0 : value["attachments"].map(InboundEmailAttachmentToJSON),
|
|
7185
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
7186
|
+
};
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
// src/src/models/InboundEmailListResponseMeta.ts
|
|
7190
|
+
function instanceOfInboundEmailListResponseMeta(value) {
|
|
7191
|
+
return true;
|
|
7192
|
+
}
|
|
7193
|
+
function InboundEmailListResponseMetaFromJSON(json) {
|
|
7194
|
+
return InboundEmailListResponseMetaFromJSONTyped(json, false);
|
|
7195
|
+
}
|
|
7196
|
+
function InboundEmailListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
7197
|
+
if (json == null) {
|
|
7198
|
+
return json;
|
|
7199
|
+
}
|
|
7200
|
+
return {
|
|
7201
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
7202
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
7203
|
+
"limit": json["limit"] == null ? void 0 : json["limit"],
|
|
7204
|
+
"offset": json["offset"] == null ? void 0 : json["offset"]
|
|
7205
|
+
};
|
|
7206
|
+
}
|
|
7207
|
+
function InboundEmailListResponseMetaToJSON(json) {
|
|
7208
|
+
return InboundEmailListResponseMetaToJSONTyped(json, false);
|
|
7209
|
+
}
|
|
7210
|
+
function InboundEmailListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7211
|
+
if (value == null) {
|
|
7212
|
+
return value;
|
|
7213
|
+
}
|
|
7214
|
+
return {
|
|
7215
|
+
"request_id": value["requestId"],
|
|
7216
|
+
"total": value["total"],
|
|
7217
|
+
"limit": value["limit"],
|
|
7218
|
+
"offset": value["offset"]
|
|
7219
|
+
};
|
|
7220
|
+
}
|
|
7221
|
+
|
|
7222
|
+
// src/src/models/InboundEmailListResponse.ts
|
|
7223
|
+
function instanceOfInboundEmailListResponse(value) {
|
|
7224
|
+
return true;
|
|
7225
|
+
}
|
|
7226
|
+
function InboundEmailListResponseFromJSON(json) {
|
|
7227
|
+
return InboundEmailListResponseFromJSONTyped(json, false);
|
|
7228
|
+
}
|
|
7229
|
+
function InboundEmailListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7230
|
+
if (json == null) {
|
|
7231
|
+
return json;
|
|
7232
|
+
}
|
|
7233
|
+
return {
|
|
7234
|
+
"data": json["data"] == null ? void 0 : json["data"].map(InboundEmailFromJSON),
|
|
7235
|
+
"meta": json["meta"] == null ? void 0 : InboundEmailListResponseMetaFromJSON(json["meta"])
|
|
7236
|
+
};
|
|
7237
|
+
}
|
|
7238
|
+
function InboundEmailListResponseToJSON(json) {
|
|
7239
|
+
return InboundEmailListResponseToJSONTyped(json, false);
|
|
7240
|
+
}
|
|
7241
|
+
function InboundEmailListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7242
|
+
if (value == null) {
|
|
7243
|
+
return value;
|
|
7244
|
+
}
|
|
7245
|
+
return {
|
|
7246
|
+
"data": value["data"] == null ? void 0 : value["data"].map(InboundEmailToJSON),
|
|
7247
|
+
"meta": InboundEmailListResponseMetaToJSON(value["meta"])
|
|
7248
|
+
};
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7251
|
+
// src/src/models/InboundEmailResponse.ts
|
|
7252
|
+
function instanceOfInboundEmailResponse(value) {
|
|
7253
|
+
return true;
|
|
7254
|
+
}
|
|
7255
|
+
function InboundEmailResponseFromJSON(json) {
|
|
7256
|
+
return InboundEmailResponseFromJSONTyped(json, false);
|
|
7257
|
+
}
|
|
7258
|
+
function InboundEmailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7259
|
+
if (json == null) {
|
|
7260
|
+
return json;
|
|
7261
|
+
}
|
|
7262
|
+
return {
|
|
7263
|
+
"data": json["data"] == null ? void 0 : InboundEmailFromJSON(json["data"]),
|
|
7264
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7265
|
+
};
|
|
7266
|
+
}
|
|
7267
|
+
function InboundEmailResponseToJSON(json) {
|
|
7268
|
+
return InboundEmailResponseToJSONTyped(json, false);
|
|
7269
|
+
}
|
|
7270
|
+
function InboundEmailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7271
|
+
if (value == null) {
|
|
7272
|
+
return value;
|
|
7273
|
+
}
|
|
7274
|
+
return {
|
|
7275
|
+
"data": InboundEmailToJSON(value["data"]),
|
|
7276
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
7277
|
+
};
|
|
7278
|
+
}
|
|
7279
|
+
|
|
6778
7280
|
// src/src/models/InboxListMeta.ts
|
|
6779
7281
|
function instanceOfInboxListMeta(value) {
|
|
6780
7282
|
return true;
|
|
@@ -7049,7 +7551,8 @@ function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7049
7551
|
return {
|
|
7050
7552
|
"email": json["email"],
|
|
7051
7553
|
"password": json["password"],
|
|
7052
|
-
"customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"]
|
|
7554
|
+
"customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
|
|
7555
|
+
"organizationId": json["organization_id"] == null ? void 0 : json["organization_id"]
|
|
7053
7556
|
};
|
|
7054
7557
|
}
|
|
7055
7558
|
function LoginRequestToJSON(json) {
|
|
@@ -7062,7 +7565,8 @@ function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7062
7565
|
return {
|
|
7063
7566
|
"email": value["email"],
|
|
7064
7567
|
"password": value["password"],
|
|
7065
|
-
"custom_claims": value["customClaims"]
|
|
7568
|
+
"custom_claims": value["customClaims"],
|
|
7569
|
+
"organization_id": value["organizationId"]
|
|
7066
7570
|
};
|
|
7067
7571
|
}
|
|
7068
7572
|
|
|
@@ -8433,44 +8937,342 @@ function OAuthTokensResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
8433
8937
|
};
|
|
8434
8938
|
}
|
|
8435
8939
|
|
|
8436
|
-
// src/src/models/
|
|
8437
|
-
function
|
|
8940
|
+
// src/src/models/Organization.ts
|
|
8941
|
+
function instanceOfOrganization(value) {
|
|
8942
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
8943
|
+
if (!("applicationId" in value) || value["applicationId"] === void 0) return false;
|
|
8944
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
8945
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
8946
|
+
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
8947
|
+
if (!("isDefault" in value) || value["isDefault"] === void 0) return false;
|
|
8948
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
8949
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
8438
8950
|
return true;
|
|
8439
8951
|
}
|
|
8440
|
-
function
|
|
8441
|
-
return
|
|
8952
|
+
function OrganizationFromJSON(json) {
|
|
8953
|
+
return OrganizationFromJSONTyped(json, false);
|
|
8442
8954
|
}
|
|
8443
|
-
function
|
|
8955
|
+
function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
8444
8956
|
if (json == null) {
|
|
8445
8957
|
return json;
|
|
8446
8958
|
}
|
|
8447
8959
|
return {
|
|
8448
|
-
"
|
|
8449
|
-
"
|
|
8450
|
-
"
|
|
8451
|
-
"
|
|
8452
|
-
"
|
|
8453
|
-
"
|
|
8960
|
+
"id": json["id"],
|
|
8961
|
+
"applicationId": json["application_id"],
|
|
8962
|
+
"environmentId": json["environment_id"],
|
|
8963
|
+
"name": json["name"],
|
|
8964
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
8965
|
+
"metadata": json["metadata"],
|
|
8966
|
+
"isDefault": json["is_default"],
|
|
8967
|
+
"createdAt": new Date(json["created_at"]),
|
|
8968
|
+
"updatedAt": new Date(json["updated_at"])
|
|
8454
8969
|
};
|
|
8455
8970
|
}
|
|
8456
|
-
function
|
|
8457
|
-
return
|
|
8971
|
+
function OrganizationToJSON(json) {
|
|
8972
|
+
return OrganizationToJSONTyped(json, false);
|
|
8458
8973
|
}
|
|
8459
|
-
function
|
|
8974
|
+
function OrganizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8460
8975
|
if (value == null) {
|
|
8461
8976
|
return value;
|
|
8462
8977
|
}
|
|
8463
8978
|
return {
|
|
8464
|
-
"
|
|
8465
|
-
"
|
|
8466
|
-
"
|
|
8467
|
-
"
|
|
8468
|
-
"
|
|
8469
|
-
"
|
|
8979
|
+
"id": value["id"],
|
|
8980
|
+
"application_id": value["applicationId"],
|
|
8981
|
+
"environment_id": value["environmentId"],
|
|
8982
|
+
"name": value["name"],
|
|
8983
|
+
"slug": value["slug"],
|
|
8984
|
+
"metadata": value["metadata"],
|
|
8985
|
+
"is_default": value["isDefault"],
|
|
8986
|
+
"created_at": value["createdAt"].toISOString(),
|
|
8987
|
+
"updated_at": value["updatedAt"].toISOString()
|
|
8470
8988
|
};
|
|
8471
8989
|
}
|
|
8472
8990
|
|
|
8473
|
-
// src/src/models/
|
|
8991
|
+
// src/src/models/OrganizationListResponseMeta.ts
|
|
8992
|
+
function instanceOfOrganizationListResponseMeta(value) {
|
|
8993
|
+
return true;
|
|
8994
|
+
}
|
|
8995
|
+
function OrganizationListResponseMetaFromJSON(json) {
|
|
8996
|
+
return OrganizationListResponseMetaFromJSONTyped(json, false);
|
|
8997
|
+
}
|
|
8998
|
+
function OrganizationListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
8999
|
+
if (json == null) {
|
|
9000
|
+
return json;
|
|
9001
|
+
}
|
|
9002
|
+
return {
|
|
9003
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
9004
|
+
"nextCursor": json["next_cursor"] == null ? void 0 : json["next_cursor"]
|
|
9005
|
+
};
|
|
9006
|
+
}
|
|
9007
|
+
function OrganizationListResponseMetaToJSON(json) {
|
|
9008
|
+
return OrganizationListResponseMetaToJSONTyped(json, false);
|
|
9009
|
+
}
|
|
9010
|
+
function OrganizationListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9011
|
+
if (value == null) {
|
|
9012
|
+
return value;
|
|
9013
|
+
}
|
|
9014
|
+
return {
|
|
9015
|
+
"request_id": value["requestId"],
|
|
9016
|
+
"next_cursor": value["nextCursor"]
|
|
9017
|
+
};
|
|
9018
|
+
}
|
|
9019
|
+
|
|
9020
|
+
// src/src/models/OrganizationListResponse.ts
|
|
9021
|
+
function instanceOfOrganizationListResponse(value) {
|
|
9022
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
9023
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
9024
|
+
return true;
|
|
9025
|
+
}
|
|
9026
|
+
function OrganizationListResponseFromJSON(json) {
|
|
9027
|
+
return OrganizationListResponseFromJSONTyped(json, false);
|
|
9028
|
+
}
|
|
9029
|
+
function OrganizationListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9030
|
+
if (json == null) {
|
|
9031
|
+
return json;
|
|
9032
|
+
}
|
|
9033
|
+
return {
|
|
9034
|
+
"data": json["data"].map(OrganizationFromJSON),
|
|
9035
|
+
"meta": OrganizationListResponseMetaFromJSON(json["meta"])
|
|
9036
|
+
};
|
|
9037
|
+
}
|
|
9038
|
+
function OrganizationListResponseToJSON(json) {
|
|
9039
|
+
return OrganizationListResponseToJSONTyped(json, false);
|
|
9040
|
+
}
|
|
9041
|
+
function OrganizationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9042
|
+
if (value == null) {
|
|
9043
|
+
return value;
|
|
9044
|
+
}
|
|
9045
|
+
return {
|
|
9046
|
+
"data": value["data"].map(OrganizationToJSON),
|
|
9047
|
+
"meta": OrganizationListResponseMetaToJSON(value["meta"])
|
|
9048
|
+
};
|
|
9049
|
+
}
|
|
9050
|
+
|
|
9051
|
+
// src/src/models/OrganizationMembershipWithUser.ts
|
|
9052
|
+
function instanceOfOrganizationMembershipWithUser(value) {
|
|
9053
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
9054
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
9055
|
+
if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
|
|
9056
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
9057
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
9058
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
9059
|
+
return true;
|
|
9060
|
+
}
|
|
9061
|
+
function OrganizationMembershipWithUserFromJSON(json) {
|
|
9062
|
+
return OrganizationMembershipWithUserFromJSONTyped(json, false);
|
|
9063
|
+
}
|
|
9064
|
+
function OrganizationMembershipWithUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
9065
|
+
if (json == null) {
|
|
9066
|
+
return json;
|
|
9067
|
+
}
|
|
9068
|
+
return {
|
|
9069
|
+
"id": json["id"],
|
|
9070
|
+
"organizationId": json["organization_id"],
|
|
9071
|
+
"endUserId": json["end_user_id"],
|
|
9072
|
+
"environmentId": json["environment_id"],
|
|
9073
|
+
"role": json["role"] == null ? void 0 : json["role"],
|
|
9074
|
+
"createdAt": new Date(json["created_at"]),
|
|
9075
|
+
"updatedAt": new Date(json["updated_at"]),
|
|
9076
|
+
"email": json["email"] == null ? void 0 : json["email"],
|
|
9077
|
+
"name": json["name"] == null ? void 0 : json["name"]
|
|
9078
|
+
};
|
|
9079
|
+
}
|
|
9080
|
+
function OrganizationMembershipWithUserToJSON(json) {
|
|
9081
|
+
return OrganizationMembershipWithUserToJSONTyped(json, false);
|
|
9082
|
+
}
|
|
9083
|
+
function OrganizationMembershipWithUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9084
|
+
if (value == null) {
|
|
9085
|
+
return value;
|
|
9086
|
+
}
|
|
9087
|
+
return {
|
|
9088
|
+
"id": value["id"],
|
|
9089
|
+
"organization_id": value["organizationId"],
|
|
9090
|
+
"end_user_id": value["endUserId"],
|
|
9091
|
+
"environment_id": value["environmentId"],
|
|
9092
|
+
"role": value["role"],
|
|
9093
|
+
"created_at": value["createdAt"].toISOString(),
|
|
9094
|
+
"updated_at": value["updatedAt"].toISOString(),
|
|
9095
|
+
"email": value["email"],
|
|
9096
|
+
"name": value["name"]
|
|
9097
|
+
};
|
|
9098
|
+
}
|
|
9099
|
+
|
|
9100
|
+
// src/src/models/OrganizationMembersListResponse.ts
|
|
9101
|
+
function instanceOfOrganizationMembersListResponse(value) {
|
|
9102
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
9103
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
9104
|
+
return true;
|
|
9105
|
+
}
|
|
9106
|
+
function OrganizationMembersListResponseFromJSON(json) {
|
|
9107
|
+
return OrganizationMembersListResponseFromJSONTyped(json, false);
|
|
9108
|
+
}
|
|
9109
|
+
function OrganizationMembersListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9110
|
+
if (json == null) {
|
|
9111
|
+
return json;
|
|
9112
|
+
}
|
|
9113
|
+
return {
|
|
9114
|
+
"data": json["data"].map(OrganizationMembershipWithUserFromJSON),
|
|
9115
|
+
"meta": OrganizationListResponseMetaFromJSON(json["meta"])
|
|
9116
|
+
};
|
|
9117
|
+
}
|
|
9118
|
+
function OrganizationMembersListResponseToJSON(json) {
|
|
9119
|
+
return OrganizationMembersListResponseToJSONTyped(json, false);
|
|
9120
|
+
}
|
|
9121
|
+
function OrganizationMembersListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9122
|
+
if (value == null) {
|
|
9123
|
+
return value;
|
|
9124
|
+
}
|
|
9125
|
+
return {
|
|
9126
|
+
"data": value["data"].map(OrganizationMembershipWithUserToJSON),
|
|
9127
|
+
"meta": OrganizationListResponseMetaToJSON(value["meta"])
|
|
9128
|
+
};
|
|
9129
|
+
}
|
|
9130
|
+
|
|
9131
|
+
// src/src/models/OrganizationMembership.ts
|
|
9132
|
+
function instanceOfOrganizationMembership(value) {
|
|
9133
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
9134
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
9135
|
+
if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
|
|
9136
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
9137
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
9138
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
9139
|
+
return true;
|
|
9140
|
+
}
|
|
9141
|
+
function OrganizationMembershipFromJSON(json) {
|
|
9142
|
+
return OrganizationMembershipFromJSONTyped(json, false);
|
|
9143
|
+
}
|
|
9144
|
+
function OrganizationMembershipFromJSONTyped(json, ignoreDiscriminator) {
|
|
9145
|
+
if (json == null) {
|
|
9146
|
+
return json;
|
|
9147
|
+
}
|
|
9148
|
+
return {
|
|
9149
|
+
"id": json["id"],
|
|
9150
|
+
"organizationId": json["organization_id"],
|
|
9151
|
+
"endUserId": json["end_user_id"],
|
|
9152
|
+
"environmentId": json["environment_id"],
|
|
9153
|
+
"role": json["role"] == null ? void 0 : json["role"],
|
|
9154
|
+
"createdAt": new Date(json["created_at"]),
|
|
9155
|
+
"updatedAt": new Date(json["updated_at"])
|
|
9156
|
+
};
|
|
9157
|
+
}
|
|
9158
|
+
function OrganizationMembershipToJSON(json) {
|
|
9159
|
+
return OrganizationMembershipToJSONTyped(json, false);
|
|
9160
|
+
}
|
|
9161
|
+
function OrganizationMembershipToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9162
|
+
if (value == null) {
|
|
9163
|
+
return value;
|
|
9164
|
+
}
|
|
9165
|
+
return {
|
|
9166
|
+
"id": value["id"],
|
|
9167
|
+
"organization_id": value["organizationId"],
|
|
9168
|
+
"end_user_id": value["endUserId"],
|
|
9169
|
+
"environment_id": value["environmentId"],
|
|
9170
|
+
"role": value["role"],
|
|
9171
|
+
"created_at": value["createdAt"].toISOString(),
|
|
9172
|
+
"updated_at": value["updatedAt"].toISOString()
|
|
9173
|
+
};
|
|
9174
|
+
}
|
|
9175
|
+
|
|
9176
|
+
// src/src/models/OrganizationMembershipResponse.ts
|
|
9177
|
+
function instanceOfOrganizationMembershipResponse(value) {
|
|
9178
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
9179
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
9180
|
+
return true;
|
|
9181
|
+
}
|
|
9182
|
+
function OrganizationMembershipResponseFromJSON(json) {
|
|
9183
|
+
return OrganizationMembershipResponseFromJSONTyped(json, false);
|
|
9184
|
+
}
|
|
9185
|
+
function OrganizationMembershipResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9186
|
+
if (json == null) {
|
|
9187
|
+
return json;
|
|
9188
|
+
}
|
|
9189
|
+
return {
|
|
9190
|
+
"data": OrganizationMembershipFromJSON(json["data"]),
|
|
9191
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
9192
|
+
};
|
|
9193
|
+
}
|
|
9194
|
+
function OrganizationMembershipResponseToJSON(json) {
|
|
9195
|
+
return OrganizationMembershipResponseToJSONTyped(json, false);
|
|
9196
|
+
}
|
|
9197
|
+
function OrganizationMembershipResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9198
|
+
if (value == null) {
|
|
9199
|
+
return value;
|
|
9200
|
+
}
|
|
9201
|
+
return {
|
|
9202
|
+
"data": OrganizationMembershipToJSON(value["data"]),
|
|
9203
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
9204
|
+
};
|
|
9205
|
+
}
|
|
9206
|
+
|
|
9207
|
+
// src/src/models/OrganizationResponse.ts
|
|
9208
|
+
function instanceOfOrganizationResponse(value) {
|
|
9209
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
9210
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
9211
|
+
return true;
|
|
9212
|
+
}
|
|
9213
|
+
function OrganizationResponseFromJSON(json) {
|
|
9214
|
+
return OrganizationResponseFromJSONTyped(json, false);
|
|
9215
|
+
}
|
|
9216
|
+
function OrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9217
|
+
if (json == null) {
|
|
9218
|
+
return json;
|
|
9219
|
+
}
|
|
9220
|
+
return {
|
|
9221
|
+
"data": OrganizationFromJSON(json["data"]),
|
|
9222
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
9223
|
+
};
|
|
9224
|
+
}
|
|
9225
|
+
function OrganizationResponseToJSON(json) {
|
|
9226
|
+
return OrganizationResponseToJSONTyped(json, false);
|
|
9227
|
+
}
|
|
9228
|
+
function OrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9229
|
+
if (value == null) {
|
|
9230
|
+
return value;
|
|
9231
|
+
}
|
|
9232
|
+
return {
|
|
9233
|
+
"data": OrganizationToJSON(value["data"]),
|
|
9234
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
9235
|
+
};
|
|
9236
|
+
}
|
|
9237
|
+
|
|
9238
|
+
// src/src/models/PasswordRequirements.ts
|
|
9239
|
+
function instanceOfPasswordRequirements(value) {
|
|
9240
|
+
return true;
|
|
9241
|
+
}
|
|
9242
|
+
function PasswordRequirementsFromJSON(json) {
|
|
9243
|
+
return PasswordRequirementsFromJSONTyped(json, false);
|
|
9244
|
+
}
|
|
9245
|
+
function PasswordRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
9246
|
+
if (json == null) {
|
|
9247
|
+
return json;
|
|
9248
|
+
}
|
|
9249
|
+
return {
|
|
9250
|
+
"minLength": json["min_length"] == null ? void 0 : json["min_length"],
|
|
9251
|
+
"maxLength": json["max_length"] == null ? void 0 : json["max_length"],
|
|
9252
|
+
"requireUppercase": json["require_uppercase"] == null ? void 0 : json["require_uppercase"],
|
|
9253
|
+
"requireLowercase": json["require_lowercase"] == null ? void 0 : json["require_lowercase"],
|
|
9254
|
+
"requireNumbers": json["require_numbers"] == null ? void 0 : json["require_numbers"],
|
|
9255
|
+
"requireSpecial": json["require_special"] == null ? void 0 : json["require_special"]
|
|
9256
|
+
};
|
|
9257
|
+
}
|
|
9258
|
+
function PasswordRequirementsToJSON(json) {
|
|
9259
|
+
return PasswordRequirementsToJSONTyped(json, false);
|
|
9260
|
+
}
|
|
9261
|
+
function PasswordRequirementsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9262
|
+
if (value == null) {
|
|
9263
|
+
return value;
|
|
9264
|
+
}
|
|
9265
|
+
return {
|
|
9266
|
+
"min_length": value["minLength"],
|
|
9267
|
+
"max_length": value["maxLength"],
|
|
9268
|
+
"require_uppercase": value["requireUppercase"],
|
|
9269
|
+
"require_lowercase": value["requireLowercase"],
|
|
9270
|
+
"require_numbers": value["requireNumbers"],
|
|
9271
|
+
"require_special": value["requireSpecial"]
|
|
9272
|
+
};
|
|
9273
|
+
}
|
|
9274
|
+
|
|
9275
|
+
// src/src/models/PasswordRequirementsResponseData.ts
|
|
8474
9276
|
function instanceOfPasswordRequirementsResponseData(value) {
|
|
8475
9277
|
return true;
|
|
8476
9278
|
}
|
|
@@ -9680,7 +10482,9 @@ function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9680
10482
|
"email": json["email"],
|
|
9681
10483
|
"password": json["password"],
|
|
9682
10484
|
"name": json["name"] == null ? void 0 : json["name"],
|
|
9683
|
-
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
10485
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
10486
|
+
"organizationId": json["organization_id"] == null ? void 0 : json["organization_id"],
|
|
10487
|
+
"organizationRole": json["organization_role"] == null ? void 0 : json["organization_role"]
|
|
9684
10488
|
};
|
|
9685
10489
|
}
|
|
9686
10490
|
function RegisterRequestToJSON(json) {
|
|
@@ -9694,7 +10498,9 @@ function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9694
10498
|
"email": value["email"],
|
|
9695
10499
|
"password": value["password"],
|
|
9696
10500
|
"name": value["name"],
|
|
9697
|
-
"metadata": value["metadata"]
|
|
10501
|
+
"metadata": value["metadata"],
|
|
10502
|
+
"organization_id": value["organizationId"],
|
|
10503
|
+
"organization_role": value["organizationRole"]
|
|
9698
10504
|
};
|
|
9699
10505
|
}
|
|
9700
10506
|
|
|
@@ -11443,6 +12249,33 @@ function SessionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11443
12249
|
};
|
|
11444
12250
|
}
|
|
11445
12251
|
|
|
12252
|
+
// src/src/models/SetDomainInboundRequest.ts
|
|
12253
|
+
function instanceOfSetDomainInboundRequest(value) {
|
|
12254
|
+
return true;
|
|
12255
|
+
}
|
|
12256
|
+
function SetDomainInboundRequestFromJSON(json) {
|
|
12257
|
+
return SetDomainInboundRequestFromJSONTyped(json, false);
|
|
12258
|
+
}
|
|
12259
|
+
function SetDomainInboundRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12260
|
+
if (json == null) {
|
|
12261
|
+
return json;
|
|
12262
|
+
}
|
|
12263
|
+
return {
|
|
12264
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"]
|
|
12265
|
+
};
|
|
12266
|
+
}
|
|
12267
|
+
function SetDomainInboundRequestToJSON(json) {
|
|
12268
|
+
return SetDomainInboundRequestToJSONTyped(json, false);
|
|
12269
|
+
}
|
|
12270
|
+
function SetDomainInboundRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12271
|
+
if (value == null) {
|
|
12272
|
+
return value;
|
|
12273
|
+
}
|
|
12274
|
+
return {
|
|
12275
|
+
"enabled": value["enabled"]
|
|
12276
|
+
};
|
|
12277
|
+
}
|
|
12278
|
+
|
|
11446
12279
|
// src/src/models/SetPreferencesRequestPreferencesInner.ts
|
|
11447
12280
|
function instanceOfSetPreferencesRequestPreferencesInner(value) {
|
|
11448
12281
|
return true;
|
|
@@ -12181,76 +13014,241 @@ function SuccessResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
12181
13014
|
};
|
|
12182
13015
|
}
|
|
12183
13016
|
|
|
12184
|
-
// src/src/models/
|
|
12185
|
-
function
|
|
13017
|
+
// src/src/models/SwitchOrganizationRequest.ts
|
|
13018
|
+
function instanceOfSwitchOrganizationRequest(value) {
|
|
13019
|
+
if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
|
|
13020
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
12186
13021
|
return true;
|
|
12187
13022
|
}
|
|
12188
|
-
function
|
|
12189
|
-
return
|
|
13023
|
+
function SwitchOrganizationRequestFromJSON(json) {
|
|
13024
|
+
return SwitchOrganizationRequestFromJSONTyped(json, false);
|
|
12190
13025
|
}
|
|
12191
|
-
function
|
|
13026
|
+
function SwitchOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12192
13027
|
if (json == null) {
|
|
12193
13028
|
return json;
|
|
12194
13029
|
}
|
|
12195
13030
|
return {
|
|
12196
|
-
"
|
|
12197
|
-
"
|
|
12198
|
-
"description": json["description"] == null ? void 0 : json["description"],
|
|
12199
|
-
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
12200
|
-
"html": json["html"] == null ? void 0 : json["html"],
|
|
12201
|
-
"text": json["text"] == null ? void 0 : json["text"],
|
|
12202
|
-
"variables": json["variables"] == null ? void 0 : json["variables"],
|
|
12203
|
-
"version": json["version"] == null ? void 0 : json["version"],
|
|
12204
|
-
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
12205
|
-
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
13031
|
+
"refreshToken": json["refresh_token"],
|
|
13032
|
+
"organizationId": json["organization_id"]
|
|
12206
13033
|
};
|
|
12207
13034
|
}
|
|
12208
|
-
function
|
|
12209
|
-
return
|
|
13035
|
+
function SwitchOrganizationRequestToJSON(json) {
|
|
13036
|
+
return SwitchOrganizationRequestToJSONTyped(json, false);
|
|
12210
13037
|
}
|
|
12211
|
-
function
|
|
13038
|
+
function SwitchOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12212
13039
|
if (value == null) {
|
|
12213
13040
|
return value;
|
|
12214
13041
|
}
|
|
12215
13042
|
return {
|
|
12216
|
-
"
|
|
12217
|
-
"
|
|
12218
|
-
"description": value["description"],
|
|
12219
|
-
"subject": value["subject"],
|
|
12220
|
-
"html": value["html"],
|
|
12221
|
-
"text": value["text"],
|
|
12222
|
-
"version": value["version"],
|
|
12223
|
-
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
12224
|
-
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
13043
|
+
"refresh_token": value["refreshToken"],
|
|
13044
|
+
"organization_id": value["organizationId"]
|
|
12225
13045
|
};
|
|
12226
13046
|
}
|
|
12227
13047
|
|
|
12228
|
-
// src/src/models/
|
|
12229
|
-
function
|
|
13048
|
+
// src/src/models/SwitchOrganizationResponseDataUser.ts
|
|
13049
|
+
function instanceOfSwitchOrganizationResponseDataUser(value) {
|
|
12230
13050
|
return true;
|
|
12231
13051
|
}
|
|
12232
|
-
function
|
|
12233
|
-
return
|
|
13052
|
+
function SwitchOrganizationResponseDataUserFromJSON(json) {
|
|
13053
|
+
return SwitchOrganizationResponseDataUserFromJSONTyped(json, false);
|
|
12234
13054
|
}
|
|
12235
|
-
function
|
|
13055
|
+
function SwitchOrganizationResponseDataUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
12236
13056
|
if (json == null) {
|
|
12237
13057
|
return json;
|
|
12238
13058
|
}
|
|
12239
13059
|
return {
|
|
12240
|
-
"
|
|
12241
|
-
"
|
|
13060
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
13061
|
+
"email": json["email"] == null ? void 0 : json["email"]
|
|
12242
13062
|
};
|
|
12243
13063
|
}
|
|
12244
|
-
function
|
|
12245
|
-
return
|
|
13064
|
+
function SwitchOrganizationResponseDataUserToJSON(json) {
|
|
13065
|
+
return SwitchOrganizationResponseDataUserToJSONTyped(json, false);
|
|
12246
13066
|
}
|
|
12247
|
-
function
|
|
13067
|
+
function SwitchOrganizationResponseDataUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12248
13068
|
if (value == null) {
|
|
12249
13069
|
return value;
|
|
12250
13070
|
}
|
|
12251
13071
|
return {
|
|
12252
|
-
"
|
|
12253
|
-
"
|
|
13072
|
+
"id": value["id"],
|
|
13073
|
+
"email": value["email"]
|
|
13074
|
+
};
|
|
13075
|
+
}
|
|
13076
|
+
|
|
13077
|
+
// src/src/models/SwitchOrganizationResponseDataTokens.ts
|
|
13078
|
+
var SwitchOrganizationResponseDataTokensTokenTypeEnum = {
|
|
13079
|
+
BEARER: "Bearer"
|
|
13080
|
+
};
|
|
13081
|
+
function instanceOfSwitchOrganizationResponseDataTokens(value) {
|
|
13082
|
+
if (!("accessToken" in value) || value["accessToken"] === void 0) return false;
|
|
13083
|
+
if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
|
|
13084
|
+
if (!("expiresIn" in value) || value["expiresIn"] === void 0) return false;
|
|
13085
|
+
if (!("tokenType" in value) || value["tokenType"] === void 0) return false;
|
|
13086
|
+
return true;
|
|
13087
|
+
}
|
|
13088
|
+
function SwitchOrganizationResponseDataTokensFromJSON(json) {
|
|
13089
|
+
return SwitchOrganizationResponseDataTokensFromJSONTyped(json, false);
|
|
13090
|
+
}
|
|
13091
|
+
function SwitchOrganizationResponseDataTokensFromJSONTyped(json, ignoreDiscriminator) {
|
|
13092
|
+
if (json == null) {
|
|
13093
|
+
return json;
|
|
13094
|
+
}
|
|
13095
|
+
return {
|
|
13096
|
+
"accessToken": json["access_token"],
|
|
13097
|
+
"refreshToken": json["refresh_token"],
|
|
13098
|
+
"expiresIn": json["expires_in"],
|
|
13099
|
+
"tokenType": json["token_type"]
|
|
13100
|
+
};
|
|
13101
|
+
}
|
|
13102
|
+
function SwitchOrganizationResponseDataTokensToJSON(json) {
|
|
13103
|
+
return SwitchOrganizationResponseDataTokensToJSONTyped(json, false);
|
|
13104
|
+
}
|
|
13105
|
+
function SwitchOrganizationResponseDataTokensToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13106
|
+
if (value == null) {
|
|
13107
|
+
return value;
|
|
13108
|
+
}
|
|
13109
|
+
return {
|
|
13110
|
+
"access_token": value["accessToken"],
|
|
13111
|
+
"refresh_token": value["refreshToken"],
|
|
13112
|
+
"expires_in": value["expiresIn"],
|
|
13113
|
+
"token_type": value["tokenType"]
|
|
13114
|
+
};
|
|
13115
|
+
}
|
|
13116
|
+
|
|
13117
|
+
// src/src/models/SwitchOrganizationResponseData.ts
|
|
13118
|
+
function instanceOfSwitchOrganizationResponseData(value) {
|
|
13119
|
+
if (!("tokens" in value) || value["tokens"] === void 0) return false;
|
|
13120
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
13121
|
+
if (!("user" in value) || value["user"] === void 0) return false;
|
|
13122
|
+
return true;
|
|
13123
|
+
}
|
|
13124
|
+
function SwitchOrganizationResponseDataFromJSON(json) {
|
|
13125
|
+
return SwitchOrganizationResponseDataFromJSONTyped(json, false);
|
|
13126
|
+
}
|
|
13127
|
+
function SwitchOrganizationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
13128
|
+
if (json == null) {
|
|
13129
|
+
return json;
|
|
13130
|
+
}
|
|
13131
|
+
return {
|
|
13132
|
+
"tokens": SwitchOrganizationResponseDataTokensFromJSON(json["tokens"]),
|
|
13133
|
+
"organizationId": json["organization_id"],
|
|
13134
|
+
"user": SwitchOrganizationResponseDataUserFromJSON(json["user"])
|
|
13135
|
+
};
|
|
13136
|
+
}
|
|
13137
|
+
function SwitchOrganizationResponseDataToJSON(json) {
|
|
13138
|
+
return SwitchOrganizationResponseDataToJSONTyped(json, false);
|
|
13139
|
+
}
|
|
13140
|
+
function SwitchOrganizationResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13141
|
+
if (value == null) {
|
|
13142
|
+
return value;
|
|
13143
|
+
}
|
|
13144
|
+
return {
|
|
13145
|
+
"tokens": SwitchOrganizationResponseDataTokensToJSON(value["tokens"]),
|
|
13146
|
+
"organization_id": value["organizationId"],
|
|
13147
|
+
"user": SwitchOrganizationResponseDataUserToJSON(value["user"])
|
|
13148
|
+
};
|
|
13149
|
+
}
|
|
13150
|
+
|
|
13151
|
+
// src/src/models/SwitchOrganizationResponse.ts
|
|
13152
|
+
function instanceOfSwitchOrganizationResponse(value) {
|
|
13153
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
13154
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
13155
|
+
return true;
|
|
13156
|
+
}
|
|
13157
|
+
function SwitchOrganizationResponseFromJSON(json) {
|
|
13158
|
+
return SwitchOrganizationResponseFromJSONTyped(json, false);
|
|
13159
|
+
}
|
|
13160
|
+
function SwitchOrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13161
|
+
if (json == null) {
|
|
13162
|
+
return json;
|
|
13163
|
+
}
|
|
13164
|
+
return {
|
|
13165
|
+
"data": SwitchOrganizationResponseDataFromJSON(json["data"]),
|
|
13166
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
13167
|
+
};
|
|
13168
|
+
}
|
|
13169
|
+
function SwitchOrganizationResponseToJSON(json) {
|
|
13170
|
+
return SwitchOrganizationResponseToJSONTyped(json, false);
|
|
13171
|
+
}
|
|
13172
|
+
function SwitchOrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13173
|
+
if (value == null) {
|
|
13174
|
+
return value;
|
|
13175
|
+
}
|
|
13176
|
+
return {
|
|
13177
|
+
"data": SwitchOrganizationResponseDataToJSON(value["data"]),
|
|
13178
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
13179
|
+
};
|
|
13180
|
+
}
|
|
13181
|
+
|
|
13182
|
+
// src/src/models/Template.ts
|
|
13183
|
+
function instanceOfTemplate(value) {
|
|
13184
|
+
return true;
|
|
13185
|
+
}
|
|
13186
|
+
function TemplateFromJSON(json) {
|
|
13187
|
+
return TemplateFromJSONTyped(json, false);
|
|
13188
|
+
}
|
|
13189
|
+
function TemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
13190
|
+
if (json == null) {
|
|
13191
|
+
return json;
|
|
13192
|
+
}
|
|
13193
|
+
return {
|
|
13194
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
13195
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
13196
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
13197
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
13198
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
13199
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
13200
|
+
"variables": json["variables"] == null ? void 0 : json["variables"],
|
|
13201
|
+
"version": json["version"] == null ? void 0 : json["version"],
|
|
13202
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
13203
|
+
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
13204
|
+
};
|
|
13205
|
+
}
|
|
13206
|
+
function TemplateToJSON(json) {
|
|
13207
|
+
return TemplateToJSONTyped(json, false);
|
|
13208
|
+
}
|
|
13209
|
+
function TemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13210
|
+
if (value == null) {
|
|
13211
|
+
return value;
|
|
13212
|
+
}
|
|
13213
|
+
return {
|
|
13214
|
+
"id": value["id"],
|
|
13215
|
+
"name": value["name"],
|
|
13216
|
+
"description": value["description"],
|
|
13217
|
+
"subject": value["subject"],
|
|
13218
|
+
"html": value["html"],
|
|
13219
|
+
"text": value["text"],
|
|
13220
|
+
"version": value["version"],
|
|
13221
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
13222
|
+
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
13223
|
+
};
|
|
13224
|
+
}
|
|
13225
|
+
|
|
13226
|
+
// src/src/models/TemplateListResponse.ts
|
|
13227
|
+
function instanceOfTemplateListResponse(value) {
|
|
13228
|
+
return true;
|
|
13229
|
+
}
|
|
13230
|
+
function TemplateListResponseFromJSON(json) {
|
|
13231
|
+
return TemplateListResponseFromJSONTyped(json, false);
|
|
13232
|
+
}
|
|
13233
|
+
function TemplateListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13234
|
+
if (json == null) {
|
|
13235
|
+
return json;
|
|
13236
|
+
}
|
|
13237
|
+
return {
|
|
13238
|
+
"data": json["data"] == null ? void 0 : json["data"].map(TemplateFromJSON),
|
|
13239
|
+
"meta": json["meta"] == null ? void 0 : PaginationMetaFromJSON(json["meta"])
|
|
13240
|
+
};
|
|
13241
|
+
}
|
|
13242
|
+
function TemplateListResponseToJSON(json) {
|
|
13243
|
+
return TemplateListResponseToJSONTyped(json, false);
|
|
13244
|
+
}
|
|
13245
|
+
function TemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13246
|
+
if (value == null) {
|
|
13247
|
+
return value;
|
|
13248
|
+
}
|
|
13249
|
+
return {
|
|
13250
|
+
"data": value["data"] == null ? void 0 : value["data"].map(TemplateToJSON),
|
|
13251
|
+
"meta": PaginationMetaToJSON(value["meta"])
|
|
12254
13252
|
};
|
|
12255
13253
|
}
|
|
12256
13254
|
|
|
@@ -13055,6 +14053,65 @@ function UpdateEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
13055
14053
|
};
|
|
13056
14054
|
}
|
|
13057
14055
|
|
|
14056
|
+
// src/src/models/UpdateOrganizationMemberRoleRequest.ts
|
|
14057
|
+
function instanceOfUpdateOrganizationMemberRoleRequest(value) {
|
|
14058
|
+
if (!("role" in value) || value["role"] === void 0) return false;
|
|
14059
|
+
return true;
|
|
14060
|
+
}
|
|
14061
|
+
function UpdateOrganizationMemberRoleRequestFromJSON(json) {
|
|
14062
|
+
return UpdateOrganizationMemberRoleRequestFromJSONTyped(json, false);
|
|
14063
|
+
}
|
|
14064
|
+
function UpdateOrganizationMemberRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14065
|
+
if (json == null) {
|
|
14066
|
+
return json;
|
|
14067
|
+
}
|
|
14068
|
+
return {
|
|
14069
|
+
"role": json["role"]
|
|
14070
|
+
};
|
|
14071
|
+
}
|
|
14072
|
+
function UpdateOrganizationMemberRoleRequestToJSON(json) {
|
|
14073
|
+
return UpdateOrganizationMemberRoleRequestToJSONTyped(json, false);
|
|
14074
|
+
}
|
|
14075
|
+
function UpdateOrganizationMemberRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14076
|
+
if (value == null) {
|
|
14077
|
+
return value;
|
|
14078
|
+
}
|
|
14079
|
+
return {
|
|
14080
|
+
"role": value["role"]
|
|
14081
|
+
};
|
|
14082
|
+
}
|
|
14083
|
+
|
|
14084
|
+
// src/src/models/UpdateOrganizationRequest.ts
|
|
14085
|
+
function instanceOfUpdateOrganizationRequest(value) {
|
|
14086
|
+
return true;
|
|
14087
|
+
}
|
|
14088
|
+
function UpdateOrganizationRequestFromJSON(json) {
|
|
14089
|
+
return UpdateOrganizationRequestFromJSONTyped(json, false);
|
|
14090
|
+
}
|
|
14091
|
+
function UpdateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14092
|
+
if (json == null) {
|
|
14093
|
+
return json;
|
|
14094
|
+
}
|
|
14095
|
+
return {
|
|
14096
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
14097
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
14098
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
14099
|
+
};
|
|
14100
|
+
}
|
|
14101
|
+
function UpdateOrganizationRequestToJSON(json) {
|
|
14102
|
+
return UpdateOrganizationRequestToJSONTyped(json, false);
|
|
14103
|
+
}
|
|
14104
|
+
function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14105
|
+
if (value == null) {
|
|
14106
|
+
return value;
|
|
14107
|
+
}
|
|
14108
|
+
return {
|
|
14109
|
+
"name": value["name"],
|
|
14110
|
+
"slug": value["slug"],
|
|
14111
|
+
"metadata": value["metadata"]
|
|
14112
|
+
};
|
|
14113
|
+
}
|
|
14114
|
+
|
|
13058
14115
|
// src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
13059
14116
|
var UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum = {
|
|
13060
14117
|
EMAIL: "email",
|
|
@@ -13475,6 +14532,45 @@ function UserDevicesDeleteResponseToJSONTyped(value, ignoreDiscriminator = false
|
|
|
13475
14532
|
};
|
|
13476
14533
|
}
|
|
13477
14534
|
|
|
14535
|
+
// src/src/models/V1MuseSubjectsSuggestPostRequest.ts
|
|
14536
|
+
var V1MuseSubjectsSuggestPostRequestChannelEnum = {
|
|
14537
|
+
EMAIL: "email",
|
|
14538
|
+
PUSH: "push"
|
|
14539
|
+
};
|
|
14540
|
+
function instanceOfV1MuseSubjectsSuggestPostRequest(value) {
|
|
14541
|
+
if (!("channel" in value) || value["channel"] === void 0) return false;
|
|
14542
|
+
if (!("projectId" in value) || value["projectId"] === void 0) return false;
|
|
14543
|
+
return true;
|
|
14544
|
+
}
|
|
14545
|
+
function V1MuseSubjectsSuggestPostRequestFromJSON(json) {
|
|
14546
|
+
return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
|
|
14547
|
+
}
|
|
14548
|
+
function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14549
|
+
if (json == null) {
|
|
14550
|
+
return json;
|
|
14551
|
+
}
|
|
14552
|
+
return {
|
|
14553
|
+
"templateId": json["template_id"] == null ? void 0 : json["template_id"],
|
|
14554
|
+
"templateBody": json["template_body"] == null ? void 0 : json["template_body"],
|
|
14555
|
+
"channel": json["channel"],
|
|
14556
|
+
"projectId": json["project_id"]
|
|
14557
|
+
};
|
|
14558
|
+
}
|
|
14559
|
+
function V1MuseSubjectsSuggestPostRequestToJSON(json) {
|
|
14560
|
+
return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
|
|
14561
|
+
}
|
|
14562
|
+
function V1MuseSubjectsSuggestPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14563
|
+
if (value == null) {
|
|
14564
|
+
return value;
|
|
14565
|
+
}
|
|
14566
|
+
return {
|
|
14567
|
+
"template_id": value["templateId"],
|
|
14568
|
+
"template_body": value["templateBody"],
|
|
14569
|
+
"channel": value["channel"],
|
|
14570
|
+
"project_id": value["projectId"]
|
|
14571
|
+
};
|
|
14572
|
+
}
|
|
14573
|
+
|
|
13478
14574
|
// src/src/models/ValidateResetTokenRequest.ts
|
|
13479
14575
|
function instanceOfValidateResetTokenRequest(value) {
|
|
13480
14576
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -16775,17 +17871,22 @@ var AuthOAuthApi = class extends BaseAPI {
|
|
|
16775
17871
|
}
|
|
16776
17872
|
};
|
|
16777
17873
|
|
|
16778
|
-
// src/src/apis/
|
|
16779
|
-
var
|
|
17874
|
+
// src/src/apis/AuthOrganizationsApi.ts
|
|
17875
|
+
var AuthOrganizationsApi = class extends BaseAPI {
|
|
16780
17876
|
/**
|
|
16781
|
-
*
|
|
16782
|
-
* Request a password reset
|
|
17877
|
+
* Add a member to an organization
|
|
16783
17878
|
*/
|
|
16784
|
-
async
|
|
16785
|
-
if (requestParameters["
|
|
17879
|
+
async addOrganizationMemberRaw(requestParameters, initOverrides) {
|
|
17880
|
+
if (requestParameters["id"] == null) {
|
|
16786
17881
|
throw new RequiredError(
|
|
16787
|
-
"
|
|
16788
|
-
'Required parameter "
|
|
17882
|
+
"id",
|
|
17883
|
+
'Required parameter "id" was null or undefined when calling addOrganizationMember().'
|
|
17884
|
+
);
|
|
17885
|
+
}
|
|
17886
|
+
if (requestParameters["addOrganizationMemberRequest"] == null) {
|
|
17887
|
+
throw new RequiredError(
|
|
17888
|
+
"addOrganizationMemberRequest",
|
|
17889
|
+
'Required parameter "addOrganizationMemberRequest" was null or undefined when calling addOrganizationMember().'
|
|
16789
17890
|
);
|
|
16790
17891
|
}
|
|
16791
17892
|
const queryParameters = {};
|
|
@@ -16798,31 +17899,30 @@ var AuthPasswordResetApi = class extends BaseAPI {
|
|
|
16798
17899
|
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16799
17900
|
}
|
|
16800
17901
|
const response = await this.request({
|
|
16801
|
-
path: `/auth/
|
|
17902
|
+
path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
16802
17903
|
method: "POST",
|
|
16803
17904
|
headers: headerParameters,
|
|
16804
17905
|
query: queryParameters,
|
|
16805
|
-
body:
|
|
17906
|
+
body: AddOrganizationMemberRequestToJSON(requestParameters["addOrganizationMemberRequest"])
|
|
16806
17907
|
}, initOverrides);
|
|
16807
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
17908
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
|
|
16808
17909
|
}
|
|
16809
17910
|
/**
|
|
16810
|
-
*
|
|
16811
|
-
* Request a password reset
|
|
17911
|
+
* Add a member to an organization
|
|
16812
17912
|
*/
|
|
16813
|
-
async
|
|
16814
|
-
const response = await this.
|
|
17913
|
+
async addOrganizationMember(id, addOrganizationMemberRequest, initOverrides) {
|
|
17914
|
+
const response = await this.addOrganizationMemberRaw({ id, addOrganizationMemberRequest }, initOverrides);
|
|
16815
17915
|
return await response.value();
|
|
16816
17916
|
}
|
|
16817
17917
|
/**
|
|
16818
|
-
*
|
|
16819
|
-
*
|
|
17918
|
+
* 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.
|
|
17919
|
+
* Create an organization
|
|
16820
17920
|
*/
|
|
16821
|
-
async
|
|
16822
|
-
if (requestParameters["
|
|
17921
|
+
async createOrganizationRaw(requestParameters, initOverrides) {
|
|
17922
|
+
if (requestParameters["createOrganizationRequest"] == null) {
|
|
16823
17923
|
throw new RequiredError(
|
|
16824
|
-
"
|
|
16825
|
-
'Required parameter "
|
|
17924
|
+
"createOrganizationRequest",
|
|
17925
|
+
'Required parameter "createOrganizationRequest" was null or undefined when calling createOrganization().'
|
|
16826
17926
|
);
|
|
16827
17927
|
}
|
|
16828
17928
|
const queryParameters = {};
|
|
@@ -16835,36 +17935,35 @@ var AuthPasswordResetApi = class extends BaseAPI {
|
|
|
16835
17935
|
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16836
17936
|
}
|
|
16837
17937
|
const response = await this.request({
|
|
16838
|
-
path: `/auth/
|
|
17938
|
+
path: `/auth/organizations`,
|
|
16839
17939
|
method: "POST",
|
|
16840
17940
|
headers: headerParameters,
|
|
16841
17941
|
query: queryParameters,
|
|
16842
|
-
body:
|
|
17942
|
+
body: CreateOrganizationRequestToJSON(requestParameters["createOrganizationRequest"])
|
|
16843
17943
|
}, initOverrides);
|
|
16844
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
17944
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
16845
17945
|
}
|
|
16846
17946
|
/**
|
|
16847
|
-
*
|
|
16848
|
-
*
|
|
17947
|
+
* 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.
|
|
17948
|
+
* Create an organization
|
|
16849
17949
|
*/
|
|
16850
|
-
async
|
|
16851
|
-
const response = await this.
|
|
17950
|
+
async createOrganization(createOrganizationRequest, initOverrides) {
|
|
17951
|
+
const response = await this.createOrganizationRaw({ createOrganizationRequest }, initOverrides);
|
|
16852
17952
|
return await response.value();
|
|
16853
17953
|
}
|
|
16854
17954
|
/**
|
|
16855
|
-
*
|
|
16856
|
-
*
|
|
17955
|
+
* Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
|
|
17956
|
+
* Delete an organization
|
|
16857
17957
|
*/
|
|
16858
|
-
async
|
|
16859
|
-
if (requestParameters["
|
|
17958
|
+
async deleteOrganizationRaw(requestParameters, initOverrides) {
|
|
17959
|
+
if (requestParameters["id"] == null) {
|
|
16860
17960
|
throw new RequiredError(
|
|
16861
|
-
"
|
|
16862
|
-
'Required parameter "
|
|
17961
|
+
"id",
|
|
17962
|
+
'Required parameter "id" was null or undefined when calling deleteOrganization().'
|
|
16863
17963
|
);
|
|
16864
17964
|
}
|
|
16865
17965
|
const queryParameters = {};
|
|
16866
17966
|
const headerParameters = {};
|
|
16867
|
-
headerParameters["Content-Type"] = "application/json";
|
|
16868
17967
|
if (this.configuration && this.configuration.apiKey) {
|
|
16869
17968
|
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16870
17969
|
}
|
|
@@ -16872,23 +17971,446 @@ var AuthPasswordResetApi = class extends BaseAPI {
|
|
|
16872
17971
|
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16873
17972
|
}
|
|
16874
17973
|
const response = await this.request({
|
|
16875
|
-
path: `/auth/
|
|
16876
|
-
method: "
|
|
17974
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
17975
|
+
method: "DELETE",
|
|
16877
17976
|
headers: headerParameters,
|
|
16878
|
-
query: queryParameters
|
|
16879
|
-
body: ValidateResetTokenRequestToJSON(requestParameters["validateResetTokenRequest"])
|
|
17977
|
+
query: queryParameters
|
|
16880
17978
|
}, initOverrides);
|
|
16881
|
-
return new
|
|
17979
|
+
return new VoidApiResponse(response);
|
|
16882
17980
|
}
|
|
16883
17981
|
/**
|
|
16884
|
-
*
|
|
16885
|
-
*
|
|
17982
|
+
* Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
|
|
17983
|
+
* Delete an organization
|
|
16886
17984
|
*/
|
|
16887
|
-
async
|
|
16888
|
-
|
|
16889
|
-
return await response.value();
|
|
17985
|
+
async deleteOrganization(id, initOverrides) {
|
|
17986
|
+
await this.deleteOrganizationRaw({ id }, initOverrides);
|
|
16890
17987
|
}
|
|
16891
|
-
|
|
17988
|
+
/**
|
|
17989
|
+
* Get organization by id
|
|
17990
|
+
*/
|
|
17991
|
+
async getOrganizationRaw(requestParameters, initOverrides) {
|
|
17992
|
+
if (requestParameters["id"] == null) {
|
|
17993
|
+
throw new RequiredError(
|
|
17994
|
+
"id",
|
|
17995
|
+
'Required parameter "id" was null or undefined when calling getOrganization().'
|
|
17996
|
+
);
|
|
17997
|
+
}
|
|
17998
|
+
const queryParameters = {};
|
|
17999
|
+
const headerParameters = {};
|
|
18000
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18001
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18002
|
+
}
|
|
18003
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18004
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18005
|
+
}
|
|
18006
|
+
const response = await this.request({
|
|
18007
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
18008
|
+
method: "GET",
|
|
18009
|
+
headers: headerParameters,
|
|
18010
|
+
query: queryParameters
|
|
18011
|
+
}, initOverrides);
|
|
18012
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
18013
|
+
}
|
|
18014
|
+
/**
|
|
18015
|
+
* Get organization by id
|
|
18016
|
+
*/
|
|
18017
|
+
async getOrganization(id, initOverrides) {
|
|
18018
|
+
const response = await this.getOrganizationRaw({ id }, initOverrides);
|
|
18019
|
+
return await response.value();
|
|
18020
|
+
}
|
|
18021
|
+
/**
|
|
18022
|
+
* List organization members
|
|
18023
|
+
*/
|
|
18024
|
+
async listOrganizationMembersRaw(requestParameters, initOverrides) {
|
|
18025
|
+
if (requestParameters["id"] == null) {
|
|
18026
|
+
throw new RequiredError(
|
|
18027
|
+
"id",
|
|
18028
|
+
'Required parameter "id" was null or undefined when calling listOrganizationMembers().'
|
|
18029
|
+
);
|
|
18030
|
+
}
|
|
18031
|
+
const queryParameters = {};
|
|
18032
|
+
if (requestParameters["limit"] != null) {
|
|
18033
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
18034
|
+
}
|
|
18035
|
+
if (requestParameters["cursor"] != null) {
|
|
18036
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
18037
|
+
}
|
|
18038
|
+
const headerParameters = {};
|
|
18039
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18040
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18041
|
+
}
|
|
18042
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18043
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18044
|
+
}
|
|
18045
|
+
const response = await this.request({
|
|
18046
|
+
path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
18047
|
+
method: "GET",
|
|
18048
|
+
headers: headerParameters,
|
|
18049
|
+
query: queryParameters
|
|
18050
|
+
}, initOverrides);
|
|
18051
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembersListResponseFromJSON(jsonValue));
|
|
18052
|
+
}
|
|
18053
|
+
/**
|
|
18054
|
+
* List organization members
|
|
18055
|
+
*/
|
|
18056
|
+
async listOrganizationMembers(id, limit, cursor, initOverrides) {
|
|
18057
|
+
const response = await this.listOrganizationMembersRaw({ id, limit, cursor }, initOverrides);
|
|
18058
|
+
return await response.value();
|
|
18059
|
+
}
|
|
18060
|
+
/**
|
|
18061
|
+
* List organizations in the current environment. Cursor-paginated.
|
|
18062
|
+
* List organizations
|
|
18063
|
+
*/
|
|
18064
|
+
async listOrganizationsRaw(requestParameters, initOverrides) {
|
|
18065
|
+
const queryParameters = {};
|
|
18066
|
+
if (requestParameters["limit"] != null) {
|
|
18067
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
18068
|
+
}
|
|
18069
|
+
if (requestParameters["cursor"] != null) {
|
|
18070
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
18071
|
+
}
|
|
18072
|
+
if (requestParameters["search"] != null) {
|
|
18073
|
+
queryParameters["search"] = requestParameters["search"];
|
|
18074
|
+
}
|
|
18075
|
+
const headerParameters = {};
|
|
18076
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18077
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18078
|
+
}
|
|
18079
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18080
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18081
|
+
}
|
|
18082
|
+
const response = await this.request({
|
|
18083
|
+
path: `/auth/organizations`,
|
|
18084
|
+
method: "GET",
|
|
18085
|
+
headers: headerParameters,
|
|
18086
|
+
query: queryParameters
|
|
18087
|
+
}, initOverrides);
|
|
18088
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
|
|
18089
|
+
}
|
|
18090
|
+
/**
|
|
18091
|
+
* List organizations in the current environment. Cursor-paginated.
|
|
18092
|
+
* List organizations
|
|
18093
|
+
*/
|
|
18094
|
+
async listOrganizations(limit, cursor, search, initOverrides) {
|
|
18095
|
+
const response = await this.listOrganizationsRaw({ limit, cursor, search }, initOverrides);
|
|
18096
|
+
return await response.value();
|
|
18097
|
+
}
|
|
18098
|
+
/**
|
|
18099
|
+
* 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.
|
|
18100
|
+
* List organizations an end user belongs to
|
|
18101
|
+
*/
|
|
18102
|
+
async listOrganizationsForEndUserRaw(requestParameters, initOverrides) {
|
|
18103
|
+
if (requestParameters["userId"] == null) {
|
|
18104
|
+
throw new RequiredError(
|
|
18105
|
+
"userId",
|
|
18106
|
+
'Required parameter "userId" was null or undefined when calling listOrganizationsForEndUser().'
|
|
18107
|
+
);
|
|
18108
|
+
}
|
|
18109
|
+
const queryParameters = {};
|
|
18110
|
+
const headerParameters = {};
|
|
18111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18112
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18113
|
+
}
|
|
18114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18115
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18116
|
+
}
|
|
18117
|
+
const response = await this.request({
|
|
18118
|
+
path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
18119
|
+
method: "GET",
|
|
18120
|
+
headers: headerParameters,
|
|
18121
|
+
query: queryParameters
|
|
18122
|
+
}, initOverrides);
|
|
18123
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
|
|
18124
|
+
}
|
|
18125
|
+
/**
|
|
18126
|
+
* 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.
|
|
18127
|
+
* List organizations an end user belongs to
|
|
18128
|
+
*/
|
|
18129
|
+
async listOrganizationsForEndUser(userId, initOverrides) {
|
|
18130
|
+
const response = await this.listOrganizationsForEndUserRaw({ userId }, initOverrides);
|
|
18131
|
+
return await response.value();
|
|
18132
|
+
}
|
|
18133
|
+
/**
|
|
18134
|
+
* Remove a member from an organization
|
|
18135
|
+
*/
|
|
18136
|
+
async removeOrganizationMemberRaw(requestParameters, initOverrides) {
|
|
18137
|
+
if (requestParameters["id"] == null) {
|
|
18138
|
+
throw new RequiredError(
|
|
18139
|
+
"id",
|
|
18140
|
+
'Required parameter "id" was null or undefined when calling removeOrganizationMember().'
|
|
18141
|
+
);
|
|
18142
|
+
}
|
|
18143
|
+
if (requestParameters["userId"] == null) {
|
|
18144
|
+
throw new RequiredError(
|
|
18145
|
+
"userId",
|
|
18146
|
+
'Required parameter "userId" was null or undefined when calling removeOrganizationMember().'
|
|
18147
|
+
);
|
|
18148
|
+
}
|
|
18149
|
+
const queryParameters = {};
|
|
18150
|
+
const headerParameters = {};
|
|
18151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18152
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18153
|
+
}
|
|
18154
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18155
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18156
|
+
}
|
|
18157
|
+
const response = await this.request({
|
|
18158
|
+
path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
18159
|
+
method: "DELETE",
|
|
18160
|
+
headers: headerParameters,
|
|
18161
|
+
query: queryParameters
|
|
18162
|
+
}, initOverrides);
|
|
18163
|
+
return new VoidApiResponse(response);
|
|
18164
|
+
}
|
|
18165
|
+
/**
|
|
18166
|
+
* Remove a member from an organization
|
|
18167
|
+
*/
|
|
18168
|
+
async removeOrganizationMember(id, userId, initOverrides) {
|
|
18169
|
+
await this.removeOrganizationMemberRaw({ id, userId }, initOverrides);
|
|
18170
|
+
}
|
|
18171
|
+
/**
|
|
18172
|
+
* 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).
|
|
18173
|
+
* Switch the active organization on a session
|
|
18174
|
+
*/
|
|
18175
|
+
async switchOrganizationRaw(requestParameters, initOverrides) {
|
|
18176
|
+
if (requestParameters["switchOrganizationRequest"] == null) {
|
|
18177
|
+
throw new RequiredError(
|
|
18178
|
+
"switchOrganizationRequest",
|
|
18179
|
+
'Required parameter "switchOrganizationRequest" was null or undefined when calling switchOrganization().'
|
|
18180
|
+
);
|
|
18181
|
+
}
|
|
18182
|
+
const queryParameters = {};
|
|
18183
|
+
const headerParameters = {};
|
|
18184
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18185
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18186
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18187
|
+
}
|
|
18188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18189
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18190
|
+
}
|
|
18191
|
+
const response = await this.request({
|
|
18192
|
+
path: `/auth/sessions/switch-organization`,
|
|
18193
|
+
method: "POST",
|
|
18194
|
+
headers: headerParameters,
|
|
18195
|
+
query: queryParameters,
|
|
18196
|
+
body: SwitchOrganizationRequestToJSON(requestParameters["switchOrganizationRequest"])
|
|
18197
|
+
}, initOverrides);
|
|
18198
|
+
return new JSONApiResponse(response, (jsonValue) => SwitchOrganizationResponseFromJSON(jsonValue));
|
|
18199
|
+
}
|
|
18200
|
+
/**
|
|
18201
|
+
* 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).
|
|
18202
|
+
* Switch the active organization on a session
|
|
18203
|
+
*/
|
|
18204
|
+
async switchOrganization(switchOrganizationRequest, initOverrides) {
|
|
18205
|
+
const response = await this.switchOrganizationRaw({ switchOrganizationRequest }, initOverrides);
|
|
18206
|
+
return await response.value();
|
|
18207
|
+
}
|
|
18208
|
+
/**
|
|
18209
|
+
* The Default organization cannot be renamed or have its slug/metadata changed.
|
|
18210
|
+
* Update an organization
|
|
18211
|
+
*/
|
|
18212
|
+
async updateOrganizationRaw(requestParameters, initOverrides) {
|
|
18213
|
+
if (requestParameters["id"] == null) {
|
|
18214
|
+
throw new RequiredError(
|
|
18215
|
+
"id",
|
|
18216
|
+
'Required parameter "id" was null or undefined when calling updateOrganization().'
|
|
18217
|
+
);
|
|
18218
|
+
}
|
|
18219
|
+
if (requestParameters["updateOrganizationRequest"] == null) {
|
|
18220
|
+
throw new RequiredError(
|
|
18221
|
+
"updateOrganizationRequest",
|
|
18222
|
+
'Required parameter "updateOrganizationRequest" was null or undefined when calling updateOrganization().'
|
|
18223
|
+
);
|
|
18224
|
+
}
|
|
18225
|
+
const queryParameters = {};
|
|
18226
|
+
const headerParameters = {};
|
|
18227
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18228
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18229
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18230
|
+
}
|
|
18231
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18232
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18233
|
+
}
|
|
18234
|
+
const response = await this.request({
|
|
18235
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
18236
|
+
method: "PATCH",
|
|
18237
|
+
headers: headerParameters,
|
|
18238
|
+
query: queryParameters,
|
|
18239
|
+
body: UpdateOrganizationRequestToJSON(requestParameters["updateOrganizationRequest"])
|
|
18240
|
+
}, initOverrides);
|
|
18241
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
18242
|
+
}
|
|
18243
|
+
/**
|
|
18244
|
+
* The Default organization cannot be renamed or have its slug/metadata changed.
|
|
18245
|
+
* Update an organization
|
|
18246
|
+
*/
|
|
18247
|
+
async updateOrganization(id, updateOrganizationRequest, initOverrides) {
|
|
18248
|
+
const response = await this.updateOrganizationRaw({ id, updateOrganizationRequest }, initOverrides);
|
|
18249
|
+
return await response.value();
|
|
18250
|
+
}
|
|
18251
|
+
/**
|
|
18252
|
+
* Update a member\'s role
|
|
18253
|
+
*/
|
|
18254
|
+
async updateOrganizationMemberRoleRaw(requestParameters, initOverrides) {
|
|
18255
|
+
if (requestParameters["id"] == null) {
|
|
18256
|
+
throw new RequiredError(
|
|
18257
|
+
"id",
|
|
18258
|
+
'Required parameter "id" was null or undefined when calling updateOrganizationMemberRole().'
|
|
18259
|
+
);
|
|
18260
|
+
}
|
|
18261
|
+
if (requestParameters["userId"] == null) {
|
|
18262
|
+
throw new RequiredError(
|
|
18263
|
+
"userId",
|
|
18264
|
+
'Required parameter "userId" was null or undefined when calling updateOrganizationMemberRole().'
|
|
18265
|
+
);
|
|
18266
|
+
}
|
|
18267
|
+
if (requestParameters["updateOrganizationMemberRoleRequest"] == null) {
|
|
18268
|
+
throw new RequiredError(
|
|
18269
|
+
"updateOrganizationMemberRoleRequest",
|
|
18270
|
+
'Required parameter "updateOrganizationMemberRoleRequest" was null or undefined when calling updateOrganizationMemberRole().'
|
|
18271
|
+
);
|
|
18272
|
+
}
|
|
18273
|
+
const queryParameters = {};
|
|
18274
|
+
const headerParameters = {};
|
|
18275
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18277
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18278
|
+
}
|
|
18279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18280
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18281
|
+
}
|
|
18282
|
+
const response = await this.request({
|
|
18283
|
+
path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
18284
|
+
method: "PATCH",
|
|
18285
|
+
headers: headerParameters,
|
|
18286
|
+
query: queryParameters,
|
|
18287
|
+
body: UpdateOrganizationMemberRoleRequestToJSON(requestParameters["updateOrganizationMemberRoleRequest"])
|
|
18288
|
+
}, initOverrides);
|
|
18289
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
|
|
18290
|
+
}
|
|
18291
|
+
/**
|
|
18292
|
+
* Update a member\'s role
|
|
18293
|
+
*/
|
|
18294
|
+
async updateOrganizationMemberRole(id, userId, updateOrganizationMemberRoleRequest, initOverrides) {
|
|
18295
|
+
const response = await this.updateOrganizationMemberRoleRaw({ id, userId, updateOrganizationMemberRoleRequest }, initOverrides);
|
|
18296
|
+
return await response.value();
|
|
18297
|
+
}
|
|
18298
|
+
};
|
|
18299
|
+
|
|
18300
|
+
// src/src/apis/AuthPasswordResetApi.ts
|
|
18301
|
+
var AuthPasswordResetApi = class extends BaseAPI {
|
|
18302
|
+
/**
|
|
18303
|
+
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
|
|
18304
|
+
* Request a password reset
|
|
18305
|
+
*/
|
|
18306
|
+
async forgotPasswordRaw(requestParameters, initOverrides) {
|
|
18307
|
+
if (requestParameters["forgotPasswordRequest"] == null) {
|
|
18308
|
+
throw new RequiredError(
|
|
18309
|
+
"forgotPasswordRequest",
|
|
18310
|
+
'Required parameter "forgotPasswordRequest" was null or undefined when calling forgotPassword().'
|
|
18311
|
+
);
|
|
18312
|
+
}
|
|
18313
|
+
const queryParameters = {};
|
|
18314
|
+
const headerParameters = {};
|
|
18315
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18317
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18318
|
+
}
|
|
18319
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18320
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18321
|
+
}
|
|
18322
|
+
const response = await this.request({
|
|
18323
|
+
path: `/auth/forgot-password`,
|
|
18324
|
+
method: "POST",
|
|
18325
|
+
headers: headerParameters,
|
|
18326
|
+
query: queryParameters,
|
|
18327
|
+
body: ForgotPasswordRequestToJSON(requestParameters["forgotPasswordRequest"])
|
|
18328
|
+
}, initOverrides);
|
|
18329
|
+
return new JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
|
|
18330
|
+
}
|
|
18331
|
+
/**
|
|
18332
|
+
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
|
|
18333
|
+
* Request a password reset
|
|
18334
|
+
*/
|
|
18335
|
+
async forgotPassword(forgotPasswordRequest, initOverrides) {
|
|
18336
|
+
const response = await this.forgotPasswordRaw({ forgotPasswordRequest }, initOverrides);
|
|
18337
|
+
return await response.value();
|
|
18338
|
+
}
|
|
18339
|
+
/**
|
|
18340
|
+
* Reset a user\'s password using a valid reset token.
|
|
18341
|
+
* Reset password
|
|
18342
|
+
*/
|
|
18343
|
+
async resetEndUserPasswordRaw(requestParameters, initOverrides) {
|
|
18344
|
+
if (requestParameters["resetPasswordRequest"] == null) {
|
|
18345
|
+
throw new RequiredError(
|
|
18346
|
+
"resetPasswordRequest",
|
|
18347
|
+
'Required parameter "resetPasswordRequest" was null or undefined when calling resetEndUserPassword().'
|
|
18348
|
+
);
|
|
18349
|
+
}
|
|
18350
|
+
const queryParameters = {};
|
|
18351
|
+
const headerParameters = {};
|
|
18352
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18354
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18355
|
+
}
|
|
18356
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18357
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18358
|
+
}
|
|
18359
|
+
const response = await this.request({
|
|
18360
|
+
path: `/auth/reset-password`,
|
|
18361
|
+
method: "POST",
|
|
18362
|
+
headers: headerParameters,
|
|
18363
|
+
query: queryParameters,
|
|
18364
|
+
body: ResetPasswordRequestToJSON(requestParameters["resetPasswordRequest"])
|
|
18365
|
+
}, initOverrides);
|
|
18366
|
+
return new JSONApiResponse(response, (jsonValue) => ResetPasswordResponseFromJSON(jsonValue));
|
|
18367
|
+
}
|
|
18368
|
+
/**
|
|
18369
|
+
* Reset a user\'s password using a valid reset token.
|
|
18370
|
+
* Reset password
|
|
18371
|
+
*/
|
|
18372
|
+
async resetEndUserPassword(resetPasswordRequest, initOverrides) {
|
|
18373
|
+
const response = await this.resetEndUserPasswordRaw({ resetPasswordRequest }, initOverrides);
|
|
18374
|
+
return await response.value();
|
|
18375
|
+
}
|
|
18376
|
+
/**
|
|
18377
|
+
* Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
|
|
18378
|
+
* Validate a password reset token
|
|
18379
|
+
*/
|
|
18380
|
+
async validateResetTokenRaw(requestParameters, initOverrides) {
|
|
18381
|
+
if (requestParameters["validateResetTokenRequest"] == null) {
|
|
18382
|
+
throw new RequiredError(
|
|
18383
|
+
"validateResetTokenRequest",
|
|
18384
|
+
'Required parameter "validateResetTokenRequest" was null or undefined when calling validateResetToken().'
|
|
18385
|
+
);
|
|
18386
|
+
}
|
|
18387
|
+
const queryParameters = {};
|
|
18388
|
+
const headerParameters = {};
|
|
18389
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18391
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18392
|
+
}
|
|
18393
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18394
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18395
|
+
}
|
|
18396
|
+
const response = await this.request({
|
|
18397
|
+
path: `/auth/validate-reset-token`,
|
|
18398
|
+
method: "POST",
|
|
18399
|
+
headers: headerParameters,
|
|
18400
|
+
query: queryParameters,
|
|
18401
|
+
body: ValidateResetTokenRequestToJSON(requestParameters["validateResetTokenRequest"])
|
|
18402
|
+
}, initOverrides);
|
|
18403
|
+
return new JSONApiResponse(response, (jsonValue) => ValidateResetTokenResponseFromJSON(jsonValue));
|
|
18404
|
+
}
|
|
18405
|
+
/**
|
|
18406
|
+
* Validate a password reset token without consuming it. Useful for checking if a token is valid before showing the reset form.
|
|
18407
|
+
* Validate a password reset token
|
|
18408
|
+
*/
|
|
18409
|
+
async validateResetToken(validateResetTokenRequest, initOverrides) {
|
|
18410
|
+
const response = await this.validateResetTokenRaw({ validateResetTokenRequest }, initOverrides);
|
|
18411
|
+
return await response.value();
|
|
18412
|
+
}
|
|
18413
|
+
};
|
|
16892
18414
|
|
|
16893
18415
|
// src/src/apis/AuthPhoneApi.ts
|
|
16894
18416
|
var AuthPhoneApi = class extends BaseAPI {
|
|
@@ -17356,6 +18878,40 @@ var AuthUserProfileApi = class extends BaseAPI {
|
|
|
17356
18878
|
const response = await this.deleteEndUserRaw(initOverrides);
|
|
17357
18879
|
return await response.value();
|
|
17358
18880
|
}
|
|
18881
|
+
/**
|
|
18882
|
+
* 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.
|
|
18883
|
+
* Delete an end user (test environment only)
|
|
18884
|
+
*/
|
|
18885
|
+
async deleteEndUserByApplicationRaw(requestParameters, initOverrides) {
|
|
18886
|
+
if (requestParameters["userId"] == null) {
|
|
18887
|
+
throw new RequiredError(
|
|
18888
|
+
"userId",
|
|
18889
|
+
'Required parameter "userId" was null or undefined when calling deleteEndUserByApplication().'
|
|
18890
|
+
);
|
|
18891
|
+
}
|
|
18892
|
+
const queryParameters = {};
|
|
18893
|
+
const headerParameters = {};
|
|
18894
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18895
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
18896
|
+
}
|
|
18897
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
18898
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
18899
|
+
}
|
|
18900
|
+
const response = await this.request({
|
|
18901
|
+
path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
18902
|
+
method: "DELETE",
|
|
18903
|
+
headers: headerParameters,
|
|
18904
|
+
query: queryParameters
|
|
18905
|
+
}, initOverrides);
|
|
18906
|
+
return new VoidApiResponse(response);
|
|
18907
|
+
}
|
|
18908
|
+
/**
|
|
18909
|
+
* 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.
|
|
18910
|
+
* Delete an end user (test environment only)
|
|
18911
|
+
*/
|
|
18912
|
+
async deleteEndUserByApplication(userId, initOverrides) {
|
|
18913
|
+
await this.deleteEndUserByApplicationRaw({ userId }, initOverrides);
|
|
18914
|
+
}
|
|
17359
18915
|
/**
|
|
17360
18916
|
* Retrieve the profile of the currently authenticated end user.
|
|
17361
18917
|
* Get current end user profile
|
|
@@ -18087,17 +19643,56 @@ var DomainsApi = class extends BaseAPI {
|
|
|
18087
19643
|
path: `/domains`,
|
|
18088
19644
|
method: "GET",
|
|
18089
19645
|
headers: headerParameters,
|
|
18090
|
-
query: queryParameters
|
|
19646
|
+
query: queryParameters
|
|
19647
|
+
}, initOverrides);
|
|
19648
|
+
return new JSONApiResponse(response, (jsonValue) => DomainListResponseFromJSON(jsonValue));
|
|
19649
|
+
}
|
|
19650
|
+
/**
|
|
19651
|
+
* List sending domains on the current project, with verification status and DNS records.
|
|
19652
|
+
* List sending domains
|
|
19653
|
+
*/
|
|
19654
|
+
async listDomains(initOverrides) {
|
|
19655
|
+
const response = await this.listDomainsRaw(initOverrides);
|
|
19656
|
+
return await response.value();
|
|
19657
|
+
}
|
|
19658
|
+
/**
|
|
19659
|
+
* 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+).
|
|
19660
|
+
* Enable or disable inbound email for a domain
|
|
19661
|
+
*/
|
|
19662
|
+
async setDomainInboundRaw(requestParameters, initOverrides) {
|
|
19663
|
+
if (requestParameters["id"] == null) {
|
|
19664
|
+
throw new RequiredError(
|
|
19665
|
+
"id",
|
|
19666
|
+
'Required parameter "id" was null or undefined when calling setDomainInbound().'
|
|
19667
|
+
);
|
|
19668
|
+
}
|
|
19669
|
+
if (requestParameters["setDomainInboundRequest"] == null) {
|
|
19670
|
+
throw new RequiredError(
|
|
19671
|
+
"setDomainInboundRequest",
|
|
19672
|
+
'Required parameter "setDomainInboundRequest" was null or undefined when calling setDomainInbound().'
|
|
19673
|
+
);
|
|
19674
|
+
}
|
|
19675
|
+
const queryParameters = {};
|
|
19676
|
+
const headerParameters = {};
|
|
19677
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19678
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19679
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
19680
|
+
}
|
|
19681
|
+
const response = await this.request({
|
|
19682
|
+
path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
19683
|
+
method: "PUT",
|
|
19684
|
+
headers: headerParameters,
|
|
19685
|
+
query: queryParameters,
|
|
19686
|
+
body: SetDomainInboundRequestToJSON(requestParameters["setDomainInboundRequest"])
|
|
18091
19687
|
}, initOverrides);
|
|
18092
|
-
return new
|
|
19688
|
+
return new VoidApiResponse(response);
|
|
18093
19689
|
}
|
|
18094
19690
|
/**
|
|
18095
|
-
*
|
|
18096
|
-
*
|
|
19691
|
+
* 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+).
|
|
19692
|
+
* Enable or disable inbound email for a domain
|
|
18097
19693
|
*/
|
|
18098
|
-
async
|
|
18099
|
-
|
|
18100
|
-
return await response.value();
|
|
19694
|
+
async setDomainInbound(id, setDomainInboundRequest, initOverrides) {
|
|
19695
|
+
await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
18101
19696
|
}
|
|
18102
19697
|
/**
|
|
18103
19698
|
* 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).
|
|
@@ -18448,6 +20043,128 @@ var ExecutionsApi = class extends BaseAPI {
|
|
|
18448
20043
|
}
|
|
18449
20044
|
};
|
|
18450
20045
|
|
|
20046
|
+
// src/src/apis/InboundEmailApi.ts
|
|
20047
|
+
var InboundEmailApi = class extends BaseAPI {
|
|
20048
|
+
/**
|
|
20049
|
+
* 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.
|
|
20050
|
+
* Get an attachment download URL
|
|
20051
|
+
*/
|
|
20052
|
+
async getInboundAttachmentUrlRaw(requestParameters, initOverrides) {
|
|
20053
|
+
if (requestParameters["id"] == null) {
|
|
20054
|
+
throw new RequiredError(
|
|
20055
|
+
"id",
|
|
20056
|
+
'Required parameter "id" was null or undefined when calling getInboundAttachmentUrl().'
|
|
20057
|
+
);
|
|
20058
|
+
}
|
|
20059
|
+
if (requestParameters["attachmentId"] == null) {
|
|
20060
|
+
throw new RequiredError(
|
|
20061
|
+
"attachmentId",
|
|
20062
|
+
'Required parameter "attachmentId" was null or undefined when calling getInboundAttachmentUrl().'
|
|
20063
|
+
);
|
|
20064
|
+
}
|
|
20065
|
+
const queryParameters = {};
|
|
20066
|
+
const headerParameters = {};
|
|
20067
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20068
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20069
|
+
}
|
|
20070
|
+
const response = await this.request({
|
|
20071
|
+
path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
|
|
20072
|
+
method: "GET",
|
|
20073
|
+
headers: headerParameters,
|
|
20074
|
+
query: queryParameters
|
|
20075
|
+
}, initOverrides);
|
|
20076
|
+
return new JSONApiResponse(response, (jsonValue) => InboundAttachmentUrlResponseFromJSON(jsonValue));
|
|
20077
|
+
}
|
|
20078
|
+
/**
|
|
20079
|
+
* 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.
|
|
20080
|
+
* Get an attachment download URL
|
|
20081
|
+
*/
|
|
20082
|
+
async getInboundAttachmentUrl(id, attachmentId, initOverrides) {
|
|
20083
|
+
const response = await this.getInboundAttachmentUrlRaw({ id, attachmentId }, initOverrides);
|
|
20084
|
+
return await response.value();
|
|
20085
|
+
}
|
|
20086
|
+
/**
|
|
20087
|
+
* Retrieve a single inbound email by id (scoped to the project).
|
|
20088
|
+
* Get a received email
|
|
20089
|
+
*/
|
|
20090
|
+
async getInboundEmailRaw(requestParameters, initOverrides) {
|
|
20091
|
+
if (requestParameters["id"] == null) {
|
|
20092
|
+
throw new RequiredError(
|
|
20093
|
+
"id",
|
|
20094
|
+
'Required parameter "id" was null or undefined when calling getInboundEmail().'
|
|
20095
|
+
);
|
|
20096
|
+
}
|
|
20097
|
+
const queryParameters = {};
|
|
20098
|
+
const headerParameters = {};
|
|
20099
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20100
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20101
|
+
}
|
|
20102
|
+
const response = await this.request({
|
|
20103
|
+
path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
20104
|
+
method: "GET",
|
|
20105
|
+
headers: headerParameters,
|
|
20106
|
+
query: queryParameters
|
|
20107
|
+
}, initOverrides);
|
|
20108
|
+
return new JSONApiResponse(response, (jsonValue) => InboundEmailResponseFromJSON(jsonValue));
|
|
20109
|
+
}
|
|
20110
|
+
/**
|
|
20111
|
+
* Retrieve a single inbound email by id (scoped to the project).
|
|
20112
|
+
* Get a received email
|
|
20113
|
+
*/
|
|
20114
|
+
async getInboundEmail(id, initOverrides) {
|
|
20115
|
+
const response = await this.getInboundEmailRaw({ id }, initOverrides);
|
|
20116
|
+
return await response.value();
|
|
20117
|
+
}
|
|
20118
|
+
/**
|
|
20119
|
+
* 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.
|
|
20120
|
+
* List received emails
|
|
20121
|
+
*/
|
|
20122
|
+
async listInboundEmailsRaw(requestParameters, initOverrides) {
|
|
20123
|
+
const queryParameters = {};
|
|
20124
|
+
if (requestParameters["status"] != null) {
|
|
20125
|
+
queryParameters["status"] = requestParameters["status"];
|
|
20126
|
+
}
|
|
20127
|
+
if (requestParameters["to"] != null) {
|
|
20128
|
+
queryParameters["to"] = requestParameters["to"];
|
|
20129
|
+
}
|
|
20130
|
+
if (requestParameters["includeWithheld"] != null) {
|
|
20131
|
+
queryParameters["include_withheld"] = requestParameters["includeWithheld"];
|
|
20132
|
+
}
|
|
20133
|
+
if (requestParameters["limit"] != null) {
|
|
20134
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
20135
|
+
}
|
|
20136
|
+
if (requestParameters["offset"] != null) {
|
|
20137
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
20138
|
+
}
|
|
20139
|
+
const headerParameters = {};
|
|
20140
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20141
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20142
|
+
}
|
|
20143
|
+
const response = await this.request({
|
|
20144
|
+
path: `/inbound-emails`,
|
|
20145
|
+
method: "GET",
|
|
20146
|
+
headers: headerParameters,
|
|
20147
|
+
query: queryParameters
|
|
20148
|
+
}, initOverrides);
|
|
20149
|
+
return new JSONApiResponse(response, (jsonValue) => InboundEmailListResponseFromJSON(jsonValue));
|
|
20150
|
+
}
|
|
20151
|
+
/**
|
|
20152
|
+
* 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.
|
|
20153
|
+
* List received emails
|
|
20154
|
+
*/
|
|
20155
|
+
async listInboundEmails(status, to, includeWithheld, limit, offset, initOverrides) {
|
|
20156
|
+
const response = await this.listInboundEmailsRaw({ status, to, includeWithheld, limit, offset }, initOverrides);
|
|
20157
|
+
return await response.value();
|
|
20158
|
+
}
|
|
20159
|
+
};
|
|
20160
|
+
var ListInboundEmailsStatusEnum = {
|
|
20161
|
+
RECEIVED: "received",
|
|
20162
|
+
PROCESSED: "processed",
|
|
20163
|
+
QUARANTINED: "quarantined",
|
|
20164
|
+
DROPPED: "dropped",
|
|
20165
|
+
FAILED: "failed"
|
|
20166
|
+
};
|
|
20167
|
+
|
|
18451
20168
|
// src/src/apis/InboxApi.ts
|
|
18452
20169
|
var InboxApi = class extends BaseAPI {
|
|
18453
20170
|
/**
|
|
@@ -19163,6 +20880,266 @@ var ListAllInboxStatusEnum = {
|
|
|
19163
20880
|
ARCHIVED: "archived"
|
|
19164
20881
|
};
|
|
19165
20882
|
|
|
20883
|
+
// src/src/apis/MuseApi.ts
|
|
20884
|
+
var MuseApi = class extends BaseAPI {
|
|
20885
|
+
/**
|
|
20886
|
+
* 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).
|
|
20887
|
+
* Paginated per-call audit log for Muse
|
|
20888
|
+
*/
|
|
20889
|
+
async v1MuseAuditLogGetRaw(initOverrides) {
|
|
20890
|
+
const queryParameters = {};
|
|
20891
|
+
const headerParameters = {};
|
|
20892
|
+
const response = await this.request({
|
|
20893
|
+
path: `/v1/muse/audit-log`,
|
|
20894
|
+
method: "GET",
|
|
20895
|
+
headers: headerParameters,
|
|
20896
|
+
query: queryParameters
|
|
20897
|
+
}, initOverrides);
|
|
20898
|
+
return new VoidApiResponse(response);
|
|
20899
|
+
}
|
|
20900
|
+
/**
|
|
20901
|
+
* 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).
|
|
20902
|
+
* Paginated per-call audit log for Muse
|
|
20903
|
+
*/
|
|
20904
|
+
async v1MuseAuditLogGet(initOverrides) {
|
|
20905
|
+
await this.v1MuseAuditLogGetRaw(initOverrides);
|
|
20906
|
+
}
|
|
20907
|
+
/**
|
|
20908
|
+
* 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.
|
|
20909
|
+
* Stream a pre-send advisory for a draft broadcast
|
|
20910
|
+
*/
|
|
20911
|
+
async v1MuseBroadcastsAnalyzePostRaw(initOverrides) {
|
|
20912
|
+
const queryParameters = {};
|
|
20913
|
+
const headerParameters = {};
|
|
20914
|
+
const response = await this.request({
|
|
20915
|
+
path: `/v1/muse/broadcasts/analyze`,
|
|
20916
|
+
method: "POST",
|
|
20917
|
+
headers: headerParameters,
|
|
20918
|
+
query: queryParameters
|
|
20919
|
+
}, initOverrides);
|
|
20920
|
+
return new VoidApiResponse(response);
|
|
20921
|
+
}
|
|
20922
|
+
/**
|
|
20923
|
+
* 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.
|
|
20924
|
+
* Stream a pre-send advisory for a draft broadcast
|
|
20925
|
+
*/
|
|
20926
|
+
async v1MuseBroadcastsAnalyzePost(initOverrides) {
|
|
20927
|
+
await this.v1MuseBroadcastsAnalyzePostRaw(initOverrides);
|
|
20928
|
+
}
|
|
20929
|
+
/**
|
|
20930
|
+
* 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).
|
|
20931
|
+
* Return the current account\'s Zyphr Muse entitlement
|
|
20932
|
+
*/
|
|
20933
|
+
async v1MuseEntitlementGetRaw(initOverrides) {
|
|
20934
|
+
const queryParameters = {};
|
|
20935
|
+
const headerParameters = {};
|
|
20936
|
+
const response = await this.request({
|
|
20937
|
+
path: `/v1/muse/entitlement`,
|
|
20938
|
+
method: "GET",
|
|
20939
|
+
headers: headerParameters,
|
|
20940
|
+
query: queryParameters
|
|
20941
|
+
}, initOverrides);
|
|
20942
|
+
return new VoidApiResponse(response);
|
|
20943
|
+
}
|
|
20944
|
+
/**
|
|
20945
|
+
* 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).
|
|
20946
|
+
* Return the current account\'s Zyphr Muse entitlement
|
|
20947
|
+
*/
|
|
20948
|
+
async v1MuseEntitlementGet(initOverrides) {
|
|
20949
|
+
await this.v1MuseEntitlementGetRaw(initOverrides);
|
|
20950
|
+
}
|
|
20951
|
+
/**
|
|
20952
|
+
* 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.
|
|
20953
|
+
* Per-prompt eval baseline snapshots
|
|
20954
|
+
*/
|
|
20955
|
+
async v1MuseEvalBaselinesGetRaw(initOverrides) {
|
|
20956
|
+
const queryParameters = {};
|
|
20957
|
+
const headerParameters = {};
|
|
20958
|
+
const response = await this.request({
|
|
20959
|
+
path: `/v1/muse/eval-baselines`,
|
|
20960
|
+
method: "GET",
|
|
20961
|
+
headers: headerParameters,
|
|
20962
|
+
query: queryParameters
|
|
20963
|
+
}, initOverrides);
|
|
20964
|
+
return new VoidApiResponse(response);
|
|
20965
|
+
}
|
|
20966
|
+
/**
|
|
20967
|
+
* 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.
|
|
20968
|
+
* Per-prompt eval baseline snapshots
|
|
20969
|
+
*/
|
|
20970
|
+
async v1MuseEvalBaselinesGet(initOverrides) {
|
|
20971
|
+
await this.v1MuseEvalBaselinesGetRaw(initOverrides);
|
|
20972
|
+
}
|
|
20973
|
+
/**
|
|
20974
|
+
* 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.
|
|
20975
|
+
* Read Muse settings for a project
|
|
20976
|
+
*/
|
|
20977
|
+
async v1MuseSettingsProjectIdGetRaw(requestParameters, initOverrides) {
|
|
20978
|
+
if (requestParameters["projectId"] == null) {
|
|
20979
|
+
throw new RequiredError(
|
|
20980
|
+
"projectId",
|
|
20981
|
+
'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdGet().'
|
|
20982
|
+
);
|
|
20983
|
+
}
|
|
20984
|
+
const queryParameters = {};
|
|
20985
|
+
const headerParameters = {};
|
|
20986
|
+
const response = await this.request({
|
|
20987
|
+
path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
|
|
20988
|
+
method: "GET",
|
|
20989
|
+
headers: headerParameters,
|
|
20990
|
+
query: queryParameters
|
|
20991
|
+
}, initOverrides);
|
|
20992
|
+
return new VoidApiResponse(response);
|
|
20993
|
+
}
|
|
20994
|
+
/**
|
|
20995
|
+
* 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.
|
|
20996
|
+
* Read Muse settings for a project
|
|
20997
|
+
*/
|
|
20998
|
+
async v1MuseSettingsProjectIdGet(projectId, initOverrides) {
|
|
20999
|
+
await this.v1MuseSettingsProjectIdGetRaw({ projectId }, initOverrides);
|
|
21000
|
+
}
|
|
21001
|
+
/**
|
|
21002
|
+
* 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.
|
|
21003
|
+
* Update Muse settings for a project (admin or developer only)
|
|
21004
|
+
*/
|
|
21005
|
+
async v1MuseSettingsProjectIdPatchRaw(requestParameters, initOverrides) {
|
|
21006
|
+
if (requestParameters["projectId"] == null) {
|
|
21007
|
+
throw new RequiredError(
|
|
21008
|
+
"projectId",
|
|
21009
|
+
'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdPatch().'
|
|
21010
|
+
);
|
|
21011
|
+
}
|
|
21012
|
+
const queryParameters = {};
|
|
21013
|
+
const headerParameters = {};
|
|
21014
|
+
const response = await this.request({
|
|
21015
|
+
path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
|
|
21016
|
+
method: "PATCH",
|
|
21017
|
+
headers: headerParameters,
|
|
21018
|
+
query: queryParameters
|
|
21019
|
+
}, initOverrides);
|
|
21020
|
+
return new VoidApiResponse(response);
|
|
21021
|
+
}
|
|
21022
|
+
/**
|
|
21023
|
+
* 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.
|
|
21024
|
+
* Update Muse settings for a project (admin or developer only)
|
|
21025
|
+
*/
|
|
21026
|
+
async v1MuseSettingsProjectIdPatch(projectId, initOverrides) {
|
|
21027
|
+
await this.v1MuseSettingsProjectIdPatchRaw({ projectId }, initOverrides);
|
|
21028
|
+
}
|
|
21029
|
+
/**
|
|
21030
|
+
* Suggest 5 ranked subject-line candidates for a template
|
|
21031
|
+
*/
|
|
21032
|
+
async v1MuseSubjectsSuggestPostRaw(requestParameters, initOverrides) {
|
|
21033
|
+
if (requestParameters["v1MuseSubjectsSuggestPostRequest"] == null) {
|
|
21034
|
+
throw new RequiredError(
|
|
21035
|
+
"v1MuseSubjectsSuggestPostRequest",
|
|
21036
|
+
'Required parameter "v1MuseSubjectsSuggestPostRequest" was null or undefined when calling v1MuseSubjectsSuggestPost().'
|
|
21037
|
+
);
|
|
21038
|
+
}
|
|
21039
|
+
const queryParameters = {};
|
|
21040
|
+
const headerParameters = {};
|
|
21041
|
+
headerParameters["Content-Type"] = "application/json";
|
|
21042
|
+
const response = await this.request({
|
|
21043
|
+
path: `/v1/muse/subjects/suggest`,
|
|
21044
|
+
method: "POST",
|
|
21045
|
+
headers: headerParameters,
|
|
21046
|
+
query: queryParameters,
|
|
21047
|
+
body: V1MuseSubjectsSuggestPostRequestToJSON(requestParameters["v1MuseSubjectsSuggestPostRequest"])
|
|
21048
|
+
}, initOverrides);
|
|
21049
|
+
return new VoidApiResponse(response);
|
|
21050
|
+
}
|
|
21051
|
+
/**
|
|
21052
|
+
* Suggest 5 ranked subject-line candidates for a template
|
|
21053
|
+
*/
|
|
21054
|
+
async v1MuseSubjectsSuggestPost(v1MuseSubjectsSuggestPostRequest, initOverrides) {
|
|
21055
|
+
await this.v1MuseSubjectsSuggestPostRaw({ v1MuseSubjectsSuggestPostRequest }, initOverrides);
|
|
21056
|
+
}
|
|
21057
|
+
/**
|
|
21058
|
+
* Stream a draft template from a natural-language brief
|
|
21059
|
+
*/
|
|
21060
|
+
async v1MuseTemplatesDraftPostRaw(initOverrides) {
|
|
21061
|
+
const queryParameters = {};
|
|
21062
|
+
const headerParameters = {};
|
|
21063
|
+
const response = await this.request({
|
|
21064
|
+
path: `/v1/muse/templates/draft`,
|
|
21065
|
+
method: "POST",
|
|
21066
|
+
headers: headerParameters,
|
|
21067
|
+
query: queryParameters
|
|
21068
|
+
}, initOverrides);
|
|
21069
|
+
return new VoidApiResponse(response);
|
|
21070
|
+
}
|
|
21071
|
+
/**
|
|
21072
|
+
* Stream a draft template from a natural-language brief
|
|
21073
|
+
*/
|
|
21074
|
+
async v1MuseTemplatesDraftPost(initOverrides) {
|
|
21075
|
+
await this.v1MuseTemplatesDraftPostRaw(initOverrides);
|
|
21076
|
+
}
|
|
21077
|
+
/**
|
|
21078
|
+
* Stream a rewritten block per the user\'s instruction
|
|
21079
|
+
*/
|
|
21080
|
+
async v1MuseTemplatesRewritePostRaw(initOverrides) {
|
|
21081
|
+
const queryParameters = {};
|
|
21082
|
+
const headerParameters = {};
|
|
21083
|
+
const response = await this.request({
|
|
21084
|
+
path: `/v1/muse/templates/rewrite`,
|
|
21085
|
+
method: "POST",
|
|
21086
|
+
headers: headerParameters,
|
|
21087
|
+
query: queryParameters
|
|
21088
|
+
}, initOverrides);
|
|
21089
|
+
return new VoidApiResponse(response);
|
|
21090
|
+
}
|
|
21091
|
+
/**
|
|
21092
|
+
* Stream a rewritten block per the user\'s instruction
|
|
21093
|
+
*/
|
|
21094
|
+
async v1MuseTemplatesRewritePost(initOverrides) {
|
|
21095
|
+
await this.v1MuseTemplatesRewritePostRaw(initOverrides);
|
|
21096
|
+
}
|
|
21097
|
+
/**
|
|
21098
|
+
* 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).
|
|
21099
|
+
* Per-account Zyphr Muse usage + budget tier
|
|
21100
|
+
*/
|
|
21101
|
+
async v1MuseUsageGetRaw(initOverrides) {
|
|
21102
|
+
const queryParameters = {};
|
|
21103
|
+
const headerParameters = {};
|
|
21104
|
+
const response = await this.request({
|
|
21105
|
+
path: `/v1/muse/usage`,
|
|
21106
|
+
method: "GET",
|
|
21107
|
+
headers: headerParameters,
|
|
21108
|
+
query: queryParameters
|
|
21109
|
+
}, initOverrides);
|
|
21110
|
+
return new VoidApiResponse(response);
|
|
21111
|
+
}
|
|
21112
|
+
/**
|
|
21113
|
+
* 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).
|
|
21114
|
+
* Per-account Zyphr Muse usage + budget tier
|
|
21115
|
+
*/
|
|
21116
|
+
async v1MuseUsageGet(initOverrides) {
|
|
21117
|
+
await this.v1MuseUsageGetRaw(initOverrides);
|
|
21118
|
+
}
|
|
21119
|
+
/**
|
|
21120
|
+
* 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.
|
|
21121
|
+
* Stream a generated workflow from a natural-language description
|
|
21122
|
+
*/
|
|
21123
|
+
async v1MuseWorkflowsGeneratePostRaw(initOverrides) {
|
|
21124
|
+
const queryParameters = {};
|
|
21125
|
+
const headerParameters = {};
|
|
21126
|
+
const response = await this.request({
|
|
21127
|
+
path: `/v1/muse/workflows/generate`,
|
|
21128
|
+
method: "POST",
|
|
21129
|
+
headers: headerParameters,
|
|
21130
|
+
query: queryParameters
|
|
21131
|
+
}, initOverrides);
|
|
21132
|
+
return new VoidApiResponse(response);
|
|
21133
|
+
}
|
|
21134
|
+
/**
|
|
21135
|
+
* 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.
|
|
21136
|
+
* Stream a generated workflow from a natural-language description
|
|
21137
|
+
*/
|
|
21138
|
+
async v1MuseWorkflowsGeneratePost(initOverrides) {
|
|
21139
|
+
await this.v1MuseWorkflowsGeneratePostRaw(initOverrides);
|
|
21140
|
+
}
|
|
21141
|
+
};
|
|
21142
|
+
|
|
19166
21143
|
// src/src/apis/PushApi.ts
|
|
19167
21144
|
var PushApi = class extends BaseAPI {
|
|
19168
21145
|
/**
|
|
@@ -23163,6 +25140,8 @@ var Zyphr = class {
|
|
|
23163
25140
|
topics;
|
|
23164
25141
|
devices;
|
|
23165
25142
|
domains;
|
|
25143
|
+
/** Inbound (received) email — read access. Requires the `email:read` scope. */
|
|
25144
|
+
inbound;
|
|
23166
25145
|
waas;
|
|
23167
25146
|
auth;
|
|
23168
25147
|
options;
|
|
@@ -23188,6 +25167,7 @@ var Zyphr = class {
|
|
|
23188
25167
|
this.topics = new TopicsApi(config);
|
|
23189
25168
|
this.devices = new DevicesApi(config);
|
|
23190
25169
|
this.domains = new DomainsApi(config);
|
|
25170
|
+
this.inbound = new InboundEmailApi(config);
|
|
23191
25171
|
this.waas = {
|
|
23192
25172
|
applications: new WaaSApplicationsApi(config),
|
|
23193
25173
|
eventTypes: new WaaSEventTypesApi(config),
|
|
@@ -23205,6 +25185,9 @@ var Zyphr = class {
|
|
|
23205
25185
|
mfa: new AuthMFAApi(config),
|
|
23206
25186
|
magicLinks: new AuthMagicLinksApi(config),
|
|
23207
25187
|
oauth: new AuthOAuthApi(config),
|
|
25188
|
+
// sc-5594 / epic-5587 — Auth-as-a-Service Organizations (Pro/Enterprise).
|
|
25189
|
+
// Sub-tenant CRUD + membership + the active-org switch flow.
|
|
25190
|
+
organizations: new AuthOrganizationsApi(config),
|
|
23208
25191
|
phone: new AuthPhoneApi(config),
|
|
23209
25192
|
profile: new AuthUserProfileApi(config),
|
|
23210
25193
|
webauthn: new AuthWebAuthnApi(config)
|
|
@@ -23255,6 +25238,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
23255
25238
|
AddDomainRequestFromJSONTyped,
|
|
23256
25239
|
AddDomainRequestToJSON,
|
|
23257
25240
|
AddDomainRequestToJSONTyped,
|
|
25241
|
+
AddOrganizationMemberRequestFromJSON,
|
|
25242
|
+
AddOrganizationMemberRequestFromJSONTyped,
|
|
25243
|
+
AddOrganizationMemberRequestToJSON,
|
|
25244
|
+
AddOrganizationMemberRequestToJSONTyped,
|
|
23258
25245
|
AddTopicSubscribersRequestFromJSON,
|
|
23259
25246
|
AddTopicSubscribersRequestFromJSONTyped,
|
|
23260
25247
|
AddTopicSubscribersRequestToJSON,
|
|
@@ -23360,6 +25347,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
23360
25347
|
AuthMFAApi,
|
|
23361
25348
|
AuthMagicLinksApi,
|
|
23362
25349
|
AuthOAuthApi,
|
|
25350
|
+
AuthOrganizationsApi,
|
|
23363
25351
|
AuthPasswordResetApi,
|
|
23364
25352
|
AuthPhoneApi,
|
|
23365
25353
|
AuthRegistrationApi,
|
|
@@ -23499,6 +25487,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
23499
25487
|
CreateCategoryRequestFromJSONTyped,
|
|
23500
25488
|
CreateCategoryRequestToJSON,
|
|
23501
25489
|
CreateCategoryRequestToJSONTyped,
|
|
25490
|
+
CreateOrganizationRequestFromJSON,
|
|
25491
|
+
CreateOrganizationRequestFromJSONTyped,
|
|
25492
|
+
CreateOrganizationRequestToJSON,
|
|
25493
|
+
CreateOrganizationRequestToJSONTyped,
|
|
23502
25494
|
CreateSubscriberRequestFromJSON,
|
|
23503
25495
|
CreateSubscriberRequestFromJSONTyped,
|
|
23504
25496
|
CreateSubscriberRequestToJSON,
|
|
@@ -23740,6 +25732,43 @@ var SDK_VERSION = "0.1.0";
|
|
|
23740
25732
|
InAppNotificationPriorityEnum,
|
|
23741
25733
|
InAppNotificationToJSON,
|
|
23742
25734
|
InAppNotificationToJSONTyped,
|
|
25735
|
+
InboundAttachmentUrlResponseDataFromJSON,
|
|
25736
|
+
InboundAttachmentUrlResponseDataFromJSONTyped,
|
|
25737
|
+
InboundAttachmentUrlResponseDataToJSON,
|
|
25738
|
+
InboundAttachmentUrlResponseDataToJSONTyped,
|
|
25739
|
+
InboundAttachmentUrlResponseFromJSON,
|
|
25740
|
+
InboundAttachmentUrlResponseFromJSONTyped,
|
|
25741
|
+
InboundAttachmentUrlResponseToJSON,
|
|
25742
|
+
InboundAttachmentUrlResponseToJSONTyped,
|
|
25743
|
+
InboundEmailApi,
|
|
25744
|
+
InboundEmailAttachmentFromJSON,
|
|
25745
|
+
InboundEmailAttachmentFromJSONTyped,
|
|
25746
|
+
InboundEmailAttachmentToJSON,
|
|
25747
|
+
InboundEmailAttachmentToJSONTyped,
|
|
25748
|
+
InboundEmailDkimVerdictEnum,
|
|
25749
|
+
InboundEmailDmarcVerdictEnum,
|
|
25750
|
+
InboundEmailFromFromJSON,
|
|
25751
|
+
InboundEmailFromFromJSONTyped,
|
|
25752
|
+
InboundEmailFromJSON,
|
|
25753
|
+
InboundEmailFromJSONTyped,
|
|
25754
|
+
InboundEmailFromToJSON,
|
|
25755
|
+
InboundEmailFromToJSONTyped,
|
|
25756
|
+
InboundEmailListResponseFromJSON,
|
|
25757
|
+
InboundEmailListResponseFromJSONTyped,
|
|
25758
|
+
InboundEmailListResponseMetaFromJSON,
|
|
25759
|
+
InboundEmailListResponseMetaFromJSONTyped,
|
|
25760
|
+
InboundEmailListResponseMetaToJSON,
|
|
25761
|
+
InboundEmailListResponseMetaToJSONTyped,
|
|
25762
|
+
InboundEmailListResponseToJSON,
|
|
25763
|
+
InboundEmailListResponseToJSONTyped,
|
|
25764
|
+
InboundEmailResponseFromJSON,
|
|
25765
|
+
InboundEmailResponseFromJSONTyped,
|
|
25766
|
+
InboundEmailResponseToJSON,
|
|
25767
|
+
InboundEmailResponseToJSONTyped,
|
|
25768
|
+
InboundEmailSpfVerdictEnum,
|
|
25769
|
+
InboundEmailStatusEnum,
|
|
25770
|
+
InboundEmailToJSON,
|
|
25771
|
+
InboundEmailToJSONTyped,
|
|
23743
25772
|
InboxApi,
|
|
23744
25773
|
InboxListMetaFromJSON,
|
|
23745
25774
|
InboxListMetaFromJSONTyped,
|
|
@@ -23757,6 +25786,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
23757
25786
|
ListAllInboxStatusEnum,
|
|
23758
25787
|
ListDevicesPlatformEnum,
|
|
23759
25788
|
ListEmailsStatusEnum,
|
|
25789
|
+
ListInboundEmailsStatusEnum,
|
|
23760
25790
|
ListPushStatusEnum,
|
|
23761
25791
|
ListSlackMessagesStatusEnum,
|
|
23762
25792
|
ListSmsStatusEnum,
|
|
@@ -23895,6 +25925,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
23895
25925
|
MfaVerifyRequestFromJSONTyped,
|
|
23896
25926
|
MfaVerifyRequestToJSON,
|
|
23897
25927
|
MfaVerifyRequestToJSONTyped,
|
|
25928
|
+
MuseApi,
|
|
23898
25929
|
OAuthAuthorizationUrlResponseDataFromJSON,
|
|
23899
25930
|
OAuthAuthorizationUrlResponseDataFromJSONTyped,
|
|
23900
25931
|
OAuthAuthorizationUrlResponseDataToJSON,
|
|
@@ -23967,6 +25998,38 @@ var SDK_VERSION = "0.1.0";
|
|
|
23967
25998
|
OAuthTokensResponseFromJSONTyped,
|
|
23968
25999
|
OAuthTokensResponseToJSON,
|
|
23969
26000
|
OAuthTokensResponseToJSONTyped,
|
|
26001
|
+
OrganizationFromJSON,
|
|
26002
|
+
OrganizationFromJSONTyped,
|
|
26003
|
+
OrganizationListResponseFromJSON,
|
|
26004
|
+
OrganizationListResponseFromJSONTyped,
|
|
26005
|
+
OrganizationListResponseMetaFromJSON,
|
|
26006
|
+
OrganizationListResponseMetaFromJSONTyped,
|
|
26007
|
+
OrganizationListResponseMetaToJSON,
|
|
26008
|
+
OrganizationListResponseMetaToJSONTyped,
|
|
26009
|
+
OrganizationListResponseToJSON,
|
|
26010
|
+
OrganizationListResponseToJSONTyped,
|
|
26011
|
+
OrganizationMembersListResponseFromJSON,
|
|
26012
|
+
OrganizationMembersListResponseFromJSONTyped,
|
|
26013
|
+
OrganizationMembersListResponseToJSON,
|
|
26014
|
+
OrganizationMembersListResponseToJSONTyped,
|
|
26015
|
+
OrganizationMembershipFromJSON,
|
|
26016
|
+
OrganizationMembershipFromJSONTyped,
|
|
26017
|
+
OrganizationMembershipResponseFromJSON,
|
|
26018
|
+
OrganizationMembershipResponseFromJSONTyped,
|
|
26019
|
+
OrganizationMembershipResponseToJSON,
|
|
26020
|
+
OrganizationMembershipResponseToJSONTyped,
|
|
26021
|
+
OrganizationMembershipToJSON,
|
|
26022
|
+
OrganizationMembershipToJSONTyped,
|
|
26023
|
+
OrganizationMembershipWithUserFromJSON,
|
|
26024
|
+
OrganizationMembershipWithUserFromJSONTyped,
|
|
26025
|
+
OrganizationMembershipWithUserToJSON,
|
|
26026
|
+
OrganizationMembershipWithUserToJSONTyped,
|
|
26027
|
+
OrganizationResponseFromJSON,
|
|
26028
|
+
OrganizationResponseFromJSONTyped,
|
|
26029
|
+
OrganizationResponseToJSON,
|
|
26030
|
+
OrganizationResponseToJSONTyped,
|
|
26031
|
+
OrganizationToJSON,
|
|
26032
|
+
OrganizationToJSONTyped,
|
|
23970
26033
|
PaginationMetaFromJSON,
|
|
23971
26034
|
PaginationMetaFromJSONTyped,
|
|
23972
26035
|
PaginationMetaToJSON,
|
|
@@ -24326,6 +26389,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
24326
26389
|
SessionListResponseFromJSONTyped,
|
|
24327
26390
|
SessionListResponseToJSON,
|
|
24328
26391
|
SessionListResponseToJSONTyped,
|
|
26392
|
+
SetDomainInboundRequestFromJSON,
|
|
26393
|
+
SetDomainInboundRequestFromJSONTyped,
|
|
26394
|
+
SetDomainInboundRequestToJSON,
|
|
26395
|
+
SetDomainInboundRequestToJSONTyped,
|
|
24329
26396
|
SetPreferencesRequestFromJSON,
|
|
24330
26397
|
SetPreferencesRequestFromJSONTyped,
|
|
24331
26398
|
SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -24437,6 +26504,27 @@ var SDK_VERSION = "0.1.0";
|
|
|
24437
26504
|
SuccessResultFromJSONTyped,
|
|
24438
26505
|
SuccessResultToJSON,
|
|
24439
26506
|
SuccessResultToJSONTyped,
|
|
26507
|
+
SwitchOrganizationRequestFromJSON,
|
|
26508
|
+
SwitchOrganizationRequestFromJSONTyped,
|
|
26509
|
+
SwitchOrganizationRequestToJSON,
|
|
26510
|
+
SwitchOrganizationRequestToJSONTyped,
|
|
26511
|
+
SwitchOrganizationResponseDataFromJSON,
|
|
26512
|
+
SwitchOrganizationResponseDataFromJSONTyped,
|
|
26513
|
+
SwitchOrganizationResponseDataToJSON,
|
|
26514
|
+
SwitchOrganizationResponseDataToJSONTyped,
|
|
26515
|
+
SwitchOrganizationResponseDataTokensFromJSON,
|
|
26516
|
+
SwitchOrganizationResponseDataTokensFromJSONTyped,
|
|
26517
|
+
SwitchOrganizationResponseDataTokensToJSON,
|
|
26518
|
+
SwitchOrganizationResponseDataTokensToJSONTyped,
|
|
26519
|
+
SwitchOrganizationResponseDataTokensTokenTypeEnum,
|
|
26520
|
+
SwitchOrganizationResponseDataUserFromJSON,
|
|
26521
|
+
SwitchOrganizationResponseDataUserFromJSONTyped,
|
|
26522
|
+
SwitchOrganizationResponseDataUserToJSON,
|
|
26523
|
+
SwitchOrganizationResponseDataUserToJSONTyped,
|
|
26524
|
+
SwitchOrganizationResponseFromJSON,
|
|
26525
|
+
SwitchOrganizationResponseFromJSONTyped,
|
|
26526
|
+
SwitchOrganizationResponseToJSON,
|
|
26527
|
+
SwitchOrganizationResponseToJSONTyped,
|
|
24440
26528
|
TemplateFromJSON,
|
|
24441
26529
|
TemplateFromJSONTyped,
|
|
24442
26530
|
TemplateListResponseFromJSON,
|
|
@@ -24554,6 +26642,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
24554
26642
|
UpdateEndUserRequestFromJSONTyped,
|
|
24555
26643
|
UpdateEndUserRequestToJSON,
|
|
24556
26644
|
UpdateEndUserRequestToJSONTyped,
|
|
26645
|
+
UpdateOrganizationMemberRoleRequestFromJSON,
|
|
26646
|
+
UpdateOrganizationMemberRoleRequestFromJSONTyped,
|
|
26647
|
+
UpdateOrganizationMemberRoleRequestToJSON,
|
|
26648
|
+
UpdateOrganizationMemberRoleRequestToJSONTyped,
|
|
26649
|
+
UpdateOrganizationRequestFromJSON,
|
|
26650
|
+
UpdateOrganizationRequestFromJSONTyped,
|
|
26651
|
+
UpdateOrganizationRequestToJSON,
|
|
26652
|
+
UpdateOrganizationRequestToJSONTyped,
|
|
24557
26653
|
UpdateSubscriberPreferencesRequestFromJSON,
|
|
24558
26654
|
UpdateSubscriberPreferencesRequestFromJSONTyped,
|
|
24559
26655
|
UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
|
|
@@ -24612,6 +26708,11 @@ var SDK_VERSION = "0.1.0";
|
|
|
24612
26708
|
UserDevicesDeleteResponseToJSON,
|
|
24613
26709
|
UserDevicesDeleteResponseToJSONTyped,
|
|
24614
26710
|
UtilityApi,
|
|
26711
|
+
V1MuseSubjectsSuggestPostRequestChannelEnum,
|
|
26712
|
+
V1MuseSubjectsSuggestPostRequestFromJSON,
|
|
26713
|
+
V1MuseSubjectsSuggestPostRequestFromJSONTyped,
|
|
26714
|
+
V1MuseSubjectsSuggestPostRequestToJSON,
|
|
26715
|
+
V1MuseSubjectsSuggestPostRequestToJSONTyped,
|
|
24615
26716
|
ValidateResetTokenRequestFromJSON,
|
|
24616
26717
|
ValidateResetTokenRequestFromJSONTyped,
|
|
24617
26718
|
ValidateResetTokenRequestToJSON,
|
|
@@ -24957,6 +27058,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
24957
27058
|
instanceOfAddDomain200Response,
|
|
24958
27059
|
instanceOfAddDomain200ResponseMeta,
|
|
24959
27060
|
instanceOfAddDomainRequest,
|
|
27061
|
+
instanceOfAddOrganizationMemberRequest,
|
|
24960
27062
|
instanceOfAddTopicSubscribersRequest,
|
|
24961
27063
|
instanceOfApiError,
|
|
24962
27064
|
instanceOfApiErrorError,
|
|
@@ -25011,6 +27113,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
25011
27113
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
|
|
25012
27114
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
|
|
25013
27115
|
instanceOfCreateCategoryRequest,
|
|
27116
|
+
instanceOfCreateOrganizationRequest,
|
|
25014
27117
|
instanceOfCreateSubscriberRequest,
|
|
25015
27118
|
instanceOfCreateTemplateRequest,
|
|
25016
27119
|
instanceOfCreateTopicRequest,
|
|
@@ -25067,6 +27170,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
25067
27170
|
instanceOfGetWaaSEndpoint200Response,
|
|
25068
27171
|
instanceOfGetWaaSUsage200Response,
|
|
25069
27172
|
instanceOfInAppNotification,
|
|
27173
|
+
instanceOfInboundAttachmentUrlResponse,
|
|
27174
|
+
instanceOfInboundAttachmentUrlResponseData,
|
|
27175
|
+
instanceOfInboundEmail,
|
|
27176
|
+
instanceOfInboundEmailAttachment,
|
|
27177
|
+
instanceOfInboundEmailFrom,
|
|
27178
|
+
instanceOfInboundEmailListResponse,
|
|
27179
|
+
instanceOfInboundEmailListResponseMeta,
|
|
27180
|
+
instanceOfInboundEmailResponse,
|
|
25070
27181
|
instanceOfInboxListMeta,
|
|
25071
27182
|
instanceOfInboxListResponse,
|
|
25072
27183
|
instanceOfInboxNotificationResponse,
|
|
@@ -25120,6 +27231,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
25120
27231
|
instanceOfOAuthTokensRefreshResponseData,
|
|
25121
27232
|
instanceOfOAuthTokensResponse,
|
|
25122
27233
|
instanceOfOAuthTokensResponseData,
|
|
27234
|
+
instanceOfOrganization,
|
|
27235
|
+
instanceOfOrganizationListResponse,
|
|
27236
|
+
instanceOfOrganizationListResponseMeta,
|
|
27237
|
+
instanceOfOrganizationMembersListResponse,
|
|
27238
|
+
instanceOfOrganizationMembership,
|
|
27239
|
+
instanceOfOrganizationMembershipResponse,
|
|
27240
|
+
instanceOfOrganizationMembershipWithUser,
|
|
27241
|
+
instanceOfOrganizationResponse,
|
|
25123
27242
|
instanceOfPaginationMeta,
|
|
25124
27243
|
instanceOfPasswordRequirements,
|
|
25125
27244
|
instanceOfPasswordRequirementsResponse,
|
|
@@ -25206,6 +27325,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
25206
27325
|
instanceOfSessionListResponse,
|
|
25207
27326
|
instanceOfSessionListResponseData,
|
|
25208
27327
|
instanceOfSessionListResponseDataSessionInfo,
|
|
27328
|
+
instanceOfSetDomainInboundRequest,
|
|
25209
27329
|
instanceOfSetPreferencesRequest,
|
|
25210
27330
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
25211
27331
|
instanceOfSignInAnonymouslyRequest,
|
|
@@ -25232,6 +27352,11 @@ var SDK_VERSION = "0.1.0";
|
|
|
25232
27352
|
instanceOfSubscriberPreference,
|
|
25233
27353
|
instanceOfSubscriberResponse,
|
|
25234
27354
|
instanceOfSuccessResult,
|
|
27355
|
+
instanceOfSwitchOrganizationRequest,
|
|
27356
|
+
instanceOfSwitchOrganizationResponse,
|
|
27357
|
+
instanceOfSwitchOrganizationResponseData,
|
|
27358
|
+
instanceOfSwitchOrganizationResponseDataTokens,
|
|
27359
|
+
instanceOfSwitchOrganizationResponseDataUser,
|
|
25235
27360
|
instanceOfTemplate,
|
|
25236
27361
|
instanceOfTemplateListResponse,
|
|
25237
27362
|
instanceOfTemplateRenderResponse,
|
|
@@ -25260,6 +27385,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
25260
27385
|
instanceOfUnsubscribeResponse,
|
|
25261
27386
|
instanceOfUpdateCategoryRequest,
|
|
25262
27387
|
instanceOfUpdateEndUserRequest,
|
|
27388
|
+
instanceOfUpdateOrganizationMemberRoleRequest,
|
|
27389
|
+
instanceOfUpdateOrganizationRequest,
|
|
25263
27390
|
instanceOfUpdateSubscriberPreferencesRequest,
|
|
25264
27391
|
instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
|
|
25265
27392
|
instanceOfUpdateSubscriberRequest,
|
|
@@ -25273,6 +27400,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
25273
27400
|
instanceOfUpsertSmsConfigRequest,
|
|
25274
27401
|
instanceOfUserDevicesDeleteResponse,
|
|
25275
27402
|
instanceOfUserDevicesDeleteResponseData,
|
|
27403
|
+
instanceOfV1MuseSubjectsSuggestPostRequest,
|
|
25276
27404
|
instanceOfValidateResetTokenRequest,
|
|
25277
27405
|
instanceOfValidateResetTokenResponse,
|
|
25278
27406
|
instanceOfValidateResetTokenResponseData,
|