24 lines
789 B
TypeScript
24 lines
789 B
TypeScript
/**
|
|
* This file was generated by @pikku/cli@0.12.54
|
|
*/
|
|
import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
import type { SecretService } from '@pikku/core/services'
|
|
import type { z } from 'zod'
|
|
import { BetterAuthSecretSchema } from '../../src/scaffold/auth-secrets.gen.js'
|
|
|
|
export interface CredentialsMap {
|
|
'BETTER_AUTH_SECRET': z.infer<typeof BetterAuthSecretSchema>
|
|
}
|
|
|
|
export type SecretId = keyof CredentialsMap
|
|
|
|
const CREDENTIALS_META: Record<string, CredentialMeta> = {
|
|
'BETTER_AUTH_SECRET': { name: 'betterAuthSecret', displayName: 'Better Auth Secret' }
|
|
}
|
|
|
|
export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|
|
constructor(secrets: SecretService) {
|
|
super(secrets, CREDENTIALS_META)
|
|
}
|
|
}
|