{"version":3,"file":"get-resumable-upload-options.mjs","names":[],"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":";;;AAeA,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBoD,EAAE,OAAO,EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EAC9M,CAAC,CAAC,CAAC,SAAS,gDAeH;CACP,QAfqD,EAAE,OAAO;EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mSAWhB;AACV,CAAC"}