@emilgroup/notification-sdk 0.8.1-beta.61 → 0.8.1-beta.63

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 (53) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/email-mailboxes-api.ts +4 -2
  4. package/api/email-messages-api.ts +146 -16
  5. package/api/email-subscriptions-api.ts +24 -12
  6. package/api/email-tracking-api.ts +32 -20
  7. package/api/email-verifications-api.ts +8 -4
  8. package/api/layouts-api.ts +20 -10
  9. package/api/notification-templates-api.ts +20 -10
  10. package/api/notifications-api.ts +8 -4
  11. package/base.ts +174 -41
  12. package/common.ts +3 -2
  13. package/configuration.ts +20 -0
  14. package/dist/api/email-mailboxes-api.d.ts +1 -1
  15. package/dist/api/email-mailboxes-api.js +7 -4
  16. package/dist/api/email-messages-api.d.ts +78 -12
  17. package/dist/api/email-messages-api.js +133 -21
  18. package/dist/api/email-subscriptions-api.d.ts +6 -6
  19. package/dist/api/email-subscriptions-api.js +39 -23
  20. package/dist/api/email-tracking-api.d.ts +14 -14
  21. package/dist/api/email-tracking-api.js +42 -28
  22. package/dist/api/email-verifications-api.d.ts +2 -2
  23. package/dist/api/email-verifications-api.js +14 -8
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/layouts-api.d.ts +5 -5
  26. package/dist/api/layouts-api.js +29 -18
  27. package/dist/api/msgraph-webhooks-api.d.ts +2 -2
  28. package/dist/api/notification-templates-api.d.ts +5 -5
  29. package/dist/api/notification-templates-api.js +29 -18
  30. package/dist/api/notifications-api.d.ts +2 -2
  31. package/dist/api/notifications-api.js +14 -8
  32. package/dist/base.d.ts +24 -0
  33. package/dist/base.js +178 -59
  34. package/dist/common.d.ts +1 -1
  35. package/dist/common.js +1 -0
  36. package/dist/configuration.d.ts +17 -0
  37. package/dist/configuration.js +2 -0
  38. package/dist/models/email-message-class.d.ts +23 -0
  39. package/dist/models/email-message-class.js +5 -1
  40. package/dist/models/email-message-summary-class.d.ts +17 -0
  41. package/dist/models/email-message-summary-class.js +5 -1
  42. package/dist/models/index.d.ts +2 -0
  43. package/dist/models/index.js +2 -0
  44. package/dist/models/resend-email-message-body-dto.d.ts +30 -0
  45. package/dist/models/resend-email-message-body-dto.js +15 -0
  46. package/dist/models/resend-email-message-response-class.d.ts +25 -0
  47. package/dist/models/resend-email-message-response-class.js +15 -0
  48. package/models/email-message-class.ts +24 -0
  49. package/models/email-message-summary-class.ts +18 -0
  50. package/models/index.ts +2 -0
  51. package/models/resend-email-message-body-dto.ts +36 -0
  52. package/models/resend-email-message-response-class.ts +31 -0
  53. package/package.json +2 -2
@@ -16,6 +16,8 @@ import { DownloadAttachmentResponseClass } from '../models';
16
16
  import { GetEmailMessageResponseClass } from '../models';
17
17
  import { ListEmailAttachmentsResponseClass } from '../models';
18
18
  import { ListEmailMessagesResponseClass } from '../models';
19
+ import { ResendEmailMessageBodyDto } from '../models';
20
+ import { ResendEmailMessageResponseClass } from '../models';
19
21
  /**
20
22
  * EmailMessagesApi - axios parameter creator
21
23
  * @export
@@ -55,15 +57,25 @@ export declare const EmailMessagesApiAxiosParamCreator: (configuration?: Configu
55
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
58
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
57
59
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
58
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
60
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
59
61
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
60
62
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt</i>
61
63
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: attachments<i>
62
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
64
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy</i>
63
65
  * @param {*} [options] Override http request option.
64
66
  * @throws {RequiredError}
65
67
  */
