pingram 1.0.39-alpha.1692 → 1.0.40-alpha.1693

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.
@@ -202,7 +202,7 @@ export interface BroadcastsApiInterface {
202
202
  resume(broadcastId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
203
203
  /**
204
204
  *
205
- * @summary Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
205
+ * @summary Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
206
206
  * @param {string} broadcastId Broadcast ID
207
207
  * @param {ScheduleBroadcastRequest} scheduleBroadcastRequest
208
208
  * @param {*} [options] Override http request option.
@@ -211,12 +211,12 @@ export interface BroadcastsApiInterface {
211
211
  */
212
212
  scheduleRaw(requestParameters: ScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BroadcastResponse>>;
213
213
  /**
214
- * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
214
+ * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
215
215
  */
216
216
  schedule(broadcastId: string, scheduleBroadcastRequest: ScheduleBroadcastRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
217
217
  /**
218
218
  *
219
- * @summary Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
219
+ * @summary Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
220
220
  * @param {string} broadcastId Broadcast ID
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
@@ -224,7 +224,7 @@ export interface BroadcastsApiInterface {
224
224
  */
225
225
  sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BroadcastResponse>>;
226
226
  /**
227
- * Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
227
+ * Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
228
228
  */
229
229
  send(broadcastId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
230
230
  /**
@@ -340,19 +340,19 @@ export declare class BroadcastsApi extends runtime.BaseAPI implements Broadcasts
340
340
  */
341
341
  resume(broadcastId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
342
342
  /**
343
- * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
343
+ * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
344
344
  */
345
345
  scheduleRaw(requestParameters: ScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BroadcastResponse>>;
346
346
  /**
347
- * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
347
+ * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
348
348
  */
349
349
  schedule(broadcastId: string, scheduleBroadcastRequest: ScheduleBroadcastRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
350
350
  /**
351
- * Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
351
+ * Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
352
352
  */
353
353
  sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BroadcastResponse>>;
354
354
  /**
355
- * Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
355
+ * Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
356
356
  */
357
357
  send(broadcastId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BroadcastResponse>;
358
358
  /**
@@ -611,7 +611,7 @@ class BroadcastsApi extends runtime.BaseAPI {
611
611
  return await response.value();
612
612
  }
613
613
  /**
614
- * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
614
+ * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
615
615
  */
616
616
  async scheduleRaw(requestParameters, initOverrides) {
617
617
  if (requestParameters['broadcastId'] == null) {
@@ -663,7 +663,7 @@ class BroadcastsApi extends runtime.BaseAPI {
663
663
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BroadcastResponseFromJSON)(jsonValue));
664
664
  }
665
665
  /**
666
- * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Cancels any existing schedule when the broadcast is returned to draft via cancel.
666
+ * Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.
667
667
  */
668
668
  async schedule(broadcastId, scheduleBroadcastRequest, initOverrides) {
669
669
  const response = await this.scheduleRaw({
@@ -673,7 +673,7 @@ class BroadcastsApi extends runtime.BaseAPI {
673
673
  return await response.value();
674
674
  }
675
675
  /**
676
- * Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
676
+ * Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
677
677
  */
678
678
  async sendRaw(requestParameters, initOverrides) {
679
679
  if (requestParameters['broadcastId'] == null) {
@@ -720,7 +720,7 @@ class BroadcastsApi extends runtime.BaseAPI {
720
720
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BroadcastResponseFromJSON)(jsonValue));
721
721
  }
722
722
  /**
723
- * Send a draft email broadcast immediately. Requires a non-empty subject. fromAddress must be the platform default sender or a domain verified for this account (Settings → Domain Verification). The platform default sender is for testing only (at most 10 recipients, heavily throttled). Transitions status to sending and starts delivery.
723
+ * Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.
724
724
  */
725
725
  async send(broadcastId, initOverrides) {
726
726
  const response = await this.sendRaw({ broadcastId: broadcastId }, initOverrides);
@@ -39,7 +39,7 @@ export interface EmailApiInterface {
39
39
  deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
40
40
  /**
41
41
  *
42
- * @summary Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
42
+ * @summary Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
43
43
  * @param {SendEmailRequest} sendEmailRequest
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
@@ -47,7 +47,7 @@ export interface EmailApiInterface {
47
47
  */
48
48
  sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmailApiResponse>>;
49
49
  /**
50
- * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
50
+ * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
51
51
  */
52
52
  send(sendEmailRequest: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmailApiResponse>;
53
53
  }
@@ -64,11 +64,11 @@ export declare class EmailApi extends runtime.BaseAPI implements EmailApiInterfa
64
64
  */
65
65
  deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
66
66
  /**
67
- * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
67
+ * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
68
68
  */
69
69
  sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmailApiResponse>>;
70
70
  /**
71
- * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
71
+ * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
72
72
  */
73
73
  send(sendEmailRequest: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmailApiResponse>;
74
74
  }
@@ -108,7 +108,7 @@ class EmailApi extends runtime.BaseAPI {
108
108
  return await response.value();
109
109
  }
110
110
  /**
111
- * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
111
+ * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
112
112
  */
113
113
  async sendRaw(requestParameters, initOverrides) {
114
114
  if (requestParameters['sendEmailRequest'] == null) {
@@ -156,7 +156,7 @@ class EmailApi extends runtime.BaseAPI {
156
156
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SendEmailApiResponseFromJSON)(jsonValue));
157
157
  }
158
158
  /**
159
- * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
159
+ * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
160
160
  */
161
161
  async send(sendEmailRequest, initOverrides) {
162
162
  const response = await this.sendRaw({ sendEmailRequest: sendEmailRequest }, initOverrides);
@@ -65,7 +65,7 @@ export interface BroadcastResponse {
65
65
  */
66
66
  fromName: string;
67
67
  /**
68
- *
68
+ * From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience.
69
69
  * @type {string}
70
70
  * @memberof BroadcastResponse
71
71
  */
@@ -47,7 +47,7 @@ export interface CreateBroadcastRequest {
47
47
  */
48
48
  fromName: string;
49
49
  /**
50
- *
50
+ * From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience.
51
51
  * @type {string}
52
52
  * @memberof CreateBroadcastRequest
53
53
  */
@@ -65,7 +65,7 @@ export interface ListBroadcastsResponseBroadcastsInner {
65
65
  */
66
66
  fromName: string;
67
67
  /**
68
- *
68
+ * From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience.
69
69
  * @type {string}
70
70
  * @memberof ListBroadcastsResponseBroadcastsInner
71
71
  */
@@ -1136,6 +1136,7 @@ export declare const LogsGetResponseLogsInnerEmailFailedCodeEnum: {
1136
1136
  readonly COMPLAINT_VIRUS: "COMPLAINT_VIRUS";
1137
1137
  readonly SUPPRESSED_COMPLAINT: "SUPPRESSED_COMPLAINT";
1138
1138
  readonly SUPPRESSED_BOUNCE: "SUPPRESSED_BOUNCE";
1139
+ readonly DOMAIN_VERIFICATION_REQUIRED: "DOMAIN_VERIFICATION_REQUIRED";
1139
1140
  readonly MISSING_EMAIL_RECIPIENT: "MISSING_EMAIL_RECIPIENT";
1140
1141
  readonly MISSING_EMAIL_SUBJECT: "MISSING_EMAIL_SUBJECT";
1141
1142
  readonly MISSING_EMAIL_HTML: "MISSING_EMAIL_HTML";
@@ -68,6 +68,7 @@ exports.LogsGetResponseLogsInnerEmailFailedCodeEnum = {
68
68
  COMPLAINT_VIRUS: 'COMPLAINT_VIRUS',
69
69
  SUPPRESSED_COMPLAINT: 'SUPPRESSED_COMPLAINT',
70
70
  SUPPRESSED_BOUNCE: 'SUPPRESSED_BOUNCE',
71
+ DOMAIN_VERIFICATION_REQUIRED: 'DOMAIN_VERIFICATION_REQUIRED',
71
72
  MISSING_EMAIL_RECIPIENT: 'MISSING_EMAIL_RECIPIENT',
72
73
  MISSING_EMAIL_SUBJECT: 'MISSING_EMAIL_SUBJECT',
73
74
  MISSING_EMAIL_HTML: 'MISSING_EMAIL_HTML',
@@ -47,7 +47,7 @@ export interface UpdateBroadcastRequest {
47
47
  */
48
48
  fromName?: string;
49
49
  /**
50
- *
50
+ * From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience.
51
51
  * @type {string}
52
52
  * @memberof UpdateBroadcastRequest
53
53
  */
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.39';
11
+ const SDK_VERSION = '1.0.40';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.39-alpha.1692",
3
+ "version": "1.0.40-alpha.1693",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",