import type { AuthOAuthProviderId } from '@ankhorage/contracts'; import type { SecretMetadata, SecretPayload } from '@ankhorage/contracts/secrets'; import { type ProjectSecretUsageSummary } from './projectSecretUsage'; export interface ProjectSecretCreateInput { readonly projectId: string; readonly environment?: string; readonly ref: string; readonly kind: string; readonly provider?: string; readonly payload: SecretPayload; } export interface ProjectSecretReplaceInput { readonly projectId: string; readonly environment?: string; readonly ref: string; readonly payload: SecretPayload; } export interface ProjectSecretRemoveInput { readonly projectId: string; readonly environment?: string; readonly ref: string; readonly confirmBrokenReferences?: boolean; } export interface ConfigureProjectOAuthProviderInput { readonly projectId: string; readonly providerId: AuthOAuthProviderId; readonly environment?: string; readonly credentialsRef?: string; readonly payload: SecretPayload; } export type ConfigureProjectOAuthProviderResponse = { readonly ok: true; readonly state: 'saved'; readonly metadata: SecretMetadata; readonly credentialsRef: string; } | { readonly ok: false; readonly state: 'secret_write_failed'; readonly error: { readonly code: string; readonly message: string; }; readonly credentialsRef?: string; }; export declare class ProjectSecretApiError extends Error { readonly code: string; readonly status: number; readonly data?: unknown; constructor(args: { readonly code: string; readonly message: string; readonly status: number; readonly data?: unknown; }); } export declare function listProjectSecrets(input: { readonly projectId: string; readonly environment?: string; readonly kind?: string; readonly provider?: string; }): Promise; export declare function createProjectSecret(input: ProjectSecretCreateInput): Promise; export declare function replaceProjectSecret(input: ProjectSecretReplaceInput): Promise; export declare function getProjectSecretUsages(input: { readonly projectId: string; readonly environment?: string; readonly ref: string; }): Promise; export declare function removeProjectSecret(input: ProjectSecretRemoveInput): Promise; export declare function configureProjectOAuthProvider(input: ConfigureProjectOAuthProviderInput): Promise; export declare function parseProjectSecretListResponse(value: unknown): readonly SecretMetadata[]; export declare function parseProjectSecretMetadataResponse(value: unknown): SecretMetadata; export declare function parseProjectSecretUsageSummaryResponse(value: unknown): ProjectSecretUsageSummary; export declare function parseConfigureProjectOAuthProviderResponse(value: unknown): ConfigureProjectOAuthProviderResponse; export declare function parseProjectSecretHttpErrorResponse(value: unknown, status: number): ProjectSecretApiError; //# sourceMappingURL=projectSecretApi.d.ts.map