import { SecretType, BufferLike, JsonObject, GeneratedSchema } from './../foundations/index.js'; /** * * @remarks This is a type for database creation. * @see {@link Secret} for the original type. */ export type CreateSecret = { tenantId?: string; id: string; userId: string; type: SecretType; /** Encrypted data encryption key (DEK) for the secret. */ encryptedDek: BufferLike; /** Initialization vector for the secret encryption. */ iv: BufferLike; /** Authentication tag for the secret encryption. */ authTag: BufferLike; /** The encrypted secret data. e.g. { access_token, refresh_token } */ ciphertext: BufferLike; /** The metadata associated with the secret. */ metadata?: JsonObject; createdAt?: number; updatedAt?: number; }; export type Secret = { tenantId: string; id: string; userId: string; type: SecretType; /** Encrypted data encryption key (DEK) for the secret. */ encryptedDek: BufferLike; /** Initialization vector for the secret encryption. */ iv: BufferLike; /** Authentication tag for the secret encryption. */ authTag: BufferLike; /** The encrypted secret data. e.g. { access_token, refresh_token } */ ciphertext: BufferLike; /** The metadata associated with the secret. */ metadata: JsonObject; createdAt: number; updatedAt: number; }; export type SecretKeys = 'tenantId' | 'id' | 'userId' | 'type' | 'encryptedDek' | 'iv' | 'authTag' | 'ciphertext' | 'metadata' | 'createdAt' | 'updatedAt'; export declare const Secrets: GeneratedSchema;