{"version":3,"file":"get-resumable-upload-options.cjs","names":["z","action"],"sources":["../../src/actions/get-resumable-upload-options.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 SupabaseGetResumableUploadOptionsInput = z.object({\n  wildcard: z.string().describe(\"The wildcard path parameter representing the upload ID or file path for the TUS resumable upload. Used to identify the specific upload resource for CORS preflight requests.\"),\n}).describe(\"Request schema for `GetResumableUploadOptions`\");\nexport const SupabaseGetResumableUploadOptionsOutput = z.object({\n  tus_version: z.string().describe(\"Comma-separated list of TUS protocol versions supported by the server.\").nullable().optional(),\n  tus_max_size: z.string().describe(\"Maximum allowed upload size in bytes.\").nullable().optional(),\n  tus_extension: z.string().describe(\"Comma-separated list of TUS extensions supported by the server (e.g., creation, termination).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetResumableUploadOptions`.\\n\\nOPTIONS requests for TUS protocol return minimal or no body content. The response\\nprimarily sets CORS and TUS-related headers indicating server capabilities including\\nsupported TUS versions, extensions, and upload configuration limits.\");\n\nexport const supabaseGetResumableUploadOptions: AppAction<\n  typeof SupabaseGetResumableUploadOptionsInput,\n  typeof SupabaseGetResumableUploadOptionsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_RESUMABLE_UPLOAD_OPTIONS\", {\n  slug: \"supabase-get-resumable-upload-options\",\n  name: \"Get TUS resumable upload options\",\n  description: \"Handles OPTIONS request for TUS Resumable uploads to discover server capabilities. Use when preparing resumable upload requests to verify supported TUS protocol versions and extensions.\",\n  input: SupabaseGetResumableUploadOptionsInput,\n  output: SupabaseGetResumableUploadOptionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EAC9M,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mSAAmS;AAE7T,MAAa,oCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}