@unboundcx/sdk 4.13.168 → 4.13.169

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "4.13.168",
3
+ "version": "4.13.169",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -21,6 +21,25 @@ export class WorkflowsService {
21
21
  return result;
22
22
  }
23
23
 
24
+ // Places every module on a version. Main path goes down, branches sit
25
+ // beside the module they leave. Published versions are rejected.
26
+ async layoutVersion(workflowVersionId) {
27
+ this.sdk.validateParams(
28
+ { workflowVersionId },
29
+ {
30
+ workflowVersionId: { type: 'string', required: true },
31
+ },
32
+ );
33
+
34
+ const result = await internalRequest(
35
+ this.sdk,
36
+ `/workflows/${workflowVersionId}/layout`,
37
+ 'POST',
38
+ { body: {} },
39
+ );
40
+ return result;
41
+ }
42
+
24
43
  async listFormulaFunctions() {
25
44
  const result = await internalRequest(this.sdk,
26
45
  '/workflows/formula-functions',