@happyrobot-ai/sdk 0.1.21 → 0.1.22

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/README.md CHANGED
@@ -247,6 +247,8 @@ const vars = await client.nodes.getAvailableVars("version-id", "node-id");
247
247
  const result = await client.nodes.test("version-id", "node-id");
248
248
  ```
249
249
 
250
+ Groups returned by `getAvailableVars` can include `is_list: true`. That means variables in the group resolve as arrays outside their loop. Sequential and parallel loops both return arrays; a single iteration returns a one-item array.
251
+
250
252
  | Method | HTTP | Path | Description |
251
253
  | ------------------------------------- | ------ | ------------------------------------------ | -------------------------------------------------- |
252
254
  | `list(versionId)` | GET | `/versions/:vId/nodes` | List all nodes in a version |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyrobot-ai/sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "TypeScript SDK for the HappyRobot Public API",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -44,7 +44,6 @@ export declare class NodesResource {
44
44
  delete(versionId: string, nodeId: string): Promise<void>;
45
45
  /** Get the configuration schema for a node (field types, requirements, options). */
46
46
  getConfigSchema(versionId: string, nodeId: string): Promise<ConfigSchemaResponse>;
47
- /** Get available upstream variables for a node. */
48
47
  getAvailableVars(versionId: string, nodeId: string): Promise<AvailableVarsResponse>;
49
48
  /** Test a single node. The version must not be published. */
50
49
  test(versionId: string, nodeId: string, body?: TestNodeBody): Promise<TestNodeResponse>;
@@ -64,7 +64,8 @@ class NodesResource {
64
64
  path: `/versions/${enc(versionId)}/nodes/${enc(nodeId)}/config-schema`,
65
65
  });
66
66
  }
67
- /** Get available upstream variables for a node. */
67
+ // Get available upstream variables for a node. Groups with is_list=true
68
+ // resolve as arrays outside their loop for both sequential and parallel loops.
68
69
  async getAvailableVars(versionId, nodeId) {
69
70
  return this.http.request({
70
71
  method: "GET",