import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { Timestamp } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";
/**
 * Describes the file tenki/cloud/workspace/v1beta1/secrets.proto.
 */
export declare const file_tenki_cloud_workspace_v1beta1_secrets: GenFile;
/**
 * Metadata only. Values and encrypted values are never returned publicly.
 *
 * @generated from message tenki.cloud.workspace.v1beta1.Secret
 */
export type Secret = Message<"tenki.cloud.workspace.v1beta1.Secret"> & {
    /**
     * @generated from field: string id = 1;
     */
    id: string;
    /**
     * @generated from field: string workspace_id = 2;
     */
    workspaceId: string;
    /**
     * @generated from field: string name = 3;
     */
    name: string;
    /**
     * @generated from field: uint32 active_version = 4;
     */
    activeVersion: number;
    /**
     * @generated from field: uint32 revision = 5;
     */
    revision: number;
    /**
     * @generated from field: google.protobuf.Timestamp created_at = 7;
     */
    createdAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp updated_at = 8;
     */
    updatedAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp revoked_at = 9;
     */
    revokedAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp deleted_at = 10;
     */
    deletedAt?: Timestamp;
    /**
     * Full name (owner/name) of the repository whose CI jobs get this secret; empty for a workspace secret.
     *
     * @generated from field: string repository = 11;
     */
    repository: string;
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretScope scope = 12;
     */
    scope: SecretScope;
    /**
     * One-line note for the people who manage the secret.
     *
     * @generated from field: string description = 13;
     */
    description: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.Secret.
 * Use `create(SecretSchema)` to create a new message.
 */
export declare const SecretSchema: GenMessage<Secret>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.SecretVersion
 */
export type SecretVersion = Message<"tenki.cloud.workspace.v1beta1.SecretVersion"> & {
    /**
     * @generated from field: uint32 version = 1;
     */
    version: number;
    /**
     * @generated from field: google.protobuf.Timestamp created_at = 2;
     */
    createdAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp revoked_at = 3;
     */
    revokedAt?: Timestamp;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SecretVersion.
 * Use `create(SecretVersionSchema)` to create a new message.
 */
export declare const SecretVersionSchema: GenMessage<SecretVersion>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretRequest
 */
export type CreateSecretRequest = Message<"tenki.cloud.workspace.v1beta1.CreateSecretRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string name = 2;
     */
    name: string;
    /**
     * @generated from field: optional bytes value = 3;
     */
    value?: Uint8Array;
    /**
     * @generated from field: string request_id = 5;
     */
    requestId: string;
    /**
     * Creates a repository secret; must be one of ListSecretRepositories. Empty creates a workspace secret.
     *
     * @generated from field: string repository = 6;
     */
    repository: string;
    /**
     * S3_STORAGE requires an empty repository.
     *
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretScope scope = 7;
     */
    scope: SecretScope;
    /**
     * One line, at most 256 characters; surrounding spaces are trimmed.
     *
     * @generated from field: string description = 8;
     */
    description: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretRequest.
 * Use `create(CreateSecretRequestSchema)` to create a new message.
 */
export declare const CreateSecretRequestSchema: GenMessage<CreateSecretRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretResponse
 */
export type CreateSecretResponse = Message<"tenki.cloud.workspace.v1beta1.CreateSecretResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;
     */
    secret?: Secret;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretResponse.
 * Use `create(CreateSecretResponseSchema)` to create a new message.
 */
export declare const CreateSecretResponseSchema: GenMessage<CreateSecretResponse>;
/**
 * Changes only the fields that are set, at least one. A value or active_version makes that version
 * active and restores a revoked secret; description and availability changes don't.
 *
 * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretRequest
 */
export type UpdateSecretRequest = Message<"tenki.cloud.workspace.v1beta1.UpdateSecretRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string secret_id = 2;
     */
    secretId: string;
    /**
     * A new version; present empty bytes creates an empty value. Cannot be combined with active_version.
     *
     * @generated from field: optional bytes value = 3;
     */
    value?: Uint8Array;
    /**
     * @generated from field: uint32 expected_revision = 5;
     */
    expectedRevision: number;
    /**
     * @generated from field: string request_id = 6;
     */
    requestId: string;
    /**
     * @generated from field: optional uint32 active_version = 7;
     */
    activeVersion?: number;
    /**
     * Empty clears the description.
     *
     * @generated from field: optional string description = 8;
     */
    description?: string;
    /**
     * Unspecified keeps the availability. REPOSITORY moves the secret to repository.
     *
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAvailability availability = 9;
     */
    availability: SecretAvailability;
    /**
     * Required with REPOSITORY; must be one of ListSecretRepositories.
     *
     * @generated from field: string repository = 10;
     */
    repository: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretRequest.
 * Use `create(UpdateSecretRequestSchema)` to create a new message.
 */
export declare const UpdateSecretRequestSchema: GenMessage<UpdateSecretRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretResponse
 */
export type UpdateSecretResponse = Message<"tenki.cloud.workspace.v1beta1.UpdateSecretResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;
     */
    secret?: Secret;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretResponse.
 * Use `create(UpdateSecretResponseSchema)` to create a new message.
 */
export declare const UpdateSecretResponseSchema: GenMessage<UpdateSecretResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretRequest
 */
export type GetSecretRequest = Message<"tenki.cloud.workspace.v1beta1.GetSecretRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string secret_id = 2;
     */
    secretId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretRequest.
 * Use `create(GetSecretRequestSchema)` to create a new message.
 */
export declare const GetSecretRequestSchema: GenMessage<GetSecretRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretResponse
 */
export type GetSecretResponse = Message<"tenki.cloud.workspace.v1beta1.GetSecretResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;
     */
    secret?: Secret;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretResponse.
 * Use `create(GetSecretResponseSchema)` to create a new message.
 */
export declare const GetSecretResponseSchema: GenMessage<GetSecretResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretsRequest
 */
export type ListSecretsRequest = Message<"tenki.cloud.workspace.v1beta1.ListSecretsRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: uint32 page_size = 2;
     */
    pageSize: number;
    /**
     * Continues from next_cursor with the same filters; cannot be combined with search, sort_by or offset.
     *
     * @generated from field: string cursor = 3;
     */
    cursor: string;
    /**
     * Case-insensitive substring match on the secret name.
     *
     * @generated from field: string search = 4;
     */
    search: string;
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretSortField sort_by = 5;
     */
    sortBy: SecretSortField;
    /**
     * Ignored when sort_by is unspecified.
     *
     * @generated from field: bool sort_desc = 6;
     */
    sortDesc: boolean;
    /**
     * Matching secrets to skip, for numbered pages.
     *
     * @generated from field: uint32 offset = 7;
     */
    offset: number;
    /**
     * Unset lists every scope.
     *
     * @generated from field: optional tenki.cloud.workspace.v1beta1.SecretScope scope = 8;
     */
    scope?: SecretScope;
    /**
     * Unspecified lists workspace and repository secrets.
     * WORKSPACE lists what every CI job and sandbox receives, so it leaves out S3 storage secrets and refuses scope S3_STORAGE.
     *
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAvailability availability = 9;
     */
    availability: SecretAvailability;
    /**
     * With REPOSITORY, only secrets of this repository, compared without case; empty lists all of them.
     *
     * @generated from field: string repository = 10;
     */
    repository: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretsRequest.
 * Use `create(ListSecretsRequestSchema)` to create a new message.
 */
export declare const ListSecretsRequestSchema: GenMessage<ListSecretsRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretsResponse
 */
export type ListSecretsResponse = Message<"tenki.cloud.workspace.v1beta1.ListSecretsResponse"> & {
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.Secret secrets = 1;
     */
    secrets: Secret[];
    /**
     * Set only when more secrets follow in the default order without a search.
     *
     * @generated from field: string next_cursor = 2;
     */
    nextCursor: string;
    /**
     * Secrets matching the search across all pages.
     *
     * @generated from field: uint32 total_count = 3;
     */
    totalCount: number;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretsResponse.
 * Use `create(ListSecretsResponseSchema)` to create a new message.
 */
export declare const ListSecretsResponseSchema: GenMessage<ListSecretsResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest
 */
export type ListSecretRepositoriesRequest = Message<"tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: uint32 page_size = 2;
     */
    pageSize: number;
    /**
     * Continues from next_cursor with the same search.
     *
     * @generated from field: string cursor = 3;
     */
    cursor: string;
    /**
     * Case-insensitive substring match on the full name.
     *
     * @generated from field: string search = 4;
     */
    search: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest.
 * Use `create(ListSecretRepositoriesRequestSchema)` to create a new message.
 */
export declare const ListSecretRepositoriesRequestSchema: GenMessage<ListSecretRepositoriesRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse
 */
export type ListSecretRepositoriesResponse = Message<"tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse"> & {
    /**
     * Repositories connected to the workspace through its GitHub App installations, ordered by full name.
     *
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRepository repositories = 1;
     */
    repositories: SecretRepository[];
    /**
     * Set only when more repositories follow.
     *
     * @generated from field: string next_cursor = 2;
     */
    nextCursor: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse.
 * Use `create(ListSecretRepositoriesResponseSchema)` to create a new message.
 */
export declare const ListSecretRepositoriesResponseSchema: GenMessage<ListSecretRepositoriesResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.SecretRepository
 */
export type SecretRepository = Message<"tenki.cloud.workspace.v1beta1.SecretRepository"> & {
    /**
     * @generated from field: string full_name = 1;
     */
    fullName: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SecretRepository.
 * Use `create(SecretRepositorySchema)` to create a new message.
 */
export declare const SecretRepositorySchema: GenMessage<SecretRepository>;
/**
 * Copies the Actions secrets a GitHub repository's workflows can read into repository secrets of that repository.
 *
 * @generated from message tenki.cloud.workspace.v1beta1.SecretImport
 */
export type SecretImport = Message<"tenki.cloud.workspace.v1beta1.SecretImport"> & {
    /**
     * @generated from field: string id = 1;
     */
    id: string;
    /**
     * @generated from field: string workspace_id = 2;
     */
    workspaceId: string;
    /**
     * @generated from field: string repository = 3;
     */
    repository: string;
    /**
     * Temporary branch that holds the import workflow.
     *
     * @generated from field: string branch = 4;
     */
    branch: string;
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretImportState state = 5;
     */
    state: SecretImportState;
    /**
     * @generated from field: google.protobuf.Timestamp created_at = 6;
     */
    createdAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp expires_at = 7;
     */
    expiresAt?: Timestamp;
    /**
     * @generated from field: repeated string imported = 8;
     */
    imported: string[];
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SkippedSecret skipped = 9;
     */
    skipped: SkippedSecret[];
    /**
     * The repository's environments; their secrets are not imported.
     *
     * @generated from field: repeated string environments = 10;
     */
    environments: string[];
    /**
     * Why a failed import failed.
     *
     * @generated from field: string error = 11;
     */
    error: string;
    /**
     * Existing repository secrets given GitHub's value as a new version; revoked ones are restored.
     *
     * @generated from field: repeated string overwritten = 12;
     */
    overwritten: string[];
    /**
     * The import workflow's run on GitHub, once the run exists.
     *
     * @generated from field: string run_url = 13;
     */
    runUrl: string;
    /**
     * GitHub holds the run until someone with write access approves it in the browser.
     *
     * @generated from field: bool awaiting_approval = 14;
     */
    awaitingApproval: boolean;
    /**
     * GitHub's status of the run, such as queued, in_progress, or completed.
     *
     * @generated from field: string run_status = 15;
     */
    runStatus: string;
    /**
     * GitHub's conclusion of a completed run, such as success or failure.
     *
     * @generated from field: string run_conclusion = 16;
     */
    runConclusion: string;
    /**
     * GitHub could not list the repository's environments, so environments is empty even if it has some.
     *
     * @generated from field: bool environments_unknown = 17;
     */
    environmentsUnknown: boolean;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SecretImport.
 * Use `create(SecretImportSchema)` to create a new message.
 */
export declare const SecretImportSchema: GenMessage<SecretImport>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.SkippedSecret
 */
export type SkippedSecret = Message<"tenki.cloud.workspace.v1beta1.SkippedSecret"> & {
    /**
     * @generated from field: string name = 1;
     */
    name: string;
    /**
     * For people to read; clients act on code.
     *
     * @generated from field: string reason = 2;
     */
    reason: string;
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SkippedSecretCode code = 3;
     */
    code: SkippedSecretCode;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SkippedSecret.
 * Use `create(SkippedSecretSchema)` to create a new message.
 */
export declare const SkippedSecretSchema: GenMessage<SkippedSecret>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.StartSecretImportRequest
 */
export type StartSecretImportRequest = Message<"tenki.cloud.workspace.v1beta1.StartSecretImportRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * Full name (owner/name) of a GitHub repository the Tenki App is installed on.
     *
     * @generated from field: string repository = 2;
     */
    repository: string;
    /**
     * Overwrites repository secrets that already exist, restoring revoked ones, instead of skipping them.
     *
     * @generated from field: bool overwrite = 3;
     */
    overwrite: boolean;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.StartSecretImportRequest.
 * Use `create(StartSecretImportRequestSchema)` to create a new message.
 */
export declare const StartSecretImportRequestSchema: GenMessage<StartSecretImportRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.StartSecretImportResponse
 */
export type StartSecretImportResponse = Message<"tenki.cloud.workspace.v1beta1.StartSecretImportResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretImport secret_import = 1;
     */
    secretImport?: SecretImport;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.StartSecretImportResponse.
 * Use `create(StartSecretImportResponseSchema)` to create a new message.
 */
export declare const StartSecretImportResponseSchema: GenMessage<StartSecretImportResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretImportRequest
 */
export type GetSecretImportRequest = Message<"tenki.cloud.workspace.v1beta1.GetSecretImportRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string import_id = 2;
     */
    importId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretImportRequest.
 * Use `create(GetSecretImportRequestSchema)` to create a new message.
 */
export declare const GetSecretImportRequestSchema: GenMessage<GetSecretImportRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretImportResponse
 */
export type GetSecretImportResponse = Message<"tenki.cloud.workspace.v1beta1.GetSecretImportResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretImport secret_import = 1;
     */
    secretImport?: SecretImport;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretImportResponse.
 * Use `create(GetSecretImportResponseSchema)` to create a new message.
 */
export declare const GetSecretImportResponseSchema: GenMessage<GetSecretImportResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest
 */
export type ListSecretVersionsRequest = Message<"tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string secret_id = 2;
     */
    secretId: string;
    /**
     * @generated from field: uint32 page_size = 3;
     */
    pageSize: number;
    /**
     * @generated from field: string cursor = 4;
     */
    cursor: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest.
 * Use `create(ListSecretVersionsRequestSchema)` to create a new message.
 */
export declare const ListSecretVersionsRequestSchema: GenMessage<ListSecretVersionsRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse
 */
export type ListSecretVersionsResponse = Message<"tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse"> & {
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretVersion versions = 1;
     */
    versions: SecretVersion[];
    /**
     * @generated from field: string next_cursor = 2;
     */
    nextCursor: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse.
 * Use `create(ListSecretVersionsResponseSchema)` to create a new message.
 */
export declare const ListSecretVersionsResponseSchema: GenMessage<ListSecretVersionsResponse>;
/**
 * Omitted version revokes every version. Revoking the active version marks the secret revoked
 * until a new value or an unrevoked version is made active. Revoked versions stay revoked.
 *
 * @generated from message tenki.cloud.workspace.v1beta1.RevokeSecretRequest
 */
export type RevokeSecretRequest = Message<"tenki.cloud.workspace.v1beta1.RevokeSecretRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string secret_id = 2;
     */
    secretId: string;
    /**
     * @generated from field: optional uint32 version = 3;
     */
    version?: number;
    /**
     * @generated from field: uint32 expected_revision = 4;
     */
    expectedRevision: number;
    /**
     * @generated from field: string request_id = 5;
     */
    requestId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.RevokeSecretRequest.
 * Use `create(RevokeSecretRequestSchema)` to create a new message.
 */
export declare const RevokeSecretRequestSchema: GenMessage<RevokeSecretRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.RevokeSecretResponse
 */
export type RevokeSecretResponse = Message<"tenki.cloud.workspace.v1beta1.RevokeSecretResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;
     */
    secret?: Secret;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.RevokeSecretResponse.
 * Use `create(RevokeSecretResponseSchema)` to create a new message.
 */
export declare const RevokeSecretResponseSchema: GenMessage<RevokeSecretResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretRequest
 */
export type DeleteSecretRequest = Message<"tenki.cloud.workspace.v1beta1.DeleteSecretRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string secret_id = 2;
     */
    secretId: string;
    /**
     * @generated from field: uint32 expected_revision = 3;
     */
    expectedRevision: number;
    /**
     * @generated from field: string request_id = 4;
     */
    requestId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretRequest.
 * Use `create(DeleteSecretRequestSchema)` to create a new message.
 */
export declare const DeleteSecretRequestSchema: GenMessage<DeleteSecretRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretResponse
 */
export type DeleteSecretResponse = Message<"tenki.cloud.workspace.v1beta1.DeleteSecretResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;
     */
    secret?: Secret;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretResponse.
 * Use `create(DeleteSecretResponseSchema)` to create a new message.
 */
export declare const DeleteSecretResponseSchema: GenMessage<DeleteSecretResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.SecretAccessPolicy
 */
export type SecretAccessPolicy = Message<"tenki.cloud.workspace.v1beta1.SecretAccessPolicy"> & {
    /**
     * @generated from field: string id = 1;
     */
    id: string;
    /**
     * @generated from field: string workspace_id = 2;
     */
    workspaceId: string;
    /**
     * @generated from field: string name = 3;
     */
    name: string;
    /**
     * @generated from field: uint32 revision = 4;
     */
    revision: number;
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 5;
     */
    rules: SecretRequestRule[];
    /**
     * @generated from field: google.protobuf.Timestamp created_at = 6;
     */
    createdAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp updated_at = 7;
     */
    updatedAt?: Timestamp;
    /**
     * @generated from field: google.protobuf.Timestamp deleted_at = 8;
     */
    deletedAt?: Timestamp;
    /**
     * @generated from field: uint32 attached_session_count = 9;
     */
    attachedSessionCount: number;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SecretAccessPolicy.
 * Use `create(SecretAccessPolicySchema)` to create a new message.
 */
export declare const SecretAccessPolicySchema: GenMessage<SecretAccessPolicy>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest
 */
export type CreateSecretPolicyRequest = Message<"tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string name = 2;
     */
    name: string;
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 3;
     */
    rules: SecretRequestRule[];
    /**
     * @generated from field: string request_id = 4;
     */
    requestId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest.
 * Use `create(CreateSecretPolicyRequestSchema)` to create a new message.
 */
export declare const CreateSecretPolicyRequestSchema: GenMessage<CreateSecretPolicyRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse
 */
export type CreateSecretPolicyResponse = Message<"tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;
     */
    policy?: SecretAccessPolicy;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse.
 * Use `create(CreateSecretPolicyResponseSchema)` to create a new message.
 */
export declare const CreateSecretPolicyResponseSchema: GenMessage<CreateSecretPolicyResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest
 */
export type UpdateSecretPolicyRequest = Message<"tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string policy_id = 2;
     */
    policyId: string;
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 3;
     */
    rules: SecretRequestRule[];
    /**
     * @generated from field: uint32 expected_revision = 4;
     */
    expectedRevision: number;
    /**
     * @generated from field: string request_id = 5;
     */
    requestId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest.
 * Use `create(UpdateSecretPolicyRequestSchema)` to create a new message.
 */
export declare const UpdateSecretPolicyRequestSchema: GenMessage<UpdateSecretPolicyRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse
 */
export type UpdateSecretPolicyResponse = Message<"tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;
     */
    policy?: SecretAccessPolicy;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse.
 * Use `create(UpdateSecretPolicyResponseSchema)` to create a new message.
 */
export declare const UpdateSecretPolicyResponseSchema: GenMessage<UpdateSecretPolicyResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest
 */
export type DeleteSecretPolicyRequest = Message<"tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string policy_id = 2;
     */
    policyId: string;
    /**
     * @generated from field: uint32 expected_revision = 3;
     */
    expectedRevision: number;
    /**
     * @generated from field: string request_id = 4;
     */
    requestId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest.
 * Use `create(DeleteSecretPolicyRequestSchema)` to create a new message.
 */
export declare const DeleteSecretPolicyRequestSchema: GenMessage<DeleteSecretPolicyRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse
 */
export type DeleteSecretPolicyResponse = Message<"tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;
     */
    policy?: SecretAccessPolicy;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse.
 * Use `create(DeleteSecretPolicyResponseSchema)` to create a new message.
 */
export declare const DeleteSecretPolicyResponseSchema: GenMessage<DeleteSecretPolicyResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest
 */
export type GetSecretPolicyRequest = Message<"tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: string policy_id = 2;
     */
    policyId: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest.
 * Use `create(GetSecretPolicyRequestSchema)` to create a new message.
 */
export declare const GetSecretPolicyRequestSchema: GenMessage<GetSecretPolicyRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse
 */
export type GetSecretPolicyResponse = Message<"tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse"> & {
    /**
     * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;
     */
    policy?: SecretAccessPolicy;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse.
 * Use `create(GetSecretPolicyResponseSchema)` to create a new message.
 */
export declare const GetSecretPolicyResponseSchema: GenMessage<GetSecretPolicyResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest
 */
export type ListSecretPoliciesRequest = Message<"tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest"> & {
    /**
     * @generated from field: string workspace_id = 1;
     */
    workspaceId: string;
    /**
     * @generated from field: uint32 page_size = 2;
     */
    pageSize: number;
    /**
     * @generated from field: string cursor = 3;
     */
    cursor: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest.
 * Use `create(ListSecretPoliciesRequestSchema)` to create a new message.
 */
export declare const ListSecretPoliciesRequestSchema: GenMessage<ListSecretPoliciesRequest>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse
 */
export type ListSecretPoliciesResponse = Message<"tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse"> & {
    /**
     * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretAccessPolicy policies = 1;
     */
    policies: SecretAccessPolicy[];
    /**
     * @generated from field: string next_cursor = 2;
     */
    nextCursor: string;
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse.
 * Use `create(ListSecretPoliciesResponseSchema)` to create a new message.
 */
export declare const ListSecretPoliciesResponseSchema: GenMessage<ListSecretPoliciesResponse>;
/**
 * @generated from message tenki.cloud.workspace.v1beta1.SecretRequestRule
 */
export type SecretRequestRule = Message<"tenki.cloud.workspace.v1beta1.SecretRequestRule"> & {
    /**
     * @generated from field: string origin = 1;
     */
    origin: string;
    /**
     * @generated from field: repeated string methods = 2;
     */
    methods: string[];
    /**
     * @generated from field: string path_prefix = 3;
     */
    pathPrefix: string;
    /**
     * @generated from field: string header = 4;
     */
    header: string;
    /**
     * @generated from field: string query_parameter = 5;
     */
    queryParameter: string;
    /**
     * @generated from field: string json_pointer = 6;
     */
    jsonPointer: string;
    /**
     * @generated from field: repeated string secrets = 7;
     */
    secrets: string[];
};
/**
 * Describes the message tenki.cloud.workspace.v1beta1.SecretRequestRule.
 * Use `create(SecretRequestRuleSchema)` to create a new message.
 */
export declare const SecretRequestRuleSchema: GenMessage<SecretRequestRule>;
/**
 * @generated from enum tenki.cloud.workspace.v1beta1.SecretScope
 */
export declare enum SecretScope {
    /**
     * A workspace or repository secret that CI jobs and sandbox runtimes can receive.
     *
     * @generated from enum value: SECRET_SCOPE_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * Read only by sandbox storage connections on the host; never sent to CI jobs or sandbox guests.
     *
     * @generated from enum value: SECRET_SCOPE_S3_STORAGE = 1;
     */
    S3_STORAGE = 1
}
/**
 * Describes the enum tenki.cloud.workspace.v1beta1.SecretScope.
 */
export declare const SecretScopeSchema: GenEnum<SecretScope>;
/**
 * Where a secret applies.
 *
 * @generated from enum tenki.cloud.workspace.v1beta1.SecretAvailability
 */
export declare enum SecretAvailability {
    /**
     * @generated from enum value: SECRET_AVAILABILITY_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * Every Tenki CI job in the workspace, and sandboxes.
     *
     * @generated from enum value: SECRET_AVAILABILITY_WORKSPACE = 1;
     */
    WORKSPACE = 1,
    /**
     * Only Tenki CI jobs in one repository.
     *
     * @generated from enum value: SECRET_AVAILABILITY_REPOSITORY = 2;
     */
    REPOSITORY = 2
}
/**
 * Describes the enum tenki.cloud.workspace.v1beta1.SecretAvailability.
 */
export declare const SecretAvailabilitySchema: GenEnum<SecretAvailability>;
/**
 * @generated from enum tenki.cloud.workspace.v1beta1.SecretSortField
 */
export declare enum SecretSortField {
    /**
     * Orders by secret ID, the only order cursor pagination supports.
     *
     * @generated from enum value: SECRET_SORT_FIELD_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * @generated from enum value: SECRET_SORT_FIELD_NAME = 1;
     */
    NAME = 1,
    /**
     * Active before revoked.
     *
     * @generated from enum value: SECRET_SORT_FIELD_STATUS = 2;
     */
    STATUS = 2,
    /**
     * @generated from enum value: SECRET_SORT_FIELD_UPDATED_AT = 4;
     */
    UPDATED_AT = 4
}
/**
 * Describes the enum tenki.cloud.workspace.v1beta1.SecretSortField.
 */
export declare const SecretSortFieldSchema: GenEnum<SecretSortField>;
/**
 * @generated from enum tenki.cloud.workspace.v1beta1.SecretImportState
 */
export declare enum SecretImportState {
    /**
     * @generated from enum value: SECRET_IMPORT_STATE_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * Waiting for the import workflow to report.
     *
     * @generated from enum value: SECRET_IMPORT_STATE_PENDING = 1;
     */
    PENDING = 1,
    /**
     * @generated from enum value: SECRET_IMPORT_STATE_SUCCEEDED = 2;
     */
    SUCCEEDED = 2,
    /**
     * The workflow reported, but writing its secrets failed.
     *
     * @generated from enum value: SECRET_IMPORT_STATE_FAILED = 3;
     */
    FAILED = 3,
    /**
     * The workflow did not report before the import expired.
     *
     * @generated from enum value: SECRET_IMPORT_STATE_EXPIRED = 4;
     */
    EXPIRED = 4
}
/**
 * Describes the enum tenki.cloud.workspace.v1beta1.SecretImportState.
 */
export declare const SecretImportStateSchema: GenEnum<SecretImportState>;
/**
 * @generated from enum tenki.cloud.workspace.v1beta1.SkippedSecretCode
 */
export declare enum SkippedSecretCode {
    /**
     * @generated from enum value: SKIPPED_SECRET_CODE_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * The repository already has a secret of this name in Tenki.
     *
     * @generated from enum value: SKIPPED_SECRET_CODE_ALREADY_EXISTS = 1;
     */
    ALREADY_EXISTS = 1,
    /**
     * @generated from enum value: SKIPPED_SECRET_CODE_INVALID_NAME = 2;
     */
    INVALID_NAME = 2,
    /**
     * @generated from enum value: SKIPPED_SECRET_CODE_VALUE_TOO_LARGE = 3;
     */
    VALUE_TOO_LARGE = 3
}
/**
 * Describes the enum tenki.cloud.workspace.v1beta1.SkippedSecretCode.
 */
export declare const SkippedSecretCodeSchema: GenEnum<SkippedSecretCode>;
/**
 * @generated from service tenki.cloud.workspace.v1beta1.WorkspaceSecretsService
 */
export declare const WorkspaceSecretsService: GenService<{
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.CreateSecretPolicy
     */
    createSecretPolicy: {
        methodKind: "unary";
        input: typeof CreateSecretPolicyRequestSchema;
        output: typeof CreateSecretPolicyResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.UpdateSecretPolicy
     */
    updateSecretPolicy: {
        methodKind: "unary";
        input: typeof UpdateSecretPolicyRequestSchema;
        output: typeof UpdateSecretPolicyResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecretPolicy
     */
    getSecretPolicy: {
        methodKind: "unary";
        input: typeof GetSecretPolicyRequestSchema;
        output: typeof GetSecretPolicyResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretPolicies
     */
    listSecretPolicies: {
        methodKind: "unary";
        input: typeof ListSecretPoliciesRequestSchema;
        output: typeof ListSecretPoliciesResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.DeleteSecretPolicy
     */
    deleteSecretPolicy: {
        methodKind: "unary";
        input: typeof DeleteSecretPolicyRequestSchema;
        output: typeof DeleteSecretPolicyResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.CreateSecret
     */
    createSecret: {
        methodKind: "unary";
        input: typeof CreateSecretRequestSchema;
        output: typeof CreateSecretResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.UpdateSecret
     */
    updateSecret: {
        methodKind: "unary";
        input: typeof UpdateSecretRequestSchema;
        output: typeof UpdateSecretResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecret
     */
    getSecret: {
        methodKind: "unary";
        input: typeof GetSecretRequestSchema;
        output: typeof GetSecretResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecrets
     */
    listSecrets: {
        methodKind: "unary";
        input: typeof ListSecretsRequestSchema;
        output: typeof ListSecretsResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretRepositories
     */
    listSecretRepositories: {
        methodKind: "unary";
        input: typeof ListSecretRepositoriesRequestSchema;
        output: typeof ListSecretRepositoriesResponseSchema;
    };
    /**
     * Pushes a temporary branch whose workflow sends the repository's secrets back to Tenki.
     *
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.StartSecretImport
     */
    startSecretImport: {
        methodKind: "unary";
        input: typeof StartSecretImportRequestSchema;
        output: typeof StartSecretImportResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecretImport
     */
    getSecretImport: {
        methodKind: "unary";
        input: typeof GetSecretImportRequestSchema;
        output: typeof GetSecretImportResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretVersions
     */
    listSecretVersions: {
        methodKind: "unary";
        input: typeof ListSecretVersionsRequestSchema;
        output: typeof ListSecretVersionsResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.RevokeSecret
     */
    revokeSecret: {
        methodKind: "unary";
        input: typeof RevokeSecretRequestSchema;
        output: typeof RevokeSecretResponseSchema;
    };
    /**
     * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.DeleteSecret
     */
    deleteSecret: {
        methodKind: "unary";
        input: typeof DeleteSecretRequestSchema;
        output: typeof DeleteSecretResponseSchema;
    };
}>;
