@runtypelabs/sdk 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -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,407 @@ 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
+ parentToolCallId?: string;
36021
+ /** @enum {string} */
36022
+ role?: "user" | "assistant" | "system";
36023
+ seq: number;
36024
+ stepId?: string;
36025
+ turnId?: string;
36026
+ /** @enum {string} */
36027
+ type: "text_start";
36028
+ } | {
36029
+ delta: string;
36030
+ executionId: string;
36031
+ id: string;
36032
+ seq: number;
36033
+ /** @enum {string} */
36034
+ type: "text_delta";
36035
+ } | {
36036
+ executionId: string;
36037
+ id: string;
36038
+ seq: number;
36039
+ text?: string;
36040
+ /** @enum {string} */
36041
+ type: "text_complete";
36042
+ } | {
36043
+ executionId: string;
36044
+ id: string;
36045
+ parentToolCallId?: string;
36046
+ /** @enum {string} */
36047
+ scope?: "turn" | "loop";
36048
+ seq: number;
36049
+ /** @enum {string} */
36050
+ type: "reasoning_start";
36051
+ } | {
36052
+ delta: string;
36053
+ executionId: string;
36054
+ id: string;
36055
+ seq: number;
36056
+ /** @enum {string} */
36057
+ type: "reasoning_delta";
36058
+ } | {
36059
+ executionId: string;
36060
+ id: string;
36061
+ /** @enum {string} */
36062
+ scope?: "turn" | "loop";
36063
+ seq: number;
36064
+ text?: string;
36065
+ /** @enum {string} */
36066
+ type: "reasoning_complete";
36067
+ } | {
36068
+ executionId: string;
36069
+ id: string;
36070
+ mediaType: string;
36071
+ /** @enum {string} */
36072
+ role?: "user" | "assistant" | "system";
36073
+ seq: number;
36074
+ toolCallId?: string;
36075
+ /** @enum {string} */
36076
+ type: "media_start";
36077
+ } | {
36078
+ delta: string;
36079
+ executionId: string;
36080
+ id: string;
36081
+ seq: number;
36082
+ /** @enum {string} */
36083
+ type: "media_delta";
36084
+ } | {
36085
+ data?: string;
36086
+ executionId: string;
36087
+ id: string;
36088
+ mediaType?: string;
36089
+ seq: number;
36090
+ toolCallId?: string;
36091
+ /** @enum {string} */
36092
+ type: "media_complete";
36093
+ url?: string;
36094
+ } | {
36095
+ /** @enum {string} */
36096
+ artifactType: "markdown" | "component";
36097
+ component?: string;
36083
36098
  executionId?: string;
36084
36099
  id: string;
36085
- index?: number;
36086
- name?: string;
36087
36100
  seq?: number;
36088
- skippedAt: string;
36089
- stepType: string;
36090
- totalSteps: number;
36101
+ title?: string;
36091
36102
  /** @enum {string} */
36092
- type: "step_skip";
36093
- when: string;
36094
- } | ({
36103
+ type: "artifact_start";
36104
+ } | {
36105
+ delta: string;
36095
36106
  executionId?: string;
36096
- reason?: string;
36107
+ id: string;
36097
36108
  seq?: number;
36098
36109
  /** @enum {string} */
36099
- type: "step_await";
36100
- } & {
36101
- [key: string]: unknown;
36102
- }) | ({
36103
- agentContext?: {
36104
- executionId: string;
36105
- iteration: number;
36106
- seq: number;
36107
- };
36110
+ type: "artifact_delta";
36111
+ } | {
36112
+ component: string;
36108
36113
  executionId?: string;
36109
- hiddenParameterNames?: string[];
36110
- name?: string;
36111
- parameters?: {
36112
- [key: string]: unknown;
36113
- };
36114
- providerOptions?: {
36114
+ id: string;
36115
+ props: {
36115
36116
  [key: string]: unknown;
36116
36117
  };
36117
36118
  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
36119
  /** @enum {string} */
36126
- type: "tool_start";
36127
- } & {
36128
- [key: string]: unknown;
36129
- }) | ({
36130
- delta?: string;
36120
+ type: "artifact_update";
36121
+ } | {
36131
36122
  executionId?: string;
36123
+ id: string;
36132
36124
  seq?: number;
36133
- toolId?: string;
36134
36125
  /** @enum {string} */
36135
- type: "tool_delta";
36126
+ type: "artifact_complete";
36127
+ } | ({
36128
+ executionId: string;
36129
+ id?: string;
36130
+ seq: number;
36131
+ sourceType?: string;
36132
+ title?: string;
36133
+ /** @enum {string} */
36134
+ type: "source";
36135
+ url?: string;
36136
36136
  } & {
36137
36137
  [key: string]: unknown;
36138
36138
  }) | {
36139
- delta: string;
36140
- executionId?: string;
36141
- seq?: number;
36139
+ executionId: string;
36140
+ hiddenParameterNames?: string[];
36141
+ iteration?: number;
36142
+ /** @enum {string} */
36143
+ origin?: "webmcp" | "sdk";
36144
+ pageOrigin?: string;
36145
+ parameters?: {
36146
+ [key: string]: unknown;
36147
+ };
36148
+ seq: number;
36149
+ startedAt?: string;
36142
36150
  stepId?: string;
36143
- toolCallId?: string;
36144
- toolId?: string;
36151
+ toolCallId: string;
36152
+ toolName: string;
36153
+ toolType: string;
36154
+ /** @enum {string} */
36155
+ type: "tool_start";
36156
+ } | {
36157
+ delta: string;
36158
+ executionId: string;
36159
+ seq: number;
36160
+ toolCallId: string;
36145
36161
  /** @enum {string} */
36146
36162
  type: "tool_input_delta";
36147
36163
  } | {
36148
- executionId?: string;
36164
+ executionId: string;
36149
36165
  hiddenParameterNames?: string[];
36150
36166
  parameters: {
36151
36167
  [key: string]: unknown;
36152
36168
  };
36153
- providerOptions?: {
36154
- [key: string]: unknown;
36155
- };
36156
- seq?: number;
36157
- stepId?: string;
36158
- toolCallId?: string;
36159
- toolId?: string;
36169
+ seq: number;
36170
+ toolCallId: string;
36160
36171
  toolName?: string;
36161
36172
  /** @enum {string} */
36162
36173
  type: "tool_input_complete";
36163
36174
  } | {
36164
- agentContext?: {
36165
- executionId: string;
36166
- iteration: number;
36167
- seq: number;
36168
- };
36169
- completedAt?: string;
36175
+ delta: string;
36176
+ executionId: string;
36177
+ seq: number;
36178
+ toolCallId: string;
36179
+ /** @enum {string} */
36180
+ type: "tool_output_delta";
36181
+ } | {
36170
36182
  error?: string;
36171
- executionId?: string;
36183
+ executionId: string;
36172
36184
  executionTime?: number;
36173
- name?: string;
36185
+ iteration?: number;
36174
36186
  result?: unknown;
36175
- seq?: number;
36187
+ seq: number;
36176
36188
  stepId?: string;
36177
36189
  success: boolean;
36178
- toolCallId?: string;
36179
- toolCost?: number;
36180
- toolId?: string;
36190
+ toolCallId: string;
36181
36191
  toolName?: string;
36182
36192
  /** @enum {string} */
36183
36193
  type: "tool_complete";
36184
36194
  } | {
36185
- agentContext?: {
36186
- executionId: string;
36187
- iteration: number;
36188
- seq: number;
36195
+ approvalId: string;
36196
+ description?: string;
36197
+ executionId: string;
36198
+ iteration?: number;
36199
+ parameters?: {
36200
+ [key: string]: unknown;
36189
36201
  };
36190
- error: string;
36191
- executionId?: string;
36192
- executionTime?: number;
36193
- failedAt?: string;
36194
- name: string;
36195
- seq?: number;
36196
- toolId: string;
36202
+ reason?: string;
36203
+ seq: number;
36204
+ startedAt?: string;
36205
+ timeout?: number;
36206
+ toolCallId?: string;
36207
+ toolName: string;
36208
+ toolType?: string;
36197
36209
  /** @enum {string} */
36198
- type: "tool_error";
36210
+ type: "approval_start";
36199
36211
  } | {
36200
- executionId?: string;
36201
- id: string;
36202
- seq?: number;
36203
- text: string;
36212
+ approvalId: string;
36213
+ completedAt?: string;
36204
36214
  /** @enum {string} */
36205
- type: "chunk";
36206
- } | ({
36207
- executionId?: string;
36208
- seq?: number;
36215
+ decision: "approved" | "denied" | "timeout";
36216
+ executionId: string;
36209
36217
  /** @enum {string} */
36210
- type: "text_start";
36211
- } & {
36212
- [key: string]: unknown;
36213
- }) | ({
36214
- executionId?: string;
36215
- seq?: number;
36218
+ resolvedBy?: "user" | "system";
36219
+ seq: number;
36216
36220
  /** @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;
36221
+ type: "approval_complete";
36222
+ } | {
36223
+ awaitedAt?: string;
36224
+ executionId: string;
36237
36225
  /** @enum {string} */
36238
- type: "reason_complete";
36239
- } & {
36240
- [key: string]: unknown;
36241
- }) | ({
36242
- executionId?: string;
36243
- seq?: number;
36226
+ origin?: "webmcp" | "sdk";
36227
+ pageOrigin?: string;
36228
+ parameters?: {
36229
+ [key: string]: unknown;
36230
+ };
36231
+ seq: number;
36232
+ toolCallId?: string;
36233
+ toolId?: string;
36234
+ toolName?: string;
36244
36235
  /** @enum {string} */
36245
- type: "source";
36246
- } & {
36247
- [key: string]: unknown;
36248
- }) | ({
36249
- executionId?: string;
36250
- seq?: number;
36236
+ type: "await";
36237
+ } | {
36238
+ error: string | {
36239
+ code: string;
36240
+ details?: {
36241
+ [key: string]: unknown;
36242
+ };
36243
+ message: string;
36244
+ };
36245
+ executionId: string;
36246
+ recoverable?: boolean;
36247
+ seq: number;
36251
36248
  /** @enum {string} */
36252
- type: "fallback_start";
36253
- } & {
36254
- [key: string]: unknown;
36255
- }) | ({
36256
- executionId?: string;
36257
- seq?: number;
36249
+ type: "error";
36250
+ } | {
36251
+ executionId: string;
36252
+ seq: number;
36253
+ timestamp: string;
36258
36254
  /** @enum {string} */
36259
- type: "fallback_complete";
36260
- } & {
36261
- [key: string]: unknown;
36262
- }) | ({
36255
+ type: "ping";
36256
+ } | {
36263
36257
  executionId?: string;
36258
+ name: string;
36264
36259
  seq?: number;
36265
36260
  /** @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;
36261
+ type: "custom";
36262
+ value?: unknown;
36302
36263
  };
36303
- ProductEnsureConflict: {
36264
+ FlowEnsureConflict: {
36304
36265
  /** @enum {string} */
36305
36266
  code: "external_modification" | "remote_changed";
36306
36267
  currentHash?: string | null;
@@ -36308,19 +36269,21 @@ interface components {
36308
36269
  lastModifiedSource?: string;
36309
36270
  modifiedAt?: string | null;
36310
36271
  };
36311
- ProductEnsureHashMismatch: {
36272
+ FlowEnsureHashMismatch: {
36312
36273
  /** @enum {string} */
36313
36274
  code: "content_hash_mismatch";
36314
36275
  /** @description The server-computed canonical hash of the submitted definition. */
36315
36276
  contentHash: string;
36316
36277
  error: string;
36317
36278
  };
36318
- ProductEnsureResponse: {
36279
+ FlowEnsureResponse: {
36319
36280
  /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36320
36281
  contentHash: string;
36321
- productId: string;
36282
+ flowId: string;
36322
36283
  /** @enum {string} */
36323
36284
  result: "unchanged" | "created" | "updated";
36285
+ /** @description The version snapshot backing this state (null if snapshotting failed). */
36286
+ versionId: string | null;
36324
36287
  } | {
36325
36288
  /** @enum {string} */
36326
36289
  result: "definitionRequired";
@@ -36329,685 +36292,725 @@ interface components {
36329
36292
  /** @enum {string} */
36330
36293
  changes: "none" | "create" | "update";
36331
36294
  contentHash: string;
36332
- productId?: string;
36295
+ flowId?: string;
36333
36296
  remoteHash?: string;
36334
36297
  /** @enum {string} */
36335
36298
  result: "plan";
36336
36299
  };
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: {
36300
+ FlowPullResponse: {
36373
36301
  contentHash: string;
36374
36302
  definition: {
36375
- description?: string | null;
36376
- icon?: string | null;
36377
36303
  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[];
36304
+ steps: {
36305
+ config?: {
36306
+ [key: string]: unknown;
36414
36307
  };
36415
- };
36308
+ enabled?: boolean;
36309
+ name: string;
36310
+ order?: number;
36311
+ type: string;
36312
+ when?: string;
36313
+ }[];
36416
36314
  };
36315
+ flowId: string;
36417
36316
  lastModifiedSource: string | null;
36418
- productId: string;
36419
36317
  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
36318
  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;
36319
+ /** @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. */
36320
+ warnings?: string[];
36461
36321
  };
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?: {
36322
+ FlowSSEEvent: {
36323
+ executionContext?: {
36619
36324
  [key: string]: unknown;
36620
36325
  };
36621
- executionId: string;
36622
- flowId?: string;
36326
+ executionId?: string;
36327
+ flowId: string;
36623
36328
  flowName?: string;
36624
- /** @enum {string} */
36625
- kind: "agent" | "flow";
36626
- maxTurns?: number;
36627
- seq: number;
36329
+ input?: unknown;
36330
+ seq?: number;
36628
36331
  source?: string;
36629
36332
  startedAt: string;
36333
+ toolContext?: {
36334
+ executionId: string;
36335
+ stepId: string;
36336
+ toolId: string;
36337
+ };
36630
36338
  totalSteps?: number;
36631
36339
  /** @enum {string} */
36632
- type: "execution_start";
36340
+ type: "flow_start";
36633
36341
  } | {
36342
+ claudeManagedAgentId?: string;
36634
36343
  completedAt?: string;
36635
- durationMs?: number;
36636
- executionId: string;
36344
+ completedSteps?: number;
36345
+ duration?: number;
36346
+ executionContext?: {
36347
+ [key: string]: unknown;
36348
+ };
36349
+ executionId?: string;
36350
+ executionTime?: number;
36637
36351
  failedSteps?: number;
36638
36352
  finalOutput?: string;
36639
- iterations?: number;
36640
- /** @enum {string} */
36641
- kind: "agent" | "flow";
36642
- seq: number;
36643
- stopReason?: string;
36644
- success: boolean;
36353
+ flowId?: string;
36354
+ flowName?: string;
36355
+ output?: unknown;
36356
+ seq?: number;
36357
+ source?: string;
36358
+ success?: boolean;
36645
36359
  successfulSteps?: number;
36646
- totalCost?: number;
36647
- totalSteps?: number;
36648
- totalTokens?: {
36649
- input: number;
36650
- output: number;
36360
+ toolContext?: {
36361
+ executionId: string;
36362
+ stepId: string;
36363
+ toolId: string;
36651
36364
  };
36365
+ totalSteps?: number;
36366
+ totalTokensUsed?: number;
36652
36367
  /** @enum {string} */
36653
- type: "execution_complete";
36368
+ type: "flow_complete";
36654
36369
  } | {
36655
36370
  code?: string;
36656
- completedAt?: string;
36657
36371
  error: string | {
36658
36372
  code: string;
36659
- details?: {
36660
- [key: string]: unknown;
36661
- };
36662
36373
  message: string;
36374
+ stepId?: string;
36375
+ stepType?: string;
36376
+ };
36377
+ executionId?: string;
36378
+ executionTime?: number;
36379
+ flowId?: string;
36380
+ seq?: number;
36381
+ timestamp?: string;
36382
+ toolContext?: {
36383
+ executionId: string;
36384
+ stepId: string;
36385
+ toolId: string;
36663
36386
  };
36664
- executionId: string;
36665
- /** @enum {string} */
36666
- kind: "agent" | "flow";
36667
- seq: number;
36668
36387
  /** @enum {string} */
36669
- type: "execution_error";
36388
+ type: "flow_error";
36670
36389
  upgradeUrl?: string;
36671
36390
  } | {
36672
- executionId: string;
36673
- id: string;
36674
- iteration?: number;
36391
+ awaitedAt: string;
36392
+ executionId?: string;
36393
+ flowId: string;
36675
36394
  /** @enum {string} */
36676
- role: "user" | "assistant" | "system";
36677
- seq: number;
36678
- turnIndex?: number;
36395
+ origin?: "webmcp" | "sdk";
36396
+ pageOrigin?: string;
36397
+ parameters?: {
36398
+ [key: string]: unknown;
36399
+ };
36400
+ seq?: number;
36401
+ toolCallId?: string;
36402
+ toolId?: string;
36403
+ toolName?: string;
36679
36404
  /** @enum {string} */
36680
- type: "turn_start";
36405
+ type: "flow_await";
36681
36406
  } | {
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;
36407
+ estimatedTokens?: number;
36408
+ executionId?: string;
36409
+ id?: string;
36716
36410
  index?: number;
36717
36411
  name?: string;
36718
36412
  outputVariable?: string;
36719
- seq: number;
36720
- startedAt?: string;
36413
+ seq?: number;
36414
+ startedAt: string;
36415
+ stepId?: string;
36416
+ stepName?: string;
36721
36417
  stepType?: string;
36418
+ toolContext?: {
36419
+ executionId: string;
36420
+ stepId: string;
36421
+ toolId: string;
36422
+ };
36722
36423
  totalSteps?: number;
36723
36424
  /** @enum {string} */
36724
36425
  type: "step_start";
36426
+ } | {
36427
+ delta?: string;
36428
+ executionId?: string;
36429
+ id?: string;
36430
+ messageId?: string;
36431
+ partId?: string;
36432
+ seq?: number;
36433
+ text?: string;
36434
+ toolContext?: {
36435
+ executionId: string;
36436
+ stepId: string;
36437
+ toolId: string;
36438
+ };
36439
+ toolId?: string;
36440
+ /** @enum {string} */
36441
+ type: "step_delta";
36725
36442
  } | {
36726
36443
  completedAt?: string;
36444
+ duration?: number;
36727
36445
  durationMs?: number;
36728
36446
  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;
36447
+ executionId?: string;
36448
+ executionTime?: number;
36449
+ id?: string;
36450
+ index?: number;
36745
36451
  name?: string;
36452
+ output?: unknown;
36746
36453
  result?: unknown;
36747
- seq: number;
36454
+ seq?: number;
36455
+ stepId?: string;
36456
+ stepName?: string;
36748
36457
  stepType?: string;
36749
36458
  /** @enum {string} */
36750
36459
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36751
36460
  success?: boolean;
36461
+ tokensUsed?: number;
36462
+ toolContext?: {
36463
+ executionId: string;
36464
+ stepId: string;
36465
+ toolId: string;
36466
+ };
36752
36467
  /** @enum {string} */
36753
36468
  type: "step_complete";
36754
36469
  unresolvedVariables?: string[];
36755
36470
  } | {
36756
- executionId: string;
36757
- id: string;
36471
+ error: string;
36472
+ executionId?: string;
36473
+ executionTime?: number;
36474
+ id?: string;
36758
36475
  index?: number;
36759
36476
  name?: string;
36760
- seq: number;
36761
- skippedAt?: string;
36477
+ seq?: number;
36762
36478
  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
36479
  /** @enum {string} */
36814
- type: "reasoning_complete";
36480
+ type: "step_error";
36815
36481
  } | {
36816
- executionId: string;
36482
+ error?: string;
36483
+ executionId?: string;
36817
36484
  id: string;
36818
- mediaType: string;
36819
- /** @enum {string} */
36820
- role?: "user" | "assistant" | "system";
36821
- seq: number;
36822
- toolCallId?: string;
36485
+ index?: number;
36486
+ name?: string;
36487
+ seq?: number;
36488
+ skippedAt: string;
36489
+ stepType: string;
36490
+ totalSteps: number;
36823
36491
  /** @enum {string} */
36824
- type: "media_start";
36825
- } | {
36826
- delta: string;
36827
- executionId: string;
36828
- id: string;
36829
- seq: number;
36492
+ type: "step_skip";
36493
+ when: string;
36494
+ } | ({
36495
+ executionId?: string;
36496
+ reason?: string;
36497
+ seq?: number;
36830
36498
  /** @enum {string} */
36831
- type: "media_delta";
36832
- } | {
36833
- data?: string;
36834
- executionId: string;
36835
- id: string;
36836
- mediaType?: string;
36837
- seq: number;
36499
+ type: "step_await";
36500
+ } & {
36501
+ [key: string]: unknown;
36502
+ }) | ({
36503
+ agentContext?: {
36504
+ executionId: string;
36505
+ iteration: number;
36506
+ seq: number;
36507
+ };
36508
+ executionId?: string;
36509
+ hiddenParameterNames?: string[];
36510
+ name?: string;
36511
+ parameters?: {
36512
+ [key: string]: unknown;
36513
+ };
36514
+ providerOptions?: {
36515
+ [key: string]: unknown;
36516
+ };
36517
+ seq?: number;
36518
+ startedAt?: string;
36519
+ stepId?: string;
36838
36520
  toolCallId?: string;
36521
+ toolId?: string;
36522
+ toolName?: string;
36839
36523
  /** @enum {string} */
36840
- type: "media_complete";
36841
- url?: string;
36842
- } | {
36524
+ toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
36843
36525
  /** @enum {string} */
36844
- artifactType: "markdown" | "component";
36845
- component?: string;
36526
+ type: "tool_start";
36527
+ } & {
36528
+ [key: string]: unknown;
36529
+ }) | ({
36530
+ delta?: string;
36846
36531
  executionId?: string;
36847
- id: string;
36848
36532
  seq?: number;
36849
- title?: string;
36533
+ toolId?: string;
36850
36534
  /** @enum {string} */
36851
- type: "artifact_start";
36852
- } | {
36535
+ type: "tool_delta";
36536
+ } & {
36537
+ [key: string]: unknown;
36538
+ }) | {
36853
36539
  delta: string;
36854
36540
  executionId?: string;
36855
- id: string;
36856
36541
  seq?: number;
36542
+ stepId?: string;
36543
+ toolCallId?: string;
36544
+ toolId?: string;
36857
36545
  /** @enum {string} */
36858
- type: "artifact_delta";
36546
+ type: "tool_input_delta";
36859
36547
  } | {
36860
- component: string;
36861
36548
  executionId?: string;
36862
- id: string;
36863
- props: {
36549
+ hiddenParameterNames?: string[];
36550
+ parameters: {
36551
+ [key: string]: unknown;
36552
+ };
36553
+ providerOptions?: {
36864
36554
  [key: string]: unknown;
36865
36555
  };
36866
36556
  seq?: number;
36557
+ stepId?: string;
36558
+ toolCallId?: string;
36559
+ toolId?: string;
36560
+ toolName?: string;
36867
36561
  /** @enum {string} */
36868
- type: "artifact_update";
36562
+ type: "tool_input_complete";
36869
36563
  } | {
36564
+ agentContext?: {
36565
+ executionId: string;
36566
+ iteration: number;
36567
+ seq: number;
36568
+ };
36569
+ completedAt?: string;
36570
+ error?: string;
36870
36571
  executionId?: string;
36871
- id: string;
36572
+ executionTime?: number;
36573
+ name?: string;
36574
+ result?: unknown;
36872
36575
  seq?: number;
36873
- /** @enum {string} */
36874
- type: "artifact_complete";
36576
+ stepId?: string;
36577
+ success: boolean;
36578
+ toolCallId?: string;
36579
+ toolCost?: number;
36580
+ toolId?: string;
36581
+ toolName?: string;
36582
+ /** @enum {string} */
36583
+ type: "tool_complete";
36584
+ } | {
36585
+ agentContext?: {
36586
+ executionId: string;
36587
+ iteration: number;
36588
+ seq: number;
36589
+ };
36590
+ error: string;
36591
+ executionId?: string;
36592
+ executionTime?: number;
36593
+ failedAt?: string;
36594
+ name: string;
36595
+ seq?: number;
36596
+ toolId: string;
36597
+ /** @enum {string} */
36598
+ type: "tool_error";
36599
+ } | {
36600
+ executionId?: string;
36601
+ id: string;
36602
+ seq?: number;
36603
+ text: string;
36604
+ /** @enum {string} */
36605
+ type: "chunk";
36875
36606
  } | ({
36876
- executionId: string;
36877
- id?: string;
36878
- seq: number;
36879
- sourceType?: string;
36880
- title?: string;
36607
+ executionId?: string;
36608
+ seq?: number;
36609
+ /** @enum {string} */
36610
+ type: "text_start";
36611
+ } & {
36612
+ [key: string]: unknown;
36613
+ }) | ({
36614
+ executionId?: string;
36615
+ seq?: number;
36616
+ /** @enum {string} */
36617
+ type: "text_end";
36618
+ } & {
36619
+ [key: string]: unknown;
36620
+ }) | ({
36621
+ executionId?: string;
36622
+ seq?: number;
36623
+ /** @enum {string} */
36624
+ type: "reason_start";
36625
+ } & {
36626
+ [key: string]: unknown;
36627
+ }) | ({
36628
+ executionId?: string;
36629
+ seq?: number;
36630
+ /** @enum {string} */
36631
+ type: "reason_delta";
36632
+ } & {
36633
+ [key: string]: unknown;
36634
+ }) | ({
36635
+ executionId?: string;
36636
+ seq?: number;
36637
+ /** @enum {string} */
36638
+ type: "reason_complete";
36639
+ } & {
36640
+ [key: string]: unknown;
36641
+ }) | ({
36642
+ executionId?: string;
36643
+ seq?: number;
36881
36644
  /** @enum {string} */
36882
36645
  type: "source";
36883
- url?: string;
36884
36646
  } & {
36885
36647
  [key: string]: unknown;
36886
- }) | {
36887
- executionId: string;
36888
- hiddenParameterNames?: string[];
36889
- iteration?: number;
36648
+ }) | ({
36649
+ executionId?: string;
36650
+ seq?: number;
36890
36651
  /** @enum {string} */
36891
- origin?: "webmcp" | "sdk";
36892
- pageOrigin?: string;
36893
- parameters?: {
36894
- [key: string]: unknown;
36652
+ type: "fallback_start";
36653
+ } & {
36654
+ [key: string]: unknown;
36655
+ }) | ({
36656
+ executionId?: string;
36657
+ seq?: number;
36658
+ /** @enum {string} */
36659
+ type: "fallback_complete";
36660
+ } & {
36661
+ [key: string]: unknown;
36662
+ }) | ({
36663
+ executionId?: string;
36664
+ seq?: number;
36665
+ /** @enum {string} */
36666
+ type: "fallback_exhausted";
36667
+ } & {
36668
+ [key: string]: unknown;
36669
+ });
36670
+ FlowValidationIssue: {
36671
+ code: string;
36672
+ details?: unknown;
36673
+ message: string;
36674
+ path?: string;
36675
+ step?: {
36676
+ index: number;
36677
+ name: string;
36678
+ type: string;
36895
36679
  };
36896
- seq: number;
36897
- startedAt?: string;
36898
- stepId?: string;
36899
- toolCallId: string;
36900
- toolName: string;
36901
- toolType: string;
36680
+ };
36681
+ FlowValidationResult: {
36682
+ context: {
36683
+ accountChecksPerformed: boolean;
36684
+ accountChecksSkipped: boolean;
36685
+ authenticated: boolean;
36686
+ };
36687
+ errors: components["schemas"]["FlowValidationIssue"][];
36688
+ recommendations: components["schemas"]["FlowValidationIssue"][];
36689
+ valid: boolean;
36690
+ warnings: components["schemas"]["FlowValidationIssue"][];
36691
+ };
36692
+ Pagination: {
36693
+ currentOffset: number;
36694
+ currentPage?: number;
36695
+ hasMore: boolean;
36696
+ hasPrev: boolean;
36697
+ limit: number;
36698
+ nextCursor: string | null;
36699
+ prevCursor: string | null;
36700
+ totalCount?: number;
36701
+ totalPages?: number;
36702
+ };
36703
+ ProductEnsureConflict: {
36902
36704
  /** @enum {string} */
36903
- type: "tool_start";
36705
+ code: "external_modification" | "remote_changed";
36706
+ currentHash?: string | null;
36707
+ error: string;
36708
+ lastModifiedSource?: string;
36709
+ modifiedAt?: string | null;
36710
+ };
36711
+ ProductEnsureHashMismatch: {
36712
+ /** @enum {string} */
36713
+ code: "content_hash_mismatch";
36714
+ /** @description The server-computed canonical hash of the submitted definition. */
36715
+ contentHash: string;
36716
+ error: string;
36717
+ };
36718
+ ProductEnsureResponse: {
36719
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36720
+ contentHash: string;
36721
+ productId: string;
36722
+ /** @enum {string} */
36723
+ result: "unchanged" | "created" | "updated";
36904
36724
  } | {
36905
- delta: string;
36906
- executionId: string;
36907
- seq: number;
36908
- toolCallId: string;
36909
36725
  /** @enum {string} */
36910
- type: "tool_input_delta";
36726
+ result: "definitionRequired";
36911
36727
  } | {
36912
- executionId: string;
36913
- hiddenParameterNames?: string[];
36914
- parameters: {
36728
+ changedKeys: string[];
36729
+ /** @enum {string} */
36730
+ changes: "none" | "create" | "update";
36731
+ contentHash: string;
36732
+ productId?: string;
36733
+ remoteHash?: string;
36734
+ /** @enum {string} */
36735
+ result: "plan";
36736
+ };
36737
+ ProductFpoEnsureResponse: {
36738
+ /** @description Server-computed canonical whole-FPO content hash. */
36739
+ contentHash: string;
36740
+ entities: {
36741
+ error?: string;
36742
+ /** @description Resulting platform id (absent on failure/skip/pruned). */
36743
+ id?: string;
36744
+ /** @enum {string} */
36745
+ kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
36746
+ name: string;
36747
+ /** @description The FPO-local ref (capability id / entity name) for correlation. */
36748
+ ref: string;
36749
+ /** @enum {string} */
36750
+ result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
36751
+ }[];
36752
+ /** @description True when one or more entities failed to converge (re-run to self-heal). */
36753
+ hasFailures: boolean;
36754
+ productId?: string;
36755
+ /**
36756
+ * @description `unchanged` when every entity was unchanged, `converged` when at least one was created/updated, `plan` for dryRun.
36757
+ * @enum {string}
36758
+ */
36759
+ result: "unchanged" | "converged" | "plan";
36760
+ };
36761
+ ProductFpoPullResponse: {
36762
+ /** @description Server-computed canonical whole-FPO content hash. */
36763
+ contentHash: string;
36764
+ /** @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>`. */
36765
+ fpo: {
36915
36766
  [key: string]: unknown;
36916
36767
  };
36917
- seq: number;
36918
- toolCallId: string;
36919
- toolName?: string;
36768
+ productId: string;
36769
+ /** @description Reconstruction caveats (omitted entities, unrepresentable rows). */
36770
+ warnings?: string[];
36771
+ };
36772
+ ProductPullResponse: {
36773
+ contentHash: string;
36774
+ definition: {
36775
+ description?: string | null;
36776
+ icon?: string | null;
36777
+ name: string;
36778
+ spec?: {
36779
+ aiUseCases?: string[];
36780
+ complianceNeeds?: string[];
36781
+ dataSourceTypes?: string[];
36782
+ deploymentTargets?: string[];
36783
+ existingTools?: string[];
36784
+ importedFrom?: {
36785
+ importedAt: string;
36786
+ /** @enum {string} */
36787
+ source: "github" | "linear" | "chatprd" | "manual";
36788
+ sourceId?: string;
36789
+ syncEnabled?: boolean;
36790
+ };
36791
+ internalDocs?: {
36792
+ content?: string;
36793
+ resources?: {
36794
+ content?: string;
36795
+ title: string;
36796
+ type: string;
36797
+ url?: string;
36798
+ }[];
36799
+ tags?: string[];
36800
+ } | null;
36801
+ /** @enum {string} */
36802
+ loggingPolicy?: "default" | "on" | "off";
36803
+ preferredModels?: string[];
36804
+ productGoal?: string;
36805
+ /** @enum {string} */
36806
+ productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
36807
+ targetAudience?: string;
36808
+ techStack?: {
36809
+ backend?: string[];
36810
+ database?: string[];
36811
+ frontend?: string[];
36812
+ infrastructure?: string[];
36813
+ languages?: string[];
36814
+ };
36815
+ };
36816
+ };
36817
+ lastModifiedSource: string | null;
36818
+ productId: string;
36819
+ updatedAt: string | null;
36820
+ };
36821
+ RecordFilterCondition: {
36822
+ field: string;
36920
36823
  /** @enum {string} */
36921
- type: "tool_input_complete";
36922
- } | {
36923
- delta: string;
36924
- executionId: string;
36925
- seq: number;
36926
- toolCallId: string;
36824
+ op: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "contains" | "startsWith" | "endsWith" | "in" | "notIn" | "isSet" | "isNotSet" | "isTrue" | "isFalse" | "withinLastDays" | "olderThanDays";
36825
+ value?: unknown;
36826
+ };
36827
+ SkillEnsureConflict: {
36927
36828
  /** @enum {string} */
36928
- type: "tool_output_delta";
36829
+ code: "external_modification" | "remote_changed";
36830
+ currentHash?: string | null;
36831
+ error: string;
36832
+ lastModifiedSource?: string;
36833
+ modifiedAt?: string | null;
36834
+ };
36835
+ SkillEnsureHashMismatch: {
36836
+ /** @enum {string} */
36837
+ code: "content_hash_mismatch";
36838
+ /** @description The server-computed canonical hash of the submitted manifest. */
36839
+ contentHash: string;
36840
+ error: string;
36841
+ };
36842
+ SkillEnsureResponse: {
36843
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36844
+ contentHash: string;
36845
+ /** @enum {string} */
36846
+ result: "unchanged" | "created" | "updated";
36847
+ skillId: string;
36848
+ versionId: string | null;
36929
36849
  } | {
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;
36940
36850
  /** @enum {string} */
36941
- type: "tool_complete";
36851
+ result: "definitionRequired";
36942
36852
  } | {
36943
- approvalId: string;
36944
- description?: string;
36945
- executionId: string;
36946
- iteration?: number;
36947
- parameters?: {
36948
- [key: string]: unknown;
36853
+ changedKeys: string[];
36854
+ /** @enum {string} */
36855
+ changes: "none" | "create" | "update";
36856
+ contentHash: string;
36857
+ remoteHash?: string;
36858
+ /** @enum {string} */
36859
+ result: "plan";
36860
+ skillId?: string;
36861
+ };
36862
+ SkillEnsureUnprocessable: components["schemas"]["SkillEnsureHashMismatch"] | components["schemas"]["SkillEnsureUnsupportedCapability"];
36863
+ SkillEnsureUnsupportedCapability: {
36864
+ /** @enum {string} */
36865
+ code: "unsupported_capability";
36866
+ error: string;
36867
+ };
36868
+ SkillProposal: {
36869
+ createdAt: string;
36870
+ id: string;
36871
+ organizationId: string | null;
36872
+ proposingAgentExecutionId: string | null;
36873
+ proposingUserId: string;
36874
+ rejectionReason: string | null;
36875
+ reviewedAt: string | null;
36876
+ reviewedBy: string | null;
36877
+ skillVersionId: string;
36878
+ status: string;
36879
+ };
36880
+ SkillPullResponse: {
36881
+ contentHash: string;
36882
+ definition: {
36883
+ manifest: {
36884
+ [key: string]: unknown;
36885
+ };
36886
+ name: string;
36949
36887
  };
36950
- reason?: string;
36951
- seq: number;
36952
- startedAt?: string;
36953
- timeout?: number;
36954
- toolCallId?: string;
36955
- toolName: string;
36956
- toolType?: string;
36888
+ lastModifiedSource: string | null;
36889
+ skillId: string;
36890
+ updatedAt: string | null;
36891
+ versionId: string | null;
36892
+ };
36893
+ SurfaceEnsureConflict: {
36957
36894
  /** @enum {string} */
36958
- type: "approval_start";
36959
- } | {
36960
- approvalId: string;
36961
- completedAt?: string;
36895
+ code: "external_modification" | "remote_changed";
36896
+ currentHash?: string | null;
36897
+ error: string;
36898
+ lastModifiedSource?: string;
36899
+ modifiedAt?: string | null;
36900
+ };
36901
+ SurfaceEnsureHashMismatch: {
36962
36902
  /** @enum {string} */
36963
- decision: "approved" | "denied" | "timeout";
36964
- executionId: string;
36903
+ code: "content_hash_mismatch";
36904
+ /** @description The server-computed canonical hash of the submitted definition. */
36905
+ contentHash: string;
36906
+ error: string;
36907
+ };
36908
+ SurfaceEnsureResponse: {
36909
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36910
+ contentHash: string;
36965
36911
  /** @enum {string} */
36966
- resolvedBy?: "user" | "system";
36967
- seq: number;
36912
+ result: "unchanged" | "created" | "updated";
36913
+ surfaceId: string;
36914
+ } | {
36968
36915
  /** @enum {string} */
36969
- type: "approval_complete";
36916
+ result: "definitionRequired";
36970
36917
  } | {
36971
- awaitedAt?: string;
36972
- executionId: string;
36918
+ changedKeys: string[];
36973
36919
  /** @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;
36920
+ changes: "none" | "create" | "update";
36921
+ contentHash: string;
36922
+ remoteHash?: string;
36983
36923
  /** @enum {string} */
36984
- type: "await";
36985
- } | {
36986
- error: string | {
36987
- code: string;
36988
- details?: {
36924
+ result: "plan";
36925
+ surfaceId?: string;
36926
+ };
36927
+ SurfacePullResponse: {
36928
+ contentHash: string;
36929
+ definition: {
36930
+ behavior?: {
36989
36931
  [key: string]: unknown;
36990
36932
  };
36991
- message: string;
36933
+ /** @enum {string} */
36934
+ environment?: "production" | "development";
36935
+ inbound?: {
36936
+ [key: string]: unknown;
36937
+ };
36938
+ name: string;
36939
+ outbound?: {
36940
+ [key: string]: unknown;
36941
+ };
36942
+ /** @enum {string} */
36943
+ status?: "draft" | "active" | "paused";
36944
+ /** @enum {string} */
36945
+ type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page" | "chrome_extension";
36992
36946
  };
36993
- executionId: string;
36994
- recoverable?: boolean;
36995
- seq: number;
36947
+ lastModifiedSource: string | null;
36948
+ surfaceId: string;
36949
+ updatedAt: string | null;
36950
+ };
36951
+ ToolApprovalGrant: {
36952
+ agentId: string;
36953
+ createdAt: string;
36954
+ decision: string;
36955
+ endUserRef: string | null;
36956
+ expiresAt: string | null;
36957
+ id: string;
36958
+ sourceApprovalId: string | null;
36959
+ sourceExecutionId: string | null;
36960
+ toolName: string;
36961
+ toolType: string;
36962
+ };
36963
+ ToolEnsureConflict: {
36996
36964
  /** @enum {string} */
36997
- type: "error";
36965
+ code: "external_modification" | "remote_changed";
36966
+ currentHash?: string | null;
36967
+ error: string;
36968
+ lastModifiedSource?: string;
36969
+ modifiedAt?: string | null;
36970
+ };
36971
+ ToolEnsureHashMismatch: {
36972
+ /** @enum {string} */
36973
+ code: "content_hash_mismatch";
36974
+ /** @description The server-computed canonical hash of the submitted definition. */
36975
+ contentHash: string;
36976
+ error: string;
36977
+ };
36978
+ ToolEnsureResponse: {
36979
+ /** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
36980
+ contentHash: string;
36981
+ /** @enum {string} */
36982
+ result: "unchanged" | "created" | "updated";
36983
+ toolId: string;
36998
36984
  } | {
36999
- executionId: string;
37000
- seq: number;
37001
- timestamp: string;
37002
36985
  /** @enum {string} */
37003
- type: "ping";
36986
+ result: "definitionRequired";
37004
36987
  } | {
37005
- executionId?: string;
37006
- name: string;
37007
- seq?: number;
36988
+ changedKeys: string[];
37008
36989
  /** @enum {string} */
37009
- type: "custom";
37010
- value?: unknown;
36990
+ changes: "none" | "create" | "update";
36991
+ contentHash: string;
36992
+ remoteHash?: string;
36993
+ /** @enum {string} */
36994
+ result: "plan";
36995
+ toolId?: string;
36996
+ };
36997
+ ToolPullResponse: {
36998
+ contentHash: string;
36999
+ definition: {
37000
+ config: {
37001
+ [key: string]: unknown;
37002
+ };
37003
+ description: string;
37004
+ name: string;
37005
+ parametersSchema: {
37006
+ [key: string]: unknown;
37007
+ };
37008
+ /** @enum {string} */
37009
+ toolType: "flow" | "custom" | "external" | "graphql" | "mcp" | "local" | "subagent";
37010
+ };
37011
+ lastModifiedSource: string | null;
37012
+ toolId: string;
37013
+ updatedAt: string | null;
37011
37014
  };
37012
37015
  UpdateUserProfileResponse: {
37013
37016
  email?: string;
@@ -37105,25 +37108,25 @@ interface components {
37105
37108
  */
37106
37109
 
37107
37110
  /**
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.
37111
+ * The single SSE event union — the wire format for every execution stream
37112
+ * (dispatch, agents, client chat, eval). This is the canonical stream type.
37110
37113
  */
37111
- type UnifiedStreamEvent = components['schemas']['UnifiedSSEEvent'];
37114
+ type ExecutionStreamEvent = components['schemas']['ExecutionStreamEvent'];
37112
37115
  /**
37113
- * @deprecated The dispatch stream now emits the unified vocabulary; this is an
37114
- * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37116
+ * @deprecated Alias of {@link ExecutionStreamEvent}. Prefer `ExecutionStreamEvent`.
37115
37117
  */
37116
- type DispatchEvent = components['schemas']['UnifiedSSEEvent'];
37118
+ type DispatchEvent = components['schemas']['ExecutionStreamEvent'];
37117
37119
  /**
37118
- * Legacy flow-execution event union. Retained for the eval stream
37119
- * (`/v1/eval/stream`), which still emits the legacy vocabulary.
37120
+ * Legacy flow-execution event union. Kept for the SDK's FlowBuilder convenience
37121
+ * types (`StreamEventOf<FlowStreamEvent, 'flow_start' | 'step_delta' | …>`),
37122
+ * which use the historical event names. The wire is the unified stream;
37123
+ * {@link ExecutionStreamEvent} is the current shape.
37120
37124
  */
37121
37125
  type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
37122
37126
  /**
37123
- * @deprecated The agent stream now emits the unified vocabulary; this is an
37124
- * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37127
+ * @deprecated Alias of {@link ExecutionStreamEvent}. Prefer `ExecutionStreamEvent`.
37125
37128
  */
37126
- type AgentStreamEvent = components['schemas']['UnifiedSSEEvent'];
37129
+ type AgentStreamEvent = components['schemas']['ExecutionStreamEvent'];
37127
37130
  /**
37128
37131
  * Narrow a stream union to one event by its `type` discriminant.
37129
37132
  * @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
@@ -46849,4 +46852,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
46849
46852
  declare function getDefaultPlanPath(taskName: string): string;
46850
46853
  declare function sanitizeTaskSlug(taskName: string): string;
46851
46854
 
46852
- 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 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 };
46855
+ 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 };