import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Timestamp, Value } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file cerbos/cloud/store/v1/store.proto. */ export declare const file_cerbos_cloud_store_v1_store: GenFile; /** * @generated from message cerbos.cloud.store.v1.StringMatch */ export type StringMatch = Message<"cerbos.cloud.store.v1.StringMatch"> & { /** * @generated from oneof cerbos.cloud.store.v1.StringMatch.match */ match: { /** * @generated from field: string equals = 1; */ value: string; case: "equals"; } | { /** * @generated from field: string contains = 2; */ value: string; case: "contains"; } | { /** * @generated from field: cerbos.cloud.store.v1.StringMatch.InList in = 3; */ value: StringMatch_InList; case: "in"; } | { case: undefined; value?: undefined; }; }; export type StringMatchValid = StringMatch; /** * Describes the message cerbos.cloud.store.v1.StringMatch. * Use `create(StringMatchSchema)` to create a new message. */ export declare const StringMatchSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.StringMatch.InList */ export type StringMatch_InList = Message<"cerbos.cloud.store.v1.StringMatch.InList"> & { /** * @generated from field: repeated string values = 1; */ values: string[]; }; export type StringMatch_InListValid = StringMatch_InList; /** * Describes the message cerbos.cloud.store.v1.StringMatch.InList. * Use `create(StringMatch_InListSchema)` to create a new message. */ export declare const StringMatch_InListSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.FileFilter */ export type FileFilter = Message<"cerbos.cloud.store.v1.FileFilter"> & { /** * @generated from field: optional cerbos.cloud.store.v1.StringMatch path = 1; */ path?: StringMatch | undefined; }; export type FileFilterValid = FileFilter; /** * Describes the message cerbos.cloud.store.v1.FileFilter. * Use `create(FileFilterSchema)` to create a new message. */ export declare const FileFilterSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ListFilesRequest */ export type ListFilesRequest = Message<"cerbos.cloud.store.v1.ListFilesRequest"> & { /** * @generated from field: string store_id = 1; */ storeId: string; /** * @generated from field: optional cerbos.cloud.store.v1.FileFilter filter = 2; */ filter?: FileFilter | undefined; }; export type ListFilesRequestValid = ListFilesRequest; /** * Describes the message cerbos.cloud.store.v1.ListFilesRequest. * Use `create(ListFilesRequestSchema)` to create a new message. */ export declare const ListFilesRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ListFilesResponse */ export type ListFilesResponse = Message<"cerbos.cloud.store.v1.ListFilesResponse"> & { /** * @generated from field: int64 store_version = 1; */ storeVersion: bigint; /** * @generated from field: repeated string files = 2; */ files: string[]; }; export type ListFilesResponseValid = ListFilesResponse; /** * Describes the message cerbos.cloud.store.v1.ListFilesResponse. * Use `create(ListFilesResponseSchema)` to create a new message. */ export declare const ListFilesResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.GetFilesRequest */ export type GetFilesRequest = Message<"cerbos.cloud.store.v1.GetFilesRequest"> & { /** * @generated from field: string store_id = 1; */ storeId: string; /** * @generated from field: repeated string files = 2; */ files: string[]; }; export type GetFilesRequestValid = GetFilesRequest; /** * Describes the message cerbos.cloud.store.v1.GetFilesRequest. * Use `create(GetFilesRequestSchema)` to create a new message. */ export declare const GetFilesRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.File */ export type File = Message<"cerbos.cloud.store.v1.File"> & { /** * @generated from field: string path = 1; */ path: string; /** * @generated from field: bytes contents = 2; */ contents: Uint8Array; }; export type FileValid = File; /** * Describes the message cerbos.cloud.store.v1.File. * Use `create(FileSchema)` to create a new message. */ export declare const FileSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.GetFilesResponse */ export type GetFilesResponse = Message<"cerbos.cloud.store.v1.GetFilesResponse"> & { /** * @generated from field: int64 store_version = 1; */ storeVersion: bigint; /** * @generated from field: repeated cerbos.cloud.store.v1.File files = 2; */ files: File[]; }; export type GetFilesResponseValid = GetFilesResponse; /** * Describes the message cerbos.cloud.store.v1.GetFilesResponse. * Use `create(GetFilesResponseSchema)` to create a new message. */ export declare const GetFilesResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.GetCurrentVersionRequest */ export type GetCurrentVersionRequest = Message<"cerbos.cloud.store.v1.GetCurrentVersionRequest"> & { /** * @generated from field: string store_id = 1; */ storeId: string; }; export type GetCurrentVersionRequestValid = GetCurrentVersionRequest; /** * Describes the message cerbos.cloud.store.v1.GetCurrentVersionRequest. * Use `create(GetCurrentVersionRequestSchema)` to create a new message. */ export declare const GetCurrentVersionRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.GetCurrentVersionResponse */ export type GetCurrentVersionResponse = Message<"cerbos.cloud.store.v1.GetCurrentVersionResponse"> & { /** * @generated from field: int64 store_version = 1; */ storeVersion: bigint; /** * @generated from field: optional cerbos.cloud.store.v1.ChangeDetails change_details = 2; */ changeDetails?: ChangeDetails | undefined; }; export type GetCurrentVersionResponseValid = GetCurrentVersionResponse; /** * Describes the message cerbos.cloud.store.v1.GetCurrentVersionResponse. * Use `create(GetCurrentVersionResponseSchema)` to create a new message. */ export declare const GetCurrentVersionResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ChangeDetails */ export type ChangeDetails = Message<"cerbos.cloud.store.v1.ChangeDetails"> & { /** * @generated from field: string description = 1; */ description: string; /** * @generated from field: cerbos.cloud.store.v1.ChangeDetails.Uploader uploader = 2; */ uploader?: ChangeDetails_Uploader | undefined; /** * @generated from oneof cerbos.cloud.store.v1.ChangeDetails.origin */ origin: { /** * @generated from field: cerbos.cloud.store.v1.ChangeDetails.Git git = 3; */ value: ChangeDetails_Git; case: "git"; } | { /** * @generated from field: cerbos.cloud.store.v1.ChangeDetails.Internal internal = 4; */ value: ChangeDetails_Internal; case: "internal"; } | { case: undefined; value?: undefined; }; }; export type ChangeDetailsValid = ChangeDetails; /** * Describes the message cerbos.cloud.store.v1.ChangeDetails. * Use `create(ChangeDetailsSchema)` to create a new message. */ export declare const ChangeDetailsSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ChangeDetails.Git */ export type ChangeDetails_Git = Message<"cerbos.cloud.store.v1.ChangeDetails.Git"> & { /** * @generated from field: string repo = 1; */ repo: string; /** * @generated from field: string ref = 2; */ ref: string; /** * @generated from field: string hash = 3; */ hash: string; /** * @generated from field: string message = 4; */ message: string; /** * @generated from field: string committer = 5; */ committer: string; /** * @generated from field: google.protobuf.Timestamp commit_date = 6; */ commitDate?: Timestamp | undefined; /** * @generated from field: string author = 7; */ author: string; /** * @generated from field: google.protobuf.Timestamp author_date = 8; */ authorDate?: Timestamp | undefined; }; export type ChangeDetails_GitValid = ChangeDetails_Git; /** * Describes the message cerbos.cloud.store.v1.ChangeDetails.Git. * Use `create(ChangeDetails_GitSchema)` to create a new message. */ export declare const ChangeDetails_GitSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ChangeDetails.Internal */ export type ChangeDetails_Internal = Message<"cerbos.cloud.store.v1.ChangeDetails.Internal"> & { /** * @generated from field: string source = 1; */ source: string; /** * @generated from field: map metadata = 2; */ metadata: { [key: string]: Value; }; }; export type ChangeDetails_InternalValid = ChangeDetails_Internal; /** * Describes the message cerbos.cloud.store.v1.ChangeDetails.Internal. * Use `create(ChangeDetails_InternalSchema)` to create a new message. */ export declare const ChangeDetails_InternalSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ChangeDetails.Uploader */ export type ChangeDetails_Uploader = Message<"cerbos.cloud.store.v1.ChangeDetails.Uploader"> & { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: map metadata = 2; */ metadata: { [key: string]: Value; }; }; export type ChangeDetails_UploaderValid = ChangeDetails_Uploader; /** * Describes the message cerbos.cloud.store.v1.ChangeDetails.Uploader. * Use `create(ChangeDetails_UploaderSchema)` to create a new message. */ export declare const ChangeDetails_UploaderSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.FileOp */ export type FileOp = Message<"cerbos.cloud.store.v1.FileOp"> & { /** * @generated from oneof cerbos.cloud.store.v1.FileOp.op */ op: { /** * @generated from field: cerbos.cloud.store.v1.File add_or_update = 1; */ value: File; case: "addOrUpdate"; } | { /** * @generated from field: string delete = 2; */ value: string; case: "delete"; } | { case: undefined; value?: undefined; }; }; export type FileOpValid = FileOp; /** * Describes the message cerbos.cloud.store.v1.FileOp. * Use `create(FileOpSchema)` to create a new message. */ export declare const FileOpSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ModifyFilesRequest */ export type ModifyFilesRequest = Message<"cerbos.cloud.store.v1.ModifyFilesRequest"> & { /** * @generated from field: string store_id = 1; */ storeId: string; /** * @generated from field: optional cerbos.cloud.store.v1.ModifyFilesRequest.Condition condition = 2; */ condition?: ModifyFilesRequest_Condition | undefined; /** * @generated from field: repeated cerbos.cloud.store.v1.FileOp operations = 3; */ operations: FileOp[]; /** * @generated from field: optional cerbos.cloud.store.v1.ChangeDetails change_details = 4; */ changeDetails?: ChangeDetails | undefined; }; export type ModifyFilesRequestValid = ModifyFilesRequest; /** * Describes the message cerbos.cloud.store.v1.ModifyFilesRequest. * Use `create(ModifyFilesRequestSchema)` to create a new message. */ export declare const ModifyFilesRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ModifyFilesRequest.Condition */ export type ModifyFilesRequest_Condition = Message<"cerbos.cloud.store.v1.ModifyFilesRequest.Condition"> & { /** * @generated from field: int64 store_version_must_equal = 1; */ storeVersionMustEqual: bigint; }; export type ModifyFilesRequest_ConditionValid = ModifyFilesRequest_Condition; /** * Describes the message cerbos.cloud.store.v1.ModifyFilesRequest.Condition. * Use `create(ModifyFilesRequest_ConditionSchema)` to create a new message. */ export declare const ModifyFilesRequest_ConditionSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.FileError */ export type FileError = Message<"cerbos.cloud.store.v1.FileError"> & { /** * @generated from field: string file = 1; */ file: string; /** * @generated from field: cerbos.cloud.store.v1.FileError.Cause cause = 2; */ cause: FileError_Cause; /** * @generated from field: string details = 3; */ details: string; }; export type FileErrorValid = FileError; /** * Describes the message cerbos.cloud.store.v1.FileError. * Use `create(FileErrorSchema)` to create a new message. */ export declare const FileErrorSchema: GenMessage; /** * @generated from enum cerbos.cloud.store.v1.FileError.Cause */ export declare enum FileError_Cause { /** * @generated from enum value: CAUSE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: CAUSE_INVALID_FILE_PATH = 1; */ INVALID_FILE_PATH = 1, /** * @generated from enum value: CAUSE_UNSUPPORTED_FILE_EXTENSION = 2; */ UNSUPPORTED_FILE_EXTENSION = 2, /** * @generated from enum value: CAUSE_INVALID_FILE_CONTENTS = 3; */ INVALID_FILE_CONTENTS = 3, /** * @generated from enum value: CAUSE_DUPLICATE_FILE_PATH = 4; */ DUPLICATE_FILE_PATH = 4, /** * @generated from enum value: CAUSE_FILE_TOO_LARGE = 5; */ FILE_TOO_LARGE = 5 } /** * Describes the enum cerbos.cloud.store.v1.FileError.Cause. */ export declare const FileError_CauseSchema: GenEnum; /** * @generated from message cerbos.cloud.store.v1.ModifyFilesResponse */ export type ModifyFilesResponse = Message<"cerbos.cloud.store.v1.ModifyFilesResponse"> & { /** * @generated from field: int64 new_store_version = 1; */ newStoreVersion: bigint; }; export type ModifyFilesResponseValid = ModifyFilesResponse; /** * Describes the message cerbos.cloud.store.v1.ModifyFilesResponse. * Use `create(ModifyFilesResponseSchema)` to create a new message. */ export declare const ModifyFilesResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ReplaceFilesRequest */ export type ReplaceFilesRequest = Message<"cerbos.cloud.store.v1.ReplaceFilesRequest"> & { /** * @generated from field: string store_id = 1; */ storeId: string; /** * @generated from field: optional cerbos.cloud.store.v1.ReplaceFilesRequest.Condition condition = 2; */ condition?: ReplaceFilesRequest_Condition | undefined; /** * @generated from oneof cerbos.cloud.store.v1.ReplaceFilesRequest.contents */ contents: { /** * @generated from field: bytes zipped_contents = 3; */ value: Uint8Array; case: "zippedContents"; } | { /** * @generated from field: cerbos.cloud.store.v1.ReplaceFilesRequest.Files files = 5; */ value: ReplaceFilesRequest_Files; case: "files"; } | { case: undefined; value?: undefined; }; /** * @generated from field: optional cerbos.cloud.store.v1.ChangeDetails change_details = 4; */ changeDetails?: ChangeDetails | undefined; }; export type ReplaceFilesRequestValid = ReplaceFilesRequest; /** * Describes the message cerbos.cloud.store.v1.ReplaceFilesRequest. * Use `create(ReplaceFilesRequestSchema)` to create a new message. */ export declare const ReplaceFilesRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ReplaceFilesRequest.Condition */ export type ReplaceFilesRequest_Condition = Message<"cerbos.cloud.store.v1.ReplaceFilesRequest.Condition"> & { /** * @generated from field: int64 store_version_must_equal = 1; */ storeVersionMustEqual: bigint; }; export type ReplaceFilesRequest_ConditionValid = ReplaceFilesRequest_Condition; /** * Describes the message cerbos.cloud.store.v1.ReplaceFilesRequest.Condition. * Use `create(ReplaceFilesRequest_ConditionSchema)` to create a new message. */ export declare const ReplaceFilesRequest_ConditionSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ReplaceFilesRequest.Files */ export type ReplaceFilesRequest_Files = Message<"cerbos.cloud.store.v1.ReplaceFilesRequest.Files"> & { /** * @generated from field: repeated cerbos.cloud.store.v1.File files = 1; */ files: File[]; }; export type ReplaceFilesRequest_FilesValid = ReplaceFilesRequest_Files; /** * Describes the message cerbos.cloud.store.v1.ReplaceFilesRequest.Files. * Use `create(ReplaceFilesRequest_FilesSchema)` to create a new message. */ export declare const ReplaceFilesRequest_FilesSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ErrDetailValidationFailure */ export type ErrDetailValidationFailure = Message<"cerbos.cloud.store.v1.ErrDetailValidationFailure"> & { /** * @generated from field: repeated cerbos.cloud.store.v1.FileError errors = 1; */ errors: FileError[]; }; export type ErrDetailValidationFailureValid = ErrDetailValidationFailure; /** * Describes the message cerbos.cloud.store.v1.ErrDetailValidationFailure. * Use `create(ErrDetailValidationFailureSchema)` to create a new message. */ export declare const ErrDetailValidationFailureSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ErrDetailNoUsableFiles */ export type ErrDetailNoUsableFiles = Message<"cerbos.cloud.store.v1.ErrDetailNoUsableFiles"> & { /** * @generated from field: repeated string ignored_files = 1; */ ignoredFiles: string[]; }; export type ErrDetailNoUsableFilesValid = ErrDetailNoUsableFiles; /** * Describes the message cerbos.cloud.store.v1.ErrDetailNoUsableFiles. * Use `create(ErrDetailNoUsableFilesSchema)` to create a new message. */ export declare const ErrDetailNoUsableFilesSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ErrDetailConditionUnsatisfied */ export type ErrDetailConditionUnsatisfied = Message<"cerbos.cloud.store.v1.ErrDetailConditionUnsatisfied"> & { /** * @generated from field: int64 current_store_version = 1; */ currentStoreVersion: bigint; }; export type ErrDetailConditionUnsatisfiedValid = ErrDetailConditionUnsatisfied; /** * Describes the message cerbos.cloud.store.v1.ErrDetailConditionUnsatisfied. * Use `create(ErrDetailConditionUnsatisfiedSchema)` to create a new message. */ export declare const ErrDetailConditionUnsatisfiedSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ErrDetailOperationDiscarded */ export type ErrDetailOperationDiscarded = Message<"cerbos.cloud.store.v1.ErrDetailOperationDiscarded"> & { /** * @generated from field: int64 current_store_version = 1; */ currentStoreVersion: bigint; /** * @generated from field: repeated string ignored_files = 2; */ ignoredFiles: string[]; }; export type ErrDetailOperationDiscardedValid = ErrDetailOperationDiscarded; /** * Describes the message cerbos.cloud.store.v1.ErrDetailOperationDiscarded. * Use `create(ErrDetailOperationDiscardedSchema)` to create a new message. */ export declare const ErrDetailOperationDiscardedSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ErrDetailCannotModifyGitConnectedStore */ export type ErrDetailCannotModifyGitConnectedStore = Message<"cerbos.cloud.store.v1.ErrDetailCannotModifyGitConnectedStore"> & {}; export type ErrDetailCannotModifyGitConnectedStoreValid = ErrDetailCannotModifyGitConnectedStore; /** * Describes the message cerbos.cloud.store.v1.ErrDetailCannotModifyGitConnectedStore. * Use `create(ErrDetailCannotModifyGitConnectedStoreSchema)` to create a new message. */ export declare const ErrDetailCannotModifyGitConnectedStoreSchema: GenMessage; /** * @generated from message cerbos.cloud.store.v1.ReplaceFilesResponse */ export type ReplaceFilesResponse = Message<"cerbos.cloud.store.v1.ReplaceFilesResponse"> & { /** * @generated from field: int64 new_store_version = 1; */ newStoreVersion: bigint; /** * @generated from field: repeated string ignored_files = 2; */ ignoredFiles: string[]; }; export type ReplaceFilesResponseValid = ReplaceFilesResponse; /** * Describes the message cerbos.cloud.store.v1.ReplaceFilesResponse. * Use `create(ReplaceFilesResponseSchema)` to create a new message. */ export declare const ReplaceFilesResponseSchema: GenMessage; /** * @generated from service cerbos.cloud.store.v1.CerbosStoreService */ export declare const CerbosStoreService: GenService<{ /** * @generated from rpc cerbos.cloud.store.v1.CerbosStoreService.ListFiles */ listFiles: { methodKind: "unary"; input: typeof ListFilesRequestSchema; output: typeof ListFilesResponseSchema; }; /** * @generated from rpc cerbos.cloud.store.v1.CerbosStoreService.GetCurrentVersion */ getCurrentVersion: { methodKind: "unary"; input: typeof GetCurrentVersionRequestSchema; output: typeof GetCurrentVersionResponseSchema; }; /** * @generated from rpc cerbos.cloud.store.v1.CerbosStoreService.GetFiles */ getFiles: { methodKind: "unary"; input: typeof GetFilesRequestSchema; output: typeof GetFilesResponseSchema; }; /** * @generated from rpc cerbos.cloud.store.v1.CerbosStoreService.ModifyFiles */ modifyFiles: { methodKind: "unary"; input: typeof ModifyFilesRequestSchema; output: typeof ModifyFilesResponseSchema; }; /** * @generated from rpc cerbos.cloud.store.v1.CerbosStoreService.ReplaceFiles */ replaceFiles: { methodKind: "unary"; input: typeof ReplaceFilesRequestSchema; output: typeof ReplaceFilesResponseSchema; }; }>; //# sourceMappingURL=store_pb.d.ts.map