{"version":3,"file":"delete-sso-provider.cjs","names":["z","action"],"sources":["../../src/actions/delete-sso-provider.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 SupabaseDeleteSsoProviderInput = z.object({\n  ref: z.string().describe(\"The unique identifier for your Supabase project.\"),\n  provider_id: z.string().describe(\"The unique identifier (UUID) of the SSO provider to be removed.\"),\n}).describe(\"Request schema for `DeleteSsoProvider`\");\nconst SupabaseDeleteSsoProvider_AttributeMappingSchema = z.object({\n  keys: z.record(z.string(), z.unknown()).describe(\"Defines how attributes from the identity provider (IdP) are mapped to standard Supabase user claims (e.g., 'email', 'full_name'). Each key in this dictionary is a Supabase claim, and the value (a `Keys` object) specifies which IdP attribute(s) to use for that claim.\"),\n}).passthrough();\nconst SupabaseDeleteSsoProvider_SamlSchema = z.object({\n  id: z.string().describe(\"SAML configuration identifier.\").nullable(),\n  entity_id: z.string().describe(\"SAML Entity ID.\").nullable(),\n  metadata_url: z.string().describe(\"URL for the SAML IdP metadata.\").nullable(),\n  metadata_xml: z.string().describe(\"Raw XML for the SAML metadata.\").nullable(),\n  name_id_format: z.string().describe(\"SAML NameID format, for example urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified.\").nullable().optional(),\n  attribute_mapping: SupabaseDeleteSsoProvider_AttributeMappingSchema.nullable(),\n}).passthrough();\nconst SupabaseDeleteSsoProvider_DomainSchema = z.object({\n  id: z.string().describe(\"Domain record identifier.\").nullable(),\n  domain: z.string().describe(\"Domain name.\").nullable(),\n  created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n  updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n}).passthrough();\nexport const SupabaseDeleteSsoProviderOutput = z.object({\n  id: z.string().describe(\"Provider UUID.\").nullable(),\n  saml: SupabaseDeleteSsoProvider_SamlSchema.nullable(),\n  domains: z.array(SupabaseDeleteSsoProvider_DomainSchema).describe(\"List of domains associated with the SSO provider.\"),\n  created_at: z.string().describe(\"Creation timestamp of the SSO provider.\").nullable(),\n  updated_at: z.string().describe(\"Last update timestamp of the SSO provider.\").nullable(),\n}).passthrough().describe(\"Response schema for `DeleteSsoProvider`.\\n\\nPer official Supabase docs, the DELETE endpoint returns the removed SSO provider object directly without a wrapper. Source: Management API Reference (200 response for DELETE /v1/projects/{ref}/config/auth/sso/providers/{provider_id}).\");\n\nexport const supabaseDeleteSsoProvider: AppAction<\n  typeof SupabaseDeleteSsoProviderInput,\n  typeof SupabaseDeleteSsoProviderOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_SSO_PROVIDER\", {\n  slug: \"supabase-delete-sso-provider\",\n  name: \"Remove an SSO provider\",\n  description: \"Deletes a specific SSO provider by its ID (`provider_id`) from a Supabase project (`ref`), which disables it and returns its details; ensure this action will not inadvertently lock out users.\",\n  input: SupabaseDeleteSsoProviderInput,\n  output: SupabaseDeleteSsoProviderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACpG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4QAA4Q,EAC/T,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC3D,cAAcA,IAAAA,EAAE,OA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