@gravity-rail/sdk 0.12.0 → 0.13.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.
@@ -4744,6 +4744,21 @@ var OrgApi = class extends BaseApiClient {
4744
4744
  body: JSON.stringify({ brandUuid, sampleMessages })
4745
4745
  });
4746
4746
  }
4747
+ /**
4748
+ * Activate SMS on a workspace-assigned number: attach it to the given
4749
+ * brand's Messaging Service (A2P 10DLC). Preconditions (412 otherwise):
4750
+ * campaign VERIFIED, brand has a Messaging Service, phone assigned to a
4751
+ * workspace with a Twilio SID.
4752
+ */
4753
+ async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
4754
+ return this.fetch(
4755
+ `o/${orgUuid}/phone-numbers/a2p/activate-number`,
4756
+ {
4757
+ method: "POST",
4758
+ body: JSON.stringify({ providerPhoneUuid, brandUuid })
4759
+ }
4760
+ );
4761
+ }
4747
4762
  // ============================================================================
4748
4763
  // Organization Business Profile API (Twilio Trust Hub Secondary CP)
4749
4764
  // ============================================================================
@@ -4810,6 +4825,30 @@ var OrgApi = class extends BaseApiClient {
4810
4825
  async getLegalEntity(orgUuid, legalEntityUuid) {
4811
4826
  return this.fetch(`o/${orgUuid}/legal-entities/${legalEntityUuid}`);
4812
4827
  }
4828
+ /** Cached voice trust product state (CNAM / SHAKEN-STIR / Voice Integrity) for one legal entity. */
4829
+ async getVoiceTrustProducts(orgUuid, legalEntityUuid) {
4830
+ return this.fetch(
4831
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products`
4832
+ );
4833
+ }
4834
+ /** Reconcile trust product state against Twilio (discovery + status refresh). */
4835
+ async syncVoiceTrustProducts(orgUuid, legalEntityUuid) {
4836
+ return this.fetch(
4837
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/sync`,
4838
+ // Empty JSON body is the CSRF barrier the route requires (GRA-6284).
4839
+ { method: "POST", body: JSON.stringify({}) }
4840
+ );
4841
+ }
4842
+ /**
4843
+ * Set up + submit one voice trust product for a legal entity. Requires
4844
+ * the entity's business profile to be twilio-approved (412 otherwise).
4845
+ */
4846
+ async setupVoiceTrustProduct(orgUuid, legalEntityUuid, product, data) {
4847
+ return this.fetch(
4848
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/${product}`,
4849
+ { method: "POST", body: JSON.stringify(data) }
4850
+ );
4851
+ }
4813
4852
  /**
4814
4853
  * Brand detail with live registration-workflow state (`workflowStatus`,
4815
4854
  * `pendingSampleMessages`) for the sample-approval step.
@@ -12927,4 +12966,4 @@ export {
12927
12966
  SCOPE_PRESETS,
12928
12967
  getRevisionState
12929
12968
  };
12930
- //# sourceMappingURL=chunk-LODUVCW6.js.map
12969
+ //# sourceMappingURL=chunk-MUEM2BLY.js.map