@runtypelabs/sdk 4.0.4 → 4.1.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.cjs +4245 -4125
- package/dist/index.d.cts +148 -7
- package/dist/index.d.ts +148 -7
- package/dist/index.mjs +4245 -4125
- package/package.json +1 -1
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
|
|
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
|
-
|
|
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?:
|
|
34087
|
+
steps?: FlowStepDefinition[];
|
|
33974
34088
|
};
|
|
33975
34089
|
messages?: Array<{
|
|
33976
34090
|
role: 'system' | 'user' | 'assistant';
|
|
@@ -34799,6 +34913,33 @@ declare class RuntypeFlowBuilder {
|
|
|
34799
34913
|
*/
|
|
34800
34914
|
runWithLocalTools(localTools: Record<string, (args: unknown) => Promise<unknown>>, callbacks?: StreamCallbacks): Promise<FlowResult>;
|
|
34801
34915
|
build(): DispatchRequest;
|
|
34916
|
+
/**
|
|
34917
|
+
* Validate this prospective flow against the public validation endpoint
|
|
34918
|
+
* (`POST /v1/public/flows/validate`) WITHOUT creating it, using the bound
|
|
34919
|
+
* client. Returns the same `errors` / `warnings` / `recommendations` envelope
|
|
34920
|
+
* the API, dashboard, and MCP `validate_flow` tool use, so structural issues,
|
|
34921
|
+
* the upsert-record JSON foot-gun, undeclared-variable warnings, and
|
|
34922
|
+
* sub-optimal model selections surface at author time. The bound client
|
|
34923
|
+
* carries authentication; an authenticated client additionally runs
|
|
34924
|
+
* account-scoped checks (`result.context` reports whether they ran). Mirrors
|
|
34925
|
+
* {@link FlowBuilder.validate}.
|
|
34926
|
+
*
|
|
34927
|
+
* Only valid for prospective flows (`Runtype.flows.virtual(...)` /
|
|
34928
|
+
* `Runtype.flows.upsert(...)`). An existing-flow builder
|
|
34929
|
+
* (`Runtype.flows.use(id)`) has no inline steps to validate, so this throws —
|
|
34930
|
+
* the validation endpoint validates a `{ name, steps }` payload, not a saved
|
|
34931
|
+
* flow by id (which was already validated at create time).
|
|
34932
|
+
*
|
|
34933
|
+
* @example
|
|
34934
|
+
* ```typescript
|
|
34935
|
+
* const result = await Runtype.flows.virtual({ name: 'Temp Flow' })
|
|
34936
|
+
* .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
|
|
34937
|
+
* .validate()
|
|
34938
|
+
*
|
|
34939
|
+
* if (!result.valid) console.error(result.errors)
|
|
34940
|
+
* ```
|
|
34941
|
+
*/
|
|
34942
|
+
validate(): Promise<FlowValidationResult>;
|
|
34802
34943
|
/**
|
|
34803
34944
|
* Persisted flow protocol (APQ-style): send hash-only first, retry with
|
|
34804
34945
|
* full definition on FLOW_DEFINITION_REQUIRED. For non-upsert modes,
|
|
@@ -39065,4 +39206,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
39065
39206
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
39066
39207
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
39067
39208
|
|
|
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 };
|
|
39209
|
+
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
|
|
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
|
-
|
|
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?:
|
|
34087
|
+
steps?: FlowStepDefinition[];
|
|
33974
34088
|
};
|
|
33975
34089
|
messages?: Array<{
|
|
33976
34090
|
role: 'system' | 'user' | 'assistant';
|
|
@@ -34799,6 +34913,33 @@ declare class RuntypeFlowBuilder {
|
|
|
34799
34913
|
*/
|
|
34800
34914
|
runWithLocalTools(localTools: Record<string, (args: unknown) => Promise<unknown>>, callbacks?: StreamCallbacks): Promise<FlowResult>;
|
|
34801
34915
|
build(): DispatchRequest;
|
|
34916
|
+
/**
|
|
34917
|
+
* Validate this prospective flow against the public validation endpoint
|
|
34918
|
+
* (`POST /v1/public/flows/validate`) WITHOUT creating it, using the bound
|
|
34919
|
+
* client. Returns the same `errors` / `warnings` / `recommendations` envelope
|
|
34920
|
+
* the API, dashboard, and MCP `validate_flow` tool use, so structural issues,
|
|
34921
|
+
* the upsert-record JSON foot-gun, undeclared-variable warnings, and
|
|
34922
|
+
* sub-optimal model selections surface at author time. The bound client
|
|
34923
|
+
* carries authentication; an authenticated client additionally runs
|
|
34924
|
+
* account-scoped checks (`result.context` reports whether they ran). Mirrors
|
|
34925
|
+
* {@link FlowBuilder.validate}.
|
|
34926
|
+
*
|
|
34927
|
+
* Only valid for prospective flows (`Runtype.flows.virtual(...)` /
|
|
34928
|
+
* `Runtype.flows.upsert(...)`). An existing-flow builder
|
|
34929
|
+
* (`Runtype.flows.use(id)`) has no inline steps to validate, so this throws —
|
|
34930
|
+
* the validation endpoint validates a `{ name, steps }` payload, not a saved
|
|
34931
|
+
* flow by id (which was already validated at create time).
|
|
34932
|
+
*
|
|
34933
|
+
* @example
|
|
34934
|
+
* ```typescript
|
|
34935
|
+
* const result = await Runtype.flows.virtual({ name: 'Temp Flow' })
|
|
34936
|
+
* .prompt({ name: 'Process', model: 'gpt-5-mini', userPrompt: '...' })
|
|
34937
|
+
* .validate()
|
|
34938
|
+
*
|
|
34939
|
+
* if (!result.valid) console.error(result.errors)
|
|
34940
|
+
* ```
|
|
34941
|
+
*/
|
|
34942
|
+
validate(): Promise<FlowValidationResult>;
|
|
34802
34943
|
/**
|
|
34803
34944
|
* Persisted flow protocol (APQ-style): send hash-only first, retry with
|
|
34804
34945
|
* full definition on FLOW_DEFINITION_REQUIRED. For non-upsert modes,
|
|
@@ -39065,4 +39206,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
39065
39206
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
39066
39207
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
39067
39208
|
|
|
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 };
|
|
39209
|
+
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 };
|