Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,14 @@ export class SnowflakeBubble<
);
}

const result = await response.json();
const result = (await response.json()) as {
resultSetMetaData?: {
numRows: number;
rowType: { name: string; type: string; nullable: boolean }[];
};
data?: (string | null)[][];
statementHandle?: string;
};
Comment on lines +195 to +202
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Snowflake SQL API response shape is now duplicated inline as an anonymous type assertion. To reduce drift (especially since executeStatement already has an explicit return type), consider extracting a named type (e.g., SnowflakeStatementResponse) and reusing it here and in the function signature.

Copilot uses AI. Check for mistakes.

// Handle async execution (202 status)
if (response.status === 202) {
Expand Down
1 change: 1 addition & 0 deletions packages/bubble-shared-schemas/src/ai-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const RECOMMENDED_MODELS = {
// Legacy aliases (unchanged behavior)
BEST: 'google/gemini-3-pro-preview',
BEST_ALT: 'openai/gpt-5.2',
FLAGSHIP: 'google/gemini-3-flash-preview',
PRO: 'google/gemini-3-flash-preview',
PRO_ALT: 'anthropic/claude-sonnet-4-5',
FAST: 'google/gemini-2.5-flash-lite',
Expand Down
Loading