/**
 * Credential Type System
 *
 * Dynamic credential form system with type-based field rendering.
 *
 * Usage:
 * - Add new integration → Update CREDENTIAL_SCHEMAS registry
 * - No modal changes needed
 *
 * @example
 * ```typescript
 * import { getCredentialSchema, buildCredentialValue } from '@repo/core'
 *
 * const schema = getCredentialSchema('attio')
 * const value = buildCredentialValue('api-key', { apiKey: '...' })
 * ```
 */

export {
  CREDENTIAL_SCHEMAS,
  getCredentialSchema,
  listCredentialSchemas,
  getCredentialTypes,
} from './schemas'

export type { CredentialSchema, CredentialField } from './schemas'

export { buildCredentialValue, extractFormValues } from './utils'

// API validation schemas
export * from './api-schemas'
