@gravity-rail/sdk 0.21.0 → 0.22.0

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.
@@ -3395,10 +3395,18 @@ var InboxesApi = class extends BaseApiClient {
3395
3395
  });
3396
3396
  }
3397
3397
  /** Reply to an email from the inbox. */
3398
- async replyToEmail(wid, inboxId, emailId, content) {
3398
+ async replyToEmail(wid, inboxId, emailId, content, htmlContent) {
3399
+ const body = { content, htmlContent };
3399
3400
  return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply`, {
3400
3401
  method: "POST",
3401
- body: JSON.stringify({ content })
3402
+ body: JSON.stringify(body)
3403
+ });
3404
+ }
3405
+ /** Compose and send a new email from an inbox. */
3406
+ async sendInboxEmail(wid, inboxId, body) {
3407
+ return this.fetch(`w/${wid}/inboxes/${inboxId}/emails`, {
3408
+ method: "POST",
3409
+ body: JSON.stringify(body)
3402
3410
  });
3403
3411
  }
3404
3412
  /**
@@ -10462,6 +10470,7 @@ var WORKSPACE_METHOD_NAMES = [
10462
10470
  "selectCurrentAssignmentTask",
10463
10471
  "sendAssistantMessage",
10464
10472
  "sendChatMessage",
10473
+ "sendInboxEmail",
10465
10474
  "sendOperatorMessage",
10466
10475
  "siteGoogleOAuthInitiate",
10467
10476
  "siteSendEmailCode",
@@ -11262,6 +11271,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
11262
11271
  target.getThreadEmails = inboxes.getThreadEmails.bind(inboxes);
11263
11272
  target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
11264
11273
  target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
11274
+ target.sendInboxEmail = inboxes.sendInboxEmail.bind(inboxes);
11265
11275
  target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
11266
11276
  target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
11267
11277
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
@@ -11594,6 +11604,8 @@ function bindOrgMethods(target, org) {
11594
11604
  target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
11595
11605
  target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
11596
11606
  target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
11607
+ target.getA2PCampaignConfig = org.getA2PCampaignConfig.bind(org);
11608
+ target.updateA2PCampaignConfig = org.updateA2PCampaignConfig.bind(org);
11597
11609
  target.getOrgWorkspaceUsage = org.getOrgWorkspaceUsage.bind(org);
11598
11610
  }
11599
11611
 
@@ -12151,6 +12163,8 @@ var GravityRailClient = class {
12151
12163
  syncVoiceTrustProducts;
12152
12164
  createOrganizationWorkspace;
12153
12165
  getOrgBillingCustomer;
12166
+ getA2PCampaignConfig;
12167
+ updateA2PCampaignConfig;
12154
12168
  getOrgWorkspaceUsage;
12155
12169
  getVapidPublicKey;
12156
12170
  registerPushSubscription;
@@ -12453,6 +12467,7 @@ var GravityRailClient = class {
12453
12467
  getThreadEmails;
12454
12468
  getChatEmails;
12455
12469
  replyToEmail;
12470
+ sendInboxEmail;
12456
12471
  getNotificationRules;
12457
12472
  createNotificationRule;
12458
12473
  updateNotificationRule;
@@ -14364,4 +14379,4 @@ export {
14364
14379
  SCOPE_PRESETS,
14365
14380
  getRevisionState
14366
14381
  };
14367
- //# sourceMappingURL=chunk-24L4RD4Z.js.map
14382
+ //# sourceMappingURL=chunk-WMA6YCAS.js.map