@runtypelabs/sdk 4.21.0 → 5.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.d.ts CHANGED
@@ -34634,7 +34634,7 @@ interface paths {
34634
34634
  put?: never;
34635
34635
  /**
34636
34636
  * Execute tool
34637
- * @description Execute a tool by ID with the provided parameters. Flow tools stream an SSE response; non-flow tools return a JSON result.
34637
+ * @description Execute a tool by ID with the provided parameters. Non-flow tools return the documented JSON result. Flow tools return a text/event-stream response whose frames use the ExecutionStreamEvent vocabulary by default; use a raw/streaming client helper for flow tools.
34638
34638
  */
34639
34639
  post: {
34640
34640
  parameters: {
@@ -35861,446 +35861,405 @@ interface components {
35861
35861
  }[];
35862
35862
  error: string;
35863
35863
  };
35864
- FlowEnsureConflict: {
35865
- /** @enum {string} */
35866
- code: "external_modification" | "remote_changed";
35867
- currentHash?: string | null;
35868
- error: string;
35869
- lastModifiedSource?: string;
35870
- modifiedAt?: string | null;
35871
- };
35872
- FlowEnsureHashMismatch: {
35873
- /** @enum {string} */
35874
- code: "content_hash_mismatch";
35875
- /** @description The server-computed canonical hash of the submitted definition. */
35876
- contentHash: string;
35877
- error: string;
35878
- };
35879
- FlowEnsureResponse: {
35880
- /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
35881
- contentHash: string;
35882
- flowId: string;
35883
- /** @enum {string} */
35884
- result: "unchanged" | "created" | "updated";
35885
- /** @description The version snapshot backing this state (null if snapshotting failed). */
35886
- versionId: string | null;
35887
- } | {
35888
- /** @enum {string} */
35889
- result: "definitionRequired";
35890
- } | {
35891
- changedKeys: string[];
35892
- /** @enum {string} */
35893
- changes: "none" | "create" | "update";
35894
- contentHash: string;
35895
- flowId?: string;
35896
- remoteHash?: string;
35897
- /** @enum {string} */
35898
- result: "plan";
35899
- };
35900
- FlowPullResponse: {
35901
- contentHash: string;
35902
- definition: {
35903
- name: string;
35904
- steps: {
35905
- config?: {
35906
- [key: string]: unknown;
35907
- };
35908
- enabled?: boolean;
35909
- name: string;
35910
- order?: number;
35911
- type: string;
35912
- when?: string;
35913
- }[];
35914
- };
35915
- flowId: string;
35916
- lastModifiedSource: string | null;
35917
- updatedAt: string | null;
35918
- versionId: string | null;
35919
- /** @description Present only when a raw tool_… reference could not be emitted as a portable tool:<name> (the tool was deleted, or its name is shadowed by an older same-named tool). Those references are left as raw ids, which the ensure surface rejects; each warning explains how to fix it. */
35920
- warnings?: string[];
35921
- };
35922
- FlowSSEEvent: {
35923
- executionContext?: {
35864
+ ExecutionStreamEvent: {
35865
+ agentId?: string;
35866
+ agentName?: string;
35867
+ config?: {
35924
35868
  [key: string]: unknown;
35925
35869
  };
35926
- executionId?: string;
35927
- flowId: string;
35870
+ executionId: string;
35871
+ flowId?: string;
35928
35872
  flowName?: string;
35929
- input?: unknown;
35930
- seq?: number;
35873
+ /** @enum {string} */
35874
+ kind: "agent" | "flow";
35875
+ maxTurns?: number;
35876
+ seq: number;
35931
35877
  source?: string;
35932
35878
  startedAt: string;
35933
- toolContext?: {
35934
- executionId: string;
35935
- stepId: string;
35936
- toolId: string;
35937
- };
35938
35879
  totalSteps?: number;
35939
35880
  /** @enum {string} */
35940
- type: "flow_start";
35881
+ type: "execution_start";
35941
35882
  } | {
35942
- claudeManagedAgentId?: string;
35943
35883
  completedAt?: string;
35944
- completedSteps?: number;
35945
- duration?: number;
35946
- executionContext?: {
35947
- [key: string]: unknown;
35948
- };
35949
- executionId?: string;
35950
- executionTime?: number;
35884
+ durationMs?: number;
35885
+ executionId: string;
35951
35886
  failedSteps?: number;
35952
35887
  finalOutput?: string;
35953
- flowId?: string;
35954
- flowName?: string;
35955
- output?: unknown;
35956
- seq?: number;
35957
- source?: string;
35958
- success?: boolean;
35888
+ iterations?: number;
35889
+ /** @enum {string} */
35890
+ kind: "agent" | "flow";
35891
+ seq: number;
35892
+ stopReason?: string;
35893
+ success: boolean;
35959
35894
  successfulSteps?: number;
35960
- toolContext?: {
35961
- executionId: string;
35962
- stepId: string;
35963
- toolId: string;
35964
- };
35895
+ totalCost?: number;
35965
35896
  totalSteps?: number;
35966
- totalTokensUsed?: number;
35897
+ totalTokens?: {
35898
+ input: number;
35899
+ output: number;
35900
+ };
35967
35901
  /** @enum {string} */
35968
- type: "flow_complete";
35902
+ type: "execution_complete";
35969
35903
  } | {
35970
35904
  code?: string;
35905
+ completedAt?: string;
35971
35906
  error: string | {
35972
35907
  code: string;
35908
+ details?: {
35909
+ [key: string]: unknown;
35910
+ };
35973
35911
  message: string;
35974
- stepId?: string;
35975
- stepType?: string;
35976
- };
35977
- executionId?: string;
35978
- executionTime?: number;
35979
- flowId?: string;
35980
- seq?: number;
35981
- timestamp?: string;
35982
- toolContext?: {
35983
- executionId: string;
35984
- stepId: string;
35985
- toolId: string;
35986
35912
  };
35913
+ executionId: string;
35987
35914
  /** @enum {string} */
35988
- type: "flow_error";
35915
+ kind: "agent" | "flow";
35916
+ seq: number;
35917
+ /** @enum {string} */
35918
+ type: "execution_error";
35989
35919
  upgradeUrl?: string;
35990
35920
  } | {
35991
- awaitedAt: string;
35992
- executionId?: string;
35993
- flowId: string;
35921
+ executionId: string;
35922
+ id: string;
35923
+ iteration?: number;
35994
35924
  /** @enum {string} */
35995
- origin?: "webmcp" | "sdk";
35996
- pageOrigin?: string;
35997
- parameters?: {
35998
- [key: string]: unknown;
35925
+ role: "user" | "assistant" | "system";
35926
+ seq: number;
35927
+ turnIndex?: number;
35928
+ /** @enum {string} */
35929
+ type: "turn_start";
35930
+ } | {
35931
+ completedAt?: string;
35932
+ content?: string;
35933
+ cost?: number;
35934
+ executionId: string;
35935
+ fallback?: {
35936
+ attempts: {
35937
+ attempt: number;
35938
+ error?: string;
35939
+ model?: string;
35940
+ success: boolean;
35941
+ /** @enum {string} */
35942
+ type: "retry" | "model" | "message" | "flow";
35943
+ }[];
35944
+ exhausted: boolean;
35945
+ model?: string;
35946
+ reason?: string | null;
35947
+ used: boolean;
35999
35948
  };
36000
- seq?: number;
36001
- toolCallId?: string;
36002
- toolId?: string;
36003
- toolName?: string;
35949
+ id: string;
35950
+ iteration?: number;
36004
35951
  /** @enum {string} */
36005
- type: "flow_await";
35952
+ role: "user" | "assistant" | "system";
35953
+ seq: number;
35954
+ /** @enum {string} */
35955
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
35956
+ tokens?: {
35957
+ input: number;
35958
+ output: number;
35959
+ };
35960
+ /** @enum {string} */
35961
+ type: "turn_complete";
36006
35962
  } | {
36007
- estimatedTokens?: number;
36008
- executionId?: string;
36009
- id?: string;
35963
+ executionId: string;
35964
+ id: string;
36010
35965
  index?: number;
36011
35966
  name?: string;
36012
35967
  outputVariable?: string;
36013
- seq?: number;
36014
- startedAt: string;
36015
- stepId?: string;
36016
- stepName?: string;
35968
+ seq: number;
35969
+ startedAt?: string;
36017
35970
  stepType?: string;
36018
- toolContext?: {
36019
- executionId: string;
36020
- stepId: string;
36021
- toolId: string;
36022
- };
36023
35971
  totalSteps?: number;
36024
35972
  /** @enum {string} */
36025
35973
  type: "step_start";
36026
- } | {
36027
- delta?: string;
36028
- executionId?: string;
36029
- id?: string;
36030
- messageId?: string;
36031
- partId?: string;
36032
- seq?: number;
36033
- text?: string;
36034
- toolContext?: {
36035
- executionId: string;
36036
- stepId: string;
36037
- toolId: string;
36038
- };
36039
- toolId?: string;
36040
- /** @enum {string} */
36041
- type: "step_delta";
36042
35974
  } | {
36043
35975
  completedAt?: string;
36044
- duration?: number;
36045
35976
  durationMs?: number;
36046
35977
  error?: string;
36047
- executionId?: string;
36048
- executionTime?: number;
36049
- id?: string;
36050
- index?: number;
35978
+ executionId: string;
35979
+ fallback?: {
35980
+ attempts: {
35981
+ attempt: number;
35982
+ error?: string;
35983
+ model?: string;
35984
+ success: boolean;
35985
+ /** @enum {string} */
35986
+ type: "retry" | "model" | "message" | "flow";
35987
+ }[];
35988
+ exhausted: boolean;
35989
+ model?: string;
35990
+ reason?: string | null;
35991
+ used: boolean;
35992
+ };
35993
+ id: string;
36051
35994
  name?: string;
36052
- output?: unknown;
36053
35995
  result?: unknown;
36054
- seq?: number;
36055
- stepId?: string;
36056
- stepName?: string;
35996
+ seq: number;
36057
35997
  stepType?: string;
36058
35998
  /** @enum {string} */
36059
35999
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36060
36000
  success?: boolean;
36061
36001
  tokensUsed?: number;
36062
- toolContext?: {
36063
- executionId: string;
36064
- stepId: string;
36065
- toolId: string;
36066
- };
36067
36002
  /** @enum {string} */
36068
36003
  type: "step_complete";
36069
36004
  unresolvedVariables?: string[];
36070
36005
  } | {
36071
- error: string;
36072
- executionId?: string;
36073
- executionTime?: number;
36074
- id?: string;
36006
+ executionId: string;
36007
+ id: string;
36075
36008
  index?: number;
36076
36009
  name?: string;
36077
- seq?: number;
36010
+ seq: number;
36011
+ skippedAt?: string;
36078
36012
  stepType?: string;
36013
+ totalSteps?: number;
36079
36014
  /** @enum {string} */
36080
- type: "step_error";
36015
+ type: "step_skip";
36016
+ when?: string;
36081
36017
  } | {
36082
- error?: string;
36018
+ executionId: string;
36019
+ id: string;
36020
+ /** @enum {string} */
36021
+ role?: "user" | "assistant" | "system";
36022
+ seq: number;
36023
+ stepId?: string;
36024
+ turnId?: string;
36025
+ /** @enum {string} */
36026
+ type: "text_start";
36027
+ } | {
36028
+ delta: string;
36029
+ executionId: string;
36030
+ id: string;
36031
+ seq: number;
36032
+ /** @enum {string} */
36033
+ type: "text_delta";
36034
+ } | {
36035
+ executionId: string;
36036
+ id: string;
36037
+ seq: number;
36038
+ text?: string;
36039
+ /** @enum {string} */
36040
+ type: "text_complete";
36041
+ } | {
36042
+ executionId: string;
36043
+ id: string;
36044
+ /** @enum {string} */
36045
+ scope?: "turn" | "loop";
36046
+ seq: number;
36047
+ /** @enum {string} */
36048
+ type: "reasoning_start";
36049
+ } | {
36050
+ delta: string;
36051
+ executionId: string;
36052
+ id: string;
36053
+ seq: number;
36054
+ /** @enum {string} */
36055
+ type: "reasoning_delta";
36056
+ } | {
36057
+ executionId: string;
36058
+ id: string;
36059
+ /** @enum {string} */
36060
+ scope?: "turn" | "loop";
36061
+ seq: number;
36062
+ text?: string;
36063
+ /** @enum {string} */
36064
+ type: "reasoning_complete";
36065
+ } | {
36066
+ executionId: string;
36067
+ id: string;
36068
+ mediaType: string;
36069
+ /** @enum {string} */
36070
+ role?: "user" | "assistant" | "system";
36071
+ seq: number;
36072
+ toolCallId?: string;
36073
+ /** @enum {string} */
36074
+ type: "media_start";
36075
+ } | {
36076
+ delta: string;
36077
+ executionId: string;
36078
+ id: string;
36079
+ seq: number;
36080
+ /** @enum {string} */
36081
+ type: "media_delta";
36082
+ } | {
36083
+ data?: string;
36084
+ executionId: string;
36085
+ id: string;
36086
+ mediaType?: string;
36087
+ seq: number;
36088
+ toolCallId?: string;
36089
+ /** @enum {string} */
36090
+ type: "media_complete";
36091
+ url?: string;
36092
+ } | {
36093
+ /** @enum {string} */
36094
+ artifactType: "markdown" | "component";
36095
+ component?: string;
36083
36096
  executionId?: string;
36084
36097
  id: string;
36085
- index?: number;
36086
- name?: string;
36087
36098
  seq?: number;
36088
- skippedAt: string;
36089
- stepType: string;
36090
- totalSteps: number;
36099
+ title?: string;
36091
36100
  /** @enum {string} */
36092
- type: "step_skip";
36093
- when: string;
36094
- } | ({
36101
+ type: "artifact_start";
36102
+ } | {
36103
+ delta: string;
36095
36104
  executionId?: string;
36096
- reason?: string;
36105
+ id: string;
36097
36106
  seq?: number;
36098
36107
  /** @enum {string} */
36099
- type: "step_await";
36100
- } & {
36101
- [key: string]: unknown;
36102
- }) | ({
36103
- agentContext?: {
36104
- executionId: string;
36105
- iteration: number;
36106
- seq: number;
36107
- };
36108
+ type: "artifact_delta";
36109
+ } | {
36110
+ component: string;
36108
36111
  executionId?: string;
36109
- hiddenParameterNames?: string[];
36110
- name?: string;
36111
- parameters?: {
36112
- [key: string]: unknown;
36113
- };
36114
- providerOptions?: {
36112
+ id: string;
36113
+ props: {
36115
36114
  [key: string]: unknown;
36116
36115
  };
36117
36116
  seq?: number;
36118
- startedAt?: string;
36119
- stepId?: string;
36120
- toolCallId?: string;
36121
- toolId?: string;
36122
- toolName?: string;
36123
- /** @enum {string} */
36124
- toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
36125
36117
  /** @enum {string} */
36126
- type: "tool_start";
36127
- } & {
36128
- [key: string]: unknown;
36129
- }) | ({
36130
- delta?: string;
36118
+ type: "artifact_update";
36119
+ } | {
36131
36120
  executionId?: string;
36121
+ id: string;
36132
36122
  seq?: number;
36133
- toolId?: string;
36134
36123
  /** @enum {string} */
36135
- type: "tool_delta";
36124
+ type: "artifact_complete";
36125
+ } | ({
36126
+ executionId: string;
36127
+ id?: string;
36128
+ seq: number;
36129
+ sourceType?: string;
36130
+ title?: string;
36131
+ /** @enum {string} */
36132
+ type: "source";
36133
+ url?: string;
36136
36134
  } & {
36137
36135
  [key: string]: unknown;
36138
36136
  }) | {
36139
- delta: string;
36140
- executionId?: string;
36141
- seq?: number;
36137
+ executionId: string;
36138
+ hiddenParameterNames?: string[];
36139
+ iteration?: number;
36140
+ /** @enum {string} */
36141
+ origin?: "webmcp" | "sdk";
36142
+ pageOrigin?: string;
36143
+ parameters?: {
36144
+ [key: string]: unknown;
36145
+ };
36146
+ seq: number;
36147
+ startedAt?: string;
36142
36148
  stepId?: string;
36143
- toolCallId?: string;
36144
- toolId?: string;
36149
+ toolCallId: string;
36150
+ toolName: string;
36151
+ toolType: string;
36152
+ /** @enum {string} */
36153
+ type: "tool_start";
36154
+ } | {
36155
+ delta: string;
36156
+ executionId: string;
36157
+ seq: number;
36158
+ toolCallId: string;
36145
36159
  /** @enum {string} */
36146
36160
  type: "tool_input_delta";
36147
36161
  } | {
36148
- executionId?: string;
36162
+ executionId: string;
36149
36163
  hiddenParameterNames?: string[];
36150
36164
  parameters: {
36151
36165
  [key: string]: unknown;
36152
36166
  };
36153
- providerOptions?: {
36154
- [key: string]: unknown;
36155
- };
36156
- seq?: number;
36157
- stepId?: string;
36158
- toolCallId?: string;
36159
- toolId?: string;
36167
+ seq: number;
36168
+ toolCallId: string;
36160
36169
  toolName?: string;
36161
36170
  /** @enum {string} */
36162
36171
  type: "tool_input_complete";
36163
36172
  } | {
36164
- agentContext?: {
36165
- executionId: string;
36166
- iteration: number;
36167
- seq: number;
36168
- };
36169
- completedAt?: string;
36173
+ delta: string;
36174
+ executionId: string;
36175
+ seq: number;
36176
+ toolCallId: string;
36177
+ /** @enum {string} */
36178
+ type: "tool_output_delta";
36179
+ } | {
36170
36180
  error?: string;
36171
- executionId?: string;
36181
+ executionId: string;
36172
36182
  executionTime?: number;
36173
- name?: string;
36183
+ iteration?: number;
36174
36184
  result?: unknown;
36175
- seq?: number;
36185
+ seq: number;
36176
36186
  stepId?: string;
36177
36187
  success: boolean;
36178
- toolCallId?: string;
36179
- toolCost?: number;
36180
- toolId?: string;
36188
+ toolCallId: string;
36181
36189
  toolName?: string;
36182
36190
  /** @enum {string} */
36183
36191
  type: "tool_complete";
36184
36192
  } | {
36185
- agentContext?: {
36186
- executionId: string;
36187
- iteration: number;
36188
- seq: number;
36193
+ approvalId: string;
36194
+ description?: string;
36195
+ executionId: string;
36196
+ iteration?: number;
36197
+ parameters?: {
36198
+ [key: string]: unknown;
36189
36199
  };
36190
- error: string;
36191
- executionId?: string;
36192
- executionTime?: number;
36193
- failedAt?: string;
36194
- name: string;
36195
- seq?: number;
36196
- toolId: string;
36200
+ reason?: string;
36201
+ seq: number;
36202
+ startedAt?: string;
36203
+ timeout?: number;
36204
+ toolCallId?: string;
36205
+ toolName: string;
36206
+ toolType?: string;
36197
36207
  /** @enum {string} */
36198
- type: "tool_error";
36208
+ type: "approval_start";
36199
36209
  } | {
36200
- executionId?: string;
36201
- id: string;
36202
- seq?: number;
36203
- text: string;
36210
+ approvalId: string;
36211
+ completedAt?: string;
36204
36212
  /** @enum {string} */
36205
- type: "chunk";
36206
- } | ({
36207
- executionId?: string;
36208
- seq?: number;
36213
+ decision: "approved" | "denied" | "timeout";
36214
+ executionId: string;
36209
36215
  /** @enum {string} */
36210
- type: "text_start";
36211
- } & {
36212
- [key: string]: unknown;
36213
- }) | ({
36214
- executionId?: string;
36215
- seq?: number;
36216
+ resolvedBy?: "user" | "system";
36217
+ seq: number;
36216
36218
  /** @enum {string} */
36217
- type: "text_end";
36218
- } & {
36219
- [key: string]: unknown;
36220
- }) | ({
36221
- executionId?: string;
36222
- seq?: number;
36223
- /** @enum {string} */
36224
- type: "reason_start";
36225
- } & {
36226
- [key: string]: unknown;
36227
- }) | ({
36228
- executionId?: string;
36229
- seq?: number;
36230
- /** @enum {string} */
36231
- type: "reason_delta";
36232
- } & {
36233
- [key: string]: unknown;
36234
- }) | ({
36235
- executionId?: string;
36236
- seq?: number;
36219
+ type: "approval_complete";
36220
+ } | {
36221
+ awaitedAt?: string;
36222
+ executionId: string;
36237
36223
  /** @enum {string} */
36238
- type: "reason_complete";
36239
- } & {
36240
- [key: string]: unknown;
36241
- }) | ({
36242
- executionId?: string;
36243
- seq?: number;
36224
+ origin?: "webmcp" | "sdk";
36225
+ pageOrigin?: string;
36226
+ parameters?: {
36227
+ [key: string]: unknown;
36228
+ };
36229
+ seq: number;
36230
+ toolCallId?: string;
36231
+ toolId?: string;
36232
+ toolName?: string;
36244
36233
  /** @enum {string} */
36245
- type: "source";
36246
- } & {
36247
- [key: string]: unknown;
36248
- }) | ({
36249
- executionId?: string;
36250
- seq?: number;
36234
+ type: "await";
36235
+ } | {
36236
+ error: string | {
36237
+ code: string;
36238
+ details?: {
36239
+ [key: string]: unknown;
36240
+ };
36241
+ message: string;
36242
+ };
36243
+ executionId: string;
36244
+ recoverable?: boolean;
36245
+ seq: number;
36251
36246
  /** @enum {string} */
36252
- type: "fallback_start";
36253
- } & {
36254
- [key: string]: unknown;
36255
- }) | ({
36256
- executionId?: string;
36257
- seq?: number;
36247
+ type: "error";
36248
+ } | {
36249
+ executionId: string;
36250
+ seq: number;
36251
+ timestamp: string;
36258
36252
  /** @enum {string} */
36259
- type: "fallback_complete";
36260
- } & {
36261
- [key: string]: unknown;
36262
- }) | ({
36253
+ type: "ping";
36254
+ } | {
36263
36255
  executionId?: string;
36256
+ name: string;
36264
36257
  seq?: number;
36265
36258
  /** @enum {string} */
36266
- type: "fallback_exhausted";
36267
- } & {
36268
- [key: string]: unknown;
36269
- });
36270
- FlowValidationIssue: {
36271
- code: string;
36272
- details?: unknown;
36273
- message: string;
36274
- path?: string;
36275
- step?: {
36276
- index: number;
36277
- name: string;
36278
- type: string;
36279
- };
36280
- };
36281
- FlowValidationResult: {
36282
- context: {
36283
- accountChecksPerformed: boolean;
36284
- accountChecksSkipped: boolean;
36285
- authenticated: boolean;
36286
- };
36287
- errors: components["schemas"]["FlowValidationIssue"][];
36288
- recommendations: components["schemas"]["FlowValidationIssue"][];
36289
- valid: boolean;
36290
- warnings: components["schemas"]["FlowValidationIssue"][];
36291
- };
36292
- Pagination: {
36293
- currentOffset: number;
36294
- currentPage?: number;
36295
- hasMore: boolean;
36296
- hasPrev: boolean;
36297
- limit: number;
36298
- nextCursor: string | null;
36299
- prevCursor: string | null;
36300
- totalCount?: number;
36301
- totalPages?: number;
36259
+ type: "custom";
36260
+ value?: unknown;
36302
36261
  };
36303
- ProductEnsureConflict: {
36262
+ FlowEnsureConflict: {
36304
36263
  /** @enum {string} */
36305
36264
  code: "external_modification" | "remote_changed";
36306
36265
  currentHash?: string | null;
@@ -36308,19 +36267,21 @@ interface components {
36308
36267
  lastModifiedSource?: string;
36309
36268
  modifiedAt?: string | null;
36310
36269
  };
36311
- ProductEnsureHashMismatch: {
36270
+ FlowEnsureHashMismatch: {
36312
36271
  /** @enum {string} */
36313
36272
  code: "content_hash_mismatch";
36314
36273
  /** @description The server-computed canonical hash of the submitted definition. */
36315
36274
  contentHash: string;
36316
36275
  error: string;
36317
36276
  };
36318
- ProductEnsureResponse: {
36277
+ FlowEnsureResponse: {
36319
36278
  /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36320
36279
  contentHash: string;
36321
- productId: string;
36280
+ flowId: string;
36322
36281
  /** @enum {string} */
36323
36282
  result: "unchanged" | "created" | "updated";
36283
+ /** @description The version snapshot backing this state (null if snapshotting failed). */
36284
+ versionId: string | null;
36324
36285
  } | {
36325
36286
  /** @enum {string} */
36326
36287
  result: "definitionRequired";
@@ -36329,685 +36290,725 @@ interface components {
36329
36290
  /** @enum {string} */
36330
36291
  changes: "none" | "create" | "update";
36331
36292
  contentHash: string;
36332
- productId?: string;
36293
+ flowId?: string;
36333
36294
  remoteHash?: string;
36334
36295
  /** @enum {string} */
36335
36296
  result: "plan";
36336
36297
  };
36337
- ProductFpoEnsureResponse: {
36338
- /** @description Server-computed canonical whole-FPO content hash. */
36339
- contentHash: string;
36340
- entities: {
36341
- error?: string;
36342
- /** @description Resulting platform id (absent on failure/skip/pruned). */
36343
- id?: string;
36344
- /** @enum {string} */
36345
- kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
36346
- name: string;
36347
- /** @description The FPO-local ref (capability id / entity name) for correlation. */
36348
- ref: string;
36349
- /** @enum {string} */
36350
- result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
36351
- }[];
36352
- /** @description True when one or more entities failed to converge (re-run to self-heal). */
36353
- hasFailures: boolean;
36354
- productId?: string;
36355
- /**
36356
- * @description `unchanged` when every entity was unchanged, `converged` when at least one was created/updated, `plan` for dryRun.
36357
- * @enum {string}
36358
- */
36359
- result: "unchanged" | "converged" | "plan";
36360
- };
36361
- ProductFpoPullResponse: {
36362
- /** @description Server-computed canonical whole-FPO content hash. */
36363
- contentHash: string;
36364
- /** @description A self-contained Full Product Object reconstructed from the live graph. Feeding it back into POST /products/ensure-fpo converges to `unchanged`. records/schedules/secrets are not reconstructed (see `warnings`); tool refs are emitted as portable `tool:<name>`. */
36365
- fpo: {
36366
- [key: string]: unknown;
36367
- };
36368
- productId: string;
36369
- /** @description Reconstruction caveats (omitted entities, unrepresentable rows). */
36370
- warnings?: string[];
36371
- };
36372
- ProductPullResponse: {
36298
+ FlowPullResponse: {
36373
36299
  contentHash: string;
36374
36300
  definition: {
36375
- description?: string | null;
36376
- icon?: string | null;
36377
36301
  name: string;
36378
- spec?: {
36379
- aiUseCases?: string[];
36380
- complianceNeeds?: string[];
36381
- dataSourceTypes?: string[];
36382
- deploymentTargets?: string[];
36383
- existingTools?: string[];
36384
- importedFrom?: {
36385
- importedAt: string;
36386
- /** @enum {string} */
36387
- source: "github" | "linear" | "chatprd" | "manual";
36388
- sourceId?: string;
36389
- syncEnabled?: boolean;
36390
- };
36391
- internalDocs?: {
36392
- content?: string;
36393
- resources?: {
36394
- content?: string;
36395
- title: string;
36396
- type: string;
36397
- url?: string;
36398
- }[];
36399
- tags?: string[];
36400
- } | null;
36401
- /** @enum {string} */
36402
- loggingPolicy?: "default" | "on" | "off";
36403
- preferredModels?: string[];
36404
- productGoal?: string;
36405
- /** @enum {string} */
36406
- productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
36407
- targetAudience?: string;
36408
- techStack?: {
36409
- backend?: string[];
36410
- database?: string[];
36411
- frontend?: string[];
36412
- infrastructure?: string[];
36413
- languages?: string[];
36302
+ steps: {
36303
+ config?: {
36304
+ [key: string]: unknown;
36414
36305
  };
36415
- };
36306
+ enabled?: boolean;
36307
+ name: string;
36308
+ order?: number;
36309
+ type: string;
36310
+ when?: string;
36311
+ }[];
36416
36312
  };
36313
+ flowId: string;
36417
36314
  lastModifiedSource: string | null;
36418
- productId: string;
36419
36315
  updatedAt: string | null;
36420
- };
36421
- RecordFilterCondition: {
36422
- field: string;
36423
- /** @enum {string} */
36424
- op: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "contains" | "startsWith" | "endsWith" | "in" | "notIn" | "isSet" | "isNotSet" | "isTrue" | "isFalse" | "withinLastDays" | "olderThanDays";
36425
- value?: unknown;
36426
- };
36427
- SkillEnsureConflict: {
36428
- /** @enum {string} */
36429
- code: "external_modification" | "remote_changed";
36430
- currentHash?: string | null;
36431
- error: string;
36432
- lastModifiedSource?: string;
36433
- modifiedAt?: string | null;
36434
- };
36435
- SkillEnsureHashMismatch: {
36436
- /** @enum {string} */
36437
- code: "content_hash_mismatch";
36438
- /** @description The server-computed canonical hash of the submitted manifest. */
36439
- contentHash: string;
36440
- error: string;
36441
- };
36442
- SkillEnsureResponse: {
36443
- /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36444
- contentHash: string;
36445
- /** @enum {string} */
36446
- result: "unchanged" | "created" | "updated";
36447
- skillId: string;
36448
36316
  versionId: string | null;
36449
- } | {
36450
- /** @enum {string} */
36451
- result: "definitionRequired";
36452
- } | {
36453
- changedKeys: string[];
36454
- /** @enum {string} */
36455
- changes: "none" | "create" | "update";
36456
- contentHash: string;
36457
- remoteHash?: string;
36458
- /** @enum {string} */
36459
- result: "plan";
36460
- skillId?: string;
36317
+ /** @description Present only when a raw tool_… reference could not be emitted as a portable tool:<name> (the tool was deleted, or its name is shadowed by an older same-named tool). Those references are left as raw ids, which the ensure surface rejects; each warning explains how to fix it. */
36318
+ warnings?: string[];
36461
36319
  };
36462
- SkillEnsureUnprocessable: components["schemas"]["SkillEnsureHashMismatch"] | components["schemas"]["SkillEnsureUnsupportedCapability"];
36463
- SkillEnsureUnsupportedCapability: {
36464
- /** @enum {string} */
36465
- code: "unsupported_capability";
36466
- error: string;
36467
- };
36468
- SkillProposal: {
36469
- createdAt: string;
36470
- id: string;
36471
- organizationId: string | null;
36472
- proposingAgentExecutionId: string | null;
36473
- proposingUserId: string;
36474
- rejectionReason: string | null;
36475
- reviewedAt: string | null;
36476
- reviewedBy: string | null;
36477
- skillVersionId: string;
36478
- status: string;
36479
- };
36480
- SkillPullResponse: {
36481
- contentHash: string;
36482
- definition: {
36483
- manifest: {
36484
- [key: string]: unknown;
36485
- };
36486
- name: string;
36487
- };
36488
- lastModifiedSource: string | null;
36489
- skillId: string;
36490
- updatedAt: string | null;
36491
- versionId: string | null;
36492
- };
36493
- SurfaceEnsureConflict: {
36494
- /** @enum {string} */
36495
- code: "external_modification" | "remote_changed";
36496
- currentHash?: string | null;
36497
- error: string;
36498
- lastModifiedSource?: string;
36499
- modifiedAt?: string | null;
36500
- };
36501
- SurfaceEnsureHashMismatch: {
36502
- /** @enum {string} */
36503
- code: "content_hash_mismatch";
36504
- /** @description The server-computed canonical hash of the submitted definition. */
36505
- contentHash: string;
36506
- error: string;
36507
- };
36508
- SurfaceEnsureResponse: {
36509
- /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36510
- contentHash: string;
36511
- /** @enum {string} */
36512
- result: "unchanged" | "created" | "updated";
36513
- surfaceId: string;
36514
- } | {
36515
- /** @enum {string} */
36516
- result: "definitionRequired";
36517
- } | {
36518
- changedKeys: string[];
36519
- /** @enum {string} */
36520
- changes: "none" | "create" | "update";
36521
- contentHash: string;
36522
- remoteHash?: string;
36523
- /** @enum {string} */
36524
- result: "plan";
36525
- surfaceId?: string;
36526
- };
36527
- SurfacePullResponse: {
36528
- contentHash: string;
36529
- definition: {
36530
- behavior?: {
36531
- [key: string]: unknown;
36532
- };
36533
- /** @enum {string} */
36534
- environment?: "production" | "development";
36535
- inbound?: {
36536
- [key: string]: unknown;
36537
- };
36538
- name: string;
36539
- outbound?: {
36540
- [key: string]: unknown;
36541
- };
36542
- /** @enum {string} */
36543
- status?: "draft" | "active" | "paused";
36544
- /** @enum {string} */
36545
- type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page" | "chrome_extension";
36546
- };
36547
- lastModifiedSource: string | null;
36548
- surfaceId: string;
36549
- updatedAt: string | null;
36550
- };
36551
- ToolApprovalGrant: {
36552
- agentId: string;
36553
- createdAt: string;
36554
- decision: string;
36555
- endUserRef: string | null;
36556
- expiresAt: string | null;
36557
- id: string;
36558
- sourceApprovalId: string | null;
36559
- sourceExecutionId: string | null;
36560
- toolName: string;
36561
- toolType: string;
36562
- };
36563
- ToolEnsureConflict: {
36564
- /** @enum {string} */
36565
- code: "external_modification" | "remote_changed";
36566
- currentHash?: string | null;
36567
- error: string;
36568
- lastModifiedSource?: string;
36569
- modifiedAt?: string | null;
36570
- };
36571
- ToolEnsureHashMismatch: {
36572
- /** @enum {string} */
36573
- code: "content_hash_mismatch";
36574
- /** @description The server-computed canonical hash of the submitted definition. */
36575
- contentHash: string;
36576
- error: string;
36577
- };
36578
- ToolEnsureResponse: {
36579
- /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36580
- contentHash: string;
36581
- /** @enum {string} */
36582
- result: "unchanged" | "created" | "updated";
36583
- toolId: string;
36584
- } | {
36585
- /** @enum {string} */
36586
- result: "definitionRequired";
36587
- } | {
36588
- changedKeys: string[];
36589
- /** @enum {string} */
36590
- changes: "none" | "create" | "update";
36591
- contentHash: string;
36592
- remoteHash?: string;
36593
- /** @enum {string} */
36594
- result: "plan";
36595
- toolId?: string;
36596
- };
36597
- ToolPullResponse: {
36598
- contentHash: string;
36599
- definition: {
36600
- config: {
36601
- [key: string]: unknown;
36602
- };
36603
- description: string;
36604
- name: string;
36605
- parametersSchema: {
36606
- [key: string]: unknown;
36607
- };
36608
- /** @enum {string} */
36609
- toolType: "flow" | "custom" | "external" | "graphql" | "mcp" | "local" | "subagent";
36610
- };
36611
- lastModifiedSource: string | null;
36612
- toolId: string;
36613
- updatedAt: string | null;
36614
- };
36615
- UnifiedSSEEvent: {
36616
- agentId?: string;
36617
- agentName?: string;
36618
- config?: {
36320
+ FlowSSEEvent: {
36321
+ executionContext?: {
36619
36322
  [key: string]: unknown;
36620
36323
  };
36621
- executionId: string;
36622
- flowId?: string;
36324
+ executionId?: string;
36325
+ flowId: string;
36623
36326
  flowName?: string;
36624
- /** @enum {string} */
36625
- kind: "agent" | "flow";
36626
- maxTurns?: number;
36627
- seq: number;
36327
+ input?: unknown;
36328
+ seq?: number;
36628
36329
  source?: string;
36629
36330
  startedAt: string;
36331
+ toolContext?: {
36332
+ executionId: string;
36333
+ stepId: string;
36334
+ toolId: string;
36335
+ };
36630
36336
  totalSteps?: number;
36631
36337
  /** @enum {string} */
36632
- type: "execution_start";
36338
+ type: "flow_start";
36633
36339
  } | {
36340
+ claudeManagedAgentId?: string;
36634
36341
  completedAt?: string;
36635
- durationMs?: number;
36636
- executionId: string;
36342
+ completedSteps?: number;
36343
+ duration?: number;
36344
+ executionContext?: {
36345
+ [key: string]: unknown;
36346
+ };
36347
+ executionId?: string;
36348
+ executionTime?: number;
36637
36349
  failedSteps?: number;
36638
36350
  finalOutput?: string;
36639
- iterations?: number;
36640
- /** @enum {string} */
36641
- kind: "agent" | "flow";
36642
- seq: number;
36643
- stopReason?: string;
36644
- success: boolean;
36351
+ flowId?: string;
36352
+ flowName?: string;
36353
+ output?: unknown;
36354
+ seq?: number;
36355
+ source?: string;
36356
+ success?: boolean;
36645
36357
  successfulSteps?: number;
36646
- totalCost?: number;
36647
- totalSteps?: number;
36648
- totalTokens?: {
36649
- input: number;
36650
- output: number;
36358
+ toolContext?: {
36359
+ executionId: string;
36360
+ stepId: string;
36361
+ toolId: string;
36651
36362
  };
36363
+ totalSteps?: number;
36364
+ totalTokensUsed?: number;
36652
36365
  /** @enum {string} */
36653
- type: "execution_complete";
36366
+ type: "flow_complete";
36654
36367
  } | {
36655
36368
  code?: string;
36656
- completedAt?: string;
36657
36369
  error: string | {
36658
36370
  code: string;
36659
- details?: {
36660
- [key: string]: unknown;
36661
- };
36662
36371
  message: string;
36372
+ stepId?: string;
36373
+ stepType?: string;
36374
+ };
36375
+ executionId?: string;
36376
+ executionTime?: number;
36377
+ flowId?: string;
36378
+ seq?: number;
36379
+ timestamp?: string;
36380
+ toolContext?: {
36381
+ executionId: string;
36382
+ stepId: string;
36383
+ toolId: string;
36663
36384
  };
36664
- executionId: string;
36665
- /** @enum {string} */
36666
- kind: "agent" | "flow";
36667
- seq: number;
36668
36385
  /** @enum {string} */
36669
- type: "execution_error";
36386
+ type: "flow_error";
36670
36387
  upgradeUrl?: string;
36671
36388
  } | {
36672
- executionId: string;
36673
- id: string;
36674
- iteration?: number;
36389
+ awaitedAt: string;
36390
+ executionId?: string;
36391
+ flowId: string;
36675
36392
  /** @enum {string} */
36676
- role: "user" | "assistant" | "system";
36677
- seq: number;
36678
- turnIndex?: number;
36393
+ origin?: "webmcp" | "sdk";
36394
+ pageOrigin?: string;
36395
+ parameters?: {
36396
+ [key: string]: unknown;
36397
+ };
36398
+ seq?: number;
36399
+ toolCallId?: string;
36400
+ toolId?: string;
36401
+ toolName?: string;
36679
36402
  /** @enum {string} */
36680
- type: "turn_start";
36403
+ type: "flow_await";
36681
36404
  } | {
36682
- completedAt?: string;
36683
- content?: string;
36684
- cost?: number;
36685
- executionId: string;
36686
- fallback?: {
36687
- attempts: {
36688
- attempt: number;
36689
- error?: string;
36690
- model?: string;
36691
- success: boolean;
36692
- /** @enum {string} */
36693
- type: "retry" | "model" | "message" | "flow";
36694
- }[];
36695
- exhausted: boolean;
36696
- model?: string;
36697
- reason?: string | null;
36698
- used: boolean;
36699
- };
36700
- id: string;
36701
- iteration?: number;
36702
- /** @enum {string} */
36703
- role: "user" | "assistant" | "system";
36704
- seq: number;
36705
- /** @enum {string} */
36706
- stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36707
- tokens?: {
36708
- input: number;
36709
- output: number;
36710
- };
36711
- /** @enum {string} */
36712
- type: "turn_complete";
36713
- } | {
36714
- executionId: string;
36715
- id: string;
36405
+ estimatedTokens?: number;
36406
+ executionId?: string;
36407
+ id?: string;
36716
36408
  index?: number;
36717
36409
  name?: string;
36718
36410
  outputVariable?: string;
36719
- seq: number;
36720
- startedAt?: string;
36411
+ seq?: number;
36412
+ startedAt: string;
36413
+ stepId?: string;
36414
+ stepName?: string;
36721
36415
  stepType?: string;
36416
+ toolContext?: {
36417
+ executionId: string;
36418
+ stepId: string;
36419
+ toolId: string;
36420
+ };
36722
36421
  totalSteps?: number;
36723
36422
  /** @enum {string} */
36724
36423
  type: "step_start";
36424
+ } | {
36425
+ delta?: string;
36426
+ executionId?: string;
36427
+ id?: string;
36428
+ messageId?: string;
36429
+ partId?: string;
36430
+ seq?: number;
36431
+ text?: string;
36432
+ toolContext?: {
36433
+ executionId: string;
36434
+ stepId: string;
36435
+ toolId: string;
36436
+ };
36437
+ toolId?: string;
36438
+ /** @enum {string} */
36439
+ type: "step_delta";
36725
36440
  } | {
36726
36441
  completedAt?: string;
36442
+ duration?: number;
36727
36443
  durationMs?: number;
36728
36444
  error?: string;
36729
- executionId: string;
36730
- fallback?: {
36731
- attempts: {
36732
- attempt: number;
36733
- error?: string;
36734
- model?: string;
36735
- success: boolean;
36736
- /** @enum {string} */
36737
- type: "retry" | "model" | "message" | "flow";
36738
- }[];
36739
- exhausted: boolean;
36740
- model?: string;
36741
- reason?: string | null;
36742
- used: boolean;
36743
- };
36744
- id: string;
36445
+ executionId?: string;
36446
+ executionTime?: number;
36447
+ id?: string;
36448
+ index?: number;
36745
36449
  name?: string;
36450
+ output?: unknown;
36746
36451
  result?: unknown;
36747
- seq: number;
36452
+ seq?: number;
36453
+ stepId?: string;
36454
+ stepName?: string;
36748
36455
  stepType?: string;
36749
36456
  /** @enum {string} */
36750
36457
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36751
36458
  success?: boolean;
36459
+ tokensUsed?: number;
36460
+ toolContext?: {
36461
+ executionId: string;
36462
+ stepId: string;
36463
+ toolId: string;
36464
+ };
36752
36465
  /** @enum {string} */
36753
36466
  type: "step_complete";
36754
36467
  unresolvedVariables?: string[];
36755
36468
  } | {
36756
- executionId: string;
36757
- id: string;
36469
+ error: string;
36470
+ executionId?: string;
36471
+ executionTime?: number;
36472
+ id?: string;
36758
36473
  index?: number;
36759
36474
  name?: string;
36760
- seq: number;
36761
- skippedAt?: string;
36475
+ seq?: number;
36762
36476
  stepType?: string;
36763
- totalSteps?: number;
36764
- /** @enum {string} */
36765
- type: "step_skip";
36766
- when?: string;
36767
- } | {
36768
- executionId: string;
36769
- id: string;
36770
- /** @enum {string} */
36771
- role?: "user" | "assistant" | "system";
36772
- seq: number;
36773
- stepId?: string;
36774
- turnId?: string;
36775
- /** @enum {string} */
36776
- type: "text_start";
36777
- } | {
36778
- delta: string;
36779
- executionId: string;
36780
- id: string;
36781
- seq: number;
36782
- /** @enum {string} */
36783
- type: "text_delta";
36784
- } | {
36785
- executionId: string;
36786
- id: string;
36787
- seq: number;
36788
- text?: string;
36789
- /** @enum {string} */
36790
- type: "text_complete";
36791
- } | {
36792
- executionId: string;
36793
- id: string;
36794
- /** @enum {string} */
36795
- scope?: "turn" | "loop";
36796
- seq: number;
36797
- /** @enum {string} */
36798
- type: "reasoning_start";
36799
- } | {
36800
- delta: string;
36801
- executionId: string;
36802
- id: string;
36803
- seq: number;
36804
- /** @enum {string} */
36805
- type: "reasoning_delta";
36806
- } | {
36807
- executionId: string;
36808
- id: string;
36809
- /** @enum {string} */
36810
- scope?: "turn" | "loop";
36811
- seq: number;
36812
- text?: string;
36813
36477
  /** @enum {string} */
36814
- type: "reasoning_complete";
36478
+ type: "step_error";
36815
36479
  } | {
36816
- executionId: string;
36480
+ error?: string;
36481
+ executionId?: string;
36817
36482
  id: string;
36818
- mediaType: string;
36819
- /** @enum {string} */
36820
- role?: "user" | "assistant" | "system";
36821
- seq: number;
36822
- toolCallId?: string;
36483
+ index?: number;
36484
+ name?: string;
36485
+ seq?: number;
36486
+ skippedAt: string;
36487
+ stepType: string;
36488
+ totalSteps: number;
36823
36489
  /** @enum {string} */
36824
- type: "media_start";
36825
- } | {
36826
- delta: string;
36827
- executionId: string;
36828
- id: string;
36829
- seq: number;
36490
+ type: "step_skip";
36491
+ when: string;
36492
+ } | ({
36493
+ executionId?: string;
36494
+ reason?: string;
36495
+ seq?: number;
36830
36496
  /** @enum {string} */
36831
- type: "media_delta";
36832
- } | {
36833
- data?: string;
36834
- executionId: string;
36835
- id: string;
36836
- mediaType?: string;
36837
- seq: number;
36497
+ type: "step_await";
36498
+ } & {
36499
+ [key: string]: unknown;
36500
+ }) | ({
36501
+ agentContext?: {
36502
+ executionId: string;
36503
+ iteration: number;
36504
+ seq: number;
36505
+ };
36506
+ executionId?: string;
36507
+ hiddenParameterNames?: string[];
36508
+ name?: string;
36509
+ parameters?: {
36510
+ [key: string]: unknown;
36511
+ };
36512
+ providerOptions?: {
36513
+ [key: string]: unknown;
36514
+ };
36515
+ seq?: number;
36516
+ startedAt?: string;
36517
+ stepId?: string;
36838
36518
  toolCallId?: string;
36519
+ toolId?: string;
36520
+ toolName?: string;
36839
36521
  /** @enum {string} */
36840
- type: "media_complete";
36841
- url?: string;
36842
- } | {
36522
+ toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
36843
36523
  /** @enum {string} */
36844
- artifactType: "markdown" | "component";
36845
- component?: string;
36524
+ type: "tool_start";
36525
+ } & {
36526
+ [key: string]: unknown;
36527
+ }) | ({
36528
+ delta?: string;
36846
36529
  executionId?: string;
36847
- id: string;
36848
36530
  seq?: number;
36849
- title?: string;
36531
+ toolId?: string;
36850
36532
  /** @enum {string} */
36851
- type: "artifact_start";
36852
- } | {
36533
+ type: "tool_delta";
36534
+ } & {
36535
+ [key: string]: unknown;
36536
+ }) | {
36853
36537
  delta: string;
36854
36538
  executionId?: string;
36855
- id: string;
36856
36539
  seq?: number;
36540
+ stepId?: string;
36541
+ toolCallId?: string;
36542
+ toolId?: string;
36857
36543
  /** @enum {string} */
36858
- type: "artifact_delta";
36544
+ type: "tool_input_delta";
36859
36545
  } | {
36860
- component: string;
36861
36546
  executionId?: string;
36862
- id: string;
36863
- props: {
36547
+ hiddenParameterNames?: string[];
36548
+ parameters: {
36549
+ [key: string]: unknown;
36550
+ };
36551
+ providerOptions?: {
36864
36552
  [key: string]: unknown;
36865
36553
  };
36866
36554
  seq?: number;
36555
+ stepId?: string;
36556
+ toolCallId?: string;
36557
+ toolId?: string;
36558
+ toolName?: string;
36867
36559
  /** @enum {string} */
36868
- type: "artifact_update";
36560
+ type: "tool_input_complete";
36869
36561
  } | {
36562
+ agentContext?: {
36563
+ executionId: string;
36564
+ iteration: number;
36565
+ seq: number;
36566
+ };
36567
+ completedAt?: string;
36568
+ error?: string;
36870
36569
  executionId?: string;
36871
- id: string;
36570
+ executionTime?: number;
36571
+ name?: string;
36572
+ result?: unknown;
36872
36573
  seq?: number;
36873
- /** @enum {string} */
36874
- type: "artifact_complete";
36574
+ stepId?: string;
36575
+ success: boolean;
36576
+ toolCallId?: string;
36577
+ toolCost?: number;
36578
+ toolId?: string;
36579
+ toolName?: string;
36580
+ /** @enum {string} */
36581
+ type: "tool_complete";
36582
+ } | {
36583
+ agentContext?: {
36584
+ executionId: string;
36585
+ iteration: number;
36586
+ seq: number;
36587
+ };
36588
+ error: string;
36589
+ executionId?: string;
36590
+ executionTime?: number;
36591
+ failedAt?: string;
36592
+ name: string;
36593
+ seq?: number;
36594
+ toolId: string;
36595
+ /** @enum {string} */
36596
+ type: "tool_error";
36597
+ } | {
36598
+ executionId?: string;
36599
+ id: string;
36600
+ seq?: number;
36601
+ text: string;
36602
+ /** @enum {string} */
36603
+ type: "chunk";
36875
36604
  } | ({
36876
- executionId: string;
36877
- id?: string;
36878
- seq: number;
36879
- sourceType?: string;
36880
- title?: string;
36605
+ executionId?: string;
36606
+ seq?: number;
36607
+ /** @enum {string} */
36608
+ type: "text_start";
36609
+ } & {
36610
+ [key: string]: unknown;
36611
+ }) | ({
36612
+ executionId?: string;
36613
+ seq?: number;
36614
+ /** @enum {string} */
36615
+ type: "text_end";
36616
+ } & {
36617
+ [key: string]: unknown;
36618
+ }) | ({
36619
+ executionId?: string;
36620
+ seq?: number;
36621
+ /** @enum {string} */
36622
+ type: "reason_start";
36623
+ } & {
36624
+ [key: string]: unknown;
36625
+ }) | ({
36626
+ executionId?: string;
36627
+ seq?: number;
36628
+ /** @enum {string} */
36629
+ type: "reason_delta";
36630
+ } & {
36631
+ [key: string]: unknown;
36632
+ }) | ({
36633
+ executionId?: string;
36634
+ seq?: number;
36635
+ /** @enum {string} */
36636
+ type: "reason_complete";
36637
+ } & {
36638
+ [key: string]: unknown;
36639
+ }) | ({
36640
+ executionId?: string;
36641
+ seq?: number;
36881
36642
  /** @enum {string} */
36882
36643
  type: "source";
36883
- url?: string;
36884
36644
  } & {
36885
36645
  [key: string]: unknown;
36886
- }) | {
36887
- executionId: string;
36888
- hiddenParameterNames?: string[];
36889
- iteration?: number;
36646
+ }) | ({
36647
+ executionId?: string;
36648
+ seq?: number;
36890
36649
  /** @enum {string} */
36891
- origin?: "webmcp" | "sdk";
36892
- pageOrigin?: string;
36893
- parameters?: {
36650
+ type: "fallback_start";
36651
+ } & {
36652
+ [key: string]: unknown;
36653
+ }) | ({
36654
+ executionId?: string;
36655
+ seq?: number;
36656
+ /** @enum {string} */
36657
+ type: "fallback_complete";
36658
+ } & {
36659
+ [key: string]: unknown;
36660
+ }) | ({
36661
+ executionId?: string;
36662
+ seq?: number;
36663
+ /** @enum {string} */
36664
+ type: "fallback_exhausted";
36665
+ } & {
36666
+ [key: string]: unknown;
36667
+ });
36668
+ FlowValidationIssue: {
36669
+ code: string;
36670
+ details?: unknown;
36671
+ message: string;
36672
+ path?: string;
36673
+ step?: {
36674
+ index: number;
36675
+ name: string;
36676
+ type: string;
36677
+ };
36678
+ };
36679
+ FlowValidationResult: {
36680
+ context: {
36681
+ accountChecksPerformed: boolean;
36682
+ accountChecksSkipped: boolean;
36683
+ authenticated: boolean;
36684
+ };
36685
+ errors: components["schemas"]["FlowValidationIssue"][];
36686
+ recommendations: components["schemas"]["FlowValidationIssue"][];
36687
+ valid: boolean;
36688
+ warnings: components["schemas"]["FlowValidationIssue"][];
36689
+ };
36690
+ Pagination: {
36691
+ currentOffset: number;
36692
+ currentPage?: number;
36693
+ hasMore: boolean;
36694
+ hasPrev: boolean;
36695
+ limit: number;
36696
+ nextCursor: string | null;
36697
+ prevCursor: string | null;
36698
+ totalCount?: number;
36699
+ totalPages?: number;
36700
+ };
36701
+ ProductEnsureConflict: {
36702
+ /** @enum {string} */
36703
+ code: "external_modification" | "remote_changed";
36704
+ currentHash?: string | null;
36705
+ error: string;
36706
+ lastModifiedSource?: string;
36707
+ modifiedAt?: string | null;
36708
+ };
36709
+ ProductEnsureHashMismatch: {
36710
+ /** @enum {string} */
36711
+ code: "content_hash_mismatch";
36712
+ /** @description The server-computed canonical hash of the submitted definition. */
36713
+ contentHash: string;
36714
+ error: string;
36715
+ };
36716
+ ProductEnsureResponse: {
36717
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36718
+ contentHash: string;
36719
+ productId: string;
36720
+ /** @enum {string} */
36721
+ result: "unchanged" | "created" | "updated";
36722
+ } | {
36723
+ /** @enum {string} */
36724
+ result: "definitionRequired";
36725
+ } | {
36726
+ changedKeys: string[];
36727
+ /** @enum {string} */
36728
+ changes: "none" | "create" | "update";
36729
+ contentHash: string;
36730
+ productId?: string;
36731
+ remoteHash?: string;
36732
+ /** @enum {string} */
36733
+ result: "plan";
36734
+ };
36735
+ ProductFpoEnsureResponse: {
36736
+ /** @description Server-computed canonical whole-FPO content hash. */
36737
+ contentHash: string;
36738
+ entities: {
36739
+ error?: string;
36740
+ /** @description Resulting platform id (absent on failure/skip/pruned). */
36741
+ id?: string;
36742
+ /** @enum {string} */
36743
+ kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
36744
+ name: string;
36745
+ /** @description The FPO-local ref (capability id / entity name) for correlation. */
36746
+ ref: string;
36747
+ /** @enum {string} */
36748
+ result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
36749
+ }[];
36750
+ /** @description True when one or more entities failed to converge (re-run to self-heal). */
36751
+ hasFailures: boolean;
36752
+ productId?: string;
36753
+ /**
36754
+ * @description `unchanged` when every entity was unchanged, `converged` when at least one was created/updated, `plan` for dryRun.
36755
+ * @enum {string}
36756
+ */
36757
+ result: "unchanged" | "converged" | "plan";
36758
+ };
36759
+ ProductFpoPullResponse: {
36760
+ /** @description Server-computed canonical whole-FPO content hash. */
36761
+ contentHash: string;
36762
+ /** @description A self-contained Full Product Object reconstructed from the live graph. Feeding it back into POST /products/ensure-fpo converges to `unchanged`. records/schedules/secrets are not reconstructed (see `warnings`); tool refs are emitted as portable `tool:<name>`. */
36763
+ fpo: {
36894
36764
  [key: string]: unknown;
36895
36765
  };
36896
- seq: number;
36897
- startedAt?: string;
36898
- stepId?: string;
36899
- toolCallId: string;
36900
- toolName: string;
36901
- toolType: string;
36766
+ productId: string;
36767
+ /** @description Reconstruction caveats (omitted entities, unrepresentable rows). */
36768
+ warnings?: string[];
36769
+ };
36770
+ ProductPullResponse: {
36771
+ contentHash: string;
36772
+ definition: {
36773
+ description?: string | null;
36774
+ icon?: string | null;
36775
+ name: string;
36776
+ spec?: {
36777
+ aiUseCases?: string[];
36778
+ complianceNeeds?: string[];
36779
+ dataSourceTypes?: string[];
36780
+ deploymentTargets?: string[];
36781
+ existingTools?: string[];
36782
+ importedFrom?: {
36783
+ importedAt: string;
36784
+ /** @enum {string} */
36785
+ source: "github" | "linear" | "chatprd" | "manual";
36786
+ sourceId?: string;
36787
+ syncEnabled?: boolean;
36788
+ };
36789
+ internalDocs?: {
36790
+ content?: string;
36791
+ resources?: {
36792
+ content?: string;
36793
+ title: string;
36794
+ type: string;
36795
+ url?: string;
36796
+ }[];
36797
+ tags?: string[];
36798
+ } | null;
36799
+ /** @enum {string} */
36800
+ loggingPolicy?: "default" | "on" | "off";
36801
+ preferredModels?: string[];
36802
+ productGoal?: string;
36803
+ /** @enum {string} */
36804
+ productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
36805
+ targetAudience?: string;
36806
+ techStack?: {
36807
+ backend?: string[];
36808
+ database?: string[];
36809
+ frontend?: string[];
36810
+ infrastructure?: string[];
36811
+ languages?: string[];
36812
+ };
36813
+ };
36814
+ };
36815
+ lastModifiedSource: string | null;
36816
+ productId: string;
36817
+ updatedAt: string | null;
36818
+ };
36819
+ RecordFilterCondition: {
36820
+ field: string;
36821
+ /** @enum {string} */
36822
+ op: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "contains" | "startsWith" | "endsWith" | "in" | "notIn" | "isSet" | "isNotSet" | "isTrue" | "isFalse" | "withinLastDays" | "olderThanDays";
36823
+ value?: unknown;
36824
+ };
36825
+ SkillEnsureConflict: {
36826
+ /** @enum {string} */
36827
+ code: "external_modification" | "remote_changed";
36828
+ currentHash?: string | null;
36829
+ error: string;
36830
+ lastModifiedSource?: string;
36831
+ modifiedAt?: string | null;
36832
+ };
36833
+ SkillEnsureHashMismatch: {
36834
+ /** @enum {string} */
36835
+ code: "content_hash_mismatch";
36836
+ /** @description The server-computed canonical hash of the submitted manifest. */
36837
+ contentHash: string;
36838
+ error: string;
36839
+ };
36840
+ SkillEnsureResponse: {
36841
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36842
+ contentHash: string;
36843
+ /** @enum {string} */
36844
+ result: "unchanged" | "created" | "updated";
36845
+ skillId: string;
36846
+ versionId: string | null;
36847
+ } | {
36848
+ /** @enum {string} */
36849
+ result: "definitionRequired";
36850
+ } | {
36851
+ changedKeys: string[];
36852
+ /** @enum {string} */
36853
+ changes: "none" | "create" | "update";
36854
+ contentHash: string;
36855
+ remoteHash?: string;
36856
+ /** @enum {string} */
36857
+ result: "plan";
36858
+ skillId?: string;
36859
+ };
36860
+ SkillEnsureUnprocessable: components["schemas"]["SkillEnsureHashMismatch"] | components["schemas"]["SkillEnsureUnsupportedCapability"];
36861
+ SkillEnsureUnsupportedCapability: {
36862
+ /** @enum {string} */
36863
+ code: "unsupported_capability";
36864
+ error: string;
36865
+ };
36866
+ SkillProposal: {
36867
+ createdAt: string;
36868
+ id: string;
36869
+ organizationId: string | null;
36870
+ proposingAgentExecutionId: string | null;
36871
+ proposingUserId: string;
36872
+ rejectionReason: string | null;
36873
+ reviewedAt: string | null;
36874
+ reviewedBy: string | null;
36875
+ skillVersionId: string;
36876
+ status: string;
36877
+ };
36878
+ SkillPullResponse: {
36879
+ contentHash: string;
36880
+ definition: {
36881
+ manifest: {
36882
+ [key: string]: unknown;
36883
+ };
36884
+ name: string;
36885
+ };
36886
+ lastModifiedSource: string | null;
36887
+ skillId: string;
36888
+ updatedAt: string | null;
36889
+ versionId: string | null;
36890
+ };
36891
+ SurfaceEnsureConflict: {
36892
+ /** @enum {string} */
36893
+ code: "external_modification" | "remote_changed";
36894
+ currentHash?: string | null;
36895
+ error: string;
36896
+ lastModifiedSource?: string;
36897
+ modifiedAt?: string | null;
36898
+ };
36899
+ SurfaceEnsureHashMismatch: {
36902
36900
  /** @enum {string} */
36903
- type: "tool_start";
36904
- } | {
36905
- delta: string;
36906
- executionId: string;
36907
- seq: number;
36908
- toolCallId: string;
36901
+ code: "content_hash_mismatch";
36902
+ /** @description The server-computed canonical hash of the submitted definition. */
36903
+ contentHash: string;
36904
+ error: string;
36905
+ };
36906
+ SurfaceEnsureResponse: {
36907
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36908
+ contentHash: string;
36909
36909
  /** @enum {string} */
36910
- type: "tool_input_delta";
36910
+ result: "unchanged" | "created" | "updated";
36911
+ surfaceId: string;
36911
36912
  } | {
36912
- executionId: string;
36913
- hiddenParameterNames?: string[];
36914
- parameters: {
36915
- [key: string]: unknown;
36916
- };
36917
- seq: number;
36918
- toolCallId: string;
36919
- toolName?: string;
36920
36913
  /** @enum {string} */
36921
- type: "tool_input_complete";
36914
+ result: "definitionRequired";
36922
36915
  } | {
36923
- delta: string;
36924
- executionId: string;
36925
- seq: number;
36926
- toolCallId: string;
36916
+ changedKeys: string[];
36927
36917
  /** @enum {string} */
36928
- type: "tool_output_delta";
36929
- } | {
36930
- error?: string;
36931
- executionId: string;
36932
- executionTime?: number;
36933
- iteration?: number;
36934
- result?: unknown;
36935
- seq: number;
36936
- stepId?: string;
36937
- success: boolean;
36938
- toolCallId: string;
36939
- toolName?: string;
36918
+ changes: "none" | "create" | "update";
36919
+ contentHash: string;
36920
+ remoteHash?: string;
36940
36921
  /** @enum {string} */
36941
- type: "tool_complete";
36942
- } | {
36943
- approvalId: string;
36944
- description?: string;
36945
- executionId: string;
36946
- iteration?: number;
36947
- parameters?: {
36948
- [key: string]: unknown;
36922
+ result: "plan";
36923
+ surfaceId?: string;
36924
+ };
36925
+ SurfacePullResponse: {
36926
+ contentHash: string;
36927
+ definition: {
36928
+ behavior?: {
36929
+ [key: string]: unknown;
36930
+ };
36931
+ /** @enum {string} */
36932
+ environment?: "production" | "development";
36933
+ inbound?: {
36934
+ [key: string]: unknown;
36935
+ };
36936
+ name: string;
36937
+ outbound?: {
36938
+ [key: string]: unknown;
36939
+ };
36940
+ /** @enum {string} */
36941
+ status?: "draft" | "active" | "paused";
36942
+ /** @enum {string} */
36943
+ type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page" | "chrome_extension";
36949
36944
  };
36950
- reason?: string;
36951
- seq: number;
36952
- startedAt?: string;
36953
- timeout?: number;
36954
- toolCallId?: string;
36945
+ lastModifiedSource: string | null;
36946
+ surfaceId: string;
36947
+ updatedAt: string | null;
36948
+ };
36949
+ ToolApprovalGrant: {
36950
+ agentId: string;
36951
+ createdAt: string;
36952
+ decision: string;
36953
+ endUserRef: string | null;
36954
+ expiresAt: string | null;
36955
+ id: string;
36956
+ sourceApprovalId: string | null;
36957
+ sourceExecutionId: string | null;
36955
36958
  toolName: string;
36956
- toolType?: string;
36959
+ toolType: string;
36960
+ };
36961
+ ToolEnsureConflict: {
36957
36962
  /** @enum {string} */
36958
- type: "approval_start";
36959
- } | {
36960
- approvalId: string;
36961
- completedAt?: string;
36963
+ code: "external_modification" | "remote_changed";
36964
+ currentHash?: string | null;
36965
+ error: string;
36966
+ lastModifiedSource?: string;
36967
+ modifiedAt?: string | null;
36968
+ };
36969
+ ToolEnsureHashMismatch: {
36962
36970
  /** @enum {string} */
36963
- decision: "approved" | "denied" | "timeout";
36964
- executionId: string;
36971
+ code: "content_hash_mismatch";
36972
+ /** @description The server-computed canonical hash of the submitted definition. */
36973
+ contentHash: string;
36974
+ error: string;
36975
+ };
36976
+ ToolEnsureResponse: {
36977
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36978
+ contentHash: string;
36965
36979
  /** @enum {string} */
36966
- resolvedBy?: "user" | "system";
36967
- seq: number;
36980
+ result: "unchanged" | "created" | "updated";
36981
+ toolId: string;
36982
+ } | {
36968
36983
  /** @enum {string} */
36969
- type: "approval_complete";
36984
+ result: "definitionRequired";
36970
36985
  } | {
36971
- awaitedAt?: string;
36972
- executionId: string;
36986
+ changedKeys: string[];
36973
36987
  /** @enum {string} */
36974
- origin?: "webmcp" | "sdk";
36975
- pageOrigin?: string;
36976
- parameters?: {
36977
- [key: string]: unknown;
36978
- };
36979
- seq: number;
36980
- toolCallId?: string;
36981
- toolId?: string;
36982
- toolName?: string;
36988
+ changes: "none" | "create" | "update";
36989
+ contentHash: string;
36990
+ remoteHash?: string;
36983
36991
  /** @enum {string} */
36984
- type: "await";
36985
- } | {
36986
- error: string | {
36987
- code: string;
36988
- details?: {
36992
+ result: "plan";
36993
+ toolId?: string;
36994
+ };
36995
+ ToolPullResponse: {
36996
+ contentHash: string;
36997
+ definition: {
36998
+ config: {
36989
36999
  [key: string]: unknown;
36990
37000
  };
36991
- message: string;
37001
+ description: string;
37002
+ name: string;
37003
+ parametersSchema: {
37004
+ [key: string]: unknown;
37005
+ };
37006
+ /** @enum {string} */
37007
+ toolType: "flow" | "custom" | "external" | "graphql" | "mcp" | "local" | "subagent";
36992
37008
  };
36993
- executionId: string;
36994
- recoverable?: boolean;
36995
- seq: number;
36996
- /** @enum {string} */
36997
- type: "error";
36998
- } | {
36999
- executionId: string;
37000
- seq: number;
37001
- timestamp: string;
37002
- /** @enum {string} */
37003
- type: "ping";
37004
- } | {
37005
- executionId?: string;
37006
- name: string;
37007
- seq?: number;
37008
- /** @enum {string} */
37009
- type: "custom";
37010
- value?: unknown;
37009
+ lastModifiedSource: string | null;
37010
+ toolId: string;
37011
+ updatedAt: string | null;
37011
37012
  };
37012
37013
  UpdateUserProfileResponse: {
37013
37014
  email?: string;
@@ -37105,25 +37106,25 @@ interface components {
37105
37106
  */
37106
37107
 
37107
37108
  /**
37108
- * The unified 33-event vocabulary — the default wire format for every execution
37109
- * stream (dispatch, agents, client chat). This is the canonical stream type.
37109
+ * The single SSE event union — the wire format for every execution stream
37110
+ * (dispatch, agents, client chat, eval). This is the canonical stream type.
37110
37111
  */
37111
- type UnifiedStreamEvent = components['schemas']['UnifiedSSEEvent'];
37112
+ type ExecutionStreamEvent = components['schemas']['ExecutionStreamEvent'];
37112
37113
  /**
37113
- * @deprecated The dispatch stream now emits the unified vocabulary; this is an
37114
- * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37114
+ * @deprecated Alias of {@link ExecutionStreamEvent}. Prefer `ExecutionStreamEvent`.
37115
37115
  */
37116
- type DispatchEvent = components['schemas']['UnifiedSSEEvent'];
37116
+ type DispatchEvent = components['schemas']['ExecutionStreamEvent'];
37117
37117
  /**
37118
- * Legacy flow-execution event union. Retained for the eval stream
37119
- * (`/v1/eval/stream`), which still emits the legacy vocabulary.
37118
+ * Legacy flow-execution event union. Kept for the SDK's FlowBuilder convenience
37119
+ * types (`StreamEventOf<FlowStreamEvent, 'flow_start' | 'step_delta' | …>`),
37120
+ * which use the historical event names. The wire is the unified stream;
37121
+ * {@link ExecutionStreamEvent} is the current shape.
37120
37122
  */
37121
37123
  type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
37122
37124
  /**
37123
- * @deprecated The agent stream now emits the unified vocabulary; this is an
37124
- * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37125
+ * @deprecated Alias of {@link ExecutionStreamEvent}. Prefer `ExecutionStreamEvent`.
37125
37126
  */
37126
- type AgentStreamEvent = components['schemas']['UnifiedSSEEvent'];
37127
+ type AgentStreamEvent = components['schemas']['ExecutionStreamEvent'];
37127
37128
  /**
37128
37129
  * Narrow a stream union to one event by its `type` discriminant.
37129
37130
  * @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
@@ -37148,8 +37149,8 @@ type StreamEventOf<U, T extends string> = Extract<U, {
37148
37149
  * as unified (an execution stream always leads with `execution_start`).
37149
37150
  * This makes the public `streamEvents(response)` / `processStream(response,
37150
37151
  * cb)` pattern correct on a `dispatch()` response without the caller knowing
37151
- * the wire format, and keeps a still-legacy stream (`/prompts/{id}/run`,
37152
- * eval) flowing through untouched.
37152
+ * the wire format, and keeps a still-legacy stream (the eval stream)
37153
+ * flowing through untouched.
37153
37154
  * - `true`: force translation (internal callers that KNOW the route is unified).
37154
37155
  * - `false`: force legacy passthrough (never translate).
37155
37156
  * The non-streaming JSON branch always stays legacy — the api only translates
@@ -37249,7 +37250,7 @@ declare class FlowResult {
37249
37250
  /**
37250
37251
  * @param options.unified - The response is a unified-vocabulary SSE stream
37251
37252
  * (`/dispatch` since the unified-SSE cutover). Set by dispatch call sites;
37252
- * left unset by still-legacy producers (`/prompts/{id}/run`, eval stream).
37253
+ * left unset by the still-legacy eval stream producer.
37253
37254
  */
37254
37255
  constructor(response: Response, summary?: FlowSummary, options?: StreamConsumeOptions);
37255
37256
  /**
@@ -40342,34 +40343,6 @@ interface Prompt {
40342
40343
  createdAt: string;
40343
40344
  updatedAt: string;
40344
40345
  }
40345
- interface PromptRunOptions {
40346
- /** Record ID to run the prompt against */
40347
- recordId?: string;
40348
- /** Record data (alternative to recordId) */
40349
- record?: {
40350
- name?: string;
40351
- type?: string;
40352
- metadata?: Record<string, unknown>;
40353
- };
40354
- /** Model override */
40355
- modelOverride?: string;
40356
- /** Temperature override */
40357
- temperature?: number;
40358
- /** Top-p (nucleus) sampling override */
40359
- topP?: number;
40360
- /** Top-k sampling override */
40361
- topK?: number;
40362
- /** Frequency penalty override */
40363
- frequencyPenalty?: number;
40364
- /** Presence penalty override */
40365
- presencePenalty?: number;
40366
- /** Seed override */
40367
- seed?: number;
40368
- /** Max tokens override */
40369
- maxTokens?: number;
40370
- /** Store the result */
40371
- storeResult?: boolean;
40372
- }
40373
40346
  interface PromptListParams {
40374
40347
  /** Filter by flow ID */
40375
40348
  flowId?: string;
@@ -40380,82 +40353,9 @@ interface PromptListParams {
40380
40353
  /** Pagination offset */
40381
40354
  offset?: number;
40382
40355
  }
40383
- /**
40384
- * PromptRunner - Builder returned by Runtype.prompts.run()
40385
- *
40386
- * Provides terminal methods for executing prompts:
40387
- * - .stream() - Execute and stream results in real-time
40388
- * - .result() - Execute and wait for complete result
40389
- */
40390
- declare class PromptRunner {
40391
- private getClient;
40392
- private promptId;
40393
- private options;
40394
- constructor(getClient: () => RuntypeClient$1, promptId: string, options: PromptRunOptions);
40395
- /**
40396
- * Execute the prompt with streaming response
40397
- *
40398
- * Streams the prompt response as it's generated.
40399
- *
40400
- * @example
40401
- * ```typescript
40402
- * const result = await Runtype.prompts.run('prompt_123', {
40403
- * recordId: 'rec_456'
40404
- * }).stream()
40405
- *
40406
- * // Process with callbacks
40407
- * await result.stream({
40408
- * onStepDelta: (text) => process.stdout.write(text),
40409
- * onFlowComplete: () => console.log('Done!'),
40410
- * })
40411
- * ```
40412
- */
40413
- stream(callbacks?: StreamCallbacks): Promise<FlowResult>;
40414
- /**
40415
- * Execute the prompt and wait for complete result
40416
- *
40417
- * Waits for the entire response before returning.
40418
- *
40419
- * @example
40420
- * ```typescript
40421
- * const result = await Runtype.prompts.run('prompt_123', {
40422
- * recordId: 'rec_456'
40423
- * }).result()
40424
- *
40425
- * const output = await result.getResult('prompt')
40426
- * console.log(output)
40427
- * ```
40428
- */
40429
- result(): Promise<FlowResult>;
40430
- /**
40431
- * Build the run payload
40432
- */
40433
- private buildPayload;
40434
- }
40435
40356
  declare class PromptsNamespace {
40436
40357
  private getClient;
40437
40358
  constructor(getClient: () => RuntypeClient$1);
40438
- /**
40439
- * Run a prompt
40440
- *
40441
- * Returns a PromptRunner with terminal methods:
40442
- * - .stream() - Execute and stream results
40443
- * - .result() - Execute and wait for complete result
40444
- *
40445
- * @example
40446
- * ```typescript
40447
- * // Stream the response
40448
- * const result = await Runtype.prompts.run('prompt_123', {
40449
- * recordId: 'rec_456'
40450
- * }).stream()
40451
- *
40452
- * // Get complete result
40453
- * const result = await Runtype.prompts.run('prompt_123', {
40454
- * record: { name: 'Test', metadata: { input: 'Hello' } }
40455
- * }).result()
40456
- * ```
40457
- */
40458
- run(promptId: string, options?: PromptRunOptions): PromptRunner;
40459
40359
  /**
40460
40360
  * Create a new prompt
40461
40361
  *
@@ -42874,10 +42774,6 @@ declare class PromptsEndpoint {
42874
42774
  * Delete a prompt
42875
42775
  */
42876
42776
  delete(id: string): Promise<void>;
42877
- /**
42878
- * Run a prompt on a specific record
42879
- */
42880
- runOnRecord(id: string, recordId: string): Promise<any>;
42881
42777
  /**
42882
42778
  * Get flows using this prompt
42883
42779
  */
@@ -46954,4 +46850,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
46954
46850
  declare function getDefaultPlanPath(taskName: string): string;
46955
46851
  declare function sanitizeTaskSlug(taskName: string): string;
46956
46852
 
46957
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, 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, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, 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 ConditionalGetResult, 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 CreateAppRequest, 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, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, 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 FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, 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, LEDGER_ARTIFACT_LINE_PREFIX, 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 ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, 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 SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, 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 SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, 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 StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UnifiedStreamEvent, type UpdateAppRequest, 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 WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, withUnifiedEvents };
46853
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, 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, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, 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 ConditionalGetResult, 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 CreateAppRequest, 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, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, 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 ExecutionStreamEvent, 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 FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, 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, LEDGER_ARTIFACT_LINE_PREFIX, 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 ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, 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 SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, 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 SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, 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 StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateAppRequest, 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 WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, withUnifiedEvents };