pingram 1.0.37 → 1.0.38-alpha.1629

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.
Files changed (26) hide show
  1. package/dist/generated/src/apis/LibraryApi.d.ts +4 -4
  2. package/dist/generated/src/apis/LibraryApi.js +2 -2
  3. package/dist/generated/src/apis/LogsApi.d.ts +25 -1
  4. package/dist/generated/src/apis/LogsApi.js +54 -0
  5. package/dist/generated/src/apis/ProfileApi.d.ts +1 -25
  6. package/dist/generated/src/apis/ProfileApi.js +0 -55
  7. package/dist/generated/src/apis/WebhooksApi.d.ts +8 -8
  8. package/dist/generated/src/apis/WebhooksApi.js +4 -4
  9. package/dist/generated/src/apis/index.d.ts +2 -2
  10. package/dist/generated/src/models/ConfirmChangeEmailRequest.d.ts +32 -0
  11. package/dist/generated/src/models/ConfirmChangeEmailRequest.js +50 -0
  12. package/dist/generated/src/models/CreateLibraryRequest.d.ts +1 -1
  13. package/dist/generated/src/models/GetLogsResponseMessagesInner.d.ts +4 -4
  14. package/dist/generated/src/models/GetLogsResponseMessagesInnerAttachmentsInner.d.ts +18 -4
  15. package/dist/generated/src/models/GetLogsResponseMessagesInnerAttachmentsInner.js +16 -2
  16. package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +43 -19
  17. package/dist/generated/src/models/LogsGetResponseLogsInner.js +16 -0
  18. package/dist/generated/src/models/StartChangeEmailRequest.d.ts +44 -0
  19. package/dist/generated/src/models/StartChangeEmailRequest.js +56 -0
  20. package/dist/generated/src/models/WebhookEndpointUpsertRequest.d.ts +1 -1
  21. package/dist/generated/src/models/index.d.ts +2 -1
  22. package/dist/generated/src/models/index.js +2 -1
  23. package/dist/src/client.js +1 -1
  24. package/package.json +1 -1
  25. package/dist/generated/src/models/ChangeEmailRequest.d.ts +0 -32
  26. package/dist/generated/src/models/ChangeEmailRequest.js +0 -50