66
68
  listEmailMessages: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
71
+ * @summary Resend the email message
72
+ * @param {string} code
73
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
74
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ resendMessage: (code: string, resendEmailMessageBodyDto: ResendEmailMessageBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
79
  };
68
80
  /**
69
81
  * EmailMessagesApi - functional programming interface
@@ -104,15 +116,25 @@ export declare const EmailMessagesApiFp: (configuration?: Configuration) => {
104
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
117
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
106
118
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
107
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
119
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
108
120
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
109
121
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
110
122
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
111
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
123
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
112
124
  * @param {*} [options] Override http request option.
113
125
  * @throws {RequiredError}
114
126
  */
115
127
  listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMessagesResponseClass>>;
128
+ /**
129
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
130
+ * @summary Resend the email message
131
+ * @param {string} code
132
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
133
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ resendMessage(code: string, resendEmailMessageBodyDto: ResendEmailMessageBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResendEmailMessageResponseClass>>;
116
138
  };
117
139
  /**
118
140
  * EmailMessagesApi - factory interface
@@ -153,15 +175,25 @@ export declare const EmailMessagesApiFactory: (configuration?: Configuration, ba
153
175
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
176
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
177
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
156
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
178
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
157
179
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
158
180
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
159
181
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
160
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
182
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
161
183
  * @param {*} [options] Override http request option.
162
184
  * @throws {RequiredError}
163
185
  */
164
186
  listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailMessagesResponseClass>;
187
+ /**
188
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
189
+ * @summary Resend the email message
190
+ * @param {string} code
191
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ resendMessage(code: string, resendEmailMessageBodyDto: ResendEmailMessageBodyDto, authorization?: string, options?: any): AxiosPromise<ResendEmailMessageResponseClass>;
165
197
  };
166
198
  /**
167
199
  * Request parameters for downloadAttachment operation in EmailMessagesApi.
@@ -251,7 +283,7 @@ export interface EmailMessagesApiListEmailMessagesRequest {
251
283
  */
252
284
  readonly pageToken?: string;
253
285
  /**
254
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
286
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
255
287
  * @type {string}
256
288
  * @memberof EmailMessagesApiListEmailMessages
257
289
  */
@@ -275,12 +307,37 @@ export interface EmailMessagesApiListEmailMessagesRequest {
275
307
  */
276
308
  readonly expand?: string;
277
309
  /**
278
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
310
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
279
311
  * @type {string}
280
312
  * @memberof EmailMessagesApiListEmailMessages
281
313
  */
282
314
  readonly filters?: string;
283
315
  }
316
+ /**
317
+ * Request parameters for resendMessage operation in EmailMessagesApi.
318
+ * @export
319
+ * @interface EmailMessagesApiResendMessageRequest
320
+ */
321
+ export interface EmailMessagesApiResendMessageRequest {
322
+ /**
323
+ *
324
+ * @type {string}
325
+ * @memberof EmailMessagesApiResendMessage
326
+ */
327
+ readonly code: string;
328
+ /**
329
+ *
330
+ * @type {ResendEmailMessageBodyDto}
331
+ * @memberof EmailMessagesApiResendMessage
332
+ */
333
+ readonly resendEmailMessageBodyDto: ResendEmailMessageBodyDto;
334
+ /**
335
+ * Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @type {string}
337
+ * @memberof EmailMessagesApiResendMessage
338
+ */
339
+ readonly authorization?: string;
340
+ }
284
341
  /**
285
342
  * EmailMessagesApi - object-oriented interface
286
343
  * @export
@@ -296,7 +353,7 @@ export declare class EmailMessagesApi extends BaseAPI {
296
353
  * @throws {RequiredError}
297
354
  * @memberof EmailMessagesApi
298
355
  */
