{"version":3,"file":"alpha-get-third-party-integration.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;AACpI,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACzK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,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