{"version":3,"file":"drop-warehouse.mjs","names":[],"sources":["../../src/actions/drop-warehouse.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 SnowflakeDropWarehouseInput = z.object({\n  name: z.string().describe(\"Identifier (i.e. name) for the warehouse to drop. The value is case-sensitive and must match the exact warehouse name in Snowflake.\"),\n  if_exists: z.boolean().default(false).describe(\"If true, the endpoint does not throw an error if the warehouse does not exist. It returns a 200 success response without taking action. If false, the endpoint throws an error if the warehouse doesn't exist.\").optional(),\n});\nexport const SnowflakeDropWarehouseOutput = z.object({\n  code: z.string().describe(\"Message code for asynchronous deletion (202 response).\").nullable().optional(),\n  status: z.string().describe(\"Status message for successful synchronous deletion (200 response).\").nullable().optional(),\n  message: z.string().describe(\"Message for asynchronous deletion indicating execution in progress (202 response).\").nullable().optional(),\n  resultHandler: z.string().describe(\"Opaque result ID used for checking request completion status (202 response).\").nullable().optional(),\n}).passthrough();\n\nexport const snowflakeDropWarehouse: AppAction<\n  typeof SnowflakeDropWarehouseInput,\n  typeof SnowflakeDropWarehouseOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_DROP_WAREHOUSE\", {\n  slug: \"snowflake-drop-warehouse\",\n  name: \"Drop Warehouse\",\n  description: \"Drops (permanently deletes) a warehouse in Snowflake. This operation is irreversible — once a warehouse is dropped, it cannot be recovered. Use this action when you need to permanently remove a warehouse that is no longer needed. Requires OWNERSHIP privilege on the warehouse.\",\n  input: SnowflakeDropWarehouseInput,\n  output: SnowflakeDropWarehouseOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;EAC/J,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC5Q,CAgBS;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}