chore: server-and-serverless template
This commit is contained in:
23
packages/functions/.pikku/secrets/pikku-secrets.gen.ts
Normal file
23
packages/functions/.pikku/secrets/pikku-secrets.gen.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user