@mesh-tech/mesh-cli
Version:
CLI for Mesh platform development utilities
13 lines (12 loc) • 941 B
TypeScript
export declare function resolveTemporalEncodingKeyFromK8s(namespace: string): string | undefined;
export interface RawPayload {
metadata?: Record<string, Uint8Array | null | undefined> | null;
data?: Uint8Array | null;
}
export type PayloadDecrypter = (payload: RawPayload | null | undefined) => Promise<string | null>;
export declare function createPayloadDecrypter(encodingKey: string): Promise<PayloadDecrypter>;
export type RawPayloadDecrypter = (payload: RawPayload | null | undefined) => Promise<RawPayload | null>;
export declare function createRawPayloadDecrypter(encodingKey: string): Promise<RawPayloadDecrypter>;
export declare function resolveEncodingKey(namespace: string): string | undefined;
export declare function buildDecrypterForNamespace(namespace: string): Promise<PayloadDecrypter | undefined>;
export declare function buildRawDecrypterForNamespace(namespace: string): Promise<RawPayloadDecrypter | undefined>;