@gravity-rail/cli 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.
package/dist/gr.js CHANGED
@@ -3247,7 +3247,7 @@ var init_libphonenumber_js = __esm({
3247
3247
  }
3248
3248
  });
3249
3249
 
3250
- // ../sdk/dist/chunk-LODUVCW6.js
3250
+ // ../sdk/dist/chunk-MUEM2BLY.js
3251
3251
  function sanitizePhoneForBackend(phoneNumber) {
3252
3252
  try {
3253
3253
  let parsed = parsePhoneNumber4(phoneNumber);
@@ -4439,8 +4439,8 @@ function bindSupportRequestMethods(target, supportRequests) {
4439
4439
  target.clickWorkspaceSupportRequestResource = supportRequests.clickWorkspaceSupportRequestResource.bind(supportRequests);
4440
4440
  }
4441
4441
  var AbilitiesApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MilestonesApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleEventType, DriverMode, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, MotdApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES;
4442
- var init_chunk_LODUVCW6 = __esm({
4443
- "../sdk/dist/chunk-LODUVCW6.js"() {
4442
+ var init_chunk_MUEM2BLY = __esm({
4443
+ "../sdk/dist/chunk-MUEM2BLY.js"() {
4444
4444
  init_chunk_FSSXKQR5();
4445
4445
  init_libphonenumber_js();
4446
4446
  AbilitiesApi = class extends BaseApiClient {
@@ -9049,6 +9049,21 @@ var init_chunk_LODUVCW6 = __esm({
9049
9049
  body: JSON.stringify({ brandUuid, sampleMessages })
9050
9050
  });
9051
9051
  }
9052
+ /**
9053
+ * Activate SMS on a workspace-assigned number: attach it to the given
9054
+ * brand's Messaging Service (A2P 10DLC). Preconditions (412 otherwise):
9055
+ * campaign VERIFIED, brand has a Messaging Service, phone assigned to a
9056
+ * workspace with a Twilio SID.
9057
+ */
9058
+ async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
9059
+ return this.fetch(
9060
+ `o/${orgUuid}/phone-numbers/a2p/activate-number`,
9061
+ {
9062
+ method: "POST",
9063
+ body: JSON.stringify({ providerPhoneUuid, brandUuid })
9064
+ }
9065
+ );
9066
+ }
9052
9067
  // ============================================================================
9053
9068
  // Organization Business Profile API (Twilio Trust Hub Secondary CP)
9054
9069
  // ============================================================================
@@ -9115,6 +9130,30 @@ var init_chunk_LODUVCW6 = __esm({
9115
9130
  async getLegalEntity(orgUuid, legalEntityUuid) {
9116
9131
  return this.fetch(`o/${orgUuid}/legal-entities/${legalEntityUuid}`);
9117
9132
  }
9133
+ /** Cached voice trust product state (CNAM / SHAKEN-STIR / Voice Integrity) for one legal entity. */
9134
+ async getVoiceTrustProducts(orgUuid, legalEntityUuid) {
9135
+ return this.fetch(
9136
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products`
9137
+ );
9138
+ }
9139
+ /** Reconcile trust product state against Twilio (discovery + status refresh). */
9140
+ async syncVoiceTrustProducts(orgUuid, legalEntityUuid) {
9141
+ return this.fetch(
9142
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/sync`,
9143
+ // Empty JSON body is the CSRF barrier the route requires (GRA-6284).
9144
+ { method: "POST", body: JSON.stringify({}) }
9145
+ );
9146
+ }
9147
+ /**
9148
+ * Set up + submit one voice trust product for a legal entity. Requires
9149
+ * the entity's business profile to be twilio-approved (412 otherwise).
9150
+ */
9151
+ async setupVoiceTrustProduct(orgUuid, legalEntityUuid, product, data) {
9152
+ return this.fetch(
9153
+ `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/${product}`,
9154
+ { method: "POST", body: JSON.stringify(data) }
9155
+ );
9156
+ }
9118
9157
  /**
9119
9158
  * Brand detail with live registration-workflow state (`workflowStatus`,
9120
9159
  * `pendingSampleMessages`) for the sample-approval step.
@@ -14099,7 +14138,7 @@ var init_chunk_V7ZKEH4V = __esm({
14099
14138
  var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS;
14100
14139
  var init_dist = __esm({
14101
14140
  "../sdk/dist/index.js"() {
14102
- init_chunk_LODUVCW6();
14141
+ init_chunk_MUEM2BLY();
14103
14142
  init_chunk_V7ZKEH4V();
14104
14143
  init_chunk_FSSXKQR5();
14105
14144
  SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
@@ -52656,7 +52695,7 @@ init_concierge_api();
52656
52695
 
52657
52696
  // package.json
52658
52697
  var package_default = {
52659
- version: "0.12.0"};
52698
+ version: "0.13.0"};
52660
52699
 
52661
52700
  // src/gr.ts
52662
52701
  var VERSION = package_default.version;