You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/management/__generated/managers/emails-manager.ts
+82-8Lines changed: 82 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,46 @@ export class EmailsManager extends BaseAPI {
48
48
}
49
49
50
50
/**
51
-
* Update an <a href="https://auth0.com/docs/email/providers">email provider</a>.
52
-
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
53
-
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
54
-
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
51
+
* Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object
52
+
* requires different properties depending on the email provider (which is specified using the <code>name</code> property):
* <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use
58
+
* the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in
59
+
* North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.
60
+
* </li>
61
+
* <li>
62
+
* <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to
63
+
* <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or
64
+
* <code>null</code> are the only valid values for <code>region</code>.
65
+
* </li>
66
+
* <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li>
67
+
* <li>
68
+
* <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and
69
+
* <code>smtp_pass</code>
70
+
* </li>
71
+
* </ul>
72
+
* Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration
73
+
* options, which will be used when sending an email:
74
+
* <ul>
75
+
* <li>
76
+
* <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object.
77
+
* <ul>
78
+
* <li>
79
+
* When using AWS SES SMTP host, you may provide a name of configuration set in
80
+
* <code>X-SES-Configuration-Set</code> header. Value must be a string.
81
+
* </li>
82
+
* <li>
83
+
* When using Sparkpost host, you may provide value for
84
+
* <code>X-MSYS_API</code> header. Value must be an object.
85
+
* </li>
86
+
* </ul>
87
+
* for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide
88
+
* a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.
89
+
* </li>
90
+
* </ul>
55
91
*
56
92
* Update the email provider
57
93
*
@@ -79,10 +115,48 @@ export class EmailsManager extends BaseAPI {
79
115
}
80
116
81
117
/**
82
-
* Create an <a href="https://auth0.com/docs/email/providers">email provider</a>.
83
-
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
84
-
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
85
-
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
118
+
* Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object
119
+
* requires different properties depending on the email provider (which is specified using the <code>name</code> property):
0 commit comments