( params: Record<string, unknown> | undefined )
| 22 | } |
| 23 | |
| 24 | function paramsToSubBlocks( |
| 25 | params: Record<string, unknown> | undefined |
| 26 | ): Record<string, SubBlockWithValue> { |
| 27 | if (!params) return {} |
| 28 | |
| 29 | const subBlocks: Record<string, SubBlockWithValue> = {} |
| 30 | for (const [key, value] of Object.entries(params)) { |
| 31 | subBlocks[key] = { value } |
| 32 | } |
| 33 | return subBlocks |
| 34 | } |
| 35 | |
| 36 | function getRegistrySchema(block: SerializedBlock): OutputSchema | undefined { |
| 37 | const blockType = block.metadata?.id |