@zyphr-dev/node-sdk 0.1.33 → 0.1.35
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 +975 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1025 -42
- package/dist/index.d.ts +1025 -42
- package/dist/index.js +898 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +16 -1
- package/src/client.ts +4 -0
- package/src/src/apis/AuthEmailOTPApi.ts +371 -0
- package/src/src/apis/DomainsApi.ts +73 -0
- package/src/src/apis/InboundEmailApi.ts +264 -0
- package/src/src/apis/index.ts +2 -0
- package/src/src/models/CheckEmailOtpAvailability200Response.ts +73 -0
- package/src/src/models/{PhoneAuthAvailabilityResponseData.ts → CheckEmailOtpAvailability200ResponseData.ts} +12 -12
- 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/PhoneAuthAvailabilityResponse.ts +10 -10
- package/src/src/models/SendEmailOtpRegistrationRequest.ts +66 -0
- package/src/src/models/SetDomainInboundRequest.ts +65 -0
- package/src/src/models/VerifyEmailOtpLoginRequest.ts +83 -0
- package/src/src/models/VerifyEmailOtpRegistrationRequest.ts +91 -0
- package/src/src/models/index.ts +14 -1
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
ApiErrorMetaToJSONTyped: () => ApiErrorMetaToJSONTyped,
|
|
53
53
|
ApiErrorToJSON: () => ApiErrorToJSON,
|
|
54
54
|
ApiErrorToJSONTyped: () => ApiErrorToJSONTyped,
|
|
55
|
+
AuthEmailOTPApi: () => AuthEmailOTPApi,
|
|
55
56
|
AuthEmailTemplateDefaultFromJSON: () => AuthEmailTemplateDefaultFromJSON,
|
|
56
57
|
AuthEmailTemplateDefaultFromJSONTyped: () => AuthEmailTemplateDefaultFromJSONTyped,
|
|
57
58
|
AuthEmailTemplateDefaultResponseFromJSON: () => AuthEmailTemplateDefaultResponseFromJSON,
|
|
@@ -214,6 +215,14 @@ __export(index_exports, {
|
|
|
214
215
|
CategoryResponseToJSONTyped: () => CategoryResponseToJSONTyped,
|
|
215
216
|
CategoryToJSON: () => CategoryToJSON,
|
|
216
217
|
CategoryToJSONTyped: () => CategoryToJSONTyped,
|
|
218
|
+
CheckEmailOtpAvailability200ResponseDataFromJSON: () => CheckEmailOtpAvailability200ResponseDataFromJSON,
|
|
219
|
+
CheckEmailOtpAvailability200ResponseDataFromJSONTyped: () => CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
|
|
220
|
+
CheckEmailOtpAvailability200ResponseDataToJSON: () => CheckEmailOtpAvailability200ResponseDataToJSON,
|
|
221
|
+
CheckEmailOtpAvailability200ResponseDataToJSONTyped: () => CheckEmailOtpAvailability200ResponseDataToJSONTyped,
|
|
222
|
+
CheckEmailOtpAvailability200ResponseFromJSON: () => CheckEmailOtpAvailability200ResponseFromJSON,
|
|
223
|
+
CheckEmailOtpAvailability200ResponseFromJSONTyped: () => CheckEmailOtpAvailability200ResponseFromJSONTyped,
|
|
224
|
+
CheckEmailOtpAvailability200ResponseToJSON: () => CheckEmailOtpAvailability200ResponseToJSON,
|
|
225
|
+
CheckEmailOtpAvailability200ResponseToJSONTyped: () => CheckEmailOtpAvailability200ResponseToJSONTyped,
|
|
217
226
|
Configuration: () => Configuration,
|
|
218
227
|
ConfirmEmailVerificationRequestFromJSON: () => ConfirmEmailVerificationRequestFromJSON,
|
|
219
228
|
ConfirmEmailVerificationRequestFromJSONTyped: () => ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -526,6 +535,43 @@ __export(index_exports, {
|
|
|
526
535
|
InAppNotificationPriorityEnum: () => InAppNotificationPriorityEnum,
|
|
527
536
|
InAppNotificationToJSON: () => InAppNotificationToJSON,
|
|
528
537
|
InAppNotificationToJSONTyped: () => InAppNotificationToJSONTyped,
|
|
538
|
+
InboundAttachmentUrlResponseDataFromJSON: () => InboundAttachmentUrlResponseDataFromJSON,
|
|
539
|
+
InboundAttachmentUrlResponseDataFromJSONTyped: () => InboundAttachmentUrlResponseDataFromJSONTyped,
|
|
540
|
+
InboundAttachmentUrlResponseDataToJSON: () => InboundAttachmentUrlResponseDataToJSON,
|
|
541
|
+
InboundAttachmentUrlResponseDataToJSONTyped: () => InboundAttachmentUrlResponseDataToJSONTyped,
|
|
542
|
+
InboundAttachmentUrlResponseFromJSON: () => InboundAttachmentUrlResponseFromJSON,
|
|
543
|
+
InboundAttachmentUrlResponseFromJSONTyped: () => InboundAttachmentUrlResponseFromJSONTyped,
|
|
544
|
+
InboundAttachmentUrlResponseToJSON: () => InboundAttachmentUrlResponseToJSON,
|
|
545
|
+
InboundAttachmentUrlResponseToJSONTyped: () => InboundAttachmentUrlResponseToJSONTyped,
|
|
546
|
+
InboundEmailApi: () => InboundEmailApi,
|
|
547
|
+
InboundEmailAttachmentFromJSON: () => InboundEmailAttachmentFromJSON,
|
|
548
|
+
InboundEmailAttachmentFromJSONTyped: () => InboundEmailAttachmentFromJSONTyped,
|
|
549
|
+
InboundEmailAttachmentToJSON: () => InboundEmailAttachmentToJSON,
|
|
550
|
+
InboundEmailAttachmentToJSONTyped: () => InboundEmailAttachmentToJSONTyped,
|
|
551
|
+
InboundEmailDkimVerdictEnum: () => InboundEmailDkimVerdictEnum,
|
|
552
|
+
InboundEmailDmarcVerdictEnum: () => InboundEmailDmarcVerdictEnum,
|
|
553
|
+
InboundEmailFromFromJSON: () => InboundEmailFromFromJSON,
|
|
554
|
+
InboundEmailFromFromJSONTyped: () => InboundEmailFromFromJSONTyped,
|
|
555
|
+
InboundEmailFromJSON: () => InboundEmailFromJSON,
|
|
556
|
+
InboundEmailFromJSONTyped: () => InboundEmailFromJSONTyped,
|
|
557
|
+
InboundEmailFromToJSON: () => InboundEmailFromToJSON,
|
|
558
|
+
InboundEmailFromToJSONTyped: () => InboundEmailFromToJSONTyped,
|
|
559
|
+
InboundEmailListResponseFromJSON: () => InboundEmailListResponseFromJSON,
|
|
560
|
+
InboundEmailListResponseFromJSONTyped: () => InboundEmailListResponseFromJSONTyped,
|
|
561
|
+
InboundEmailListResponseMetaFromJSON: () => InboundEmailListResponseMetaFromJSON,
|
|
562
|
+
InboundEmailListResponseMetaFromJSONTyped: () => InboundEmailListResponseMetaFromJSONTyped,
|
|
563
|
+
InboundEmailListResponseMetaToJSON: () => InboundEmailListResponseMetaToJSON,
|
|
564
|
+
InboundEmailListResponseMetaToJSONTyped: () => InboundEmailListResponseMetaToJSONTyped,
|
|
565
|
+
InboundEmailListResponseToJSON: () => InboundEmailListResponseToJSON,
|
|
566
|
+
InboundEmailListResponseToJSONTyped: () => InboundEmailListResponseToJSONTyped,
|
|
567
|
+
InboundEmailResponseFromJSON: () => InboundEmailResponseFromJSON,
|
|
568
|
+
InboundEmailResponseFromJSONTyped: () => InboundEmailResponseFromJSONTyped,
|
|
569
|
+
InboundEmailResponseToJSON: () => InboundEmailResponseToJSON,
|
|
570
|
+
InboundEmailResponseToJSONTyped: () => InboundEmailResponseToJSONTyped,
|
|
571
|
+
InboundEmailSpfVerdictEnum: () => InboundEmailSpfVerdictEnum,
|
|
572
|
+
InboundEmailStatusEnum: () => InboundEmailStatusEnum,
|
|
573
|
+
InboundEmailToJSON: () => InboundEmailToJSON,
|
|
574
|
+
InboundEmailToJSONTyped: () => InboundEmailToJSONTyped,
|
|
529
575
|
InboxApi: () => InboxApi,
|
|
530
576
|
InboxListMetaFromJSON: () => InboxListMetaFromJSON,
|
|
531
577
|
InboxListMetaFromJSONTyped: () => InboxListMetaFromJSONTyped,
|
|
@@ -543,6 +589,7 @@ __export(index_exports, {
|
|
|
543
589
|
ListAllInboxStatusEnum: () => ListAllInboxStatusEnum,
|
|
544
590
|
ListDevicesPlatformEnum: () => ListDevicesPlatformEnum,
|
|
545
591
|
ListEmailsStatusEnum: () => ListEmailsStatusEnum,
|
|
592
|
+
ListInboundEmailsStatusEnum: () => ListInboundEmailsStatusEnum,
|
|
546
593
|
ListPushStatusEnum: () => ListPushStatusEnum,
|
|
547
594
|
ListSlackMessagesStatusEnum: () => ListSlackMessagesStatusEnum,
|
|
548
595
|
ListSmsStatusEnum: () => ListSmsStatusEnum,
|
|
@@ -815,10 +862,6 @@ __export(index_exports, {
|
|
|
815
862
|
PayloadTooLargeErrorFromJSONTyped: () => PayloadTooLargeErrorFromJSONTyped,
|
|
816
863
|
PayloadTooLargeErrorToJSON: () => PayloadTooLargeErrorToJSON,
|
|
817
864
|
PayloadTooLargeErrorToJSONTyped: () => PayloadTooLargeErrorToJSONTyped,
|
|
818
|
-
PhoneAuthAvailabilityResponseDataFromJSON: () => PhoneAuthAvailabilityResponseDataFromJSON,
|
|
819
|
-
PhoneAuthAvailabilityResponseDataFromJSONTyped: () => PhoneAuthAvailabilityResponseDataFromJSONTyped,
|
|
820
|
-
PhoneAuthAvailabilityResponseDataToJSON: () => PhoneAuthAvailabilityResponseDataToJSON,
|
|
821
|
-
PhoneAuthAvailabilityResponseDataToJSONTyped: () => PhoneAuthAvailabilityResponseDataToJSONTyped,
|
|
822
865
|
PhoneAuthAvailabilityResponseFromJSON: () => PhoneAuthAvailabilityResponseFromJSON,
|
|
823
866
|
PhoneAuthAvailabilityResponseFromJSONTyped: () => PhoneAuthAvailabilityResponseFromJSONTyped,
|
|
824
867
|
PhoneAuthAvailabilityResponseToJSON: () => PhoneAuthAvailabilityResponseToJSON,
|
|
@@ -1031,6 +1074,10 @@ __export(index_exports, {
|
|
|
1031
1074
|
SendBatchSmsResponseFromJSONTyped: () => SendBatchSmsResponseFromJSONTyped,
|
|
1032
1075
|
SendBatchSmsResponseToJSON: () => SendBatchSmsResponseToJSON,
|
|
1033
1076
|
SendBatchSmsResponseToJSONTyped: () => SendBatchSmsResponseToJSONTyped,
|
|
1077
|
+
SendEmailOtpRegistrationRequestFromJSON: () => SendEmailOtpRegistrationRequestFromJSON,
|
|
1078
|
+
SendEmailOtpRegistrationRequestFromJSONTyped: () => SendEmailOtpRegistrationRequestFromJSONTyped,
|
|
1079
|
+
SendEmailOtpRegistrationRequestToJSON: () => SendEmailOtpRegistrationRequestToJSON,
|
|
1080
|
+
SendEmailOtpRegistrationRequestToJSONTyped: () => SendEmailOtpRegistrationRequestToJSONTyped,
|
|
1034
1081
|
SendEmailRequestFromJSON: () => SendEmailRequestFromJSON,
|
|
1035
1082
|
SendEmailRequestFromJSONTyped: () => SendEmailRequestFromJSONTyped,
|
|
1036
1083
|
SendEmailRequestToJSON: () => SendEmailRequestToJSON,
|
|
@@ -1145,6 +1192,10 @@ __export(index_exports, {
|
|
|
1145
1192
|
SessionListResponseFromJSONTyped: () => SessionListResponseFromJSONTyped,
|
|
1146
1193
|
SessionListResponseToJSON: () => SessionListResponseToJSON,
|
|
1147
1194
|
SessionListResponseToJSONTyped: () => SessionListResponseToJSONTyped,
|
|
1195
|
+
SetDomainInboundRequestFromJSON: () => SetDomainInboundRequestFromJSON,
|
|
1196
|
+
SetDomainInboundRequestFromJSONTyped: () => SetDomainInboundRequestFromJSONTyped,
|
|
1197
|
+
SetDomainInboundRequestToJSON: () => SetDomainInboundRequestToJSON,
|
|
1198
|
+
SetDomainInboundRequestToJSONTyped: () => SetDomainInboundRequestToJSONTyped,
|
|
1148
1199
|
SetPreferencesRequestFromJSON: () => SetPreferencesRequestFromJSON,
|
|
1149
1200
|
SetPreferencesRequestFromJSONTyped: () => SetPreferencesRequestFromJSONTyped,
|
|
1150
1201
|
SetPreferencesRequestPreferencesInnerFromJSON: () => SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -1495,6 +1546,14 @@ __export(index_exports, {
|
|
|
1495
1546
|
VerifyDomainResponseFromJSONTyped: () => VerifyDomainResponseFromJSONTyped,
|
|
1496
1547
|
VerifyDomainResponseToJSON: () => VerifyDomainResponseToJSON,
|
|
1497
1548
|
VerifyDomainResponseToJSONTyped: () => VerifyDomainResponseToJSONTyped,
|
|
1549
|
+
VerifyEmailOtpLoginRequestFromJSON: () => VerifyEmailOtpLoginRequestFromJSON,
|
|
1550
|
+
VerifyEmailOtpLoginRequestFromJSONTyped: () => VerifyEmailOtpLoginRequestFromJSONTyped,
|
|
1551
|
+
VerifyEmailOtpLoginRequestToJSON: () => VerifyEmailOtpLoginRequestToJSON,
|
|
1552
|
+
VerifyEmailOtpLoginRequestToJSONTyped: () => VerifyEmailOtpLoginRequestToJSONTyped,
|
|
1553
|
+
VerifyEmailOtpRegistrationRequestFromJSON: () => VerifyEmailOtpRegistrationRequestFromJSON,
|
|
1554
|
+
VerifyEmailOtpRegistrationRequestFromJSONTyped: () => VerifyEmailOtpRegistrationRequestFromJSONTyped,
|
|
1555
|
+
VerifyEmailOtpRegistrationRequestToJSON: () => VerifyEmailOtpRegistrationRequestToJSON,
|
|
1556
|
+
VerifyEmailOtpRegistrationRequestToJSONTyped: () => VerifyEmailOtpRegistrationRequestToJSONTyped,
|
|
1498
1557
|
VerifySmsConfigDataFromJSON: () => VerifySmsConfigDataFromJSON,
|
|
1499
1558
|
VerifySmsConfigDataFromJSONTyped: () => VerifySmsConfigDataFromJSONTyped,
|
|
1500
1559
|
VerifySmsConfigDataToJSON: () => VerifySmsConfigDataToJSON,
|
|
@@ -1850,6 +1909,8 @@ __export(index_exports, {
|
|
|
1850
1909
|
instanceOfCategory: () => instanceOfCategory,
|
|
1851
1910
|
instanceOfCategoryListResponse: () => instanceOfCategoryListResponse,
|
|
1852
1911
|
instanceOfCategoryResponse: () => instanceOfCategoryResponse,
|
|
1912
|
+
instanceOfCheckEmailOtpAvailability200Response: () => instanceOfCheckEmailOtpAvailability200Response,
|
|
1913
|
+
instanceOfCheckEmailOtpAvailability200ResponseData: () => instanceOfCheckEmailOtpAvailability200ResponseData,
|
|
1853
1914
|
instanceOfConfirmEmailVerificationRequest: () => instanceOfConfirmEmailVerificationRequest,
|
|
1854
1915
|
instanceOfConfirmEmailVerificationResponse: () => instanceOfConfirmEmailVerificationResponse,
|
|
1855
1916
|
instanceOfConfirmEmailVerificationResponseData: () => instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -1922,6 +1983,14 @@ __export(index_exports, {
|
|
|
1922
1983
|
instanceOfGetWaaSEndpoint200Response: () => instanceOfGetWaaSEndpoint200Response,
|
|
1923
1984
|
instanceOfGetWaaSUsage200Response: () => instanceOfGetWaaSUsage200Response,
|
|
1924
1985
|
instanceOfInAppNotification: () => instanceOfInAppNotification,
|
|
1986
|
+
instanceOfInboundAttachmentUrlResponse: () => instanceOfInboundAttachmentUrlResponse,
|
|
1987
|
+
instanceOfInboundAttachmentUrlResponseData: () => instanceOfInboundAttachmentUrlResponseData,
|
|
1988
|
+
instanceOfInboundEmail: () => instanceOfInboundEmail,
|
|
1989
|
+
instanceOfInboundEmailAttachment: () => instanceOfInboundEmailAttachment,
|
|
1990
|
+
instanceOfInboundEmailFrom: () => instanceOfInboundEmailFrom,
|
|
1991
|
+
instanceOfInboundEmailListResponse: () => instanceOfInboundEmailListResponse,
|
|
1992
|
+
instanceOfInboundEmailListResponseMeta: () => instanceOfInboundEmailListResponseMeta,
|
|
1993
|
+
instanceOfInboundEmailResponse: () => instanceOfInboundEmailResponse,
|
|
1925
1994
|
instanceOfInboxListMeta: () => instanceOfInboxListMeta,
|
|
1926
1995
|
instanceOfInboxListResponse: () => instanceOfInboxListResponse,
|
|
1927
1996
|
instanceOfInboxNotificationResponse: () => instanceOfInboxNotificationResponse,
|
|
@@ -1991,7 +2060,6 @@ __export(index_exports, {
|
|
|
1991
2060
|
instanceOfPayloadTooLargeErrorError: () => instanceOfPayloadTooLargeErrorError,
|
|
1992
2061
|
instanceOfPayloadTooLargeErrorErrorDetails: () => instanceOfPayloadTooLargeErrorErrorDetails,
|
|
1993
2062
|
instanceOfPhoneAuthAvailabilityResponse: () => instanceOfPhoneAuthAvailabilityResponse,
|
|
1994
|
-
instanceOfPhoneAuthAvailabilityResponseData: () => instanceOfPhoneAuthAvailabilityResponseData,
|
|
1995
2063
|
instanceOfPhoneLoginVerifyRequest: () => instanceOfPhoneLoginVerifyRequest,
|
|
1996
2064
|
instanceOfPhoneOtpSendRequest: () => instanceOfPhoneOtpSendRequest,
|
|
1997
2065
|
instanceOfPhoneOtpSentResponse: () => instanceOfPhoneOtpSentResponse,
|
|
@@ -2041,6 +2109,7 @@ __export(index_exports, {
|
|
|
2041
2109
|
instanceOfSendBatchSmsData: () => instanceOfSendBatchSmsData,
|
|
2042
2110
|
instanceOfSendBatchSmsRequest: () => instanceOfSendBatchSmsRequest,
|
|
2043
2111
|
instanceOfSendBatchSmsResponse: () => instanceOfSendBatchSmsResponse,
|
|
2112
|
+
instanceOfSendEmailOtpRegistrationRequest: () => instanceOfSendEmailOtpRegistrationRequest,
|
|
2044
2113
|
instanceOfSendEmailRequest: () => instanceOfSendEmailRequest,
|
|
2045
2114
|
instanceOfSendEmailResponse: () => instanceOfSendEmailResponse,
|
|
2046
2115
|
instanceOfSendEmailResponseData: () => instanceOfSendEmailResponseData,
|
|
@@ -2069,6 +2138,7 @@ __export(index_exports, {
|
|
|
2069
2138
|
instanceOfSessionListResponse: () => instanceOfSessionListResponse,
|
|
2070
2139
|
instanceOfSessionListResponseData: () => instanceOfSessionListResponseData,
|
|
2071
2140
|
instanceOfSessionListResponseDataSessionInfo: () => instanceOfSessionListResponseDataSessionInfo,
|
|
2141
|
+
instanceOfSetDomainInboundRequest: () => instanceOfSetDomainInboundRequest,
|
|
2072
2142
|
instanceOfSetPreferencesRequest: () => instanceOfSetPreferencesRequest,
|
|
2073
2143
|
instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
|
|
2074
2144
|
instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
|
|
@@ -2151,6 +2221,8 @@ __export(index_exports, {
|
|
|
2151
2221
|
instanceOfVerificationStatusResponseData: () => instanceOfVerificationStatusResponseData,
|
|
2152
2222
|
instanceOfVerifyDomainResponse: () => instanceOfVerifyDomainResponse,
|
|
2153
2223
|
instanceOfVerifyDomainResponseData: () => instanceOfVerifyDomainResponseData,
|
|
2224
|
+
instanceOfVerifyEmailOtpLoginRequest: () => instanceOfVerifyEmailOtpLoginRequest,
|
|
2225
|
+
instanceOfVerifyEmailOtpRegistrationRequest: () => instanceOfVerifyEmailOtpRegistrationRequest,
|
|
2154
2226
|
instanceOfVerifySmsConfigData: () => instanceOfVerifySmsConfigData,
|
|
2155
2227
|
instanceOfVerifySmsConfigResponse: () => instanceOfVerifySmsConfigResponse,
|
|
2156
2228
|
instanceOfWaaSApplication: () => instanceOfWaaSApplication,
|
|
@@ -4145,6 +4217,62 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4145
4217
|
};
|
|
4146
4218
|
}
|
|
4147
4219
|
|
|
4220
|
+
// src/src/models/CheckEmailOtpAvailability200ResponseData.ts
|
|
4221
|
+
function instanceOfCheckEmailOtpAvailability200ResponseData(value) {
|
|
4222
|
+
return true;
|
|
4223
|
+
}
|
|
4224
|
+
function CheckEmailOtpAvailability200ResponseDataFromJSON(json) {
|
|
4225
|
+
return CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, false);
|
|
4226
|
+
}
|
|
4227
|
+
function CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4228
|
+
if (json == null) {
|
|
4229
|
+
return json;
|
|
4230
|
+
}
|
|
4231
|
+
return {
|
|
4232
|
+
"available": json["available"] == null ? void 0 : json["available"],
|
|
4233
|
+
"message": json["message"] == null ? void 0 : json["message"]
|
|
4234
|
+
};
|
|
4235
|
+
}
|
|
4236
|
+
function CheckEmailOtpAvailability200ResponseDataToJSON(json) {
|
|
4237
|
+
return CheckEmailOtpAvailability200ResponseDataToJSONTyped(json, false);
|
|
4238
|
+
}
|
|
4239
|
+
function CheckEmailOtpAvailability200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4240
|
+
if (value == null) {
|
|
4241
|
+
return value;
|
|
4242
|
+
}
|
|
4243
|
+
return {
|
|
4244
|
+
"available": value["available"],
|
|
4245
|
+
"message": value["message"]
|
|
4246
|
+
};
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
// src/src/models/CheckEmailOtpAvailability200Response.ts
|
|
4250
|
+
function instanceOfCheckEmailOtpAvailability200Response(value) {
|
|
4251
|
+
return true;
|
|
4252
|
+
}
|
|
4253
|
+
function CheckEmailOtpAvailability200ResponseFromJSON(json) {
|
|
4254
|
+
return CheckEmailOtpAvailability200ResponseFromJSONTyped(json, false);
|
|
4255
|
+
}
|
|
4256
|
+
function CheckEmailOtpAvailability200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4257
|
+
if (json == null) {
|
|
4258
|
+
return json;
|
|
4259
|
+
}
|
|
4260
|
+
return {
|
|
4261
|
+
"data": json["data"] == null ? void 0 : CheckEmailOtpAvailability200ResponseDataFromJSON(json["data"])
|
|
4262
|
+
};
|
|
4263
|
+
}
|
|
4264
|
+
function CheckEmailOtpAvailability200ResponseToJSON(json) {
|
|
4265
|
+
return CheckEmailOtpAvailability200ResponseToJSONTyped(json, false);
|
|
4266
|
+
}
|
|
4267
|
+
function CheckEmailOtpAvailability200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4268
|
+
if (value == null) {
|
|
4269
|
+
return value;
|
|
4270
|
+
}
|
|
4271
|
+
return {
|
|
4272
|
+
"data": CheckEmailOtpAvailability200ResponseDataToJSON(value["data"])
|
|
4273
|
+
};
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4148
4276
|
// src/src/models/ConfirmEmailVerificationRequest.ts
|
|
4149
4277
|
function instanceOfConfirmEmailVerificationRequest(value) {
|
|
4150
4278
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -6931,6 +7059,301 @@ function InAppNotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6931
7059
|
};
|
|
6932
7060
|
}
|
|
6933
7061
|
|
|
7062
|
+
// src/src/models/InboundAttachmentUrlResponseData.ts
|
|
7063
|
+
function instanceOfInboundAttachmentUrlResponseData(value) {
|
|
7064
|
+
return true;
|
|
7065
|
+
}
|
|
7066
|
+
function InboundAttachmentUrlResponseDataFromJSON(json) {
|
|
7067
|
+
return InboundAttachmentUrlResponseDataFromJSONTyped(json, false);
|
|
7068
|
+
}
|
|
7069
|
+
function InboundAttachmentUrlResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
7070
|
+
if (json == null) {
|
|
7071
|
+
return json;
|
|
7072
|
+
}
|
|
7073
|
+
return {
|
|
7074
|
+
"downloadUrl": json["download_url"] == null ? void 0 : json["download_url"],
|
|
7075
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
7076
|
+
"contentType": json["content_type"] == null ? void 0 : json["content_type"]
|
|
7077
|
+
};
|
|
7078
|
+
}
|
|
7079
|
+
function InboundAttachmentUrlResponseDataToJSON(json) {
|
|
7080
|
+
return InboundAttachmentUrlResponseDataToJSONTyped(json, false);
|
|
7081
|
+
}
|
|
7082
|
+
function InboundAttachmentUrlResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7083
|
+
if (value == null) {
|
|
7084
|
+
return value;
|
|
7085
|
+
}
|
|
7086
|
+
return {
|
|
7087
|
+
"download_url": value["downloadUrl"],
|
|
7088
|
+
"filename": value["filename"],
|
|
7089
|
+
"content_type": value["contentType"]
|
|
7090
|
+
};
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
// src/src/models/InboundAttachmentUrlResponse.ts
|
|
7094
|
+
function instanceOfInboundAttachmentUrlResponse(value) {
|
|
7095
|
+
return true;
|
|
7096
|
+
}
|
|
7097
|
+
function InboundAttachmentUrlResponseFromJSON(json) {
|
|
7098
|
+
return InboundAttachmentUrlResponseFromJSONTyped(json, false);
|
|
7099
|
+
}
|
|
7100
|
+
function InboundAttachmentUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7101
|
+
if (json == null) {
|
|
7102
|
+
return json;
|
|
7103
|
+
}
|
|
7104
|
+
return {
|
|
7105
|
+
"data": json["data"] == null ? void 0 : InboundAttachmentUrlResponseDataFromJSON(json["data"]),
|
|
7106
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7107
|
+
};
|
|
7108
|
+
}
|
|
7109
|
+
function InboundAttachmentUrlResponseToJSON(json) {
|
|
7110
|
+
return InboundAttachmentUrlResponseToJSONTyped(json, false);
|
|
7111
|
+
}
|
|
7112
|
+
function InboundAttachmentUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7113
|
+
if (value == null) {
|
|
7114
|
+
return value;
|
|
7115
|
+
}
|
|
7116
|
+
return {
|
|
7117
|
+
"data": InboundAttachmentUrlResponseDataToJSON(value["data"]),
|
|
7118
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
7119
|
+
};
|
|
7120
|
+
}
|
|
7121
|
+
|
|
7122
|
+
// src/src/models/InboundEmailFrom.ts
|
|
7123
|
+
function instanceOfInboundEmailFrom(value) {
|
|
7124
|
+
return true;
|
|
7125
|
+
}
|
|
7126
|
+
function InboundEmailFromFromJSON(json) {
|
|
7127
|
+
return InboundEmailFromFromJSONTyped(json, false);
|
|
7128
|
+
}
|
|
7129
|
+
function InboundEmailFromFromJSONTyped(json, ignoreDiscriminator) {
|
|
7130
|
+
if (json == null) {
|
|
7131
|
+
return json;
|
|
7132
|
+
}
|
|
7133
|
+
return {
|
|
7134
|
+
"email": json["email"] == null ? void 0 : json["email"],
|
|
7135
|
+
"name": json["name"] == null ? void 0 : json["name"]
|
|
7136
|
+
};
|
|
7137
|
+
}
|
|
7138
|
+
function InboundEmailFromToJSON(json) {
|
|
7139
|
+
return InboundEmailFromToJSONTyped(json, false);
|
|
7140
|
+
}
|
|
7141
|
+
function InboundEmailFromToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7142
|
+
if (value == null) {
|
|
7143
|
+
return value;
|
|
7144
|
+
}
|
|
7145
|
+
return {
|
|
7146
|
+
"email": value["email"],
|
|
7147
|
+
"name": value["name"]
|
|
7148
|
+
};
|
|
7149
|
+
}
|
|
7150
|
+
|
|
7151
|
+
// src/src/models/InboundEmailAttachment.ts
|
|
7152
|
+
function instanceOfInboundEmailAttachment(value) {
|
|
7153
|
+
return true;
|
|
7154
|
+
}
|
|
7155
|
+
function InboundEmailAttachmentFromJSON(json) {
|
|
7156
|
+
return InboundEmailAttachmentFromJSONTyped(json, false);
|
|
7157
|
+
}
|
|
7158
|
+
function InboundEmailAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
7159
|
+
if (json == null) {
|
|
7160
|
+
return json;
|
|
7161
|
+
}
|
|
7162
|
+
return {
|
|
7163
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
7164
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
7165
|
+
"contentType": json["content_type"] == null ? void 0 : json["content_type"],
|
|
7166
|
+
"size": json["size"] == null ? void 0 : json["size"]
|
|
7167
|
+
};
|
|
7168
|
+
}
|
|
7169
|
+
function InboundEmailAttachmentToJSON(json) {
|
|
7170
|
+
return InboundEmailAttachmentToJSONTyped(json, false);
|
|
7171
|
+
}
|
|
7172
|
+
function InboundEmailAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7173
|
+
if (value == null) {
|
|
7174
|
+
return value;
|
|
7175
|
+
}
|
|
7176
|
+
return {
|
|
7177
|
+
"id": value["id"],
|
|
7178
|
+
"filename": value["filename"],
|
|
7179
|
+
"content_type": value["contentType"],
|
|
7180
|
+
"size": value["size"]
|
|
7181
|
+
};
|
|
7182
|
+
}
|
|
7183
|
+
|
|
7184
|
+
// src/src/models/InboundEmail.ts
|
|
7185
|
+
var InboundEmailSpfVerdictEnum = {
|
|
7186
|
+
PASS: "PASS",
|
|
7187
|
+
FAIL: "FAIL",
|
|
7188
|
+
GRAY: "GRAY",
|
|
7189
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7190
|
+
};
|
|
7191
|
+
var InboundEmailDkimVerdictEnum = {
|
|
7192
|
+
PASS: "PASS",
|
|
7193
|
+
FAIL: "FAIL",
|
|
7194
|
+
GRAY: "GRAY",
|
|
7195
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7196
|
+
};
|
|
7197
|
+
var InboundEmailDmarcVerdictEnum = {
|
|
7198
|
+
PASS: "PASS",
|
|
7199
|
+
FAIL: "FAIL",
|
|
7200
|
+
GRAY: "GRAY",
|
|
7201
|
+
PROCESSING_FAILED: "PROCESSING_FAILED"
|
|
7202
|
+
};
|
|
7203
|
+
var InboundEmailStatusEnum = {
|
|
7204
|
+
RECEIVED: "received",
|
|
7205
|
+
PROCESSED: "processed",
|
|
7206
|
+
QUARANTINED: "quarantined",
|
|
7207
|
+
DROPPED: "dropped",
|
|
7208
|
+
FAILED: "failed"
|
|
7209
|
+
};
|
|
7210
|
+
function instanceOfInboundEmail(value) {
|
|
7211
|
+
return true;
|
|
7212
|
+
}
|
|
7213
|
+
function InboundEmailFromJSON(json) {
|
|
7214
|
+
return InboundEmailFromJSONTyped(json, false);
|
|
7215
|
+
}
|
|
7216
|
+
function InboundEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
7217
|
+
if (json == null) {
|
|
7218
|
+
return json;
|
|
7219
|
+
}
|
|
7220
|
+
return {
|
|
7221
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
7222
|
+
"toEmail": json["to_email"] == null ? void 0 : json["to_email"],
|
|
7223
|
+
"from": json["from"] == null ? void 0 : InboundEmailFromFromJSON(json["from"]),
|
|
7224
|
+
"cc": json["cc"] == null ? void 0 : json["cc"],
|
|
7225
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
7226
|
+
"textBody": json["text_body"] == null ? void 0 : json["text_body"],
|
|
7227
|
+
"htmlBody": json["html_body"] == null ? void 0 : json["html_body"],
|
|
7228
|
+
"inReplyTo": json["in_reply_to"] == null ? void 0 : json["in_reply_to"],
|
|
7229
|
+
"repliedToMessageId": json["replied_to_message_id"] == null ? void 0 : json["replied_to_message_id"],
|
|
7230
|
+
"verified": json["verified"] == null ? void 0 : json["verified"],
|
|
7231
|
+
"spfVerdict": json["spf_verdict"] == null ? void 0 : json["spf_verdict"],
|
|
7232
|
+
"dkimVerdict": json["dkim_verdict"] == null ? void 0 : json["dkim_verdict"],
|
|
7233
|
+
"dmarcVerdict": json["dmarc_verdict"] == null ? void 0 : json["dmarc_verdict"],
|
|
7234
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
7235
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"].map(InboundEmailAttachmentFromJSON),
|
|
7236
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
7237
|
+
};
|
|
7238
|
+
}
|
|
7239
|
+
function InboundEmailToJSON(json) {
|
|
7240
|
+
return InboundEmailToJSONTyped(json, false);
|
|
7241
|
+
}
|
|
7242
|
+
function InboundEmailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7243
|
+
if (value == null) {
|
|
7244
|
+
return value;
|
|
7245
|
+
}
|
|
7246
|
+
return {
|
|
7247
|
+
"id": value["id"],
|
|
7248
|
+
"to_email": value["toEmail"],
|
|
7249
|
+
"from": InboundEmailFromToJSON(value["from"]),
|
|
7250
|
+
"cc": value["cc"],
|
|
7251
|
+
"subject": value["subject"],
|
|
7252
|
+
"text_body": value["textBody"],
|
|
7253
|
+
"html_body": value["htmlBody"],
|
|
7254
|
+
"in_reply_to": value["inReplyTo"],
|
|
7255
|
+
"replied_to_message_id": value["repliedToMessageId"],
|
|
7256
|
+
"verified": value["verified"],
|
|
7257
|
+
"spf_verdict": value["spfVerdict"],
|
|
7258
|
+
"dkim_verdict": value["dkimVerdict"],
|
|
7259
|
+
"dmarc_verdict": value["dmarcVerdict"],
|
|
7260
|
+
"status": value["status"],
|
|
7261
|
+
"attachments": value["attachments"] == null ? void 0 : value["attachments"].map(InboundEmailAttachmentToJSON),
|
|
7262
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
7263
|
+
};
|
|
7264
|
+
}
|
|
7265
|
+
|
|
7266
|
+
// src/src/models/InboundEmailListResponseMeta.ts
|
|
7267
|
+
function instanceOfInboundEmailListResponseMeta(value) {
|
|
7268
|
+
return true;
|
|
7269
|
+
}
|
|
7270
|
+
function InboundEmailListResponseMetaFromJSON(json) {
|
|
7271
|
+
return InboundEmailListResponseMetaFromJSONTyped(json, false);
|
|
7272
|
+
}
|
|
7273
|
+
function InboundEmailListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
7274
|
+
if (json == null) {
|
|
7275
|
+
return json;
|
|
7276
|
+
}
|
|
7277
|
+
return {
|
|
7278
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
7279
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
7280
|
+
"limit": json["limit"] == null ? void 0 : json["limit"],
|
|
7281
|
+
"offset": json["offset"] == null ? void 0 : json["offset"]
|
|
7282
|
+
};
|
|
7283
|
+
}
|
|
7284
|
+
function InboundEmailListResponseMetaToJSON(json) {
|
|
7285
|
+
return InboundEmailListResponseMetaToJSONTyped(json, false);
|
|
7286
|
+
}
|
|
7287
|
+
function InboundEmailListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7288
|
+
if (value == null) {
|
|
7289
|
+
return value;
|
|
7290
|
+
}
|
|
7291
|
+
return {
|
|
7292
|
+
"request_id": value["requestId"],
|
|
7293
|
+
"total": value["total"],
|
|
7294
|
+
"limit": value["limit"],
|
|
7295
|
+
"offset": value["offset"]
|
|
7296
|
+
};
|
|
7297
|
+
}
|
|
7298
|
+
|
|
7299
|
+
// src/src/models/InboundEmailListResponse.ts
|
|
7300
|
+
function instanceOfInboundEmailListResponse(value) {
|
|
7301
|
+
return true;
|
|
7302
|
+
}
|
|
7303
|
+
function InboundEmailListResponseFromJSON(json) {
|
|
7304
|
+
return InboundEmailListResponseFromJSONTyped(json, false);
|
|
7305
|
+
}
|
|
7306
|
+
function InboundEmailListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7307
|
+
if (json == null) {
|
|
7308
|
+
return json;
|
|
7309
|
+
}
|
|
7310
|
+
return {
|
|
7311
|
+
"data": json["data"] == null ? void 0 : json["data"].map(InboundEmailFromJSON),
|
|
7312
|
+
"meta": json["meta"] == null ? void 0 : InboundEmailListResponseMetaFromJSON(json["meta"])
|
|
7313
|
+
};
|
|
7314
|
+
}
|
|
7315
|
+
function InboundEmailListResponseToJSON(json) {
|
|
7316
|
+
return InboundEmailListResponseToJSONTyped(json, false);
|
|
7317
|
+
}
|
|
7318
|
+
function InboundEmailListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7319
|
+
if (value == null) {
|
|
7320
|
+
return value;
|
|
7321
|
+
}
|
|
7322
|
+
return {
|
|
7323
|
+
"data": value["data"] == null ? void 0 : value["data"].map(InboundEmailToJSON),
|
|
7324
|
+
"meta": InboundEmailListResponseMetaToJSON(value["meta"])
|
|
7325
|
+
};
|
|
7326
|
+
}
|
|
7327
|
+
|
|
7328
|
+
// src/src/models/InboundEmailResponse.ts
|
|
7329
|
+
function instanceOfInboundEmailResponse(value) {
|
|
7330
|
+
return true;
|
|
7331
|
+
}
|
|
7332
|
+
function InboundEmailResponseFromJSON(json) {
|
|
7333
|
+
return InboundEmailResponseFromJSONTyped(json, false);
|
|
7334
|
+
}
|
|
7335
|
+
function InboundEmailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7336
|
+
if (json == null) {
|
|
7337
|
+
return json;
|
|
7338
|
+
}
|
|
7339
|
+
return {
|
|
7340
|
+
"data": json["data"] == null ? void 0 : InboundEmailFromJSON(json["data"]),
|
|
7341
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7342
|
+
};
|
|
7343
|
+
}
|
|
7344
|
+
function InboundEmailResponseToJSON(json) {
|
|
7345
|
+
return InboundEmailResponseToJSONTyped(json, false);
|
|
7346
|
+
}
|
|
7347
|
+
function InboundEmailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7348
|
+
if (value == null) {
|
|
7349
|
+
return value;
|
|
7350
|
+
}
|
|
7351
|
+
return {
|
|
7352
|
+
"data": InboundEmailToJSON(value["data"]),
|
|
7353
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
7354
|
+
};
|
|
7355
|
+
}
|
|
7356
|
+
|
|
6934
7357
|
// src/src/models/InboxListMeta.ts
|
|
6935
7358
|
function instanceOfInboxListMeta(value) {
|
|
6936
7359
|
return true;
|
|
@@ -9077,35 +9500,6 @@ function PayloadTooLargeErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9077
9500
|
};
|
|
9078
9501
|
}
|
|
9079
9502
|
|
|
9080
|
-
// src/src/models/PhoneAuthAvailabilityResponseData.ts
|
|
9081
|
-
function instanceOfPhoneAuthAvailabilityResponseData(value) {
|
|
9082
|
-
return true;
|
|
9083
|
-
}
|
|
9084
|
-
function PhoneAuthAvailabilityResponseDataFromJSON(json) {
|
|
9085
|
-
return PhoneAuthAvailabilityResponseDataFromJSONTyped(json, false);
|
|
9086
|
-
}
|
|
9087
|
-
function PhoneAuthAvailabilityResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9088
|
-
if (json == null) {
|
|
9089
|
-
return json;
|
|
9090
|
-
}
|
|
9091
|
-
return {
|
|
9092
|
-
"available": json["available"] == null ? void 0 : json["available"],
|
|
9093
|
-
"message": json["message"] == null ? void 0 : json["message"]
|
|
9094
|
-
};
|
|
9095
|
-
}
|
|
9096
|
-
function PhoneAuthAvailabilityResponseDataToJSON(json) {
|
|
9097
|
-
return PhoneAuthAvailabilityResponseDataToJSONTyped(json, false);
|
|
9098
|
-
}
|
|
9099
|
-
function PhoneAuthAvailabilityResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9100
|
-
if (value == null) {
|
|
9101
|
-
return value;
|
|
9102
|
-
}
|
|
9103
|
-
return {
|
|
9104
|
-
"available": value["available"],
|
|
9105
|
-
"message": value["message"]
|
|
9106
|
-
};
|
|
9107
|
-
}
|
|
9108
|
-
|
|
9109
9503
|
// src/src/models/PhoneAuthAvailabilityResponse.ts
|
|
9110
9504
|
function instanceOfPhoneAuthAvailabilityResponse(value) {
|
|
9111
9505
|
return true;
|
|
@@ -9118,7 +9512,7 @@ function PhoneAuthAvailabilityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9118
9512
|
return json;
|
|
9119
9513
|
}
|
|
9120
9514
|
return {
|
|
9121
|
-
"data": json["data"] == null ? void 0 :
|
|
9515
|
+
"data": json["data"] == null ? void 0 : CheckEmailOtpAvailability200ResponseDataFromJSON(json["data"]),
|
|
9122
9516
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
9123
9517
|
};
|
|
9124
9518
|
}
|
|
@@ -9130,7 +9524,7 @@ function PhoneAuthAvailabilityResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
9130
9524
|
return value;
|
|
9131
9525
|
}
|
|
9132
9526
|
return {
|
|
9133
|
-
"data":
|
|
9527
|
+
"data": CheckEmailOtpAvailability200ResponseDataToJSON(value["data"]),
|
|
9134
9528
|
"meta": RequestMetaToJSON(value["meta"])
|
|
9135
9529
|
};
|
|
9136
9530
|
}
|
|
@@ -10933,6 +11327,34 @@ function SendBatchSmsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
10933
11327
|
};
|
|
10934
11328
|
}
|
|
10935
11329
|
|
|
11330
|
+
// src/src/models/SendEmailOtpRegistrationRequest.ts
|
|
11331
|
+
function instanceOfSendEmailOtpRegistrationRequest(value) {
|
|
11332
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
11333
|
+
return true;
|
|
11334
|
+
}
|
|
11335
|
+
function SendEmailOtpRegistrationRequestFromJSON(json) {
|
|
11336
|
+
return SendEmailOtpRegistrationRequestFromJSONTyped(json, false);
|
|
11337
|
+
}
|
|
11338
|
+
function SendEmailOtpRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11339
|
+
if (json == null) {
|
|
11340
|
+
return json;
|
|
11341
|
+
}
|
|
11342
|
+
return {
|
|
11343
|
+
"email": json["email"]
|
|
11344
|
+
};
|
|
11345
|
+
}
|
|
11346
|
+
function SendEmailOtpRegistrationRequestToJSON(json) {
|
|
11347
|
+
return SendEmailOtpRegistrationRequestToJSONTyped(json, false);
|
|
11348
|
+
}
|
|
11349
|
+
function SendEmailOtpRegistrationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11350
|
+
if (value == null) {
|
|
11351
|
+
return value;
|
|
11352
|
+
}
|
|
11353
|
+
return {
|
|
11354
|
+
"email": value["email"]
|
|
11355
|
+
};
|
|
11356
|
+
}
|
|
11357
|
+
|
|
10936
11358
|
// src/src/models/SendEmailRequest.ts
|
|
10937
11359
|
function instanceOfSendEmailRequest(value) {
|
|
10938
11360
|
if (!("to" in value) || value["to"] === void 0) return false;
|
|
@@ -11903,11 +12325,38 @@ function SessionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11903
12325
|
};
|
|
11904
12326
|
}
|
|
11905
12327
|
|
|
11906
|
-
// src/src/models/
|
|
11907
|
-
function
|
|
12328
|
+
// src/src/models/SetDomainInboundRequest.ts
|
|
12329
|
+
function instanceOfSetDomainInboundRequest(value) {
|
|
11908
12330
|
return true;
|
|
11909
12331
|
}
|
|
11910
|
-
function
|
|
12332
|
+
function SetDomainInboundRequestFromJSON(json) {
|
|
12333
|
+
return SetDomainInboundRequestFromJSONTyped(json, false);
|
|
12334
|
+
}
|
|
12335
|
+
function SetDomainInboundRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12336
|
+
if (json == null) {
|
|
12337
|
+
return json;
|
|
12338
|
+
}
|
|
12339
|
+
return {
|
|
12340
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"]
|
|
12341
|
+
};
|
|
12342
|
+
}
|
|
12343
|
+
function SetDomainInboundRequestToJSON(json) {
|
|
12344
|
+
return SetDomainInboundRequestToJSONTyped(json, false);
|
|
12345
|
+
}
|
|
12346
|
+
function SetDomainInboundRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12347
|
+
if (value == null) {
|
|
12348
|
+
return value;
|
|
12349
|
+
}
|
|
12350
|
+
return {
|
|
12351
|
+
"enabled": value["enabled"]
|
|
12352
|
+
};
|
|
12353
|
+
}
|
|
12354
|
+
|
|
12355
|
+
// src/src/models/SetPreferencesRequestPreferencesInner.ts
|
|
12356
|
+
function instanceOfSetPreferencesRequestPreferencesInner(value) {
|
|
12357
|
+
return true;
|
|
12358
|
+
}
|
|
12359
|
+
function SetPreferencesRequestPreferencesInnerFromJSON(json) {
|
|
11911
12360
|
return SetPreferencesRequestPreferencesInnerFromJSONTyped(json, false);
|
|
11912
12361
|
}
|
|
11913
12362
|
function SetPreferencesRequestPreferencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
@@ -14439,6 +14888,74 @@ function VerifyDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
14439
14888
|
};
|
|
14440
14889
|
}
|
|
14441
14890
|
|
|
14891
|
+
// src/src/models/VerifyEmailOtpLoginRequest.ts
|
|
14892
|
+
function instanceOfVerifyEmailOtpLoginRequest(value) {
|
|
14893
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
14894
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
14895
|
+
return true;
|
|
14896
|
+
}
|
|
14897
|
+
function VerifyEmailOtpLoginRequestFromJSON(json) {
|
|
14898
|
+
return VerifyEmailOtpLoginRequestFromJSONTyped(json, false);
|
|
14899
|
+
}
|
|
14900
|
+
function VerifyEmailOtpLoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14901
|
+
if (json == null) {
|
|
14902
|
+
return json;
|
|
14903
|
+
}
|
|
14904
|
+
return {
|
|
14905
|
+
"email": json["email"],
|
|
14906
|
+
"code": json["code"],
|
|
14907
|
+
"customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"]
|
|
14908
|
+
};
|
|
14909
|
+
}
|
|
14910
|
+
function VerifyEmailOtpLoginRequestToJSON(json) {
|
|
14911
|
+
return VerifyEmailOtpLoginRequestToJSONTyped(json, false);
|
|
14912
|
+
}
|
|
14913
|
+
function VerifyEmailOtpLoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14914
|
+
if (value == null) {
|
|
14915
|
+
return value;
|
|
14916
|
+
}
|
|
14917
|
+
return {
|
|
14918
|
+
"email": value["email"],
|
|
14919
|
+
"code": value["code"],
|
|
14920
|
+
"custom_claims": value["customClaims"]
|
|
14921
|
+
};
|
|
14922
|
+
}
|
|
14923
|
+
|
|
14924
|
+
// src/src/models/VerifyEmailOtpRegistrationRequest.ts
|
|
14925
|
+
function instanceOfVerifyEmailOtpRegistrationRequest(value) {
|
|
14926
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
14927
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
14928
|
+
return true;
|
|
14929
|
+
}
|
|
14930
|
+
function VerifyEmailOtpRegistrationRequestFromJSON(json) {
|
|
14931
|
+
return VerifyEmailOtpRegistrationRequestFromJSONTyped(json, false);
|
|
14932
|
+
}
|
|
14933
|
+
function VerifyEmailOtpRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14934
|
+
if (json == null) {
|
|
14935
|
+
return json;
|
|
14936
|
+
}
|
|
14937
|
+
return {
|
|
14938
|
+
"email": json["email"],
|
|
14939
|
+
"code": json["code"],
|
|
14940
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
14941
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
14942
|
+
};
|
|
14943
|
+
}
|
|
14944
|
+
function VerifyEmailOtpRegistrationRequestToJSON(json) {
|
|
14945
|
+
return VerifyEmailOtpRegistrationRequestToJSONTyped(json, false);
|
|
14946
|
+
}
|
|
14947
|
+
function VerifyEmailOtpRegistrationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14948
|
+
if (value == null) {
|
|
14949
|
+
return value;
|
|
14950
|
+
}
|
|
14951
|
+
return {
|
|
14952
|
+
"email": value["email"],
|
|
14953
|
+
"code": value["code"],
|
|
14954
|
+
"name": value["name"],
|
|
14955
|
+
"metadata": value["metadata"]
|
|
14956
|
+
};
|
|
14957
|
+
}
|
|
14958
|
+
|
|
14442
14959
|
// src/src/models/VerifySmsConfigData.ts
|
|
14443
14960
|
function instanceOfVerifySmsConfigData(value) {
|
|
14444
14961
|
return true;
|
|
@@ -16323,6 +16840,184 @@ function WithdrawSubscriberConsentRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
16323
16840
|
};
|
|
16324
16841
|
}
|
|
16325
16842
|
|
|
16843
|
+
// src/src/apis/AuthEmailOTPApi.ts
|
|
16844
|
+
var AuthEmailOTPApi = class extends BaseAPI {
|
|
16845
|
+
/**
|
|
16846
|
+
* Check if numeric email OTP authentication is available for this application. Requires a verified sending domain on the project.
|
|
16847
|
+
* Check email OTP availability
|
|
16848
|
+
*/
|
|
16849
|
+
async checkEmailOtpAvailabilityRaw(initOverrides) {
|
|
16850
|
+
const queryParameters = {};
|
|
16851
|
+
const headerParameters = {};
|
|
16852
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16853
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16854
|
+
}
|
|
16855
|
+
const response = await this.request({
|
|
16856
|
+
path: `/auth/email-otp/available`,
|
|
16857
|
+
method: "GET",
|
|
16858
|
+
headers: headerParameters,
|
|
16859
|
+
query: queryParameters
|
|
16860
|
+
}, initOverrides);
|
|
16861
|
+
return new JSONApiResponse(response, (jsonValue) => CheckEmailOtpAvailability200ResponseFromJSON(jsonValue));
|
|
16862
|
+
}
|
|
16863
|
+
/**
|
|
16864
|
+
* Check if numeric email OTP authentication is available for this application. Requires a verified sending domain on the project.
|
|
16865
|
+
* Check email OTP availability
|
|
16866
|
+
*/
|
|
16867
|
+
async checkEmailOtpAvailability(initOverrides) {
|
|
16868
|
+
const response = await this.checkEmailOtpAvailabilityRaw(initOverrides);
|
|
16869
|
+
return await response.value();
|
|
16870
|
+
}
|
|
16871
|
+
/**
|
|
16872
|
+
* Send a numeric verification code to an existing user\'s email address for login.
|
|
16873
|
+
* Send email OTP for login
|
|
16874
|
+
*/
|
|
16875
|
+
async sendEmailOtpLoginRaw(requestParameters, initOverrides) {
|
|
16876
|
+
if (requestParameters["sendEmailOtpRegistrationRequest"] == null) {
|
|
16877
|
+
throw new RequiredError(
|
|
16878
|
+
"sendEmailOtpRegistrationRequest",
|
|
16879
|
+
'Required parameter "sendEmailOtpRegistrationRequest" was null or undefined when calling sendEmailOtpLogin().'
|
|
16880
|
+
);
|
|
16881
|
+
}
|
|
16882
|
+
const queryParameters = {};
|
|
16883
|
+
const headerParameters = {};
|
|
16884
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16885
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16886
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16887
|
+
}
|
|
16888
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16889
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16890
|
+
}
|
|
16891
|
+
const response = await this.request({
|
|
16892
|
+
path: `/auth/email-otp/login/send`,
|
|
16893
|
+
method: "POST",
|
|
16894
|
+
headers: headerParameters,
|
|
16895
|
+
query: queryParameters,
|
|
16896
|
+
body: SendEmailOtpRegistrationRequestToJSON(requestParameters["sendEmailOtpRegistrationRequest"])
|
|
16897
|
+
}, initOverrides);
|
|
16898
|
+
return new JSONApiResponse(response, (jsonValue) => PhoneOtpSentResponseFromJSON(jsonValue));
|
|
16899
|
+
}
|
|
16900
|
+
/**
|
|
16901
|
+
* Send a numeric verification code to an existing user\'s email address for login.
|
|
16902
|
+
* Send email OTP for login
|
|
16903
|
+
*/
|
|
16904
|
+
async sendEmailOtpLogin(sendEmailOtpRegistrationRequest, initOverrides) {
|
|
16905
|
+
const response = await this.sendEmailOtpLoginRaw({ sendEmailOtpRegistrationRequest }, initOverrides);
|
|
16906
|
+
return await response.value();
|
|
16907
|
+
}
|
|
16908
|
+
/**
|
|
16909
|
+
* Send a numeric verification code to an email address for new user registration.
|
|
16910
|
+
* Send email OTP for registration
|
|
16911
|
+
*/
|
|
16912
|
+
async sendEmailOtpRegistrationRaw(requestParameters, initOverrides) {
|
|
16913
|
+
if (requestParameters["sendEmailOtpRegistrationRequest"] == null) {
|
|
16914
|
+
throw new RequiredError(
|
|
16915
|
+
"sendEmailOtpRegistrationRequest",
|
|
16916
|
+
'Required parameter "sendEmailOtpRegistrationRequest" was null or undefined when calling sendEmailOtpRegistration().'
|
|
16917
|
+
);
|
|
16918
|
+
}
|
|
16919
|
+
const queryParameters = {};
|
|
16920
|
+
const headerParameters = {};
|
|
16921
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16922
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16923
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16924
|
+
}
|
|
16925
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16926
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16927
|
+
}
|
|
16928
|
+
const response = await this.request({
|
|
16929
|
+
path: `/auth/email-otp/register/send`,
|
|
16930
|
+
method: "POST",
|
|
16931
|
+
headers: headerParameters,
|
|
16932
|
+
query: queryParameters,
|
|
16933
|
+
body: SendEmailOtpRegistrationRequestToJSON(requestParameters["sendEmailOtpRegistrationRequest"])
|
|
16934
|
+
}, initOverrides);
|
|
16935
|
+
return new JSONApiResponse(response, (jsonValue) => PhoneOtpSentResponseFromJSON(jsonValue));
|
|
16936
|
+
}
|
|
16937
|
+
/**
|
|
16938
|
+
* Send a numeric verification code to an email address for new user registration.
|
|
16939
|
+
* Send email OTP for registration
|
|
16940
|
+
*/
|
|
16941
|
+
async sendEmailOtpRegistration(sendEmailOtpRegistrationRequest, initOverrides) {
|
|
16942
|
+
const response = await this.sendEmailOtpRegistrationRaw({ sendEmailOtpRegistrationRequest }, initOverrides);
|
|
16943
|
+
return await response.value();
|
|
16944
|
+
}
|
|
16945
|
+
/**
|
|
16946
|
+
* Verify the numeric code and login an existing user. If MFA is enabled, returns mfa_required with a challenge token.
|
|
16947
|
+
* Verify email OTP login
|
|
16948
|
+
*/
|
|
16949
|
+
async verifyEmailOtpLoginRaw(requestParameters, initOverrides) {
|
|
16950
|
+
if (requestParameters["verifyEmailOtpLoginRequest"] == null) {
|
|
16951
|
+
throw new RequiredError(
|
|
16952
|
+
"verifyEmailOtpLoginRequest",
|
|
16953
|
+
'Required parameter "verifyEmailOtpLoginRequest" was null or undefined when calling verifyEmailOtpLogin().'
|
|
16954
|
+
);
|
|
16955
|
+
}
|
|
16956
|
+
const queryParameters = {};
|
|
16957
|
+
const headerParameters = {};
|
|
16958
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16959
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16960
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16961
|
+
}
|
|
16962
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16963
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16964
|
+
}
|
|
16965
|
+
const response = await this.request({
|
|
16966
|
+
path: `/auth/email-otp/login/verify`,
|
|
16967
|
+
method: "POST",
|
|
16968
|
+
headers: headerParameters,
|
|
16969
|
+
query: queryParameters,
|
|
16970
|
+
body: VerifyEmailOtpLoginRequestToJSON(requestParameters["verifyEmailOtpLoginRequest"])
|
|
16971
|
+
}, initOverrides);
|
|
16972
|
+
return new JSONApiResponse(response, (jsonValue) => AuthLoginResponseFromJSON(jsonValue));
|
|
16973
|
+
}
|
|
16974
|
+
/**
|
|
16975
|
+
* Verify the numeric code and login an existing user. If MFA is enabled, returns mfa_required with a challenge token.
|
|
16976
|
+
* Verify email OTP login
|
|
16977
|
+
*/
|
|
16978
|
+
async verifyEmailOtpLogin(verifyEmailOtpLoginRequest, initOverrides) {
|
|
16979
|
+
const response = await this.verifyEmailOtpLoginRaw({ verifyEmailOtpLoginRequest }, initOverrides);
|
|
16980
|
+
return await response.value();
|
|
16981
|
+
}
|
|
16982
|
+
/**
|
|
16983
|
+
* Verify the numeric code and create a new user account with the email address.
|
|
16984
|
+
* Verify email OTP registration
|
|
16985
|
+
*/
|
|
16986
|
+
async verifyEmailOtpRegistrationRaw(requestParameters, initOverrides) {
|
|
16987
|
+
if (requestParameters["verifyEmailOtpRegistrationRequest"] == null) {
|
|
16988
|
+
throw new RequiredError(
|
|
16989
|
+
"verifyEmailOtpRegistrationRequest",
|
|
16990
|
+
'Required parameter "verifyEmailOtpRegistrationRequest" was null or undefined when calling verifyEmailOtpRegistration().'
|
|
16991
|
+
);
|
|
16992
|
+
}
|
|
16993
|
+
const queryParameters = {};
|
|
16994
|
+
const headerParameters = {};
|
|
16995
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16996
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16997
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16998
|
+
}
|
|
16999
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
17000
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
17001
|
+
}
|
|
17002
|
+
const response = await this.request({
|
|
17003
|
+
path: `/auth/email-otp/register/verify`,
|
|
17004
|
+
method: "POST",
|
|
17005
|
+
headers: headerParameters,
|
|
17006
|
+
query: queryParameters,
|
|
17007
|
+
body: VerifyEmailOtpRegistrationRequestToJSON(requestParameters["verifyEmailOtpRegistrationRequest"])
|
|
17008
|
+
}, initOverrides);
|
|
17009
|
+
return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
|
|
17010
|
+
}
|
|
17011
|
+
/**
|
|
17012
|
+
* Verify the numeric code and create a new user account with the email address.
|
|
17013
|
+
* Verify email OTP registration
|
|
17014
|
+
*/
|
|
17015
|
+
async verifyEmailOtpRegistration(verifyEmailOtpRegistrationRequest, initOverrides) {
|
|
17016
|
+
const response = await this.verifyEmailOtpRegistrationRaw({ verifyEmailOtpRegistrationRequest }, initOverrides);
|
|
17017
|
+
return await response.value();
|
|
17018
|
+
}
|
|
17019
|
+
};
|
|
17020
|
+
|
|
16326
17021
|
// src/src/apis/AuthEmailTemplatesApi.ts
|
|
16327
17022
|
var AuthEmailTemplatesApi = class extends BaseAPI {
|
|
16328
17023
|
/**
|
|
@@ -19282,6 +19977,45 @@ var DomainsApi = class extends BaseAPI {
|
|
|
19282
19977
|
const response = await this.listDomainsRaw(initOverrides);
|
|
19283
19978
|
return await response.value();
|
|
19284
19979
|
}
|
|
19980
|
+
/**
|
|
19981
|
+
* 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+).
|
|
19982
|
+
* Enable or disable inbound email for a domain
|
|
19983
|
+
*/
|
|
19984
|
+
async setDomainInboundRaw(requestParameters, initOverrides) {
|
|
19985
|
+
if (requestParameters["id"] == null) {
|
|
19986
|
+
throw new RequiredError(
|
|
19987
|
+
"id",
|
|
19988
|
+
'Required parameter "id" was null or undefined when calling setDomainInbound().'
|
|
19989
|
+
);
|
|
19990
|
+
}
|
|
19991
|
+
if (requestParameters["setDomainInboundRequest"] == null) {
|
|
19992
|
+
throw new RequiredError(
|
|
19993
|
+
"setDomainInboundRequest",
|
|
19994
|
+
'Required parameter "setDomainInboundRequest" was null or undefined when calling setDomainInbound().'
|
|
19995
|
+
);
|
|
19996
|
+
}
|
|
19997
|
+
const queryParameters = {};
|
|
19998
|
+
const headerParameters = {};
|
|
19999
|
+
headerParameters["Content-Type"] = "application/json";
|
|
20000
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20001
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20002
|
+
}
|
|
20003
|
+
const response = await this.request({
|
|
20004
|
+
path: `/domains/{id}/inbound`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
20005
|
+
method: "PUT",
|
|
20006
|
+
headers: headerParameters,
|
|
20007
|
+
query: queryParameters,
|
|
20008
|
+
body: SetDomainInboundRequestToJSON(requestParameters["setDomainInboundRequest"])
|
|
20009
|
+
}, initOverrides);
|
|
20010
|
+
return new VoidApiResponse(response);
|
|
20011
|
+
}
|
|
20012
|
+
/**
|
|
20013
|
+
* 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+).
|
|
20014
|
+
* Enable or disable inbound email for a domain
|
|
20015
|
+
*/
|
|
20016
|
+
async setDomainInbound(id, setDomainInboundRequest, initOverrides) {
|
|
20017
|
+
await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
20018
|
+
}
|
|
19285
20019
|
/**
|
|
19286
20020
|
* 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).
|
|
19287
20021
|
* Trigger domain verification
|
|
@@ -19631,6 +20365,128 @@ var ExecutionsApi = class extends BaseAPI {
|
|
|
19631
20365
|
}
|
|
19632
20366
|
};
|
|
19633
20367
|
|
|
20368
|
+
// src/src/apis/InboundEmailApi.ts
|
|
20369
|
+
var InboundEmailApi = class extends BaseAPI {
|
|
20370
|
+
/**
|
|
20371
|
+
* 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.
|
|
20372
|
+
* Get an attachment download URL
|
|
20373
|
+
*/
|
|
20374
|
+
async getInboundAttachmentUrlRaw(requestParameters, initOverrides) {
|
|
20375
|
+
if (requestParameters["id"] == null) {
|
|
20376
|
+
throw new RequiredError(
|
|
20377
|
+
"id",
|
|
20378
|
+
'Required parameter "id" was null or undefined when calling getInboundAttachmentUrl().'
|
|
20379
|
+
);
|
|
20380
|
+
}
|
|
20381
|
+
if (requestParameters["attachmentId"] == null) {
|
|
20382
|
+
throw new RequiredError(
|
|
20383
|
+
"attachmentId",
|
|
20384
|
+
'Required parameter "attachmentId" was null or undefined when calling getInboundAttachmentUrl().'
|
|
20385
|
+
);
|
|
20386
|
+
}
|
|
20387
|
+
const queryParameters = {};
|
|
20388
|
+
const headerParameters = {};
|
|
20389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20390
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20391
|
+
}
|
|
20392
|
+
const response = await this.request({
|
|
20393
|
+
path: `/inbound-emails/{id}/attachments/{attachmentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters["attachmentId"]))),
|
|
20394
|
+
method: "GET",
|
|
20395
|
+
headers: headerParameters,
|
|
20396
|
+
query: queryParameters
|
|
20397
|
+
}, initOverrides);
|
|
20398
|
+
return new JSONApiResponse(response, (jsonValue) => InboundAttachmentUrlResponseFromJSON(jsonValue));
|
|
20399
|
+
}
|
|
20400
|
+
/**
|
|
20401
|
+
* 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.
|
|
20402
|
+
* Get an attachment download URL
|
|
20403
|
+
*/
|
|
20404
|
+
async getInboundAttachmentUrl(id, attachmentId, initOverrides) {
|
|
20405
|
+
const response = await this.getInboundAttachmentUrlRaw({ id, attachmentId }, initOverrides);
|
|
20406
|
+
return await response.value();
|
|
20407
|
+
}
|
|
20408
|
+
/**
|
|
20409
|
+
* Retrieve a single inbound email by id (scoped to the project).
|
|
20410
|
+
* Get a received email
|
|
20411
|
+
*/
|
|
20412
|
+
async getInboundEmailRaw(requestParameters, initOverrides) {
|
|
20413
|
+
if (requestParameters["id"] == null) {
|
|
20414
|
+
throw new RequiredError(
|
|
20415
|
+
"id",
|
|
20416
|
+
'Required parameter "id" was null or undefined when calling getInboundEmail().'
|
|
20417
|
+
);
|
|
20418
|
+
}
|
|
20419
|
+
const queryParameters = {};
|
|
20420
|
+
const headerParameters = {};
|
|
20421
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20422
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20423
|
+
}
|
|
20424
|
+
const response = await this.request({
|
|
20425
|
+
path: `/inbound-emails/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
20426
|
+
method: "GET",
|
|
20427
|
+
headers: headerParameters,
|
|
20428
|
+
query: queryParameters
|
|
20429
|
+
}, initOverrides);
|
|
20430
|
+
return new JSONApiResponse(response, (jsonValue) => InboundEmailResponseFromJSON(jsonValue));
|
|
20431
|
+
}
|
|
20432
|
+
/**
|
|
20433
|
+
* Retrieve a single inbound email by id (scoped to the project).
|
|
20434
|
+
* Get a received email
|
|
20435
|
+
*/
|
|
20436
|
+
async getInboundEmail(id, initOverrides) {
|
|
20437
|
+
const response = await this.getInboundEmailRaw({ id }, initOverrides);
|
|
20438
|
+
return await response.value();
|
|
20439
|
+
}
|
|
20440
|
+
/**
|
|
20441
|
+
* 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.
|
|
20442
|
+
* List received emails
|
|
20443
|
+
*/
|
|
20444
|
+
async listInboundEmailsRaw(requestParameters, initOverrides) {
|
|
20445
|
+
const queryParameters = {};
|
|
20446
|
+
if (requestParameters["status"] != null) {
|
|
20447
|
+
queryParameters["status"] = requestParameters["status"];
|
|
20448
|
+
}
|
|
20449
|
+
if (requestParameters["to"] != null) {
|
|
20450
|
+
queryParameters["to"] = requestParameters["to"];
|
|
20451
|
+
}
|
|
20452
|
+
if (requestParameters["includeWithheld"] != null) {
|
|
20453
|
+
queryParameters["include_withheld"] = requestParameters["includeWithheld"];
|
|
20454
|
+
}
|
|
20455
|
+
if (requestParameters["limit"] != null) {
|
|
20456
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
20457
|
+
}
|
|
20458
|
+
if (requestParameters["offset"] != null) {
|
|
20459
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
20460
|
+
}
|
|
20461
|
+
const headerParameters = {};
|
|
20462
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
20463
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
20464
|
+
}
|
|
20465
|
+
const response = await this.request({
|
|
20466
|
+
path: `/inbound-emails`,
|
|
20467
|
+
method: "GET",
|
|
20468
|
+
headers: headerParameters,
|
|
20469
|
+
query: queryParameters
|
|
20470
|
+
}, initOverrides);
|
|
20471
|
+
return new JSONApiResponse(response, (jsonValue) => InboundEmailListResponseFromJSON(jsonValue));
|
|
20472
|
+
}
|
|
20473
|
+
/**
|
|
20474
|
+
* 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.
|
|
20475
|
+
* List received emails
|
|
20476
|
+
*/
|
|
20477
|
+
async listInboundEmails(status, to, includeWithheld, limit, offset, initOverrides) {
|
|
20478
|
+
const response = await this.listInboundEmailsRaw({ status, to, includeWithheld, limit, offset }, initOverrides);
|
|
20479
|
+
return await response.value();
|
|
20480
|
+
}
|
|
20481
|
+
};
|
|
20482
|
+
var ListInboundEmailsStatusEnum = {
|
|
20483
|
+
RECEIVED: "received",
|
|
20484
|
+
PROCESSED: "processed",
|
|
20485
|
+
QUARANTINED: "quarantined",
|
|
20486
|
+
DROPPED: "dropped",
|
|
20487
|
+
FAILED: "failed"
|
|
20488
|
+
};
|
|
20489
|
+
|
|
19634
20490
|
// src/src/apis/InboxApi.ts
|
|
19635
20491
|
var InboxApi = class extends BaseAPI {
|
|
19636
20492
|
/**
|
|
@@ -24606,6 +25462,8 @@ var Zyphr = class {
|
|
|
24606
25462
|
topics;
|
|
24607
25463
|
devices;
|
|
24608
25464
|
domains;
|
|
25465
|
+
/** Inbound (received) email — read access. Requires the `email:read` scope. */
|
|
25466
|
+
inbound;
|
|
24609
25467
|
waas;
|
|
24610
25468
|
auth;
|
|
24611
25469
|
options;
|
|
@@ -24631,6 +25489,7 @@ var Zyphr = class {
|
|
|
24631
25489
|
this.topics = new TopicsApi(config);
|
|
24632
25490
|
this.devices = new DevicesApi(config);
|
|
24633
25491
|
this.domains = new DomainsApi(config);
|
|
25492
|
+
this.inbound = new InboundEmailApi(config);
|
|
24634
25493
|
this.waas = {
|
|
24635
25494
|
applications: new WaaSApplicationsApi(config),
|
|
24636
25495
|
eventTypes: new WaaSEventTypesApi(config),
|
|
@@ -24721,6 +25580,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
24721
25580
|
ApiErrorMetaToJSONTyped,
|
|
24722
25581
|
ApiErrorToJSON,
|
|
24723
25582
|
ApiErrorToJSONTyped,
|
|
25583
|
+
AuthEmailOTPApi,
|
|
24724
25584
|
AuthEmailTemplateDefaultFromJSON,
|
|
24725
25585
|
AuthEmailTemplateDefaultFromJSONTyped,
|
|
24726
25586
|
AuthEmailTemplateDefaultResponseFromJSON,
|
|
@@ -24883,6 +25743,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
24883
25743
|
CategoryResponseToJSONTyped,
|
|
24884
25744
|
CategoryToJSON,
|
|
24885
25745
|
CategoryToJSONTyped,
|
|
25746
|
+
CheckEmailOtpAvailability200ResponseDataFromJSON,
|
|
25747
|
+
CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
|
|
25748
|
+
CheckEmailOtpAvailability200ResponseDataToJSON,
|
|
25749
|
+
CheckEmailOtpAvailability200ResponseDataToJSONTyped,
|
|
25750
|
+
CheckEmailOtpAvailability200ResponseFromJSON,
|
|
25751
|
+
CheckEmailOtpAvailability200ResponseFromJSONTyped,
|
|
25752
|
+
CheckEmailOtpAvailability200ResponseToJSON,
|
|
25753
|
+
CheckEmailOtpAvailability200ResponseToJSONTyped,
|
|
24886
25754
|
Configuration,
|
|
24887
25755
|
ConfirmEmailVerificationRequestFromJSON,
|
|
24888
25756
|
ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -25195,6 +26063,43 @@ var SDK_VERSION = "0.1.0";
|
|
|
25195
26063
|
InAppNotificationPriorityEnum,
|
|
25196
26064
|
InAppNotificationToJSON,
|
|
25197
26065
|
InAppNotificationToJSONTyped,
|
|
26066
|
+
InboundAttachmentUrlResponseDataFromJSON,
|
|
26067
|
+
InboundAttachmentUrlResponseDataFromJSONTyped,
|
|
26068
|
+
InboundAttachmentUrlResponseDataToJSON,
|
|
26069
|
+
InboundAttachmentUrlResponseDataToJSONTyped,
|
|
26070
|
+
InboundAttachmentUrlResponseFromJSON,
|
|
26071
|
+
InboundAttachmentUrlResponseFromJSONTyped,
|
|
26072
|
+
InboundAttachmentUrlResponseToJSON,
|
|
26073
|
+
InboundAttachmentUrlResponseToJSONTyped,
|
|
26074
|
+
InboundEmailApi,
|
|
26075
|
+
InboundEmailAttachmentFromJSON,
|
|
26076
|
+
InboundEmailAttachmentFromJSONTyped,
|
|
26077
|
+
InboundEmailAttachmentToJSON,
|
|
26078
|
+
InboundEmailAttachmentToJSONTyped,
|
|
26079
|
+
InboundEmailDkimVerdictEnum,
|
|
26080
|
+
InboundEmailDmarcVerdictEnum,
|
|
26081
|
+
InboundEmailFromFromJSON,
|
|
26082
|
+
InboundEmailFromFromJSONTyped,
|
|
26083
|
+
InboundEmailFromJSON,
|
|
26084
|
+
InboundEmailFromJSONTyped,
|
|
26085
|
+
InboundEmailFromToJSON,
|
|
26086
|
+
InboundEmailFromToJSONTyped,
|
|
26087
|
+
InboundEmailListResponseFromJSON,
|
|
26088
|
+
InboundEmailListResponseFromJSONTyped,
|
|
26089
|
+
InboundEmailListResponseMetaFromJSON,
|
|
26090
|
+
InboundEmailListResponseMetaFromJSONTyped,
|
|
26091
|
+
InboundEmailListResponseMetaToJSON,
|
|
26092
|
+
InboundEmailListResponseMetaToJSONTyped,
|
|
26093
|
+
InboundEmailListResponseToJSON,
|
|
26094
|
+
InboundEmailListResponseToJSONTyped,
|
|
26095
|
+
InboundEmailResponseFromJSON,
|
|
26096
|
+
InboundEmailResponseFromJSONTyped,
|
|
26097
|
+
InboundEmailResponseToJSON,
|
|
26098
|
+
InboundEmailResponseToJSONTyped,
|
|
26099
|
+
InboundEmailSpfVerdictEnum,
|
|
26100
|
+
InboundEmailStatusEnum,
|
|
26101
|
+
InboundEmailToJSON,
|
|
26102
|
+
InboundEmailToJSONTyped,
|
|
25198
26103
|
InboxApi,
|
|
25199
26104
|
InboxListMetaFromJSON,
|
|
25200
26105
|
InboxListMetaFromJSONTyped,
|
|
@@ -25212,6 +26117,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
25212
26117
|
ListAllInboxStatusEnum,
|
|
25213
26118
|
ListDevicesPlatformEnum,
|
|
25214
26119
|
ListEmailsStatusEnum,
|
|
26120
|
+
ListInboundEmailsStatusEnum,
|
|
25215
26121
|
ListPushStatusEnum,
|
|
25216
26122
|
ListSlackMessagesStatusEnum,
|
|
25217
26123
|
ListSmsStatusEnum,
|
|
@@ -25484,10 +26390,6 @@ var SDK_VERSION = "0.1.0";
|
|
|
25484
26390
|
PayloadTooLargeErrorFromJSONTyped,
|
|
25485
26391
|
PayloadTooLargeErrorToJSON,
|
|
25486
26392
|
PayloadTooLargeErrorToJSONTyped,
|
|
25487
|
-
PhoneAuthAvailabilityResponseDataFromJSON,
|
|
25488
|
-
PhoneAuthAvailabilityResponseDataFromJSONTyped,
|
|
25489
|
-
PhoneAuthAvailabilityResponseDataToJSON,
|
|
25490
|
-
PhoneAuthAvailabilityResponseDataToJSONTyped,
|
|
25491
26393
|
PhoneAuthAvailabilityResponseFromJSON,
|
|
25492
26394
|
PhoneAuthAvailabilityResponseFromJSONTyped,
|
|
25493
26395
|
PhoneAuthAvailabilityResponseToJSON,
|
|
@@ -25700,6 +26602,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
25700
26602
|
SendBatchSmsResponseFromJSONTyped,
|
|
25701
26603
|
SendBatchSmsResponseToJSON,
|
|
25702
26604
|
SendBatchSmsResponseToJSONTyped,
|
|
26605
|
+
SendEmailOtpRegistrationRequestFromJSON,
|
|
26606
|
+
SendEmailOtpRegistrationRequestFromJSONTyped,
|
|
26607
|
+
SendEmailOtpRegistrationRequestToJSON,
|
|
26608
|
+
SendEmailOtpRegistrationRequestToJSONTyped,
|
|
25703
26609
|
SendEmailRequestFromJSON,
|
|
25704
26610
|
SendEmailRequestFromJSONTyped,
|
|
25705
26611
|
SendEmailRequestToJSON,
|
|
@@ -25814,6 +26720,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
25814
26720
|
SessionListResponseFromJSONTyped,
|
|
25815
26721
|
SessionListResponseToJSON,
|
|
25816
26722
|
SessionListResponseToJSONTyped,
|
|
26723
|
+
SetDomainInboundRequestFromJSON,
|
|
26724
|
+
SetDomainInboundRequestFromJSONTyped,
|
|
26725
|
+
SetDomainInboundRequestToJSON,
|
|
26726
|
+
SetDomainInboundRequestToJSONTyped,
|
|
25817
26727
|
SetPreferencesRequestFromJSON,
|
|
25818
26728
|
SetPreferencesRequestFromJSONTyped,
|
|
25819
26729
|
SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -26164,6 +27074,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
26164
27074
|
VerifyDomainResponseFromJSONTyped,
|
|
26165
27075
|
VerifyDomainResponseToJSON,
|
|
26166
27076
|
VerifyDomainResponseToJSONTyped,
|
|
27077
|
+
VerifyEmailOtpLoginRequestFromJSON,
|
|
27078
|
+
VerifyEmailOtpLoginRequestFromJSONTyped,
|
|
27079
|
+
VerifyEmailOtpLoginRequestToJSON,
|
|
27080
|
+
VerifyEmailOtpLoginRequestToJSONTyped,
|
|
27081
|
+
VerifyEmailOtpRegistrationRequestFromJSON,
|
|
27082
|
+
VerifyEmailOtpRegistrationRequestFromJSONTyped,
|
|
27083
|
+
VerifyEmailOtpRegistrationRequestToJSON,
|
|
27084
|
+
VerifyEmailOtpRegistrationRequestToJSONTyped,
|
|
26167
27085
|
VerifySmsConfigDataFromJSON,
|
|
26168
27086
|
VerifySmsConfigDataFromJSONTyped,
|
|
26169
27087
|
VerifySmsConfigDataToJSON,
|
|
@@ -26519,6 +27437,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
26519
27437
|
instanceOfCategory,
|
|
26520
27438
|
instanceOfCategoryListResponse,
|
|
26521
27439
|
instanceOfCategoryResponse,
|
|
27440
|
+
instanceOfCheckEmailOtpAvailability200Response,
|
|
27441
|
+
instanceOfCheckEmailOtpAvailability200ResponseData,
|
|
26522
27442
|
instanceOfConfirmEmailVerificationRequest,
|
|
26523
27443
|
instanceOfConfirmEmailVerificationResponse,
|
|
26524
27444
|
instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -26591,6 +27511,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
26591
27511
|
instanceOfGetWaaSEndpoint200Response,
|
|
26592
27512
|
instanceOfGetWaaSUsage200Response,
|
|
26593
27513
|
instanceOfInAppNotification,
|
|
27514
|
+
instanceOfInboundAttachmentUrlResponse,
|
|
27515
|
+
instanceOfInboundAttachmentUrlResponseData,
|
|
27516
|
+
instanceOfInboundEmail,
|
|
27517
|
+
instanceOfInboundEmailAttachment,
|
|
27518
|
+
instanceOfInboundEmailFrom,
|
|
27519
|
+
instanceOfInboundEmailListResponse,
|
|
27520
|
+
instanceOfInboundEmailListResponseMeta,
|
|
27521
|
+
instanceOfInboundEmailResponse,
|
|
26594
27522
|
instanceOfInboxListMeta,
|
|
26595
27523
|
instanceOfInboxListResponse,
|
|
26596
27524
|
instanceOfInboxNotificationResponse,
|
|
@@ -26660,7 +27588,6 @@ var SDK_VERSION = "0.1.0";
|
|
|
26660
27588
|
instanceOfPayloadTooLargeErrorError,
|
|
26661
27589
|
instanceOfPayloadTooLargeErrorErrorDetails,
|
|
26662
27590
|
instanceOfPhoneAuthAvailabilityResponse,
|
|
26663
|
-
instanceOfPhoneAuthAvailabilityResponseData,
|
|
26664
27591
|
instanceOfPhoneLoginVerifyRequest,
|
|
26665
27592
|
instanceOfPhoneOtpSendRequest,
|
|
26666
27593
|
instanceOfPhoneOtpSentResponse,
|
|
@@ -26710,6 +27637,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
26710
27637
|
instanceOfSendBatchSmsData,
|
|
26711
27638
|
instanceOfSendBatchSmsRequest,
|
|
26712
27639
|
instanceOfSendBatchSmsResponse,
|
|
27640
|
+
instanceOfSendEmailOtpRegistrationRequest,
|
|
26713
27641
|
instanceOfSendEmailRequest,
|
|
26714
27642
|
instanceOfSendEmailResponse,
|
|
26715
27643
|
instanceOfSendEmailResponseData,
|
|
@@ -26738,6 +27666,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
26738
27666
|
instanceOfSessionListResponse,
|
|
26739
27667
|
instanceOfSessionListResponseData,
|
|
26740
27668
|
instanceOfSessionListResponseDataSessionInfo,
|
|
27669
|
+
instanceOfSetDomainInboundRequest,
|
|
26741
27670
|
instanceOfSetPreferencesRequest,
|
|
26742
27671
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
26743
27672
|
instanceOfSignInAnonymouslyRequest,
|
|
@@ -26820,6 +27749,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
26820
27749
|
instanceOfVerificationStatusResponseData,
|
|
26821
27750
|
instanceOfVerifyDomainResponse,
|
|
26822
27751
|
instanceOfVerifyDomainResponseData,
|
|
27752
|
+
instanceOfVerifyEmailOtpLoginRequest,
|
|
27753
|
+
instanceOfVerifyEmailOtpRegistrationRequest,
|
|
26823
27754
|
instanceOfVerifySmsConfigData,
|
|
26824
27755
|
instanceOfVerifySmsConfigResponse,
|
|
26825
27756
|
instanceOfWaaSApplication,
|