import type { SandboxAttestation as _memoflow_v1_SandboxAttestation, SandboxAttestation__Output as _memoflow_v1_SandboxAttestation__Output } from '../../memoflow/v1/SandboxAttestation.js'; import type { Long } from '@grpc/proto-loader'; export interface SessionHello { 'namespace'?: (string); 'task_queue'?: (string); /** * Stable worker identity (survives reconnects; the server treats a new * session with a known identity as a reconnect, not a new worker). */ 'identity'?: (string); 'build_id'?: (string); /** * Capability + admission contract (valid range 0..10,000). 0 disables * workflow-task delivery for this session; positive N permits at most N * delivered/in-flight workflow executions. Server-side undelivered staging * is separately bounded and does not consume SDK execution slots. */ 'max_concurrent_workflows'?: (number); /** * Capability + admission contract (valid range 0..10,000). 0 disables * activity-task delivery for this session; positive N permits at most N * delivered/in-flight activity executions. Server-side undelivered staging * is separately bounded and does not consume SDK execution slots. */ 'max_concurrent_activities'?: (number); /** * Interval at which this worker will Ping while it holds in-flight tasks. * The server derives its disconnect-reap grace from this (default 2×). * 0 disables periodic Ping frames. The server uses a 10_000 ms fallback * only when deriving disconnect-reap grace for that session. */ 'ping_interval_ms'?: (number | string | Long); /** * Informational (diagnostics/telemetry), e.g. "memoflow-sdk-ts/1.9.0". */ 'sdk_version'?: (string); /** * Inclusive client protocol range. Zero is invalid: pre-negotiation * workers fail before registration instead of silently guessing v1. */ 'protocol_min_major'?: (number); 'protocol_min_minor'?: (number); 'protocol_max_major'?: (number); 'protocol_max_minor'?: (number); /** * Stable language identifier ("typescript", "python", "go", "rust"). */ 'sdk_language'?: (string); /** * Optional features the worker understands and features it refuses to run * without. Unknown optional values are ignored; unknown required values * reject the session before worker registration. */ 'supported_capabilities'?: (string)[]; 'required_capabilities'?: (string)[]; /** * Payload JSON codec and portable envelope versions understood by the * worker. Version zero names the current legacy JSON payload shape. No * portable envelope version is selected until PRO-005. */ 'payload_codec_versions'?: (number)[]; 'envelope_versions'?: (number)[]; /** * External isolation evidence matched against an operator-controlled, * service-account-bound server allowlist. Merely advertising the sandbox * capability never grants it. */ 'sandbox_attestation'?: (_memoflow_v1_SandboxAttestation | null); } export interface SessionHello__Output { 'namespace': (string); 'task_queue': (string); /** * Stable worker identity (survives reconnects; the server treats a new * session with a known identity as a reconnect, not a new worker). */ 'identity': (string); 'build_id': (string); /** * Capability + admission contract (valid range 0..10,000). 0 disables * workflow-task delivery for this session; positive N permits at most N * delivered/in-flight workflow executions. Server-side undelivered staging * is separately bounded and does not consume SDK execution slots. */ 'max_concurrent_workflows': (number); /** * Capability + admission contract (valid range 0..10,000). 0 disables * activity-task delivery for this session; positive N permits at most N * delivered/in-flight activity executions. Server-side undelivered staging * is separately bounded and does not consume SDK execution slots. */ 'max_concurrent_activities': (number); /** * Interval at which this worker will Ping while it holds in-flight tasks. * The server derives its disconnect-reap grace from this (default 2×). * 0 disables periodic Ping frames. The server uses a 10_000 ms fallback * only when deriving disconnect-reap grace for that session. */ 'ping_interval_ms': (string); /** * Informational (diagnostics/telemetry), e.g. "memoflow-sdk-ts/1.9.0". */ 'sdk_version': (string); /** * Inclusive client protocol range. Zero is invalid: pre-negotiation * workers fail before registration instead of silently guessing v1. */ 'protocol_min_major': (number); 'protocol_min_minor': (number); 'protocol_max_major': (number); 'protocol_max_minor': (number); /** * Stable language identifier ("typescript", "python", "go", "rust"). */ 'sdk_language': (string); /** * Optional features the worker understands and features it refuses to run * without. Unknown optional values are ignored; unknown required values * reject the session before worker registration. */ 'supported_capabilities': (string)[]; 'required_capabilities': (string)[]; /** * Payload JSON codec and portable envelope versions understood by the * worker. Version zero names the current legacy JSON payload shape. No * portable envelope version is selected until PRO-005. */ 'payload_codec_versions': (number)[]; 'envelope_versions': (number)[]; /** * External isolation evidence matched against an operator-controlled, * service-account-bound server allowlist. Merely advertising the sandbox * capability never grants it. */ 'sandbox_attestation': (_memoflow_v1_SandboxAttestation__Output | null); }