import type { ErrorCode as _memoflow_v1_ErrorCode, ErrorCode__Output as _memoflow_v1_ErrorCode__Output } from '../../memoflow/v1/ErrorCode.js'; import type { ErrorScope as _memoflow_v1_ErrorScope, ErrorScope__Output as _memoflow_v1_ErrorScope__Output } from '../../memoflow/v1/ErrorScope.js'; import type { FieldViolation as _memoflow_v1_FieldViolation, FieldViolation__Output as _memoflow_v1_FieldViolation__Output } from '../../memoflow/v1/FieldViolation.js'; import type { Long } from '@grpc/proto-loader'; /** * Versioned structured failure shared by gRPC details, HTTP problem bodies, * and session FrameError. safe_message is deliberately suitable for clients; * server causes, SQL, config, credentials, and payload bytes never belong here. */ export interface ErrorDetail { 'schema_version'?: (number); 'code'?: (_memoflow_v1_ErrorCode); 'retryable'?: (boolean); 'scope'?: (_memoflow_v1_ErrorScope); 'safe_message'?: (string); 'violations'?: (_memoflow_v1_FieldViolation)[]; 'retry_after_ms'?: (number | string | Long); } /** * Versioned structured failure shared by gRPC details, HTTP problem bodies, * and session FrameError. safe_message is deliberately suitable for clients; * server causes, SQL, config, credentials, and payload bytes never belong here. */ export interface ErrorDetail__Output { 'schema_version': (number); 'code': (_memoflow_v1_ErrorCode__Output); 'retryable': (boolean); 'scope': (_memoflow_v1_ErrorScope__Output); 'safe_message': (string); 'violations': (_memoflow_v1_FieldViolation__Output)[]; 'retry_after_ms': (string); }