Skip to content

Variable: GenieQueryAttachmentSchema

const GenieQueryAttachmentSchema: ZodObject<{ description: ZodOptional<ZodString>; id: ZodOptional<ZodString>; last_updated_timestamp: ZodOptional<ZodNumber>; parameters: ZodOptional<ZodArray<ZodObject<{ keyword: ZodOptional<ZodString>; sql_type: ZodOptional<ZodString>; value: ZodOptional<ZodString>; }, $strip>>>; query: ZodOptional<ZodString>; query_result_metadata: ZodOptional<ZodObject<{ is_truncated: ZodOptional<ZodBoolean>; row_count: ZodOptional<ZodNumber>; }, $strip>>; statement_id: ZodOptional<ZodString>; thoughts: ZodOptional<ZodArray<ZodObject<{ content: ZodString; thought_type: ZodCustom<GenieThoughtType, GenieThoughtType>; }, $strip>>>; title: ZodOptional<ZodString>; }, $strip>

GenieQueryAttachment widened with the thoughts[] field the Genie wire exposes but the SDK doesn’t currently type. Every other field (description, query, statement_id, query_result_metadata, title, parameters, last_updated_timestamp, id) flows through verbatim from the SDK schema.