@runtypelabs/sdk 4.0.4 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -694,6 +694,11 @@ interface paths {
694
694
  maxTurns?: number;
695
695
  reflectionInterval?: number;
696
696
  };
697
+ memory?: {
698
+ enabled: boolean;
699
+ injectSummary?: boolean;
700
+ profileTemplate?: string;
701
+ };
697
702
  model?: string;
698
703
  presencePenalty?: number;
699
704
  reasoning?: boolean | {
@@ -1345,6 +1350,11 @@ interface paths {
1345
1350
  maxTurns?: number;
1346
1351
  reflectionInterval?: number;
1347
1352
  };
1353
+ memory?: {
1354
+ enabled: boolean;
1355
+ injectSummary?: boolean;
1356
+ profileTemplate?: string;
1357
+ };
1348
1358
  model?: string;
1349
1359
  presencePenalty?: number;
1350
1360
  reasoning?: boolean | {
@@ -8759,7 +8769,7 @@ interface paths {
8759
8769
  name: string;
8760
8770
  order?: number;
8761
8771
  /** @enum {string} */
8762
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8772
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8763
8773
  when?: string;
8764
8774
  }[];
8765
8775
  name: string;
@@ -8771,7 +8781,7 @@ interface paths {
8771
8781
  name: string;
8772
8782
  order?: number;
8773
8783
  /** @enum {string} */
8774
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8784
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8775
8785
  when?: string;
8776
8786
  }[];
8777
8787
  };
@@ -8970,7 +8980,7 @@ interface paths {
8970
8980
  name: string;
8971
8981
  order?: number;
8972
8982
  /** @enum {string} */
8973
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8983
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8974
8984
  when?: string;
8975
8985
  }[];
8976
8986
  name?: string;
@@ -33332,6 +33342,27 @@ interface FlowSummary {
33332
33342
  /** Whether the flow completed successfully */
33333
33343
  success: boolean;
33334
33344
  }
33345
+ /**
33346
+ * A single validation finding (error / warning / recommendation). Spec-derived
33347
+ * from the `POST /v1/public/flows/validate` response so it cannot drift from the
33348
+ * API contract (the shared `FlowValidationIssue` source of truth).
33349
+ */
33350
+ type FlowValidationIssue = components['schemas']['FlowValidationIssue'];
33351
+ /**
33352
+ * The result envelope returned by {@link FlowBuilder.validate}. Spec-derived
33353
+ * from the `POST /v1/public/flows/validate` response (`FlowValidationResult`):
33354
+ * `valid` plus the tri-level `errors` / `warnings` / `recommendations` arrays and
33355
+ * a `context` block describing whether account-scoped checks ran.
33356
+ */
33357
+ type FlowValidationResult = components['schemas']['FlowValidationResult'];
33358
+ /**
33359
+ * Minimal client capability {@link FlowBuilder.validate} needs: a JSON `POST`.
33360
+ * `RuntypeClient` (and any client exposing `post<T>(path, data)`) satisfies it,
33361
+ * so `validate()` stays zero-dependency and reuses the existing HTTP transport.
33362
+ */
33363
+ interface FlowValidationClient {
33364
+ post<T>(path: string, data?: unknown): Promise<T>;
33365
+ }
33335
33366
  declare class FlowBuilder {
33336
33367
  private flowConfig;
33337
33368
  private steps;
@@ -33531,6 +33562,37 @@ declare class FlowBuilder {
33531
33562
  * Build the final dispatch request configuration
33532
33563
  */
33533
33564
  build(): DispatchRequest;
33565
+ /**
33566
+ * Validate this prospective flow against the public validation endpoint
33567
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it. Returns the same
33568
+ * `errors` / `warnings` / `recommendations` envelope the API, dashboard, and
33569
+ * MCP `validate_flow` tool use, so structural issues, the upsert-record JSON
33570
+ * foot-gun, undeclared-variable warnings, and sub-optimal model selections
33571
+ * surface at author time rather than at dispatch time.
33572
+ *
33573
+ * Authentication is optional. Passing an authenticated client additionally
33574
+ * runs account-scoped checks (referenced tools / flows / agents must exist and
33575
+ * be owned by the account); `result.context` reports whether those ran.
33576
+ *
33577
+ * Validates the inline-defined steps. A builder targeting a SAVED flow by id
33578
+ * (`useExistingFlow(...)`) has no inline steps to validate, so this throws —
33579
+ * the validation endpoint validates a prospective `{ name, steps }` payload,
33580
+ * not a saved flow by id (which was already validated at create time).
33581
+ *
33582
+ * @param client - Any client exposing `post<T>(path, data)` (e.g. `RuntypeClient`).
33583
+ * @example
33584
+ * ```typescript
33585
+ * const result = await new FlowBuilder()
33586
+ * .createFlow({ name: 'My Flow' })
33587
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: 'Analyze: {{data}}' })
33588
+ * .validate(apiClient)
33589
+ *
33590
+ * if (!result.valid) {
33591
+ * for (const issue of result.errors) console.error(issue.code, issue.message)
33592
+ * }
33593
+ * ```
33594
+ */
33595
+ validate(client: FlowValidationClient): Promise<FlowValidationResult>;
33534
33596
  /**
33535
33597
  * Build and execute the flow with the provided client
33536
33598
  *
@@ -33631,7 +33693,25 @@ interface DispatchClient {
33631
33693
  */
33632
33694
  declare class ClientFlowBuilder extends FlowBuilder {
33633
33695
  private boundClient;
33634
- constructor(client: DispatchClient, name: string);
33696
+ constructor(client: DispatchClient & Partial<FlowValidationClient>, name: string);
33697
+ /**
33698
+ * Validate the flow using the bound client (no client argument needed).
33699
+ * Same contract as {@link FlowBuilder.validate}.
33700
+ *
33701
+ * Throws if the bound client does not expose a `post` transport (e.g. a
33702
+ * dispatch-only client). Construct the builder via `runtype.flow(name)` — or
33703
+ * use the unbound `new FlowBuilder()…validate(client)` form — to get a
33704
+ * validation-capable client.
33705
+ *
33706
+ * @example
33707
+ * ```typescript
33708
+ * const result = await runtype
33709
+ * .flow('My Flow')
33710
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
33711
+ * .validate()
33712
+ * ```
33713
+ */
33714
+ validate(): Promise<FlowValidationResult>;
33635
33715
  /**
33636
33716
  * Build and execute the flow using the bound client
33637
33717
  *
@@ -33817,7 +33897,14 @@ interface CreateFlowRequest {
33817
33897
  * valid. When omitted, the server mints one on first save.
33818
33898
  */
33819
33899
  id?: string;
33820
- type: 'prompt' | 'context' | 'condition' | 'output' | 'email';
33900
+ /**
33901
+ * Spec-derived flow step type discriminant (see {@link FlowStepType}). Kept
33902
+ * in sync with the API's canonical `FLOW_STEP_TYPES` via the generated
33903
+ * OpenAPI types — a removed step type breaks this build. Previously a stale
33904
+ * hand-written 5-value literal (`'prompt' | 'context' | 'condition' |
33905
+ * 'output' | 'email'`), four values of which were never real step types.
33906
+ */
33907
+ type: FlowStepType;
33821
33908
  name: string;
33822
33909
  order?: number;
33823
33910
  enabled?: boolean;
@@ -33957,6 +34044,33 @@ interface ClientToolDefinition {
33957
34044
  origin?: 'webmcp' | 'sdk';
33958
34045
  pageOrigin?: string;
33959
34046
  }
34047
+ type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
34048
+ /**
34049
+ * The canonical set of flow step types (e.g. `'prompt'`, `'transform-data'`,
34050
+ * `'conditional'`). Spec-derived from `FLOW_STEP_TYPES` in `@runtypelabs/shared`
34051
+ * (surfaced through the POST /v1/flows request body), so it cannot drift from
34052
+ * the API: `pnpm generate:types` refreshes the underlying generated types and
34053
+ * `generate:types:check` fails CI on drift.
34054
+ */
34055
+ type FlowStepType = NonNullable<CreateFlowRequestBody['flowSteps']>[number]['type'];
34056
+ /**
34057
+ * A single flow step definition for inline ("virtual") flow dispatch and flow
34058
+ * authoring. This replaces the former `Array<any>` on
34059
+ * {@link DispatchRequest.flow}`.steps`, so a malformed step — an unknown
34060
+ * `type`, or a non-object element — is now a compile error.
34061
+ *
34062
+ * Derived from the spec's create-flow request step, with two deliberate
34063
+ * adjustments:
34064
+ * - `name` is optional here: dispatch does not require step names (create-flow
34065
+ * does).
34066
+ * - `config` stays `unknown`. The API keeps step `config` loose at the schema
34067
+ * layer and validates it imperatively to produce rich, field-level agent
34068
+ * feedback. Compile-time per-type `config` typing (the recursive step-config
34069
+ * union) is the remaining follow-up — see end-to-end-type-safety plan #12(a).
34070
+ */
34071
+ type FlowStepDefinition = Omit<NonNullable<CreateFlowRequestBody['flowSteps']>[number], 'name'> & {
34072
+ name?: string;
34073
+ };
33960
34074
  interface DispatchRequest {
33961
34075
  record?: {
33962
34076
  id?: number | string;
@@ -33970,7 +34084,7 @@ interface DispatchRequest {
33970
34084
  id?: string;
33971
34085
  name?: string;
33972
34086
  contentHash?: string;
33973
- steps?: Array<any>;
34087
+ steps?: FlowStepDefinition[];
33974
34088
  };
33975
34089
  messages?: Array<{
33976
34090
  role: 'system' | 'user' | 'assistant';
@@ -34094,6 +34208,12 @@ interface DeploySandboxRequest {
34094
34208
  sandboxId?: string;
34095
34209
  startCommand?: string;
34096
34210
  files?: Record<string, string>;
34211
+ /** Custom labels applied at sandbox creation (Daytona), for provenance/cleanup. */
34212
+ labels?: Record<string, string>;
34213
+ /** Auto-stop interval in minutes (Daytona). Defaults to 120 when omitted. */
34214
+ autoStopInterval?: number;
34215
+ /** Auto-delete interval in minutes (Daytona); 0 deletes immediately on stop. Disabled when omitted. */
34216
+ autoDeleteInterval?: number;
34097
34217
  }
34098
34218
  interface DeploySandboxResponse {
34099
34219
  sandboxId: string;
@@ -34799,6 +34919,33 @@ declare class RuntypeFlowBuilder {
34799
34919
  */
34800
34920
  runWithLocalTools(localTools: Record<string, (args: unknown) => Promise<unknown>>, callbacks?: StreamCallbacks): Promise<FlowResult>;
34801
34921
  build(): DispatchRequest;
34922
+ /**
34923
+ * Validate this prospective flow against the public validation endpoint
34924
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it, using the bound
34925
+ * client. Returns the same `errors` / `warnings` / `recommendations` envelope
34926
+ * the API, dashboard, and MCP `validate_flow` tool use, so structural issues,
34927
+ * the upsert-record JSON foot-gun, undeclared-variable warnings, and
34928
+ * sub-optimal model selections surface at author time. The bound client
34929
+ * carries authentication; an authenticated client additionally runs
34930
+ * account-scoped checks (`result.context` reports whether they ran). Mirrors
34931
+ * {@link FlowBuilder.validate}.
34932
+ *
34933
+ * Only valid for prospective flows (`Runtype.flows.virtual(...)` /
34934
+ * `Runtype.flows.upsert(...)`). An existing-flow builder
34935
+ * (`Runtype.flows.use(id)`) has no inline steps to validate, so this throws —
34936
+ * the validation endpoint validates a `{ name, steps }` payload, not a saved
34937
+ * flow by id (which was already validated at create time).
34938
+ *
34939
+ * @example
34940
+ * ```typescript
34941
+ * const result = await Runtype.flows.virtual({ name: 'Temp Flow' })
34942
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
34943
+ * .validate()
34944
+ *
34945
+ * if (!result.valid) console.error(result.errors)
34946
+ * ```
34947
+ */
34948
+ validate(): Promise<FlowValidationResult>;
34802
34949
  /**
34803
34950
  * Persisted flow protocol (APQ-style): send hash-only first, retry with
34804
34951
  * full definition on FLOW_DEFINITION_REQUIRED. For non-upsert modes,
@@ -39065,4 +39212,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
39065
39212
  declare function getDefaultPlanPath(taskName: string): string;
39066
39213
  declare function sanitizeTaskSlug(taskName: string): string;
39067
39214
 
39068
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
39215
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
package/dist/index.d.ts CHANGED
@@ -694,6 +694,11 @@ interface paths {
694
694
  maxTurns?: number;
695
695
  reflectionInterval?: number;
696
696
  };
697
+ memory?: {
698
+ enabled: boolean;
699
+ injectSummary?: boolean;
700
+ profileTemplate?: string;
701
+ };
697
702
  model?: string;
698
703
  presencePenalty?: number;
699
704
  reasoning?: boolean | {
@@ -1345,6 +1350,11 @@ interface paths {
1345
1350
  maxTurns?: number;
1346
1351
  reflectionInterval?: number;
1347
1352
  };
1353
+ memory?: {
1354
+ enabled: boolean;
1355
+ injectSummary?: boolean;
1356
+ profileTemplate?: string;
1357
+ };
1348
1358
  model?: string;
1349
1359
  presencePenalty?: number;
1350
1360
  reasoning?: boolean | {
@@ -8759,7 +8769,7 @@ interface paths {
8759
8769
  name: string;
8760
8770
  order?: number;
8761
8771
  /** @enum {string} */
8762
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8772
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8763
8773
  when?: string;
8764
8774
  }[];
8765
8775
  name: string;
@@ -8771,7 +8781,7 @@ interface paths {
8771
8781
  name: string;
8772
8782
  order?: number;
8773
8783
  /** @enum {string} */
8774
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8784
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8775
8785
  when?: string;
8776
8786
  }[];
8777
8787
  };
@@ -8970,7 +8980,7 @@ interface paths {
8970
8980
  name: string;
8971
8981
  order?: number;
8972
8982
  /** @enum {string} */
8973
- type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf";
8983
+ type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "fetch-github" | "api-call" | "transform-data" | "template" | "conditional" | "set-variable" | "upsert-record" | "send-email" | "send-text" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
8974
8984
  when?: string;
8975
8985
  }[];
8976
8986
  name?: string;
@@ -33332,6 +33342,27 @@ interface FlowSummary {
33332
33342
  /** Whether the flow completed successfully */
33333
33343
  success: boolean;
33334
33344
  }
33345
+ /**
33346
+ * A single validation finding (error / warning / recommendation). Spec-derived
33347
+ * from the `POST /v1/public/flows/validate` response so it cannot drift from the
33348
+ * API contract (the shared `FlowValidationIssue` source of truth).
33349
+ */
33350
+ type FlowValidationIssue = components['schemas']['FlowValidationIssue'];
33351
+ /**
33352
+ * The result envelope returned by {@link FlowBuilder.validate}. Spec-derived
33353
+ * from the `POST /v1/public/flows/validate` response (`FlowValidationResult`):
33354
+ * `valid` plus the tri-level `errors` / `warnings` / `recommendations` arrays and
33355
+ * a `context` block describing whether account-scoped checks ran.
33356
+ */
33357
+ type FlowValidationResult = components['schemas']['FlowValidationResult'];
33358
+ /**
33359
+ * Minimal client capability {@link FlowBuilder.validate} needs: a JSON `POST`.
33360
+ * `RuntypeClient` (and any client exposing `post<T>(path, data)`) satisfies it,
33361
+ * so `validate()` stays zero-dependency and reuses the existing HTTP transport.
33362
+ */
33363
+ interface FlowValidationClient {
33364
+ post<T>(path: string, data?: unknown): Promise<T>;
33365
+ }
33335
33366
  declare class FlowBuilder {
33336
33367
  private flowConfig;
33337
33368
  private steps;
@@ -33531,6 +33562,37 @@ declare class FlowBuilder {
33531
33562
  * Build the final dispatch request configuration
33532
33563
  */
33533
33564
  build(): DispatchRequest;
33565
+ /**
33566
+ * Validate this prospective flow against the public validation endpoint
33567
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it. Returns the same
33568
+ * `errors` / `warnings` / `recommendations` envelope the API, dashboard, and
33569
+ * MCP `validate_flow` tool use, so structural issues, the upsert-record JSON
33570
+ * foot-gun, undeclared-variable warnings, and sub-optimal model selections
33571
+ * surface at author time rather than at dispatch time.
33572
+ *
33573
+ * Authentication is optional. Passing an authenticated client additionally
33574
+ * runs account-scoped checks (referenced tools / flows / agents must exist and
33575
+ * be owned by the account); `result.context` reports whether those ran.
33576
+ *
33577
+ * Validates the inline-defined steps. A builder targeting a SAVED flow by id
33578
+ * (`useExistingFlow(...)`) has no inline steps to validate, so this throws —
33579
+ * the validation endpoint validates a prospective `{ name, steps }` payload,
33580
+ * not a saved flow by id (which was already validated at create time).
33581
+ *
33582
+ * @param client - Any client exposing `post<T>(path, data)` (e.g. `RuntypeClient`).
33583
+ * @example
33584
+ * ```typescript
33585
+ * const result = await new FlowBuilder()
33586
+ * .createFlow({ name: 'My Flow' })
33587
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: 'Analyze: {{data}}' })
33588
+ * .validate(apiClient)
33589
+ *
33590
+ * if (!result.valid) {
33591
+ * for (const issue of result.errors) console.error(issue.code, issue.message)
33592
+ * }
33593
+ * ```
33594
+ */
33595
+ validate(client: FlowValidationClient): Promise<FlowValidationResult>;
33534
33596
  /**
33535
33597
  * Build and execute the flow with the provided client
33536
33598
  *
@@ -33631,7 +33693,25 @@ interface DispatchClient {
33631
33693
  */
33632
33694
  declare class ClientFlowBuilder extends FlowBuilder {
33633
33695
  private boundClient;
33634
- constructor(client: DispatchClient, name: string);
33696
+ constructor(client: DispatchClient & Partial<FlowValidationClient>, name: string);
33697
+ /**
33698
+ * Validate the flow using the bound client (no client argument needed).
33699
+ * Same contract as {@link FlowBuilder.validate}.
33700
+ *
33701
+ * Throws if the bound client does not expose a `post` transport (e.g. a
33702
+ * dispatch-only client). Construct the builder via `runtype.flow(name)` — or
33703
+ * use the unbound `new FlowBuilder()…validate(client)` form — to get a
33704
+ * validation-capable client.
33705
+ *
33706
+ * @example
33707
+ * ```typescript
33708
+ * const result = await runtype
33709
+ * .flow('My Flow')
33710
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
33711
+ * .validate()
33712
+ * ```
33713
+ */
33714
+ validate(): Promise<FlowValidationResult>;
33635
33715
  /**
33636
33716
  * Build and execute the flow using the bound client
33637
33717
  *
@@ -33817,7 +33897,14 @@ interface CreateFlowRequest {
33817
33897
  * valid. When omitted, the server mints one on first save.
33818
33898
  */
33819
33899
  id?: string;
33820
- type: 'prompt' | 'context' | 'condition' | 'output' | 'email';
33900
+ /**
33901
+ * Spec-derived flow step type discriminant (see {@link FlowStepType}). Kept
33902
+ * in sync with the API's canonical `FLOW_STEP_TYPES` via the generated
33903
+ * OpenAPI types — a removed step type breaks this build. Previously a stale
33904
+ * hand-written 5-value literal (`'prompt' | 'context' | 'condition' |
33905
+ * 'output' | 'email'`), four values of which were never real step types.
33906
+ */
33907
+ type: FlowStepType;
33821
33908
  name: string;
33822
33909
  order?: number;
33823
33910
  enabled?: boolean;
@@ -33957,6 +34044,33 @@ interface ClientToolDefinition {
33957
34044
  origin?: 'webmcp' | 'sdk';
33958
34045
  pageOrigin?: string;
33959
34046
  }
34047
+ type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
34048
+ /**
34049
+ * The canonical set of flow step types (e.g. `'prompt'`, `'transform-data'`,
34050
+ * `'conditional'`). Spec-derived from `FLOW_STEP_TYPES` in `@runtypelabs/shared`
34051
+ * (surfaced through the POST /v1/flows request body), so it cannot drift from
34052
+ * the API: `pnpm generate:types` refreshes the underlying generated types and
34053
+ * `generate:types:check` fails CI on drift.
34054
+ */
34055
+ type FlowStepType = NonNullable<CreateFlowRequestBody['flowSteps']>[number]['type'];
34056
+ /**
34057
+ * A single flow step definition for inline ("virtual") flow dispatch and flow
34058
+ * authoring. This replaces the former `Array<any>` on
34059
+ * {@link DispatchRequest.flow}`.steps`, so a malformed step — an unknown
34060
+ * `type`, or a non-object element — is now a compile error.
34061
+ *
34062
+ * Derived from the spec's create-flow request step, with two deliberate
34063
+ * adjustments:
34064
+ * - `name` is optional here: dispatch does not require step names (create-flow
34065
+ * does).
34066
+ * - `config` stays `unknown`. The API keeps step `config` loose at the schema
34067
+ * layer and validates it imperatively to produce rich, field-level agent
34068
+ * feedback. Compile-time per-type `config` typing (the recursive step-config
34069
+ * union) is the remaining follow-up — see end-to-end-type-safety plan #12(a).
34070
+ */
34071
+ type FlowStepDefinition = Omit<NonNullable<CreateFlowRequestBody['flowSteps']>[number], 'name'> & {
34072
+ name?: string;
34073
+ };
33960
34074
  interface DispatchRequest {
33961
34075
  record?: {
33962
34076
  id?: number | string;
@@ -33970,7 +34084,7 @@ interface DispatchRequest {
33970
34084
  id?: string;
33971
34085
  name?: string;
33972
34086
  contentHash?: string;
33973
- steps?: Array<any>;
34087
+ steps?: FlowStepDefinition[];
33974
34088
  };
33975
34089
  messages?: Array<{
33976
34090
  role: 'system' | 'user' | 'assistant';
@@ -34094,6 +34208,12 @@ interface DeploySandboxRequest {
34094
34208
  sandboxId?: string;
34095
34209
  startCommand?: string;
34096
34210
  files?: Record<string, string>;
34211
+ /** Custom labels applied at sandbox creation (Daytona), for provenance/cleanup. */
34212
+ labels?: Record<string, string>;
34213
+ /** Auto-stop interval in minutes (Daytona). Defaults to 120 when omitted. */
34214
+ autoStopInterval?: number;
34215
+ /** Auto-delete interval in minutes (Daytona); 0 deletes immediately on stop. Disabled when omitted. */
34216
+ autoDeleteInterval?: number;
34097
34217
  }
34098
34218
  interface DeploySandboxResponse {
34099
34219
  sandboxId: string;
@@ -34799,6 +34919,33 @@ declare class RuntypeFlowBuilder {
34799
34919
  */
34800
34920
  runWithLocalTools(localTools: Record<string, (args: unknown) => Promise<unknown>>, callbacks?: StreamCallbacks): Promise<FlowResult>;
34801
34921
  build(): DispatchRequest;
34922
+ /**
34923
+ * Validate this prospective flow against the public validation endpoint
34924
+ * (`POST /v1/public/flows/validate`) WITHOUT creating it, using the bound
34925
+ * client. Returns the same `errors` / `warnings` / `recommendations` envelope
34926
+ * the API, dashboard, and MCP `validate_flow` tool use, so structural issues,
34927
+ * the upsert-record JSON foot-gun, undeclared-variable warnings, and
34928
+ * sub-optimal model selections surface at author time. The bound client
34929
+ * carries authentication; an authenticated client additionally runs
34930
+ * account-scoped checks (`result.context` reports whether they ran). Mirrors
34931
+ * {@link FlowBuilder.validate}.
34932
+ *
34933
+ * Only valid for prospective flows (`Runtype.flows.virtual(...)` /
34934
+ * `Runtype.flows.upsert(...)`). An existing-flow builder
34935
+ * (`Runtype.flows.use(id)`) has no inline steps to validate, so this throws —
34936
+ * the validation endpoint validates a `{ name, steps }` payload, not a saved
34937
+ * flow by id (which was already validated at create time).
34938
+ *
34939
+ * @example
34940
+ * ```typescript
34941
+ * const result = await Runtype.flows.virtual({ name: 'Temp Flow' })
34942
+ * .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
34943
+ * .validate()
34944
+ *
34945
+ * if (!result.valid) console.error(result.errors)
34946
+ * ```
34947
+ */
34948
+ validate(): Promise<FlowValidationResult>;
34802
34949
  /**
34803
34950
  * Persisted flow protocol (APQ-style): send hash-only first, retry with
34804
34951
  * full definition on FLOW_DEFINITION_REQUIRED. For non-upsert modes,
@@ -39065,4 +39212,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
39065
39212
  declare function getDefaultPlanPath(taskName: string): string;
39066
39213
  declare function sanitizeTaskSlug(taskName: string): string;
39067
39214
 
39068
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
39215
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };