@zyphr-dev/node-sdk 0.1.23 → 0.1.25
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 +455 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +626 -149
- package/dist/index.d.ts +626 -149
- package/dist/index.js +419 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +7 -0
- package/src/src/apis/AuthRegistrationApi.ts +126 -0
- package/src/src/apis/EmailsApi.ts +4 -4
- package/src/src/models/AuthUser.ts +24 -0
- package/src/src/models/BatchRecipient.ts +83 -0
- package/src/src/models/ConvertAnonymousUserRequest.ts +73 -0
- package/src/src/models/ConvertAnonymousUserRequestOneOf.ts +102 -0
- package/src/src/models/ConvertAnonymousUserRequestOneOf1.ts +110 -0
- package/src/src/models/ConvertAnonymousUserRequestOneOf1AppleUser.ts +73 -0
- package/src/src/models/ConvertAnonymousUserRequestOneOf1AppleUserName.ts +73 -0
- package/src/src/models/CreateTemplateRequest.ts +18 -3
- package/src/src/models/SendBatchEmailRequest.ts +95 -11
- package/src/src/models/SignInAnonymouslyRequest.ts +82 -0
- package/src/src/models/TemplateResponse.ts +13 -0
- package/src/src/models/UpdateTemplateRequest.ts +9 -0
- package/src/src/models/index.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -166,6 +166,10 @@ __export(index_exports, {
|
|
|
166
166
|
BatchPublishWaaSEvents201ResponseFromJSONTyped: () => BatchPublishWaaSEvents201ResponseFromJSONTyped,
|
|
167
167
|
BatchPublishWaaSEvents201ResponseToJSON: () => BatchPublishWaaSEvents201ResponseToJSON,
|
|
168
168
|
BatchPublishWaaSEvents201ResponseToJSONTyped: () => BatchPublishWaaSEvents201ResponseToJSONTyped,
|
|
169
|
+
BatchRecipientFromJSON: () => BatchRecipientFromJSON,
|
|
170
|
+
BatchRecipientFromJSONTyped: () => BatchRecipientFromJSONTyped,
|
|
171
|
+
BatchRecipientToJSON: () => BatchRecipientToJSON,
|
|
172
|
+
BatchRecipientToJSONTyped: () => BatchRecipientToJSONTyped,
|
|
169
173
|
BlobApiResponse: () => BlobApiResponse,
|
|
170
174
|
BulkRetryWebhookDeliveriesRequestFromJSON: () => BulkRetryWebhookDeliveriesRequestFromJSON,
|
|
171
175
|
BulkRetryWebhookDeliveriesRequestFromJSONTyped: () => BulkRetryWebhookDeliveriesRequestFromJSONTyped,
|
|
@@ -234,6 +238,28 @@ __export(index_exports, {
|
|
|
234
238
|
ConsentWithdrawResponseFromJSONTyped: () => ConsentWithdrawResponseFromJSONTyped,
|
|
235
239
|
ConsentWithdrawResponseToJSON: () => ConsentWithdrawResponseToJSON,
|
|
236
240
|
ConsentWithdrawResponseToJSONTyped: () => ConsentWithdrawResponseToJSONTyped,
|
|
241
|
+
ConvertAnonymousUserRequestFromJSON: () => ConvertAnonymousUserRequestFromJSON,
|
|
242
|
+
ConvertAnonymousUserRequestFromJSONTyped: () => ConvertAnonymousUserRequestFromJSONTyped,
|
|
243
|
+
ConvertAnonymousUserRequestOneOf1AppleUserFromJSON: () => ConvertAnonymousUserRequestOneOf1AppleUserFromJSON,
|
|
244
|
+
ConvertAnonymousUserRequestOneOf1AppleUserFromJSONTyped: () => ConvertAnonymousUserRequestOneOf1AppleUserFromJSONTyped,
|
|
245
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSON: () => ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSON,
|
|
246
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSONTyped: () => ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSONTyped,
|
|
247
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameToJSON: () => ConvertAnonymousUserRequestOneOf1AppleUserNameToJSON,
|
|
248
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameToJSONTyped: () => ConvertAnonymousUserRequestOneOf1AppleUserNameToJSONTyped,
|
|
249
|
+
ConvertAnonymousUserRequestOneOf1AppleUserToJSON: () => ConvertAnonymousUserRequestOneOf1AppleUserToJSON,
|
|
250
|
+
ConvertAnonymousUserRequestOneOf1AppleUserToJSONTyped: () => ConvertAnonymousUserRequestOneOf1AppleUserToJSONTyped,
|
|
251
|
+
ConvertAnonymousUserRequestOneOf1FromJSON: () => ConvertAnonymousUserRequestOneOf1FromJSON,
|
|
252
|
+
ConvertAnonymousUserRequestOneOf1FromJSONTyped: () => ConvertAnonymousUserRequestOneOf1FromJSONTyped,
|
|
253
|
+
ConvertAnonymousUserRequestOneOf1MethodEnum: () => ConvertAnonymousUserRequestOneOf1MethodEnum,
|
|
254
|
+
ConvertAnonymousUserRequestOneOf1ToJSON: () => ConvertAnonymousUserRequestOneOf1ToJSON,
|
|
255
|
+
ConvertAnonymousUserRequestOneOf1ToJSONTyped: () => ConvertAnonymousUserRequestOneOf1ToJSONTyped,
|
|
256
|
+
ConvertAnonymousUserRequestOneOfFromJSON: () => ConvertAnonymousUserRequestOneOfFromJSON,
|
|
257
|
+
ConvertAnonymousUserRequestOneOfFromJSONTyped: () => ConvertAnonymousUserRequestOneOfFromJSONTyped,
|
|
258
|
+
ConvertAnonymousUserRequestOneOfMethodEnum: () => ConvertAnonymousUserRequestOneOfMethodEnum,
|
|
259
|
+
ConvertAnonymousUserRequestOneOfToJSON: () => ConvertAnonymousUserRequestOneOfToJSON,
|
|
260
|
+
ConvertAnonymousUserRequestOneOfToJSONTyped: () => ConvertAnonymousUserRequestOneOfToJSONTyped,
|
|
261
|
+
ConvertAnonymousUserRequestToJSON: () => ConvertAnonymousUserRequestToJSON,
|
|
262
|
+
ConvertAnonymousUserRequestToJSONTyped: () => ConvertAnonymousUserRequestToJSONTyped,
|
|
237
263
|
CreateCategoryRequestFromJSON: () => CreateCategoryRequestFromJSON,
|
|
238
264
|
CreateCategoryRequestFromJSONTyped: () => CreateCategoryRequestFromJSONTyped,
|
|
239
265
|
CreateCategoryRequestToJSON: () => CreateCategoryRequestToJSON,
|
|
@@ -1022,6 +1048,10 @@ __export(index_exports, {
|
|
|
1022
1048
|
SetPreferencesRequestPreferencesInnerToJSONTyped: () => SetPreferencesRequestPreferencesInnerToJSONTyped,
|
|
1023
1049
|
SetPreferencesRequestToJSON: () => SetPreferencesRequestToJSON,
|
|
1024
1050
|
SetPreferencesRequestToJSONTyped: () => SetPreferencesRequestToJSONTyped,
|
|
1051
|
+
SignInAnonymouslyRequestFromJSON: () => SignInAnonymouslyRequestFromJSON,
|
|
1052
|
+
SignInAnonymouslyRequestFromJSONTyped: () => SignInAnonymouslyRequestFromJSONTyped,
|
|
1053
|
+
SignInAnonymouslyRequestToJSON: () => SignInAnonymouslyRequestToJSON,
|
|
1054
|
+
SignInAnonymouslyRequestToJSONTyped: () => SignInAnonymouslyRequestToJSONTyped,
|
|
1025
1055
|
SlackApi: () => SlackApi,
|
|
1026
1056
|
SlackMessageFromJSON: () => SlackMessageFromJSON,
|
|
1027
1057
|
SlackMessageFromJSONTyped: () => SlackMessageFromJSONTyped,
|
|
@@ -1651,6 +1681,7 @@ __export(index_exports, {
|
|
|
1651
1681
|
instanceOfAuthUserResponse: () => instanceOfAuthUserResponse,
|
|
1652
1682
|
instanceOfAuthUserResponseData: () => instanceOfAuthUserResponseData,
|
|
1653
1683
|
instanceOfBatchPublishWaaSEvents201Response: () => instanceOfBatchPublishWaaSEvents201Response,
|
|
1684
|
+
instanceOfBatchRecipient: () => instanceOfBatchRecipient,
|
|
1654
1685
|
instanceOfBulkRetryWebhookDeliveriesRequest: () => instanceOfBulkRetryWebhookDeliveriesRequest,
|
|
1655
1686
|
instanceOfBulkUpsertAuthEmailTemplatesRequest: () => instanceOfBulkUpsertAuthEmailTemplatesRequest,
|
|
1656
1687
|
instanceOfBulkUpsertAuthEmailTemplatesResponse: () => instanceOfBulkUpsertAuthEmailTemplatesResponse,
|
|
@@ -1667,6 +1698,10 @@ __export(index_exports, {
|
|
|
1667
1698
|
instanceOfConsentStatus: () => instanceOfConsentStatus,
|
|
1668
1699
|
instanceOfConsentStatusResponse: () => instanceOfConsentStatusResponse,
|
|
1669
1700
|
instanceOfConsentWithdrawResponse: () => instanceOfConsentWithdrawResponse,
|
|
1701
|
+
instanceOfConvertAnonymousUserRequestOneOf: () => instanceOfConvertAnonymousUserRequestOneOf,
|
|
1702
|
+
instanceOfConvertAnonymousUserRequestOneOf1: () => instanceOfConvertAnonymousUserRequestOneOf1,
|
|
1703
|
+
instanceOfConvertAnonymousUserRequestOneOf1AppleUser: () => instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
|
|
1704
|
+
instanceOfConvertAnonymousUserRequestOneOf1AppleUserName: () => instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
|
|
1670
1705
|
instanceOfCreateCategoryRequest: () => instanceOfCreateCategoryRequest,
|
|
1671
1706
|
instanceOfCreateSubscriberRequest: () => instanceOfCreateSubscriberRequest,
|
|
1672
1707
|
instanceOfCreateTemplateRequest: () => instanceOfCreateTemplateRequest,
|
|
@@ -1854,6 +1889,7 @@ __export(index_exports, {
|
|
|
1854
1889
|
instanceOfSessionListResponseDataSessionInfo: () => instanceOfSessionListResponseDataSessionInfo,
|
|
1855
1890
|
instanceOfSetPreferencesRequest: () => instanceOfSetPreferencesRequest,
|
|
1856
1891
|
instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
|
|
1892
|
+
instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
|
|
1857
1893
|
instanceOfSlackMessage: () => instanceOfSlackMessage,
|
|
1858
1894
|
instanceOfSlackMessageListResponse: () => instanceOfSlackMessageListResponse,
|
|
1859
1895
|
instanceOfSlackMessageListResponseMeta: () => instanceOfSlackMessageListResponseMeta,
|
|
@@ -3085,6 +3121,9 @@ function AuthUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
3085
3121
|
"phoneVerified": json["phone_verified"] == null ? void 0 : json["phone_verified"],
|
|
3086
3122
|
"status": json["status"] == null ? void 0 : json["status"],
|
|
3087
3123
|
"mfaEnabled": json["mfa_enabled"] == null ? void 0 : json["mfa_enabled"],
|
|
3124
|
+
"isAnonymous": json["is_anonymous"] == null ? void 0 : json["is_anonymous"],
|
|
3125
|
+
"anonymousDeviceId": json["anonymous_device_id"] == null ? void 0 : json["anonymous_device_id"],
|
|
3126
|
+
"firstActivityAt": json["first_activity_at"] == null ? void 0 : new Date(json["first_activity_at"]),
|
|
3088
3127
|
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
3089
3128
|
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"]),
|
|
3090
3129
|
"lastLoginAt": json["last_login_at"] == null ? void 0 : new Date(json["last_login_at"])
|
|
@@ -3108,6 +3147,9 @@ function AuthUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
3108
3147
|
"phone_verified": value["phoneVerified"],
|
|
3109
3148
|
"status": value["status"],
|
|
3110
3149
|
"mfa_enabled": value["mfaEnabled"],
|
|
3150
|
+
"is_anonymous": value["isAnonymous"],
|
|
3151
|
+
"anonymous_device_id": value["anonymousDeviceId"],
|
|
3152
|
+
"first_activity_at": value["firstActivityAt"] == null ? void 0 : value["firstActivityAt"].toISOString(),
|
|
3111
3153
|
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
3112
3154
|
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString(),
|
|
3113
3155
|
"last_login_at": value["lastLoginAt"] == null ? void 0 : value["lastLoginAt"].toISOString()
|
|
@@ -3385,6 +3427,38 @@ function BatchPublishWaaSEvents201ResponseToJSONTyped(value, ignoreDiscriminator
|
|
|
3385
3427
|
};
|
|
3386
3428
|
}
|
|
3387
3429
|
|
|
3430
|
+
// src/src/models/BatchRecipient.ts
|
|
3431
|
+
function instanceOfBatchRecipient(value) {
|
|
3432
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
3433
|
+
return true;
|
|
3434
|
+
}
|
|
3435
|
+
function BatchRecipientFromJSON(json) {
|
|
3436
|
+
return BatchRecipientFromJSONTyped(json, false);
|
|
3437
|
+
}
|
|
3438
|
+
function BatchRecipientFromJSONTyped(json, ignoreDiscriminator) {
|
|
3439
|
+
if (json == null) {
|
|
3440
|
+
return json;
|
|
3441
|
+
}
|
|
3442
|
+
return {
|
|
3443
|
+
"email": json["email"],
|
|
3444
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
3445
|
+
"variables": json["variables"] == null ? void 0 : json["variables"]
|
|
3446
|
+
};
|
|
3447
|
+
}
|
|
3448
|
+
function BatchRecipientToJSON(json) {
|
|
3449
|
+
return BatchRecipientToJSONTyped(json, false);
|
|
3450
|
+
}
|
|
3451
|
+
function BatchRecipientToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3452
|
+
if (value == null) {
|
|
3453
|
+
return value;
|
|
3454
|
+
}
|
|
3455
|
+
return {
|
|
3456
|
+
"email": value["email"],
|
|
3457
|
+
"name": value["name"],
|
|
3458
|
+
"variables": value["variables"]
|
|
3459
|
+
};
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3388
3462
|
// src/src/models/BulkRetryWebhookDeliveriesRequest.ts
|
|
3389
3463
|
var BulkRetryWebhookDeliveriesRequestStatusEnum = {
|
|
3390
3464
|
FAILED: "failed",
|
|
@@ -4027,6 +4101,172 @@ function ConsentWithdrawResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
4027
4101
|
};
|
|
4028
4102
|
}
|
|
4029
4103
|
|
|
4104
|
+
// src/src/models/ConvertAnonymousUserRequestOneOf.ts
|
|
4105
|
+
var ConvertAnonymousUserRequestOneOfMethodEnum = {
|
|
4106
|
+
PASSWORD: "password"
|
|
4107
|
+
};
|
|
4108
|
+
function instanceOfConvertAnonymousUserRequestOneOf(value) {
|
|
4109
|
+
if (!("method" in value) || value["method"] === void 0) return false;
|
|
4110
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
4111
|
+
if (!("password" in value) || value["password"] === void 0) return false;
|
|
4112
|
+
return true;
|
|
4113
|
+
}
|
|
4114
|
+
function ConvertAnonymousUserRequestOneOfFromJSON(json) {
|
|
4115
|
+
return ConvertAnonymousUserRequestOneOfFromJSONTyped(json, false);
|
|
4116
|
+
}
|
|
4117
|
+
function ConvertAnonymousUserRequestOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
4118
|
+
if (json == null) {
|
|
4119
|
+
return json;
|
|
4120
|
+
}
|
|
4121
|
+
return {
|
|
4122
|
+
"method": json["method"],
|
|
4123
|
+
"email": json["email"],
|
|
4124
|
+
"password": json["password"],
|
|
4125
|
+
"name": json["name"] == null ? void 0 : json["name"]
|
|
4126
|
+
};
|
|
4127
|
+
}
|
|
4128
|
+
function ConvertAnonymousUserRequestOneOfToJSON(json) {
|
|
4129
|
+
return ConvertAnonymousUserRequestOneOfToJSONTyped(json, false);
|
|
4130
|
+
}
|
|
4131
|
+
function ConvertAnonymousUserRequestOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4132
|
+
if (value == null) {
|
|
4133
|
+
return value;
|
|
4134
|
+
}
|
|
4135
|
+
return {
|
|
4136
|
+
"method": value["method"],
|
|
4137
|
+
"email": value["email"],
|
|
4138
|
+
"password": value["password"],
|
|
4139
|
+
"name": value["name"]
|
|
4140
|
+
};
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
// src/src/models/ConvertAnonymousUserRequestOneOf1AppleUserName.ts
|
|
4144
|
+
function instanceOfConvertAnonymousUserRequestOneOf1AppleUserName(value) {
|
|
4145
|
+
return true;
|
|
4146
|
+
}
|
|
4147
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSON(json) {
|
|
4148
|
+
return ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSONTyped(json, false);
|
|
4149
|
+
}
|
|
4150
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSONTyped(json, ignoreDiscriminator) {
|
|
4151
|
+
if (json == null) {
|
|
4152
|
+
return json;
|
|
4153
|
+
}
|
|
4154
|
+
return {
|
|
4155
|
+
"firstName": json["firstName"] == null ? void 0 : json["firstName"],
|
|
4156
|
+
"lastName": json["lastName"] == null ? void 0 : json["lastName"]
|
|
4157
|
+
};
|
|
4158
|
+
}
|
|
4159
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserNameToJSON(json) {
|
|
4160
|
+
return ConvertAnonymousUserRequestOneOf1AppleUserNameToJSONTyped(json, false);
|
|
4161
|
+
}
|
|
4162
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserNameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4163
|
+
if (value == null) {
|
|
4164
|
+
return value;
|
|
4165
|
+
}
|
|
4166
|
+
return {
|
|
4167
|
+
"firstName": value["firstName"],
|
|
4168
|
+
"lastName": value["lastName"]
|
|
4169
|
+
};
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
// src/src/models/ConvertAnonymousUserRequestOneOf1AppleUser.ts
|
|
4173
|
+
function instanceOfConvertAnonymousUserRequestOneOf1AppleUser(value) {
|
|
4174
|
+
return true;
|
|
4175
|
+
}
|
|
4176
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserFromJSON(json) {
|
|
4177
|
+
return ConvertAnonymousUserRequestOneOf1AppleUserFromJSONTyped(json, false);
|
|
4178
|
+
}
|
|
4179
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
4180
|
+
if (json == null) {
|
|
4181
|
+
return json;
|
|
4182
|
+
}
|
|
4183
|
+
return {
|
|
4184
|
+
"name": json["name"] == null ? void 0 : ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSON(json["name"])
|
|
4185
|
+
};
|
|
4186
|
+
}
|
|
4187
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserToJSON(json) {
|
|
4188
|
+
return ConvertAnonymousUserRequestOneOf1AppleUserToJSONTyped(json, false);
|
|
4189
|
+
}
|
|
4190
|
+
function ConvertAnonymousUserRequestOneOf1AppleUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4191
|
+
if (value == null) {
|
|
4192
|
+
return value;
|
|
4193
|
+
}
|
|
4194
|
+
return {
|
|
4195
|
+
"name": ConvertAnonymousUserRequestOneOf1AppleUserNameToJSON(value["name"])
|
|
4196
|
+
};
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
// src/src/models/ConvertAnonymousUserRequestOneOf1.ts
|
|
4200
|
+
var ConvertAnonymousUserRequestOneOf1MethodEnum = {
|
|
4201
|
+
OAUTH: "oauth"
|
|
4202
|
+
};
|
|
4203
|
+
function instanceOfConvertAnonymousUserRequestOneOf1(value) {
|
|
4204
|
+
if (!("method" in value) || value["method"] === void 0) return false;
|
|
4205
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
4206
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
4207
|
+
return true;
|
|
4208
|
+
}
|
|
4209
|
+
function ConvertAnonymousUserRequestOneOf1FromJSON(json) {
|
|
4210
|
+
return ConvertAnonymousUserRequestOneOf1FromJSONTyped(json, false);
|
|
4211
|
+
}
|
|
4212
|
+
function ConvertAnonymousUserRequestOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
4213
|
+
if (json == null) {
|
|
4214
|
+
return json;
|
|
4215
|
+
}
|
|
4216
|
+
return {
|
|
4217
|
+
"method": json["method"],
|
|
4218
|
+
"code": json["code"],
|
|
4219
|
+
"state": json["state"],
|
|
4220
|
+
"appleUser": json["apple_user"] == null ? void 0 : ConvertAnonymousUserRequestOneOf1AppleUserFromJSON(json["apple_user"])
|
|
4221
|
+
};
|
|
4222
|
+
}
|
|
4223
|
+
function ConvertAnonymousUserRequestOneOf1ToJSON(json) {
|
|
4224
|
+
return ConvertAnonymousUserRequestOneOf1ToJSONTyped(json, false);
|
|
4225
|
+
}
|
|
4226
|
+
function ConvertAnonymousUserRequestOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4227
|
+
if (value == null) {
|
|
4228
|
+
return value;
|
|
4229
|
+
}
|
|
4230
|
+
return {
|
|
4231
|
+
"method": value["method"],
|
|
4232
|
+
"code": value["code"],
|
|
4233
|
+
"state": value["state"],
|
|
4234
|
+
"apple_user": ConvertAnonymousUserRequestOneOf1AppleUserToJSON(value["appleUser"])
|
|
4235
|
+
};
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
// src/src/models/ConvertAnonymousUserRequest.ts
|
|
4239
|
+
function ConvertAnonymousUserRequestFromJSON(json) {
|
|
4240
|
+
return ConvertAnonymousUserRequestFromJSONTyped(json, false);
|
|
4241
|
+
}
|
|
4242
|
+
function ConvertAnonymousUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
4243
|
+
if (json == null) {
|
|
4244
|
+
return json;
|
|
4245
|
+
}
|
|
4246
|
+
if (instanceOfConvertAnonymousUserRequestOneOf(json)) {
|
|
4247
|
+
return ConvertAnonymousUserRequestOneOfFromJSONTyped(json, true);
|
|
4248
|
+
}
|
|
4249
|
+
if (instanceOfConvertAnonymousUserRequestOneOf1(json)) {
|
|
4250
|
+
return ConvertAnonymousUserRequestOneOf1FromJSONTyped(json, true);
|
|
4251
|
+
}
|
|
4252
|
+
return {};
|
|
4253
|
+
}
|
|
4254
|
+
function ConvertAnonymousUserRequestToJSON(json) {
|
|
4255
|
+
return ConvertAnonymousUserRequestToJSONTyped(json, false);
|
|
4256
|
+
}
|
|
4257
|
+
function ConvertAnonymousUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4258
|
+
if (value == null) {
|
|
4259
|
+
return value;
|
|
4260
|
+
}
|
|
4261
|
+
if (instanceOfConvertAnonymousUserRequestOneOf(value)) {
|
|
4262
|
+
return ConvertAnonymousUserRequestOneOfToJSON(value);
|
|
4263
|
+
}
|
|
4264
|
+
if (instanceOfConvertAnonymousUserRequestOneOf1(value)) {
|
|
4265
|
+
return ConvertAnonymousUserRequestOneOf1ToJSON(value);
|
|
4266
|
+
}
|
|
4267
|
+
return {};
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4030
4270
|
// src/src/models/CreateCategoryRequest.ts
|
|
4031
4271
|
function instanceOfCreateCategoryRequest(value) {
|
|
4032
4272
|
if (!("name" in value) || value["name"] === void 0) return false;
|
|
@@ -9192,92 +9432,50 @@ function RevokeSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9192
9432
|
};
|
|
9193
9433
|
}
|
|
9194
9434
|
|
|
9195
|
-
// src/src/models/
|
|
9196
|
-
function
|
|
9435
|
+
// src/src/models/SendBatchEmailRequest.ts
|
|
9436
|
+
function instanceOfSendBatchEmailRequest(value) {
|
|
9437
|
+
if (!("from" in value) || value["from"] === void 0) return false;
|
|
9197
9438
|
if (!("to" in value) || value["to"] === void 0) return false;
|
|
9198
|
-
if (!("subject" in value) || value["subject"] === void 0) return false;
|
|
9199
9439
|
return true;
|
|
9200
9440
|
}
|
|
9201
|
-
function
|
|
9202
|
-
return
|
|
9441
|
+
function SendBatchEmailRequestFromJSON(json) {
|
|
9442
|
+
return SendBatchEmailRequestFromJSONTyped(json, false);
|
|
9203
9443
|
}
|
|
9204
|
-
function
|
|
9444
|
+
function SendBatchEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9205
9445
|
if (json == null) {
|
|
9206
9446
|
return json;
|
|
9207
9447
|
}
|
|
9208
9448
|
return {
|
|
9209
|
-
"
|
|
9210
|
-
"
|
|
9449
|
+
"from": EmailAddressFromJSON(json["from"]),
|
|
9450
|
+
"to": json["to"].map(BatchRecipientFromJSON),
|
|
9211
9451
|
"replyTo": json["reply_to"] == null ? void 0 : EmailAddressFromJSON(json["reply_to"]),
|
|
9212
|
-
"
|
|
9213
|
-
"bcc": json["bcc"] == null ? void 0 : json["bcc"],
|
|
9214
|
-
"subject": json["subject"],
|
|
9452
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
9215
9453
|
"html": json["html"] == null ? void 0 : json["html"],
|
|
9216
9454
|
"text": json["text"] == null ? void 0 : json["text"],
|
|
9217
9455
|
"templateId": json["template_id"] == null ? void 0 : json["template_id"],
|
|
9218
9456
|
"templateData": json["template_data"] == null ? void 0 : json["template_data"],
|
|
9219
|
-
"attachments": json["attachments"] == null ? void 0 : json["attachments"].map(EmailAttachmentFromJSON),
|
|
9220
|
-
"headers": json["headers"] == null ? void 0 : json["headers"],
|
|
9221
9457
|
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
9222
|
-
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
9223
|
-
"scheduledAt": json["scheduled_at"] == null ? void 0 : new Date(json["scheduled_at"]),
|
|
9224
|
-
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
9225
|
-
"category": json["category"] == null ? void 0 : json["category"]
|
|
9458
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
9226
9459
|
};
|
|
9227
9460
|
}
|
|
9228
|
-
function
|
|
9229
|
-
return
|
|
9461
|
+
function SendBatchEmailRequestToJSON(json) {
|
|
9462
|
+
return SendBatchEmailRequestToJSONTyped(json, false);
|
|
9230
9463
|
}
|
|
9231
|
-
function
|
|
9464
|
+
function SendBatchEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9232
9465
|
if (value == null) {
|
|
9233
9466
|
return value;
|
|
9234
9467
|
}
|
|
9235
9468
|
return {
|
|
9236
|
-
"to": value["to"].map(EmailAddressToJSON),
|
|
9237
9469
|
"from": EmailAddressToJSON(value["from"]),
|
|
9470
|
+
"to": value["to"].map(BatchRecipientToJSON),
|
|
9238
9471
|
"reply_to": EmailAddressToJSON(value["replyTo"]),
|
|
9239
|
-
"cc": value["cc"],
|
|
9240
|
-
"bcc": value["bcc"],
|
|
9241
9472
|
"subject": value["subject"],
|
|
9242
9473
|
"html": value["html"],
|
|
9243
9474
|
"text": value["text"],
|
|
9244
9475
|
"template_id": value["templateId"],
|
|
9245
9476
|
"template_data": value["templateData"],
|
|
9246
|
-
"attachments": value["attachments"] == null ? void 0 : value["attachments"].map(EmailAttachmentToJSON),
|
|
9247
|
-
"headers": value["headers"],
|
|
9248
9477
|
"tags": value["tags"],
|
|
9249
|
-
"metadata": value["metadata"]
|
|
9250
|
-
"scheduled_at": value["scheduledAt"] == null ? void 0 : value["scheduledAt"].toISOString(),
|
|
9251
|
-
"subscriber_id": value["subscriberId"],
|
|
9252
|
-
"category": value["category"]
|
|
9253
|
-
};
|
|
9254
|
-
}
|
|
9255
|
-
|
|
9256
|
-
// src/src/models/SendBatchEmailRequest.ts
|
|
9257
|
-
function instanceOfSendBatchEmailRequest(value) {
|
|
9258
|
-
if (!("messages" in value) || value["messages"] === void 0) return false;
|
|
9259
|
-
return true;
|
|
9260
|
-
}
|
|
9261
|
-
function SendBatchEmailRequestFromJSON(json) {
|
|
9262
|
-
return SendBatchEmailRequestFromJSONTyped(json, false);
|
|
9263
|
-
}
|
|
9264
|
-
function SendBatchEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9265
|
-
if (json == null) {
|
|
9266
|
-
return json;
|
|
9267
|
-
}
|
|
9268
|
-
return {
|
|
9269
|
-
"messages": json["messages"].map(SendEmailRequestFromJSON)
|
|
9270
|
-
};
|
|
9271
|
-
}
|
|
9272
|
-
function SendBatchEmailRequestToJSON(json) {
|
|
9273
|
-
return SendBatchEmailRequestToJSONTyped(json, false);
|
|
9274
|
-
}
|
|
9275
|
-
function SendBatchEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9276
|
-
if (value == null) {
|
|
9277
|
-
return value;
|
|
9278
|
-
}
|
|
9279
|
-
return {
|
|
9280
|
-
"messages": value["messages"].map(SendEmailRequestToJSON)
|
|
9478
|
+
"metadata": value["metadata"]
|
|
9281
9479
|
};
|
|
9282
9480
|
}
|
|
9283
9481
|
|
|
@@ -9684,6 +9882,67 @@ function SendBatchSmsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9684
9882
|
};
|
|
9685
9883
|
}
|
|
9686
9884
|
|
|
9885
|
+
// src/src/models/SendEmailRequest.ts
|
|
9886
|
+
function instanceOfSendEmailRequest(value) {
|
|
9887
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
9888
|
+
if (!("subject" in value) || value["subject"] === void 0) return false;
|
|
9889
|
+
return true;
|
|
9890
|
+
}
|
|
9891
|
+
function SendEmailRequestFromJSON(json) {
|
|
9892
|
+
return SendEmailRequestFromJSONTyped(json, false);
|
|
9893
|
+
}
|
|
9894
|
+
function SendEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9895
|
+
if (json == null) {
|
|
9896
|
+
return json;
|
|
9897
|
+
}
|
|
9898
|
+
return {
|
|
9899
|
+
"to": json["to"].map(EmailAddressFromJSON),
|
|
9900
|
+
"from": json["from"] == null ? void 0 : EmailAddressFromJSON(json["from"]),
|
|
9901
|
+
"replyTo": json["reply_to"] == null ? void 0 : EmailAddressFromJSON(json["reply_to"]),
|
|
9902
|
+
"cc": json["cc"] == null ? void 0 : json["cc"],
|
|
9903
|
+
"bcc": json["bcc"] == null ? void 0 : json["bcc"],
|
|
9904
|
+
"subject": json["subject"],
|
|
9905
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
9906
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
9907
|
+
"templateId": json["template_id"] == null ? void 0 : json["template_id"],
|
|
9908
|
+
"templateData": json["template_data"] == null ? void 0 : json["template_data"],
|
|
9909
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"].map(EmailAttachmentFromJSON),
|
|
9910
|
+
"headers": json["headers"] == null ? void 0 : json["headers"],
|
|
9911
|
+
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
9912
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
9913
|
+
"scheduledAt": json["scheduled_at"] == null ? void 0 : new Date(json["scheduled_at"]),
|
|
9914
|
+
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
9915
|
+
"category": json["category"] == null ? void 0 : json["category"]
|
|
9916
|
+
};
|
|
9917
|
+
}
|
|
9918
|
+
function SendEmailRequestToJSON(json) {
|
|
9919
|
+
return SendEmailRequestToJSONTyped(json, false);
|
|
9920
|
+
}
|
|
9921
|
+
function SendEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9922
|
+
if (value == null) {
|
|
9923
|
+
return value;
|
|
9924
|
+
}
|
|
9925
|
+
return {
|
|
9926
|
+
"to": value["to"].map(EmailAddressToJSON),
|
|
9927
|
+
"from": EmailAddressToJSON(value["from"]),
|
|
9928
|
+
"reply_to": EmailAddressToJSON(value["replyTo"]),
|
|
9929
|
+
"cc": value["cc"],
|
|
9930
|
+
"bcc": value["bcc"],
|
|
9931
|
+
"subject": value["subject"],
|
|
9932
|
+
"html": value["html"],
|
|
9933
|
+
"text": value["text"],
|
|
9934
|
+
"template_id": value["templateId"],
|
|
9935
|
+
"template_data": value["templateData"],
|
|
9936
|
+
"attachments": value["attachments"] == null ? void 0 : value["attachments"].map(EmailAttachmentToJSON),
|
|
9937
|
+
"headers": value["headers"],
|
|
9938
|
+
"tags": value["tags"],
|
|
9939
|
+
"metadata": value["metadata"],
|
|
9940
|
+
"scheduled_at": value["scheduledAt"] == null ? void 0 : value["scheduledAt"].toISOString(),
|
|
9941
|
+
"subscriber_id": value["subscriberId"],
|
|
9942
|
+
"category": value["category"]
|
|
9943
|
+
};
|
|
9944
|
+
}
|
|
9945
|
+
|
|
9687
9946
|
// src/src/models/SendEmailResponseMeta.ts
|
|
9688
9947
|
function instanceOfSendEmailResponseMeta(value) {
|
|
9689
9948
|
return true;
|
|
@@ -10652,6 +10911,38 @@ function SetPreferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
10652
10911
|
};
|
|
10653
10912
|
}
|
|
10654
10913
|
|
|
10914
|
+
// src/src/models/SignInAnonymouslyRequest.ts
|
|
10915
|
+
function instanceOfSignInAnonymouslyRequest(value) {
|
|
10916
|
+
if (!("deviceId" in value) || value["deviceId"] === void 0) return false;
|
|
10917
|
+
return true;
|
|
10918
|
+
}
|
|
10919
|
+
function SignInAnonymouslyRequestFromJSON(json) {
|
|
10920
|
+
return SignInAnonymouslyRequestFromJSONTyped(json, false);
|
|
10921
|
+
}
|
|
10922
|
+
function SignInAnonymouslyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10923
|
+
if (json == null) {
|
|
10924
|
+
return json;
|
|
10925
|
+
}
|
|
10926
|
+
return {
|
|
10927
|
+
"deviceId": json["device_id"],
|
|
10928
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
10929
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
10930
|
+
};
|
|
10931
|
+
}
|
|
10932
|
+
function SignInAnonymouslyRequestToJSON(json) {
|
|
10933
|
+
return SignInAnonymouslyRequestToJSONTyped(json, false);
|
|
10934
|
+
}
|
|
10935
|
+
function SignInAnonymouslyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10936
|
+
if (value == null) {
|
|
10937
|
+
return value;
|
|
10938
|
+
}
|
|
10939
|
+
return {
|
|
10940
|
+
"device_id": value["deviceId"],
|
|
10941
|
+
"name": value["name"],
|
|
10942
|
+
"metadata": value["metadata"]
|
|
10943
|
+
};
|
|
10944
|
+
}
|
|
10945
|
+
|
|
10655
10946
|
// src/src/models/SlackMessage.ts
|
|
10656
10947
|
function instanceOfSlackMessage(value) {
|
|
10657
10948
|
return true;
|
|
@@ -11445,7 +11736,8 @@ function TemplateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11445
11736
|
}
|
|
11446
11737
|
return {
|
|
11447
11738
|
"data": json["data"] == null ? void 0 : TemplateFromJSON(json["data"]),
|
|
11448
|
-
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
11739
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"]),
|
|
11740
|
+
"warnings": json["warnings"] == null ? void 0 : json["warnings"]
|
|
11449
11741
|
};
|
|
11450
11742
|
}
|
|
11451
11743
|
function TemplateResponseToJSON(json) {
|
|
@@ -11457,7 +11749,8 @@ function TemplateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11457
11749
|
}
|
|
11458
11750
|
return {
|
|
11459
11751
|
"data": TemplateToJSON(value["data"]),
|
|
11460
|
-
"meta": RequestMetaToJSON(value["meta"])
|
|
11752
|
+
"meta": RequestMetaToJSON(value["meta"]),
|
|
11753
|
+
"warnings": value["warnings"]
|
|
11461
11754
|
};
|
|
11462
11755
|
}
|
|
11463
11756
|
|
|
@@ -16031,6 +16324,37 @@ var AuthPhoneApi = class extends BaseAPI {
|
|
|
16031
16324
|
|
|
16032
16325
|
// src/src/apis/AuthRegistrationApi.ts
|
|
16033
16326
|
var AuthRegistrationApi = class extends BaseAPI {
|
|
16327
|
+
/**
|
|
16328
|
+
* Upgrade the calling anonymous user to a full email+password account in place. The end_user.id is preserved, so customer-domain tables with foreign keys to end_users.id need no migration on conversion. All prior sessions for the user (including the anonymous token used to make this call) are revoked. A fresh token pair is returned in the response body. The conversion is the moment the user becomes billable -- MAU is tracked from this point forward.
|
|
16329
|
+
* Convert anonymous account to a full account
|
|
16330
|
+
*/
|
|
16331
|
+
async convertAnonymousUserRaw(requestParameters, initOverrides) {
|
|
16332
|
+
if (requestParameters["convertAnonymousUserRequest"] == null) {
|
|
16333
|
+
throw new RequiredError(
|
|
16334
|
+
"convertAnonymousUserRequest",
|
|
16335
|
+
'Required parameter "convertAnonymousUserRequest" was null or undefined when calling convertAnonymousUser().'
|
|
16336
|
+
);
|
|
16337
|
+
}
|
|
16338
|
+
const queryParameters = {};
|
|
16339
|
+
const headerParameters = {};
|
|
16340
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16341
|
+
const response = await this.request({
|
|
16342
|
+
path: `/auth/users/convert`,
|
|
16343
|
+
method: "POST",
|
|
16344
|
+
headers: headerParameters,
|
|
16345
|
+
query: queryParameters,
|
|
16346
|
+
body: ConvertAnonymousUserRequestToJSON(requestParameters["convertAnonymousUserRequest"])
|
|
16347
|
+
}, initOverrides);
|
|
16348
|
+
return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
|
|
16349
|
+
}
|
|
16350
|
+
/**
|
|
16351
|
+
* Upgrade the calling anonymous user to a full email+password account in place. The end_user.id is preserved, so customer-domain tables with foreign keys to end_users.id need no migration on conversion. All prior sessions for the user (including the anonymous token used to make this call) are revoked. A fresh token pair is returned in the response body. The conversion is the moment the user becomes billable -- MAU is tracked from this point forward.
|
|
16352
|
+
* Convert anonymous account to a full account
|
|
16353
|
+
*/
|
|
16354
|
+
async convertAnonymousUser(convertAnonymousUserRequest, initOverrides) {
|
|
16355
|
+
const response = await this.convertAnonymousUserRaw({ convertAnonymousUserRequest }, initOverrides);
|
|
16356
|
+
return await response.value();
|
|
16357
|
+
}
|
|
16034
16358
|
/**
|
|
16035
16359
|
* Register a new end user with email and password.
|
|
16036
16360
|
* Register a new end user
|
|
@@ -16068,6 +16392,40 @@ var AuthRegistrationApi = class extends BaseAPI {
|
|
|
16068
16392
|
const response = await this.registerEndUserRaw({ registerRequest }, initOverrides);
|
|
16069
16393
|
return await response.value();
|
|
16070
16394
|
}
|
|
16395
|
+
/**
|
|
16396
|
+
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert.
|
|
16397
|
+
* Sign in anonymously
|
|
16398
|
+
*/
|
|
16399
|
+
async signInAnonymouslyRaw(requestParameters, initOverrides) {
|
|
16400
|
+
if (requestParameters["signInAnonymouslyRequest"] == null) {
|
|
16401
|
+
throw new RequiredError(
|
|
16402
|
+
"signInAnonymouslyRequest",
|
|
16403
|
+
'Required parameter "signInAnonymouslyRequest" was null or undefined when calling signInAnonymously().'
|
|
16404
|
+
);
|
|
16405
|
+
}
|
|
16406
|
+
const queryParameters = {};
|
|
16407
|
+
const headerParameters = {};
|
|
16408
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16410
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16411
|
+
}
|
|
16412
|
+
const response = await this.request({
|
|
16413
|
+
path: `/auth/users/anonymous`,
|
|
16414
|
+
method: "POST",
|
|
16415
|
+
headers: headerParameters,
|
|
16416
|
+
query: queryParameters,
|
|
16417
|
+
body: SignInAnonymouslyRequestToJSON(requestParameters["signInAnonymouslyRequest"])
|
|
16418
|
+
}, initOverrides);
|
|
16419
|
+
return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
|
|
16420
|
+
}
|
|
16421
|
+
/**
|
|
16422
|
+
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert.
|
|
16423
|
+
* Sign in anonymously
|
|
16424
|
+
*/
|
|
16425
|
+
async signInAnonymously(signInAnonymouslyRequest, initOverrides) {
|
|
16426
|
+
const response = await this.signInAnonymouslyRaw({ signInAnonymouslyRequest }, initOverrides);
|
|
16427
|
+
return await response.value();
|
|
16428
|
+
}
|
|
16071
16429
|
};
|
|
16072
16430
|
|
|
16073
16431
|
// src/src/apis/AuthSessionsApi.ts
|
|
@@ -16974,7 +17332,7 @@ var EmailsApi = class extends BaseAPI {
|
|
|
16974
17332
|
return await response.value();
|
|
16975
17333
|
}
|
|
16976
17334
|
/**
|
|
16977
|
-
* Send up to 100
|
|
17335
|
+
* Send a single email to up to 100 recipients in one request. Each recipient gets their own message record. Provide either raw content (`subject` plus `html` and/or `text`) or a `template_id` with `template_data`. Per-recipient `variables` are merged on top of the batch-level `template_data`.
|
|
16978
17336
|
* Send batch emails
|
|
16979
17337
|
*/
|
|
16980
17338
|
async sendBatchEmailRaw(requestParameters, initOverrides) {
|
|
@@ -17000,7 +17358,7 @@ var EmailsApi = class extends BaseAPI {
|
|
|
17000
17358
|
return new JSONApiResponse(response, (jsonValue) => SendBatchEmailResponseFromJSON(jsonValue));
|
|
17001
17359
|
}
|
|
17002
17360
|
/**
|
|
17003
|
-
* Send up to 100
|
|
17361
|
+
* Send a single email to up to 100 recipients in one request. Each recipient gets their own message record. Provide either raw content (`subject` plus `html` and/or `text`) or a `template_id` with `template_data`. Per-recipient `variables` are merged on top of the batch-level `template_data`.
|
|
17004
17362
|
* Send batch emails
|
|
17005
17363
|
*/
|
|
17006
17364
|
async sendBatchEmail(sendBatchEmailRequest, initOverrides) {
|
|
@@ -22073,6 +22431,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
22073
22431
|
BatchPublishWaaSEvents201ResponseFromJSONTyped,
|
|
22074
22432
|
BatchPublishWaaSEvents201ResponseToJSON,
|
|
22075
22433
|
BatchPublishWaaSEvents201ResponseToJSONTyped,
|
|
22434
|
+
BatchRecipientFromJSON,
|
|
22435
|
+
BatchRecipientFromJSONTyped,
|
|
22436
|
+
BatchRecipientToJSON,
|
|
22437
|
+
BatchRecipientToJSONTyped,
|
|
22076
22438
|
BlobApiResponse,
|
|
22077
22439
|
BulkRetryWebhookDeliveriesRequestFromJSON,
|
|
22078
22440
|
BulkRetryWebhookDeliveriesRequestFromJSONTyped,
|
|
@@ -22141,6 +22503,28 @@ var SDK_VERSION = "0.1.0";
|
|
|
22141
22503
|
ConsentWithdrawResponseFromJSONTyped,
|
|
22142
22504
|
ConsentWithdrawResponseToJSON,
|
|
22143
22505
|
ConsentWithdrawResponseToJSONTyped,
|
|
22506
|
+
ConvertAnonymousUserRequestFromJSON,
|
|
22507
|
+
ConvertAnonymousUserRequestFromJSONTyped,
|
|
22508
|
+
ConvertAnonymousUserRequestOneOf1AppleUserFromJSON,
|
|
22509
|
+
ConvertAnonymousUserRequestOneOf1AppleUserFromJSONTyped,
|
|
22510
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSON,
|
|
22511
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameFromJSONTyped,
|
|
22512
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameToJSON,
|
|
22513
|
+
ConvertAnonymousUserRequestOneOf1AppleUserNameToJSONTyped,
|
|
22514
|
+
ConvertAnonymousUserRequestOneOf1AppleUserToJSON,
|
|
22515
|
+
ConvertAnonymousUserRequestOneOf1AppleUserToJSONTyped,
|
|
22516
|
+
ConvertAnonymousUserRequestOneOf1FromJSON,
|
|
22517
|
+
ConvertAnonymousUserRequestOneOf1FromJSONTyped,
|
|
22518
|
+
ConvertAnonymousUserRequestOneOf1MethodEnum,
|
|
22519
|
+
ConvertAnonymousUserRequestOneOf1ToJSON,
|
|
22520
|
+
ConvertAnonymousUserRequestOneOf1ToJSONTyped,
|
|
22521
|
+
ConvertAnonymousUserRequestOneOfFromJSON,
|
|
22522
|
+
ConvertAnonymousUserRequestOneOfFromJSONTyped,
|
|
22523
|
+
ConvertAnonymousUserRequestOneOfMethodEnum,
|
|
22524
|
+
ConvertAnonymousUserRequestOneOfToJSON,
|
|
22525
|
+
ConvertAnonymousUserRequestOneOfToJSONTyped,
|
|
22526
|
+
ConvertAnonymousUserRequestToJSON,
|
|
22527
|
+
ConvertAnonymousUserRequestToJSONTyped,
|
|
22144
22528
|
CreateCategoryRequestFromJSON,
|
|
22145
22529
|
CreateCategoryRequestFromJSONTyped,
|
|
22146
22530
|
CreateCategoryRequestToJSON,
|
|
@@ -22929,6 +23313,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
22929
23313
|
SetPreferencesRequestPreferencesInnerToJSONTyped,
|
|
22930
23314
|
SetPreferencesRequestToJSON,
|
|
22931
23315
|
SetPreferencesRequestToJSONTyped,
|
|
23316
|
+
SignInAnonymouslyRequestFromJSON,
|
|
23317
|
+
SignInAnonymouslyRequestFromJSONTyped,
|
|
23318
|
+
SignInAnonymouslyRequestToJSON,
|
|
23319
|
+
SignInAnonymouslyRequestToJSONTyped,
|
|
22932
23320
|
SlackApi,
|
|
22933
23321
|
SlackMessageFromJSON,
|
|
22934
23322
|
SlackMessageFromJSONTyped,
|
|
@@ -23558,6 +23946,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
23558
23946
|
instanceOfAuthUserResponse,
|
|
23559
23947
|
instanceOfAuthUserResponseData,
|
|
23560
23948
|
instanceOfBatchPublishWaaSEvents201Response,
|
|
23949
|
+
instanceOfBatchRecipient,
|
|
23561
23950
|
instanceOfBulkRetryWebhookDeliveriesRequest,
|
|
23562
23951
|
instanceOfBulkUpsertAuthEmailTemplatesRequest,
|
|
23563
23952
|
instanceOfBulkUpsertAuthEmailTemplatesResponse,
|
|
@@ -23574,6 +23963,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
23574
23963
|
instanceOfConsentStatus,
|
|
23575
23964
|
instanceOfConsentStatusResponse,
|
|
23576
23965
|
instanceOfConsentWithdrawResponse,
|
|
23966
|
+
instanceOfConvertAnonymousUserRequestOneOf,
|
|
23967
|
+
instanceOfConvertAnonymousUserRequestOneOf1,
|
|
23968
|
+
instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
|
|
23969
|
+
instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
|
|
23577
23970
|
instanceOfCreateCategoryRequest,
|
|
23578
23971
|
instanceOfCreateSubscriberRequest,
|
|
23579
23972
|
instanceOfCreateTemplateRequest,
|
|
@@ -23761,6 +24154,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
23761
24154
|
instanceOfSessionListResponseDataSessionInfo,
|
|
23762
24155
|
instanceOfSetPreferencesRequest,
|
|
23763
24156
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
24157
|
+
instanceOfSignInAnonymouslyRequest,
|
|
23764
24158
|
instanceOfSlackMessage,
|
|
23765
24159
|
instanceOfSlackMessageListResponse,
|
|
23766
24160
|
instanceOfSlackMessageListResponseMeta,
|