{"version":3,"file":"drop-warehouse.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC/J,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;AAC5Q,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}