@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.
@@ -1,4 +1,4 @@
1
- import { ei as GravityRailClient } from './client-B0eh2BEY.cjs';
1
+ import { ej as GravityRailClient } from './client-Ct0soeip.cjs';
2
2
  import { c6 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-WH_VfzMv.cjs';
3
3
  import 'zod';
4
4
 
package/dist/helpers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ei as GravityRailClient } from './client-CFz-BGmY.js';
1
+ import { ej as GravityRailClient } from './client-C10qSd6b.js';
2
2
  import { c6 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-WH_VfzMv.js';
3
3
  import 'zod';
4
4
 
package/dist/index.cjs CHANGED
@@ -4351,10 +4351,18 @@ var InboxesApi = class extends BaseApiClient {
4351
4351
  });
4352
4352
  }
4353
4353
  /** Reply to an email from the inbox. */
4354
- async replyToEmail(wid, inboxId, emailId, content) {
4354
+ async replyToEmail(wid, inboxId, emailId, content, htmlContent) {
4355
+ const body = { content, htmlContent };
4355
4356
  return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply`, {
4356
4357
  method: "POST",
4357
- body: JSON.stringify({ content })
4358
+ body: JSON.stringify(body)
4359
+ });
4360
+ }
4361
+ /** Compose and send a new email from an inbox. */
4362
+ async sendInboxEmail(wid, inboxId, body) {
4363
+ return this.fetch(`w/${wid}/inboxes/${inboxId}/emails`, {
4364
+ method: "POST",
4365
+ body: JSON.stringify(body)
4358
4366
  });
4359
4367
  }
4360
4368
  /**
@@ -11088,6 +11096,7 @@ var WORKSPACE_METHOD_NAMES = [
11088
11096
  "selectCurrentAssignmentTask",
11089
11097
  "sendAssistantMessage",
11090
11098
  "sendChatMessage",
11099
+ "sendInboxEmail",
11091
11100
  "sendOperatorMessage",
11092
11101
  "siteGoogleOAuthInitiate",
11093
11102
  "siteSendEmailCode",
@@ -11888,6 +11897,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
11888
11897
  target.getThreadEmails = inboxes.getThreadEmails.bind(inboxes);
11889
11898
  target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
11890
11899
  target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
11900
+ target.sendInboxEmail = inboxes.sendInboxEmail.bind(inboxes);
11891
11901
  target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
11892
11902
  target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
11893
11903
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
@@ -12220,6 +12230,8 @@ function bindOrgMethods(target, org) {
12220
12230
  target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
12221
12231
  target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
12222
12232
  target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
12233
+ target.getA2PCampaignConfig = org.getA2PCampaignConfig.bind(org);
12234
+ target.updateA2PCampaignConfig = org.updateA2PCampaignConfig.bind(org);
12223
12235
  target.getOrgWorkspaceUsage = org.getOrgWorkspaceUsage.bind(org);
12224
12236
  }
12225
12237
 
@@ -12777,6 +12789,8 @@ var GravityRailClient = class {
12777
12789
  syncVoiceTrustProducts;
12778
12790
  createOrganizationWorkspace;
12779
12791
  getOrgBillingCustomer;
12792
+ getA2PCampaignConfig;
12793
+ updateA2PCampaignConfig;
12780
12794
  getOrgWorkspaceUsage;
12781
12795
  getVapidPublicKey;
12782
12796
  registerPushSubscription;
@@ -13079,6 +13093,7 @@ var GravityRailClient = class {
13079
13093
  getThreadEmails;
13080
13094
  getChatEmails;
13081
13095
  replyToEmail;
13096
+ sendInboxEmail;
13082
13097
  getNotificationRules;
13083
13098
  createNotificationRule;
13084
13099
  updateNotificationRule;