{"version":3,"file":"cancel-statement-execution.mjs","names":[],"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":";;;AAkBA,MAAa,oCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBoD,EAAE,OAAO;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACxJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC7J,CAiBS;CACP,QAjBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACtG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACzG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}