import { EnvType, IRequestExtension } from '../../types'; import { ICreateSecretInput, IUpdateSecretInput, ISecret, ISecretMetadata } from '../../secrets/secrets.types'; export interface ISecretsApiService { create(auth: IRequestExtension, input: ICreateSecretInput): Promise; fetchAll(auth: IRequestExtension): Promise; fetch(auth: IRequestExtension, key: string): Promise; fetchEncrypted(auth: IRequestExtension, key: string): Promise<{ encrypted_value: string; revoked: boolean; }>; update(auth: IRequestExtension, key: string, input: IUpdateSecretInput): Promise; delete(auth: IRequestExtension, key: string): Promise; revoke(auth: IRequestExtension, key: string): Promise; } export declare class SecretsApiService implements ISecretsApiService { private environment; constructor(environment: EnvType); private getAuthHeaders; /** * Create a new secret in the workspace */ create(auth: IRequestExtension, input: ICreateSecretInput): Promise; /** * Fetch all secrets in the workspace (metadata only, no values) */ fetchAll(auth: IRequestExtension): Promise; /** * Fetch a single secret by key (includes decrypted value) */ fetch(auth: IRequestExtension, key: string): Promise; /** * Fetch encrypted secret value (for local decryption) * Ultra-secure endpoint that returns only the encrypted string and revoked flag */ fetchEncrypted(auth: IRequestExtension, key: string): Promise<{ encrypted_value: string; revoked: boolean; }>; /** * Update an existing secret */ update(auth: IRequestExtension, key: string, input: IUpdateSecretInput): Promise; /** * Delete a secret permanently */ delete(auth: IRequestExtension, key: string): Promise; /** * Revoke a secret (disable without deleting) */ revoke(auth: IRequestExtension, key: string): Promise; }