@gravity-rail/sdk 9.0.0 → 10.0.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,8 +1,8 @@
1
1
  import { GravityRailClient } from './index.cjs';
2
- export { C as ChatInteractionController } from './client-CO1hYs43.cjs';
2
+ export { C as ChatInteractionController } from './client-Cb9pM31S.cjs';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
4
- export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-CzGVMtgv.cjs';
5
- import './account-DLwJWX9b.cjs';
4
+ export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-_zu58M9w.cjs';
5
+ import './account-DEA-f-I9.cjs';
6
6
  import 'zod';
7
7
 
8
8
  interface OutboundPhoneNumberOption {
package/dist/helpers.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { GravityRailClient } from './index.js';
2
- export { C as ChatInteractionController } from './client-xtsG-YOi.js';
2
+ export { C as ChatInteractionController } from './client-BaF3v-ux.js';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
4
- export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-q5-fCvfV.js';
5
- import './account-DLwJWX9b.js';
4
+ export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-Bq_eC7gx.js';
5
+ import './account-DEA-f-I9.js';
6
6
  import 'zod';
7
7
 
8
8
  interface OutboundPhoneNumberOption {
package/dist/index.cjs CHANGED
@@ -7607,12 +7607,6 @@ var OrgApi = class extends BaseApiClient {
7607
7607
  body: JSON.stringify(data)
7608
7608
  });
7609
7609
  }
7610
- async setOrganizationMemberBillingRole(orgUuid, memberId, billingRole) {
7611
- return this.fetch(`o/${orgUuid}/members/${memberId}/billing-role`, {
7612
- method: "PUT",
7613
- body: JSON.stringify({ billingRole })
7614
- });
7615
- }
7616
7610
  /**
7617
7611
  * Remove a member from an organization.
7618
7612
  */
@@ -8326,8 +8320,8 @@ var OrgApi = class extends BaseApiClient {
8326
8320
  }
8327
8321
  /**
8328
8322
  * Submit a later campaign that has never been submitted. The caller must be
8329
- * an org admin with recent 2FA, and the billing owner on subscription
8330
- * billing (the submission buys the campaign's vetting). The brand's first
8323
+ * an org admin with recent 2FA, and — on subscription billing — an active
8324
+ * Organization Owner (the submission buys the campaign's vetting). The brand's first
8331
8325
  * campaign is submitted by approving its sample messages during registration;
8332
8326
  * an ineligible campaign comes back as a structured 409 with a `code`. A brand
8333
8327
  * that no longer reads approved at the carrier, or a use case it no longer
@@ -9049,6 +9043,22 @@ var PhoneNumbersApi = class extends BaseApiClient {
9049
9043
  `w/${wid}/phone-numbers/${id}/voicemails?${params}`
9050
9044
  );
9051
9045
  }
9046
+ /** Fetch one authorized voicemail by uuid. */
9047
+ async getVoicemailByUuid(wid, uuid) {
9048
+ return this.fetch(`w/${wid}/voicemails/by-uuid/${encodeURIComponent(uuid)}`);
9049
+ }
9050
+ /** Fetch one authorized SMS delivery by uuid with failure reason and trigger provenance. */
9051
+ async getSmsDeliveryByUuid(wid, uuid) {
9052
+ return this.fetch(
9053
+ `w/${wid}/phone-numbers/sms-messages/by-uuid/${encodeURIComponent(uuid)}`
9054
+ );
9055
+ }
9056
+ /** Fetch one org-authorized SMS delivery by uuid inside a workspace of the org. */
9057
+ async getOrgWorkspaceSmsDeliveryByUuid(orgUuid, wid, uuid) {
9058
+ return this.fetch(
9059
+ `o/${orgUuid}/activity/workspaces/${wid}/sms-messages/by-uuid/${encodeURIComponent(uuid)}`
9060
+ );
9061
+ }
9052
9062
  /** Fetch voicemail audio through the authenticated client path. */
9053
9063
  async fetchVoicemailAudio(wid, phoneNumberId, voicemailId) {
9054
9064
  const response = await this.fetchRaw(
@@ -15319,6 +15329,8 @@ var WORKSPACE_METHOD_NAMES = [
15319
15329
  "exportWorkspace",
15320
15330
  "exportWorkspaceZip",
15321
15331
  "fetchVoicemailAudio",
15332
+ "getVoicemailByUuid",
15333
+ "getSmsDeliveryByUuid",
15322
15334
  "fhirBackfillEncounterSync",
15323
15335
  "fhirCheckPatientLinks",
15324
15336
  "fhirCreateEncounter",
@@ -16823,6 +16835,9 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
16823
16835
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
16824
16836
  target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
16825
16837
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
16838
+ target.getVoicemailByUuid = phoneNumbers.getVoicemailByUuid.bind(phoneNumbers);
16839
+ target.getSmsDeliveryByUuid = phoneNumbers.getSmsDeliveryByUuid.bind(phoneNumbers);
16840
+ target.getOrgWorkspaceSmsDeliveryByUuid = phoneNumbers.getOrgWorkspaceSmsDeliveryByUuid.bind(phoneNumbers);
16826
16841
  target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
16827
16842
  target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
16828
16843
  target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
@@ -18471,6 +18486,9 @@ var GravityRailClient = class {
18471
18486
  getPhoneNumberMessages;
18472
18487
  getPhoneNumberFaxes;
18473
18488
  getPhoneNumberVoicemails;
18489
+ getVoicemailByUuid;
18490
+ getSmsDeliveryByUuid;
18491
+ getOrgWorkspaceSmsDeliveryByUuid;
18474
18492
  fetchVoicemailAudio;
18475
18493
  updateVoicemailStatus;
18476
18494
  releasePhoneNumber;