{"version":3,"file":"cancel-statement-execution.cjs","names":["z","action"],"sources":["../../src/actions/cancel-statement-execution.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { snowflake } from \"../app\";\n\nexport const SnowflakeCancelStatementExecutionInput = z.object({\n  request_id: z.string().describe(\"Unique ID (a UUID) of the API request. This is an optional parameter that can be used to track the request.\").optional(),\n  statementHandle: z.string().describe(\"The handle of the statement to be cancelled. This can be obtained from the response of the execute_statement action.\"),\n});\nexport const SnowflakeCancelStatementExecutionOutput = z.object({\n  code: z.string().describe(\"The response code from the Snowflake API.\").nullable(),\n  message: z.string().describe(\"A message indicating the result of the cancellation request.\").nullable(),\n  sqlState: z.string().describe(\"The SQL state of the statement after the cancellation request.\").nullable(),\n  statementHandle: z.string().describe(\"The handle of the statement that was cancelled.\").nullable(),\n  statementStatusUrl: z.string().describe(\"The URL to check the status of the statement.\").nullable(),\n}).passthrough();\n\nexport const snowflakeCancelStatementExecution: AppAction<\n  typeof SnowflakeCancelStatementExecutionInput,\n  typeof SnowflakeCancelStatementExecutionOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_CANCEL_STATEMENT_EXECUTION\", {\n  slug: \"snowflake-cancel-statement-execution\",\n  name: \"Cancel Statement Execution\",\n  description: \"Cancels the execution of a running SQL statement. Use this action to stop a long-running query.\",\n  input: SnowflakeCancelStatementExecutionInput,\n  output: SnowflakeCancelStatementExecutionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACxJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC7J,CAAC;AACD,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}