{"version":3,"file":"alpha-get-third-party-integration.mjs","names":[],"sources":["../../src/actions/alpha-get-third-party-integration.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 SupabaseAlphaGetThirdPartyIntegrationInput = z.object({\n  ref: z.string().describe(\"The unique identifier (reference) of the Supabase project.\"),\n  tpa_id: z.string().describe(\"The unique identifier of the specific third-party authentication provider configuration to retrieve.\"),\n}).describe(\"Request schema for retrieving a specific third-party authentication provider's configuration.\");\nexport const SupabaseAlphaGetThirdPartyIntegrationOutput = z.object({\n  id: z.string().describe(\"Unique identifier (UUID) of the third-party auth integration.\").nullable(),\n  type: z.string().describe(\"Integration type as determined by Supabase based on the provided configuration (e.g., resolved from OIDC issuer or JWKS settings).\").nullable(),\n  jwks_url: z.string().describe(\"Direct URL to the JSON Web Key Set (JWKS) for verifying tokens when not using OIDC discovery (if configured).\").nullable().optional(),\n  updated_at: z.string().describe(\"Timestamp indicating when the integration was last updated (ISO 8601).\").nullable(),\n  custom_jwks: z.record(z.string(), z.unknown()).describe(\"Custom JWKS object provided directly in the integration configuration instead of referencing a remote JWKS URL or issuer (RFC 7517).\").nullable().optional(),\n  inserted_at: z.string().describe(\"Timestamp indicating when the integration was created (ISO 8601).\").nullable(),\n  resolved_at: z.string().describe(\"Timestamp of the last successful JWKS resolution/refresh for this integration, if applicable (ISO 8601).\").nullable().optional(),\n  resolved_jwks: z.record(z.string(), z.unknown()).describe(\"The effective JWKS that Supabase has resolved and cached from the configured source (OIDC issuer, JWKS URL, or custom JWKS).\").nullable().optional(),\n  oidc_issuer_url: z.string().describe(\"OIDC issuer discovery URL for the external identity provider (if configured).\").nullable().optional(),\n}).passthrough().describe(\"Supabase Management API — Get a Third-Party Auth Integration\\n\\nResponse payload returned by GET /v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}.\\nRepresents a single third-party auth integration configured for a project.\");\n\nexport const supabaseAlphaGetThirdPartyIntegration: AppAction<\n  typeof SupabaseAlphaGetThirdPartyIntegrationInput,\n  typeof SupabaseAlphaGetThirdPartyIntegrationOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_ALPHA_GET_THIRD_PARTY_INTEGRATION\", {\n  slug: \"supabase-alpha-get-third-party-integration\",\n  name: \"Get a third-party integration\",\n  description: \"Retrieves the detailed configuration for a specific third-party authentication (TPA) provider, identified by `tpa_id`, within an existing Supabase project specified by `ref`.\",\n  input: SupabaseAlphaGetThirdPartyIntegrationInput,\n  output: SupabaseAlphaGetThirdPartyIntegrationOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,wCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBwD,EAAE,OAAO;EACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACpI,CAAC,CAAC,CAAC,SAAS,+FAqBH;CACP,QArByD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EACzK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACnH,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9M,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wOAWhB;AACV,CAAC"}