299
- downloadAttachment(requestParameters: EmailMessagesApiDownloadAttachmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadAttachmentResponseClass, any, {}>>;
356
+ downloadAttachment(requestParameters: EmailMessagesApiDownloadAttachmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadAttachmentResponseClass, any, {}, any>>;
300
357
  /**
301
358
  * Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
302
359
  * @summary Retrieve the email message
@@ -305,7 +362,7 @@ export declare class EmailMessagesApi extends BaseAPI {
305
362
  * @throws {RequiredError}
306
363
  * @memberof EmailMessagesApi
307
364
  */
308
- getMessage(requestParameters: EmailMessagesApiGetMessageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailMessageResponseClass, any, {}>>;
365
+ getMessage(requestParameters: EmailMessagesApiGetMessageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailMessageResponseClass, any, {}, any>>;
309
366
  /**
310
367
  * Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
311
368
  * @summary List the email message attachments
@@ -314,7 +371,7 @@ export declare class EmailMessagesApi extends BaseAPI {
314
371
  * @throws {RequiredError}
315
372
  * @memberof EmailMessagesApi
316
373
  */
317
- listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailAttachmentsResponseClass, any, {}>>;
374
+ listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailAttachmentsResponseClass, any, {}, any>>;
318
375
  /**
319
376
  * Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
320
377
  * @summary List email messages
@@ -323,5 +380,14 @@ export declare class EmailMessagesApi extends BaseAPI {
323
380
  * @throws {RequiredError}
324
381
  * @memberof EmailMessagesApi
325
382
  */
326
- listEmailMessages(requestParameters?: EmailMessagesApiListEmailMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
383
+ listEmailMessages(requestParameters?: EmailMessagesApiListEmailMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}, any>>;
384
+ /**
385
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
386
+ * @summary Resend the email message
387
+ * @param {EmailMessagesApiResendMessageRequest} requestParameters Request parameters.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ * @memberof EmailMessagesApi
391
+ */
392
+ resendMessage(requestParameters: EmailMessagesApiResendMessageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResendEmailMessageResponseClass, any, {}, any>>;
327
393
  }
@@ -104,7 +104,7 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
104
104
  downloadAttachment: function (code, attachmentId, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -125,13 +125,16 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token; an empty value is never sent.
130
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -155,7 +158,7 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
155
158
  getMessage: function (code, authorization, options) {
156
159
  if (options === void 0) { options = {}; }
157
160
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
162
  return __generator(this, function (_a) {
160
163
  switch (_a.label) {
161
164
  case 0:
@@ -173,13 +176,16 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
191
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -203,7 +209,7 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
203
209
  listAttachments: function (code, authorization, options) {
204
210
  if (options === void 0) { options = {}; }
205
211
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
207
213
  return __generator(this, function (_a) {
208
214
  switch (_a.label) {
209
215
  case 0:
@@ -221,13 +227,16 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
221
227
  localVarQueryParameter = {};
222
228
  // authentication bearer required
223
229
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
225
233
  case 1:
226
234
  // authentication bearer required
227
235
  // http bearer authentication required
228
236
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
240
  }
232
241
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
242
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -246,18 +255,18 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
246
255
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
256
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
248
257
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
249
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
258
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
250
259
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
251
260
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
252
261
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
253
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
262
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
254
263
  * @param {*} [options] Override http request option.
255
264
  * @throws {RequiredError}
256
265
  */
257
266
  listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
267
  if (options === void 0) { options = {}; }
259
268
  return __awaiter(_this, void 0, void 0, function () {
260
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
270
  return __generator(this, function (_a) {
262
271
  switch (_a.label) {
263
272
  case 0:
@@ -298,12 +307,69 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
298
307
  if (filters !== undefined) {
299
308
  localVarQueryParameter['filters'] = filters;
300
309
  }
301
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
302
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
313
+ }
314
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
315
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
317
+ return [2 /*return*/, {
318
+ url: (0, common_1.toPathString)(localVarUrlObj),
319
+ options: localVarRequestOptions,
320
+ }];
321
+ }
322
+ });
323
+ });
324
+ },
325
+ /**
326
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
327
+ * @summary Resend the email message
328
+ * @param {string} code
329
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
335
+ if (options === void 0) { options = {}; }
336
+ return __awaiter(_this, void 0, void 0, function () {
337
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
338
+ return __generator(this, function (_a) {
339
+ switch (_a.label) {
340
+ case 0:
341
+ // verify required parameter 'code' is not null or undefined
342
+ (0, common_1.assertParamExists)('resendMessage', 'code', code);
343
+ // verify required parameter 'resendEmailMessageBodyDto' is not null or undefined
344
+ (0, common_1.assertParamExists)('resendMessage', 'resendEmailMessageBodyDto', resendEmailMessageBodyDto);
345
+ localVarPath = "/notificationservice/v1/email-messages/{code}/resend"
346
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
347
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ baseAccessToken = configuration.accessToken;
351
+ }
352
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
353
+ localVarHeaderParameter = {};
354
+ localVarQueryParameter = {};
355
+ // authentication bearer required
356
+ // http bearer authentication required
357
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
358
+ // Only Authorization falls back to the configured token; an empty value is never sent.
359
+ ];
360
+ case 1:
361
+ // authentication bearer required
362
+ // http bearer authentication required
363
+ _a.sent();
364
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
365
+ if (authorizationValue) {
366
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
303
367
  }
368
+ localVarHeaderParameter['Content-Type'] = 'application/json';
304
369
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
370
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
371
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
372
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resendEmailMessageBodyDto, localVarRequestOptions, configuration);
307
373
  return [2 /*return*/, {
308
374
  url: (0, common_1.toPathString)(localVarUrlObj),
309
375
  options: localVarRequestOptions,
@@ -392,11 +458,11 @@ var EmailMessagesApiFp = function (configuration) {
392
458
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
393
459
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
394
460
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
395
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
461
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
396
462
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
397
463
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
398
464
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
399
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
465
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
400
466
  * @param {*} [options] Override http request option.
401
467
  * @throws {RequiredError}
402
468
  */
@@ -413,6 +479,28 @@ var EmailMessagesApiFp = function (configuration) {
413
479
  });
414
480
  });
415
481
  },
482
+ /**
483
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
484
+ * @summary Resend the email message
485
+ * @param {string} code
486
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
487
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
492
+ return __awaiter(this, void 0, void 0, function () {
493
+ var localVarAxiosArgs;
494
+ return __generator(this, function (_a) {
495
+ switch (_a.label) {
496
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resendMessage(code, resendEmailMessageBodyDto, authorization, options)];
497
+ case 1:
498
+ localVarAxiosArgs = _a.sent();
499
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
500
+ }
501
+ });
502
+ });
503
+ },
416
504
  };
417
505
  };
418
506
  exports.EmailMessagesApiFp = EmailMessagesApiFp;
@@ -463,17 +551,29 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
463
551
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
464
552
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
465
553
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
466
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
554
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
467
555
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
468
556
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, direction, deliveryStatus, workflowStatus, fromAddress, subject, sentAt, receivedAt, createdAt, updatedAt&lt;/i&gt;
469
557
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: attachments&lt;i&gt;
470
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
558
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, threadCode, entityType, entityCode, entityNumber, direction, deliveryStatus, provider, mailbox, workflowStatus, resentFromMessageCode, resendReason, fromAddress, subject, notificationRequestId, sentAt, receivedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
471
559
  * @param {*} [options] Override http request option.
472
560
  * @throws {RequiredError}
473
561
  */
474
562
  listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
475
563
  return localVarFp.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
476
564
  },
565
+ /**
566
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
567
+ * @summary Resend the email message
568
+ * @param {string} code
569
+ * @param {ResendEmailMessageBodyDto} resendEmailMessageBodyDto
570
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ resendMessage: function (code, resendEmailMessageBodyDto, authorization, options) {
575
+ return localVarFp.resendMessage(code, resendEmailMessageBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
576
+ },
477
577
  };
478
578
  };
479
579
  exports.EmailMessagesApiFactory = EmailMessagesApiFactory;
@@ -537,6 +637,18 @@ var EmailMessagesApi = /** @class */ (function (_super) {
537
637
  if (requestParameters === void 0) { requestParameters = {}; }
538
638
  return (0, exports.EmailMessagesApiFp)(this.configuration).listEmailMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
639
  };
640
+ /**
641
+ * Sends an outgoing email with delivery status bounced or failed again, as a new email in the same thread, and returns the new email. A bounced email is resent to the recipient that bounced, or to newAddress when the address is corrected; pass recipient when more than one recipient bounced. A failed email is resent to all its original recipients; recipient and newAddress are not allowed for it. The original email is not changed and can be resent again. The new email starts as pending and carries resentFromMessageCode, resendReason and, for a bounce, resentOriginalRecipient. **Required Permissions** \"notification-management.email-messages.create\"
642
+ * @summary Resend the email message
643
+ * @param {EmailMessagesApiResendMessageRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof EmailMessagesApi
647
+ */
648
+ EmailMessagesApi.prototype.resendMessage = function (requestParameters, options) {
649
+ var _this = this;
650
+ return (0, exports.EmailMessagesApiFp)(this.configuration).resendMessage(requestParameters.code, requestParameters.resendEmailMessageBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
651
+ };
540
652
  return EmailMessagesApi;
541
653
  }(base_1.BaseAPI));
542
654
  exports.EmailMessagesApi = EmailMessagesApi;
@@ -383,7 +383,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
383
383
  * @throws {RequiredError}
384
384
  * @memberof EmailSubscriptionsApi
385
385
  */
386
- catchUpEmailSubscription(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionResponseClass, any, {}>>;
386
+ catchUpEmailSubscription(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionResponseClass, any, {}, any>>;
387
387
  /**
388
388
  * Queues a catch-up for every subscription of the email channel: Microsoft Graph is asked for every change since the last catch-up, and mail that never arrived through a notification is ingested. Returns straight away with how many catch-ups were queued. **Required Permissions** \"tenant-management.settings.update\"
389
389
  * @summary Catch up missed mail for all email subscriptions
@@ -392,7 +392,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
392
392
  * @throws {RequiredError}
393
393
  * @memberof EmailSubscriptionsApi
394
394
  */
395
- catchUpEmailSubscriptions(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionsResponseClass, any, {}>>;
395
+ catchUpEmailSubscriptions(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionsResponseClass, any, {}, any>>;
396
396
  /**
397
397
  * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
398
398
  * @summary Retrieve the email subscription
@@ -401,7 +401,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
401
401
  * @throws {RequiredError}
402
402
  * @memberof EmailSubscriptionsApi
403
403
  */
404
- getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailSubscriptionResponseClass, any, {}>>;
404
+ getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailSubscriptionResponseClass, any, {}, any>>;
405
405
  /**
406
406
  * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
407
407
  * @summary List email subscriptions
@@ -410,7 +410,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
410
410
  * @throws {RequiredError}
411
411
  * @memberof EmailSubscriptionsApi
412
412
  */
413
- listEmailSubscriptions(requestParameters?: EmailSubscriptionsApiListEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailSubscriptionsResponseClass, any, {}>>;
413
+ listEmailSubscriptions(requestParameters?: EmailSubscriptionsApiListEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailSubscriptionsResponseClass, any, {}, any>>;
414
414
  /**
415
415
  * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
416
416
  * @summary Reconcile the email subscriptions
@@ -419,7 +419,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
419
419
  * @throws {RequiredError}
420
420
  * @memberof EmailSubscriptionsApi
421
421
  */
422
- reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReconcileEmailSubscriptionsResponseClass, any, {}>>;
422
+ reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReconcileEmailSubscriptionsResponseClass, any, {}, any>>;
423
423
  /**
424
424
  * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
425
425
  * @summary Renew the email subscription
@@ -428,5 +428,5 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
428
428
  * @throws {RequiredError}
429
429
  * @memberof EmailSubscriptionsApi
430
430
  */
431
- renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RenewEmailSubscriptionResponseClass, any, {}>>;
431
+ renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RenewEmailSubscriptionResponseClass, any, {}, any>>;
432
432
  }