{"version":3,"file":"count-action-runs.mjs","names":[],"sources":["../../src/actions/count-action-runs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { supabase } from \"../app\";\n\nexport const SupabaseCountActionRunsInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (20 alphanumeric characters) of your Supabase project. You can find this in your project's dashboard URL or by calling the List All Projects action.\"),\n}).describe(\"Request schema for `CountActionRuns`\");\nexport const SupabaseCountActionRunsOutput = z.object({\n  count: z.number().int().describe(\"The total count of action runs for the project, typically extracted from response headers.\").nullable().optional(),\n  status_code: z.number().int().describe(\"HTTP status code of the response (200 for success).\").nullable(),\n}).passthrough().describe(\"Response schema for count action runs.\\n\\nSince this is a HEAD request, the count is typically returned in response headers\\n(e.g., X-Total-Count or similar). This model captures that information.\");\n\nexport const supabaseCountActionRuns: AppAction<\n  typeof SupabaseCountActionRunsInput,\n  typeof SupabaseCountActionRunsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_COUNT_ACTION_RUNS\", {\n  slug: \"supabase-count-action-runs\",\n  name: \"Count action runs\",\n  description: \"Counts the number of action runs for a Supabase project using a HEAD request. Use this when you need to retrieve the total count of action runs without fetching the full list of runs.\",\n  input: SupabaseCountActionRunsInput,\n  output: SupabaseCountActionRunsOutput,\n});\n"],"mappings":";;;AAcA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO,EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACzM,CAAC,CAAC,CAAC,SAAS,sCAcH;CACP,QAd2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sMAWhB;AACV,CAAC"}