import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire'; import type { CallOptions } from 'nice-grpc-common'; /** * Request to release (decrypt) PII properties in a read model. */ export interface ReleaseRequest { EventStore: string; Namespace: string; Subject: string; Schema: string; Payload: string; } /** * Response from releasing PII properties. */ export interface ReleaseResponse { Payload: string; HasError: boolean; Error: string; } /** * Request to delete the encryption key for a PII encryption key identifier (GDPR right-to-erasure). */ export interface DeleteEncryptionKeyRequest { EventStore: string; Namespace: string; Identifier: string; } /** * Request to authorize a new encryption key for a PII encryption key identifier whose key was * previously erased, so a later lawful lifecycle can protect their data again. */ export interface AllowNewEncryptionKeyRequest { EventStore: string; Namespace: string; Identifier: string; } /** * An empty protobuf message. */ export interface Empty { } type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; /** * Compliance service client interface. */ export interface ComplianceClient { release(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; deleteEncryptionKey(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; allowNewEncryptionKey(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; } export declare const ReleaseRequest: { encode(message: ReleaseRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ReleaseRequest; fromPartial(object: DeepPartial): ReleaseRequest; }; export declare const ReleaseResponse: { encode(message: ReleaseResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ReleaseResponse; fromPartial(object: DeepPartial): ReleaseResponse; }; export declare const DeleteEncryptionKeyRequest: { encode(message: DeleteEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): DeleteEncryptionKeyRequest; fromPartial(object: DeepPartial): DeleteEncryptionKeyRequest; }; export declare const AllowNewEncryptionKeyRequest: { encode(message: AllowNewEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AllowNewEncryptionKeyRequest; fromPartial(object: DeepPartial): AllowNewEncryptionKeyRequest; }; export declare const Empty: { encode(_: Empty, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Empty; fromPartial(_: DeepPartial): Empty; }; /** * Compliance service definition for nice-grpc. */ export declare const ComplianceDefinition: { readonly name: 'Compliance'; readonly fullName: 'Cratis.Chronicle.Contracts.Compliance.Compliance'; readonly methods: { readonly release: { readonly name: 'Release'; readonly requestType: { encode(message: ReleaseRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ReleaseRequest; fromPartial(object: DeepPartial): ReleaseRequest; }; readonly requestStream: false; readonly responseType: { encode(message: ReleaseResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ReleaseResponse; fromPartial(object: DeepPartial): ReleaseResponse; }; readonly responseStream: false; readonly options: {}; }; readonly deleteEncryptionKey: { readonly name: 'DeleteEncryptionKey'; readonly requestType: { encode(message: DeleteEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): DeleteEncryptionKeyRequest; fromPartial(object: DeepPartial): DeleteEncryptionKeyRequest; }; readonly requestStream: false; readonly responseType: { encode(_: Empty, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Empty; fromPartial(_: DeepPartial): Empty; }; readonly responseStream: false; readonly options: {}; }; readonly allowNewEncryptionKey: { readonly name: 'AllowNewEncryptionKey'; readonly requestType: { encode(message: AllowNewEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AllowNewEncryptionKeyRequest; fromPartial(object: DeepPartial): AllowNewEncryptionKeyRequest; }; readonly requestStream: false; readonly responseType: { encode(_: Empty, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Empty; fromPartial(_: DeepPartial): Empty; }; readonly responseStream: false; readonly options: {}; }; }; }; export {}; //# sourceMappingURL=ComplianceContracts.d.ts.map