@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.
package/dist/internal.cjs CHANGED
@@ -242,7 +242,6 @@ __export(internal_exports, {
242
242
  SitesApi: () => SitesApi,
243
243
  SlackAppsApi: () => SlackAppsApi,
244
244
  SnippetsApi: () => SnippetsApi,
245
- SolutionReleaseResponseSlug: () => SolutionReleaseResponseSlug,
246
245
  SubscriptionsApi: () => SubscriptionsApi,
247
246
  SupervisorsApi: () => SupervisorsApi,
248
247
  SupportRequestsApi: () => SupportRequestsApi,
@@ -1580,13 +1579,10 @@ var CustomerActivityClassifierLabel = {
1580
1579
  transcription_quality: "transcription_quality",
1581
1580
  repetitive_loop: "repetitive_loop",
1582
1581
  manager_no_response: "manager_no_response",
1582
+ manager_incomplete_task: "manager_incomplete_task",
1583
1583
  docs_or_skill_gap: "docs_or_skill_gap",
1584
1584
  discovery_thrash: "discovery_thrash",
1585
- manager_incomplete_task: "manager_incomplete_task",
1586
- manager_language_mismatch: "manager_language_mismatch",
1587
- sandbox_failure: "sandbox_failure",
1588
- cli_contract_error: "cli_contract_error",
1589
- unverified_completion: "unverified_completion"
1585
+ manager_language_mismatch: "manager_language_mismatch"
1590
1586
  };
1591
1587
  var CustomerActivityEventSource = {
1592
1588
  system: "system",
@@ -3542,11 +3538,15 @@ function pageQuery(params) {
3542
3538
  return qs ? `?${qs}` : "";
3543
3539
  }
3544
3540
  var BundlesApi = class extends BaseApiClient {
3545
- /** Official solution metadata, independent of the default workspace Library. */
3546
- async getSolutionRelease(slug) {
3547
- return this.fetch(`solutions/${encodeURIComponent(slug)}`);
3541
+ /** Bundles shared with everyone. Needs no session. */
3542
+ async listPublicBundles(params) {
3543
+ return this.fetch(`bundles/public${pageQuery(params)}`);
3544
+ }
3545
+ /** The outline of one Bundle shared with everyone. Needs no session; 404 otherwise. */
3546
+ async getPublicBundle(bundleUuid) {
3547
+ return this.fetch(`bundles/${encodeURIComponent(bundleUuid)}/public`);
3548
3548
  }
3549
- /** Read an authorized Bundle by UUID, including official solutions hidden from discovery. */
3549
+ /** Read an authorized Bundle by UUID. */
3550
3550
  async getBundle(wid, bundleUuid) {
3551
3551
  return this.fetch(bundlesPath(wid, bundleUuid));
3552
3552
  }
@@ -3631,9 +3631,9 @@ var BundlesApi = class extends BaseApiClient {
3631
3631
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"));
3632
3632
  }
3633
3633
  /**
3634
- * Share throughout the publisher's organization with organization-admin authority.
3635
- * Workspace-specific and global author grants are refused. Official public
3636
- * solutions use the separate staff approval API.
3634
+ * Share throughout the publisher's organization with organization-admin authority,
3635
+ * or with everyone (`granteeType: "global"`) as a superuser. Workspace-specific
3636
+ * grants are refused.
3637
3637
  */
3638
3638
  async grantBundle(wid, bundleUuid, data) {
3639
3639
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"), {
@@ -12844,15 +12844,11 @@ var WorkflowsApi = class extends BaseApiClient {
12844
12844
  return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
12845
12845
  }
12846
12846
  /**
12847
- * Get workflow thumbnail URL.
12848
- * For cross-domain setups, returns a same-origin proxy URL to ensure cookies are sent.
12849
- * For same-origin setups, returns the direct API URL.
12847
+ * The outline a Workflow's diagram is drawn from: its active Tasks, its
12848
+ * start Task, the moves between Tasks and its Ability types.
12850
12849
  */
12851
- getWorkflowThumbnailUrl(wid, id) {
12852
- if (this.isCrossDomain) {
12853
- return `/api/v2/w/${wid}/workflows/${id}/thumbnail`;
12854
- }
12855
- return `${this.baseUrl}/api/v2/w/${wid}/workflows/${id}/thumbnail`;
12850
+ async getWorkflowOutline(wid, id) {
12851
+ return this.fetch(`w/${wid}/workflows/${id}/outline`);
12856
12852
  }
12857
12853
  /** Create a new workflow in a workspace. */
12858
12854
  async createWorkflow(wid, workflow) {
@@ -14547,11 +14543,11 @@ var WORKSPACE_METHOD_NAMES = [
14547
14543
  "getWorkflowDeletionPreview",
14548
14544
  "getWorkflowDiagram",
14549
14545
  "getWorkflowNotes",
14546
+ "getWorkflowOutline",
14550
14547
  "getWorkflowRevision",
14551
14548
  "getWorkflowRevisions",
14552
14549
  "getWorkflowTaskAssignmentStats",
14553
14550
  "getWorkflowTemplates",
14554
- "getWorkflowThumbnailUrl",
14555
14551
  "getWorkflows",
14556
14552
  "getWorkflowsActivityBatch",
14557
14553
  "getWorkspace",
@@ -15453,7 +15449,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
15453
15449
  target.getWorkflowActivity = workflows.getWorkflowActivity.bind(workflows);
15454
15450
  target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
15455
15451
  target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
15456
- target.getWorkflowThumbnailUrl = workflows.getWorkflowThumbnailUrl.bind(workflows);
15452
+ target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
15457
15453
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
15458
15454
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
15459
15455
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
@@ -15946,7 +15942,8 @@ function bindResourceWorkflowsMethods(target, resourceWorkflows) {
15946
15942
  // src/client/bindings/bundles.ts
15947
15943
  function bindBundlesMethods(target, bundles, resourceWorkflows) {
15948
15944
  bindResourceWorkflowsMethods(target, resourceWorkflows);
15949
- target.getSolutionRelease = bundles.getSolutionRelease.bind(bundles);
15945
+ target.listPublicBundles = bundles.listPublicBundles.bind(bundles);
15946
+ target.getPublicBundle = bundles.getPublicBundle.bind(bundles);
15950
15947
  target.updateBundle = bundles.updateBundle.bind(bundles);
15951
15948
  target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
15952
15949
  target.listBundles = bundles.listBundles.bind(bundles);
@@ -16478,7 +16475,8 @@ var GravityRailClient = class {
16478
16475
  updateBundle;
16479
16476
  listBundleInstallations;
16480
16477
  // Bundles API
16481
- getSolutionRelease;
16478
+ listPublicBundles;
16479
+ getPublicBundle;
16482
16480
  listBundles;
16483
16481
  listBundleWorkflowCandidates;
16484
16482
  createBundle;
@@ -16844,7 +16842,7 @@ var GravityRailClient = class {
16844
16842
  getWorkflowActivity;
16845
16843
  getWorkflowsActivityBatch;
16846
16844
  getWorkflowDiagram;
16847
- getWorkflowThumbnailUrl;
16845
+ getWorkflowOutline;
16848
16846
  createWorkflow;
16849
16847
  updateWorkflow;
16850
16848
  getWorkflowDeletionPreview;
@@ -17511,16 +17509,6 @@ var ChatInteractionController = class {
17511
17509
  this.pending = void 0;
17512
17510
  }
17513
17511
  };
17514
-
17515
- // src/types/generated/bundle_contract.ts
17516
- var SolutionReleaseResponseSlug = {
17517
- "member-enrollment": "member-enrollment",
17518
- "member-reengagement": "member-reengagement",
17519
- "treatment-adherence": "treatment-adherence",
17520
- "heart-health": "heart-health",
17521
- "recovery-checkins": "recovery-checkins",
17522
- "care-coordination": "care-coordination"
17523
- };
17524
17512
  // Annotate the CommonJS export names for ESM import in node:
17525
17513
  0 && (module.exports = {
17526
17514
  AGENT_NOTE_ORIGINS,
@@ -17745,7 +17733,6 @@ var SolutionReleaseResponseSlug = {
17745
17733
  SitesApi,
17746
17734
  SlackAppsApi,
17747
17735
  SnippetsApi,
17748
- SolutionReleaseResponseSlug,
17749
17736
  SubscriptionsApi,
17750
17737
  SupervisorsApi,
17751
17738
  SupportRequestsApi,