{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.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 SnowflakeValidateCredentialInput = z.object({}).describe(\"Request model for validating Snowflake credentials.\");\nexport const SnowflakeValidateCredentialOutput = z.object({\n  message: z.string().describe(\"Additional status message or error details\").nullable().optional(),\n  is_valid: z.boolean().describe(\"Indicates whether the credentials are valid and the session is active\").nullable(),\n  session_id: z.string().describe(\"Unique system identifier for the Snowflake session if credentials are valid\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const snowflakeValidateCredential: AppAction<\n  typeof SnowflakeValidateCredentialInput,\n  typeof SnowflakeValidateCredentialOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_VALIDATE_CREDENTIAL\", {\n  slug: \"snowflake-validate-credential\",\n  name: \"Validate Credential\",\n  description: \"Validates Snowflake credentials by executing a lightweight test query. Returns session information if credentials are valid, or error details if authentication fails. Use this action when you need to verify that API credentials are properly configured and have access to the Snowflake account before executing other operations. This check does not require compute resources (warehouse) and completes quickly.\",\n  input: SnowflakeValidateCredentialInput,\n  output: SnowflakeValidateCredentialOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAC3H,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,8BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}