@@ -29,7 +29,7 @@ export interface ListRequest {
29
29
  export interface LibraryApiInterface {
30
30
  /**
31
31
  *
32
- * @summary Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
32
+ * @summary Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
33
33
  * @param {string} useCase Library use-case
34
34
  * @param {CreateLibraryRequest} createLibraryRequest
35
35
  * @param {*} [options] Override http request option.
@@ -38,7 +38,7 @@ export interface LibraryApiInterface {
38
38
  */
39
39
  createRaw(requestParameters: CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateLibraryResponse>>;
40
40
  /**
41
- * Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
41
+ * Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
42
42
  */
43
43
  create(useCase: string, createLibraryRequest: CreateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateLibraryResponse>;
44
44
  /**
@@ -62,11 +62,11 @@ export interface LibraryApiInterface {
62
62
  */
63
63
  export declare class LibraryApi extends runtime.BaseAPI implements LibraryApiInterface {
64
64
  /**
65
- * Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
65
+ * Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
66
66
  */
67
67
  createRaw(requestParameters: CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateLibraryResponse>>;
68
68
  /**
69
- * Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
69
+ * Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
70
70
  */
71
71
  create(useCase: string, createLibraryRequest: CreateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateLibraryResponse>;
72
72
  /**
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class LibraryApi extends runtime.BaseAPI {
56
56
  /**
57
- * Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
57
+ * Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
58
58
  */
59
59
  async createRaw(requestParameters, initOverrides) {
60
60
  if (requestParameters['useCase'] == null) {
@@ -106,7 +106,7 @@ class LibraryApi extends runtime.BaseAPI {
106
106
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateLibraryResponseFromJSON)(jsonValue));
107
107
  }
108
108
  /**
109
- * Create an upload slot in the account library. PUT the file to the returned uploadUrl with the same Content-Type, then use the returned url in emails and the editor.
109
+ * Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
110
110
  */
111
111
  async create(useCase, createLibraryRequest, initOverrides) {
112
112
  const response = await this.createRaw({ useCase: useCase, createLibraryRequest: createLibraryRequest }, initOverrides);
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetLogsResponse, LogQueryPostBody, LogsGetResponse, LogsQueryResponse, LogsQueryResultResponse, LogsRetentionResponse, LogsTailResponse } from '../models/index';
13
+ import type { GetLogsResponse, LogQueryPostBody, LogsGetResponse, LogsQueryResponse, LogsQueryResultResponse, LogsRetentionResponse, LogsTailResponse, MessageResponse } from '../models/index';
14
14
  export interface GetLogsRequest {
15
15
  limit?: number;
16
16
  cursor?: string;
@@ -21,6 +21,9 @@ export interface GetLogsByTrackingIdsRequest {
21
21
  export interface GetLogsQueryResultRequest {
22
22
  queryId: string;
23
23
  }
24
+ export interface RetryInboundRequest {
25
+ trackingId: string;
26
+ }
24
27
  export interface StartLogsQueryRequest {
25
28
  logQueryPostBody: LogQueryPostBody;
26
29
  }
@@ -83,6 +86,19 @@ export interface LogsApiInterface {
83
86
  * Get results from a log query started with Start Log Query. Poll until status is Complete.
84
87
  */
85
88
  getLogsQueryResult(queryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsQueryResultResponse>;
89
+ /**
90
+ *
91
+ * @summary Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
92
+ * @param {string} trackingId Tracking ID of the inbound email
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ * @memberof LogsApiInterface
96
+ */
97
+ retryInboundRaw(requestParameters: RetryInboundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageResponse>>;
98
+ /**
99
+ * Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
100
+ */
101
+ retryInbound(trackingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
86
102
  /**
87
103
  *
88
104
  * @summary Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
@@ -145,6 +161,14 @@ export declare class LogsApi extends runtime.BaseAPI implements LogsApiInterface
145
161
  * Get results from a log query started with Start Log Query. Poll until status is Complete.
146
162
  */
147
163
  getLogsQueryResult(queryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsQueryResultResponse>;
164
+ /**
165
+ * Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
166
+ */
167
+ retryInboundRaw(requestParameters: RetryInboundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageResponse>>;
168
+ /**
169
+ * Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
170
+ */
171
+ retryInbound(trackingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
148
172
  /**
149
173
  * Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
150
174
  */
@@ -267,6 +267,60 @@ class LogsApi extends runtime.BaseAPI {
267
267
  const response = await this.getLogsQueryResultRaw({ queryId: queryId }, initOverrides);
268
268
  return await response.value();
269
269
  }
270
+ /**
271
+ * Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
272
+ */
273
+ async retryInboundRaw(requestParameters, initOverrides) {
274
+ if (requestParameters['trackingId'] == null) {
275
+ throw new runtime.RequiredError('trackingId', 'Required parameter "trackingId" was null or undefined when calling retryInbound().');
276
+ }
277
+ const queryParameters = {};
278
+ const headerParameters = {};
279
+ if (this.configuration &&
280
+ (this.configuration.username !== undefined ||
281
+ this.configuration.password !== undefined)) {
282
+ headerParameters['Authorization'] =
283
+ 'Basic ' +
284
+ btoa(this.configuration.username + ':' + this.configuration.password);
285
+ }
286
+ if (this.configuration &&
287
+ (this.configuration.username !== undefined ||
288
+ this.configuration.password !== undefined)) {
289
+ headerParameters['Authorization'] =
290
+ 'Basic ' +
291
+ btoa(this.configuration.username + ':' + this.configuration.password);
292
+ }
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = await token('apiKey', []);
296
+ if (tokenString) {
297
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
298
+ }
299
+ }
300
+ if (this.configuration &&
301
+ (this.configuration.username !== undefined ||
302
+ this.configuration.password !== undefined)) {
303
+ headerParameters['Authorization'] =
304
+ 'Basic ' +
305
+ btoa(this.configuration.username + ':' + this.configuration.password);
306
+ }
307
+ let urlPath = `/logs/retry/{trackingId}`;
308
+ urlPath = urlPath.replace(`{${'trackingId'}}`, encodeURIComponent(String(requestParameters['trackingId'])));
309
+ const response = await this.request({
310
+ path: urlPath,
311
+ method: 'POST',
312
+ headers: headerParameters,
313
+ query: queryParameters
314
+ }, initOverrides);
315
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageResponseFromJSON)(jsonValue));
316
+ }
317
+ /**
318
+ * Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
319
+ */
320
+ async retryInbound(trackingId, initOverrides) {
321
+ const response = await this.retryInboundRaw({ trackingId: trackingId }, initOverrides);
322
+ return await response.value();
323
+ }
270
324
  /**
271
325
  * Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
272
326
  */
@@ -10,13 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptInviteRequest, AcceptInviteResponse, ChangeEmailRequest, DeleteAccountRequest, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerifyRequest, SuccessResponse } from '../models/index';
13
+ import type { AcceptInviteRequest, AcceptInviteResponse, DeleteAccountRequest, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerifyRequest, SuccessResponse } from '../models/index';
14
14
  export interface AcceptInviteOperationRequest {
15
15
  acceptInviteRequest: AcceptInviteRequest;
16
16
  }
17
- export interface ChangeEmailOperationRequest {
18
- changeEmailRequest: ChangeEmailRequest;
19
- }
20
17
  export interface DeleteAccountOperationRequest {
21
18
  deleteAccountRequest: DeleteAccountRequest;
22
19
  }
@@ -49,19 +46,6 @@ export interface ProfileApiInterface {
49
46
  * Accept a team invitation using a token
50
47
  */
51
48
  acceptInvite(acceptInviteRequest: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInviteResponse>;
52
- /**
53
- *
54
- * @summary Change the email address of the authenticated user
55
- * @param {ChangeEmailRequest} changeEmailRequest
56
- * @param {*} [options] Override http request option.
57
- * @throws {RequiredError}
58
- * @memberof ProfileApiInterface
59
- */
60
- changeEmailRaw(requestParameters: ChangeEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
61
- /**
62
- * Change the email address of the authenticated user
63
- */
64
- changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
65
49
  /**
66
50
  *
67
51
  * @summary Permanently delete the authenticated user\'s account
@@ -139,14 +123,6 @@ export declare class ProfileApi extends runtime.BaseAPI implements ProfileApiInt
139
123
  * Accept a team invitation using a token
140
124
  */
141
125
  acceptInvite(acceptInviteRequest: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInviteResponse>;
142
- /**
143
- * Change the email address of the authenticated user
144
- */
145
- changeEmailRaw(requestParameters: ChangeEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
146
- /**
147
- * Change the email address of the authenticated user
148
- */
149
- changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
150
126
  /**
151
127
  * Permanently delete the authenticated user\'s account
152
128
  */
@@ -80,61 +80,6 @@ class ProfileApi extends runtime.BaseAPI {
80
80
  const response = await this.acceptInviteRaw({ acceptInviteRequest: acceptInviteRequest }, initOverrides);
81
81
  return await response.value();
82
82
  }
83
- /**
84
- * Change the email address of the authenticated user
85
- */
86
- async changeEmailRaw(requestParameters, initOverrides) {
87
- if (requestParameters['changeEmailRequest'] == null) {
88
- throw new runtime.RequiredError('changeEmailRequest', 'Required parameter "changeEmailRequest" was null or undefined when calling changeEmail().');
89
- }
90
- const queryParameters = {};
91
- const headerParameters = {};
92
- headerParameters['Content-Type'] = 'application/json';
93
- if (this.configuration &&
94
- (this.configuration.username !== undefined ||
95
- this.configuration.password !== undefined)) {
96
- headerParameters['Authorization'] =
97
- 'Basic ' +
98
- btoa(this.configuration.username + ':' + this.configuration.password);
99
- }
100
- if (this.configuration &&
101
- (this.configuration.username !== undefined ||
102
- this.configuration.password !== undefined)) {
103
- headerParameters['Authorization'] =
104
- 'Basic ' +
105
- btoa(this.configuration.username + ':' + this.configuration.password);
106
- }
107
- if (this.configuration && this.configuration.accessToken) {
108
- const token = this.configuration.accessToken;
109
- const tokenString = await token('apiKey', []);
110
- if (tokenString) {
111
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
112
- }
113
- }
114
- if (this.configuration &&
115
- (this.configuration.username !== undefined ||
116
- this.configuration.password !== undefined)) {
117
- headerParameters['Authorization'] =
118
- 'Basic ' +
119
- btoa(this.configuration.username + ':' + this.configuration.password);
120
- }
121
- let urlPath = `/profile/change-email`;
122
- const response = await this.request({
123
- path: urlPath,
124
- method: 'POST',
125
- headers: headerParameters,
126
- query: queryParameters,
127
- body: (0, index_1.ChangeEmailRequestToJSON)(requestParameters['changeEmailRequest'])
128
- }, initOverrides);
129
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
130
- }
131
- /**
132
- * Change the email address of the authenticated user
133
- */
134
- async changeEmail(changeEmailRequest, initOverrides) {
135
- const response = await this.changeEmailRaw({ changeEmailRequest: changeEmailRequest }, initOverrides);
136
- return await response.value();
137
- }
138
83
  /**
139
84
  * Permanently delete the authenticated user\'s account
140
85
  */
@@ -30,7 +30,7 @@ export interface UpdateWebhookRequest {
30
30
  export interface WebhooksApiInterface {
31
31
  /**
32
32
  *
33
- * @summary Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
33
+ * @summary Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
34
34
  * @param {WebhookEndpointUpsertRequest} webhookEndpointUpsertRequest
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
@@ -38,7 +38,7 @@ export interface WebhooksApiInterface {
38
38
  */
39
39
  createWebhookRaw(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
40
40
  /**
41
- * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
41
+ * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
42
42
  */
43
43
  createWebhook(webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
44
44
  /**
@@ -68,7 +68,7 @@ export interface WebhooksApiInterface {
68
68
  listWebhooks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointsResponse>;
69
69
  /**
70
70
  *
71
- * @summary Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
71
+ * @summary Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
72
72
  * @param {string} endpointId Id of the webhook endpoint, from list or create.
73
73
  * @param {WebhookEndpointUpsertRequest} webhookEndpointUpsertRequest
74
74
  * @param {*} [options] Override http request option.
@@ -77,7 +77,7 @@ export interface WebhooksApiInterface {
77
77
  */
78
78
  updateWebhookRaw(requestParameters: UpdateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
79
79
  /**
80
- * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
80
+ * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
81
81
  */
82
82
  updateWebhook(endpointId: string, webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
83
83
  }
@@ -86,11 +86,11 @@ export interface WebhooksApiInterface {
86
86
  */
87
87
  export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
88
88
  /**
89
- * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
89
+ * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
90
90
  */
91
91
  createWebhookRaw(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
92
92
  /**
93
- * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
93
+ * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
94
94
  */
95
95
  createWebhook(webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
96
96
  /**
@@ -110,11 +110,11 @@ export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiI
110
110
  */
111
111
  listWebhooks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointsResponse>;
112
112
  /**
113
- * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
113
+ * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
114
114
  */
115
115
  updateWebhookRaw(requestParameters: UpdateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
116
116
  /**
117
- * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
117
+ * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
118
118
  */
119
119
  updateWebhook(endpointId: string, webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
120
120
  }
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class WebhooksApi extends runtime.BaseAPI {
56
56
  /**
57
- * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
57
+ * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
58
58
  */
59
59
  async createWebhookRaw(requestParameters, initOverrides) {
60
60
  if (requestParameters['webhookEndpointUpsertRequest'] == null) {
@@ -102,7 +102,7 @@ class WebhooksApi extends runtime.BaseAPI {
102
102
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointFromJSON)(jsonValue));
103
103
  }
104
104
  /**
105
- * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be http or https and should return 2xx.
105
+ * Create a webhook endpoint. Pingram POSTs signed JSON to the URL when one of the subscribed events happens. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
106
106
  */
107
107
  async createWebhook(webhookEndpointUpsertRequest, initOverrides) {
108
108
  const response = await this.createWebhookRaw({ webhookEndpointUpsertRequest: webhookEndpointUpsertRequest }, initOverrides);
@@ -212,7 +212,7 @@ class WebhooksApi extends runtime.BaseAPI {
212
212
  return await response.value();
213
213
  }
214
214
  /**
215
- * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
215
+ * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
216
216
  */
217
217
  async updateWebhookRaw(requestParameters, initOverrides) {
218
218
  if (requestParameters['endpointId'] == null) {
@@ -264,7 +264,7 @@ class WebhooksApi extends runtime.BaseAPI {
264
264
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointFromJSON)(jsonValue));
265
265
  }
266
266
  /**
267
- * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be http or https.
267
+ * Replace one webhook endpoint\'s URL and its full event subscription. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it. The URL must be a public HTTPS URL.
268
268
  */
269
269
  async updateWebhook(endpointId, webhookEndpointUpsertRequest, initOverrides) {
270
270
  const response = await this.updateWebhookRaw({
@@ -30,13 +30,13 @@ export type { CreateAPIKeyRequest, RevokeAPIKeyRequest, KeysApiInterface } from
30
30
  export { KeysApi } from './KeysApi';
31
31
  export type { CreateRequest as LibraryApi_CreateRequest, ListRequest as LibraryApi_ListRequest, LibraryApiInterface } from './LibraryApi';
32
32
  export { LibraryApi } from './LibraryApi';
33
- export type { GetLogsRequest, GetLogsByTrackingIdsRequest, GetLogsQueryResultRequest, StartLogsQueryRequest, LogsApiInterface } from './LogsApi';
33
+ export type { GetLogsRequest, GetLogsByTrackingIdsRequest, GetLogsQueryResultRequest, RetryInboundRequest, StartLogsQueryRequest, LogsApiInterface } from './LogsApi';
34
34
  export { LogsApi } from './LogsApi';
35
35
  export type { GetAutoJoinRequest, InviteMemberRequest, ListMembersRequest, RemoveMemberRequest, SetAutoJoinRequest, UpdateRequest as MembersApi_UpdateRequest, MembersApiInterface } from './MembersApi';
36
36
  export { MembersApi } from './MembersApi';
37
37
  export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest, NumbersApiInterface } from './NumbersApi';
38
38
  export { NumbersApi } from './NumbersApi';
39
- export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
39
+ export type { AcceptInviteOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
40
40
  export { ProfileApi } from './ProfileApi';
41
41
  export type { CreateUs10dlcBrandRequest, UpdateUs10dlcBrandRequest, UpdateUs10dlcCampaignRequest, RegistrationsApiInterface } from './RegistrationsApi';
42
42
  export { RegistrationsApi } from './RegistrationsApi';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Pingram
3
+ * Internal API for notification delivery and management
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConfirmChangeEmailRequest
16
+ */
17
+ export interface ConfirmChangeEmailRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConfirmChangeEmailRequest
22
+ */
23
+ code: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ConfirmChangeEmailRequest interface.
27
+ */
28
+ export declare function instanceOfConfirmChangeEmailRequest(value: object): value is ConfirmChangeEmailRequest;
29
+ export declare function ConfirmChangeEmailRequestFromJSON(json: any): ConfirmChangeEmailRequest;
30
+ export declare function ConfirmChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmChangeEmailRequest;
31
+ export declare function ConfirmChangeEmailRequestToJSON(json: any): ConfirmChangeEmailRequest;
32
+ export declare function ConfirmChangeEmailRequestToJSONTyped(value?: ConfirmChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pingram
6
+ * Internal API for notification delivery and management
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfConfirmChangeEmailRequest = instanceOfConfirmChangeEmailRequest;
17
+ exports.ConfirmChangeEmailRequestFromJSON = ConfirmChangeEmailRequestFromJSON;
18
+ exports.ConfirmChangeEmailRequestFromJSONTyped = ConfirmChangeEmailRequestFromJSONTyped;
19
+ exports.ConfirmChangeEmailRequestToJSON = ConfirmChangeEmailRequestToJSON;
20
+ exports.ConfirmChangeEmailRequestToJSONTyped = ConfirmChangeEmailRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ConfirmChangeEmailRequest interface.
23
+ */
24
+ function instanceOfConfirmChangeEmailRequest(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ConfirmChangeEmailRequestFromJSON(json) {
30
+ return ConfirmChangeEmailRequestFromJSONTyped(json, false);
31
+ }
32
+ function ConfirmChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ code: json['code']
38
+ };
39
+ }
40
+ function ConfirmChangeEmailRequestToJSON(json) {
41
+ return ConfirmChangeEmailRequestToJSONTyped(json, false);
42
+ }
43
+ function ConfirmChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ code: value['code']
49
+ };
50
+ }
@@ -22,7 +22,7 @@ export interface CreateLibraryRequest {
22
22
  */
23
23
  filename: string;
24
24
  /**
25
- * MIME type of the file that will be uploaded to the returned URL.
25
+ * Image MIME type. One of image/png, image/jpeg, image/gif, or image/webp.
26
26
  * @type {string}
27
27
  * @memberof CreateLibraryRequest
28
28
  */
@@ -42,7 +42,7 @@ export interface GetLogsResponseMessagesInner {
42
42
  */
43
43
  epochMs: number;
44
44
  /**
45
- *
45
+ * Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc.
46
46
  * @type {string}
47
47
  * @memberof GetLogsResponseMessagesInner
48
48
  */
@@ -66,19 +66,19 @@ export interface GetLogsResponseMessagesInner {
66
66
  */
67
67
  subject?: string;
68
68
  /**
69
- *
69
+ * Original To header addresses. Not the address that received the mail.
70
70
  * @type {Array<string>}
71
71
  * @memberof GetLogsResponseMessagesInner
72
72
  */
73
73
  to?: Array<string>;
74
74
  /**
75
- *
75
+ * Original Cc header addresses.
76
76
  * @type {Array<string>}
77
77
  * @memberof GetLogsResponseMessagesInner
78
78
  */
79
79
  cc?: Array<string>;
80
80
  /**
81
- *
81
+ * Bcc header addresses still on the delivered message. Usually omitted, because the Bcc header is removed before delivery.
82
82
  * @type {Array<string>}
83
83
  * @memberof GetLogsResponseMessagesInner
84
84
  */
@@ -16,29 +16,43 @@
16
16
  */
17
17
  export interface GetLogsResponseMessagesInnerAttachmentsInner {
18
18
  /**
19
- *
19
+ * Original filename from the message.
20
20
  * @type {string}
21
21
  * @memberof GetLogsResponseMessagesInnerAttachmentsInner
22
22
  */
23
23
  filename: string;
24
24
  /**
25
- *
25
+ * MIME type of the file.
26
26
  * @type {string}
27
27
  * @memberof GetLogsResponseMessagesInnerAttachmentsInner
28
28
  */
29
29
  contentType: string;
30
30
  /**
31
- *
31
+ * Size in bytes. This response does not include the file bytes.
32
32
  * @type {number}
33
33
  * @memberof GetLogsResponseMessagesInnerAttachmentsInner
34
34
  */
35
35
  size: number;
36
36
  /**
37
- *
37
+ * Content-ID with angle brackets removed, so it matches `cid:` references in `bodyHtml`. Omitted when the part has no Content-ID.
38
38
  * @type {string}
39
39
  * @memberof GetLogsResponseMessagesInnerAttachmentsInner
40
40
  */
41
41
  contentId?: string;
42
+ /**
43
+ * `inline` when the HTML body references this file; `attachment` when it is a separate file. Omitted when the message does not say which.
44
+ * @type {string}
45
+ * @memberof GetLogsResponseMessagesInnerAttachmentsInner
46
+ */
47
+ contentDisposition?: GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum;
48
+ }
49
+ /**
50
+ * @export
51
+ * @enum {string}
52
+ */
53
+ export declare enum GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum {
54
+ INLINE = "inline",
55
+ ATTACHMENT = "attachment"
42
56
  }
43
57
  /**
44
58
  * Check if a given object implements the GetLogsResponseMessagesInnerAttachmentsInner interface.
@@ -13,11 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum = void 0;
16
17
  exports.instanceOfGetLogsResponseMessagesInnerAttachmentsInner = instanceOfGetLogsResponseMessagesInnerAttachmentsInner;
17
18
  exports.GetLogsResponseMessagesInnerAttachmentsInnerFromJSON = GetLogsResponseMessagesInnerAttachmentsInnerFromJSON;
18
19
  exports.GetLogsResponseMessagesInnerAttachmentsInnerFromJSONTyped = GetLogsResponseMessagesInnerAttachmentsInnerFromJSONTyped;
19
20
  exports.GetLogsResponseMessagesInnerAttachmentsInnerToJSON = GetLogsResponseMessagesInnerAttachmentsInnerToJSON;
20
21
  exports.GetLogsResponseMessagesInnerAttachmentsInnerToJSONTyped = GetLogsResponseMessagesInnerAttachmentsInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum;
27
+ (function (GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum) {
28
+ GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum["INLINE"] = "inline";
29
+ GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum["ATTACHMENT"] = "attachment";
30
+ })(GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum || (exports.GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum = GetLogsResponseMessagesInnerAttachmentsInnerContentDispositionEnum = {}));
21
31
  /**
22
32
  * Check if a given object implements the GetLogsResponseMessagesInnerAttachmentsInner interface.
23
33
  */
@@ -41,7 +51,10 @@ function GetLogsResponseMessagesInnerAttachmentsInnerFromJSONTyped(json, ignoreD
41
51
  filename: json['filename'],
42
52
  contentType: json['contentType'],
43
53
  size: json['size'],
44
- contentId: json['contentId'] == null ? undefined : json['contentId']
54
+ contentId: json['contentId'] == null ? undefined : json['contentId'],
55
+ contentDisposition: json['contentDisposition'] == null
56
+ ? undefined
57
+ : json['contentDisposition']
45
58
  };
46
59
  }
47
60
  function GetLogsResponseMessagesInnerAttachmentsInnerToJSON(json) {
@@ -55,6 +68,7 @@ function GetLogsResponseMessagesInnerAttachmentsInnerToJSONTyped(value, ignoreDi
55
68
  filename: value['filename'],
56
69
  contentType: value['contentType'],
57
70
  size: value['size'],
58
- contentId: value['contentId']
71
+ contentId: value['contentId'],
72
+ contentDisposition: value['contentDisposition']
59
73
  };
60
74
  }
@@ -334,115 +334,139 @@ export interface LogsGetResponseLogsInner {
334
334
  */
335
335
  email_clicked_webhook_res?: string;
336
336
  /**
337
- *
337
+ * When the message was accepted, ISO 8601. Log order and the 30-day resend window use this time.
338
338
  * @type {string}
339
339
  * @memberof LogsGetResponseLogsInner
340
340
  */
341
341
  email_inbound_at?: string;
342
342
  /**
343
- *
343
+ * Sender email address.
344
344
  * @type {string}
345
345
  * @memberof LogsGetResponseLogsInner
346
346
  */
347
347
  email_inbound_from?: string;
348
348
  /**
349
- *
349
+ * Sender display name, when the From header includes one.
350
350
  * @type {string}
351
351
  * @memberof LogsGetResponseLogsInner
352
352
  */
353
353
  email_inbound_from_name?: string;
354
354
  /**
355
- *
355
+ * Comma-separated To header addresses. This is the header, not necessarily the Pingram inbox.
356
356
  * @type {string}
357
357
  * @memberof LogsGetResponseLogsInner
358
358
  */
359
359
  email_inbound_to?: string;
360
360
  /**
361
- *
361
+ * Comma-separated CC header addresses.
362
362
  * @type {string}
363
363
  * @memberof LogsGetResponseLogsInner
364
364
  */
365
365
  email_inbound_cc?: string;
366
366
  /**
367
- *
367
+ * Comma-separated BCC header addresses. Often empty because that header is stripped before delivery.
368
368
  * @type {string}
369
369
  * @memberof LogsGetResponseLogsInner
370
370
  */
371
371
  email_inbound_bcc?: string;
372
372
  /**
373
- *
373
+ * Reply-To header address.
374
374
  * @type {string}
375
375
  * @memberof LogsGetResponseLogsInner
376
376
  */
377
377
  email_inbound_reply_to?: string;
378
378
  /**
379
- *
379
+ * Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc.
380
380
  * @type {string}
381
381
  * @memberof LogsGetResponseLogsInner
382
382
  */
383
383
  email_inbound_inbox?: string;
384
384
  /**
385
- *
385
+ * Display name of `email_inbound_inbox` when the headers include one. Same value as `matched.name`. Omitted when that address has no display name.
386
+ * @type {string}
387
+ * @memberof LogsGetResponseLogsInner
388
+ */
389
+ email_inbound_to_name?: string;
390
+ /**
391
+ * Sender Date header, ISO 8601. Omitted when that header is missing or invalid.
392
+ * @type {string}
393
+ * @memberof LogsGetResponseLogsInner
394
+ */
395
+ email_inbound_sent_at?: string;
396
+ /**
397
+ * Key used to resend this inbound email for 30 days.
398
+ * @type {string}
399
+ * @memberof LogsGetResponseLogsInner
400
+ */
401
+ email_inbound_retry_key?: string;
402
+ /**
403
+ * User id from the original notification when this mail is a reply to one.
404
+ * @type {string}
405
+ * @memberof LogsGetResponseLogsInner
406
+ */
407
+ email_inbound_user_id?: string;
408
+ /**
409
+ * Subject line.
386
410
  * @type {string}
387
411
  * @memberof LogsGetResponseLogsInner
388
412
  */
389
413
  email_inbound_subject?: string;
390
414
  /**
391
- *
415
+ * Plain-text body.
392
416
  * @type {string}
393
417
  * @memberof LogsGetResponseLogsInner
394
418
  */
395
419
  email_inbound_body_text?: string;
396
420
  /**
397
- *
421
+ * HTML body. Inline images use `cid:` values that match attachment content IDs on the webhook payload.
398
422
  * @type {string}
399
423
  * @memberof LogsGetResponseLogsInner
400
424
  */
401
425
  email_inbound_body_html?: string;
402
426
  /**
403
- *
427
+ * True when the message includes at least one attachment.
404
428
  * @type {boolean}
405
429
  * @memberof LogsGetResponseLogsInner
406
430
  */
407
431
  email_inbound_has_attachments?: boolean;
408
432
  /**
409
- *
433
+ * Number of attachments. File bytes are not stored on this log.
410
434
  * @type {number}
411
435
  * @memberof LogsGetResponseLogsInner
412
436
  */
413
437
  email_inbound_attachment_count?: number;
414
438
  /**
415
- *
439
+ * Message-ID header. Use it to thread later replies.
416
440
  * @type {string}
417
441
  * @memberof LogsGetResponseLogsInner
418
442
  */
419
443
  email_inbound_message_id?: string;
420
444
  /**
421
- *
445
+ * In-Reply-To header: the Message-ID this mail replies to.
422
446
  * @type {string}
423
447
  * @memberof LogsGetResponseLogsInner
424
448
  */
425
449
  email_inbound_in_reply_to?: string;
426
450
  /**
427
- *
451
+ * References header: the chain of Message-IDs in the thread.
428
452
  * @type {string}
429
453
  * @memberof LogsGetResponseLogsInner
430
454
  */
431
455
  email_inbound_references?: string;
432
456
  /**
433
- *
457
+ * True when an EMAIL_INBOUND webhook endpoint returned a 2xx response.
434
458
  * @type {boolean}
435
459
  * @memberof LogsGetResponseLogsInner
436
460
  */
437
461
  email_inbound_webhook_delivered?: boolean;
438
462
  /**
439
- *
463
+ * JSON delivery result for each EMAIL_INBOUND endpoint.
440
464
  * @type {string}
441
465
  * @memberof LogsGetResponseLogsInner
442
466
  */
443
467
  email_inbound_webhook_res?: string;
444
468
  /**
445
- *
469
+ * How the inbox was matched: `reply` for a reply to a sent notification, `builtin` for a Pingram inbox, or `custom` for a custom domain.
446
470
  * @type {string}
447
471
  * @memberof LogsGetResponseLogsInner
448
472
  */
@@ -537,6 +537,18 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
537
537
  email_inbound_inbox: json['email_inbound_inbox'] == null
538
538
  ? undefined
539
539
  : json['email_inbound_inbox'],
540
+ email_inbound_to_name: json['email_inbound_to_name'] == null
541
+ ? undefined
542
+ : json['email_inbound_to_name'],
543
+ email_inbound_sent_at: json['email_inbound_sent_at'] == null
544
+ ? undefined
545
+ : json['email_inbound_sent_at'],
546
+ email_inbound_retry_key: json['email_inbound_retry_key'] == null
547
+ ? undefined
548
+ : json['email_inbound_retry_key'],
549
+ email_inbound_user_id: json['email_inbound_user_id'] == null
550
+ ? undefined
551
+ : json['email_inbound_user_id'],
540
552
  email_inbound_subject: json['email_inbound_subject'] == null
541
553
  ? undefined
542
554
  : json['email_inbound_subject'],
@@ -845,6 +857,10 @@ function LogsGetResponseLogsInnerToJSONTyped(value, ignoreDiscriminator = false)
845
857
  email_inbound_bcc: value['email_inbound_bcc'],
846
858
  email_inbound_reply_to: value['email_inbound_reply_to'],
847
859
  email_inbound_inbox: value['email_inbound_inbox'],
860
+ email_inbound_to_name: value['email_inbound_to_name'],
861
+ email_inbound_sent_at: value['email_inbound_sent_at'],
862
+ email_inbound_retry_key: value['email_inbound_retry_key'],
863
+ email_inbound_user_id: value['email_inbound_user_id'],
848
864
  email_inbound_subject: value['email_inbound_subject'],
849
865
  email_inbound_body_text: value['email_inbound_body_text'],
850
866
  email_inbound_body_html: value['email_inbound_body_html'],
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Pingram
3
+ * Internal API for notification delivery and management
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface StartChangeEmailRequest
16
+ */
17
+ export interface StartChangeEmailRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StartChangeEmailRequest
22
+ */
23
+ newEmail: string;
24
+ /**
25
+ * Current account password. Required before a login-email change starts.
26
+ * @type {string}
27
+ * @memberof StartChangeEmailRequest
28
+ */
29
+ password: string;
30
+ /**
31
+ * TOTP code. Required when software-token MFA is enabled.
32
+ * @type {string}
33
+ * @memberof StartChangeEmailRequest
34
+ */
35
+ mfaCode?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the StartChangeEmailRequest interface.
39
+ */
40
+ export declare function instanceOfStartChangeEmailRequest(value: object): value is StartChangeEmailRequest;
41
+ export declare function StartChangeEmailRequestFromJSON(json: any): StartChangeEmailRequest;
42
+ export declare function StartChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartChangeEmailRequest;
43
+ export declare function StartChangeEmailRequestToJSON(json: any): StartChangeEmailRequest;
44
+ export declare function StartChangeEmailRequestToJSONTyped(value?: StartChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pingram
6
+ * Internal API for notification delivery and management
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStartChangeEmailRequest = instanceOfStartChangeEmailRequest;
17
+ exports.StartChangeEmailRequestFromJSON = StartChangeEmailRequestFromJSON;
18
+ exports.StartChangeEmailRequestFromJSONTyped = StartChangeEmailRequestFromJSONTyped;
19
+ exports.StartChangeEmailRequestToJSON = StartChangeEmailRequestToJSON;
20
+ exports.StartChangeEmailRequestToJSONTyped = StartChangeEmailRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StartChangeEmailRequest interface.
23
+ */
24
+ function instanceOfStartChangeEmailRequest(value) {
25
+ if (!('newEmail' in value) || value['newEmail'] === undefined)
26
+ return false;
27
+ if (!('password' in value) || value['password'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function StartChangeEmailRequestFromJSON(json) {
32
+ return StartChangeEmailRequestFromJSONTyped(json, false);
33
+ }
34
+ function StartChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ newEmail: json['newEmail'],
40
+ password: json['password'],
41
+ mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
42
+ };
43
+ }
44
+ function StartChangeEmailRequestToJSON(json) {
45
+ return StartChangeEmailRequestToJSONTyped(json, false);
46
+ }
47
+ function StartChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ newEmail: value['newEmail'],
53
+ password: value['password'],
54
+ mfaCode: value['mfaCode']
55
+ };
56
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface WebhookEndpointUpsertRequest {
18
18
  /**
19
- * Public http or https URL that accepts POST with a JSON event body. Return 2xx to acknowledge. Requests include X-Pingram-Id, X-Pingram-Signature (v1 HMAC-SHA256), and X-Pingram-Timestamp.
19
+ * Public HTTPS URL that accepts POST with a JSON event body. Return 2xx to acknowledge. Private, loopback, and link-local addresses are rejected. Requests include X-Pingram-Id, X-Pingram-Signature (v1 HMAC-SHA256), and X-Pingram-Timestamp.
20
20
  * @type {string}
21
21
  * @memberof WebhookEndpointUpsertRequest
22
22
  */
@@ -33,9 +33,9 @@ export * from './BroadcastResponseAudience';
33
33
  export * from './CampaignWebhookResponse';
34
34
  export * from './CancelSubscriptionRequest';
35
35
  export * from './Chained';
36
- export * from './ChangeEmailRequest';
37
36
  export * from './ChangePhoneRequest';
38
37
  export * from './ChannelsEnum';
38
+ export * from './ConfirmChangeEmailRequest';
39
39
  export * from './CreateAccountRequest';
40
40
  export * from './CreateAccountRequestPlan';
41
41
  export * from './CreateAccountResponse';
@@ -251,6 +251,7 @@ export * from './SenderPostResponse';
251
251
  export * from './SetDefaultTemplateRequest';
252
252
  export * from './SlackConnectInviteResponse';
253
253
  export * from './SlackInteractivityResponse';
254
+ export * from './StartChangeEmailRequest';
254
255
  export * from './SubNotification';
255
256
  export * from './SubNotificationPUTRequest';
256
257
  export * from './SuccessResponse';
@@ -51,9 +51,9 @@ __exportStar(require("./BroadcastResponseAudience"), exports);
51
51
  __exportStar(require("./CampaignWebhookResponse"), exports);
52
52
  __exportStar(require("./CancelSubscriptionRequest"), exports);
53
53
  __exportStar(require("./Chained"), exports);
54
- __exportStar(require("./ChangeEmailRequest"), exports);
55
54
  __exportStar(require("./ChangePhoneRequest"), exports);
56
55
  __exportStar(require("./ChannelsEnum"), exports);
56
+ __exportStar(require("./ConfirmChangeEmailRequest"), exports);
57
57
  __exportStar(require("./CreateAccountRequest"), exports);
58
58
  __exportStar(require("./CreateAccountRequestPlan"), exports);
59
59
  __exportStar(require("./CreateAccountResponse"), exports);
@@ -269,6 +269,7 @@ __exportStar(require("./SenderPostResponse"), exports);
269
269
  __exportStar(require("./SetDefaultTemplateRequest"), exports);
270
270
  __exportStar(require("./SlackConnectInviteResponse"), exports);
271
271
  __exportStar(require("./SlackInteractivityResponse"), exports);
272
+ __exportStar(require("./StartChangeEmailRequest"), exports);
272
273
  __exportStar(require("./SubNotification"), exports);
273
274
  __exportStar(require("./SubNotificationPUTRequest"), exports);
274
275
  __exportStar(require("./SuccessResponse"), exports);
@@ -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.37';
11
+ const SDK_VERSION = '1.0.38';
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.37",
3
+ "version": "1.0.38-alpha.1629",
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",
@@ -1,32 +0,0 @@
1
- /**
2
- * Pingram
3
- * Internal API for notification delivery and management
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface ChangeEmailRequest
16
- */
17
- export interface ChangeEmailRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ChangeEmailRequest
22
- */
23
- newEmail: string;
24
- }
25
- /**
26
- * Check if a given object implements the ChangeEmailRequest interface.
27
- */
28
- export declare function instanceOfChangeEmailRequest(value: object): value is ChangeEmailRequest;
29
- export declare function ChangeEmailRequestFromJSON(json: any): ChangeEmailRequest;
30
- export declare function ChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeEmailRequest;
31
- export declare function ChangeEmailRequestToJSON(json: any): ChangeEmailRequest;
32
- export declare function ChangeEmailRequestToJSONTyped(value?: ChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Pingram
6
- * Internal API for notification delivery and management
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfChangeEmailRequest = instanceOfChangeEmailRequest;
17
- exports.ChangeEmailRequestFromJSON = ChangeEmailRequestFromJSON;
18
- exports.ChangeEmailRequestFromJSONTyped = ChangeEmailRequestFromJSONTyped;
19
- exports.ChangeEmailRequestToJSON = ChangeEmailRequestToJSON;
20
- exports.ChangeEmailRequestToJSONTyped = ChangeEmailRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the ChangeEmailRequest interface.
23
- */
24
- function instanceOfChangeEmailRequest(value) {
25
- if (!('newEmail' in value) || value['newEmail'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function ChangeEmailRequestFromJSON(json) {
30
- return ChangeEmailRequestFromJSONTyped(json, false);
31
- }
32
- function ChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- newEmail: json['newEmail']
38
- };
39
- }
40
- function ChangeEmailRequestToJSON(json) {
41
- return ChangeEmailRequestToJSONTyped(json, false);
42
- }
43
- function ChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- newEmail: value['newEmail']
49
- };
50
- }