{"version":3,"file":"handle-resumable-upload-sign-options-with-id.cjs","names":["z","action"],"sources":["../../src/actions/handle-resumable-upload-sign-options-with-id.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 SupabaseHandleResumableUploadSignOptionsWithIdInput = z.object({\n  wildcard: z.string().describe(\"The full path to the object for resumable upload signing, typically in format 'bucket-name/path/to/file'. This wildcard path segment is used for CORS preflight OPTIONS requests before the actual upload signing request.\"),\n}).describe(\"Request schema for `HandleResumableUploadSignOptionsWithId`\");\nexport const SupabaseHandleResumableUploadSignOptionsWithIdOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for `HandleResumableUploadSignOptionsWithId`.\\n\\nOPTIONS requests typically return minimal or no body content, primarily setting CORS headers\\nin the response. The response indicates which methods, headers, and origins are allowed\\nfor the actual upload signing request.\");\n\nexport const supabaseHandleResumableUploadSignOptionsWithId: AppAction<\n  typeof SupabaseHandleResumableUploadSignOptionsWithIdInput,\n  typeof SupabaseHandleResumableUploadSignOptionsWithIdOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_HANDLE_RESUMABLE_UPLOAD_SIGN_OPTIONS_WITH_ID\", {\n  slug: \"supabase-handle-resumable-upload-sign-options-with-id\",\n  name: \"OPTIONS for resumable upload sign\",\n  description: \"Handles CORS preflight OPTIONS request for TUS resumable upload signing endpoints. Use when preparing cross-origin resumable upload requests to verify allowed methods and headers.\",\n  input: SupabaseHandleResumableUploadSignOptionsWithIdInput,\n  output: SupabaseHandleResumableUploadSignOptionsWithIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sDAAsDA,IAAAA,EAAE,OAAO,EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,EAC5P,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,uDAAuDA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gSAAgS;AAE/Y,MAAa,iDAITC,eAAAA,OAAO,yDAAyD;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}