@gravity-rail/sdk 0.40.0 → 0.42.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,7 +1,7 @@
1
- import { fV as GravityRailClient } from './chat-interaction-Bj1pciwo.cjs';
2
- export { c4 as ChatInteractionController } from './chat-interaction-Bj1pciwo.cjs';
3
- import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-ByJCQ5BI.cjs';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-D8fZr2Pd.cjs';
1
+ import { fW as GravityRailClient } from './chat-interaction-BBBeSKGl.cjs';
2
+ export { c5 as ChatInteractionController } from './chat-interaction-BBBeSKGl.cjs';
3
+ import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BsLI-h11.cjs';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BXReoljG.cjs';
5
5
  import 'zod';
6
6
 
7
7
  interface OutboundPhoneNumberOption {
package/dist/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { fV as GravityRailClient } from './chat-interaction-BB3ap8_u.js';
2
- export { c4 as ChatInteractionController } from './chat-interaction-BB3ap8_u.js';
3
- import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-ByJCQ5BI.js';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-YNk9MlEl.js';
1
+ import { fW as GravityRailClient } from './chat-interaction-C9dD0qbD.js';
2
+ export { c5 as ChatInteractionController } from './chat-interaction-C9dD0qbD.js';
3
+ import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BsLI-h11.js';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-jjfQHlWl.js';
5
5
  import 'zod';
6
6
 
7
7
  interface OutboundPhoneNumberOption {
package/dist/index.cjs CHANGED
@@ -193,7 +193,6 @@ __export(src_exports, {
193
193
  SendingStopState: () => SendingStopState,
194
194
  SetInstallationPolicyRequestUpgradePolicy: () => SetInstallationPolicyRequestUpgradePolicy,
195
195
  SiteDnsRecordType: () => SiteDnsRecordType,
196
- SolutionReleaseResponseSlug: () => SolutionReleaseResponseSlug,
197
196
  SupervisorsApi: () => SupervisorsApi,
198
197
  TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
199
198
  TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
@@ -843,11 +842,15 @@ function pageQuery(params) {
843
842
  return qs ? `?${qs}` : "";
844
843
  }
845
844
  var BundlesApi = class extends BaseApiClient {
846
- /** Official solution metadata, independent of the default workspace Library. */
847
- async getSolutionRelease(slug) {
848
- return this.fetch(`solutions/${encodeURIComponent(slug)}`);
845
+ /** Bundles shared with everyone. Needs no session. */
846
+ async listPublicBundles(params) {
847
+ return this.fetch(`bundles/public${pageQuery(params)}`);
849
848
  }
850
- /** Read an authorized Bundle by UUID, including official solutions hidden from discovery. */
849
+ /** The outline of one Bundle shared with everyone. Needs no session; 404 otherwise. */
850
+ async getPublicBundle(bundleUuid) {
851
+ return this.fetch(`bundles/${encodeURIComponent(bundleUuid)}/public`);
852
+ }
853
+ /** Read an authorized Bundle by UUID. */
851
854
  async getBundle(wid, bundleUuid) {
852
855
  return this.fetch(bundlesPath(wid, bundleUuid));
853
856
  }
@@ -932,9 +935,9 @@ var BundlesApi = class extends BaseApiClient {
932
935
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"));
933
936
  }
934
937
  /**
935
- * Share throughout the publisher's organization with organization-admin authority.
936
- * Workspace-specific and global author grants are refused. Official public
937
- * solutions use the separate staff approval API.
938
+ * Share throughout the publisher's organization with organization-admin authority,
939
+ * or with everyone (`granteeType: "global"`) as a superuser. Workspace-specific
940
+ * grants are refused.
938
941
  */
939
942
  async grantBundle(wid, bundleUuid, data) {
940
943
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"), {
@@ -10152,15 +10155,11 @@ var WorkflowsApi = class extends BaseApiClient {
10152
10155
  return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
10153
10156
  }
10154
10157
  /**
10155
- * Get workflow thumbnail URL.
10156
- * For cross-domain setups, returns a same-origin proxy URL to ensure cookies are sent.
10157
- * For same-origin setups, returns the direct API URL.
10158
+ * The outline a Workflow's diagram is drawn from: its active Tasks, its
10159
+ * start Task, the moves between Tasks and its Ability types.
10158
10160
  */
10159
- getWorkflowThumbnailUrl(wid, id) {
10160
- if (this.isCrossDomain) {
10161
- return `/api/v2/w/${wid}/workflows/${id}/thumbnail`;
10162
- }
10163
- return `${this.baseUrl}/api/v2/w/${wid}/workflows/${id}/thumbnail`;
10161
+ async getWorkflowOutline(wid, id) {
10162
+ return this.fetch(`w/${wid}/workflows/${id}/outline`);
10164
10163
  }
10165
10164
  /** Create a new workflow in a workspace. */
10166
10165
  async createWorkflow(wid, workflow) {
@@ -12183,14 +12182,6 @@ var FormBundleItemRecordScope = {
12183
12182
  workspace: "workspace",
12184
12183
  anonymous: "anonymous"
12185
12184
  };
12186
- var SolutionReleaseResponseSlug = {
12187
- "member-enrollment": "member-enrollment",
12188
- "member-reengagement": "member-reengagement",
12189
- "treatment-adherence": "treatment-adherence",
12190
- "heart-health": "heart-health",
12191
- "recovery-checkins": "recovery-checkins",
12192
- "care-coordination": "care-coordination"
12193
- };
12194
12185
 
12195
12186
  // src/types/generated/installation_contract.ts
12196
12187
  var InstallationItemChangeChange = {
@@ -12976,11 +12967,11 @@ var WORKSPACE_METHOD_NAMES = [
12976
12967
  "getWorkflowDeletionPreview",
12977
12968
  "getWorkflowDiagram",
12978
12969
  "getWorkflowNotes",
12970
+ "getWorkflowOutline",
12979
12971
  "getWorkflowRevision",
12980
12972
  "getWorkflowRevisions",
12981
12973
  "getWorkflowTaskAssignmentStats",
12982
12974
  "getWorkflowTemplates",
12983
- "getWorkflowThumbnailUrl",
12984
12975
  "getWorkflows",
12985
12976
  "getWorkflowsActivityBatch",
12986
12977
  "getWorkspace",
@@ -13882,7 +13873,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
13882
13873
  target.getWorkflowActivity = workflows.getWorkflowActivity.bind(workflows);
13883
13874
  target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
13884
13875
  target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
13885
- target.getWorkflowThumbnailUrl = workflows.getWorkflowThumbnailUrl.bind(workflows);
13876
+ target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
13886
13877
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
13887
13878
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
13888
13879
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
@@ -14375,7 +14366,8 @@ function bindResourceWorkflowsMethods(target, resourceWorkflows) {
14375
14366
  // src/client/bindings/bundles.ts
14376
14367
  function bindBundlesMethods(target, bundles, resourceWorkflows) {
14377
14368
  bindResourceWorkflowsMethods(target, resourceWorkflows);
14378
- target.getSolutionRelease = bundles.getSolutionRelease.bind(bundles);
14369
+ target.listPublicBundles = bundles.listPublicBundles.bind(bundles);
14370
+ target.getPublicBundle = bundles.getPublicBundle.bind(bundles);
14379
14371
  target.updateBundle = bundles.updateBundle.bind(bundles);
14380
14372
  target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
14381
14373
  target.listBundles = bundles.listBundles.bind(bundles);
@@ -14907,7 +14899,8 @@ var GravityRailClient = class {
14907
14899
  updateBundle;
14908
14900
  listBundleInstallations;
14909
14901
  // Bundles API
14910
- getSolutionRelease;
14902
+ listPublicBundles;
14903
+ getPublicBundle;
14911
14904
  listBundles;
14912
14905
  listBundleWorkflowCandidates;
14913
14906
  createBundle;
@@ -15273,7 +15266,7 @@ var GravityRailClient = class {
15273
15266
  getWorkflowActivity;
15274
15267
  getWorkflowsActivityBatch;
15275
15268
  getWorkflowDiagram;
15276
- getWorkflowThumbnailUrl;
15269
+ getWorkflowOutline;
15277
15270
  createWorkflow;
15278
15271
  updateWorkflow;
15279
15272
  getWorkflowDeletionPreview;
@@ -20087,7 +20080,6 @@ function toSafeMemberImportSummary(event) {
20087
20080
  SendingStopState,
20088
20081
  SetInstallationPolicyRequestUpgradePolicy,
20089
20082
  SiteDnsRecordType,
20090
- SolutionReleaseResponseSlug,
20091
20083
  SupervisorsApi,
20092
20084
  TTS_MODEL_AWS_POLLY_GENERATIVE,
20093
20085
  TTS_MODEL_AWS_POLLY_NEURAL,