@gravity-rail/cli 0.33.1 → 0.34.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
@@ -3230,7 +3230,7 @@ var init_libphonenumber_js = __esm({
3230
3230
  }
3231
3231
  });
3232
3232
 
3233
- // ../sdk/dist/chunk-ZGXE5SVN.js
3233
+ // ../sdk/dist/chunk-ON7HBHJA.js
3234
3234
  function sanitizePhoneForBackend(phoneNumber) {
3235
3235
  try {
3236
3236
  let parsed = parsePhoneNumber4(phoneNumber);
@@ -4134,6 +4134,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
4134
4134
  target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
4135
4135
  target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
4136
4136
  target.sendInboxEmail = inboxes.sendInboxEmail.bind(inboxes);
4137
+ target.previewInboxEmail = inboxes.previewInboxEmail.bind(inboxes);
4138
+ target.previewEmailReply = inboxes.previewEmailReply.bind(inboxes);
4137
4139
  target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
4138
4140
  target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
4139
4141
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
@@ -4607,8 +4609,8 @@ function getRevisionState(workflow, revision) {
4607
4609
  };
4608
4610
  }
4609
4611
  var AbilitiesApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, 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, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, ProjectsApi, TrackedLinksApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES, ActivityGrain, ActivityGroupBy, ActivityOpenItemOrder, ActivityWindowBasis;
4610
- var init_chunk_ZGXE5SVN = __esm({
4611
- "../sdk/dist/chunk-ZGXE5SVN.js"() {
4612
+ var init_chunk_ON7HBHJA = __esm({
4613
+ "../sdk/dist/chunk-ON7HBHJA.js"() {
4612
4614
  init_chunk_P2E6LU7I();
4613
4615
  init_libphonenumber_js();
4614
4616
  AbilitiesApi = class extends BaseApiClient {
@@ -8012,6 +8014,32 @@ var init_chunk_ZGXE5SVN = __esm({
8012
8014
  body: JSON.stringify(body)
8013
8015
  });
8014
8016
  }
8017
+ /**
8018
+ * Render a compose or `email:send` template draft through the same
8019
+ * outbound body-assembly seam (footer, layout wrapper, markdown fallback)
8020
+ * as sending. Preview excludes delivery-specific MIME transformations,
8021
+ * including inline-image content IDs.
8022
+ */
8023
+ async previewInboxEmail(wid, inboxId, body) {
8024
+ return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/preview`, {
8025
+ method: "POST",
8026
+ body: JSON.stringify(body)
8027
+ });
8028
+ }
8029
+ /**
8030
+ * Render a reply draft, including its quote, through outbound body
8031
+ * assembly. Preview excludes delivery-specific MIME transformations,
8032
+ * including inline-image content IDs.
8033
+ */
8034
+ async previewEmailReply(wid, inboxId, emailId, body) {
8035
+ return this.fetch(
8036
+ `w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply-preview`,
8037
+ {
8038
+ method: "POST",
8039
+ body: JSON.stringify(body)
8040
+ }
8041
+ );
8042
+ }
8015
8043
  /**
8016
8044
  * Make a stored email's sender a Member of this workspace.
8017
8045
  *
@@ -9598,10 +9626,19 @@ var init_chunk_ZGXE5SVN = __esm({
9598
9626
  }
9599
9627
  /**
9600
9628
  * Enable custom site routing for a verified org domain.
9629
+ *
9630
+ * Pass `{ childHosting: true }` to enable the domain as a **parent**
9631
+ * instead: it publishes one `*.<domain>` wildcard CNAME, serves nothing
9632
+ * at its own name, and hosts are added beneath it afterwards. The mode
9633
+ * is fixed at enable — disable and re-enable to change it.
9634
+ *
9635
+ * The request always carries a JSON body, `{}` by default: the route
9636
+ * requires one as a CSRF barrier.
9601
9637
  */
9602
- async enableOrgDomainSite(orgIdOrUuid, domainUuid) {
9638
+ async enableOrgDomainSite(orgIdOrUuid, domainUuid, options = {}) {
9603
9639
  return this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}/site`, {
9604
- method: "POST"
9640
+ method: "POST",
9641
+ body: JSON.stringify(options)
9605
9642
  });
9606
9643
  }
9607
9644
  /**
@@ -9613,12 +9650,15 @@ var init_chunk_ZGXE5SVN = __esm({
9613
9650
  /**
9614
9651
  * Pre-enable DNS check: is the site CNAME resolving to the routing
9615
9652
  * endpoint yet? Pure DNS — consumes no enable budget.
9653
+ *
9654
+ * Pass `{ childHosting: true }` to check the mode you intend to enable
9655
+ * in: the wildcard is probed instead of the domain's own CNAME.
9616
9656
  */
9617
- async preflightOrgDomainSite(orgIdOrUuid, domainUuid) {
9657
+ async preflightOrgDomainSite(orgIdOrUuid, domainUuid, options = {}) {
9618
9658
  return this.fetch(
9619
9659
  `o/${orgIdOrUuid}/domains/${domainUuid}/site/preflight`,
9620
- // Empty JSON body: the route requires one as a CSRF barrier.
9621
- { method: "POST", body: JSON.stringify({}) }
9660
+ // JSON body, `{}` by default: the route requires one as a CSRF barrier.
9661
+ { method: "POST", body: JSON.stringify(options) }
9622
9662
  );
9623
9663
  }
9624
9664
  /**
@@ -9630,6 +9670,27 @@ var init_chunk_ZGXE5SVN = __esm({
9630
9670
  { method: "POST" }
9631
9671
  );
9632
9672
  }
9673
+ /**
9674
+ * Create one child host beneath a child-hosting parent domain.
9675
+ *
9676
+ * The child gets its own CloudFront tenant and managed certificate and
9677
+ * needs no customer DNS: the parent's wildcard CNAME already routes it.
9678
+ */
9679
+ async createOrgDomainSiteChildHost(orgIdOrUuid, parentDomainUuid, request) {
9680
+ return this.fetch(
9681
+ `o/${orgIdOrUuid}/domains/${parentDomainUuid}/site/children`,
9682
+ { method: "POST", body: JSON.stringify(request) }
9683
+ );
9684
+ }
9685
+ /**
9686
+ * List the child hosts beneath a child-hosting parent domain, with live
9687
+ * per-host status.
9688
+ */
9689
+ async listOrgDomainSiteChildHosts(orgIdOrUuid, parentDomainUuid) {
9690
+ return this.fetch(
9691
+ `o/${orgIdOrUuid}/domains/${parentDomainUuid}/site/children`
9692
+ );
9693
+ }
9633
9694
  /**
9634
9695
  * Disable custom site routing for an org domain.
9635
9696
  */
@@ -14696,10 +14757,12 @@ var init_chunk_ZGXE5SVN = __esm({
14696
14757
  "markEmailAsUnread",
14697
14758
  "markNotificationAsRead",
14698
14759
  "mergeMemberRoles",
14760
+ "previewEmailReply",
14699
14761
  "previewImportMembers",
14700
14762
  "previewMemberWorkflowVoice",
14701
14763
  "previewRenameFieldSlug",
14702
14764
  "previewImportWorkspace",
14765
+ "previewInboxEmail",
14703
14766
  "previewRoutineVoiceReadiness",
14704
14767
  "previewRoutineWorkflowAccess",
14705
14768
  "previewSchedule",
@@ -15640,6 +15703,8 @@ var init_chunk_ZGXE5SVN = __esm({
15640
15703
  getChatEmails;
15641
15704
  replyToEmail;
15642
15705
  sendInboxEmail;
15706
+ previewInboxEmail;
15707
+ previewEmailReply;
15643
15708
  getNotificationRules;
15644
15709
  createNotificationRule;
15645
15710
  updateNotificationRule;
@@ -16212,7 +16277,7 @@ var init_chunk_HRUMZ46V = __esm({
16212
16277
  var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
16213
16278
  var init_dist = __esm({
16214
16279
  "../sdk/dist/index.js"() {
16215
- init_chunk_ZGXE5SVN();
16280
+ init_chunk_ON7HBHJA();
16216
16281
  init_chunk_HRUMZ46V();
16217
16282
  init_chunk_P2E6LU7I();
16218
16283
  SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
@@ -43076,7 +43141,7 @@ init_concierge_api();
43076
43141
 
43077
43142
  // package.json
43078
43143
  var package_default = {
43079
- version: "0.33.1"};
43144
+ version: "0.34.0"};
43080
43145
 
43081
43146
  // src/gr.ts
43082
43147
  var VERSION = package_default.version;