@runtypelabs/sdk 4.19.2 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +636 -45
- package/dist/index.d.cts +1303 -1655
- package/dist/index.d.ts +1303 -1655
- package/dist/index.mjs +629 -44
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20065,7 +20065,7 @@ interface paths {
|
|
|
20065
20065
|
put?: never;
|
|
20066
20066
|
/**
|
|
20067
20067
|
* Ensure full product (config-as-code converge of the whole FPO)
|
|
20068
|
-
* @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Whole-FPO fast-probe
|
|
20068
|
+
* @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Set prune to remove product-scoped capabilities/surfaces (and their items) absent from the FPO (account-scoped flows/agents/tools/records are never removed). Whole-FPO fast-probe is not yet supported (PR3).
|
|
20069
20069
|
*/
|
|
20070
20070
|
post: {
|
|
20071
20071
|
parameters: {
|
|
@@ -20088,6 +20088,8 @@ interface paths {
|
|
|
20088
20088
|
* @enum {string}
|
|
20089
20089
|
*/
|
|
20090
20090
|
onConflict?: "error" | "overwrite";
|
|
20091
|
+
/** @description Opt-in removal of product-scoped capabilities/surfaces (and their items) absent from the FPO, after the converge passes. NEVER touches account-scoped flows/agents/tools/records. Honors createPolicy:"skip". With dryRun, reports would-be removals as `pruned` plan rows. */
|
|
20092
|
+
prune?: boolean;
|
|
20091
20093
|
};
|
|
20092
20094
|
};
|
|
20093
20095
|
};
|
|
@@ -20796,6 +20798,83 @@ interface paths {
|
|
|
20796
20798
|
patch?: never;
|
|
20797
20799
|
trace?: never;
|
|
20798
20800
|
};
|
|
20801
|
+
"/v1/products/pull-fpo": {
|
|
20802
|
+
parameters: {
|
|
20803
|
+
query?: never;
|
|
20804
|
+
header?: never;
|
|
20805
|
+
path?: never;
|
|
20806
|
+
cookie?: never;
|
|
20807
|
+
};
|
|
20808
|
+
/**
|
|
20809
|
+
* Pull full product (reconstruct the whole FPO from the live graph)
|
|
20810
|
+
* @description Reconstruct a self-contained Full Product Object from the live product graph — the absorb-drift direction of ensure-fpo. Composes the per-entity pulls (product, backing flows/agents, surfaces) and mints deterministic FPO-local ids, so feeding the result back into POST /products/ensure-fpo converges to `unchanged`. records/schedules/secrets are NOT reconstructed and `tools` is emitted empty (tool refs are portable `tool:<name>`); see `warnings` for per-pull caveats. The contentHash is recomputed from the live graph, so it is accurate immediately after a dashboard edit.
|
|
20811
|
+
*/
|
|
20812
|
+
get: {
|
|
20813
|
+
parameters: {
|
|
20814
|
+
query: {
|
|
20815
|
+
name: string;
|
|
20816
|
+
};
|
|
20817
|
+
header?: never;
|
|
20818
|
+
path?: never;
|
|
20819
|
+
cookie?: never;
|
|
20820
|
+
};
|
|
20821
|
+
requestBody?: never;
|
|
20822
|
+
responses: {
|
|
20823
|
+
/** @description Reconstructed FPO + canonical content hash */
|
|
20824
|
+
200: {
|
|
20825
|
+
headers: {
|
|
20826
|
+
[name: string]: unknown;
|
|
20827
|
+
};
|
|
20828
|
+
content: {
|
|
20829
|
+
"application/json": components["schemas"]["ProductFpoPullResponse"];
|
|
20830
|
+
};
|
|
20831
|
+
};
|
|
20832
|
+
/** @description Unauthorized */
|
|
20833
|
+
401: {
|
|
20834
|
+
headers: {
|
|
20835
|
+
[name: string]: unknown;
|
|
20836
|
+
};
|
|
20837
|
+
content: {
|
|
20838
|
+
"application/json": components["schemas"]["Error"];
|
|
20839
|
+
};
|
|
20840
|
+
};
|
|
20841
|
+
/** @description Insufficient permissions */
|
|
20842
|
+
403: {
|
|
20843
|
+
headers: {
|
|
20844
|
+
[name: string]: unknown;
|
|
20845
|
+
};
|
|
20846
|
+
content: {
|
|
20847
|
+
"application/json": components["schemas"]["Error"];
|
|
20848
|
+
};
|
|
20849
|
+
};
|
|
20850
|
+
/** @description No product with that name in the account scope */
|
|
20851
|
+
404: {
|
|
20852
|
+
headers: {
|
|
20853
|
+
[name: string]: unknown;
|
|
20854
|
+
};
|
|
20855
|
+
content: {
|
|
20856
|
+
"application/json": components["schemas"]["Error"];
|
|
20857
|
+
};
|
|
20858
|
+
};
|
|
20859
|
+
/** @description Internal server error */
|
|
20860
|
+
500: {
|
|
20861
|
+
headers: {
|
|
20862
|
+
[name: string]: unknown;
|
|
20863
|
+
};
|
|
20864
|
+
content: {
|
|
20865
|
+
"application/json": components["schemas"]["Error"];
|
|
20866
|
+
};
|
|
20867
|
+
};
|
|
20868
|
+
};
|
|
20869
|
+
};
|
|
20870
|
+
put?: never;
|
|
20871
|
+
post?: never;
|
|
20872
|
+
delete?: never;
|
|
20873
|
+
options?: never;
|
|
20874
|
+
head?: never;
|
|
20875
|
+
patch?: never;
|
|
20876
|
+
trace?: never;
|
|
20877
|
+
};
|
|
20799
20878
|
"/v1/products/{id}": {
|
|
20800
20879
|
parameters: {
|
|
20801
20880
|
query?: never;
|
|
@@ -35702,1091 +35781,526 @@ interface components {
|
|
|
35702
35781
|
/** @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. */
|
|
35703
35782
|
warnings?: string[];
|
|
35704
35783
|
};
|
|
35705
|
-
|
|
35706
|
-
|
|
35707
|
-
|
|
35708
|
-
|
|
35709
|
-
|
|
35710
|
-
|
|
35784
|
+
DailyUsageResponse: {
|
|
35785
|
+
daily?: {
|
|
35786
|
+
atSpendLimit: boolean;
|
|
35787
|
+
date: string;
|
|
35788
|
+
executionLimit: number;
|
|
35789
|
+
executionsUsed: number;
|
|
35790
|
+
inSlowMode: boolean;
|
|
35791
|
+
isAtLimit: boolean;
|
|
35792
|
+
isNearLimit: boolean;
|
|
35793
|
+
isOverage: boolean;
|
|
35794
|
+
isUnlimited: boolean;
|
|
35795
|
+
overageCount: number;
|
|
35796
|
+
percentUsed: number;
|
|
35797
|
+
periodType: string;
|
|
35798
|
+
remaining: number | null;
|
|
35799
|
+
resetsAt: string;
|
|
35800
|
+
spendLimit: number | null;
|
|
35801
|
+
spendLimitEnabled: boolean;
|
|
35802
|
+
tier: string;
|
|
35711
35803
|
};
|
|
35712
|
-
|
|
35713
|
-
|
|
35714
|
-
|
|
35715
|
-
|
|
35804
|
+
monthly?: {
|
|
35805
|
+
atSpendLimit: boolean;
|
|
35806
|
+
date: string;
|
|
35807
|
+
executionLimit: number;
|
|
35808
|
+
executionsUsed: number;
|
|
35809
|
+
inSlowMode: boolean;
|
|
35810
|
+
isAtLimit: boolean;
|
|
35811
|
+
isNearLimit: boolean;
|
|
35812
|
+
isOverage: boolean;
|
|
35813
|
+
isUnlimited: boolean;
|
|
35814
|
+
overageCount: number;
|
|
35815
|
+
percentUsed: number;
|
|
35816
|
+
periodType: string;
|
|
35817
|
+
remaining: number | null;
|
|
35818
|
+
resetsAt: string;
|
|
35819
|
+
spendLimit: number | null;
|
|
35820
|
+
spendLimitEnabled: boolean;
|
|
35821
|
+
tier: string;
|
|
35822
|
+
};
|
|
35823
|
+
};
|
|
35824
|
+
EnrichedSkillProposal: components["schemas"]["SkillProposal"] & {
|
|
35825
|
+
proposingAgent: {
|
|
35826
|
+
id: string;
|
|
35827
|
+
name: string;
|
|
35828
|
+
} | null;
|
|
35829
|
+
resolvedCapabilityNames: {
|
|
35830
|
+
[key: string]: string | null;
|
|
35831
|
+
};
|
|
35832
|
+
skill: {
|
|
35833
|
+
description: string | null;
|
|
35834
|
+
id: string;
|
|
35835
|
+
name: string;
|
|
35836
|
+
status: string;
|
|
35837
|
+
} | null;
|
|
35838
|
+
version: {
|
|
35839
|
+
id: string;
|
|
35840
|
+
manifest: {
|
|
35841
|
+
body: string;
|
|
35842
|
+
frontmatter: {
|
|
35843
|
+
[key: string]: unknown;
|
|
35844
|
+
};
|
|
35845
|
+
runtype: {
|
|
35846
|
+
[key: string]: unknown;
|
|
35847
|
+
};
|
|
35848
|
+
};
|
|
35849
|
+
versionNumber: number;
|
|
35850
|
+
} | null;
|
|
35851
|
+
};
|
|
35852
|
+
Error: {
|
|
35853
|
+
details?: {
|
|
35854
|
+
/** @description Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM). */
|
|
35855
|
+
code?: string;
|
|
35856
|
+
message: string;
|
|
35857
|
+
/** @description Dotted JSON path to the offending field. */
|
|
35858
|
+
path?: string;
|
|
35859
|
+
/** @description Actionable hint (allowed values, accepted range, …). */
|
|
35860
|
+
suggestion?: string;
|
|
35861
|
+
}[];
|
|
35862
|
+
error: string;
|
|
35863
|
+
};
|
|
35864
|
+
FlowEnsureConflict: {
|
|
35716
35865
|
/** @enum {string} */
|
|
35717
|
-
|
|
35718
|
-
|
|
35719
|
-
|
|
35720
|
-
|
|
35721
|
-
|
|
35722
|
-
|
|
35723
|
-
|
|
35724
|
-
totalCost?: number;
|
|
35866
|
+
code: "external_modification" | "remote_changed";
|
|
35867
|
+
currentHash?: string | null;
|
|
35868
|
+
error: string;
|
|
35869
|
+
lastModifiedSource?: string;
|
|
35870
|
+
modifiedAt?: string | null;
|
|
35871
|
+
};
|
|
35872
|
+
FlowEnsureHashMismatch: {
|
|
35725
35873
|
/** @enum {string} */
|
|
35726
|
-
|
|
35727
|
-
|
|
35728
|
-
|
|
35729
|
-
|
|
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;
|
|
35730
35883
|
/** @enum {string} */
|
|
35731
|
-
|
|
35732
|
-
|
|
35733
|
-
|
|
35734
|
-
|
|
35884
|
+
result: "unchanged" | "created" | "updated";
|
|
35885
|
+
/** @description The version snapshot backing this state (null if snapshotting failed). */
|
|
35886
|
+
versionId: string | null;
|
|
35887
|
+
} | {
|
|
35735
35888
|
/** @enum {string} */
|
|
35736
|
-
|
|
35889
|
+
result: "definitionRequired";
|
|
35737
35890
|
} | {
|
|
35891
|
+
changedKeys: string[];
|
|
35738
35892
|
/** @enum {string} */
|
|
35739
|
-
|
|
35740
|
-
|
|
35741
|
-
|
|
35742
|
-
|
|
35743
|
-
seq: number;
|
|
35744
|
-
turnId: string;
|
|
35893
|
+
changes: "none" | "create" | "update";
|
|
35894
|
+
contentHash: string;
|
|
35895
|
+
flowId?: string;
|
|
35896
|
+
remoteHash?: string;
|
|
35745
35897
|
/** @enum {string} */
|
|
35746
|
-
|
|
35747
|
-
}
|
|
35748
|
-
|
|
35749
|
-
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
estimatedTokens: number;
|
|
35898
|
+
result: "plan";
|
|
35899
|
+
};
|
|
35900
|
+
FlowPullResponse: {
|
|
35901
|
+
contentHash: string;
|
|
35902
|
+
definition: {
|
|
35903
|
+
name: string;
|
|
35904
|
+
steps: {
|
|
35905
|
+
config?: {
|
|
35906
|
+
[key: string]: unknown;
|
|
35756
35907
|
};
|
|
35757
|
-
|
|
35758
|
-
|
|
35759
|
-
|
|
35760
|
-
|
|
35908
|
+
enabled?: boolean;
|
|
35909
|
+
name: string;
|
|
35910
|
+
order?: number;
|
|
35911
|
+
type: string;
|
|
35912
|
+
when?: string;
|
|
35913
|
+
}[];
|
|
35761
35914
|
};
|
|
35762
|
-
|
|
35763
|
-
|
|
35764
|
-
|
|
35765
|
-
|
|
35766
|
-
|
|
35767
|
-
|
|
35768
|
-
|
|
35769
|
-
|
|
35770
|
-
|
|
35771
|
-
|
|
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?: {
|
|
35924
|
+
[key: string]: unknown;
|
|
35925
|
+
};
|
|
35926
|
+
executionId?: string;
|
|
35927
|
+
flowId: string;
|
|
35928
|
+
flowName?: string;
|
|
35929
|
+
input?: unknown;
|
|
35930
|
+
seq?: number;
|
|
35931
|
+
source?: string;
|
|
35932
|
+
startedAt: string;
|
|
35933
|
+
toolContext?: {
|
|
35934
|
+
executionId: string;
|
|
35935
|
+
stepId: string;
|
|
35936
|
+
toolId: string;
|
|
35772
35937
|
};
|
|
35773
|
-
|
|
35938
|
+
totalSteps?: number;
|
|
35774
35939
|
/** @enum {string} */
|
|
35775
|
-
type: "
|
|
35940
|
+
type: "flow_start";
|
|
35776
35941
|
} | {
|
|
35777
|
-
|
|
35778
|
-
|
|
35779
|
-
|
|
35780
|
-
|
|
35781
|
-
|
|
35782
|
-
parameters?: {
|
|
35783
|
-
[key: string]: unknown;
|
|
35784
|
-
};
|
|
35785
|
-
seq: number;
|
|
35786
|
-
toolCallId: string;
|
|
35787
|
-
toolName: string;
|
|
35788
|
-
/** @enum {string} */
|
|
35789
|
-
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
35790
|
-
/** @enum {string} */
|
|
35791
|
-
type: "agent_tool_start";
|
|
35792
|
-
} | {
|
|
35793
|
-
delta: string;
|
|
35794
|
-
executionId: string;
|
|
35795
|
-
iteration: number;
|
|
35796
|
-
seq: number;
|
|
35797
|
-
toolCallId: string;
|
|
35798
|
-
/** @enum {string} */
|
|
35799
|
-
type: "agent_tool_delta";
|
|
35800
|
-
} | {
|
|
35801
|
-
delta: string;
|
|
35802
|
-
executionId: string;
|
|
35803
|
-
iteration: number;
|
|
35804
|
-
seq: number;
|
|
35805
|
-
toolCallId: string;
|
|
35806
|
-
/** @enum {string} */
|
|
35807
|
-
type: "agent_tool_input_delta";
|
|
35808
|
-
} | {
|
|
35809
|
-
executionId: string;
|
|
35810
|
-
hiddenParameterNames?: string[];
|
|
35811
|
-
iteration: number;
|
|
35812
|
-
parameters: {
|
|
35942
|
+
claudeManagedAgentId?: string;
|
|
35943
|
+
completedAt?: string;
|
|
35944
|
+
completedSteps?: number;
|
|
35945
|
+
duration?: number;
|
|
35946
|
+
executionContext?: {
|
|
35813
35947
|
[key: string]: unknown;
|
|
35814
35948
|
};
|
|
35815
|
-
seq: number;
|
|
35816
|
-
toolCallId: string;
|
|
35817
|
-
toolName: string;
|
|
35818
|
-
/** @enum {string} */
|
|
35819
|
-
type: "agent_tool_input_complete";
|
|
35820
|
-
} | {
|
|
35821
|
-
executionId: string;
|
|
35822
|
-
executionTime?: number;
|
|
35823
|
-
iteration: number;
|
|
35824
|
-
result?: unknown;
|
|
35825
|
-
seq: number;
|
|
35826
|
-
success: boolean;
|
|
35827
|
-
toolCallId: string;
|
|
35828
|
-
toolName: string;
|
|
35829
|
-
/** @enum {string} */
|
|
35830
|
-
type: "agent_tool_complete";
|
|
35831
|
-
} | {
|
|
35832
35949
|
executionId?: string;
|
|
35833
|
-
|
|
35834
|
-
|
|
35835
|
-
|
|
35836
|
-
|
|
35837
|
-
|
|
35838
|
-
|
|
35839
|
-
mediaType: string;
|
|
35840
|
-
/** @enum {string} */
|
|
35841
|
-
type: "media";
|
|
35842
|
-
} | {
|
|
35843
|
-
annotations?: {
|
|
35844
|
-
audience?: ("user" | "assistant")[];
|
|
35845
|
-
};
|
|
35846
|
-
mediaType?: string;
|
|
35847
|
-
/** @enum {string} */
|
|
35848
|
-
type: "image-url";
|
|
35849
|
-
url: string;
|
|
35850
|
-
} | {
|
|
35851
|
-
annotations?: {
|
|
35852
|
-
audience?: ("user" | "assistant")[];
|
|
35853
|
-
};
|
|
35854
|
-
mediaType: string;
|
|
35855
|
-
/** @enum {string} */
|
|
35856
|
-
type: "file-url";
|
|
35857
|
-
url: string;
|
|
35858
|
-
})[];
|
|
35950
|
+
executionTime?: number;
|
|
35951
|
+
failedSteps?: number;
|
|
35952
|
+
finalOutput?: string;
|
|
35953
|
+
flowId?: string;
|
|
35954
|
+
flowName?: string;
|
|
35955
|
+
output?: unknown;
|
|
35859
35956
|
seq?: number;
|
|
35860
|
-
|
|
35861
|
-
|
|
35957
|
+
source?: string;
|
|
35958
|
+
success?: boolean;
|
|
35959
|
+
successfulSteps?: number;
|
|
35960
|
+
toolContext?: {
|
|
35961
|
+
executionId: string;
|
|
35962
|
+
stepId: string;
|
|
35963
|
+
toolId: string;
|
|
35964
|
+
};
|
|
35965
|
+
totalSteps?: number;
|
|
35966
|
+
totalTokensUsed?: number;
|
|
35862
35967
|
/** @enum {string} */
|
|
35863
|
-
type: "
|
|
35968
|
+
type: "flow_complete";
|
|
35864
35969
|
} | {
|
|
35865
|
-
|
|
35866
|
-
|
|
35867
|
-
|
|
35868
|
-
|
|
35869
|
-
|
|
35870
|
-
|
|
35970
|
+
code?: string;
|
|
35971
|
+
error: string | {
|
|
35972
|
+
code: string;
|
|
35973
|
+
message: string;
|
|
35974
|
+
stepId?: string;
|
|
35975
|
+
stepType?: string;
|
|
35871
35976
|
};
|
|
35872
|
-
|
|
35873
|
-
|
|
35874
|
-
|
|
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;
|
|
35875
35986
|
};
|
|
35876
|
-
reason?: string;
|
|
35877
|
-
seq: number;
|
|
35878
|
-
startedAt: string;
|
|
35879
|
-
timeout: number;
|
|
35880
|
-
toolCallId: string;
|
|
35881
|
-
toolName: string;
|
|
35882
|
-
toolType: string;
|
|
35883
|
-
/** @enum {string} */
|
|
35884
|
-
type: "agent_approval_start";
|
|
35885
|
-
} | {
|
|
35886
|
-
approvalId: string;
|
|
35887
|
-
completedAt: string;
|
|
35888
|
-
/** @enum {string} */
|
|
35889
|
-
decision: "approved" | "denied" | "timeout";
|
|
35890
|
-
executionId: string;
|
|
35891
|
-
/** @enum {string} */
|
|
35892
|
-
resolvedBy: "user" | "system";
|
|
35893
|
-
seq: number;
|
|
35894
35987
|
/** @enum {string} */
|
|
35895
|
-
type: "
|
|
35988
|
+
type: "flow_error";
|
|
35989
|
+
upgradeUrl?: string;
|
|
35896
35990
|
} | {
|
|
35897
35991
|
awaitedAt: string;
|
|
35898
|
-
executionId
|
|
35992
|
+
executionId?: string;
|
|
35993
|
+
flowId: string;
|
|
35899
35994
|
/** @enum {string} */
|
|
35900
35995
|
origin?: "webmcp" | "sdk";
|
|
35901
35996
|
pageOrigin?: string;
|
|
35902
35997
|
parameters?: {
|
|
35903
35998
|
[key: string]: unknown;
|
|
35904
35999
|
};
|
|
35905
|
-
seq
|
|
36000
|
+
seq?: number;
|
|
35906
36001
|
toolCallId?: string;
|
|
35907
|
-
toolId
|
|
35908
|
-
toolName
|
|
36002
|
+
toolId?: string;
|
|
36003
|
+
toolName?: string;
|
|
35909
36004
|
/** @enum {string} */
|
|
35910
|
-
type: "
|
|
36005
|
+
type: "flow_await";
|
|
35911
36006
|
} | {
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
|
|
35923
|
-
|
|
35924
|
-
|
|
35925
|
-
|
|
35926
|
-
|
|
35927
|
-
iteration: number;
|
|
35928
|
-
output?: string;
|
|
35929
|
-
runningTotalCost?: number;
|
|
35930
|
-
seq: number;
|
|
35931
|
-
stopConditionMet: boolean;
|
|
35932
|
-
tokens?: {
|
|
35933
|
-
input: number;
|
|
35934
|
-
output: number;
|
|
36007
|
+
estimatedTokens?: number;
|
|
36008
|
+
executionId?: string;
|
|
36009
|
+
id?: string;
|
|
36010
|
+
index?: number;
|
|
36011
|
+
name?: string;
|
|
36012
|
+
outputVariable?: string;
|
|
36013
|
+
seq?: number;
|
|
36014
|
+
startedAt: string;
|
|
36015
|
+
stepId?: string;
|
|
36016
|
+
stepName?: string;
|
|
36017
|
+
stepType?: string;
|
|
36018
|
+
toolContext?: {
|
|
36019
|
+
executionId: string;
|
|
36020
|
+
stepId: string;
|
|
36021
|
+
toolId: string;
|
|
35935
36022
|
};
|
|
35936
|
-
|
|
35937
|
-
/** @enum {string} */
|
|
35938
|
-
type: "agent_iteration_complete";
|
|
35939
|
-
} | {
|
|
35940
|
-
executionId: string;
|
|
35941
|
-
iteration: number;
|
|
35942
|
-
reflection?: string;
|
|
35943
|
-
seq: number;
|
|
35944
|
-
timestamp?: string;
|
|
35945
|
-
/** @enum {string} */
|
|
35946
|
-
type: "agent_reflection";
|
|
35947
|
-
} | {
|
|
35948
|
-
activatedCapabilities: string[];
|
|
35949
|
-
executionId: string;
|
|
35950
|
-
iteration: number;
|
|
35951
|
-
seq: number;
|
|
35952
|
-
skill: string;
|
|
35953
|
-
timestamp?: string;
|
|
35954
|
-
toolCallId: string;
|
|
36023
|
+
totalSteps?: number;
|
|
35955
36024
|
/** @enum {string} */
|
|
35956
|
-
type: "
|
|
36025
|
+
type: "step_start";
|
|
35957
36026
|
} | {
|
|
35958
|
-
|
|
35959
|
-
|
|
35960
|
-
|
|
35961
|
-
|
|
35962
|
-
|
|
35963
|
-
seq
|
|
35964
|
-
|
|
35965
|
-
|
|
35966
|
-
|
|
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;
|
|
35967
36040
|
/** @enum {string} */
|
|
35968
|
-
type: "
|
|
36041
|
+
type: "step_delta";
|
|
35969
36042
|
} | {
|
|
35970
|
-
|
|
35971
|
-
completedAt: string;
|
|
36043
|
+
completedAt?: string;
|
|
35972
36044
|
duration?: number;
|
|
36045
|
+
durationMs?: number;
|
|
35973
36046
|
error?: string;
|
|
35974
|
-
executionId
|
|
35975
|
-
|
|
35976
|
-
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
|
|
35980
|
-
|
|
35981
|
-
seq
|
|
36047
|
+
executionId?: string;
|
|
36048
|
+
executionTime?: number;
|
|
36049
|
+
id?: string;
|
|
36050
|
+
index?: number;
|
|
36051
|
+
name?: string;
|
|
36052
|
+
output?: unknown;
|
|
36053
|
+
result?: unknown;
|
|
36054
|
+
seq?: number;
|
|
36055
|
+
stepId?: string;
|
|
36056
|
+
stepName?: string;
|
|
36057
|
+
stepType?: string;
|
|
35982
36058
|
/** @enum {string} */
|
|
35983
|
-
stopReason
|
|
35984
|
-
success
|
|
35985
|
-
|
|
35986
|
-
|
|
35987
|
-
|
|
35988
|
-
|
|
36059
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
36060
|
+
success?: boolean;
|
|
36061
|
+
tokensUsed?: number;
|
|
36062
|
+
toolContext?: {
|
|
36063
|
+
executionId: string;
|
|
36064
|
+
stepId: string;
|
|
36065
|
+
toolId: string;
|
|
35989
36066
|
};
|
|
35990
36067
|
/** @enum {string} */
|
|
35991
|
-
type: "
|
|
36068
|
+
type: "step_complete";
|
|
36069
|
+
unresolvedVariables?: string[];
|
|
35992
36070
|
} | {
|
|
35993
|
-
error:
|
|
35994
|
-
|
|
35995
|
-
|
|
35996
|
-
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
|
|
36000
|
-
|
|
36001
|
-
iteration?: number;
|
|
36002
|
-
recoverable: boolean;
|
|
36003
|
-
seq: number;
|
|
36004
|
-
timestamp?: string;
|
|
36071
|
+
error: string;
|
|
36072
|
+
executionId?: string;
|
|
36073
|
+
executionTime?: number;
|
|
36074
|
+
id?: string;
|
|
36075
|
+
index?: number;
|
|
36076
|
+
name?: string;
|
|
36077
|
+
seq?: number;
|
|
36078
|
+
stepType?: string;
|
|
36005
36079
|
/** @enum {string} */
|
|
36006
|
-
type: "
|
|
36080
|
+
type: "step_error";
|
|
36007
36081
|
} | {
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36082
|
+
error?: string;
|
|
36083
|
+
executionId?: string;
|
|
36084
|
+
id: string;
|
|
36085
|
+
index?: number;
|
|
36086
|
+
name?: string;
|
|
36087
|
+
seq?: number;
|
|
36088
|
+
skippedAt: string;
|
|
36089
|
+
stepType: string;
|
|
36090
|
+
totalSteps: number;
|
|
36011
36091
|
/** @enum {string} */
|
|
36012
|
-
type: "
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
executionLimit: number;
|
|
36019
|
-
executionsUsed: number;
|
|
36020
|
-
inSlowMode: boolean;
|
|
36021
|
-
isAtLimit: boolean;
|
|
36022
|
-
isNearLimit: boolean;
|
|
36023
|
-
isOverage: boolean;
|
|
36024
|
-
isUnlimited: boolean;
|
|
36025
|
-
overageCount: number;
|
|
36026
|
-
percentUsed: number;
|
|
36027
|
-
periodType: string;
|
|
36028
|
-
remaining: number | null;
|
|
36029
|
-
resetsAt: string;
|
|
36030
|
-
spendLimit: number | null;
|
|
36031
|
-
spendLimitEnabled: boolean;
|
|
36032
|
-
tier: string;
|
|
36033
|
-
};
|
|
36034
|
-
monthly?: {
|
|
36035
|
-
atSpendLimit: boolean;
|
|
36036
|
-
date: string;
|
|
36037
|
-
executionLimit: number;
|
|
36038
|
-
executionsUsed: number;
|
|
36039
|
-
inSlowMode: boolean;
|
|
36040
|
-
isAtLimit: boolean;
|
|
36041
|
-
isNearLimit: boolean;
|
|
36042
|
-
isOverage: boolean;
|
|
36043
|
-
isUnlimited: boolean;
|
|
36044
|
-
overageCount: number;
|
|
36045
|
-
percentUsed: number;
|
|
36046
|
-
periodType: string;
|
|
36047
|
-
remaining: number | null;
|
|
36048
|
-
resetsAt: string;
|
|
36049
|
-
spendLimit: number | null;
|
|
36050
|
-
spendLimitEnabled: boolean;
|
|
36051
|
-
tier: string;
|
|
36052
|
-
};
|
|
36053
|
-
};
|
|
36054
|
-
DispatchSSEEvent: {
|
|
36055
|
-
agentId: string;
|
|
36056
|
-
agentName: string;
|
|
36057
|
-
config?: {
|
|
36058
|
-
enableReflection?: boolean;
|
|
36059
|
-
model?: string;
|
|
36060
|
-
};
|
|
36061
|
-
executionId: string;
|
|
36062
|
-
maxTurns: number;
|
|
36063
|
-
seq: number;
|
|
36064
|
-
startedAt: string;
|
|
36065
|
-
/** @enum {string} */
|
|
36066
|
-
type: "agent_start";
|
|
36067
|
-
} | {
|
|
36068
|
-
executionId: string;
|
|
36069
|
-
iteration: number;
|
|
36070
|
-
maxTurns: number;
|
|
36071
|
-
seq: number;
|
|
36072
|
-
startedAt: string;
|
|
36073
|
-
totalCost?: number;
|
|
36074
|
-
/** @enum {string} */
|
|
36075
|
-
type: "agent_iteration_start";
|
|
36076
|
-
} | {
|
|
36077
|
-
executionId: string;
|
|
36078
|
-
iteration: number;
|
|
36079
|
-
/** @enum {string} */
|
|
36080
|
-
role: "user" | "assistant" | "system";
|
|
36081
|
-
seq: number;
|
|
36082
|
-
turnId: string;
|
|
36083
|
-
turnIndex: number;
|
|
36084
|
-
/** @enum {string} */
|
|
36085
|
-
type: "agent_turn_start";
|
|
36086
|
-
} | {
|
|
36087
|
-
/** @enum {string} */
|
|
36088
|
-
contentType: "text" | "thinking" | "tool_input";
|
|
36089
|
-
delta: string;
|
|
36090
|
-
executionId: string;
|
|
36091
|
-
iteration: number;
|
|
36092
|
-
seq: number;
|
|
36093
|
-
turnId: string;
|
|
36094
|
-
/** @enum {string} */
|
|
36095
|
-
type: "agent_turn_delta";
|
|
36096
|
-
} | {
|
|
36097
|
-
completedAt: string;
|
|
36098
|
-
content?: string;
|
|
36099
|
-
cost?: number;
|
|
36100
|
-
estimatedContextBreakdown?: {
|
|
36101
|
-
categories: {
|
|
36102
|
-
[key: string]: {
|
|
36103
|
-
chars: number;
|
|
36104
|
-
estimatedTokens: number;
|
|
36105
|
-
};
|
|
36106
|
-
};
|
|
36107
|
-
contextWindowSize?: number;
|
|
36108
|
-
estimatedTotalTokens: number;
|
|
36109
|
-
estimatedUtilizationPercent?: number;
|
|
36110
|
-
};
|
|
36111
|
-
executionId: string;
|
|
36112
|
-
iteration: number;
|
|
36113
|
-
/** @enum {string} */
|
|
36114
|
-
role: "user" | "assistant" | "system";
|
|
36115
|
-
seq: number;
|
|
36092
|
+
type: "step_skip";
|
|
36093
|
+
when: string;
|
|
36094
|
+
} | ({
|
|
36095
|
+
executionId?: string;
|
|
36096
|
+
reason?: string;
|
|
36097
|
+
seq?: number;
|
|
36116
36098
|
/** @enum {string} */
|
|
36117
|
-
|
|
36118
|
-
|
|
36119
|
-
|
|
36120
|
-
|
|
36099
|
+
type: "step_await";
|
|
36100
|
+
} & {
|
|
36101
|
+
[key: string]: unknown;
|
|
36102
|
+
}) | ({
|
|
36103
|
+
agentContext?: {
|
|
36104
|
+
executionId: string;
|
|
36105
|
+
iteration: number;
|
|
36106
|
+
seq: number;
|
|
36121
36107
|
};
|
|
36122
|
-
|
|
36123
|
-
|
|
36124
|
-
|
|
36125
|
-
} | {
|
|
36126
|
-
executionId: string;
|
|
36127
|
-
iteration: number;
|
|
36128
|
-
/** @enum {string} */
|
|
36129
|
-
origin?: "webmcp" | "sdk";
|
|
36130
|
-
pageOrigin?: string;
|
|
36108
|
+
executionId?: string;
|
|
36109
|
+
hiddenParameterNames?: string[];
|
|
36110
|
+
name?: string;
|
|
36131
36111
|
parameters?: {
|
|
36132
36112
|
[key: string]: unknown;
|
|
36133
36113
|
};
|
|
36134
|
-
|
|
36135
|
-
|
|
36136
|
-
|
|
36114
|
+
providerOptions?: {
|
|
36115
|
+
[key: string]: unknown;
|
|
36116
|
+
};
|
|
36117
|
+
seq?: number;
|
|
36118
|
+
startedAt?: string;
|
|
36119
|
+
stepId?: string;
|
|
36120
|
+
toolCallId?: string;
|
|
36121
|
+
toolId?: string;
|
|
36122
|
+
toolName?: string;
|
|
36137
36123
|
/** @enum {string} */
|
|
36138
36124
|
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
36139
36125
|
/** @enum {string} */
|
|
36140
|
-
type: "
|
|
36141
|
-
}
|
|
36142
|
-
|
|
36143
|
-
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
|
|
36126
|
+
type: "tool_start";
|
|
36127
|
+
} & {
|
|
36128
|
+
[key: string]: unknown;
|
|
36129
|
+
}) | ({
|
|
36130
|
+
delta?: string;
|
|
36131
|
+
executionId?: string;
|
|
36132
|
+
seq?: number;
|
|
36133
|
+
toolId?: string;
|
|
36147
36134
|
/** @enum {string} */
|
|
36148
|
-
type: "
|
|
36149
|
-
}
|
|
36135
|
+
type: "tool_delta";
|
|
36136
|
+
} & {
|
|
36137
|
+
[key: string]: unknown;
|
|
36138
|
+
}) | {
|
|
36150
36139
|
delta: string;
|
|
36151
|
-
executionId
|
|
36152
|
-
|
|
36153
|
-
|
|
36154
|
-
toolCallId
|
|
36140
|
+
executionId?: string;
|
|
36141
|
+
seq?: number;
|
|
36142
|
+
stepId?: string;
|
|
36143
|
+
toolCallId?: string;
|
|
36144
|
+
toolId?: string;
|
|
36155
36145
|
/** @enum {string} */
|
|
36156
|
-
type: "
|
|
36146
|
+
type: "tool_input_delta";
|
|
36157
36147
|
} | {
|
|
36158
|
-
executionId
|
|
36148
|
+
executionId?: string;
|
|
36159
36149
|
hiddenParameterNames?: string[];
|
|
36160
|
-
iteration: number;
|
|
36161
36150
|
parameters: {
|
|
36162
36151
|
[key: string]: unknown;
|
|
36163
36152
|
};
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
|
|
36153
|
+
providerOptions?: {
|
|
36154
|
+
[key: string]: unknown;
|
|
36155
|
+
};
|
|
36156
|
+
seq?: number;
|
|
36157
|
+
stepId?: string;
|
|
36158
|
+
toolCallId?: string;
|
|
36159
|
+
toolId?: string;
|
|
36160
|
+
toolName?: string;
|
|
36167
36161
|
/** @enum {string} */
|
|
36168
|
-
type: "
|
|
36162
|
+
type: "tool_input_complete";
|
|
36169
36163
|
} | {
|
|
36170
|
-
|
|
36164
|
+
agentContext?: {
|
|
36165
|
+
executionId: string;
|
|
36166
|
+
iteration: number;
|
|
36167
|
+
seq: number;
|
|
36168
|
+
};
|
|
36169
|
+
completedAt?: string;
|
|
36170
|
+
error?: string;
|
|
36171
|
+
executionId?: string;
|
|
36171
36172
|
executionTime?: number;
|
|
36172
|
-
|
|
36173
|
+
name?: string;
|
|
36173
36174
|
result?: unknown;
|
|
36174
|
-
seq
|
|
36175
|
+
seq?: number;
|
|
36176
|
+
stepId?: string;
|
|
36175
36177
|
success: boolean;
|
|
36176
|
-
toolCallId
|
|
36177
|
-
|
|
36178
|
+
toolCallId?: string;
|
|
36179
|
+
toolCost?: number;
|
|
36180
|
+
toolId?: string;
|
|
36181
|
+
toolName?: string;
|
|
36178
36182
|
/** @enum {string} */
|
|
36179
|
-
type: "
|
|
36183
|
+
type: "tool_complete";
|
|
36180
36184
|
} | {
|
|
36185
|
+
agentContext?: {
|
|
36186
|
+
executionId: string;
|
|
36187
|
+
iteration: number;
|
|
36188
|
+
seq: number;
|
|
36189
|
+
};
|
|
36190
|
+
error: string;
|
|
36181
36191
|
executionId?: string;
|
|
36182
|
-
|
|
36183
|
-
|
|
36184
|
-
|
|
36185
|
-
audience?: ("user" | "assistant")[];
|
|
36186
|
-
};
|
|
36187
|
-
data: string;
|
|
36188
|
-
mediaType: string;
|
|
36189
|
-
/** @enum {string} */
|
|
36190
|
-
type: "media";
|
|
36191
|
-
} | {
|
|
36192
|
-
annotations?: {
|
|
36193
|
-
audience?: ("user" | "assistant")[];
|
|
36194
|
-
};
|
|
36195
|
-
mediaType?: string;
|
|
36196
|
-
/** @enum {string} */
|
|
36197
|
-
type: "image-url";
|
|
36198
|
-
url: string;
|
|
36199
|
-
} | {
|
|
36200
|
-
annotations?: {
|
|
36201
|
-
audience?: ("user" | "assistant")[];
|
|
36202
|
-
};
|
|
36203
|
-
mediaType: string;
|
|
36204
|
-
/** @enum {string} */
|
|
36205
|
-
type: "file-url";
|
|
36206
|
-
url: string;
|
|
36207
|
-
})[];
|
|
36192
|
+
executionTime?: number;
|
|
36193
|
+
failedAt?: string;
|
|
36194
|
+
name: string;
|
|
36208
36195
|
seq?: number;
|
|
36209
|
-
|
|
36210
|
-
toolName: string;
|
|
36211
|
-
/** @enum {string} */
|
|
36212
|
-
type: "agent_media";
|
|
36213
|
-
} | {
|
|
36214
|
-
approvalId: string;
|
|
36215
|
-
description: string;
|
|
36216
|
-
executionId: string;
|
|
36217
|
-
externalAgent?: {
|
|
36218
|
-
contextId?: string;
|
|
36219
|
-
taskId?: string;
|
|
36220
|
-
};
|
|
36221
|
-
iteration?: number;
|
|
36222
|
-
parameters?: {
|
|
36223
|
-
[key: string]: unknown;
|
|
36224
|
-
};
|
|
36225
|
-
reason?: string;
|
|
36226
|
-
seq: number;
|
|
36227
|
-
startedAt: string;
|
|
36228
|
-
timeout: number;
|
|
36229
|
-
toolCallId: string;
|
|
36230
|
-
toolName: string;
|
|
36231
|
-
toolType: string;
|
|
36196
|
+
toolId: string;
|
|
36232
36197
|
/** @enum {string} */
|
|
36233
|
-
type: "
|
|
36198
|
+
type: "tool_error";
|
|
36234
36199
|
} | {
|
|
36235
|
-
|
|
36236
|
-
|
|
36200
|
+
executionId?: string;
|
|
36201
|
+
id: string;
|
|
36202
|
+
seq?: number;
|
|
36203
|
+
text: string;
|
|
36237
36204
|
/** @enum {string} */
|
|
36238
|
-
|
|
36239
|
-
|
|
36205
|
+
type: "chunk";
|
|
36206
|
+
} | ({
|
|
36207
|
+
executionId?: string;
|
|
36208
|
+
seq?: number;
|
|
36240
36209
|
/** @enum {string} */
|
|
36241
|
-
|
|
36242
|
-
|
|
36210
|
+
type: "text_start";
|
|
36211
|
+
} & {
|
|
36212
|
+
[key: string]: unknown;
|
|
36213
|
+
}) | ({
|
|
36214
|
+
executionId?: string;
|
|
36215
|
+
seq?: number;
|
|
36243
36216
|
/** @enum {string} */
|
|
36244
|
-
type: "
|
|
36245
|
-
}
|
|
36246
|
-
|
|
36247
|
-
|
|
36217
|
+
type: "text_end";
|
|
36218
|
+
} & {
|
|
36219
|
+
[key: string]: unknown;
|
|
36220
|
+
}) | ({
|
|
36221
|
+
executionId?: string;
|
|
36222
|
+
seq?: number;
|
|
36248
36223
|
/** @enum {string} */
|
|
36249
|
-
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
seq
|
|
36255
|
-
toolCallId?: string;
|
|
36256
|
-
toolId: string;
|
|
36257
|
-
toolName: string;
|
|
36224
|
+
type: "reason_start";
|
|
36225
|
+
} & {
|
|
36226
|
+
[key: string]: unknown;
|
|
36227
|
+
}) | ({
|
|
36228
|
+
executionId?: string;
|
|
36229
|
+
seq?: number;
|
|
36258
36230
|
/** @enum {string} */
|
|
36259
|
-
type: "
|
|
36260
|
-
}
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
36265
|
-
categories: {
|
|
36266
|
-
[key: string]: {
|
|
36267
|
-
chars: number;
|
|
36268
|
-
estimatedTokens: number;
|
|
36269
|
-
};
|
|
36270
|
-
};
|
|
36271
|
-
contextWindowSize?: number;
|
|
36272
|
-
estimatedTotalTokens: number;
|
|
36273
|
-
estimatedUtilizationPercent?: number;
|
|
36274
|
-
};
|
|
36275
|
-
executionId: string;
|
|
36276
|
-
iteration: number;
|
|
36277
|
-
output?: string;
|
|
36278
|
-
runningTotalCost?: number;
|
|
36279
|
-
seq: number;
|
|
36280
|
-
stopConditionMet: boolean;
|
|
36281
|
-
tokens?: {
|
|
36282
|
-
input: number;
|
|
36283
|
-
output: number;
|
|
36284
|
-
};
|
|
36285
|
-
toolCallsMade: number;
|
|
36231
|
+
type: "reason_delta";
|
|
36232
|
+
} & {
|
|
36233
|
+
[key: string]: unknown;
|
|
36234
|
+
}) | ({
|
|
36235
|
+
executionId?: string;
|
|
36236
|
+
seq?: number;
|
|
36286
36237
|
/** @enum {string} */
|
|
36287
|
-
type: "
|
|
36288
|
-
}
|
|
36289
|
-
|
|
36290
|
-
|
|
36291
|
-
|
|
36292
|
-
seq
|
|
36293
|
-
timestamp?: string;
|
|
36238
|
+
type: "reason_complete";
|
|
36239
|
+
} & {
|
|
36240
|
+
[key: string]: unknown;
|
|
36241
|
+
}) | ({
|
|
36242
|
+
executionId?: string;
|
|
36243
|
+
seq?: number;
|
|
36294
36244
|
/** @enum {string} */
|
|
36295
|
-
type: "
|
|
36296
|
-
}
|
|
36297
|
-
|
|
36298
|
-
|
|
36299
|
-
iteration: number;
|
|
36300
|
-
seq: number;
|
|
36301
|
-
skill: string;
|
|
36302
|
-
timestamp?: string;
|
|
36303
|
-
toolCallId: string;
|
|
36304
|
-
/** @enum {string} */
|
|
36305
|
-
type: "agent_skill_loaded";
|
|
36306
|
-
} | {
|
|
36307
|
-
executionId: string;
|
|
36308
|
-
iteration: number;
|
|
36309
|
-
/** @enum {string} */
|
|
36310
|
-
outcome: "pending_approval" | "auto_published";
|
|
36311
|
-
proposalId?: string;
|
|
36312
|
-
seq: number;
|
|
36313
|
-
skill: string;
|
|
36314
|
-
timestamp?: string;
|
|
36315
|
-
toolCallId: string;
|
|
36316
|
-
/** @enum {string} */
|
|
36317
|
-
type: "agent_skill_proposed";
|
|
36318
|
-
} | {
|
|
36319
|
-
agentId: string;
|
|
36320
|
-
completedAt: string;
|
|
36321
|
-
duration?: number;
|
|
36322
|
-
error?: string;
|
|
36323
|
-
executionId: string;
|
|
36324
|
-
externalAgent?: {
|
|
36325
|
-
contextId?: string;
|
|
36326
|
-
taskId?: string;
|
|
36327
|
-
};
|
|
36328
|
-
finalOutput?: string;
|
|
36329
|
-
iterations: number;
|
|
36330
|
-
seq: number;
|
|
36331
|
-
/** @enum {string} */
|
|
36332
|
-
stopReason: "complete" | "end_turn" | "max_turns" | "max_cost" | "timeout" | "error";
|
|
36333
|
-
success: boolean;
|
|
36334
|
-
totalCost?: number;
|
|
36335
|
-
totalTokens?: {
|
|
36336
|
-
input: number;
|
|
36337
|
-
output: number;
|
|
36338
|
-
};
|
|
36339
|
-
/** @enum {string} */
|
|
36340
|
-
type: "agent_complete";
|
|
36341
|
-
} | {
|
|
36342
|
-
error: {
|
|
36343
|
-
code: string;
|
|
36344
|
-
details?: {
|
|
36345
|
-
[key: string]: unknown;
|
|
36346
|
-
};
|
|
36347
|
-
message: string;
|
|
36348
|
-
};
|
|
36349
|
-
executionId: string;
|
|
36350
|
-
iteration?: number;
|
|
36351
|
-
recoverable: boolean;
|
|
36352
|
-
seq: number;
|
|
36353
|
-
timestamp?: string;
|
|
36354
|
-
/** @enum {string} */
|
|
36355
|
-
type: "agent_error";
|
|
36356
|
-
} | {
|
|
36357
|
-
executionId: string;
|
|
36358
|
-
seq: number;
|
|
36359
|
-
timestamp: string;
|
|
36360
|
-
/** @enum {string} */
|
|
36361
|
-
type: "agent_ping";
|
|
36362
|
-
} | {
|
|
36363
|
-
executionContext?: {
|
|
36364
|
-
[key: string]: unknown;
|
|
36365
|
-
};
|
|
36366
|
-
executionId?: string;
|
|
36367
|
-
flowId: string;
|
|
36368
|
-
flowName?: string;
|
|
36369
|
-
input?: unknown;
|
|
36370
|
-
seq?: number;
|
|
36371
|
-
source?: string;
|
|
36372
|
-
startedAt: string;
|
|
36373
|
-
toolContext?: {
|
|
36374
|
-
executionId: string;
|
|
36375
|
-
stepId: string;
|
|
36376
|
-
toolId: string;
|
|
36377
|
-
};
|
|
36378
|
-
totalSteps?: number;
|
|
36379
|
-
/** @enum {string} */
|
|
36380
|
-
type: "flow_start";
|
|
36381
|
-
} | {
|
|
36382
|
-
claudeManagedAgentId?: string;
|
|
36383
|
-
completedAt?: string;
|
|
36384
|
-
completedSteps?: number;
|
|
36385
|
-
duration?: number;
|
|
36386
|
-
executionContext?: {
|
|
36387
|
-
[key: string]: unknown;
|
|
36388
|
-
};
|
|
36389
|
-
executionId?: string;
|
|
36390
|
-
executionTime?: number;
|
|
36391
|
-
failedSteps?: number;
|
|
36392
|
-
finalOutput?: string;
|
|
36393
|
-
flowId?: string;
|
|
36394
|
-
flowName?: string;
|
|
36395
|
-
output?: unknown;
|
|
36396
|
-
seq?: number;
|
|
36397
|
-
source?: string;
|
|
36398
|
-
success?: boolean;
|
|
36399
|
-
successfulSteps?: number;
|
|
36400
|
-
toolContext?: {
|
|
36401
|
-
executionId: string;
|
|
36402
|
-
stepId: string;
|
|
36403
|
-
toolId: string;
|
|
36404
|
-
};
|
|
36405
|
-
totalSteps?: number;
|
|
36406
|
-
totalTokensUsed?: number;
|
|
36407
|
-
/** @enum {string} */
|
|
36408
|
-
type: "flow_complete";
|
|
36409
|
-
} | {
|
|
36410
|
-
code?: string;
|
|
36411
|
-
error: string | {
|
|
36412
|
-
code: string;
|
|
36413
|
-
message: string;
|
|
36414
|
-
stepId?: string;
|
|
36415
|
-
stepType?: string;
|
|
36416
|
-
};
|
|
36417
|
-
executionId?: string;
|
|
36418
|
-
executionTime?: number;
|
|
36419
|
-
flowId?: string;
|
|
36420
|
-
seq?: number;
|
|
36421
|
-
timestamp?: string;
|
|
36422
|
-
toolContext?: {
|
|
36423
|
-
executionId: string;
|
|
36424
|
-
stepId: string;
|
|
36425
|
-
toolId: string;
|
|
36426
|
-
};
|
|
36427
|
-
/** @enum {string} */
|
|
36428
|
-
type: "flow_error";
|
|
36429
|
-
upgradeUrl?: string;
|
|
36430
|
-
} | {
|
|
36431
|
-
awaitedAt: string;
|
|
36432
|
-
executionId?: string;
|
|
36433
|
-
flowId: string;
|
|
36434
|
-
/** @enum {string} */
|
|
36435
|
-
origin?: "webmcp" | "sdk";
|
|
36436
|
-
pageOrigin?: string;
|
|
36437
|
-
parameters?: {
|
|
36438
|
-
[key: string]: unknown;
|
|
36439
|
-
};
|
|
36440
|
-
seq?: number;
|
|
36441
|
-
toolCallId?: string;
|
|
36442
|
-
toolId?: string;
|
|
36443
|
-
toolName?: string;
|
|
36444
|
-
/** @enum {string} */
|
|
36445
|
-
type: "flow_await";
|
|
36446
|
-
} | {
|
|
36447
|
-
estimatedTokens?: number;
|
|
36448
|
-
executionId?: string;
|
|
36449
|
-
id?: string;
|
|
36450
|
-
index?: number;
|
|
36451
|
-
name?: string;
|
|
36452
|
-
outputVariable?: string;
|
|
36453
|
-
seq?: number;
|
|
36454
|
-
startedAt: string;
|
|
36455
|
-
stepId?: string;
|
|
36456
|
-
stepName?: string;
|
|
36457
|
-
stepType?: string;
|
|
36458
|
-
toolContext?: {
|
|
36459
|
-
executionId: string;
|
|
36460
|
-
stepId: string;
|
|
36461
|
-
toolId: string;
|
|
36462
|
-
};
|
|
36463
|
-
totalSteps?: number;
|
|
36464
|
-
/** @enum {string} */
|
|
36465
|
-
type: "step_start";
|
|
36466
|
-
} | {
|
|
36467
|
-
delta?: string;
|
|
36468
|
-
executionId?: string;
|
|
36469
|
-
id?: string;
|
|
36470
|
-
messageId?: string;
|
|
36471
|
-
partId?: string;
|
|
36472
|
-
seq?: number;
|
|
36473
|
-
text?: string;
|
|
36474
|
-
toolContext?: {
|
|
36475
|
-
executionId: string;
|
|
36476
|
-
stepId: string;
|
|
36477
|
-
toolId: string;
|
|
36478
|
-
};
|
|
36479
|
-
toolId?: string;
|
|
36480
|
-
/** @enum {string} */
|
|
36481
|
-
type: "step_delta";
|
|
36482
|
-
} | {
|
|
36483
|
-
completedAt?: string;
|
|
36484
|
-
duration?: number;
|
|
36485
|
-
durationMs?: number;
|
|
36486
|
-
error?: string;
|
|
36487
|
-
executionId?: string;
|
|
36488
|
-
executionTime?: number;
|
|
36489
|
-
id?: string;
|
|
36490
|
-
index?: number;
|
|
36491
|
-
name?: string;
|
|
36492
|
-
output?: unknown;
|
|
36493
|
-
result?: unknown;
|
|
36494
|
-
seq?: number;
|
|
36495
|
-
stepId?: string;
|
|
36496
|
-
stepName?: string;
|
|
36497
|
-
stepType?: string;
|
|
36498
|
-
/** @enum {string} */
|
|
36499
|
-
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
36500
|
-
success?: boolean;
|
|
36501
|
-
tokensUsed?: number;
|
|
36502
|
-
toolContext?: {
|
|
36503
|
-
executionId: string;
|
|
36504
|
-
stepId: string;
|
|
36505
|
-
toolId: string;
|
|
36506
|
-
};
|
|
36507
|
-
/** @enum {string} */
|
|
36508
|
-
type: "step_complete";
|
|
36509
|
-
unresolvedVariables?: string[];
|
|
36510
|
-
} | {
|
|
36511
|
-
error: string;
|
|
36512
|
-
executionId?: string;
|
|
36513
|
-
executionTime?: number;
|
|
36514
|
-
id?: string;
|
|
36515
|
-
index?: number;
|
|
36516
|
-
name?: string;
|
|
36517
|
-
seq?: number;
|
|
36518
|
-
stepType?: string;
|
|
36519
|
-
/** @enum {string} */
|
|
36520
|
-
type: "step_error";
|
|
36521
|
-
} | {
|
|
36522
|
-
error?: string;
|
|
36523
|
-
executionId?: string;
|
|
36524
|
-
id: string;
|
|
36525
|
-
index?: number;
|
|
36526
|
-
name?: string;
|
|
36527
|
-
seq?: number;
|
|
36528
|
-
skippedAt: string;
|
|
36529
|
-
stepType: string;
|
|
36530
|
-
totalSteps: number;
|
|
36531
|
-
/** @enum {string} */
|
|
36532
|
-
type: "step_skip";
|
|
36533
|
-
when: string;
|
|
36534
|
-
} | ({
|
|
36245
|
+
type: "source";
|
|
36246
|
+
} & {
|
|
36247
|
+
[key: string]: unknown;
|
|
36248
|
+
}) | ({
|
|
36535
36249
|
executionId?: string;
|
|
36536
|
-
reason?: string;
|
|
36537
36250
|
seq?: number;
|
|
36538
36251
|
/** @enum {string} */
|
|
36539
|
-
type: "
|
|
36252
|
+
type: "fallback_start";
|
|
36540
36253
|
} & {
|
|
36541
36254
|
[key: string]: unknown;
|
|
36542
36255
|
}) | ({
|
|
36543
|
-
agentContext?: {
|
|
36544
|
-
executionId: string;
|
|
36545
|
-
iteration: number;
|
|
36546
|
-
seq: number;
|
|
36547
|
-
};
|
|
36548
36256
|
executionId?: string;
|
|
36549
|
-
hiddenParameterNames?: string[];
|
|
36550
|
-
name?: string;
|
|
36551
|
-
parameters?: {
|
|
36552
|
-
[key: string]: unknown;
|
|
36553
|
-
};
|
|
36554
|
-
providerOptions?: {
|
|
36555
|
-
[key: string]: unknown;
|
|
36556
|
-
};
|
|
36557
36257
|
seq?: number;
|
|
36558
|
-
startedAt?: string;
|
|
36559
|
-
stepId?: string;
|
|
36560
|
-
toolCallId?: string;
|
|
36561
|
-
toolId?: string;
|
|
36562
|
-
toolName?: string;
|
|
36563
36258
|
/** @enum {string} */
|
|
36564
|
-
|
|
36565
|
-
/** @enum {string} */
|
|
36566
|
-
type: "tool_start";
|
|
36259
|
+
type: "fallback_complete";
|
|
36567
36260
|
} & {
|
|
36568
36261
|
[key: string]: unknown;
|
|
36569
36262
|
}) | ({
|
|
36570
|
-
delta?: string;
|
|
36571
36263
|
executionId?: string;
|
|
36572
36264
|
seq?: number;
|
|
36573
|
-
toolId?: string;
|
|
36574
36265
|
/** @enum {string} */
|
|
36575
|
-
type: "
|
|
36576
|
-
} & {
|
|
36577
|
-
[key: string]: unknown;
|
|
36578
|
-
}) | {
|
|
36579
|
-
delta: string;
|
|
36580
|
-
executionId?: string;
|
|
36581
|
-
seq?: number;
|
|
36582
|
-
stepId?: string;
|
|
36583
|
-
toolCallId?: string;
|
|
36584
|
-
toolId?: string;
|
|
36585
|
-
/** @enum {string} */
|
|
36586
|
-
type: "tool_input_delta";
|
|
36587
|
-
} | {
|
|
36588
|
-
executionId?: string;
|
|
36589
|
-
hiddenParameterNames?: string[];
|
|
36590
|
-
parameters: {
|
|
36591
|
-
[key: string]: unknown;
|
|
36592
|
-
};
|
|
36593
|
-
providerOptions?: {
|
|
36594
|
-
[key: string]: unknown;
|
|
36595
|
-
};
|
|
36596
|
-
seq?: number;
|
|
36597
|
-
stepId?: string;
|
|
36598
|
-
toolCallId?: string;
|
|
36599
|
-
toolId?: string;
|
|
36600
|
-
toolName?: string;
|
|
36601
|
-
/** @enum {string} */
|
|
36602
|
-
type: "tool_input_complete";
|
|
36603
|
-
} | {
|
|
36604
|
-
agentContext?: {
|
|
36605
|
-
executionId: string;
|
|
36606
|
-
iteration: number;
|
|
36607
|
-
seq: number;
|
|
36608
|
-
};
|
|
36609
|
-
completedAt?: string;
|
|
36610
|
-
error?: string;
|
|
36611
|
-
executionId?: string;
|
|
36612
|
-
executionTime?: number;
|
|
36613
|
-
name?: string;
|
|
36614
|
-
result?: unknown;
|
|
36615
|
-
seq?: number;
|
|
36616
|
-
stepId?: string;
|
|
36617
|
-
success: boolean;
|
|
36618
|
-
toolCallId?: string;
|
|
36619
|
-
toolCost?: number;
|
|
36620
|
-
toolId?: string;
|
|
36621
|
-
toolName?: string;
|
|
36622
|
-
/** @enum {string} */
|
|
36623
|
-
type: "tool_complete";
|
|
36624
|
-
} | {
|
|
36625
|
-
agentContext?: {
|
|
36626
|
-
executionId: string;
|
|
36627
|
-
iteration: number;
|
|
36628
|
-
seq: number;
|
|
36629
|
-
};
|
|
36630
|
-
error: string;
|
|
36631
|
-
executionId?: string;
|
|
36632
|
-
executionTime?: number;
|
|
36633
|
-
failedAt?: string;
|
|
36634
|
-
name: string;
|
|
36635
|
-
seq?: number;
|
|
36636
|
-
toolId: string;
|
|
36637
|
-
/** @enum {string} */
|
|
36638
|
-
type: "tool_error";
|
|
36639
|
-
} | {
|
|
36640
|
-
executionId?: string;
|
|
36641
|
-
id: string;
|
|
36642
|
-
seq?: number;
|
|
36643
|
-
text: string;
|
|
36644
|
-
/** @enum {string} */
|
|
36645
|
-
type: "chunk";
|
|
36646
|
-
} | ({
|
|
36647
|
-
executionId?: string;
|
|
36648
|
-
seq?: number;
|
|
36649
|
-
/** @enum {string} */
|
|
36650
|
-
type: "text_start";
|
|
36651
|
-
} & {
|
|
36652
|
-
[key: string]: unknown;
|
|
36653
|
-
}) | ({
|
|
36654
|
-
executionId?: string;
|
|
36655
|
-
seq?: number;
|
|
36656
|
-
/** @enum {string} */
|
|
36657
|
-
type: "text_end";
|
|
36658
|
-
} & {
|
|
36659
|
-
[key: string]: unknown;
|
|
36660
|
-
}) | ({
|
|
36661
|
-
executionId?: string;
|
|
36662
|
-
seq?: number;
|
|
36663
|
-
/** @enum {string} */
|
|
36664
|
-
type: "reason_start";
|
|
36665
|
-
} & {
|
|
36666
|
-
[key: string]: unknown;
|
|
36667
|
-
}) | ({
|
|
36668
|
-
executionId?: string;
|
|
36669
|
-
seq?: number;
|
|
36670
|
-
/** @enum {string} */
|
|
36671
|
-
type: "reason_delta";
|
|
36672
|
-
} & {
|
|
36673
|
-
[key: string]: unknown;
|
|
36674
|
-
}) | ({
|
|
36675
|
-
executionId?: string;
|
|
36676
|
-
seq?: number;
|
|
36677
|
-
/** @enum {string} */
|
|
36678
|
-
type: "reason_complete";
|
|
36679
|
-
} & {
|
|
36680
|
-
[key: string]: unknown;
|
|
36681
|
-
}) | ({
|
|
36682
|
-
executionId?: string;
|
|
36683
|
-
seq?: number;
|
|
36684
|
-
/** @enum {string} */
|
|
36685
|
-
type: "source";
|
|
36686
|
-
} & {
|
|
36687
|
-
[key: string]: unknown;
|
|
36688
|
-
}) | ({
|
|
36689
|
-
executionId?: string;
|
|
36690
|
-
seq?: number;
|
|
36691
|
-
/** @enum {string} */
|
|
36692
|
-
type: "fallback_start";
|
|
36693
|
-
} & {
|
|
36694
|
-
[key: string]: unknown;
|
|
36695
|
-
}) | ({
|
|
36696
|
-
executionId?: string;
|
|
36697
|
-
seq?: number;
|
|
36698
|
-
/** @enum {string} */
|
|
36699
|
-
type: "fallback_complete";
|
|
36700
|
-
} & {
|
|
36701
|
-
[key: string]: unknown;
|
|
36702
|
-
}) | ({
|
|
36703
|
-
executionId?: string;
|
|
36704
|
-
seq?: number;
|
|
36705
|
-
/** @enum {string} */
|
|
36706
|
-
type: "fallback_exhausted";
|
|
36707
|
-
} & {
|
|
36708
|
-
[key: string]: unknown;
|
|
36709
|
-
}) | {
|
|
36710
|
-
/** @enum {string} */
|
|
36711
|
-
artifactType: "markdown" | "component";
|
|
36712
|
-
component?: string;
|
|
36713
|
-
id: string;
|
|
36714
|
-
title?: string;
|
|
36715
|
-
/** @enum {string} */
|
|
36716
|
-
type: "artifact_start";
|
|
36717
|
-
} | {
|
|
36718
|
-
delta: string;
|
|
36719
|
-
id: string;
|
|
36720
|
-
/** @enum {string} */
|
|
36721
|
-
type: "artifact_delta";
|
|
36722
|
-
} | {
|
|
36723
|
-
component: string;
|
|
36724
|
-
id: string;
|
|
36725
|
-
props: {
|
|
36726
|
-
[key: string]: unknown;
|
|
36727
|
-
};
|
|
36728
|
-
/** @enum {string} */
|
|
36729
|
-
type: "artifact_update";
|
|
36730
|
-
} | {
|
|
36731
|
-
id: string;
|
|
36732
|
-
/** @enum {string} */
|
|
36733
|
-
type: "artifact_complete";
|
|
36734
|
-
} | ({
|
|
36735
|
-
/** @enum {string} */
|
|
36736
|
-
artifactType?: "markdown" | "component";
|
|
36737
|
-
component?: string;
|
|
36738
|
-
content?: string;
|
|
36739
|
-
id?: string;
|
|
36740
|
-
props?: {
|
|
36741
|
-
[key: string]: unknown;
|
|
36742
|
-
};
|
|
36743
|
-
title?: string;
|
|
36744
|
-
/** @enum {string} */
|
|
36745
|
-
type: "artifact";
|
|
36266
|
+
type: "fallback_exhausted";
|
|
36746
36267
|
} & {
|
|
36747
36268
|
[key: string]: unknown;
|
|
36748
36269
|
});
|
|
36749
|
-
|
|
36750
|
-
|
|
36751
|
-
|
|
36270
|
+
FlowValidationIssue: {
|
|
36271
|
+
code: string;
|
|
36272
|
+
details?: unknown;
|
|
36273
|
+
message: string;
|
|
36274
|
+
path?: string;
|
|
36275
|
+
step?: {
|
|
36276
|
+
index: number;
|
|
36752
36277
|
name: string;
|
|
36753
|
-
|
|
36754
|
-
resolvedCapabilityNames: {
|
|
36755
|
-
[key: string]: string | null;
|
|
36278
|
+
type: string;
|
|
36756
36279
|
};
|
|
36757
|
-
skill: {
|
|
36758
|
-
description: string | null;
|
|
36759
|
-
id: string;
|
|
36760
|
-
name: string;
|
|
36761
|
-
status: string;
|
|
36762
|
-
} | null;
|
|
36763
|
-
version: {
|
|
36764
|
-
id: string;
|
|
36765
|
-
manifest: {
|
|
36766
|
-
body: string;
|
|
36767
|
-
frontmatter: {
|
|
36768
|
-
[key: string]: unknown;
|
|
36769
|
-
};
|
|
36770
|
-
runtype: {
|
|
36771
|
-
[key: string]: unknown;
|
|
36772
|
-
};
|
|
36773
|
-
};
|
|
36774
|
-
versionNumber: number;
|
|
36775
|
-
} | null;
|
|
36776
36280
|
};
|
|
36777
|
-
|
|
36778
|
-
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
|
|
36786
|
-
|
|
36787
|
-
error: string;
|
|
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"][];
|
|
36788
36291
|
};
|
|
36789
|
-
|
|
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;
|
|
36302
|
+
};
|
|
36303
|
+
ProductEnsureConflict: {
|
|
36790
36304
|
/** @enum {string} */
|
|
36791
36305
|
code: "external_modification" | "remote_changed";
|
|
36792
36306
|
currentHash?: string | null;
|
|
@@ -36794,21 +36308,19 @@ interface components {
|
|
|
36794
36308
|
lastModifiedSource?: string;
|
|
36795
36309
|
modifiedAt?: string | null;
|
|
36796
36310
|
};
|
|
36797
|
-
|
|
36311
|
+
ProductEnsureHashMismatch: {
|
|
36798
36312
|
/** @enum {string} */
|
|
36799
36313
|
code: "content_hash_mismatch";
|
|
36800
36314
|
/** @description The server-computed canonical hash of the submitted definition. */
|
|
36801
36315
|
contentHash: string;
|
|
36802
36316
|
error: string;
|
|
36803
36317
|
};
|
|
36804
|
-
|
|
36318
|
+
ProductEnsureResponse: {
|
|
36805
36319
|
/** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
|
|
36806
36320
|
contentHash: string;
|
|
36807
|
-
|
|
36321
|
+
productId: string;
|
|
36808
36322
|
/** @enum {string} */
|
|
36809
36323
|
result: "unchanged" | "created" | "updated";
|
|
36810
|
-
/** @description The version snapshot backing this state (null if snapshotting failed). */
|
|
36811
|
-
versionId: string | null;
|
|
36812
36324
|
} | {
|
|
36813
36325
|
/** @enum {string} */
|
|
36814
36326
|
result: "definitionRequired";
|
|
@@ -36817,714 +36329,685 @@ interface components {
|
|
|
36817
36329
|
/** @enum {string} */
|
|
36818
36330
|
changes: "none" | "create" | "update";
|
|
36819
36331
|
contentHash: string;
|
|
36820
|
-
|
|
36332
|
+
productId?: string;
|
|
36821
36333
|
remoteHash?: string;
|
|
36822
36334
|
/** @enum {string} */
|
|
36823
36335
|
result: "plan";
|
|
36824
36336
|
};
|
|
36825
|
-
|
|
36337
|
+
ProductFpoEnsureResponse: {
|
|
36338
|
+
/** @description Server-computed canonical whole-FPO content hash. */
|
|
36826
36339
|
contentHash: string;
|
|
36827
|
-
|
|
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";
|
|
36828
36346
|
name: string;
|
|
36829
|
-
|
|
36830
|
-
|
|
36831
|
-
|
|
36832
|
-
|
|
36833
|
-
|
|
36834
|
-
|
|
36835
|
-
|
|
36836
|
-
|
|
36837
|
-
|
|
36838
|
-
|
|
36839
|
-
|
|
36840
|
-
|
|
36841
|
-
|
|
36842
|
-
updatedAt: string | null;
|
|
36843
|
-
versionId: string | null;
|
|
36844
|
-
/** @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. */
|
|
36845
|
-
warnings?: 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";
|
|
36846
36360
|
};
|
|
36847
|
-
|
|
36848
|
-
|
|
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: {
|
|
36849
36366
|
[key: string]: unknown;
|
|
36850
36367
|
};
|
|
36851
|
-
|
|
36852
|
-
|
|
36853
|
-
|
|
36854
|
-
|
|
36855
|
-
|
|
36856
|
-
|
|
36857
|
-
|
|
36858
|
-
|
|
36859
|
-
|
|
36860
|
-
|
|
36861
|
-
|
|
36368
|
+
productId: string;
|
|
36369
|
+
/** @description Reconstruction caveats (omitted entities, unrepresentable rows). */
|
|
36370
|
+
warnings?: string[];
|
|
36371
|
+
};
|
|
36372
|
+
ProductPullResponse: {
|
|
36373
|
+
contentHash: string;
|
|
36374
|
+
definition: {
|
|
36375
|
+
description?: string | null;
|
|
36376
|
+
icon?: string | null;
|
|
36377
|
+
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[];
|
|
36414
|
+
};
|
|
36415
|
+
};
|
|
36862
36416
|
};
|
|
36863
|
-
|
|
36417
|
+
lastModifiedSource: string | null;
|
|
36418
|
+
productId: string;
|
|
36419
|
+
updatedAt: string | null;
|
|
36420
|
+
};
|
|
36421
|
+
RecordFilterCondition: {
|
|
36422
|
+
field: string;
|
|
36864
36423
|
/** @enum {string} */
|
|
36865
|
-
|
|
36866
|
-
|
|
36867
|
-
|
|
36868
|
-
|
|
36869
|
-
completedSteps?: number;
|
|
36870
|
-
duration?: number;
|
|
36871
|
-
executionContext?: {
|
|
36872
|
-
[key: string]: unknown;
|
|
36873
|
-
};
|
|
36874
|
-
executionId?: string;
|
|
36875
|
-
executionTime?: number;
|
|
36876
|
-
failedSteps?: number;
|
|
36877
|
-
finalOutput?: string;
|
|
36878
|
-
flowId?: string;
|
|
36879
|
-
flowName?: string;
|
|
36880
|
-
output?: unknown;
|
|
36881
|
-
seq?: number;
|
|
36882
|
-
source?: string;
|
|
36883
|
-
success?: boolean;
|
|
36884
|
-
successfulSteps?: number;
|
|
36885
|
-
toolContext?: {
|
|
36886
|
-
executionId: string;
|
|
36887
|
-
stepId: string;
|
|
36888
|
-
toolId: string;
|
|
36889
|
-
};
|
|
36890
|
-
totalSteps?: number;
|
|
36891
|
-
totalTokensUsed?: number;
|
|
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: {
|
|
36892
36428
|
/** @enum {string} */
|
|
36893
|
-
|
|
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
|
+
versionId: string | null;
|
|
36894
36449
|
} | {
|
|
36895
|
-
code?: string;
|
|
36896
|
-
error: string | {
|
|
36897
|
-
code: string;
|
|
36898
|
-
message: string;
|
|
36899
|
-
stepId?: string;
|
|
36900
|
-
stepType?: string;
|
|
36901
|
-
};
|
|
36902
|
-
executionId?: string;
|
|
36903
|
-
executionTime?: number;
|
|
36904
|
-
flowId?: string;
|
|
36905
|
-
seq?: number;
|
|
36906
|
-
timestamp?: string;
|
|
36907
|
-
toolContext?: {
|
|
36908
|
-
executionId: string;
|
|
36909
|
-
stepId: string;
|
|
36910
|
-
toolId: string;
|
|
36911
|
-
};
|
|
36912
36450
|
/** @enum {string} */
|
|
36913
|
-
|
|
36914
|
-
upgradeUrl?: string;
|
|
36451
|
+
result: "definitionRequired";
|
|
36915
36452
|
} | {
|
|
36916
|
-
|
|
36917
|
-
executionId?: string;
|
|
36918
|
-
flowId: string;
|
|
36453
|
+
changedKeys: string[];
|
|
36919
36454
|
/** @enum {string} */
|
|
36920
|
-
|
|
36921
|
-
|
|
36922
|
-
|
|
36923
|
-
[key: string]: unknown;
|
|
36924
|
-
};
|
|
36925
|
-
seq?: number;
|
|
36926
|
-
toolCallId?: string;
|
|
36927
|
-
toolId?: string;
|
|
36928
|
-
toolName?: string;
|
|
36455
|
+
changes: "none" | "create" | "update";
|
|
36456
|
+
contentHash: string;
|
|
36457
|
+
remoteHash?: string;
|
|
36929
36458
|
/** @enum {string} */
|
|
36930
|
-
|
|
36931
|
-
|
|
36932
|
-
|
|
36933
|
-
|
|
36934
|
-
|
|
36935
|
-
|
|
36936
|
-
|
|
36937
|
-
|
|
36938
|
-
|
|
36939
|
-
|
|
36940
|
-
|
|
36941
|
-
|
|
36942
|
-
|
|
36943
|
-
|
|
36944
|
-
|
|
36945
|
-
|
|
36946
|
-
|
|
36459
|
+
result: "plan";
|
|
36460
|
+
skillId?: string;
|
|
36461
|
+
};
|
|
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;
|
|
36947
36487
|
};
|
|
36948
|
-
|
|
36488
|
+
lastModifiedSource: string | null;
|
|
36489
|
+
skillId: string;
|
|
36490
|
+
updatedAt: string | null;
|
|
36491
|
+
versionId: string | null;
|
|
36492
|
+
};
|
|
36493
|
+
SurfaceEnsureConflict: {
|
|
36949
36494
|
/** @enum {string} */
|
|
36950
|
-
|
|
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;
|
|
36951
36514
|
} | {
|
|
36952
|
-
delta?: string;
|
|
36953
|
-
executionId?: string;
|
|
36954
|
-
id?: string;
|
|
36955
|
-
messageId?: string;
|
|
36956
|
-
partId?: string;
|
|
36957
|
-
seq?: number;
|
|
36958
|
-
text?: string;
|
|
36959
|
-
toolContext?: {
|
|
36960
|
-
executionId: string;
|
|
36961
|
-
stepId: string;
|
|
36962
|
-
toolId: string;
|
|
36963
|
-
};
|
|
36964
|
-
toolId?: string;
|
|
36965
36515
|
/** @enum {string} */
|
|
36966
|
-
|
|
36516
|
+
result: "definitionRequired";
|
|
36967
36517
|
} | {
|
|
36968
|
-
|
|
36969
|
-
duration?: number;
|
|
36970
|
-
durationMs?: number;
|
|
36971
|
-
error?: string;
|
|
36972
|
-
executionId?: string;
|
|
36973
|
-
executionTime?: number;
|
|
36974
|
-
id?: string;
|
|
36975
|
-
index?: number;
|
|
36976
|
-
name?: string;
|
|
36977
|
-
output?: unknown;
|
|
36978
|
-
result?: unknown;
|
|
36979
|
-
seq?: number;
|
|
36980
|
-
stepId?: string;
|
|
36981
|
-
stepName?: string;
|
|
36982
|
-
stepType?: string;
|
|
36518
|
+
changedKeys: string[];
|
|
36983
36519
|
/** @enum {string} */
|
|
36984
|
-
|
|
36985
|
-
|
|
36986
|
-
|
|
36987
|
-
|
|
36988
|
-
|
|
36989
|
-
|
|
36990
|
-
|
|
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";
|
|
36991
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: {
|
|
36992
36564
|
/** @enum {string} */
|
|
36993
|
-
|
|
36994
|
-
|
|
36995
|
-
} | {
|
|
36565
|
+
code: "external_modification" | "remote_changed";
|
|
36566
|
+
currentHash?: string | null;
|
|
36996
36567
|
error: string;
|
|
36997
|
-
|
|
36998
|
-
|
|
36999
|
-
|
|
37000
|
-
|
|
37001
|
-
name?: string;
|
|
37002
|
-
seq?: number;
|
|
37003
|
-
stepType?: string;
|
|
36568
|
+
lastModifiedSource?: string;
|
|
36569
|
+
modifiedAt?: string | null;
|
|
36570
|
+
};
|
|
36571
|
+
ToolEnsureHashMismatch: {
|
|
37004
36572
|
/** @enum {string} */
|
|
37005
|
-
|
|
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;
|
|
37006
36584
|
} | {
|
|
37007
|
-
error?: string;
|
|
37008
|
-
executionId?: string;
|
|
37009
|
-
id: string;
|
|
37010
|
-
index?: number;
|
|
37011
|
-
name?: string;
|
|
37012
|
-
seq?: number;
|
|
37013
|
-
skippedAt: string;
|
|
37014
|
-
stepType: string;
|
|
37015
|
-
totalSteps: number;
|
|
37016
36585
|
/** @enum {string} */
|
|
37017
|
-
|
|
37018
|
-
|
|
37019
|
-
|
|
37020
|
-
executionId?: string;
|
|
37021
|
-
reason?: string;
|
|
37022
|
-
seq?: number;
|
|
36586
|
+
result: "definitionRequired";
|
|
36587
|
+
} | {
|
|
36588
|
+
changedKeys: string[];
|
|
37023
36589
|
/** @enum {string} */
|
|
37024
|
-
|
|
37025
|
-
|
|
37026
|
-
|
|
37027
|
-
|
|
37028
|
-
|
|
37029
|
-
|
|
37030
|
-
|
|
37031
|
-
|
|
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";
|
|
37032
36610
|
};
|
|
37033
|
-
|
|
37034
|
-
|
|
37035
|
-
|
|
37036
|
-
|
|
36611
|
+
lastModifiedSource: string | null;
|
|
36612
|
+
toolId: string;
|
|
36613
|
+
updatedAt: string | null;
|
|
36614
|
+
};
|
|
36615
|
+
UnifiedSSEEvent: {
|
|
36616
|
+
agentId?: string;
|
|
36617
|
+
agentName?: string;
|
|
36618
|
+
config?: {
|
|
37037
36619
|
[key: string]: unknown;
|
|
37038
36620
|
};
|
|
37039
|
-
|
|
37040
|
-
|
|
36621
|
+
executionId: string;
|
|
36622
|
+
flowId?: string;
|
|
36623
|
+
flowName?: string;
|
|
36624
|
+
/** @enum {string} */
|
|
36625
|
+
kind: "agent" | "flow";
|
|
36626
|
+
maxTurns?: number;
|
|
36627
|
+
seq: number;
|
|
36628
|
+
source?: string;
|
|
36629
|
+
startedAt: string;
|
|
36630
|
+
totalSteps?: number;
|
|
36631
|
+
/** @enum {string} */
|
|
36632
|
+
type: "execution_start";
|
|
36633
|
+
} | {
|
|
36634
|
+
completedAt?: string;
|
|
36635
|
+
durationMs?: number;
|
|
36636
|
+
executionId: string;
|
|
36637
|
+
failedSteps?: number;
|
|
36638
|
+
finalOutput?: string;
|
|
36639
|
+
iterations?: number;
|
|
36640
|
+
/** @enum {string} */
|
|
36641
|
+
kind: "agent" | "flow";
|
|
36642
|
+
seq: number;
|
|
36643
|
+
stopReason?: string;
|
|
36644
|
+
success: boolean;
|
|
36645
|
+
successfulSteps?: number;
|
|
36646
|
+
totalCost?: number;
|
|
36647
|
+
totalSteps?: number;
|
|
36648
|
+
totalTokens?: {
|
|
36649
|
+
input: number;
|
|
36650
|
+
output: number;
|
|
37041
36651
|
};
|
|
37042
|
-
seq?: number;
|
|
37043
|
-
startedAt?: string;
|
|
37044
|
-
stepId?: string;
|
|
37045
|
-
toolCallId?: string;
|
|
37046
|
-
toolId?: string;
|
|
37047
|
-
toolName?: string;
|
|
37048
36652
|
/** @enum {string} */
|
|
37049
|
-
|
|
36653
|
+
type: "execution_complete";
|
|
36654
|
+
} | {
|
|
36655
|
+
code?: string;
|
|
36656
|
+
completedAt?: string;
|
|
36657
|
+
error: string | {
|
|
36658
|
+
code: string;
|
|
36659
|
+
details?: {
|
|
36660
|
+
[key: string]: unknown;
|
|
36661
|
+
};
|
|
36662
|
+
message: string;
|
|
36663
|
+
};
|
|
36664
|
+
executionId: string;
|
|
37050
36665
|
/** @enum {string} */
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
[key: string]: unknown;
|
|
37054
|
-
}) | ({
|
|
37055
|
-
delta?: string;
|
|
37056
|
-
executionId?: string;
|
|
37057
|
-
seq?: number;
|
|
37058
|
-
toolId?: string;
|
|
36666
|
+
kind: "agent" | "flow";
|
|
36667
|
+
seq: number;
|
|
37059
36668
|
/** @enum {string} */
|
|
37060
|
-
type: "
|
|
37061
|
-
|
|
37062
|
-
|
|
37063
|
-
|
|
37064
|
-
|
|
37065
|
-
|
|
37066
|
-
seq?: number;
|
|
37067
|
-
stepId?: string;
|
|
37068
|
-
toolCallId?: string;
|
|
37069
|
-
toolId?: string;
|
|
36669
|
+
type: "execution_error";
|
|
36670
|
+
upgradeUrl?: string;
|
|
36671
|
+
} | {
|
|
36672
|
+
executionId: string;
|
|
36673
|
+
id: string;
|
|
36674
|
+
iteration?: number;
|
|
37070
36675
|
/** @enum {string} */
|
|
37071
|
-
|
|
36676
|
+
role: "user" | "assistant" | "system";
|
|
36677
|
+
seq: number;
|
|
36678
|
+
turnIndex?: number;
|
|
36679
|
+
/** @enum {string} */
|
|
36680
|
+
type: "turn_start";
|
|
37072
36681
|
} | {
|
|
37073
|
-
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
|
|
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;
|
|
37077
36699
|
};
|
|
37078
|
-
|
|
37079
|
-
|
|
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;
|
|
37080
36710
|
};
|
|
37081
|
-
seq?: number;
|
|
37082
|
-
stepId?: string;
|
|
37083
|
-
toolCallId?: string;
|
|
37084
|
-
toolId?: string;
|
|
37085
|
-
toolName?: string;
|
|
37086
36711
|
/** @enum {string} */
|
|
37087
|
-
type: "
|
|
36712
|
+
type: "turn_complete";
|
|
36713
|
+
} | {
|
|
36714
|
+
executionId: string;
|
|
36715
|
+
id: string;
|
|
36716
|
+
index?: number;
|
|
36717
|
+
name?: string;
|
|
36718
|
+
outputVariable?: string;
|
|
36719
|
+
seq: number;
|
|
36720
|
+
startedAt?: string;
|
|
36721
|
+
stepType?: string;
|
|
36722
|
+
totalSteps?: number;
|
|
36723
|
+
/** @enum {string} */
|
|
36724
|
+
type: "step_start";
|
|
37088
36725
|
} | {
|
|
37089
|
-
agentContext?: {
|
|
37090
|
-
executionId: string;
|
|
37091
|
-
iteration: number;
|
|
37092
|
-
seq: number;
|
|
37093
|
-
};
|
|
37094
36726
|
completedAt?: string;
|
|
36727
|
+
durationMs?: number;
|
|
37095
36728
|
error?: string;
|
|
37096
|
-
executionId
|
|
37097
|
-
|
|
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;
|
|
37098
36745
|
name?: string;
|
|
37099
36746
|
result?: unknown;
|
|
37100
|
-
seq
|
|
37101
|
-
|
|
37102
|
-
success: boolean;
|
|
37103
|
-
toolCallId?: string;
|
|
37104
|
-
toolCost?: number;
|
|
37105
|
-
toolId?: string;
|
|
37106
|
-
toolName?: string;
|
|
36747
|
+
seq: number;
|
|
36748
|
+
stepType?: string;
|
|
37107
36749
|
/** @enum {string} */
|
|
37108
|
-
|
|
36750
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
36751
|
+
success?: boolean;
|
|
36752
|
+
/** @enum {string} */
|
|
36753
|
+
type: "step_complete";
|
|
36754
|
+
unresolvedVariables?: string[];
|
|
37109
36755
|
} | {
|
|
37110
|
-
|
|
37111
|
-
|
|
37112
|
-
|
|
37113
|
-
|
|
37114
|
-
|
|
37115
|
-
|
|
37116
|
-
|
|
37117
|
-
|
|
37118
|
-
failedAt?: string;
|
|
37119
|
-
name: string;
|
|
37120
|
-
seq?: number;
|
|
37121
|
-
toolId: string;
|
|
36756
|
+
executionId: string;
|
|
36757
|
+
id: string;
|
|
36758
|
+
index?: number;
|
|
36759
|
+
name?: string;
|
|
36760
|
+
seq: number;
|
|
36761
|
+
skippedAt?: string;
|
|
36762
|
+
stepType?: string;
|
|
36763
|
+
totalSteps?: number;
|
|
37122
36764
|
/** @enum {string} */
|
|
37123
|
-
type: "
|
|
36765
|
+
type: "step_skip";
|
|
36766
|
+
when?: string;
|
|
37124
36767
|
} | {
|
|
37125
|
-
executionId
|
|
36768
|
+
executionId: string;
|
|
37126
36769
|
id: string;
|
|
37127
|
-
seq?: number;
|
|
37128
|
-
text: string;
|
|
37129
36770
|
/** @enum {string} */
|
|
37130
|
-
|
|
37131
|
-
|
|
37132
|
-
|
|
37133
|
-
|
|
36771
|
+
role?: "user" | "assistant" | "system";
|
|
36772
|
+
seq: number;
|
|
36773
|
+
stepId?: string;
|
|
36774
|
+
turnId?: string;
|
|
37134
36775
|
/** @enum {string} */
|
|
37135
36776
|
type: "text_start";
|
|
37136
|
-
}
|
|
37137
|
-
|
|
37138
|
-
|
|
37139
|
-
|
|
37140
|
-
seq
|
|
36777
|
+
} | {
|
|
36778
|
+
delta: string;
|
|
36779
|
+
executionId: string;
|
|
36780
|
+
id: string;
|
|
36781
|
+
seq: number;
|
|
37141
36782
|
/** @enum {string} */
|
|
37142
|
-
type: "
|
|
37143
|
-
}
|
|
37144
|
-
|
|
37145
|
-
|
|
37146
|
-
|
|
37147
|
-
|
|
36783
|
+
type: "text_delta";
|
|
36784
|
+
} | {
|
|
36785
|
+
executionId: string;
|
|
36786
|
+
id: string;
|
|
36787
|
+
seq: number;
|
|
36788
|
+
text?: string;
|
|
37148
36789
|
/** @enum {string} */
|
|
37149
|
-
type: "
|
|
37150
|
-
}
|
|
37151
|
-
|
|
37152
|
-
|
|
37153
|
-
executionId?: string;
|
|
37154
|
-
seq?: number;
|
|
36790
|
+
type: "text_complete";
|
|
36791
|
+
} | {
|
|
36792
|
+
executionId: string;
|
|
36793
|
+
id: string;
|
|
37155
36794
|
/** @enum {string} */
|
|
37156
|
-
|
|
37157
|
-
|
|
37158
|
-
[key: string]: unknown;
|
|
37159
|
-
}) | ({
|
|
37160
|
-
executionId?: string;
|
|
37161
|
-
seq?: number;
|
|
36795
|
+
scope?: "turn" | "loop";
|
|
36796
|
+
seq: number;
|
|
37162
36797
|
/** @enum {string} */
|
|
37163
|
-
type: "
|
|
37164
|
-
}
|
|
37165
|
-
|
|
37166
|
-
|
|
37167
|
-
|
|
37168
|
-
seq
|
|
36798
|
+
type: "reasoning_start";
|
|
36799
|
+
} | {
|
|
36800
|
+
delta: string;
|
|
36801
|
+
executionId: string;
|
|
36802
|
+
id: string;
|
|
36803
|
+
seq: number;
|
|
37169
36804
|
/** @enum {string} */
|
|
37170
|
-
type: "
|
|
37171
|
-
}
|
|
37172
|
-
|
|
37173
|
-
|
|
37174
|
-
executionId?: string;
|
|
37175
|
-
seq?: number;
|
|
36805
|
+
type: "reasoning_delta";
|
|
36806
|
+
} | {
|
|
36807
|
+
executionId: string;
|
|
36808
|
+
id: string;
|
|
37176
36809
|
/** @enum {string} */
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
|
|
37180
|
-
}) | ({
|
|
37181
|
-
executionId?: string;
|
|
37182
|
-
seq?: number;
|
|
36810
|
+
scope?: "turn" | "loop";
|
|
36811
|
+
seq: number;
|
|
36812
|
+
text?: string;
|
|
37183
36813
|
/** @enum {string} */
|
|
37184
|
-
type: "
|
|
37185
|
-
}
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
|
|
37189
|
-
seq?: number;
|
|
36814
|
+
type: "reasoning_complete";
|
|
36815
|
+
} | {
|
|
36816
|
+
executionId: string;
|
|
36817
|
+
id: string;
|
|
36818
|
+
mediaType: string;
|
|
37190
36819
|
/** @enum {string} */
|
|
37191
|
-
|
|
37192
|
-
|
|
37193
|
-
|
|
37194
|
-
});
|
|
37195
|
-
FlowValidationIssue: {
|
|
37196
|
-
code: string;
|
|
37197
|
-
details?: unknown;
|
|
37198
|
-
message: string;
|
|
37199
|
-
path?: string;
|
|
37200
|
-
step?: {
|
|
37201
|
-
index: number;
|
|
37202
|
-
name: string;
|
|
37203
|
-
type: string;
|
|
37204
|
-
};
|
|
37205
|
-
};
|
|
37206
|
-
FlowValidationResult: {
|
|
37207
|
-
context: {
|
|
37208
|
-
accountChecksPerformed: boolean;
|
|
37209
|
-
accountChecksSkipped: boolean;
|
|
37210
|
-
authenticated: boolean;
|
|
37211
|
-
};
|
|
37212
|
-
errors: components["schemas"]["FlowValidationIssue"][];
|
|
37213
|
-
recommendations: components["schemas"]["FlowValidationIssue"][];
|
|
37214
|
-
valid: boolean;
|
|
37215
|
-
warnings: components["schemas"]["FlowValidationIssue"][];
|
|
37216
|
-
};
|
|
37217
|
-
Pagination: {
|
|
37218
|
-
currentOffset: number;
|
|
37219
|
-
currentPage?: number;
|
|
37220
|
-
hasMore: boolean;
|
|
37221
|
-
hasPrev: boolean;
|
|
37222
|
-
limit: number;
|
|
37223
|
-
nextCursor: string | null;
|
|
37224
|
-
prevCursor: string | null;
|
|
37225
|
-
totalCount?: number;
|
|
37226
|
-
totalPages?: number;
|
|
37227
|
-
};
|
|
37228
|
-
ProductEnsureConflict: {
|
|
36820
|
+
role?: "user" | "assistant" | "system";
|
|
36821
|
+
seq: number;
|
|
36822
|
+
toolCallId?: string;
|
|
37229
36823
|
/** @enum {string} */
|
|
37230
|
-
|
|
37231
|
-
|
|
37232
|
-
|
|
37233
|
-
|
|
37234
|
-
|
|
37235
|
-
|
|
37236
|
-
ProductEnsureHashMismatch: {
|
|
36824
|
+
type: "media_start";
|
|
36825
|
+
} | {
|
|
36826
|
+
delta: string;
|
|
36827
|
+
executionId: string;
|
|
36828
|
+
id: string;
|
|
36829
|
+
seq: number;
|
|
37237
36830
|
/** @enum {string} */
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37246
|
-
|
|
36831
|
+
type: "media_delta";
|
|
36832
|
+
} | {
|
|
36833
|
+
data?: string;
|
|
36834
|
+
executionId: string;
|
|
36835
|
+
id: string;
|
|
36836
|
+
mediaType?: string;
|
|
36837
|
+
seq: number;
|
|
36838
|
+
toolCallId?: string;
|
|
36839
|
+
/** @enum {string} */
|
|
36840
|
+
type: "media_complete";
|
|
36841
|
+
url?: string;
|
|
36842
|
+
} | {
|
|
36843
|
+
/** @enum {string} */
|
|
36844
|
+
artifactType: "markdown" | "component";
|
|
36845
|
+
component?: string;
|
|
36846
|
+
executionId?: string;
|
|
36847
|
+
id: string;
|
|
36848
|
+
seq?: number;
|
|
36849
|
+
title?: string;
|
|
37247
36850
|
/** @enum {string} */
|
|
37248
|
-
|
|
36851
|
+
type: "artifact_start";
|
|
37249
36852
|
} | {
|
|
36853
|
+
delta: string;
|
|
36854
|
+
executionId?: string;
|
|
36855
|
+
id: string;
|
|
36856
|
+
seq?: number;
|
|
37250
36857
|
/** @enum {string} */
|
|
37251
|
-
|
|
36858
|
+
type: "artifact_delta";
|
|
37252
36859
|
} | {
|
|
37253
|
-
|
|
37254
|
-
|
|
37255
|
-
|
|
37256
|
-
|
|
37257
|
-
|
|
37258
|
-
remoteHash?: string;
|
|
37259
|
-
/** @enum {string} */
|
|
37260
|
-
result: "plan";
|
|
37261
|
-
};
|
|
37262
|
-
ProductFpoEnsureResponse: {
|
|
37263
|
-
/** @description Server-computed canonical whole-FPO content hash. */
|
|
37264
|
-
contentHash: string;
|
|
37265
|
-
entities: {
|
|
37266
|
-
error?: string;
|
|
37267
|
-
/** @description Resulting platform id (absent on failure/skip). */
|
|
37268
|
-
id?: string;
|
|
37269
|
-
/** @enum {string} */
|
|
37270
|
-
kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
|
|
37271
|
-
name: string;
|
|
37272
|
-
/** @description The FPO-local ref (capability id / entity name) for correlation. */
|
|
37273
|
-
ref: string;
|
|
37274
|
-
/** @enum {string} */
|
|
37275
|
-
result: "created" | "updated" | "unchanged" | "failed" | "skipped";
|
|
37276
|
-
}[];
|
|
37277
|
-
/** @description True when one or more entities failed to converge (re-run to self-heal). */
|
|
37278
|
-
hasFailures: boolean;
|
|
37279
|
-
productId?: string;
|
|
37280
|
-
/**
|
|
37281
|
-
* @description `unchanged` when every entity was unchanged, `converged` when at least one was created/updated, `plan` for dryRun.
|
|
37282
|
-
* @enum {string}
|
|
37283
|
-
*/
|
|
37284
|
-
result: "unchanged" | "converged" | "plan";
|
|
37285
|
-
};
|
|
37286
|
-
ProductPullResponse: {
|
|
37287
|
-
contentHash: string;
|
|
37288
|
-
definition: {
|
|
37289
|
-
description?: string | null;
|
|
37290
|
-
icon?: string | null;
|
|
37291
|
-
name: string;
|
|
37292
|
-
spec?: {
|
|
37293
|
-
aiUseCases?: string[];
|
|
37294
|
-
complianceNeeds?: string[];
|
|
37295
|
-
dataSourceTypes?: string[];
|
|
37296
|
-
deploymentTargets?: string[];
|
|
37297
|
-
existingTools?: string[];
|
|
37298
|
-
importedFrom?: {
|
|
37299
|
-
importedAt: string;
|
|
37300
|
-
/** @enum {string} */
|
|
37301
|
-
source: "github" | "linear" | "chatprd" | "manual";
|
|
37302
|
-
sourceId?: string;
|
|
37303
|
-
syncEnabled?: boolean;
|
|
37304
|
-
};
|
|
37305
|
-
internalDocs?: {
|
|
37306
|
-
content?: string;
|
|
37307
|
-
resources?: {
|
|
37308
|
-
content?: string;
|
|
37309
|
-
title: string;
|
|
37310
|
-
type: string;
|
|
37311
|
-
url?: string;
|
|
37312
|
-
}[];
|
|
37313
|
-
tags?: string[];
|
|
37314
|
-
} | null;
|
|
37315
|
-
/** @enum {string} */
|
|
37316
|
-
loggingPolicy?: "default" | "on" | "off";
|
|
37317
|
-
preferredModels?: string[];
|
|
37318
|
-
productGoal?: string;
|
|
37319
|
-
/** @enum {string} */
|
|
37320
|
-
productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
|
|
37321
|
-
targetAudience?: string;
|
|
37322
|
-
techStack?: {
|
|
37323
|
-
backend?: string[];
|
|
37324
|
-
database?: string[];
|
|
37325
|
-
frontend?: string[];
|
|
37326
|
-
infrastructure?: string[];
|
|
37327
|
-
languages?: string[];
|
|
37328
|
-
};
|
|
37329
|
-
};
|
|
36860
|
+
component: string;
|
|
36861
|
+
executionId?: string;
|
|
36862
|
+
id: string;
|
|
36863
|
+
props: {
|
|
36864
|
+
[key: string]: unknown;
|
|
37330
36865
|
};
|
|
37331
|
-
|
|
37332
|
-
productId: string;
|
|
37333
|
-
updatedAt: string | null;
|
|
37334
|
-
};
|
|
37335
|
-
RecordFilterCondition: {
|
|
37336
|
-
field: string;
|
|
36866
|
+
seq?: number;
|
|
37337
36867
|
/** @enum {string} */
|
|
37338
|
-
|
|
37339
|
-
|
|
37340
|
-
|
|
37341
|
-
|
|
36868
|
+
type: "artifact_update";
|
|
36869
|
+
} | {
|
|
36870
|
+
executionId?: string;
|
|
36871
|
+
id: string;
|
|
36872
|
+
seq?: number;
|
|
37342
36873
|
/** @enum {string} */
|
|
37343
|
-
|
|
37344
|
-
|
|
37345
|
-
|
|
37346
|
-
|
|
37347
|
-
|
|
37348
|
-
|
|
37349
|
-
|
|
36874
|
+
type: "artifact_complete";
|
|
36875
|
+
} | ({
|
|
36876
|
+
executionId: string;
|
|
36877
|
+
id?: string;
|
|
36878
|
+
seq: number;
|
|
36879
|
+
sourceType?: string;
|
|
36880
|
+
title?: string;
|
|
37350
36881
|
/** @enum {string} */
|
|
37351
|
-
|
|
37352
|
-
|
|
37353
|
-
|
|
37354
|
-
|
|
37355
|
-
}
|
|
37356
|
-
|
|
37357
|
-
|
|
37358
|
-
|
|
36882
|
+
type: "source";
|
|
36883
|
+
url?: string;
|
|
36884
|
+
} & {
|
|
36885
|
+
[key: string]: unknown;
|
|
36886
|
+
}) | {
|
|
36887
|
+
executionId: string;
|
|
36888
|
+
hiddenParameterNames?: string[];
|
|
36889
|
+
iteration?: number;
|
|
37359
36890
|
/** @enum {string} */
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
36891
|
+
origin?: "webmcp" | "sdk";
|
|
36892
|
+
pageOrigin?: string;
|
|
36893
|
+
parameters?: {
|
|
36894
|
+
[key: string]: unknown;
|
|
36895
|
+
};
|
|
36896
|
+
seq: number;
|
|
36897
|
+
startedAt?: string;
|
|
36898
|
+
stepId?: string;
|
|
36899
|
+
toolCallId: string;
|
|
36900
|
+
toolName: string;
|
|
36901
|
+
toolType: string;
|
|
37364
36902
|
/** @enum {string} */
|
|
37365
|
-
|
|
36903
|
+
type: "tool_start";
|
|
37366
36904
|
} | {
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
remoteHash?: string;
|
|
37372
|
-
/** @enum {string} */
|
|
37373
|
-
result: "plan";
|
|
37374
|
-
skillId?: string;
|
|
37375
|
-
};
|
|
37376
|
-
SkillEnsureUnprocessable: components["schemas"]["SkillEnsureHashMismatch"] | components["schemas"]["SkillEnsureUnsupportedCapability"];
|
|
37377
|
-
SkillEnsureUnsupportedCapability: {
|
|
36905
|
+
delta: string;
|
|
36906
|
+
executionId: string;
|
|
36907
|
+
seq: number;
|
|
36908
|
+
toolCallId: string;
|
|
37378
36909
|
/** @enum {string} */
|
|
37379
|
-
|
|
37380
|
-
|
|
37381
|
-
|
|
37382
|
-
|
|
37383
|
-
|
|
37384
|
-
|
|
37385
|
-
organizationId: string | null;
|
|
37386
|
-
proposingAgentExecutionId: string | null;
|
|
37387
|
-
proposingUserId: string;
|
|
37388
|
-
rejectionReason: string | null;
|
|
37389
|
-
reviewedAt: string | null;
|
|
37390
|
-
reviewedBy: string | null;
|
|
37391
|
-
skillVersionId: string;
|
|
37392
|
-
status: string;
|
|
37393
|
-
};
|
|
37394
|
-
SkillPullResponse: {
|
|
37395
|
-
contentHash: string;
|
|
37396
|
-
definition: {
|
|
37397
|
-
manifest: {
|
|
37398
|
-
[key: string]: unknown;
|
|
37399
|
-
};
|
|
37400
|
-
name: string;
|
|
36910
|
+
type: "tool_input_delta";
|
|
36911
|
+
} | {
|
|
36912
|
+
executionId: string;
|
|
36913
|
+
hiddenParameterNames?: string[];
|
|
36914
|
+
parameters: {
|
|
36915
|
+
[key: string]: unknown;
|
|
37401
36916
|
};
|
|
37402
|
-
|
|
37403
|
-
|
|
37404
|
-
|
|
37405
|
-
versionId: string | null;
|
|
37406
|
-
};
|
|
37407
|
-
SurfaceEnsureConflict: {
|
|
36917
|
+
seq: number;
|
|
36918
|
+
toolCallId: string;
|
|
36919
|
+
toolName?: string;
|
|
37408
36920
|
/** @enum {string} */
|
|
37409
|
-
|
|
37410
|
-
|
|
37411
|
-
|
|
37412
|
-
|
|
37413
|
-
|
|
37414
|
-
|
|
37415
|
-
SurfaceEnsureHashMismatch: {
|
|
36921
|
+
type: "tool_input_complete";
|
|
36922
|
+
} | {
|
|
36923
|
+
delta: string;
|
|
36924
|
+
executionId: string;
|
|
36925
|
+
seq: number;
|
|
36926
|
+
toolCallId: string;
|
|
37416
36927
|
/** @enum {string} */
|
|
37417
|
-
|
|
37418
|
-
|
|
37419
|
-
|
|
37420
|
-
|
|
37421
|
-
|
|
37422
|
-
|
|
37423
|
-
|
|
37424
|
-
|
|
36928
|
+
type: "tool_output_delta";
|
|
36929
|
+
} | {
|
|
36930
|
+
error?: string;
|
|
36931
|
+
executionId: string;
|
|
36932
|
+
executionTime?: number;
|
|
36933
|
+
iteration?: number;
|
|
36934
|
+
result?: unknown;
|
|
36935
|
+
seq: number;
|
|
36936
|
+
stepId?: string;
|
|
36937
|
+
success: boolean;
|
|
36938
|
+
toolCallId: string;
|
|
36939
|
+
toolName?: string;
|
|
37425
36940
|
/** @enum {string} */
|
|
37426
|
-
|
|
37427
|
-
|
|
36941
|
+
type: "tool_complete";
|
|
36942
|
+
} | {
|
|
36943
|
+
approvalId: string;
|
|
36944
|
+
description?: string;
|
|
36945
|
+
executionId: string;
|
|
36946
|
+
iteration?: number;
|
|
36947
|
+
parameters?: {
|
|
36948
|
+
[key: string]: unknown;
|
|
36949
|
+
};
|
|
36950
|
+
reason?: string;
|
|
36951
|
+
seq: number;
|
|
36952
|
+
startedAt?: string;
|
|
36953
|
+
timeout?: number;
|
|
36954
|
+
toolCallId?: string;
|
|
36955
|
+
toolName: string;
|
|
36956
|
+
toolType?: string;
|
|
36957
|
+
/** @enum {string} */
|
|
36958
|
+
type: "approval_start";
|
|
37428
36959
|
} | {
|
|
36960
|
+
approvalId: string;
|
|
36961
|
+
completedAt?: string;
|
|
37429
36962
|
/** @enum {string} */
|
|
37430
|
-
|
|
36963
|
+
decision: "approved" | "denied" | "timeout";
|
|
36964
|
+
executionId: string;
|
|
36965
|
+
/** @enum {string} */
|
|
36966
|
+
resolvedBy?: "user" | "system";
|
|
36967
|
+
seq: number;
|
|
36968
|
+
/** @enum {string} */
|
|
36969
|
+
type: "approval_complete";
|
|
37431
36970
|
} | {
|
|
37432
|
-
|
|
36971
|
+
awaitedAt?: string;
|
|
36972
|
+
executionId: string;
|
|
37433
36973
|
/** @enum {string} */
|
|
37434
|
-
|
|
37435
|
-
|
|
37436
|
-
|
|
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;
|
|
37437
36983
|
/** @enum {string} */
|
|
37438
|
-
|
|
37439
|
-
|
|
37440
|
-
|
|
37441
|
-
|
|
37442
|
-
|
|
37443
|
-
definition: {
|
|
37444
|
-
behavior?: {
|
|
37445
|
-
[key: string]: unknown;
|
|
37446
|
-
};
|
|
37447
|
-
/** @enum {string} */
|
|
37448
|
-
environment?: "production" | "development";
|
|
37449
|
-
inbound?: {
|
|
37450
|
-
[key: string]: unknown;
|
|
37451
|
-
};
|
|
37452
|
-
name: string;
|
|
37453
|
-
outbound?: {
|
|
36984
|
+
type: "await";
|
|
36985
|
+
} | {
|
|
36986
|
+
error: string | {
|
|
36987
|
+
code: string;
|
|
36988
|
+
details?: {
|
|
37454
36989
|
[key: string]: unknown;
|
|
37455
36990
|
};
|
|
37456
|
-
|
|
37457
|
-
status?: "draft" | "active" | "paused";
|
|
37458
|
-
/** @enum {string} */
|
|
37459
|
-
type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page" | "chrome_extension";
|
|
36991
|
+
message: string;
|
|
37460
36992
|
};
|
|
37461
|
-
|
|
37462
|
-
|
|
37463
|
-
|
|
37464
|
-
};
|
|
37465
|
-
ToolApprovalGrant: {
|
|
37466
|
-
agentId: string;
|
|
37467
|
-
createdAt: string;
|
|
37468
|
-
decision: string;
|
|
37469
|
-
endUserRef: string | null;
|
|
37470
|
-
expiresAt: string | null;
|
|
37471
|
-
id: string;
|
|
37472
|
-
sourceApprovalId: string | null;
|
|
37473
|
-
sourceExecutionId: string | null;
|
|
37474
|
-
toolName: string;
|
|
37475
|
-
toolType: string;
|
|
37476
|
-
};
|
|
37477
|
-
ToolEnsureConflict: {
|
|
37478
|
-
/** @enum {string} */
|
|
37479
|
-
code: "external_modification" | "remote_changed";
|
|
37480
|
-
currentHash?: string | null;
|
|
37481
|
-
error: string;
|
|
37482
|
-
lastModifiedSource?: string;
|
|
37483
|
-
modifiedAt?: string | null;
|
|
37484
|
-
};
|
|
37485
|
-
ToolEnsureHashMismatch: {
|
|
37486
|
-
/** @enum {string} */
|
|
37487
|
-
code: "content_hash_mismatch";
|
|
37488
|
-
/** @description The server-computed canonical hash of the submitted definition. */
|
|
37489
|
-
contentHash: string;
|
|
37490
|
-
error: string;
|
|
37491
|
-
};
|
|
37492
|
-
ToolEnsureResponse: {
|
|
37493
|
-
/** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
|
|
37494
|
-
contentHash: string;
|
|
36993
|
+
executionId: string;
|
|
36994
|
+
recoverable?: boolean;
|
|
36995
|
+
seq: number;
|
|
37495
36996
|
/** @enum {string} */
|
|
37496
|
-
|
|
37497
|
-
toolId: string;
|
|
36997
|
+
type: "error";
|
|
37498
36998
|
} | {
|
|
36999
|
+
executionId: string;
|
|
37000
|
+
seq: number;
|
|
37001
|
+
timestamp: string;
|
|
37499
37002
|
/** @enum {string} */
|
|
37500
|
-
|
|
37003
|
+
type: "ping";
|
|
37501
37004
|
} | {
|
|
37502
|
-
|
|
37503
|
-
|
|
37504
|
-
|
|
37505
|
-
contentHash: string;
|
|
37506
|
-
remoteHash?: string;
|
|
37005
|
+
executionId?: string;
|
|
37006
|
+
name: string;
|
|
37007
|
+
seq?: number;
|
|
37507
37008
|
/** @enum {string} */
|
|
37508
|
-
|
|
37509
|
-
|
|
37510
|
-
};
|
|
37511
|
-
ToolPullResponse: {
|
|
37512
|
-
contentHash: string;
|
|
37513
|
-
definition: {
|
|
37514
|
-
config: {
|
|
37515
|
-
[key: string]: unknown;
|
|
37516
|
-
};
|
|
37517
|
-
description: string;
|
|
37518
|
-
name: string;
|
|
37519
|
-
parametersSchema: {
|
|
37520
|
-
[key: string]: unknown;
|
|
37521
|
-
};
|
|
37522
|
-
/** @enum {string} */
|
|
37523
|
-
toolType: "flow" | "custom" | "external" | "graphql" | "mcp" | "local" | "subagent";
|
|
37524
|
-
};
|
|
37525
|
-
lastModifiedSource: string | null;
|
|
37526
|
-
toolId: string;
|
|
37527
|
-
updatedAt: string | null;
|
|
37009
|
+
type: "custom";
|
|
37010
|
+
value?: unknown;
|
|
37528
37011
|
};
|
|
37529
37012
|
UpdateUserProfileResponse: {
|
|
37530
37013
|
email?: string;
|
|
@@ -37621,12 +37104,26 @@ interface components {
|
|
|
37621
37104
|
* alias below is the REFERENCE PATTERN the entity-codegen workflow clones.
|
|
37622
37105
|
*/
|
|
37623
37106
|
|
|
37624
|
-
/**
|
|
37625
|
-
|
|
37626
|
-
|
|
37107
|
+
/**
|
|
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.
|
|
37110
|
+
*/
|
|
37111
|
+
type UnifiedStreamEvent = components['schemas']['UnifiedSSEEvent'];
|
|
37112
|
+
/**
|
|
37113
|
+
* @deprecated The dispatch stream now emits the unified vocabulary; this is an
|
|
37114
|
+
* alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
|
|
37115
|
+
*/
|
|
37116
|
+
type DispatchEvent = components['schemas']['UnifiedSSEEvent'];
|
|
37117
|
+
/**
|
|
37118
|
+
* Legacy flow-execution event union. Retained for the eval stream
|
|
37119
|
+
* (`/v1/eval/stream`), which still emits the legacy vocabulary.
|
|
37120
|
+
*/
|
|
37627
37121
|
type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
|
|
37628
|
-
/**
|
|
37629
|
-
|
|
37122
|
+
/**
|
|
37123
|
+
* @deprecated The agent stream now emits the unified vocabulary; this is an
|
|
37124
|
+
* alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
|
|
37125
|
+
*/
|
|
37126
|
+
type AgentStreamEvent = components['schemas']['UnifiedSSEEvent'];
|
|
37630
37127
|
/**
|
|
37631
37128
|
* Narrow a stream union to one event by its `type` discriminant.
|
|
37632
37129
|
* @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
|
|
@@ -37635,6 +37132,83 @@ type StreamEventOf<U, T extends string> = Extract<U, {
|
|
|
37635
37132
|
type: T;
|
|
37636
37133
|
}>;
|
|
37637
37134
|
|
|
37135
|
+
/**
|
|
37136
|
+
* SSE Stream Utilities for FlowBuilder
|
|
37137
|
+
*
|
|
37138
|
+
* Provides utilities for parsing Server-Sent Events (SSE) streams
|
|
37139
|
+
* from the Runtype API dispatch endpoint.
|
|
37140
|
+
*/
|
|
37141
|
+
|
|
37142
|
+
/**
|
|
37143
|
+
* Options for the flow stream consumers.
|
|
37144
|
+
*
|
|
37145
|
+
* `unified` controls translation of the SSE branch from the unified 33-event
|
|
37146
|
+
* wire vocabulary back to the legacy flow event shapes:
|
|
37147
|
+
* - `undefined` (default): AUTO-DETECT — translate iff the stream is detected
|
|
37148
|
+
* as unified (an execution stream always leads with `execution_start`).
|
|
37149
|
+
* This makes the public `streamEvents(response)` / `processStream(response,
|
|
37150
|
+
* cb)` pattern correct on a `dispatch()` response without the caller knowing
|
|
37151
|
+
* the wire format, and keeps a still-legacy stream (`/prompts/{id}/run`,
|
|
37152
|
+
* eval) flowing through untouched.
|
|
37153
|
+
* - `true`: force translation (internal callers that KNOW the route is unified).
|
|
37154
|
+
* - `false`: force legacy passthrough (never translate).
|
|
37155
|
+
* The non-streaming JSON branch always stays legacy — the api only translates
|
|
37156
|
+
* the SSE writer, never the JSON `events` array.
|
|
37157
|
+
*/
|
|
37158
|
+
interface StreamConsumeOptions {
|
|
37159
|
+
unified?: boolean;
|
|
37160
|
+
}
|
|
37161
|
+
/**
|
|
37162
|
+
* Parse SSE stream chunks into individual events
|
|
37163
|
+
*
|
|
37164
|
+
* @param chunk - New chunk from the stream
|
|
37165
|
+
* @param buffer - Previous incomplete buffer
|
|
37166
|
+
* @returns Parsed events and remaining buffer
|
|
37167
|
+
*/
|
|
37168
|
+
declare function parseSSEChunk(chunk: string, buffer: string): {
|
|
37169
|
+
events: string[];
|
|
37170
|
+
remainingBuffer: string;
|
|
37171
|
+
};
|
|
37172
|
+
/**
|
|
37173
|
+
* Parse final buffer if it contains a complete event
|
|
37174
|
+
*
|
|
37175
|
+
* @param buffer - Remaining buffer after stream ends
|
|
37176
|
+
* @returns Parsed event JSON string or null
|
|
37177
|
+
*/
|
|
37178
|
+
declare function parseFinalBuffer(buffer: string): string | null;
|
|
37179
|
+
/**
|
|
37180
|
+
* Process a streaming response with callbacks
|
|
37181
|
+
*
|
|
37182
|
+
* @param response - Fetch Response object with streaming body
|
|
37183
|
+
* @param callbacks - Callbacks for different event types
|
|
37184
|
+
* @returns Promise resolving to FlowSummary when complete
|
|
37185
|
+
*
|
|
37186
|
+
* @example
|
|
37187
|
+
* ```typescript
|
|
37188
|
+
* const response = await client.dispatch(config)
|
|
37189
|
+
* const summary = await processStream(response, {
|
|
37190
|
+
* onStepDelta: (chunk) => process.stdout.write(chunk),
|
|
37191
|
+
* onFlowComplete: (event) => console.log('Done!'),
|
|
37192
|
+
* })
|
|
37193
|
+
* ```
|
|
37194
|
+
*/
|
|
37195
|
+
declare function processStream(response: Response, callbacks?: StreamCallbacks, options?: StreamConsumeOptions): Promise<FlowSummary>;
|
|
37196
|
+
/**
|
|
37197
|
+
* Create an async iterator over SSE events
|
|
37198
|
+
*
|
|
37199
|
+
* @param response - Fetch Response object with streaming body
|
|
37200
|
+
* @yields Parsed SSE events
|
|
37201
|
+
*
|
|
37202
|
+
* @example
|
|
37203
|
+
* ```typescript
|
|
37204
|
+
* const response = await client.dispatch(config)
|
|
37205
|
+
* for await (const event of streamEvents(response)) {
|
|
37206
|
+
* console.log(event.type, event)
|
|
37207
|
+
* }
|
|
37208
|
+
* ```
|
|
37209
|
+
*/
|
|
37210
|
+
declare function streamEvents(response: Response, options?: StreamConsumeOptions): AsyncGenerator<StreamEvent>;
|
|
37211
|
+
|
|
37638
37212
|
/**
|
|
37639
37213
|
* FlowResult - Wrapper for streaming flow execution responses
|
|
37640
37214
|
*
|
|
@@ -37671,7 +37245,13 @@ declare class FlowResult {
|
|
|
37671
37245
|
private response;
|
|
37672
37246
|
private consumed;
|
|
37673
37247
|
private cachedSummary;
|
|
37674
|
-
|
|
37248
|
+
private streamOptions;
|
|
37249
|
+
/**
|
|
37250
|
+
* @param options.unified - The response is a unified-vocabulary SSE stream
|
|
37251
|
+
* (`/dispatch` since the unified-SSE cutover). Set by dispatch call sites;
|
|
37252
|
+
* left unset by still-legacy producers (`/prompts/{id}/run`, eval stream).
|
|
37253
|
+
*/
|
|
37254
|
+
constructor(response: Response, summary?: FlowSummary, options?: StreamConsumeOptions);
|
|
37675
37255
|
/**
|
|
37676
37256
|
* Get the raw Response object for manual handling
|
|
37677
37257
|
*
|
|
@@ -42155,13 +41735,21 @@ interface EnsureFpoOptions {
|
|
|
42155
41735
|
dryRun?: boolean;
|
|
42156
41736
|
/** Per nested entity: "overwrite" converges over dashboard/API edits. */
|
|
42157
41737
|
onConflict?: 'error' | 'overwrite';
|
|
41738
|
+
/**
|
|
41739
|
+
* Opt-in removal of product-scoped capabilities/surfaces (and their items)
|
|
41740
|
+
* absent from the FPO, after the converge passes. Account-scoped
|
|
41741
|
+
* flows/agents/tools/records are never removed; `createPolicy: 'skip'`
|
|
41742
|
+
* entities are kept. With `dryRun`, would-be removals are reported as `pruned`
|
|
41743
|
+
* plan rows.
|
|
41744
|
+
*/
|
|
41745
|
+
prune?: boolean;
|
|
42158
41746
|
}
|
|
42159
41747
|
/** One nested entity's converge result. */
|
|
42160
41748
|
interface FpoEntityOutcome {
|
|
42161
41749
|
kind: 'product' | 'flow' | 'agent' | 'capability' | 'tool' | 'surface' | 'record' | 'schedule';
|
|
42162
41750
|
ref: string;
|
|
42163
41751
|
name: string;
|
|
42164
|
-
result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped';
|
|
41752
|
+
result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped' | 'pruned';
|
|
42165
41753
|
id?: string;
|
|
42166
41754
|
error?: string;
|
|
42167
41755
|
}
|
|
@@ -42172,6 +41760,18 @@ interface EnsureFpoResult {
|
|
|
42172
41760
|
entities: FpoEntityOutcome[];
|
|
42173
41761
|
hasFailures: boolean;
|
|
42174
41762
|
}
|
|
41763
|
+
interface PullFpoResult {
|
|
41764
|
+
productId: string;
|
|
41765
|
+
/**
|
|
41766
|
+
* A self-contained FPO reconstructed from the live graph. Feeding it back into
|
|
41767
|
+
* `products.ensureFpo` converges to `unchanged`. records/schedules/secrets are
|
|
41768
|
+
* not reconstructed (see `warnings`); tool refs are portable `tool:<name>`.
|
|
41769
|
+
*/
|
|
41770
|
+
fpo: FpoInput;
|
|
41771
|
+
contentHash: string;
|
|
41772
|
+
/** Reconstruction caveats (omitted entities, unrepresentable rows). */
|
|
41773
|
+
warnings?: string[];
|
|
41774
|
+
}
|
|
42175
41775
|
/**
|
|
42176
41776
|
* Converge an entire FPO onto the platform. Ships the full FPO (no hash-only
|
|
42177
41777
|
* probe in this release); the server fans out to the per-entity ensure services
|
|
@@ -42179,6 +41779,14 @@ interface EnsureFpoResult {
|
|
|
42179
41779
|
* `result.hasFailures` / `entities[].result` and re-run to self-heal.
|
|
42180
41780
|
*/
|
|
42181
41781
|
declare function ensureFpo(client: RuntypeClient$1, fpo: FpoInput, options?: EnsureFpoOptions): Promise<EnsureFpoResult>;
|
|
41782
|
+
/**
|
|
41783
|
+
* Reconstruct a self-contained FPO from the live product graph (resolved by
|
|
41784
|
+
* name) — the absorb-drift direction of `ensureFpo`. Feeding the returned `fpo`
|
|
41785
|
+
* back into `ensureFpo` converges to `unchanged`. records/schedules/secrets are
|
|
41786
|
+
* not reconstructed and `tools` is emitted empty (refs are portable
|
|
41787
|
+
* `tool:<name>`); inspect `warnings` for per-pull caveats.
|
|
41788
|
+
*/
|
|
41789
|
+
declare function pullFpo(client: RuntypeClient$1, name: string): Promise<PullFpoResult>;
|
|
42182
41790
|
|
|
42183
41791
|
/**
|
|
42184
41792
|
* ProductsNamespace — config-as-code operations for products.
|
|
@@ -42240,6 +41848,22 @@ declare class ProductsNamespace {
|
|
|
42240
41848
|
* ```
|
|
42241
41849
|
*/
|
|
42242
41850
|
ensureFpo(fpo: FpoInput, options?: EnsureFpoOptions): Promise<EnsureFpoResult>;
|
|
41851
|
+
/**
|
|
41852
|
+
* Reconstruct a self-contained Full Product Object from the live product graph
|
|
41853
|
+
* (resolved by name) — the absorb-drift direction of `ensureFpo`. Feeding the
|
|
41854
|
+
* returned `fpo` back into `ensureFpo` converges to `unchanged`.
|
|
41855
|
+
*
|
|
41856
|
+
* records/schedules/secrets are not reconstructed and `tools` is emitted empty
|
|
41857
|
+
* (tool refs are portable `tool:<name>`); inspect `result.warnings` for
|
|
41858
|
+
* per-pull caveats.
|
|
41859
|
+
*
|
|
41860
|
+
* @example
|
|
41861
|
+
* ```typescript
|
|
41862
|
+
* const { fpo } = await Runtype.products.pullFpo('Support Copilot')
|
|
41863
|
+
* await Runtype.products.ensureFpo(fpo, { dryRun: true }) // → result: 'unchanged'
|
|
41864
|
+
* ```
|
|
41865
|
+
*/
|
|
41866
|
+
pullFpo(name: string): Promise<PullFpoResult>;
|
|
42243
41867
|
}
|
|
42244
41868
|
|
|
42245
41869
|
/**
|
|
@@ -44278,6 +43902,12 @@ interface ParsedSSEEvent {
|
|
|
44278
43902
|
*/
|
|
44279
43903
|
interface AgentStreamCallbacks {
|
|
44280
43904
|
onAgentStart?: (event: AgentStartEvent) => void;
|
|
43905
|
+
/**
|
|
43906
|
+
* @deprecated No longer emitted on the unified wire vocabulary (the default
|
|
43907
|
+
* since the unified-SSE cutover): iteration boundaries are folded into the
|
|
43908
|
+
* `iteration` field on `onTurnStart` / `onTurnComplete` / tool events. Read
|
|
43909
|
+
* that field instead. Still fires on a legacy stream during the rollout.
|
|
43910
|
+
*/
|
|
44281
43911
|
onIterationStart?: (event: AgentIterationStartEvent) => void;
|
|
44282
43912
|
onTurnStart?: (event: AgentTurnStartEvent) => void;
|
|
44283
43913
|
onTurnDelta?: (event: AgentTurnDeltaEvent) => void;
|
|
@@ -44290,6 +43920,12 @@ interface AgentStreamCallbacks {
|
|
|
44290
43920
|
onMedia?: (event: AgentMediaEvent) => void;
|
|
44291
43921
|
onApprovalStart?: (event: AgentApprovalStartEvent) => void;
|
|
44292
43922
|
onApprovalComplete?: (event: AgentApprovalCompleteEvent) => void;
|
|
43923
|
+
/**
|
|
43924
|
+
* @deprecated No longer emitted on the unified wire vocabulary (the default
|
|
43925
|
+
* since the unified-SSE cutover): iteration boundaries are folded into the
|
|
43926
|
+
* `iteration` field on turn/tool events. Use `onTurnComplete` for per-turn
|
|
43927
|
+
* cost/token data. Still fires on a legacy stream during the rollout.
|
|
43928
|
+
*/
|
|
44293
43929
|
onIterationComplete?: (event: AgentIterationCompleteEvent) => void;
|
|
44294
43930
|
onReflection?: (event: AgentReflectionEvent) => void;
|
|
44295
43931
|
onAgentComplete?: (event: AgentCompleteEvent) => void;
|
|
@@ -45873,62 +45509,74 @@ declare function parseOffloadedOutputId(value: string): string | undefined;
|
|
|
45873
45509
|
declare function parseLedgerArtifactRelativePath(value: string): string | undefined;
|
|
45874
45510
|
|
|
45875
45511
|
/**
|
|
45876
|
-
* SSE
|
|
45512
|
+
* Unified → legacy SSE event adapter (the client-side mirror of the api's
|
|
45513
|
+
* `apps/api/src/lib/unified-event-stream.ts`).
|
|
45877
45514
|
*
|
|
45878
|
-
*
|
|
45879
|
-
*
|
|
45880
|
-
|
|
45881
|
-
|
|
45882
|
-
|
|
45883
|
-
*
|
|
45515
|
+
* As of the unified-SSE cutover (runtypelabs/core unified-sse-default) the
|
|
45516
|
+
* execution streams the SDK consumes — `/dispatch`, `/dispatch/resume`,
|
|
45517
|
+
* `/agents/{id}/execute`, `/agents/{id}/resume` — default to the 33-event
|
|
45518
|
+
* unified vocabulary (`unifiedSSEEventSchema` in `@runtypelabs/shared`). The
|
|
45519
|
+
* SDK opts INTO that vocabulary explicitly with `?events=unified` on those
|
|
45520
|
+
* requests (see the call sites in `endpoints.ts` / `runtype.ts` /
|
|
45521
|
+
* `flows-namespace.ts`), then translates the unified frames back into the
|
|
45522
|
+
* SDK's stable, hand-written legacy event shapes here.
|
|
45884
45523
|
*
|
|
45885
|
-
*
|
|
45886
|
-
*
|
|
45887
|
-
*
|
|
45524
|
+
* Why translate instead of rewriting every consumer switch: the SDK's public
|
|
45525
|
+
* callback contracts (`StreamCallbacks`, `AgentStreamCallbacks`) and their event
|
|
45526
|
+
* types are part of the published surface. Reversing the wire at the parse
|
|
45527
|
+
* boundary moves the SDK onto the unified format on the wire while keeping that
|
|
45528
|
+
* surface byte-stable for downstream consumers. The translation is the inverse
|
|
45529
|
+
* of the api edge translator's mapping table
|
|
45530
|
+
* (`docs/features/planning/2026-06-16-persona-sse-event-merged-spec.md`).
|
|
45531
|
+
*
|
|
45532
|
+
* Scope: only the events the SDK's consumers actually read are reconstructed;
|
|
45533
|
+
* everything else (artifact channel, `source`, `custom`, fallback live-beat,
|
|
45534
|
+
* `step_skip`) maps to zero legacy events. Two unified-contract folds are NOT
|
|
45535
|
+
* reconstructed because the unified vocabulary deliberately discards them:
|
|
45536
|
+
* - `agent_iteration_start` / `agent_iteration_complete` are folded into the
|
|
45537
|
+
* `iteration` field on turn/tool frames, so `onIterationStart` /
|
|
45538
|
+
* `onIterationComplete` no longer fire.
|
|
45539
|
+
* - the additive `fallback` summary on `step_complete` / `turn_complete` is
|
|
45540
|
+
* dropped (the SDK never consumed the legacy `fallback_*` events either).
|
|
45541
|
+
*
|
|
45542
|
+
* Each translator is STATEFUL (channel block ids, current step/turn/iteration,
|
|
45543
|
+
* media accumulation) and therefore must be constructed once PER STREAM — never
|
|
45544
|
+
* shared across executions.
|
|
45888
45545
|
*/
|
|
45889
|
-
|
|
45890
|
-
|
|
45891
|
-
|
|
45546
|
+
type Json = Record<string, unknown>;
|
|
45547
|
+
/** A reconstructed legacy event (shape validated by the consumer switch/cast). */
|
|
45548
|
+
type LegacyEvent = Json & {
|
|
45549
|
+
type: string;
|
|
45892
45550
|
};
|
|
45893
45551
|
/**
|
|
45894
|
-
*
|
|
45895
|
-
*
|
|
45896
|
-
*
|
|
45897
|
-
*
|
|
45552
|
+
* Query string that opts a streaming request into the unified SSE vocabulary
|
|
45553
|
+
* (`?events=unified`, resolved by the api's `resolveSseEventFormat`). The SDK
|
|
45554
|
+
* requests it explicitly on the cut-over routes so it controls its own wire
|
|
45555
|
+
* format regardless of the server-side `default-sse-event-format` rollout flag.
|
|
45898
45556
|
*/
|
|
45899
|
-
declare
|
|
45557
|
+
declare const UNIFIED_EVENTS_QUERY = "events=unified";
|
|
45558
|
+
/** Append the unified-events opt-in to a request path, preserving any existing query. */
|
|
45559
|
+
declare function withUnifiedEvents(path: string): string;
|
|
45560
|
+
/** True when `type` is an unambiguous unified-vocabulary event discriminator. */
|
|
45561
|
+
declare function isUnifiedEventType(type: unknown): boolean;
|
|
45900
45562
|
/**
|
|
45901
|
-
*
|
|
45563
|
+
* Create a stateful translator from the unified vocabulary to the legacy flow
|
|
45564
|
+
* event shapes consumed by `stream-utils.ts` / `flows-namespace.ts` /
|
|
45565
|
+
* `client.ts`. Returns 0+ legacy events per unified event. Construct one per
|
|
45566
|
+
* stream.
|
|
45902
45567
|
*
|
|
45903
|
-
*
|
|
45904
|
-
*
|
|
45905
|
-
*
|
|
45906
|
-
*
|
|
45907
|
-
* @example
|
|
45908
|
-
* ```typescript
|
|
45909
|
-
* const response = await client.dispatch(config)
|
|
45910
|
-
* const summary = await processStream(response, {
|
|
45911
|
-
* onStepDelta: (chunk) => process.stdout.write(chunk),
|
|
45912
|
-
* onFlowComplete: (event) => console.log('Done!'),
|
|
45913
|
-
* })
|
|
45914
|
-
* ```
|
|
45568
|
+
* Tolerant by design: unified frames are translated; legacy flow frames pass
|
|
45569
|
+
* through unchanged (so a legacy stream — e.g. during the rollout window —
|
|
45570
|
+
* still works). The overlapping `step_start` / `step_complete` read both
|
|
45571
|
+
* vocabularies' field names.
|
|
45915
45572
|
*/
|
|
45916
|
-
declare function
|
|
45573
|
+
declare function createFlowEventTranslator(): (event: unknown) => LegacyEvent[];
|
|
45917
45574
|
/**
|
|
45918
|
-
* Create
|
|
45919
|
-
*
|
|
45920
|
-
*
|
|
45921
|
-
* @yields Parsed SSE events
|
|
45922
|
-
*
|
|
45923
|
-
* @example
|
|
45924
|
-
* ```typescript
|
|
45925
|
-
* const response = await client.dispatch(config)
|
|
45926
|
-
* for await (const event of streamEvents(response)) {
|
|
45927
|
-
* console.log(event.type, event)
|
|
45928
|
-
* }
|
|
45929
|
-
* ```
|
|
45575
|
+
* Create a stateful translator from the unified vocabulary to the legacy
|
|
45576
|
+
* `agent_*` event shapes dispatched by `processAgentStream` in `endpoints.ts`.
|
|
45577
|
+
* Returns 0+ legacy events per unified event. Construct one per stream.
|
|
45930
45578
|
*/
|
|
45931
|
-
declare function
|
|
45579
|
+
declare function createAgentEventTranslator(): (event: unknown) => LegacyEvent[];
|
|
45932
45580
|
|
|
45933
45581
|
/**
|
|
45934
45582
|
* BatchBuilder - Fluent builder for batch operations
|
|
@@ -47306,4 +46954,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
47306
46954
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
47307
46955
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
47308
46956
|
|
|
47309
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, 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 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, 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, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
|
46957
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UnifiedStreamEvent, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, withUnifiedEvents };
|