From bba8b784f7377d312c58ccaf03a0dfe00d1f825e Mon Sep 17 00:00:00 2001 From: Danny Roosevelt Date: Thu, 5 Jun 2025 13:58:40 -0700 Subject: [PATCH 1/3] Add SQL prop type support to Pipedream SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add ConfigurablePropSql type with auth property - Include SQL in ConfigurableProp union type - Add SQL case to PropValue type mapping for structured payload 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- packages/sdk/src/shared/component.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/sdk/src/shared/component.ts b/packages/sdk/src/shared/component.ts index 1821740db0eac..37916b5f5b383 100644 --- a/packages/sdk/src/shared/component.ts +++ b/packages/sdk/src/shared/component.ts @@ -86,12 +86,17 @@ export type ConfigurablePropStringArray = BaseConfigurableProp & { type: "string[]"; secret?: boolean; // TODO is this supported } & Defaultable; // TODO +export type ConfigurablePropSql = BaseConfigurableProp & { + type: "sql"; + auth: { + app: string; + }; +} & Defaultable; // | { type: "$.interface.http" } // source only // | { type: "$.interface.timer" } // source only // | { type: "$.service.db" } // | { type: "data_store" } // | { type: "http_request" } -// | { type: "sql" } -- not in component api docs! export type ConfigurableProp = | ConfigurablePropAlert | ConfigurablePropAny @@ -101,6 +106,7 @@ export type ConfigurableProp = | ConfigurablePropObject | ConfigurablePropString | ConfigurablePropStringArray + | ConfigurablePropSql | (BaseConfigurableProp & { type: "$.discord.channel"; }); export type ConfigurableProps = Readonly; @@ -121,6 +127,8 @@ export type PropValue = T extends "alert" ? string : T extends "string[]" ? string[] // XXX support arrays differently? + : T extends "sql" + ? { app: string; query: string; params: unknown[]; } : never; export type ConfiguredProps = { From 7b6a889eab2af537c62f054268cce0f628953ba3 Mon Sep 17 00:00:00 2001 From: Danny Roosevelt Date: Thu, 5 Jun 2025 14:01:09 -0700 Subject: [PATCH 2/3] Update pnpm-lock.yaml --- pnpm-lock.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81a357245fbf5..2d2418143e493 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15615,6 +15615,14 @@ importers: specifier: ^6.0.0 version: 6.2.0 + modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/cjs: {} + + modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/esm: {} + + modelcontextprotocol/node_modules2/zod-to-json-schema/dist/cjs: {} + + modelcontextprotocol/node_modules2/zod-to-json-schema/dist/esm: {} + packages/ai: dependencies: '@pipedream/sdk': From 3a34fd1eb696d3ff5cd3e00f54ce88d49efe7c3b Mon Sep 17 00:00:00 2001 From: Danny Roosevelt Date: Thu, 5 Jun 2025 14:05:09 -0700 Subject: [PATCH 3/3] Version and changelog --- packages/sdk/CHANGELOG.md | 6 ++++++ packages/sdk/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index c11cc097b0937..ab7c12343032f 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -2,6 +2,12 @@ # Changelog +## [1.6.6] - 2025-06-05 + +### Added + +- Added support for `sql` prop type for `connect-react` package + ## [1.6.5] - 2025-06-02 ### Changed diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 76f7120356da2..b7ab70e1a4588 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,7 +1,7 @@ { "name": "@pipedream/sdk", "type": "module", - "version": "1.6.5", + "version": "1.6.6", "description": "Pipedream SDK", "main": "./dist/server.js", "module": "./dist/server.js",