import type { RetryPolicy as _memoflow_v1_RetryPolicy, RetryPolicy__Output as _memoflow_v1_RetryPolicy__Output } from '../../memoflow/v1/RetryPolicy.js'; import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../google/protobuf/Duration.js'; export interface StartWorkflowRequest { 'namespace'?: (string); /** * client-assigned, used for dedup */ 'workflow_id'?: (string); /** * registered workflow class name */ 'workflow_type'?: (string); 'task_queue'?: (string); /** * serialized workflow input */ 'input'?: (Buffer | Uint8Array | string); 'retry_policy'?: (_memoflow_v1_RetryPolicy | null); 'execution_timeout'?: (_google_protobuf_Duration | null); /** * idempotency key */ 'request_id'?: (string); 'search_attributes'?: ({ [key: string]: string; }); /** * OpenTelemetry (P3.6): W3C trace context (traceparent/tracestate) from the * caller's active span, if any — the logical "run" trace for this workflow * starts here and continues through every subsequent dispatch via * propagation on WorkflowTask/ActivityTask.trace_context. A symmetric field * to those (rather than gRPC metadata) so the SDK client and worker share * one injection/extraction code path. Empty when the caller has no active * span or chose not to propagate. */ 'trace_context'?: ({ [key: string]: string; }); /** * P5.3: best-effort dispatch priority among BACKLOGGED workflow tasks in * this workflow's (namespace, task_queue) — higher runs sooner. Default 0 * (bit-compatible with pre-P5.3 FIFO). Seeds `workflow_runs.priority`, * carried into every WorkflowTask this run dispatches (initial dispatch * and redispatch alike). Not preemption, not cross-queue, not a fairness * guarantee — see StoreDispatcher/pending_tasks docs. */ 'priority'?: (number); } export interface StartWorkflowRequest__Output { 'namespace': (string); /** * client-assigned, used for dedup */ 'workflow_id': (string); /** * registered workflow class name */ 'workflow_type': (string); 'task_queue': (string); /** * serialized workflow input */ 'input': (Buffer); 'retry_policy': (_memoflow_v1_RetryPolicy__Output | null); 'execution_timeout': (_google_protobuf_Duration__Output | null); /** * idempotency key */ 'request_id': (string); 'search_attributes': ({ [key: string]: string; }); /** * OpenTelemetry (P3.6): W3C trace context (traceparent/tracestate) from the * caller's active span, if any — the logical "run" trace for this workflow * starts here and continues through every subsequent dispatch via * propagation on WorkflowTask/ActivityTask.trace_context. A symmetric field * to those (rather than gRPC metadata) so the SDK client and worker share * one injection/extraction code path. Empty when the caller has no active * span or chose not to propagate. */ 'trace_context': ({ [key: string]: string; }); /** * P5.3: best-effort dispatch priority among BACKLOGGED workflow tasks in * this workflow's (namespace, task_queue) — higher runs sooner. Default 0 * (bit-compatible with pre-P5.3 FIFO). Seeds `workflow_runs.priority`, * carried into every WorkflowTask this run dispatches (initial dispatch * and redispatch alike). Not preemption, not cross-queue, not a fairness * guarantee — see StoreDispatcher/pending_tasks docs. */ 'priority': (number); }