@runtypelabs/sdk 10.17.0 → 11.0.1
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 +33 -5
- package/dist/index.d.cts +2475 -330
- package/dist/index.d.ts +2475 -330
- package/dist/index.mjs +33 -5
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -460,9 +460,18 @@ interface paths {
|
|
|
460
460
|
[name: string]: unknown;
|
|
461
461
|
};
|
|
462
462
|
content: {
|
|
463
|
-
"application/json": components["schemas"]["
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
"application/json": components["schemas"]["InternalError"];
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
467
|
+
503: {
|
|
468
|
+
headers: {
|
|
469
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
470
|
+
"Retry-After": string;
|
|
471
|
+
[name: string]: unknown;
|
|
472
|
+
};
|
|
473
|
+
content: {
|
|
474
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
466
475
|
};
|
|
467
476
|
};
|
|
468
477
|
};
|
|
@@ -618,9 +627,18 @@ interface paths {
|
|
|
618
627
|
[name: string]: unknown;
|
|
619
628
|
};
|
|
620
629
|
content: {
|
|
621
|
-
"application/json": components["schemas"]["
|
|
622
|
-
|
|
623
|
-
|
|
630
|
+
"application/json": components["schemas"]["InternalError"];
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
634
|
+
503: {
|
|
635
|
+
headers: {
|
|
636
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
637
|
+
"Retry-After": string;
|
|
638
|
+
[name: string]: unknown;
|
|
639
|
+
};
|
|
640
|
+
content: {
|
|
641
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
624
642
|
};
|
|
625
643
|
};
|
|
626
644
|
};
|
|
@@ -703,9 +721,18 @@ interface paths {
|
|
|
703
721
|
[name: string]: unknown;
|
|
704
722
|
};
|
|
705
723
|
content: {
|
|
706
|
-
"application/json": components["schemas"]["
|
|
707
|
-
|
|
708
|
-
|
|
724
|
+
"application/json": components["schemas"]["InternalError"];
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
728
|
+
503: {
|
|
729
|
+
headers: {
|
|
730
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
731
|
+
"Retry-After": string;
|
|
732
|
+
[name: string]: unknown;
|
|
733
|
+
};
|
|
734
|
+
content: {
|
|
735
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
709
736
|
};
|
|
710
737
|
};
|
|
711
738
|
};
|
|
@@ -800,9 +827,18 @@ interface paths {
|
|
|
800
827
|
[name: string]: unknown;
|
|
801
828
|
};
|
|
802
829
|
content: {
|
|
803
|
-
"application/json": components["schemas"]["
|
|
804
|
-
|
|
805
|
-
|
|
830
|
+
"application/json": components["schemas"]["InternalError"];
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
834
|
+
503: {
|
|
835
|
+
headers: {
|
|
836
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
837
|
+
"Retry-After": string;
|
|
838
|
+
[name: string]: unknown;
|
|
839
|
+
};
|
|
840
|
+
content: {
|
|
841
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
806
842
|
};
|
|
807
843
|
};
|
|
808
844
|
};
|
|
@@ -3316,7 +3352,11 @@ interface paths {
|
|
|
3316
3352
|
[name: string]: unknown;
|
|
3317
3353
|
};
|
|
3318
3354
|
content: {
|
|
3319
|
-
"application/json": components["schemas"]["Error"]
|
|
3355
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3356
|
+
alias: string;
|
|
3357
|
+
/** @enum {string} */
|
|
3358
|
+
code: "alias_revision_required";
|
|
3359
|
+
};
|
|
3320
3360
|
};
|
|
3321
3361
|
};
|
|
3322
3362
|
/** @description Internal server error */
|
|
@@ -3655,7 +3695,11 @@ interface paths {
|
|
|
3655
3695
|
[name: string]: unknown;
|
|
3656
3696
|
};
|
|
3657
3697
|
content: {
|
|
3658
|
-
"application/json": components["schemas"]["Error"]
|
|
3698
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3699
|
+
alias: string;
|
|
3700
|
+
/** @enum {string} */
|
|
3701
|
+
code: "alias_revision_required";
|
|
3702
|
+
};
|
|
3659
3703
|
};
|
|
3660
3704
|
};
|
|
3661
3705
|
/** @description Internal server error */
|
|
@@ -3769,7 +3813,11 @@ interface paths {
|
|
|
3769
3813
|
[name: string]: unknown;
|
|
3770
3814
|
};
|
|
3771
3815
|
content: {
|
|
3772
|
-
"application/json": components["schemas"]["Error"]
|
|
3816
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3817
|
+
alias: string;
|
|
3818
|
+
/** @enum {string} */
|
|
3819
|
+
code: "alias_revision_required";
|
|
3820
|
+
};
|
|
3773
3821
|
};
|
|
3774
3822
|
};
|
|
3775
3823
|
/** @description Internal server error */
|
|
@@ -3920,7 +3968,11 @@ interface paths {
|
|
|
3920
3968
|
[name: string]: unknown;
|
|
3921
3969
|
};
|
|
3922
3970
|
content: {
|
|
3923
|
-
"application/json": components["schemas"]["Error"]
|
|
3971
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3972
|
+
alias: string;
|
|
3973
|
+
/** @enum {string} */
|
|
3974
|
+
code: "alias_revision_required";
|
|
3975
|
+
};
|
|
3924
3976
|
};
|
|
3925
3977
|
};
|
|
3926
3978
|
/** @description Internal server error */
|
|
@@ -5746,11 +5798,11 @@ interface paths {
|
|
|
5746
5798
|
};
|
|
5747
5799
|
/**
|
|
5748
5800
|
* Export agent for runtime
|
|
5749
|
-
* @description Export a fully-resolved, self-contained agent definition that the @runtypelabs/runtime package can consume directly at boot. Capabilities, flows, and nested sub-agents are inlined recursively (up to 3 levels). Skills bound to the agent are snapshotted into `skills`, each with the skill version it resolved to, and the runtime loads them with no host wiring. MCP credential values and external-agent auth credentials are replaced with secret-name references. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
|
|
5801
|
+
* @description Export a fully-resolved, self-contained agent definition that the @runtypelabs/runtime package can consume directly at boot. Capabilities, flows, and nested sub-agents are inlined recursively (up to 3 levels). Skills bound to the agent are snapshotted into `skills`, each with the skill version it resolved to, and the runtime loads them with no host wiring. MCP credential values and external-agent auth credentials are replaced with secret-name references. A configured `decision_judge` tool carries its published question set (questions, model, version, input mapping and current calibration) at `config.questionSet`, resolved once at export so a self-hosted runtime never looks the question set up; a question set that is missing, unpublished, owned by another account, or pinned to an unpublished version is reported in `warnings` with reason `question_set_unresolved` instead of failing the export. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
|
|
5750
5802
|
*
|
|
5751
5803
|
* The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the agent's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency. The array is empty when nothing needs wiring.
|
|
5752
5804
|
*
|
|
5753
|
-
* The response also carries `warnings`: each referenced sub-agent or flow the export could not embed, with the reason (`not_found`, `claude_managed_unsupported`, `max_depth_exceeded` for nesting deeper than 3 levels, `invalid_flow_config`, `unresolved_tool_ref`, or `unsupported_mcp_auth`). The export still returns `200` and leaves the referencing capability or tool out of the artifact. The array is empty when every child was embedded.
|
|
5805
|
+
* The response also carries `warnings`: each referenced sub-agent or flow the export could not embed, with the reason (`not_found`, `claude_managed_unsupported`, `max_depth_exceeded` for nesting deeper than 3 levels, `invalid_flow_config`, `unresolved_tool_ref`, or `unsupported_mcp_auth`), and each configured decision tool whose question set could not be resolved (`question_set_unresolved`). The export still returns `200` and leaves the referencing capability or tool out of the artifact; a decision tool stays in, without `config.questionSet`. The array is empty when every child was embedded.
|
|
5754
5806
|
*
|
|
5755
5807
|
* Pass at most one release selector. `versionId` exports that published version; `alias` exports the version a release alias (for example `staging`, `live` or `pr-42`) currently points at, resolved exactly as the execution selector `agent: { agentId, alias }` resolves it. With neither, the export follows the agent's default target: the version its `live` alias names when the org runs on release aliases, otherwise the agent's current definition. A version-backed export carries `release` with the resolved `versionId`, plus `alias` and `aliasRevision` when an alias selected it. An unknown version or alias, or an archived or expired alias, answers `404`.
|
|
5756
5808
|
*/
|
|
@@ -5802,7 +5854,7 @@ interface paths {
|
|
|
5802
5854
|
};
|
|
5803
5855
|
/** @description Skills bound to the agent, snapshotted with the skill version each resolved to. `executeAgent` loads them with no host wiring. Absent when the agent has no bound skills. */
|
|
5804
5856
|
skills?: components["schemas"]["RuntimeExportedSkill"][];
|
|
5805
|
-
/** @description Referenced sub-agents and
|
|
5857
|
+
/** @description Referenced sub-agents, flows and question sets the export could not embed, each with the reason. The export still returns `200`; a tool or capability that names a dropped child is absent from the artifact. Empty when every child was embedded. */
|
|
5806
5858
|
warnings: components["schemas"]["RuntimeExportWarning"][];
|
|
5807
5859
|
};
|
|
5808
5860
|
"application/zip": string;
|
|
@@ -7326,11 +7378,7 @@ interface paths {
|
|
|
7326
7378
|
[name: string]: unknown;
|
|
7327
7379
|
};
|
|
7328
7380
|
content: {
|
|
7329
|
-
"application/json":
|
|
7330
|
-
/** @enum {string} */
|
|
7331
|
-
code: "invalid_request" | "storage_not_configured" | "store_failed";
|
|
7332
|
-
error: string;
|
|
7333
|
-
};
|
|
7381
|
+
"application/json": components["schemas"]["InternalError"];
|
|
7334
7382
|
};
|
|
7335
7383
|
};
|
|
7336
7384
|
/** @description Asset storage is not configured in this environment */
|
|
@@ -9697,7 +9745,7 @@ interface paths {
|
|
|
9697
9745
|
put?: never;
|
|
9698
9746
|
/**
|
|
9699
9747
|
* Send a client chat message
|
|
9700
|
-
* @description Send a message for a browser client-token chat session. The request streams flow/agent events over Server-Sent Events. `turnId` and `submitMode` are optional and let newer Persona clients suppress stale interrupted responses; older clients can omit both fields. Opt-in `steer` accepts exactly one new user message whose `id` equals `turnId` for visitor-owned native durable agents. A new execution streams SSE; steering an existing execution returns a 202 delivery receipt without replacing its response. `auto` takes the same shape as `steer` and lets a classifier choose while a turn runs: a message that belongs to the running work steers it (202 delivery receipt), and an independent one queues as the next turn (202 queued handle); with nothing running it is an ordinary turn with no route report. A routed or downgraded answer carries `X-Runtype-Busy-Message-Route` and `X-Runtype-Busy-Message-Source` (plus `-Probability` and `-Model` when the classifier answered), repeated as `busyMessageRoute` on JSON bodies. Where `auto` cannot route (another lane, another message shape) it behaves as `normal` and reports source `disabled`. Retry with the same turn and message IDs. Send `voice: { spoken: true }` when the user turn came from a live voice call and the reply will be spoken by a voice model; the turn then runs with a per-turn instruction to lead with a short, speakable answer, which is not stored in the conversation.
|
|
9748
|
+
* @description Send a message for a browser client-token chat session. The request streams flow/agent events over Server-Sent Events. `turnId` and `submitMode` are optional and let newer Persona clients suppress stale interrupted responses; older clients can omit both fields. Opt-in `steer` accepts exactly one new user message whose `id` equals `turnId` for visitor-owned native durable agents. A new execution streams SSE; steering an existing execution returns a 202 delivery receipt without replacing its response. `auto` takes the same shape as `steer` and lets a classifier choose while a turn runs: a message that belongs to the running work steers it (202 delivery receipt), and an independent one queues as the next turn (202 queued handle); with nothing running it is an ordinary turn with no route report. A routed or downgraded answer carries `X-Runtype-Busy-Message-Route` and `X-Runtype-Busy-Message-Source` (plus `-Probability` and `-Model` when the classifier answered), repeated as `busyMessageRoute` on JSON bodies. Where `auto` cannot route (another lane, another message shape) it behaves as `normal` and reports source `disabled`. Retry with the same turn and message IDs. Send `voice: { spoken: true }` when the user turn came from a live voice call and the reply will be spoken by a voice model; the turn then runs with a per-turn instruction to lead with a short, speakable answer, which is not stored in the conversation. Only the fields in the request body schema are supported. The schema has no `options` object, so run options such as `options.stepTimeoutMs` and `options.flowTimeoutMs` cannot be set on this route. To set them, call `POST /v1/dispatch` with an API key.
|
|
9701
9749
|
*/
|
|
9702
9750
|
post: {
|
|
9703
9751
|
parameters: {
|
|
@@ -9781,6 +9829,15 @@ interface paths {
|
|
|
9781
9829
|
turnId?: string;
|
|
9782
9830
|
/** @description Voice context for this turn. Omit for typed chat; behavior is unchanged when absent. */
|
|
9783
9831
|
voice?: {
|
|
9832
|
+
/** @description Page tools the voice call already ran this turn. Replayed to the model as answered calls to the offered `clientTools`, deduplicated by `toolCallId`, so the agent narrates rather than re-calls. At most 8 entries; the JSON `arguments` plus `result` of each entry may total 32,768 characters. */
|
|
9833
|
+
priorToolResults?: {
|
|
9834
|
+
arguments: {
|
|
9835
|
+
[key: string]: unknown;
|
|
9836
|
+
};
|
|
9837
|
+
name: string;
|
|
9838
|
+
result?: unknown;
|
|
9839
|
+
toolCallId: string;
|
|
9840
|
+
}[];
|
|
9784
9841
|
/** @description The user turn came from a live voice call and the reply will be spoken by a voice model. The turn runs with a per-turn instruction to lead with a short, speakable answer; the instruction is never stored in the conversation. */
|
|
9785
9842
|
spoken?: boolean;
|
|
9786
9843
|
};
|
|
@@ -10806,7 +10863,18 @@ interface paths {
|
|
|
10806
10863
|
[name: string]: unknown;
|
|
10807
10864
|
};
|
|
10808
10865
|
content: {
|
|
10809
|
-
"application/json": components["schemas"]["
|
|
10866
|
+
"application/json": components["schemas"]["InternalError"];
|
|
10867
|
+
};
|
|
10868
|
+
};
|
|
10869
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
10870
|
+
503: {
|
|
10871
|
+
headers: {
|
|
10872
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
10873
|
+
"Retry-After": string;
|
|
10874
|
+
[name: string]: unknown;
|
|
10875
|
+
};
|
|
10876
|
+
content: {
|
|
10877
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
10810
10878
|
};
|
|
10811
10879
|
};
|
|
10812
10880
|
};
|
|
@@ -13786,6 +13854,932 @@ interface paths {
|
|
|
13786
13854
|
patch?: never;
|
|
13787
13855
|
trace?: never;
|
|
13788
13856
|
};
|
|
13857
|
+
"/v1/delegate-tasks": {
|
|
13858
|
+
parameters: {
|
|
13859
|
+
query?: never;
|
|
13860
|
+
header?: never;
|
|
13861
|
+
path?: never;
|
|
13862
|
+
cookie?: never;
|
|
13863
|
+
};
|
|
13864
|
+
/**
|
|
13865
|
+
* List delegate tasks
|
|
13866
|
+
* @description Your organization's delegated tasks, newest first. API keys need `DELEGATE_TASKS:READ`.
|
|
13867
|
+
*/
|
|
13868
|
+
get: {
|
|
13869
|
+
parameters: {
|
|
13870
|
+
query?: {
|
|
13871
|
+
status?: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
13872
|
+
cursor?: string;
|
|
13873
|
+
limit?: string;
|
|
13874
|
+
};
|
|
13875
|
+
header?: never;
|
|
13876
|
+
path?: never;
|
|
13877
|
+
cookie?: never;
|
|
13878
|
+
};
|
|
13879
|
+
requestBody?: never;
|
|
13880
|
+
responses: {
|
|
13881
|
+
/** @description One page of tasks */
|
|
13882
|
+
200: {
|
|
13883
|
+
headers: {
|
|
13884
|
+
[name: string]: unknown;
|
|
13885
|
+
};
|
|
13886
|
+
content: {
|
|
13887
|
+
"application/json": {
|
|
13888
|
+
data: {
|
|
13889
|
+
apiKeyId: string | null;
|
|
13890
|
+
clientName: string | null;
|
|
13891
|
+
clientVersion: string | null;
|
|
13892
|
+
completedAt: string | null;
|
|
13893
|
+
context?: unknown;
|
|
13894
|
+
createdAt: string;
|
|
13895
|
+
error: string | null;
|
|
13896
|
+
id: string;
|
|
13897
|
+
instruction: string;
|
|
13898
|
+
lastEventSeq: number;
|
|
13899
|
+
modelRoundCount: number;
|
|
13900
|
+
organizationId: string;
|
|
13901
|
+
question: string | null;
|
|
13902
|
+
result: {
|
|
13903
|
+
links: {
|
|
13904
|
+
label: string;
|
|
13905
|
+
/** Format: uri */
|
|
13906
|
+
url: string;
|
|
13907
|
+
}[];
|
|
13908
|
+
modelRoundCount: number;
|
|
13909
|
+
summary: string;
|
|
13910
|
+
toolCallCount: number;
|
|
13911
|
+
totalCost?: number;
|
|
13912
|
+
touchedEntities: {
|
|
13913
|
+
/** @enum {string} */
|
|
13914
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
13915
|
+
id: string;
|
|
13916
|
+
kind: string;
|
|
13917
|
+
name?: string;
|
|
13918
|
+
}[];
|
|
13919
|
+
warnings?: string[];
|
|
13920
|
+
} | null;
|
|
13921
|
+
startedAt: string | null;
|
|
13922
|
+
/** @enum {string} */
|
|
13923
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
13924
|
+
summary: string | null;
|
|
13925
|
+
toolCallCount: number;
|
|
13926
|
+
totalCost: number | null;
|
|
13927
|
+
touchedEntities: {
|
|
13928
|
+
/** @enum {string} */
|
|
13929
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
13930
|
+
id: string;
|
|
13931
|
+
kind: string;
|
|
13932
|
+
name?: string;
|
|
13933
|
+
}[];
|
|
13934
|
+
updatedAt: string;
|
|
13935
|
+
userId: string;
|
|
13936
|
+
}[];
|
|
13937
|
+
pagination: components["schemas"]["Pagination"];
|
|
13938
|
+
};
|
|
13939
|
+
};
|
|
13940
|
+
};
|
|
13941
|
+
/** @description Invalid limit */
|
|
13942
|
+
400: {
|
|
13943
|
+
headers: {
|
|
13944
|
+
[name: string]: unknown;
|
|
13945
|
+
};
|
|
13946
|
+
content: {
|
|
13947
|
+
"application/json": components["schemas"]["Error"];
|
|
13948
|
+
};
|
|
13949
|
+
};
|
|
13950
|
+
/** @description Unauthorized */
|
|
13951
|
+
401: {
|
|
13952
|
+
headers: {
|
|
13953
|
+
[name: string]: unknown;
|
|
13954
|
+
};
|
|
13955
|
+
content: {
|
|
13956
|
+
"application/json": components["schemas"]["Error"];
|
|
13957
|
+
};
|
|
13958
|
+
};
|
|
13959
|
+
/** @description Missing API key scope */
|
|
13960
|
+
403: {
|
|
13961
|
+
headers: {
|
|
13962
|
+
[name: string]: unknown;
|
|
13963
|
+
};
|
|
13964
|
+
content: {
|
|
13965
|
+
"application/json": components["schemas"]["Error"];
|
|
13966
|
+
};
|
|
13967
|
+
};
|
|
13968
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
13969
|
+
404: {
|
|
13970
|
+
headers: {
|
|
13971
|
+
[name: string]: unknown;
|
|
13972
|
+
};
|
|
13973
|
+
content: {
|
|
13974
|
+
"application/json": components["schemas"]["Error"];
|
|
13975
|
+
};
|
|
13976
|
+
};
|
|
13977
|
+
/** @description The operator agent is not available on this deployment */
|
|
13978
|
+
503: {
|
|
13979
|
+
headers: {
|
|
13980
|
+
[name: string]: unknown;
|
|
13981
|
+
};
|
|
13982
|
+
content: {
|
|
13983
|
+
"application/json": components["schemas"]["Error"];
|
|
13984
|
+
};
|
|
13985
|
+
};
|
|
13986
|
+
};
|
|
13987
|
+
};
|
|
13988
|
+
put?: never;
|
|
13989
|
+
/**
|
|
13990
|
+
* Delegate a task to the Runtype operator agent
|
|
13991
|
+
* @description Start a task the operator agent works through in your organization: it reads and changes agents, flows, records, tools, evals and surfaces with the same authority as the caller. With `waitSeconds` the response waits up to that long for the task to finish or to stop on a question (`input_required`) before answering; otherwise it returns the queued task at once. An identical delegation from the same caller that is still running is returned again (200, `deduplicated: true`) instead of starting a second one. API keys need `DELEGATE_TASKS:WRITE`.
|
|
13992
|
+
*/
|
|
13993
|
+
post: {
|
|
13994
|
+
parameters: {
|
|
13995
|
+
query?: never;
|
|
13996
|
+
header?: never;
|
|
13997
|
+
path?: never;
|
|
13998
|
+
cookie?: never;
|
|
13999
|
+
};
|
|
14000
|
+
requestBody?: {
|
|
14001
|
+
content: {
|
|
14002
|
+
"application/json": {
|
|
14003
|
+
allowDestructive?: boolean;
|
|
14004
|
+
clientName?: string;
|
|
14005
|
+
clientVersion?: string;
|
|
14006
|
+
context?: unknown;
|
|
14007
|
+
instruction: string;
|
|
14008
|
+
maxToolCalls?: number;
|
|
14009
|
+
waitSeconds?: number;
|
|
14010
|
+
};
|
|
14011
|
+
};
|
|
14012
|
+
};
|
|
14013
|
+
responses: {
|
|
14014
|
+
/** @description The still-running task this request duplicated */
|
|
14015
|
+
200: {
|
|
14016
|
+
headers: {
|
|
14017
|
+
[name: string]: unknown;
|
|
14018
|
+
};
|
|
14019
|
+
content: {
|
|
14020
|
+
"application/json": {
|
|
14021
|
+
apiKeyId: string | null;
|
|
14022
|
+
clientName: string | null;
|
|
14023
|
+
clientVersion: string | null;
|
|
14024
|
+
completedAt: string | null;
|
|
14025
|
+
context?: unknown;
|
|
14026
|
+
createdAt: string;
|
|
14027
|
+
/** @description True when an identical delegation from the same caller was still running, so that task was returned instead of starting another. */
|
|
14028
|
+
deduplicated?: boolean;
|
|
14029
|
+
error: string | null;
|
|
14030
|
+
id: string;
|
|
14031
|
+
instruction: string;
|
|
14032
|
+
lastEventSeq: number;
|
|
14033
|
+
modelRoundCount: number;
|
|
14034
|
+
organizationId: string;
|
|
14035
|
+
question: string | null;
|
|
14036
|
+
result: {
|
|
14037
|
+
links: {
|
|
14038
|
+
label: string;
|
|
14039
|
+
/** Format: uri */
|
|
14040
|
+
url: string;
|
|
14041
|
+
}[];
|
|
14042
|
+
modelRoundCount: number;
|
|
14043
|
+
summary: string;
|
|
14044
|
+
toolCallCount: number;
|
|
14045
|
+
totalCost?: number;
|
|
14046
|
+
touchedEntities: {
|
|
14047
|
+
/** @enum {string} */
|
|
14048
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14049
|
+
id: string;
|
|
14050
|
+
kind: string;
|
|
14051
|
+
name?: string;
|
|
14052
|
+
}[];
|
|
14053
|
+
warnings?: string[];
|
|
14054
|
+
} | null;
|
|
14055
|
+
startedAt: string | null;
|
|
14056
|
+
/** @enum {string} */
|
|
14057
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
14058
|
+
summary: string | null;
|
|
14059
|
+
toolCallCount: number;
|
|
14060
|
+
totalCost: number | null;
|
|
14061
|
+
touchedEntities: {
|
|
14062
|
+
/** @enum {string} */
|
|
14063
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14064
|
+
id: string;
|
|
14065
|
+
kind: string;
|
|
14066
|
+
name?: string;
|
|
14067
|
+
}[];
|
|
14068
|
+
updatedAt: string;
|
|
14069
|
+
userId: string;
|
|
14070
|
+
};
|
|
14071
|
+
};
|
|
14072
|
+
};
|
|
14073
|
+
/** @description The task */
|
|
14074
|
+
201: {
|
|
14075
|
+
headers: {
|
|
14076
|
+
[name: string]: unknown;
|
|
14077
|
+
};
|
|
14078
|
+
content: {
|
|
14079
|
+
"application/json": {
|
|
14080
|
+
apiKeyId: string | null;
|
|
14081
|
+
clientName: string | null;
|
|
14082
|
+
clientVersion: string | null;
|
|
14083
|
+
completedAt: string | null;
|
|
14084
|
+
context?: unknown;
|
|
14085
|
+
createdAt: string;
|
|
14086
|
+
/** @description True when an identical delegation from the same caller was still running, so that task was returned instead of starting another. */
|
|
14087
|
+
deduplicated?: boolean;
|
|
14088
|
+
error: string | null;
|
|
14089
|
+
id: string;
|
|
14090
|
+
instruction: string;
|
|
14091
|
+
lastEventSeq: number;
|
|
14092
|
+
modelRoundCount: number;
|
|
14093
|
+
organizationId: string;
|
|
14094
|
+
question: string | null;
|
|
14095
|
+
result: {
|
|
14096
|
+
links: {
|
|
14097
|
+
label: string;
|
|
14098
|
+
/** Format: uri */
|
|
14099
|
+
url: string;
|
|
14100
|
+
}[];
|
|
14101
|
+
modelRoundCount: number;
|
|
14102
|
+
summary: string;
|
|
14103
|
+
toolCallCount: number;
|
|
14104
|
+
totalCost?: number;
|
|
14105
|
+
touchedEntities: {
|
|
14106
|
+
/** @enum {string} */
|
|
14107
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14108
|
+
id: string;
|
|
14109
|
+
kind: string;
|
|
14110
|
+
name?: string;
|
|
14111
|
+
}[];
|
|
14112
|
+
warnings?: string[];
|
|
14113
|
+
} | null;
|
|
14114
|
+
startedAt: string | null;
|
|
14115
|
+
/** @enum {string} */
|
|
14116
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
14117
|
+
summary: string | null;
|
|
14118
|
+
toolCallCount: number;
|
|
14119
|
+
totalCost: number | null;
|
|
14120
|
+
touchedEntities: {
|
|
14121
|
+
/** @enum {string} */
|
|
14122
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14123
|
+
id: string;
|
|
14124
|
+
kind: string;
|
|
14125
|
+
name?: string;
|
|
14126
|
+
}[];
|
|
14127
|
+
updatedAt: string;
|
|
14128
|
+
userId: string;
|
|
14129
|
+
};
|
|
14130
|
+
};
|
|
14131
|
+
};
|
|
14132
|
+
/** @description Invalid input */
|
|
14133
|
+
400: {
|
|
14134
|
+
headers: {
|
|
14135
|
+
[name: string]: unknown;
|
|
14136
|
+
};
|
|
14137
|
+
content: {
|
|
14138
|
+
"application/json": components["schemas"]["Error"];
|
|
14139
|
+
};
|
|
14140
|
+
};
|
|
14141
|
+
/** @description Unauthorized */
|
|
14142
|
+
401: {
|
|
14143
|
+
headers: {
|
|
14144
|
+
[name: string]: unknown;
|
|
14145
|
+
};
|
|
14146
|
+
content: {
|
|
14147
|
+
"application/json": components["schemas"]["Error"];
|
|
14148
|
+
};
|
|
14149
|
+
};
|
|
14150
|
+
/** @description Missing API key scope */
|
|
14151
|
+
403: {
|
|
14152
|
+
headers: {
|
|
14153
|
+
[name: string]: unknown;
|
|
14154
|
+
};
|
|
14155
|
+
content: {
|
|
14156
|
+
"application/json": components["schemas"]["Error"];
|
|
14157
|
+
};
|
|
14158
|
+
};
|
|
14159
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14160
|
+
404: {
|
|
14161
|
+
headers: {
|
|
14162
|
+
[name: string]: unknown;
|
|
14163
|
+
};
|
|
14164
|
+
content: {
|
|
14165
|
+
"application/json": components["schemas"]["Error"];
|
|
14166
|
+
};
|
|
14167
|
+
};
|
|
14168
|
+
/** @description `context` is larger than 16 KB of JSON */
|
|
14169
|
+
413: {
|
|
14170
|
+
headers: {
|
|
14171
|
+
[name: string]: unknown;
|
|
14172
|
+
};
|
|
14173
|
+
content: {
|
|
14174
|
+
"application/json": components["schemas"]["Error"];
|
|
14175
|
+
};
|
|
14176
|
+
};
|
|
14177
|
+
/** @description The operator agent is not available on this deployment */
|
|
14178
|
+
503: {
|
|
14179
|
+
headers: {
|
|
14180
|
+
[name: string]: unknown;
|
|
14181
|
+
};
|
|
14182
|
+
content: {
|
|
14183
|
+
"application/json": components["schemas"]["Error"];
|
|
14184
|
+
};
|
|
14185
|
+
};
|
|
14186
|
+
};
|
|
14187
|
+
};
|
|
14188
|
+
delete?: never;
|
|
14189
|
+
options?: never;
|
|
14190
|
+
head?: never;
|
|
14191
|
+
patch?: never;
|
|
14192
|
+
trace?: never;
|
|
14193
|
+
};
|
|
14194
|
+
"/v1/delegate-tasks/{id}": {
|
|
14195
|
+
parameters: {
|
|
14196
|
+
query?: never;
|
|
14197
|
+
header?: never;
|
|
14198
|
+
path?: never;
|
|
14199
|
+
cookie?: never;
|
|
14200
|
+
};
|
|
14201
|
+
/**
|
|
14202
|
+
* Get a delegate task
|
|
14203
|
+
* @description The task with the journal events past `after`. With `wait` the response waits up to that many seconds for a new event or a terminal status before answering, which is how a client polls without a tight loop.
|
|
14204
|
+
*/
|
|
14205
|
+
get: {
|
|
14206
|
+
parameters: {
|
|
14207
|
+
query?: {
|
|
14208
|
+
wait?: number | null;
|
|
14209
|
+
after?: number | null;
|
|
14210
|
+
};
|
|
14211
|
+
header?: never;
|
|
14212
|
+
path: {
|
|
14213
|
+
/** @description The task id (`dlg_…`). */
|
|
14214
|
+
id: string;
|
|
14215
|
+
};
|
|
14216
|
+
cookie?: never;
|
|
14217
|
+
};
|
|
14218
|
+
requestBody?: never;
|
|
14219
|
+
responses: {
|
|
14220
|
+
/** @description The task and its new events */
|
|
14221
|
+
200: {
|
|
14222
|
+
headers: {
|
|
14223
|
+
[name: string]: unknown;
|
|
14224
|
+
};
|
|
14225
|
+
content: {
|
|
14226
|
+
"application/json": {
|
|
14227
|
+
events: ({
|
|
14228
|
+
at: string;
|
|
14229
|
+
instruction: string;
|
|
14230
|
+
seq: number;
|
|
14231
|
+
taskId: string;
|
|
14232
|
+
/** @enum {string} */
|
|
14233
|
+
type: "task_started";
|
|
14234
|
+
} | {
|
|
14235
|
+
at: string;
|
|
14236
|
+
round: number;
|
|
14237
|
+
seq: number;
|
|
14238
|
+
text?: string;
|
|
14239
|
+
thinking?: boolean;
|
|
14240
|
+
/** @enum {string} */
|
|
14241
|
+
type: "model_round";
|
|
14242
|
+
} | {
|
|
14243
|
+
args?: unknown;
|
|
14244
|
+
at: string;
|
|
14245
|
+
callId: string;
|
|
14246
|
+
seq: number;
|
|
14247
|
+
tool: string;
|
|
14248
|
+
/** @enum {string} */
|
|
14249
|
+
type: "tool_call";
|
|
14250
|
+
} | {
|
|
14251
|
+
at: string;
|
|
14252
|
+
callId: string;
|
|
14253
|
+
durationMs: number;
|
|
14254
|
+
entity?: {
|
|
14255
|
+
/** @enum {string} */
|
|
14256
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14257
|
+
id: string;
|
|
14258
|
+
kind: string;
|
|
14259
|
+
name?: string;
|
|
14260
|
+
};
|
|
14261
|
+
ok: boolean;
|
|
14262
|
+
seq: number;
|
|
14263
|
+
summary: string;
|
|
14264
|
+
tool: string;
|
|
14265
|
+
/** @enum {string} */
|
|
14266
|
+
type: "tool_result";
|
|
14267
|
+
} | {
|
|
14268
|
+
at: string;
|
|
14269
|
+
message: string;
|
|
14270
|
+
seq: number;
|
|
14271
|
+
/** @enum {string} */
|
|
14272
|
+
type: "milestone";
|
|
14273
|
+
} | {
|
|
14274
|
+
at: string;
|
|
14275
|
+
question: string;
|
|
14276
|
+
seq: number;
|
|
14277
|
+
/** @enum {string} */
|
|
14278
|
+
type: "question";
|
|
14279
|
+
} | {
|
|
14280
|
+
at: string;
|
|
14281
|
+
message: string;
|
|
14282
|
+
seq: number;
|
|
14283
|
+
/** @enum {string} */
|
|
14284
|
+
type: "message_received";
|
|
14285
|
+
} | {
|
|
14286
|
+
at: string;
|
|
14287
|
+
result: {
|
|
14288
|
+
links: {
|
|
14289
|
+
label: string;
|
|
14290
|
+
/** Format: uri */
|
|
14291
|
+
url: string;
|
|
14292
|
+
}[];
|
|
14293
|
+
modelRoundCount: number;
|
|
14294
|
+
summary: string;
|
|
14295
|
+
toolCallCount: number;
|
|
14296
|
+
totalCost?: number;
|
|
14297
|
+
touchedEntities: {
|
|
14298
|
+
/** @enum {string} */
|
|
14299
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14300
|
+
id: string;
|
|
14301
|
+
kind: string;
|
|
14302
|
+
name?: string;
|
|
14303
|
+
}[];
|
|
14304
|
+
warnings?: string[];
|
|
14305
|
+
};
|
|
14306
|
+
seq: number;
|
|
14307
|
+
/** @enum {string} */
|
|
14308
|
+
type: "task_completed";
|
|
14309
|
+
} | {
|
|
14310
|
+
at: string;
|
|
14311
|
+
error: string;
|
|
14312
|
+
seq: number;
|
|
14313
|
+
/** @enum {string} */
|
|
14314
|
+
type: "task_failed";
|
|
14315
|
+
} | {
|
|
14316
|
+
at: string;
|
|
14317
|
+
seq: number;
|
|
14318
|
+
/** @enum {string} */
|
|
14319
|
+
type: "task_cancelled";
|
|
14320
|
+
})[];
|
|
14321
|
+
task: {
|
|
14322
|
+
apiKeyId: string | null;
|
|
14323
|
+
clientName: string | null;
|
|
14324
|
+
clientVersion: string | null;
|
|
14325
|
+
completedAt: string | null;
|
|
14326
|
+
context?: unknown;
|
|
14327
|
+
createdAt: string;
|
|
14328
|
+
error: string | null;
|
|
14329
|
+
id: string;
|
|
14330
|
+
instruction: string;
|
|
14331
|
+
lastEventSeq: number;
|
|
14332
|
+
modelRoundCount: number;
|
|
14333
|
+
organizationId: string;
|
|
14334
|
+
question: string | null;
|
|
14335
|
+
result: {
|
|
14336
|
+
links: {
|
|
14337
|
+
label: string;
|
|
14338
|
+
/** Format: uri */
|
|
14339
|
+
url: string;
|
|
14340
|
+
}[];
|
|
14341
|
+
modelRoundCount: number;
|
|
14342
|
+
summary: string;
|
|
14343
|
+
toolCallCount: number;
|
|
14344
|
+
totalCost?: number;
|
|
14345
|
+
touchedEntities: {
|
|
14346
|
+
/** @enum {string} */
|
|
14347
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14348
|
+
id: string;
|
|
14349
|
+
kind: string;
|
|
14350
|
+
name?: string;
|
|
14351
|
+
}[];
|
|
14352
|
+
warnings?: string[];
|
|
14353
|
+
} | null;
|
|
14354
|
+
startedAt: string | null;
|
|
14355
|
+
/** @enum {string} */
|
|
14356
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
14357
|
+
summary: string | null;
|
|
14358
|
+
toolCallCount: number;
|
|
14359
|
+
totalCost: number | null;
|
|
14360
|
+
touchedEntities: {
|
|
14361
|
+
/** @enum {string} */
|
|
14362
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14363
|
+
id: string;
|
|
14364
|
+
kind: string;
|
|
14365
|
+
name?: string;
|
|
14366
|
+
}[];
|
|
14367
|
+
updatedAt: string;
|
|
14368
|
+
userId: string;
|
|
14369
|
+
};
|
|
14370
|
+
};
|
|
14371
|
+
};
|
|
14372
|
+
};
|
|
14373
|
+
/** @description Unauthorized */
|
|
14374
|
+
401: {
|
|
14375
|
+
headers: {
|
|
14376
|
+
[name: string]: unknown;
|
|
14377
|
+
};
|
|
14378
|
+
content: {
|
|
14379
|
+
"application/json": components["schemas"]["Error"];
|
|
14380
|
+
};
|
|
14381
|
+
};
|
|
14382
|
+
/** @description Missing API key scope */
|
|
14383
|
+
403: {
|
|
14384
|
+
headers: {
|
|
14385
|
+
[name: string]: unknown;
|
|
14386
|
+
};
|
|
14387
|
+
content: {
|
|
14388
|
+
"application/json": components["schemas"]["Error"];
|
|
14389
|
+
};
|
|
14390
|
+
};
|
|
14391
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14392
|
+
404: {
|
|
14393
|
+
headers: {
|
|
14394
|
+
[name: string]: unknown;
|
|
14395
|
+
};
|
|
14396
|
+
content: {
|
|
14397
|
+
"application/json": components["schemas"]["Error"];
|
|
14398
|
+
};
|
|
14399
|
+
};
|
|
14400
|
+
/** @description The operator agent is not available on this deployment */
|
|
14401
|
+
503: {
|
|
14402
|
+
headers: {
|
|
14403
|
+
[name: string]: unknown;
|
|
14404
|
+
};
|
|
14405
|
+
content: {
|
|
14406
|
+
"application/json": components["schemas"]["Error"];
|
|
14407
|
+
};
|
|
14408
|
+
};
|
|
14409
|
+
};
|
|
14410
|
+
};
|
|
14411
|
+
put?: never;
|
|
14412
|
+
post?: never;
|
|
14413
|
+
delete?: never;
|
|
14414
|
+
options?: never;
|
|
14415
|
+
head?: never;
|
|
14416
|
+
patch?: never;
|
|
14417
|
+
trace?: never;
|
|
14418
|
+
};
|
|
14419
|
+
"/v1/delegate-tasks/{id}/cancel": {
|
|
14420
|
+
parameters: {
|
|
14421
|
+
query?: never;
|
|
14422
|
+
header?: never;
|
|
14423
|
+
path?: never;
|
|
14424
|
+
cookie?: never;
|
|
14425
|
+
};
|
|
14426
|
+
get?: never;
|
|
14427
|
+
put?: never;
|
|
14428
|
+
/**
|
|
14429
|
+
* Cancel a delegate task
|
|
14430
|
+
* @description Stop the task after its current tool round. API keys need `DELEGATE_TASKS:WRITE`.
|
|
14431
|
+
*/
|
|
14432
|
+
post: {
|
|
14433
|
+
parameters: {
|
|
14434
|
+
query?: never;
|
|
14435
|
+
header?: never;
|
|
14436
|
+
path: {
|
|
14437
|
+
/** @description The task id (`dlg_…`). */
|
|
14438
|
+
id: string;
|
|
14439
|
+
};
|
|
14440
|
+
cookie?: never;
|
|
14441
|
+
};
|
|
14442
|
+
requestBody?: never;
|
|
14443
|
+
responses: {
|
|
14444
|
+
/** @description Cancellation requested */
|
|
14445
|
+
202: {
|
|
14446
|
+
headers: {
|
|
14447
|
+
[name: string]: unknown;
|
|
14448
|
+
};
|
|
14449
|
+
content: {
|
|
14450
|
+
"application/json": {
|
|
14451
|
+
/** @enum {boolean} */
|
|
14452
|
+
accepted: true;
|
|
14453
|
+
task: {
|
|
14454
|
+
apiKeyId: string | null;
|
|
14455
|
+
clientName: string | null;
|
|
14456
|
+
clientVersion: string | null;
|
|
14457
|
+
completedAt: string | null;
|
|
14458
|
+
context?: unknown;
|
|
14459
|
+
createdAt: string;
|
|
14460
|
+
error: string | null;
|
|
14461
|
+
id: string;
|
|
14462
|
+
instruction: string;
|
|
14463
|
+
lastEventSeq: number;
|
|
14464
|
+
modelRoundCount: number;
|
|
14465
|
+
organizationId: string;
|
|
14466
|
+
question: string | null;
|
|
14467
|
+
result: {
|
|
14468
|
+
links: {
|
|
14469
|
+
label: string;
|
|
14470
|
+
/** Format: uri */
|
|
14471
|
+
url: string;
|
|
14472
|
+
}[];
|
|
14473
|
+
modelRoundCount: number;
|
|
14474
|
+
summary: string;
|
|
14475
|
+
toolCallCount: number;
|
|
14476
|
+
totalCost?: number;
|
|
14477
|
+
touchedEntities: {
|
|
14478
|
+
/** @enum {string} */
|
|
14479
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14480
|
+
id: string;
|
|
14481
|
+
kind: string;
|
|
14482
|
+
name?: string;
|
|
14483
|
+
}[];
|
|
14484
|
+
warnings?: string[];
|
|
14485
|
+
} | null;
|
|
14486
|
+
startedAt: string | null;
|
|
14487
|
+
/** @enum {string} */
|
|
14488
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
14489
|
+
summary: string | null;
|
|
14490
|
+
toolCallCount: number;
|
|
14491
|
+
totalCost: number | null;
|
|
14492
|
+
touchedEntities: {
|
|
14493
|
+
/** @enum {string} */
|
|
14494
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14495
|
+
id: string;
|
|
14496
|
+
kind: string;
|
|
14497
|
+
name?: string;
|
|
14498
|
+
}[];
|
|
14499
|
+
updatedAt: string;
|
|
14500
|
+
userId: string;
|
|
14501
|
+
};
|
|
14502
|
+
};
|
|
14503
|
+
};
|
|
14504
|
+
};
|
|
14505
|
+
/** @description Unauthorized */
|
|
14506
|
+
401: {
|
|
14507
|
+
headers: {
|
|
14508
|
+
[name: string]: unknown;
|
|
14509
|
+
};
|
|
14510
|
+
content: {
|
|
14511
|
+
"application/json": components["schemas"]["Error"];
|
|
14512
|
+
};
|
|
14513
|
+
};
|
|
14514
|
+
/** @description Missing API key scope */
|
|
14515
|
+
403: {
|
|
14516
|
+
headers: {
|
|
14517
|
+
[name: string]: unknown;
|
|
14518
|
+
};
|
|
14519
|
+
content: {
|
|
14520
|
+
"application/json": components["schemas"]["Error"];
|
|
14521
|
+
};
|
|
14522
|
+
};
|
|
14523
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14524
|
+
404: {
|
|
14525
|
+
headers: {
|
|
14526
|
+
[name: string]: unknown;
|
|
14527
|
+
};
|
|
14528
|
+
content: {
|
|
14529
|
+
"application/json": components["schemas"]["Error"];
|
|
14530
|
+
};
|
|
14531
|
+
};
|
|
14532
|
+
/** @description The task has already settled */
|
|
14533
|
+
409: {
|
|
14534
|
+
headers: {
|
|
14535
|
+
[name: string]: unknown;
|
|
14536
|
+
};
|
|
14537
|
+
content: {
|
|
14538
|
+
"application/json": components["schemas"]["Error"];
|
|
14539
|
+
};
|
|
14540
|
+
};
|
|
14541
|
+
/** @description The operator agent is not available on this deployment */
|
|
14542
|
+
503: {
|
|
14543
|
+
headers: {
|
|
14544
|
+
[name: string]: unknown;
|
|
14545
|
+
};
|
|
14546
|
+
content: {
|
|
14547
|
+
"application/json": components["schemas"]["Error"];
|
|
14548
|
+
};
|
|
14549
|
+
};
|
|
14550
|
+
};
|
|
14551
|
+
};
|
|
14552
|
+
delete?: never;
|
|
14553
|
+
options?: never;
|
|
14554
|
+
head?: never;
|
|
14555
|
+
patch?: never;
|
|
14556
|
+
trace?: never;
|
|
14557
|
+
};
|
|
14558
|
+
"/v1/delegate-tasks/{id}/events": {
|
|
14559
|
+
parameters: {
|
|
14560
|
+
query?: never;
|
|
14561
|
+
header?: never;
|
|
14562
|
+
path?: never;
|
|
14563
|
+
cookie?: never;
|
|
14564
|
+
};
|
|
14565
|
+
/**
|
|
14566
|
+
* Stream a delegate task
|
|
14567
|
+
* @description Server-Sent Events: the journal past `after`, then a live tail until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>`.
|
|
14568
|
+
*/
|
|
14569
|
+
get: {
|
|
14570
|
+
parameters: {
|
|
14571
|
+
query?: {
|
|
14572
|
+
after?: number | null;
|
|
14573
|
+
};
|
|
14574
|
+
header?: never;
|
|
14575
|
+
path: {
|
|
14576
|
+
/** @description The task id (`dlg_…`). */
|
|
14577
|
+
id: string;
|
|
14578
|
+
};
|
|
14579
|
+
cookie?: never;
|
|
14580
|
+
};
|
|
14581
|
+
requestBody?: never;
|
|
14582
|
+
responses: {
|
|
14583
|
+
/** @description Server-Sent Events stream (replay followed by a live tail) */
|
|
14584
|
+
200: {
|
|
14585
|
+
headers: {
|
|
14586
|
+
[name: string]: unknown;
|
|
14587
|
+
};
|
|
14588
|
+
content: {
|
|
14589
|
+
"text/event-stream": unknown;
|
|
14590
|
+
};
|
|
14591
|
+
};
|
|
14592
|
+
/** @description Unauthorized */
|
|
14593
|
+
401: {
|
|
14594
|
+
headers: {
|
|
14595
|
+
[name: string]: unknown;
|
|
14596
|
+
};
|
|
14597
|
+
content: {
|
|
14598
|
+
"application/json": components["schemas"]["Error"];
|
|
14599
|
+
};
|
|
14600
|
+
};
|
|
14601
|
+
/** @description Missing API key scope */
|
|
14602
|
+
403: {
|
|
14603
|
+
headers: {
|
|
14604
|
+
[name: string]: unknown;
|
|
14605
|
+
};
|
|
14606
|
+
content: {
|
|
14607
|
+
"application/json": components["schemas"]["Error"];
|
|
14608
|
+
};
|
|
14609
|
+
};
|
|
14610
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14611
|
+
404: {
|
|
14612
|
+
headers: {
|
|
14613
|
+
[name: string]: unknown;
|
|
14614
|
+
};
|
|
14615
|
+
content: {
|
|
14616
|
+
"application/json": components["schemas"]["Error"];
|
|
14617
|
+
};
|
|
14618
|
+
};
|
|
14619
|
+
/** @description The operator agent is not available on this deployment */
|
|
14620
|
+
503: {
|
|
14621
|
+
headers: {
|
|
14622
|
+
[name: string]: unknown;
|
|
14623
|
+
};
|
|
14624
|
+
content: {
|
|
14625
|
+
"application/json": components["schemas"]["Error"];
|
|
14626
|
+
};
|
|
14627
|
+
};
|
|
14628
|
+
};
|
|
14629
|
+
};
|
|
14630
|
+
put?: never;
|
|
14631
|
+
post?: never;
|
|
14632
|
+
delete?: never;
|
|
14633
|
+
options?: never;
|
|
14634
|
+
head?: never;
|
|
14635
|
+
patch?: never;
|
|
14636
|
+
trace?: never;
|
|
14637
|
+
};
|
|
14638
|
+
"/v1/delegate-tasks/{id}/messages": {
|
|
14639
|
+
parameters: {
|
|
14640
|
+
query?: never;
|
|
14641
|
+
header?: never;
|
|
14642
|
+
path?: never;
|
|
14643
|
+
cookie?: never;
|
|
14644
|
+
};
|
|
14645
|
+
get?: never;
|
|
14646
|
+
put?: never;
|
|
14647
|
+
/**
|
|
14648
|
+
* Send a message to a delegate task
|
|
14649
|
+
* @description Answer a question the task asked (status `input_required`) or add a follow-up instruction to a running task. Only the principal that started the task (the same user, and the same API key when one started it) may message it, because the task keeps acting with that principal's authority. API keys need `DELEGATE_TASKS:WRITE`.
|
|
14650
|
+
*/
|
|
14651
|
+
post: {
|
|
14652
|
+
parameters: {
|
|
14653
|
+
query?: never;
|
|
14654
|
+
header?: never;
|
|
14655
|
+
path: {
|
|
14656
|
+
/** @description The task id (`dlg_…`). */
|
|
14657
|
+
id: string;
|
|
14658
|
+
};
|
|
14659
|
+
cookie?: never;
|
|
14660
|
+
};
|
|
14661
|
+
requestBody?: {
|
|
14662
|
+
content: {
|
|
14663
|
+
"application/json": {
|
|
14664
|
+
message: string;
|
|
14665
|
+
};
|
|
14666
|
+
};
|
|
14667
|
+
};
|
|
14668
|
+
responses: {
|
|
14669
|
+
/** @description Accepted */
|
|
14670
|
+
202: {
|
|
14671
|
+
headers: {
|
|
14672
|
+
[name: string]: unknown;
|
|
14673
|
+
};
|
|
14674
|
+
content: {
|
|
14675
|
+
"application/json": {
|
|
14676
|
+
/** @enum {boolean} */
|
|
14677
|
+
accepted: true;
|
|
14678
|
+
task: {
|
|
14679
|
+
apiKeyId: string | null;
|
|
14680
|
+
clientName: string | null;
|
|
14681
|
+
clientVersion: string | null;
|
|
14682
|
+
completedAt: string | null;
|
|
14683
|
+
context?: unknown;
|
|
14684
|
+
createdAt: string;
|
|
14685
|
+
error: string | null;
|
|
14686
|
+
id: string;
|
|
14687
|
+
instruction: string;
|
|
14688
|
+
lastEventSeq: number;
|
|
14689
|
+
modelRoundCount: number;
|
|
14690
|
+
organizationId: string;
|
|
14691
|
+
question: string | null;
|
|
14692
|
+
result: {
|
|
14693
|
+
links: {
|
|
14694
|
+
label: string;
|
|
14695
|
+
/** Format: uri */
|
|
14696
|
+
url: string;
|
|
14697
|
+
}[];
|
|
14698
|
+
modelRoundCount: number;
|
|
14699
|
+
summary: string;
|
|
14700
|
+
toolCallCount: number;
|
|
14701
|
+
totalCost?: number;
|
|
14702
|
+
touchedEntities: {
|
|
14703
|
+
/** @enum {string} */
|
|
14704
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14705
|
+
id: string;
|
|
14706
|
+
kind: string;
|
|
14707
|
+
name?: string;
|
|
14708
|
+
}[];
|
|
14709
|
+
warnings?: string[];
|
|
14710
|
+
} | null;
|
|
14711
|
+
startedAt: string | null;
|
|
14712
|
+
/** @enum {string} */
|
|
14713
|
+
status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
|
|
14714
|
+
summary: string | null;
|
|
14715
|
+
toolCallCount: number;
|
|
14716
|
+
totalCost: number | null;
|
|
14717
|
+
touchedEntities: {
|
|
14718
|
+
/** @enum {string} */
|
|
14719
|
+
action: "created" | "updated" | "deleted" | "executed" | "read";
|
|
14720
|
+
id: string;
|
|
14721
|
+
kind: string;
|
|
14722
|
+
name?: string;
|
|
14723
|
+
}[];
|
|
14724
|
+
updatedAt: string;
|
|
14725
|
+
userId: string;
|
|
14726
|
+
};
|
|
14727
|
+
};
|
|
14728
|
+
};
|
|
14729
|
+
};
|
|
14730
|
+
/** @description Unauthorized */
|
|
14731
|
+
401: {
|
|
14732
|
+
headers: {
|
|
14733
|
+
[name: string]: unknown;
|
|
14734
|
+
};
|
|
14735
|
+
content: {
|
|
14736
|
+
"application/json": components["schemas"]["Error"];
|
|
14737
|
+
};
|
|
14738
|
+
};
|
|
14739
|
+
/** @description Missing API key scope, or the caller is not the principal that started the task */
|
|
14740
|
+
403: {
|
|
14741
|
+
headers: {
|
|
14742
|
+
[name: string]: unknown;
|
|
14743
|
+
};
|
|
14744
|
+
content: {
|
|
14745
|
+
"application/json": components["schemas"]["Error"];
|
|
14746
|
+
};
|
|
14747
|
+
};
|
|
14748
|
+
/** @description Feature disabled, or no such task in this organization */
|
|
14749
|
+
404: {
|
|
14750
|
+
headers: {
|
|
14751
|
+
[name: string]: unknown;
|
|
14752
|
+
};
|
|
14753
|
+
content: {
|
|
14754
|
+
"application/json": components["schemas"]["Error"];
|
|
14755
|
+
};
|
|
14756
|
+
};
|
|
14757
|
+
/** @description The task has already settled */
|
|
14758
|
+
409: {
|
|
14759
|
+
headers: {
|
|
14760
|
+
[name: string]: unknown;
|
|
14761
|
+
};
|
|
14762
|
+
content: {
|
|
14763
|
+
"application/json": components["schemas"]["Error"];
|
|
14764
|
+
};
|
|
14765
|
+
};
|
|
14766
|
+
/** @description The operator agent is not available on this deployment */
|
|
14767
|
+
503: {
|
|
14768
|
+
headers: {
|
|
14769
|
+
[name: string]: unknown;
|
|
14770
|
+
};
|
|
14771
|
+
content: {
|
|
14772
|
+
"application/json": components["schemas"]["Error"];
|
|
14773
|
+
};
|
|
14774
|
+
};
|
|
14775
|
+
};
|
|
14776
|
+
};
|
|
14777
|
+
delete?: never;
|
|
14778
|
+
options?: never;
|
|
14779
|
+
head?: never;
|
|
14780
|
+
patch?: never;
|
|
14781
|
+
trace?: never;
|
|
14782
|
+
};
|
|
13789
14783
|
"/v1/devices": {
|
|
13790
14784
|
parameters: {
|
|
13791
14785
|
query?: never;
|
|
@@ -16622,194 +17616,353 @@ interface paths {
|
|
|
16622
17616
|
[name: string]: unknown;
|
|
16623
17617
|
};
|
|
16624
17618
|
content: {
|
|
16625
|
-
"application/json": components["schemas"]["
|
|
17619
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17620
|
+
};
|
|
17621
|
+
};
|
|
17622
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17623
|
+
503: {
|
|
17624
|
+
headers: {
|
|
17625
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17626
|
+
"Retry-After": string;
|
|
17627
|
+
[name: string]: unknown;
|
|
17628
|
+
};
|
|
17629
|
+
content: {
|
|
17630
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17631
|
+
};
|
|
17632
|
+
};
|
|
17633
|
+
};
|
|
17634
|
+
};
|
|
17635
|
+
delete?: never;
|
|
17636
|
+
options?: never;
|
|
17637
|
+
head?: never;
|
|
17638
|
+
patch?: never;
|
|
17639
|
+
trace?: never;
|
|
17640
|
+
};
|
|
17641
|
+
"/v1/eval/batches": {
|
|
17642
|
+
parameters: {
|
|
17643
|
+
query?: never;
|
|
17644
|
+
header?: never;
|
|
17645
|
+
path?: never;
|
|
17646
|
+
cookie?: never;
|
|
17647
|
+
};
|
|
17648
|
+
/**
|
|
17649
|
+
* List eval batches
|
|
17650
|
+
* @description List all eval batches for the current user with optional filtering and pagination.
|
|
17651
|
+
*/
|
|
17652
|
+
get: {
|
|
17653
|
+
parameters: {
|
|
17654
|
+
query?: {
|
|
17655
|
+
/** @description Number of results (default 50, max 100) */
|
|
17656
|
+
limit?: string;
|
|
17657
|
+
/** @description Pagination offset */
|
|
17658
|
+
offset?: string;
|
|
17659
|
+
/** @description Filter by status (queued|processing|completed|failed) */
|
|
17660
|
+
status?: string;
|
|
17661
|
+
/** @description Filter by run origin: "suite" = runs linked to an eval suite (CI gates, suite Run button); "adhoc" = suite-less runs (ad-hoc config comparisons, legacy evals). */
|
|
17662
|
+
origin?: "suite" | "adhoc";
|
|
17663
|
+
/** @description Filter to runs of a specific eval suite. Server-side, so a suite with sparse runs is not crowded out of the page by other suites. */
|
|
17664
|
+
evalSuiteId?: string;
|
|
17665
|
+
};
|
|
17666
|
+
header?: never;
|
|
17667
|
+
path?: never;
|
|
17668
|
+
cookie?: never;
|
|
17669
|
+
};
|
|
17670
|
+
requestBody?: never;
|
|
17671
|
+
responses: {
|
|
17672
|
+
/** @description Eval batches returned */
|
|
17673
|
+
200: {
|
|
17674
|
+
headers: {
|
|
17675
|
+
[name: string]: unknown;
|
|
17676
|
+
};
|
|
17677
|
+
content: {
|
|
17678
|
+
"application/json": {
|
|
17679
|
+
batches: {
|
|
17680
|
+
[key: string]: unknown;
|
|
17681
|
+
}[];
|
|
17682
|
+
count: number;
|
|
17683
|
+
/** @description True when this page came back full — there may be more rows past it. */
|
|
17684
|
+
hasMore: boolean;
|
|
17685
|
+
limit: number;
|
|
17686
|
+
offset: number;
|
|
17687
|
+
};
|
|
17688
|
+
};
|
|
17689
|
+
};
|
|
17690
|
+
/** @description Unauthorized */
|
|
17691
|
+
401: {
|
|
17692
|
+
headers: {
|
|
17693
|
+
[name: string]: unknown;
|
|
17694
|
+
};
|
|
17695
|
+
content: {
|
|
17696
|
+
"application/json": components["schemas"]["Error"];
|
|
17697
|
+
};
|
|
17698
|
+
};
|
|
17699
|
+
/** @description Internal server error */
|
|
17700
|
+
500: {
|
|
17701
|
+
headers: {
|
|
17702
|
+
[name: string]: unknown;
|
|
17703
|
+
};
|
|
17704
|
+
content: {
|
|
17705
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17706
|
+
};
|
|
17707
|
+
};
|
|
17708
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17709
|
+
503: {
|
|
17710
|
+
headers: {
|
|
17711
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17712
|
+
"Retry-After": string;
|
|
17713
|
+
[name: string]: unknown;
|
|
17714
|
+
};
|
|
17715
|
+
content: {
|
|
17716
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17717
|
+
};
|
|
17718
|
+
};
|
|
17719
|
+
};
|
|
17720
|
+
};
|
|
17721
|
+
put?: never;
|
|
17722
|
+
post?: never;
|
|
17723
|
+
delete?: never;
|
|
17724
|
+
options?: never;
|
|
17725
|
+
head?: never;
|
|
17726
|
+
patch?: never;
|
|
17727
|
+
trace?: never;
|
|
17728
|
+
};
|
|
17729
|
+
"/v1/eval/compare": {
|
|
17730
|
+
parameters: {
|
|
17731
|
+
query?: never;
|
|
17732
|
+
header?: never;
|
|
17733
|
+
path?: never;
|
|
17734
|
+
cookie?: never;
|
|
17735
|
+
};
|
|
17736
|
+
get?: never;
|
|
17737
|
+
put?: never;
|
|
17738
|
+
/**
|
|
17739
|
+
* Compare evals
|
|
17740
|
+
* @description Compare aggregate metrics across eval batches in a group.
|
|
17741
|
+
*/
|
|
17742
|
+
post: {
|
|
17743
|
+
parameters: {
|
|
17744
|
+
query?: never;
|
|
17745
|
+
header?: never;
|
|
17746
|
+
path?: never;
|
|
17747
|
+
cookie?: never;
|
|
17748
|
+
};
|
|
17749
|
+
requestBody?: {
|
|
17750
|
+
content: {
|
|
17751
|
+
"application/json": {
|
|
17752
|
+
evalGroupId: string;
|
|
17753
|
+
stepIds?: string[];
|
|
17754
|
+
};
|
|
17755
|
+
};
|
|
17756
|
+
};
|
|
17757
|
+
responses: {
|
|
17758
|
+
/** @description Comparison returned */
|
|
17759
|
+
200: {
|
|
17760
|
+
headers: {
|
|
17761
|
+
[name: string]: unknown;
|
|
17762
|
+
};
|
|
17763
|
+
content: {
|
|
17764
|
+
"application/json": {
|
|
17765
|
+
evalGroupId: string;
|
|
17766
|
+
evals: {
|
|
17767
|
+
batchExecutionId: string;
|
|
17768
|
+
evalConfig?: unknown;
|
|
17769
|
+
evalName?: string;
|
|
17770
|
+
metrics: {
|
|
17771
|
+
avgCostPerRecord: number;
|
|
17772
|
+
avgDurationPerRecord: number;
|
|
17773
|
+
failedSteps: number;
|
|
17774
|
+
successRate: number;
|
|
17775
|
+
successfulSteps: number;
|
|
17776
|
+
totalCompletionTokens: number;
|
|
17777
|
+
totalCost: number;
|
|
17778
|
+
totalDurationMs: number;
|
|
17779
|
+
totalPromptTokens: number;
|
|
17780
|
+
totalSteps: number;
|
|
17781
|
+
};
|
|
17782
|
+
}[];
|
|
17783
|
+
};
|
|
17784
|
+
};
|
|
17785
|
+
};
|
|
17786
|
+
/** @description Invalid request */
|
|
17787
|
+
400: {
|
|
17788
|
+
headers: {
|
|
17789
|
+
[name: string]: unknown;
|
|
17790
|
+
};
|
|
17791
|
+
content: {
|
|
17792
|
+
"application/json": components["schemas"]["Error"];
|
|
17793
|
+
};
|
|
17794
|
+
};
|
|
17795
|
+
/** @description Unauthorized */
|
|
17796
|
+
401: {
|
|
17797
|
+
headers: {
|
|
17798
|
+
[name: string]: unknown;
|
|
17799
|
+
};
|
|
17800
|
+
content: {
|
|
17801
|
+
"application/json": components["schemas"]["Error"];
|
|
17802
|
+
};
|
|
17803
|
+
};
|
|
17804
|
+
/** @description Forbidden */
|
|
17805
|
+
403: {
|
|
17806
|
+
headers: {
|
|
17807
|
+
[name: string]: unknown;
|
|
17808
|
+
};
|
|
17809
|
+
content: {
|
|
17810
|
+
"application/json": components["schemas"]["Error"];
|
|
17811
|
+
};
|
|
17812
|
+
};
|
|
17813
|
+
/** @description Not found */
|
|
17814
|
+
404: {
|
|
17815
|
+
headers: {
|
|
17816
|
+
[name: string]: unknown;
|
|
17817
|
+
};
|
|
17818
|
+
content: {
|
|
17819
|
+
"application/json": components["schemas"]["Error"];
|
|
17820
|
+
};
|
|
17821
|
+
};
|
|
17822
|
+
/** @description Internal server error */
|
|
17823
|
+
500: {
|
|
17824
|
+
headers: {
|
|
17825
|
+
[name: string]: unknown;
|
|
17826
|
+
};
|
|
17827
|
+
content: {
|
|
17828
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17829
|
+
};
|
|
17830
|
+
};
|
|
17831
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17832
|
+
503: {
|
|
17833
|
+
headers: {
|
|
17834
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17835
|
+
"Retry-After": string;
|
|
17836
|
+
[name: string]: unknown;
|
|
17837
|
+
};
|
|
17838
|
+
content: {
|
|
17839
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17840
|
+
};
|
|
17841
|
+
};
|
|
17842
|
+
};
|
|
17843
|
+
};
|
|
17844
|
+
delete?: never;
|
|
17845
|
+
options?: never;
|
|
17846
|
+
head?: never;
|
|
17847
|
+
patch?: never;
|
|
17848
|
+
trace?: never;
|
|
17849
|
+
};
|
|
17850
|
+
"/v1/eval/compare-record": {
|
|
17851
|
+
parameters: {
|
|
17852
|
+
query?: never;
|
|
17853
|
+
header?: never;
|
|
17854
|
+
path?: never;
|
|
17855
|
+
cookie?: never;
|
|
17856
|
+
};
|
|
17857
|
+
get?: never;
|
|
17858
|
+
put?: never;
|
|
17859
|
+
/**
|
|
17860
|
+
* Compare record across evals
|
|
17861
|
+
* @description Compare results for a specific record across eval batches in a group.
|
|
17862
|
+
*/
|
|
17863
|
+
post: {
|
|
17864
|
+
parameters: {
|
|
17865
|
+
query?: never;
|
|
17866
|
+
header?: never;
|
|
17867
|
+
path?: never;
|
|
17868
|
+
cookie?: never;
|
|
17869
|
+
};
|
|
17870
|
+
requestBody?: {
|
|
17871
|
+
content: {
|
|
17872
|
+
"application/json": {
|
|
17873
|
+
evalGroupId: string;
|
|
17874
|
+
recordId: string;
|
|
17875
|
+
stepIds?: string[];
|
|
17876
|
+
};
|
|
17877
|
+
};
|
|
17878
|
+
};
|
|
17879
|
+
responses: {
|
|
17880
|
+
/** @description Record comparison returned */
|
|
17881
|
+
200: {
|
|
17882
|
+
headers: {
|
|
17883
|
+
[name: string]: unknown;
|
|
17884
|
+
};
|
|
17885
|
+
content: {
|
|
17886
|
+
"application/json": {
|
|
17887
|
+
evalGroupId: string;
|
|
17888
|
+
evals: {
|
|
17889
|
+
batchExecutionId: string;
|
|
17890
|
+
evalConfig?: unknown;
|
|
17891
|
+
evalName?: string;
|
|
17892
|
+
stepResults: {
|
|
17893
|
+
completionTokens: number | null;
|
|
17894
|
+
durationMs: number | null;
|
|
17895
|
+
error?: string;
|
|
17896
|
+
executedAt: string;
|
|
17897
|
+
modelUsed: string | null;
|
|
17898
|
+
output: string | null;
|
|
17899
|
+
promptTokens: number | null;
|
|
17900
|
+
stepId: string;
|
|
17901
|
+
stepName: string | null;
|
|
17902
|
+
stepResultId: string;
|
|
17903
|
+
stepType: string;
|
|
17904
|
+
toolCalls: unknown[];
|
|
17905
|
+
totalCost: number | null;
|
|
17906
|
+
}[];
|
|
17907
|
+
}[];
|
|
17908
|
+
recordId: string;
|
|
17909
|
+
};
|
|
17910
|
+
};
|
|
17911
|
+
};
|
|
17912
|
+
/** @description Invalid request */
|
|
17913
|
+
400: {
|
|
17914
|
+
headers: {
|
|
17915
|
+
[name: string]: unknown;
|
|
17916
|
+
};
|
|
17917
|
+
content: {
|
|
17918
|
+
"application/json": components["schemas"]["Error"];
|
|
17919
|
+
};
|
|
17920
|
+
};
|
|
17921
|
+
/** @description Unauthorized */
|
|
17922
|
+
401: {
|
|
17923
|
+
headers: {
|
|
17924
|
+
[name: string]: unknown;
|
|
17925
|
+
};
|
|
17926
|
+
content: {
|
|
17927
|
+
"application/json": components["schemas"]["Error"];
|
|
17928
|
+
};
|
|
17929
|
+
};
|
|
17930
|
+
/** @description Forbidden */
|
|
17931
|
+
403: {
|
|
17932
|
+
headers: {
|
|
17933
|
+
[name: string]: unknown;
|
|
17934
|
+
};
|
|
17935
|
+
content: {
|
|
17936
|
+
"application/json": components["schemas"]["Error"];
|
|
17937
|
+
};
|
|
17938
|
+
};
|
|
17939
|
+
/** @description Not found */
|
|
17940
|
+
404: {
|
|
17941
|
+
headers: {
|
|
17942
|
+
[name: string]: unknown;
|
|
17943
|
+
};
|
|
17944
|
+
content: {
|
|
17945
|
+
"application/json": components["schemas"]["Error"];
|
|
17946
|
+
};
|
|
17947
|
+
};
|
|
17948
|
+
/** @description Internal server error */
|
|
17949
|
+
500: {
|
|
17950
|
+
headers: {
|
|
17951
|
+
[name: string]: unknown;
|
|
17952
|
+
};
|
|
17953
|
+
content: {
|
|
17954
|
+
"application/json": components["schemas"]["InternalError"];
|
|
16626
17955
|
};
|
|
16627
17956
|
};
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
delete?: never;
|
|
16631
|
-
options?: never;
|
|
16632
|
-
head?: never;
|
|
16633
|
-
patch?: never;
|
|
16634
|
-
trace?: never;
|
|
16635
|
-
};
|
|
16636
|
-
"/v1/eval/batches": {
|
|
16637
|
-
parameters: {
|
|
16638
|
-
query?: never;
|
|
16639
|
-
header?: never;
|
|
16640
|
-
path?: never;
|
|
16641
|
-
cookie?: never;
|
|
16642
|
-
};
|
|
16643
|
-
/**
|
|
16644
|
-
* List eval batches
|
|
16645
|
-
* @description List all eval batches for the current user with optional filtering and pagination.
|
|
16646
|
-
*/
|
|
16647
|
-
get: {
|
|
16648
|
-
parameters: {
|
|
16649
|
-
query?: {
|
|
16650
|
-
/** @description Number of results (default 50, max 100) */
|
|
16651
|
-
limit?: string;
|
|
16652
|
-
/** @description Pagination offset */
|
|
16653
|
-
offset?: string;
|
|
16654
|
-
/** @description Filter by status (queued|processing|completed|failed) */
|
|
16655
|
-
status?: string;
|
|
16656
|
-
/** @description Filter by run origin: "suite" = runs linked to an eval suite (CI gates, suite Run button); "adhoc" = suite-less runs (ad-hoc config comparisons, legacy evals). */
|
|
16657
|
-
origin?: "suite" | "adhoc";
|
|
16658
|
-
/** @description Filter to runs of a specific eval suite. Server-side, so a suite with sparse runs is not crowded out of the page by other suites. */
|
|
16659
|
-
evalSuiteId?: string;
|
|
16660
|
-
};
|
|
16661
|
-
header?: never;
|
|
16662
|
-
path?: never;
|
|
16663
|
-
cookie?: never;
|
|
16664
|
-
};
|
|
16665
|
-
requestBody?: never;
|
|
16666
|
-
responses: {
|
|
16667
|
-
/** @description Eval batches returned */
|
|
16668
|
-
200: {
|
|
16669
|
-
headers: {
|
|
16670
|
-
[name: string]: unknown;
|
|
16671
|
-
};
|
|
16672
|
-
content: {
|
|
16673
|
-
"application/json": {
|
|
16674
|
-
batches: {
|
|
16675
|
-
[key: string]: unknown;
|
|
16676
|
-
}[];
|
|
16677
|
-
count: number;
|
|
16678
|
-
/** @description True when this page came back full — there may be more rows past it. */
|
|
16679
|
-
hasMore: boolean;
|
|
16680
|
-
limit: number;
|
|
16681
|
-
offset: number;
|
|
16682
|
-
};
|
|
16683
|
-
};
|
|
16684
|
-
};
|
|
16685
|
-
/** @description Unauthorized */
|
|
16686
|
-
401: {
|
|
16687
|
-
headers: {
|
|
16688
|
-
[name: string]: unknown;
|
|
16689
|
-
};
|
|
16690
|
-
content: {
|
|
16691
|
-
"application/json": components["schemas"]["Error"];
|
|
16692
|
-
};
|
|
16693
|
-
};
|
|
16694
|
-
/** @description Internal server error */
|
|
16695
|
-
500: {
|
|
16696
|
-
headers: {
|
|
16697
|
-
[name: string]: unknown;
|
|
16698
|
-
};
|
|
16699
|
-
content: {
|
|
16700
|
-
"application/json": components["schemas"]["Error"];
|
|
16701
|
-
};
|
|
16702
|
-
};
|
|
16703
|
-
};
|
|
16704
|
-
};
|
|
16705
|
-
put?: never;
|
|
16706
|
-
post?: never;
|
|
16707
|
-
delete?: never;
|
|
16708
|
-
options?: never;
|
|
16709
|
-
head?: never;
|
|
16710
|
-
patch?: never;
|
|
16711
|
-
trace?: never;
|
|
16712
|
-
};
|
|
16713
|
-
"/v1/eval/compare": {
|
|
16714
|
-
parameters: {
|
|
16715
|
-
query?: never;
|
|
16716
|
-
header?: never;
|
|
16717
|
-
path?: never;
|
|
16718
|
-
cookie?: never;
|
|
16719
|
-
};
|
|
16720
|
-
get?: never;
|
|
16721
|
-
put?: never;
|
|
16722
|
-
/**
|
|
16723
|
-
* Compare evals
|
|
16724
|
-
* @description Compare aggregate metrics across eval batches in a group.
|
|
16725
|
-
*/
|
|
16726
|
-
post: {
|
|
16727
|
-
parameters: {
|
|
16728
|
-
query?: never;
|
|
16729
|
-
header?: never;
|
|
16730
|
-
path?: never;
|
|
16731
|
-
cookie?: never;
|
|
16732
|
-
};
|
|
16733
|
-
requestBody?: {
|
|
16734
|
-
content: {
|
|
16735
|
-
"application/json": {
|
|
16736
|
-
evalGroupId: string;
|
|
16737
|
-
stepIds?: string[];
|
|
16738
|
-
};
|
|
16739
|
-
};
|
|
16740
|
-
};
|
|
16741
|
-
responses: {
|
|
16742
|
-
/** @description Comparison returned */
|
|
16743
|
-
200: {
|
|
16744
|
-
headers: {
|
|
16745
|
-
[name: string]: unknown;
|
|
16746
|
-
};
|
|
16747
|
-
content: {
|
|
16748
|
-
"application/json": {
|
|
16749
|
-
evalGroupId: string;
|
|
16750
|
-
evals: {
|
|
16751
|
-
batchExecutionId: string;
|
|
16752
|
-
evalConfig?: unknown;
|
|
16753
|
-
evalName?: string;
|
|
16754
|
-
metrics: {
|
|
16755
|
-
avgCostPerRecord: number;
|
|
16756
|
-
avgDurationPerRecord: number;
|
|
16757
|
-
failedSteps: number;
|
|
16758
|
-
successRate: number;
|
|
16759
|
-
successfulSteps: number;
|
|
16760
|
-
totalCompletionTokens: number;
|
|
16761
|
-
totalCost: number;
|
|
16762
|
-
totalDurationMs: number;
|
|
16763
|
-
totalPromptTokens: number;
|
|
16764
|
-
totalSteps: number;
|
|
16765
|
-
};
|
|
16766
|
-
}[];
|
|
16767
|
-
};
|
|
16768
|
-
};
|
|
16769
|
-
};
|
|
16770
|
-
/** @description Invalid request */
|
|
16771
|
-
400: {
|
|
16772
|
-
headers: {
|
|
16773
|
-
[name: string]: unknown;
|
|
16774
|
-
};
|
|
16775
|
-
content: {
|
|
16776
|
-
"application/json": components["schemas"]["Error"];
|
|
16777
|
-
};
|
|
16778
|
-
};
|
|
16779
|
-
/** @description Unauthorized */
|
|
16780
|
-
401: {
|
|
16781
|
-
headers: {
|
|
16782
|
-
[name: string]: unknown;
|
|
16783
|
-
};
|
|
16784
|
-
content: {
|
|
16785
|
-
"application/json": components["schemas"]["Error"];
|
|
16786
|
-
};
|
|
16787
|
-
};
|
|
16788
|
-
/** @description Forbidden */
|
|
16789
|
-
403: {
|
|
16790
|
-
headers: {
|
|
16791
|
-
[name: string]: unknown;
|
|
16792
|
-
};
|
|
16793
|
-
content: {
|
|
16794
|
-
"application/json": components["schemas"]["Error"];
|
|
16795
|
-
};
|
|
16796
|
-
};
|
|
16797
|
-
/** @description Not found */
|
|
16798
|
-
404: {
|
|
17957
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17958
|
+
503: {
|
|
16799
17959
|
headers: {
|
|
17960
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17961
|
+
"Retry-After": string;
|
|
16800
17962
|
[name: string]: unknown;
|
|
16801
17963
|
};
|
|
16802
17964
|
content: {
|
|
16803
|
-
"application/json": components["schemas"]["
|
|
16804
|
-
};
|
|
16805
|
-
};
|
|
16806
|
-
/** @description Internal server error */
|
|
16807
|
-
500: {
|
|
16808
|
-
headers: {
|
|
16809
|
-
[name: string]: unknown;
|
|
16810
|
-
};
|
|
16811
|
-
content: {
|
|
16812
|
-
"application/json": components["schemas"]["Error"];
|
|
17965
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
16813
17966
|
};
|
|
16814
17967
|
};
|
|
16815
17968
|
};
|
|
@@ -16820,7 +17973,7 @@ interface paths {
|
|
|
16820
17973
|
patch?: never;
|
|
16821
17974
|
trace?: never;
|
|
16822
17975
|
};
|
|
16823
|
-
"/v1/eval/
|
|
17976
|
+
"/v1/eval/default-suites": {
|
|
16824
17977
|
parameters: {
|
|
16825
17978
|
query?: never;
|
|
16826
17979
|
header?: never;
|
|
@@ -16830,8 +17983,8 @@ interface paths {
|
|
|
16830
17983
|
get?: never;
|
|
16831
17984
|
put?: never;
|
|
16832
17985
|
/**
|
|
16833
|
-
*
|
|
16834
|
-
* @description
|
|
17986
|
+
* Ensure default eval suites
|
|
17987
|
+
* @description Give each named flow and agent that has no eval suite an empty default suite named `<name> eval`. Idempotent: a target that already has any suite is left alone. Unknown or unowned ids are skipped.
|
|
16835
17988
|
*/
|
|
16836
17989
|
post: {
|
|
16837
17990
|
parameters: {
|
|
@@ -16843,42 +17996,20 @@ interface paths {
|
|
|
16843
17996
|
requestBody?: {
|
|
16844
17997
|
content: {
|
|
16845
17998
|
"application/json": {
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
stepIds?: string[];
|
|
17999
|
+
agentIds?: string[];
|
|
18000
|
+
flowIds?: string[];
|
|
16849
18001
|
};
|
|
16850
18002
|
};
|
|
16851
18003
|
};
|
|
16852
18004
|
responses: {
|
|
16853
|
-
/** @description
|
|
18005
|
+
/** @description Default suites ensured */
|
|
16854
18006
|
200: {
|
|
16855
18007
|
headers: {
|
|
16856
18008
|
[name: string]: unknown;
|
|
16857
18009
|
};
|
|
16858
18010
|
content: {
|
|
16859
18011
|
"application/json": {
|
|
16860
|
-
|
|
16861
|
-
evals: {
|
|
16862
|
-
batchExecutionId: string;
|
|
16863
|
-
evalConfig?: unknown;
|
|
16864
|
-
evalName?: string;
|
|
16865
|
-
stepResults: {
|
|
16866
|
-
completionTokens: number | null;
|
|
16867
|
-
durationMs: number | null;
|
|
16868
|
-
error?: string;
|
|
16869
|
-
executedAt: string;
|
|
16870
|
-
modelUsed: string | null;
|
|
16871
|
-
output: string | null;
|
|
16872
|
-
promptTokens: number | null;
|
|
16873
|
-
stepId: string;
|
|
16874
|
-
stepName: string | null;
|
|
16875
|
-
stepResultId: string;
|
|
16876
|
-
stepType: string;
|
|
16877
|
-
toolCalls: unknown[];
|
|
16878
|
-
totalCost: number | null;
|
|
16879
|
-
}[];
|
|
16880
|
-
}[];
|
|
16881
|
-
recordId: string;
|
|
18012
|
+
created: number;
|
|
16882
18013
|
};
|
|
16883
18014
|
};
|
|
16884
18015
|
};
|
|
@@ -16909,15 +18040,6 @@ interface paths {
|
|
|
16909
18040
|
"application/json": components["schemas"]["Error"];
|
|
16910
18041
|
};
|
|
16911
18042
|
};
|
|
16912
|
-
/** @description Not found */
|
|
16913
|
-
404: {
|
|
16914
|
-
headers: {
|
|
16915
|
-
[name: string]: unknown;
|
|
16916
|
-
};
|
|
16917
|
-
content: {
|
|
16918
|
-
"application/json": components["schemas"]["Error"];
|
|
16919
|
-
};
|
|
16920
|
-
};
|
|
16921
18043
|
/** @description Internal server error */
|
|
16922
18044
|
500: {
|
|
16923
18045
|
headers: {
|
|
@@ -17355,7 +18477,18 @@ interface paths {
|
|
|
17355
18477
|
[name: string]: unknown;
|
|
17356
18478
|
};
|
|
17357
18479
|
content: {
|
|
17358
|
-
"application/json": components["schemas"]["
|
|
18480
|
+
"application/json": components["schemas"]["InternalError"];
|
|
18481
|
+
};
|
|
18482
|
+
};
|
|
18483
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
18484
|
+
503: {
|
|
18485
|
+
headers: {
|
|
18486
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
18487
|
+
"Retry-After": string;
|
|
18488
|
+
[name: string]: unknown;
|
|
18489
|
+
};
|
|
18490
|
+
content: {
|
|
18491
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17359
18492
|
};
|
|
17360
18493
|
};
|
|
17361
18494
|
};
|
|
@@ -17593,7 +18726,7 @@ interface paths {
|
|
|
17593
18726
|
[name: string]: unknown;
|
|
17594
18727
|
};
|
|
17595
18728
|
content: {
|
|
17596
|
-
"application/json": components["schemas"]["
|
|
18729
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17597
18730
|
};
|
|
17598
18731
|
};
|
|
17599
18732
|
/** @description Forbidden */
|
|
@@ -17620,7 +18753,18 @@ interface paths {
|
|
|
17620
18753
|
[name: string]: unknown;
|
|
17621
18754
|
};
|
|
17622
18755
|
content: {
|
|
17623
|
-
"application/json": components["schemas"]["
|
|
18756
|
+
"application/json": components["schemas"]["InternalError"];
|
|
18757
|
+
};
|
|
18758
|
+
};
|
|
18759
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
18760
|
+
503: {
|
|
18761
|
+
headers: {
|
|
18762
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
18763
|
+
"Retry-After": string;
|
|
18764
|
+
[name: string]: unknown;
|
|
18765
|
+
};
|
|
18766
|
+
content: {
|
|
18767
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17624
18768
|
};
|
|
17625
18769
|
};
|
|
17626
18770
|
};
|
|
@@ -17867,7 +19011,7 @@ interface paths {
|
|
|
17867
19011
|
[name: string]: unknown;
|
|
17868
19012
|
};
|
|
17869
19013
|
content: {
|
|
17870
|
-
"application/json": components["schemas"]["
|
|
19014
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17871
19015
|
};
|
|
17872
19016
|
};
|
|
17873
19017
|
/** @description Forbidden */
|
|
@@ -17885,7 +19029,18 @@ interface paths {
|
|
|
17885
19029
|
[name: string]: unknown;
|
|
17886
19030
|
};
|
|
17887
19031
|
content: {
|
|
17888
|
-
"application/json": components["schemas"]["
|
|
19032
|
+
"application/json": components["schemas"]["InternalError"];
|
|
19033
|
+
};
|
|
19034
|
+
};
|
|
19035
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
19036
|
+
503: {
|
|
19037
|
+
headers: {
|
|
19038
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
19039
|
+
"Retry-After": string;
|
|
19040
|
+
[name: string]: unknown;
|
|
19041
|
+
};
|
|
19042
|
+
content: {
|
|
19043
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17889
19044
|
};
|
|
17890
19045
|
};
|
|
17891
19046
|
};
|
|
@@ -17922,6 +19077,10 @@ interface paths {
|
|
|
17922
19077
|
agent?: components["schemas"]["EvalAgentSelector"] & unknown;
|
|
17923
19078
|
evalConfig?: components["schemas"]["EvalConfigRequest"];
|
|
17924
19079
|
evalConfigs?: components["schemas"]["EvalConfigRequest"][];
|
|
19080
|
+
/** @description Flow input variables applied to every record execution, as on POST /batch/flow: they override same-named record metadata at the top level and leave _record.metadata unchanged. Flow targets only. */
|
|
19081
|
+
inputs?: {
|
|
19082
|
+
[key: string]: unknown;
|
|
19083
|
+
} | null;
|
|
17925
19084
|
} & {
|
|
17926
19085
|
[key: string]: unknown;
|
|
17927
19086
|
};
|
|
@@ -17974,7 +19133,7 @@ interface paths {
|
|
|
17974
19133
|
[name: string]: unknown;
|
|
17975
19134
|
};
|
|
17976
19135
|
content: {
|
|
17977
|
-
"application/json": components["schemas"]["
|
|
19136
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17978
19137
|
};
|
|
17979
19138
|
};
|
|
17980
19139
|
/** @description Forbidden */
|
|
@@ -18001,7 +19160,18 @@ interface paths {
|
|
|
18001
19160
|
[name: string]: unknown;
|
|
18002
19161
|
};
|
|
18003
19162
|
content: {
|
|
18004
|
-
"application/json": components["schemas"]["
|
|
19163
|
+
"application/json": components["schemas"]["InternalError"];
|
|
19164
|
+
};
|
|
19165
|
+
};
|
|
19166
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
19167
|
+
503: {
|
|
19168
|
+
headers: {
|
|
19169
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
19170
|
+
"Retry-After": string;
|
|
19171
|
+
[name: string]: unknown;
|
|
19172
|
+
};
|
|
19173
|
+
content: {
|
|
19174
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
18005
19175
|
};
|
|
18006
19176
|
};
|
|
18007
19177
|
};
|
|
@@ -18145,6 +19315,14 @@ interface paths {
|
|
|
18145
19315
|
toolName: string;
|
|
18146
19316
|
}[];
|
|
18147
19317
|
}[];
|
|
19318
|
+
/** @description The record this case runs on, read by the flow as _record.name, _record.type and _record.metadata.*. Omitted fields keep the defaults: a record of type "eval" with empty metadata. Case variables still override same-named metadata fields at the top level. */
|
|
19319
|
+
record?: {
|
|
19320
|
+
metadata?: {
|
|
19321
|
+
[key: string]: unknown;
|
|
19322
|
+
};
|
|
19323
|
+
name?: string;
|
|
19324
|
+
type?: string;
|
|
19325
|
+
};
|
|
18148
19326
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18149
19327
|
tenant?: {
|
|
18150
19328
|
id: string;
|
|
@@ -18596,6 +19774,14 @@ interface paths {
|
|
|
18596
19774
|
toolName: string;
|
|
18597
19775
|
}[];
|
|
18598
19776
|
}[];
|
|
19777
|
+
/** @description The record this case runs on, read by the flow as _record.name, _record.type and _record.metadata.*. Omitted fields keep the defaults: a record of type "eval" with empty metadata. Case variables still override same-named metadata fields at the top level. */
|
|
19778
|
+
record?: {
|
|
19779
|
+
metadata?: {
|
|
19780
|
+
[key: string]: unknown;
|
|
19781
|
+
};
|
|
19782
|
+
name?: string;
|
|
19783
|
+
type?: string;
|
|
19784
|
+
};
|
|
18599
19785
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18600
19786
|
tenant?: {
|
|
18601
19787
|
id: string;
|
|
@@ -18927,6 +20113,14 @@ interface paths {
|
|
|
18927
20113
|
toolName: string;
|
|
18928
20114
|
}[];
|
|
18929
20115
|
}[];
|
|
20116
|
+
/** @description The record this case runs on, read by the flow as _record.name, _record.type and _record.metadata.*. Omitted fields keep the defaults: a record of type "eval" with empty metadata. Case variables still override same-named metadata fields at the top level. */
|
|
20117
|
+
record?: {
|
|
20118
|
+
metadata?: {
|
|
20119
|
+
[key: string]: unknown;
|
|
20120
|
+
};
|
|
20121
|
+
name?: string;
|
|
20122
|
+
type?: string;
|
|
20123
|
+
};
|
|
18930
20124
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18931
20125
|
tenant?: {
|
|
18932
20126
|
id: string;
|
|
@@ -19168,7 +20362,7 @@ interface paths {
|
|
|
19168
20362
|
[name: string]: unknown;
|
|
19169
20363
|
};
|
|
19170
20364
|
content: {
|
|
19171
|
-
"application/json": components["schemas"]["
|
|
20365
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
19172
20366
|
};
|
|
19173
20367
|
};
|
|
19174
20368
|
/** @description Forbidden */
|
|
@@ -19646,7 +20840,7 @@ interface paths {
|
|
|
19646
20840
|
[name: string]: unknown;
|
|
19647
20841
|
};
|
|
19648
20842
|
content: {
|
|
19649
|
-
"application/json": components["schemas"]["
|
|
20843
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
19650
20844
|
};
|
|
19651
20845
|
};
|
|
19652
20846
|
/** @description Forbidden */
|
|
@@ -19682,7 +20876,18 @@ interface paths {
|
|
|
19682
20876
|
[name: string]: unknown;
|
|
19683
20877
|
};
|
|
19684
20878
|
content: {
|
|
19685
|
-
"application/json": components["schemas"]["
|
|
20879
|
+
"application/json": components["schemas"]["InternalError"];
|
|
20880
|
+
};
|
|
20881
|
+
};
|
|
20882
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
20883
|
+
503: {
|
|
20884
|
+
headers: {
|
|
20885
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
20886
|
+
"Retry-After": string;
|
|
20887
|
+
[name: string]: unknown;
|
|
20888
|
+
};
|
|
20889
|
+
content: {
|
|
20890
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
19686
20891
|
};
|
|
19687
20892
|
};
|
|
19688
20893
|
};
|
|
@@ -19825,7 +21030,18 @@ interface paths {
|
|
|
19825
21030
|
[name: string]: unknown;
|
|
19826
21031
|
};
|
|
19827
21032
|
content: {
|
|
19828
|
-
"application/json": components["schemas"]["
|
|
21033
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21034
|
+
};
|
|
21035
|
+
};
|
|
21036
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21037
|
+
503: {
|
|
21038
|
+
headers: {
|
|
21039
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21040
|
+
"Retry-After": string;
|
|
21041
|
+
[name: string]: unknown;
|
|
21042
|
+
};
|
|
21043
|
+
content: {
|
|
21044
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
19829
21045
|
};
|
|
19830
21046
|
};
|
|
19831
21047
|
};
|
|
@@ -20400,7 +21616,18 @@ interface paths {
|
|
|
20400
21616
|
[name: string]: unknown;
|
|
20401
21617
|
};
|
|
20402
21618
|
content: {
|
|
20403
|
-
"application/json": components["schemas"]["
|
|
21619
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21620
|
+
};
|
|
21621
|
+
};
|
|
21622
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21623
|
+
503: {
|
|
21624
|
+
headers: {
|
|
21625
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21626
|
+
"Retry-After": string;
|
|
21627
|
+
[name: string]: unknown;
|
|
21628
|
+
};
|
|
21629
|
+
content: {
|
|
21630
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20404
21631
|
};
|
|
20405
21632
|
};
|
|
20406
21633
|
};
|
|
@@ -20804,6 +22031,8 @@ interface paths {
|
|
|
20804
22031
|
};
|
|
20805
22032
|
content: {
|
|
20806
22033
|
"application/json": {
|
|
22034
|
+
draftVersionId: string | null;
|
|
22035
|
+
draftVersionMatchesConfig?: boolean;
|
|
20807
22036
|
flowId: string;
|
|
20808
22037
|
publishedVersionId: string | null;
|
|
20809
22038
|
versions: {
|
|
@@ -20811,8 +22040,11 @@ interface paths {
|
|
|
20811
22040
|
id: string;
|
|
20812
22041
|
label: string | null;
|
|
20813
22042
|
notes: string | null;
|
|
22043
|
+
publishedAt: string | null;
|
|
22044
|
+
savedVersionNumber: number | null;
|
|
20814
22045
|
stepCount: number;
|
|
20815
22046
|
stepSummary: string | null;
|
|
22047
|
+
userId: string;
|
|
20816
22048
|
versionNumber: number;
|
|
20817
22049
|
versionType: string;
|
|
20818
22050
|
}[];
|
|
@@ -20852,9 +22084,18 @@ interface paths {
|
|
|
20852
22084
|
[name: string]: unknown;
|
|
20853
22085
|
};
|
|
20854
22086
|
content: {
|
|
20855
|
-
"application/json": components["schemas"]["
|
|
20856
|
-
|
|
20857
|
-
|
|
22087
|
+
"application/json": components["schemas"]["InternalError"];
|
|
22088
|
+
};
|
|
22089
|
+
};
|
|
22090
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
22091
|
+
503: {
|
|
22092
|
+
headers: {
|
|
22093
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
22094
|
+
"Retry-After": string;
|
|
22095
|
+
[name: string]: unknown;
|
|
22096
|
+
};
|
|
22097
|
+
content: {
|
|
22098
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20858
22099
|
};
|
|
20859
22100
|
};
|
|
20860
22101
|
};
|
|
@@ -20978,9 +22219,18 @@ interface paths {
|
|
|
20978
22219
|
[name: string]: unknown;
|
|
20979
22220
|
};
|
|
20980
22221
|
content: {
|
|
20981
|
-
"application/json": components["schemas"]["
|
|
20982
|
-
|
|
20983
|
-
|
|
22222
|
+
"application/json": components["schemas"]["InternalError"];
|
|
22223
|
+
};
|
|
22224
|
+
};
|
|
22225
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
22226
|
+
503: {
|
|
22227
|
+
headers: {
|
|
22228
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
22229
|
+
"Retry-After": string;
|
|
22230
|
+
[name: string]: unknown;
|
|
22231
|
+
};
|
|
22232
|
+
content: {
|
|
22233
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20984
22234
|
};
|
|
20985
22235
|
};
|
|
20986
22236
|
};
|
|
@@ -21025,6 +22275,9 @@ interface paths {
|
|
|
21025
22275
|
id: string;
|
|
21026
22276
|
label: string | null;
|
|
21027
22277
|
notes: string | null;
|
|
22278
|
+
publishedAt: string | null;
|
|
22279
|
+
savedVersionNumber: number | null;
|
|
22280
|
+
userId: string;
|
|
21028
22281
|
versionNumber: number;
|
|
21029
22282
|
versionType: string;
|
|
21030
22283
|
};
|
|
@@ -21063,9 +22316,18 @@ interface paths {
|
|
|
21063
22316
|
[name: string]: unknown;
|
|
21064
22317
|
};
|
|
21065
22318
|
content: {
|
|
21066
|
-
"application/json": components["schemas"]["
|
|
21067
|
-
|
|
21068
|
-
|
|
22319
|
+
"application/json": components["schemas"]["InternalError"];
|
|
22320
|
+
};
|
|
22321
|
+
};
|
|
22322
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
22323
|
+
503: {
|
|
22324
|
+
headers: {
|
|
22325
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
22326
|
+
"Retry-After": string;
|
|
22327
|
+
[name: string]: unknown;
|
|
22328
|
+
};
|
|
22329
|
+
content: {
|
|
22330
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
21069
22331
|
};
|
|
21070
22332
|
};
|
|
21071
22333
|
};
|
|
@@ -21113,6 +22375,9 @@ interface paths {
|
|
|
21113
22375
|
id: string;
|
|
21114
22376
|
label: string | null;
|
|
21115
22377
|
notes: string | null;
|
|
22378
|
+
publishedAt: string | null;
|
|
22379
|
+
savedVersionNumber: number | null;
|
|
22380
|
+
userId: string;
|
|
21116
22381
|
versionNumber: number;
|
|
21117
22382
|
versionType: string;
|
|
21118
22383
|
};
|
|
@@ -21160,9 +22425,18 @@ interface paths {
|
|
|
21160
22425
|
[name: string]: unknown;
|
|
21161
22426
|
};
|
|
21162
22427
|
content: {
|
|
21163
|
-
"application/json": components["schemas"]["
|
|
21164
|
-
|
|
21165
|
-
|
|
22428
|
+
"application/json": components["schemas"]["InternalError"];
|
|
22429
|
+
};
|
|
22430
|
+
};
|
|
22431
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
22432
|
+
503: {
|
|
22433
|
+
headers: {
|
|
22434
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
22435
|
+
"Retry-After": string;
|
|
22436
|
+
[name: string]: unknown;
|
|
22437
|
+
};
|
|
22438
|
+
content: {
|
|
22439
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
21166
22440
|
};
|
|
21167
22441
|
};
|
|
21168
22442
|
};
|
|
@@ -21196,6 +22470,8 @@ interface paths {
|
|
|
21196
22470
|
search?: string;
|
|
21197
22471
|
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
21198
22472
|
view?: "full" | "compact";
|
|
22473
|
+
/** @description usage adds each flow usage: the model ids its steps name and the record types its steps write. */
|
|
22474
|
+
include?: "usage";
|
|
21199
22475
|
};
|
|
21200
22476
|
header?: never;
|
|
21201
22477
|
path?: never;
|
|
@@ -21217,6 +22493,13 @@ interface paths {
|
|
|
21217
22493
|
lastRunAt: string | null;
|
|
21218
22494
|
name: string;
|
|
21219
22495
|
updatedAt: string;
|
|
22496
|
+
/** @description What the saved flow steps reach. Present only when the request asked for include=usage. */
|
|
22497
|
+
usage?: {
|
|
22498
|
+
/** @description Model ids the flow steps name, each once. */
|
|
22499
|
+
models: string[];
|
|
22500
|
+
/** @description Record types the upsert-record and update-record steps write, each once. */
|
|
22501
|
+
recordTypesWritten: string[];
|
|
22502
|
+
};
|
|
21220
22503
|
}[];
|
|
21221
22504
|
pagination: components["schemas"]["Pagination"];
|
|
21222
22505
|
};
|
|
@@ -21320,6 +22603,7 @@ interface paths {
|
|
|
21320
22603
|
createdAt: string;
|
|
21321
22604
|
dashboardUrl?: string;
|
|
21322
22605
|
description?: string | null;
|
|
22606
|
+
draftVersionId?: string | null;
|
|
21323
22607
|
flowSteps: {
|
|
21324
22608
|
config?: {
|
|
21325
22609
|
[key: string]: unknown;
|
|
@@ -21335,6 +22619,7 @@ interface paths {
|
|
|
21335
22619
|
lastRunAt?: string | null;
|
|
21336
22620
|
name: string;
|
|
21337
22621
|
organizationId: string | null;
|
|
22622
|
+
publishedVersionId?: string | null;
|
|
21338
22623
|
sampleMetadata?: {
|
|
21339
22624
|
[key: string]: unknown;
|
|
21340
22625
|
};
|
|
@@ -21617,6 +22902,7 @@ interface paths {
|
|
|
21617
22902
|
createdAt: string;
|
|
21618
22903
|
dashboardUrl?: string;
|
|
21619
22904
|
description?: string | null;
|
|
22905
|
+
draftVersionId?: string | null;
|
|
21620
22906
|
flowSteps: {
|
|
21621
22907
|
config?: {
|
|
21622
22908
|
[key: string]: unknown;
|
|
@@ -21632,6 +22918,7 @@ interface paths {
|
|
|
21632
22918
|
lastRunAt?: string | null;
|
|
21633
22919
|
name: string;
|
|
21634
22920
|
organizationId: string | null;
|
|
22921
|
+
publishedVersionId?: string | null;
|
|
21635
22922
|
sampleMetadata?: {
|
|
21636
22923
|
[key: string]: unknown;
|
|
21637
22924
|
};
|
|
@@ -21738,6 +23025,7 @@ interface paths {
|
|
|
21738
23025
|
lastRunAt?: string | null;
|
|
21739
23026
|
name: string;
|
|
21740
23027
|
organizationId: string | null;
|
|
23028
|
+
publishedVersionId?: string | null;
|
|
21741
23029
|
sampleMetadata?: {
|
|
21742
23030
|
[key: string]: unknown;
|
|
21743
23031
|
};
|
|
@@ -21878,11 +23166,11 @@ interface paths {
|
|
|
21878
23166
|
};
|
|
21879
23167
|
/**
|
|
21880
23168
|
* Export flow for runtime (limited preview)
|
|
21881
|
-
* @description Export a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume directly at boot. All step configs are inlined; no live DB queries are needed at execution time. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
|
|
23169
|
+
* @description Export a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume directly at boot. All step configs are inlined; no live DB queries are needed at execution time. A configured `decision_judge` tool carries its published question set (questions, model, version, input mapping and current calibration) at `config.questionSet`, resolved once at export so a self-hosted runtime never looks the question set up; a question set that is missing, unpublished, owned by another account, or pinned to an unpublished version is reported in `warnings` with reason `question_set_unresolved` instead of failing the export. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
|
|
21882
23170
|
*
|
|
21883
23171
|
* The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the flow's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency. The array is empty when nothing needs wiring, and the export is never refused for a declared dependency.
|
|
21884
23172
|
*
|
|
21885
|
-
* The response also carries `warnings`: each Claude Managed agent the flow references (embedded only as a stub the runtime cannot run), and each child flow or sub-agent that an embedded agent could not include, with the reason. The array is empty when every child was embedded.
|
|
23173
|
+
* The response also carries `warnings`: each Claude Managed agent the flow references (embedded only as a stub the runtime cannot run), and each child flow or sub-agent that an embedded agent could not include, with the reason, and each configured decision tool whose question set could not be resolved (`question_set_unresolved`). The array is empty when every child was embedded.
|
|
21886
23174
|
*/
|
|
21887
23175
|
get: {
|
|
21888
23176
|
parameters: {
|
|
@@ -21917,7 +23205,7 @@ interface paths {
|
|
|
21917
23205
|
steps: {
|
|
21918
23206
|
[key: string]: unknown;
|
|
21919
23207
|
}[];
|
|
21920
|
-
/** @description Referenced sub-agents and
|
|
23208
|
+
/** @description Referenced sub-agents, flows and question sets the export could not embed, each with the reason. The export still returns `200`; a tool or capability that names a dropped child is absent from the artifact. Empty when every child was embedded. */
|
|
21921
23209
|
warnings: components["schemas"]["RuntimeExportWarning"][];
|
|
21922
23210
|
};
|
|
21923
23211
|
};
|
|
@@ -22059,6 +23347,17 @@ interface paths {
|
|
|
22059
23347
|
"application/json": components["schemas"]["Error"];
|
|
22060
23348
|
};
|
|
22061
23349
|
};
|
|
23350
|
+
/** @description Flow is managed by code */
|
|
23351
|
+
409: {
|
|
23352
|
+
headers: {
|
|
23353
|
+
[name: string]: unknown;
|
|
23354
|
+
};
|
|
23355
|
+
content: {
|
|
23356
|
+
"application/json": components["schemas"]["Error"] & {
|
|
23357
|
+
code: string;
|
|
23358
|
+
};
|
|
23359
|
+
};
|
|
23360
|
+
};
|
|
22062
23361
|
/** @description Internal server error */
|
|
22063
23362
|
500: {
|
|
22064
23363
|
headers: {
|
|
@@ -26704,7 +28003,18 @@ interface paths {
|
|
|
26704
28003
|
[name: string]: unknown;
|
|
26705
28004
|
};
|
|
26706
28005
|
content: {
|
|
26707
|
-
"application/json": components["schemas"]["
|
|
28006
|
+
"application/json": components["schemas"]["InternalError"];
|
|
28007
|
+
};
|
|
28008
|
+
};
|
|
28009
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
28010
|
+
503: {
|
|
28011
|
+
headers: {
|
|
28012
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
28013
|
+
"Retry-After": string;
|
|
28014
|
+
[name: string]: unknown;
|
|
28015
|
+
};
|
|
28016
|
+
content: {
|
|
28017
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
26708
28018
|
};
|
|
26709
28019
|
};
|
|
26710
28020
|
};
|
|
@@ -26798,7 +28108,18 @@ interface paths {
|
|
|
26798
28108
|
[name: string]: unknown;
|
|
26799
28109
|
};
|
|
26800
28110
|
content: {
|
|
26801
|
-
"application/json": components["schemas"]["
|
|
28111
|
+
"application/json": components["schemas"]["InternalError"];
|
|
28112
|
+
};
|
|
28113
|
+
};
|
|
28114
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
28115
|
+
503: {
|
|
28116
|
+
headers: {
|
|
28117
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
28118
|
+
"Retry-After": string;
|
|
28119
|
+
[name: string]: unknown;
|
|
28120
|
+
};
|
|
28121
|
+
content: {
|
|
28122
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
26802
28123
|
};
|
|
26803
28124
|
};
|
|
26804
28125
|
};
|
|
@@ -29676,15 +30997,29 @@ interface paths {
|
|
|
29676
30997
|
"application/json": components["schemas"]["Error"];
|
|
29677
30998
|
};
|
|
29678
30999
|
};
|
|
29679
|
-
/** @description
|
|
31000
|
+
/** @description The SMTP server rejected the test email (`success: false`), or an internal error occurred */
|
|
29680
31001
|
500: {
|
|
29681
31002
|
headers: {
|
|
29682
31003
|
[name: string]: unknown;
|
|
29683
31004
|
};
|
|
29684
31005
|
content: {
|
|
29685
31006
|
"application/json": {
|
|
29686
|
-
|
|
29687
|
-
|
|
31007
|
+
/** @description The SMTP rejection, e.g. an authentication or relay refusal. */
|
|
31008
|
+
error: string;
|
|
31009
|
+
/** @enum {boolean} */
|
|
31010
|
+
success: false;
|
|
31011
|
+
} | components["schemas"]["InternalError"];
|
|
31012
|
+
};
|
|
31013
|
+
};
|
|
31014
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
31015
|
+
503: {
|
|
31016
|
+
headers: {
|
|
31017
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
31018
|
+
"Retry-After": string;
|
|
31019
|
+
[name: string]: unknown;
|
|
31020
|
+
};
|
|
31021
|
+
content: {
|
|
31022
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
29688
31023
|
};
|
|
29689
31024
|
};
|
|
29690
31025
|
};
|
|
@@ -30193,7 +31528,7 @@ interface paths {
|
|
|
30193
31528
|
};
|
|
30194
31529
|
/**
|
|
30195
31530
|
* List model configurations
|
|
30196
|
-
* @description Get the
|
|
31531
|
+
* @description Get every model the account can run, with enriched catalog metadata: its model configurations plus the models its organization custom inference endpoints declare (`configScope: organization_connection`). `credentialPolicy` states which providers may serve a call. Auto-provisions a default if none exist.
|
|
30197
31532
|
*/
|
|
30198
31533
|
get: {
|
|
30199
31534
|
parameters: {
|
|
@@ -30211,7 +31546,24 @@ interface paths {
|
|
|
30211
31546
|
};
|
|
30212
31547
|
content: {
|
|
30213
31548
|
"application/json": {
|
|
31549
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
31550
|
+
credentialPolicy?: {
|
|
31551
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
31552
|
+
blockedProviders: string[];
|
|
31553
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
31554
|
+
byokProviders: string[];
|
|
31555
|
+
/**
|
|
31556
|
+
* @description `byok_only`: the organization requires its own model keys; only `byokProviders` serve calls and Runtype platform keys are never used. `mixed`: some providers run on the account credentials and others on platform keys. `platform`: the account has connected no provider credentials.
|
|
31557
|
+
* @enum {string}
|
|
31558
|
+
*/
|
|
31559
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
31560
|
+
/** @description Providers served by Runtype platform keys. */
|
|
31561
|
+
platformProviders: string[];
|
|
31562
|
+
/** @description Plain-language statement of the same facts. */
|
|
31563
|
+
summary: string;
|
|
31564
|
+
};
|
|
30214
31565
|
data: {
|
|
31566
|
+
/** @description `personal` or `organization` for a stored configuration. `organization_connection` marks a model an organization custom inference endpoint declares that the caller has no stored configuration for: it is runnable, and its `id` cannot be updated, toggled, or deleted (change the connection model list instead). */
|
|
30215
31567
|
configScope?: string;
|
|
30216
31568
|
/**
|
|
30217
31569
|
* @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
|
|
@@ -30385,6 +31737,7 @@ interface paths {
|
|
|
30385
31737
|
};
|
|
30386
31738
|
content: {
|
|
30387
31739
|
"application/json": {
|
|
31740
|
+
/** @description `personal` or `organization` for a stored configuration. `organization_connection` marks a model an organization custom inference endpoint declares that the caller has no stored configuration for: it is runnable, and its `id` cannot be updated, toggled, or deleted (change the connection model list instead). */
|
|
30388
31741
|
configScope?: string;
|
|
30389
31742
|
/**
|
|
30390
31743
|
* @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
|
|
@@ -30565,6 +31918,22 @@ interface paths {
|
|
|
30565
31918
|
};
|
|
30566
31919
|
content: {
|
|
30567
31920
|
"application/json": {
|
|
31921
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
31922
|
+
credentialPolicy?: {
|
|
31923
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
31924
|
+
blockedProviders: string[];
|
|
31925
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
31926
|
+
byokProviders: string[];
|
|
31927
|
+
/**
|
|
31928
|
+
* @description `byok_only`: the organization requires its own model keys; only `byokProviders` serve calls and Runtype platform keys are never used. `mixed`: some providers run on the account credentials and others on platform keys. `platform`: the account has connected no provider credentials.
|
|
31929
|
+
* @enum {string}
|
|
31930
|
+
*/
|
|
31931
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
31932
|
+
/** @description Providers served by Runtype platform keys. */
|
|
31933
|
+
platformProviders: string[];
|
|
31934
|
+
/** @description Plain-language statement of the same facts. */
|
|
31935
|
+
summary: string;
|
|
31936
|
+
};
|
|
30568
31937
|
data: {
|
|
30569
31938
|
contextLength?: number;
|
|
30570
31939
|
costPer1kTokens: number;
|
|
@@ -30637,7 +32006,7 @@ interface paths {
|
|
|
30637
32006
|
};
|
|
30638
32007
|
/**
|
|
30639
32008
|
* Get grouped models
|
|
30640
|
-
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models.
|
|
32009
|
+
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models. The account custom models (`isCustom: true`) always follow the catalog groups; `category=custom` returns only them. `credentialPolicy` states which providers may serve a call.
|
|
30641
32010
|
*/
|
|
30642
32011
|
get: {
|
|
30643
32012
|
parameters: {
|
|
@@ -30659,6 +32028,22 @@ interface paths {
|
|
|
30659
32028
|
};
|
|
30660
32029
|
content: {
|
|
30661
32030
|
"application/json": {
|
|
32031
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
32032
|
+
credentialPolicy?: {
|
|
32033
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
32034
|
+
blockedProviders: string[];
|
|
32035
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
32036
|
+
byokProviders: string[];
|
|
32037
|
+
/**
|
|
32038
|
+
* @description `byok_only`: the organization requires its own model keys; only `byokProviders` serve calls and Runtype platform keys are never used. `mixed`: some providers run on the account credentials and others on platform keys. `platform`: the account has connected no provider credentials.
|
|
32039
|
+
* @enum {string}
|
|
32040
|
+
*/
|
|
32041
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
32042
|
+
/** @description Providers served by Runtype platform keys. */
|
|
32043
|
+
platformProviders: string[];
|
|
32044
|
+
/** @description Plain-language statement of the same facts. */
|
|
32045
|
+
summary: string;
|
|
32046
|
+
};
|
|
30662
32047
|
data: {
|
|
30663
32048
|
baseModel: string;
|
|
30664
32049
|
configuredConfigs: {
|
|
@@ -30676,6 +32061,8 @@ interface paths {
|
|
|
30676
32061
|
creditPromoMultiplier?: number;
|
|
30677
32062
|
displayName: string;
|
|
30678
32063
|
isConfigured: boolean;
|
|
32064
|
+
/** @description True for a model the account declared itself that the platform catalog does not list. `baseModel` is then the exact model id to run. */
|
|
32065
|
+
isCustom?: boolean;
|
|
30679
32066
|
lowestCost: number;
|
|
30680
32067
|
maxOutputTokens: number;
|
|
30681
32068
|
providers: {
|
|
@@ -31058,6 +32445,7 @@ interface paths {
|
|
|
31058
32445
|
};
|
|
31059
32446
|
content: {
|
|
31060
32447
|
"application/json": {
|
|
32448
|
+
/** @description `personal` or `organization` for a stored configuration. `organization_connection` marks a model an organization custom inference endpoint declares that the caller has no stored configuration for: it is runnable, and its `id` cannot be updated, toggled, or deleted (change the connection model list instead). */
|
|
31061
32449
|
configScope?: string;
|
|
31062
32450
|
/**
|
|
31063
32451
|
* @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
|
|
@@ -31336,6 +32724,7 @@ interface paths {
|
|
|
31336
32724
|
content: {
|
|
31337
32725
|
"application/json": {
|
|
31338
32726
|
data: {
|
|
32727
|
+
/** @description `personal` or `organization` for a stored configuration. `organization_connection` marks a model an organization custom inference endpoint declares that the caller has no stored configuration for: it is runnable, and its `id` cannot be updated, toggled, or deleted (change the connection model list instead). */
|
|
31339
32728
|
configScope?: string;
|
|
31340
32729
|
/**
|
|
31341
32730
|
* @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
|
|
@@ -31701,7 +33090,7 @@ interface paths {
|
|
|
31701
33090
|
[name: string]: unknown;
|
|
31702
33091
|
};
|
|
31703
33092
|
content: {
|
|
31704
|
-
"application/json": components["schemas"]["
|
|
33093
|
+
"application/json": components["schemas"]["InternalError"];
|
|
31705
33094
|
};
|
|
31706
33095
|
};
|
|
31707
33096
|
/** @description Analytics Engine not configured */
|
|
@@ -31815,7 +33204,7 @@ interface paths {
|
|
|
31815
33204
|
[name: string]: unknown;
|
|
31816
33205
|
};
|
|
31817
33206
|
content: {
|
|
31818
|
-
"application/json": components["schemas"]["
|
|
33207
|
+
"application/json": components["schemas"]["InternalError"];
|
|
31819
33208
|
};
|
|
31820
33209
|
};
|
|
31821
33210
|
/** @description Analytics Engine not configured */
|
|
@@ -31880,8 +33269,22 @@ interface paths {
|
|
|
31880
33269
|
capabilityCount: number;
|
|
31881
33270
|
createdAt: string;
|
|
31882
33271
|
description: string | null;
|
|
33272
|
+
/** @description What a Runs elsewhere product was imported from; null for any other product */
|
|
33273
|
+
externalSource: {
|
|
33274
|
+
/** @enum {string} */
|
|
33275
|
+
kind: "mcp" | "openapi" | "a2a";
|
|
33276
|
+
/** @description The saved MCP connection the import signed in through */
|
|
33277
|
+
savedServerName?: string;
|
|
33278
|
+
serverName: string | null;
|
|
33279
|
+
url: string;
|
|
33280
|
+
} | null;
|
|
31883
33281
|
icon: string | null;
|
|
31884
33282
|
id: string;
|
|
33283
|
+
/**
|
|
33284
|
+
* @description Derived on read: `external` (Runs elsewhere) for a product imported from a server it does not run, `spec_only` for one with no capability and no surface, otherwise `runtype`
|
|
33285
|
+
* @enum {string}
|
|
33286
|
+
*/
|
|
33287
|
+
kind: "runtype" | "external" | "spec_only";
|
|
31885
33288
|
name: string;
|
|
31886
33289
|
spec?: unknown;
|
|
31887
33290
|
surfaceCount: number;
|
|
@@ -31993,9 +33396,11 @@ interface paths {
|
|
|
31993
33396
|
};
|
|
31994
33397
|
quickStartImport?: {
|
|
31995
33398
|
/** @enum {string} */
|
|
31996
|
-
documentKind: "a2a-agent" | "fpo" | "fpo-template";
|
|
33399
|
+
documentKind: "a2a-agent" | "fpo" | "fpo-template" | "mcp-server";
|
|
31997
33400
|
importedAt: string;
|
|
31998
33401
|
normalizedSourceUrl?: string;
|
|
33402
|
+
savedServerName?: string;
|
|
33403
|
+
serverName?: string;
|
|
31999
33404
|
/** @enum {string} */
|
|
32000
33405
|
sourceKind: "url" | "json";
|
|
32001
33406
|
sourceUrl?: string;
|
|
@@ -32187,6 +33592,8 @@ interface paths {
|
|
|
32187
33592
|
surfaceItemIds: string[];
|
|
32188
33593
|
type: string;
|
|
32189
33594
|
}[];
|
|
33595
|
+
/** @description Non-fatal advisories, e.g. a remapped deprecated field or seed data skipped because an existing enforce collection outside the FPO refuses it. */
|
|
33596
|
+
warnings?: string[];
|
|
32190
33597
|
};
|
|
32191
33598
|
};
|
|
32192
33599
|
};
|
|
@@ -32732,6 +34139,10 @@ interface paths {
|
|
|
32732
34139
|
publishedVersionIds?: {
|
|
32733
34140
|
[key: string]: string | null;
|
|
32734
34141
|
};
|
|
34142
|
+
/** @description The live version number per capability flow or agent id (a flow reads its saved number), as `Live · vN` names it; null when never published */
|
|
34143
|
+
publishedVersionNumbers?: {
|
|
34144
|
+
[key: string]: number | null;
|
|
34145
|
+
};
|
|
32735
34146
|
/** @description Display name per capability flow or agent id */
|
|
32736
34147
|
resourceNames?: {
|
|
32737
34148
|
[key: string]: string;
|
|
@@ -32745,8 +34156,22 @@ interface paths {
|
|
|
32745
34156
|
[key: string]: string[];
|
|
32746
34157
|
};
|
|
32747
34158
|
};
|
|
34159
|
+
/** @description What a Runs elsewhere product was imported from; null for any other product */
|
|
34160
|
+
externalSource: {
|
|
34161
|
+
/** @enum {string} */
|
|
34162
|
+
kind: "mcp" | "openapi" | "a2a";
|
|
34163
|
+
/** @description The saved MCP connection the import signed in through */
|
|
34164
|
+
savedServerName?: string;
|
|
34165
|
+
serverName: string | null;
|
|
34166
|
+
url: string;
|
|
34167
|
+
} | null;
|
|
32748
34168
|
icon: string | null;
|
|
32749
34169
|
id: string;
|
|
34170
|
+
/**
|
|
34171
|
+
* @description Derived on read: `external` (Runs elsewhere) for a product imported from a server it does not run, `spec_only` for one with no capability and no surface, otherwise `runtype`
|
|
34172
|
+
* @enum {string}
|
|
34173
|
+
*/
|
|
34174
|
+
kind: "runtype" | "external" | "spec_only";
|
|
32750
34175
|
name: string;
|
|
32751
34176
|
pendingConfigurationCount?: number;
|
|
32752
34177
|
spec?: unknown;
|
|
@@ -32854,9 +34279,11 @@ interface paths {
|
|
|
32854
34279
|
};
|
|
32855
34280
|
quickStartImport?: {
|
|
32856
34281
|
/** @enum {string} */
|
|
32857
|
-
documentKind: "a2a-agent" | "fpo" | "fpo-template";
|
|
34282
|
+
documentKind: "a2a-agent" | "fpo" | "fpo-template" | "mcp-server";
|
|
32858
34283
|
importedAt: string;
|
|
32859
34284
|
normalizedSourceUrl?: string;
|
|
34285
|
+
savedServerName?: string;
|
|
34286
|
+
serverName?: string;
|
|
32860
34287
|
/** @enum {string} */
|
|
32861
34288
|
sourceKind: "url" | "json";
|
|
32862
34289
|
sourceUrl?: string;
|
|
@@ -33142,6 +34569,8 @@ interface paths {
|
|
|
33142
34569
|
fidelityTier: string | null;
|
|
33143
34570
|
/** @description Flow that ran. */
|
|
33144
34571
|
flowId: string | null;
|
|
34572
|
+
/** @description Exact saved flow version or test capture that ran. Absent means the overlay did not answer, which is not false and not null. */
|
|
34573
|
+
flowVersionId?: string | null;
|
|
33145
34574
|
/** @description True when the dispatch carried a complete inline agent definition (name and model) beside or instead of an agentId, so the run executed that inline config and no stored version; such a row stamps no agentVersionId. False when the run executed the saved definition by reference. NULL when the header states nothing: a flow run, a lane that resolves no agent definition, or a row that predates the field. */
|
|
33146
34575
|
inlineDefinition: boolean | null;
|
|
33147
34576
|
/** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
|
|
@@ -33221,13 +34650,13 @@ interface paths {
|
|
|
33221
34650
|
traceId: string | null;
|
|
33222
34651
|
/** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
|
|
33223
34652
|
via?: {
|
|
33224
|
-
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli)
|
|
34653
|
+
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli), eval suite id (eval) or simulation run id (simulation). Null for mcp and test, and for an api run whose header predates key stamping. */
|
|
33225
34654
|
id: string | null;
|
|
33226
34655
|
/**
|
|
33227
34656
|
* @description One word for the way the run started.
|
|
33228
34657
|
* @enum {string}
|
|
33229
34658
|
*/
|
|
33230
|
-
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
|
|
34659
|
+
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval" | "simulation";
|
|
33231
34660
|
/** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
|
|
33232
34661
|
label: string | null;
|
|
33233
34662
|
} | null;
|
|
@@ -34616,7 +36045,18 @@ interface paths {
|
|
|
34616
36045
|
[name: string]: unknown;
|
|
34617
36046
|
};
|
|
34618
36047
|
content: {
|
|
34619
|
-
"application/json": components["schemas"]["
|
|
36048
|
+
"application/json": components["schemas"]["InternalError"];
|
|
36049
|
+
};
|
|
36050
|
+
};
|
|
36051
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
36052
|
+
503: {
|
|
36053
|
+
headers: {
|
|
36054
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
36055
|
+
"Retry-After": string;
|
|
36056
|
+
[name: string]: unknown;
|
|
36057
|
+
};
|
|
36058
|
+
content: {
|
|
36059
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
34620
36060
|
};
|
|
34621
36061
|
};
|
|
34622
36062
|
};
|
|
@@ -36950,7 +38390,18 @@ interface paths {
|
|
|
36950
38390
|
[name: string]: unknown;
|
|
36951
38391
|
};
|
|
36952
38392
|
content: {
|
|
36953
|
-
"application/json": components["schemas"]["
|
|
38393
|
+
"application/json": components["schemas"]["InternalError"];
|
|
38394
|
+
};
|
|
38395
|
+
};
|
|
38396
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
38397
|
+
503: {
|
|
38398
|
+
headers: {
|
|
38399
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
38400
|
+
"Retry-After": string;
|
|
38401
|
+
[name: string]: unknown;
|
|
38402
|
+
};
|
|
38403
|
+
content: {
|
|
38404
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
36954
38405
|
};
|
|
36955
38406
|
};
|
|
36956
38407
|
};
|
|
@@ -42184,7 +43635,18 @@ interface paths {
|
|
|
42184
43635
|
[name: string]: unknown;
|
|
42185
43636
|
};
|
|
42186
43637
|
content: {
|
|
42187
|
-
"application/json": components["schemas"]["
|
|
43638
|
+
"application/json": components["schemas"]["InternalError"];
|
|
43639
|
+
};
|
|
43640
|
+
};
|
|
43641
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
43642
|
+
503: {
|
|
43643
|
+
headers: {
|
|
43644
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
43645
|
+
"Retry-After": string;
|
|
43646
|
+
[name: string]: unknown;
|
|
43647
|
+
};
|
|
43648
|
+
content: {
|
|
43649
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
42188
43650
|
};
|
|
42189
43651
|
};
|
|
42190
43652
|
};
|
|
@@ -42315,7 +43777,7 @@ interface paths {
|
|
|
42315
43777
|
[name: string]: unknown;
|
|
42316
43778
|
};
|
|
42317
43779
|
content: {
|
|
42318
|
-
"application/json": components["schemas"]["
|
|
43780
|
+
"application/json": components["schemas"]["InternalError"];
|
|
42319
43781
|
};
|
|
42320
43782
|
};
|
|
42321
43783
|
/** @description The type's collection schema could not be loaded, so the write was refused rather than left unvalidated; retry */
|
|
@@ -42670,7 +44132,18 @@ interface paths {
|
|
|
42670
44132
|
[name: string]: unknown;
|
|
42671
44133
|
};
|
|
42672
44134
|
content: {
|
|
42673
|
-
"application/json": components["schemas"]["
|
|
44135
|
+
"application/json": components["schemas"]["InternalError"];
|
|
44136
|
+
};
|
|
44137
|
+
};
|
|
44138
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
44139
|
+
503: {
|
|
44140
|
+
headers: {
|
|
44141
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
44142
|
+
"Retry-After": string;
|
|
44143
|
+
[name: string]: unknown;
|
|
44144
|
+
};
|
|
44145
|
+
content: {
|
|
44146
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
42674
44147
|
};
|
|
42675
44148
|
};
|
|
42676
44149
|
};
|
|
@@ -43990,11 +45463,13 @@ interface paths {
|
|
|
43990
45463
|
source?: "hosted" | "ingested";
|
|
43991
45464
|
/** @description status accepts only running, completed or failed. queued, awaiting and cancelled exist only in the live overlay, which may never change which rows a page holds, so the server cannot filter on them. */
|
|
43992
45465
|
status?: "running" | "completed" | "failed";
|
|
45466
|
+
/** @description live keeps runs real users and integrations started; test keeps runs started from the dashboard (Test, step tests, Ask); eval keeps eval-batch runs; sim keeps simulation turns; all, or omitted, keeps every run. A simulation turn is sim even when a schedule started it, a schedule run is live, and an eval batch run is eval whoever started it. */
|
|
45467
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
43993
45468
|
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
43994
45469
|
from?: string;
|
|
43995
45470
|
/** @description Window end (ISO 8601). Defaults to now. */
|
|
43996
45471
|
to?: string;
|
|
43997
|
-
/** @description full (the default) returns every field. compact omits exactly these
|
|
45472
|
+
/** @description full (the default) returns every field. compact omits exactly these 16: stopReason, iterations, inputPreview, flowVersionId, agentVersionId, agentVersionLabel, agentVersionNumber, agentTargetResolution, otelProducer, lastHeartbeatAt, expiresAt, cancelRequestedAt, progress, pendingApproval, budgetExhausted and inputMessages. The status is still overlay-corrected on a compact page; only the fields differ. */
|
|
43998
45473
|
view?: "compact" | "full";
|
|
43999
45474
|
/** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
|
|
44000
45475
|
overlay?: "live" | "none";
|
|
@@ -44075,6 +45550,137 @@ interface paths {
|
|
|
44075
45550
|
"application/json": components["schemas"]["Error"];
|
|
44076
45551
|
};
|
|
44077
45552
|
};
|
|
45553
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
45554
|
+
503: {
|
|
45555
|
+
headers: {
|
|
45556
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
45557
|
+
"Retry-After": string;
|
|
45558
|
+
[name: string]: unknown;
|
|
45559
|
+
};
|
|
45560
|
+
content: {
|
|
45561
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
45562
|
+
};
|
|
45563
|
+
};
|
|
45564
|
+
};
|
|
45565
|
+
};
|
|
45566
|
+
put?: never;
|
|
45567
|
+
post?: never;
|
|
45568
|
+
delete?: never;
|
|
45569
|
+
options?: never;
|
|
45570
|
+
head?: never;
|
|
45571
|
+
patch?: never;
|
|
45572
|
+
trace?: never;
|
|
45573
|
+
};
|
|
45574
|
+
"/v1/runs/stats": {
|
|
45575
|
+
parameters: {
|
|
45576
|
+
query?: never;
|
|
45577
|
+
header?: never;
|
|
45578
|
+
path?: never;
|
|
45579
|
+
cookie?: never;
|
|
45580
|
+
};
|
|
45581
|
+
/**
|
|
45582
|
+
* Count runs
|
|
45583
|
+
* @description Totals, failures, latency percentiles and cost over exactly the runs `GET /v1/runs` lists for the same filters and window, grouped by flow, agent and surface. `failed` uses the list's own `status=failed` predicate, so a count and the rows it describes cannot disagree. `traffic` narrows to live, test, eval or sim runs; `byTraffic` reports all four before that filter. Cost never counts an unknown run as zero: `cost.unpricedRuns` says how many settled runs have no known cost.
|
|
45584
|
+
*/
|
|
45585
|
+
get: {
|
|
45586
|
+
parameters: {
|
|
45587
|
+
query?: {
|
|
45588
|
+
/** @description Filter by agent id; repeat for a set. */
|
|
45589
|
+
agentId?: string | string[];
|
|
45590
|
+
/** @description Filter by flow id; repeat for a set. */
|
|
45591
|
+
flowId?: string | string[];
|
|
45592
|
+
/** @description Filter by conversation id. */
|
|
45593
|
+
conversationId?: string;
|
|
45594
|
+
/** @description Filter by surface id. */
|
|
45595
|
+
surfaceId?: string;
|
|
45596
|
+
/** @description Filter by surface family. */
|
|
45597
|
+
surfaceType?: string;
|
|
45598
|
+
/** @description Filter by record id. */
|
|
45599
|
+
recordId?: string;
|
|
45600
|
+
/** @description Filter by batch id; repeat for a set. */
|
|
45601
|
+
batchExecutionId?: string | string[];
|
|
45602
|
+
/** @description true restores the flat enumeration on the UNSCOPED feed, in which a subagent run and a nested-flow run list beside their parent. The unscoped feed is roots only by default: a row whose parentExecutionId is set folds under its parent and is read with parentExecutionId=<executionId>. Any filter that scopes to a resource — agentId, flowId, conversationId, surfaceId, recordId, batchExecutionId, parentExecutionId, rootExecutionId or executionId — is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under agentId. This parameter changes nothing on a scoped request. */
|
|
45603
|
+
includeChildren?: "true" | "false";
|
|
45604
|
+
/** @description Filter by producing lane. */
|
|
45605
|
+
source?: "hosted" | "ingested";
|
|
45606
|
+
/** @description status accepts only running, completed or failed. queued, awaiting and cancelled exist only in the live overlay, which may never change which rows a page holds, so the server cannot filter on them. */
|
|
45607
|
+
status?: "running" | "completed" | "failed";
|
|
45608
|
+
/** @description live keeps runs real users and integrations started; test keeps runs started from the dashboard (Test, step tests, Ask); eval keeps eval-batch runs; sim keeps simulation turns; all, or omitted, keeps every run. A simulation turn is sim even when a schedule started it, a schedule run is live, and an eval batch run is eval whoever started it. */
|
|
45609
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
45610
|
+
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
45611
|
+
from?: string;
|
|
45612
|
+
/** @description Window end (ISO 8601). Defaults to now. */
|
|
45613
|
+
to?: string;
|
|
45614
|
+
};
|
|
45615
|
+
header?: never;
|
|
45616
|
+
path?: never;
|
|
45617
|
+
cookie?: never;
|
|
45618
|
+
};
|
|
45619
|
+
requestBody?: never;
|
|
45620
|
+
responses: {
|
|
45621
|
+
/** @description Run counts returned */
|
|
45622
|
+
200: {
|
|
45623
|
+
headers: {
|
|
45624
|
+
[name: string]: unknown;
|
|
45625
|
+
};
|
|
45626
|
+
content: {
|
|
45627
|
+
"application/json": {
|
|
45628
|
+
data: components["schemas"]["RunStats"];
|
|
45629
|
+
/** @description The started_at window the query resolved to, after defaults. */
|
|
45630
|
+
window: {
|
|
45631
|
+
from: string;
|
|
45632
|
+
to: string;
|
|
45633
|
+
};
|
|
45634
|
+
};
|
|
45635
|
+
};
|
|
45636
|
+
};
|
|
45637
|
+
/** @description Invalid request, including a filter whose value could not be read */
|
|
45638
|
+
400: {
|
|
45639
|
+
headers: {
|
|
45640
|
+
[name: string]: unknown;
|
|
45641
|
+
};
|
|
45642
|
+
content: {
|
|
45643
|
+
"application/json": components["schemas"]["Error"];
|
|
45644
|
+
};
|
|
45645
|
+
};
|
|
45646
|
+
/** @description Unauthorized */
|
|
45647
|
+
401: {
|
|
45648
|
+
headers: {
|
|
45649
|
+
[name: string]: unknown;
|
|
45650
|
+
};
|
|
45651
|
+
content: {
|
|
45652
|
+
"application/json": components["schemas"]["Error"];
|
|
45653
|
+
};
|
|
45654
|
+
};
|
|
45655
|
+
/** @description Insufficient API key permissions */
|
|
45656
|
+
403: {
|
|
45657
|
+
headers: {
|
|
45658
|
+
[name: string]: unknown;
|
|
45659
|
+
};
|
|
45660
|
+
content: {
|
|
45661
|
+
"application/json": components["schemas"]["Error"];
|
|
45662
|
+
};
|
|
45663
|
+
};
|
|
45664
|
+
/** @description Internal server error */
|
|
45665
|
+
500: {
|
|
45666
|
+
headers: {
|
|
45667
|
+
[name: string]: unknown;
|
|
45668
|
+
};
|
|
45669
|
+
content: {
|
|
45670
|
+
"application/json": components["schemas"]["Error"];
|
|
45671
|
+
};
|
|
45672
|
+
};
|
|
45673
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
45674
|
+
503: {
|
|
45675
|
+
headers: {
|
|
45676
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
45677
|
+
"Retry-After": string;
|
|
45678
|
+
[name: string]: unknown;
|
|
45679
|
+
};
|
|
45680
|
+
content: {
|
|
45681
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
45682
|
+
};
|
|
45683
|
+
};
|
|
44078
45684
|
};
|
|
44079
45685
|
};
|
|
44080
45686
|
put?: never;
|
|
@@ -44101,7 +45707,7 @@ interface paths {
|
|
|
44101
45707
|
query?: {
|
|
44102
45708
|
/** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
|
|
44103
45709
|
overlay?: "live" | "none";
|
|
44104
|
-
/** @description full (the default) returns every field. compact omits exactly these
|
|
45710
|
+
/** @description full (the default) returns every field. compact omits exactly these 16: stopReason, iterations, inputPreview, flowVersionId, agentVersionId, agentVersionLabel, agentVersionNumber, agentTargetResolution, otelProducer, lastHeartbeatAt, expiresAt, cancelRequestedAt, progress, pendingApproval, budgetExhausted and inputMessages. The status is still overlay-corrected on a compact page; only the fields differ. */
|
|
44105
45711
|
view?: "compact" | "full";
|
|
44106
45712
|
};
|
|
44107
45713
|
header?: never;
|
|
@@ -44168,6 +45774,17 @@ interface paths {
|
|
|
44168
45774
|
"application/json": components["schemas"]["Error"];
|
|
44169
45775
|
};
|
|
44170
45776
|
};
|
|
45777
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
45778
|
+
503: {
|
|
45779
|
+
headers: {
|
|
45780
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
45781
|
+
"Retry-After": string;
|
|
45782
|
+
[name: string]: unknown;
|
|
45783
|
+
};
|
|
45784
|
+
content: {
|
|
45785
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
45786
|
+
};
|
|
45787
|
+
};
|
|
44171
45788
|
};
|
|
44172
45789
|
};
|
|
44173
45790
|
put?: never;
|
|
@@ -44576,6 +46193,139 @@ interface paths {
|
|
|
44576
46193
|
patch?: never;
|
|
44577
46194
|
trace?: never;
|
|
44578
46195
|
};
|
|
46196
|
+
"/v1/runtime/judgments": {
|
|
46197
|
+
parameters: {
|
|
46198
|
+
query?: never;
|
|
46199
|
+
header?: never;
|
|
46200
|
+
path?: never;
|
|
46201
|
+
cookie?: never;
|
|
46202
|
+
};
|
|
46203
|
+
get?: never;
|
|
46204
|
+
put?: never;
|
|
46205
|
+
/**
|
|
46206
|
+
* Ask for a judgment (hosted DecisionProvider)
|
|
46207
|
+
* @description The runtime-family judgment contract consumed by `@runtypelabs/runtime`’s HostedDecisionProvider, so a self-hosted runtime on platform or hybrid keys judges through Runtype with a Self-hosted Runtime key (`RUNTIME:EXECUTE`). Answers like `builtin:decision_judge`: with `questionSetId` the published question set supplies the questions (configured mode, and `questions` is refused); without it the call supplies `questions` (ad hoc mode). Billed and recorded like a decision tool call. Requires an Enterprise plan: ineligible accounts receive 403 (code `BYOC_PLAN_REQUIRED`).
|
|
46208
|
+
*/
|
|
46209
|
+
post: {
|
|
46210
|
+
parameters: {
|
|
46211
|
+
query?: never;
|
|
46212
|
+
header?: never;
|
|
46213
|
+
path?: never;
|
|
46214
|
+
cookie?: never;
|
|
46215
|
+
};
|
|
46216
|
+
requestBody?: {
|
|
46217
|
+
content: {
|
|
46218
|
+
"application/json": components["schemas"]["RuntimeJudgmentRequest"];
|
|
46219
|
+
};
|
|
46220
|
+
};
|
|
46221
|
+
responses: {
|
|
46222
|
+
/** @description The answers and the judgment metadata */
|
|
46223
|
+
200: {
|
|
46224
|
+
headers: {
|
|
46225
|
+
[name: string]: unknown;
|
|
46226
|
+
};
|
|
46227
|
+
content: {
|
|
46228
|
+
"application/json": components["schemas"]["RuntimeJudgmentResponse"];
|
|
46229
|
+
};
|
|
46230
|
+
};
|
|
46231
|
+
/** @description Invalid state, questions or configuration (see `code`) */
|
|
46232
|
+
400: {
|
|
46233
|
+
headers: {
|
|
46234
|
+
[name: string]: unknown;
|
|
46235
|
+
};
|
|
46236
|
+
content: {
|
|
46237
|
+
"application/json": components["schemas"]["Error"] & {
|
|
46238
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
46239
|
+
code?: string;
|
|
46240
|
+
details?: {
|
|
46241
|
+
[key: string]: unknown;
|
|
46242
|
+
};
|
|
46243
|
+
};
|
|
46244
|
+
};
|
|
46245
|
+
};
|
|
46246
|
+
/** @description Unauthorized */
|
|
46247
|
+
401: {
|
|
46248
|
+
headers: {
|
|
46249
|
+
[name: string]: unknown;
|
|
46250
|
+
};
|
|
46251
|
+
content: {
|
|
46252
|
+
"application/json": components["schemas"]["Error"];
|
|
46253
|
+
};
|
|
46254
|
+
};
|
|
46255
|
+
/** @description Monthly spend limit exceeded */
|
|
46256
|
+
402: {
|
|
46257
|
+
headers: {
|
|
46258
|
+
[name: string]: unknown;
|
|
46259
|
+
};
|
|
46260
|
+
content: {
|
|
46261
|
+
"application/json": components["schemas"]["Error"];
|
|
46262
|
+
};
|
|
46263
|
+
};
|
|
46264
|
+
/** @description Not an API key, the key lacks an execute permission, or the account is not on an Enterprise plan (code `BYOC_PLAN_REQUIRED`) */
|
|
46265
|
+
403: {
|
|
46266
|
+
headers: {
|
|
46267
|
+
[name: string]: unknown;
|
|
46268
|
+
};
|
|
46269
|
+
content: {
|
|
46270
|
+
"application/json": components["schemas"]["Error"];
|
|
46271
|
+
};
|
|
46272
|
+
};
|
|
46273
|
+
/** @description The question set is missing, unpublished or not owned by the caller (code `QUESTION_SET_UNRESOLVED`) */
|
|
46274
|
+
404: {
|
|
46275
|
+
headers: {
|
|
46276
|
+
[name: string]: unknown;
|
|
46277
|
+
};
|
|
46278
|
+
content: {
|
|
46279
|
+
"application/json": components["schemas"]["Error"] & {
|
|
46280
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
46281
|
+
code?: string;
|
|
46282
|
+
details?: {
|
|
46283
|
+
[key: string]: unknown;
|
|
46284
|
+
};
|
|
46285
|
+
};
|
|
46286
|
+
};
|
|
46287
|
+
};
|
|
46288
|
+
/** @description The decision model is not served or no credential can pay for it (see `code`) */
|
|
46289
|
+
422: {
|
|
46290
|
+
headers: {
|
|
46291
|
+
[name: string]: unknown;
|
|
46292
|
+
};
|
|
46293
|
+
content: {
|
|
46294
|
+
"application/json": components["schemas"]["Error"] & {
|
|
46295
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
46296
|
+
code?: string;
|
|
46297
|
+
details?: {
|
|
46298
|
+
[key: string]: unknown;
|
|
46299
|
+
};
|
|
46300
|
+
};
|
|
46301
|
+
};
|
|
46302
|
+
};
|
|
46303
|
+
/** @description Daily execution limit or rate limit exceeded */
|
|
46304
|
+
429: {
|
|
46305
|
+
headers: {
|
|
46306
|
+
[name: string]: unknown;
|
|
46307
|
+
};
|
|
46308
|
+
content: {
|
|
46309
|
+
"application/json": components["schemas"]["Error"];
|
|
46310
|
+
};
|
|
46311
|
+
};
|
|
46312
|
+
/** @description Judgment failed */
|
|
46313
|
+
500: {
|
|
46314
|
+
headers: {
|
|
46315
|
+
[name: string]: unknown;
|
|
46316
|
+
};
|
|
46317
|
+
content: {
|
|
46318
|
+
"application/json": components["schemas"]["Error"];
|
|
46319
|
+
};
|
|
46320
|
+
};
|
|
46321
|
+
};
|
|
46322
|
+
};
|
|
46323
|
+
delete?: never;
|
|
46324
|
+
options?: never;
|
|
46325
|
+
head?: never;
|
|
46326
|
+
patch?: never;
|
|
46327
|
+
trace?: never;
|
|
46328
|
+
};
|
|
44579
46329
|
"/v1/runtime/memory/recall": {
|
|
44580
46330
|
parameters: {
|
|
44581
46331
|
query?: never;
|
|
@@ -45099,6 +46849,17 @@ interface paths {
|
|
|
45099
46849
|
};
|
|
45100
46850
|
};
|
|
45101
46851
|
};
|
|
46852
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
46853
|
+
503: {
|
|
46854
|
+
headers: {
|
|
46855
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46856
|
+
"Retry-After": string;
|
|
46857
|
+
[name: string]: unknown;
|
|
46858
|
+
};
|
|
46859
|
+
content: {
|
|
46860
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
46861
|
+
};
|
|
46862
|
+
};
|
|
45102
46863
|
};
|
|
45103
46864
|
};
|
|
45104
46865
|
delete?: never;
|
|
@@ -45257,6 +47018,17 @@ interface paths {
|
|
|
45257
47018
|
};
|
|
45258
47019
|
};
|
|
45259
47020
|
};
|
|
47021
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
47022
|
+
503: {
|
|
47023
|
+
headers: {
|
|
47024
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
47025
|
+
"Retry-After": string;
|
|
47026
|
+
[name: string]: unknown;
|
|
47027
|
+
};
|
|
47028
|
+
content: {
|
|
47029
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
47030
|
+
};
|
|
47031
|
+
};
|
|
45260
47032
|
};
|
|
45261
47033
|
};
|
|
45262
47034
|
delete?: never;
|
|
@@ -45395,6 +47167,17 @@ interface paths {
|
|
|
45395
47167
|
};
|
|
45396
47168
|
};
|
|
45397
47169
|
};
|
|
47170
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
47171
|
+
503: {
|
|
47172
|
+
headers: {
|
|
47173
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
47174
|
+
"Retry-After": string;
|
|
47175
|
+
[name: string]: unknown;
|
|
47176
|
+
};
|
|
47177
|
+
content: {
|
|
47178
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
47179
|
+
};
|
|
47180
|
+
};
|
|
45398
47181
|
};
|
|
45399
47182
|
};
|
|
45400
47183
|
delete?: never;
|
|
@@ -45535,6 +47318,17 @@ interface paths {
|
|
|
45535
47318
|
};
|
|
45536
47319
|
};
|
|
45537
47320
|
};
|
|
47321
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
47322
|
+
503: {
|
|
47323
|
+
headers: {
|
|
47324
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
47325
|
+
"Retry-After": string;
|
|
47326
|
+
[name: string]: unknown;
|
|
47327
|
+
};
|
|
47328
|
+
content: {
|
|
47329
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
47330
|
+
};
|
|
47331
|
+
};
|
|
45538
47332
|
};
|
|
45539
47333
|
};
|
|
45540
47334
|
delete?: never;
|
|
@@ -47334,7 +49128,18 @@ interface paths {
|
|
|
47334
49128
|
[name: string]: unknown;
|
|
47335
49129
|
};
|
|
47336
49130
|
content: {
|
|
47337
|
-
"application/json": components["schemas"]["
|
|
49131
|
+
"application/json": components["schemas"]["InternalError"];
|
|
49132
|
+
};
|
|
49133
|
+
};
|
|
49134
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
49135
|
+
503: {
|
|
49136
|
+
headers: {
|
|
49137
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
49138
|
+
"Retry-After": string;
|
|
49139
|
+
[name: string]: unknown;
|
|
49140
|
+
};
|
|
49141
|
+
content: {
|
|
49142
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
47338
49143
|
};
|
|
47339
49144
|
};
|
|
47340
49145
|
};
|
|
@@ -49556,7 +51361,18 @@ interface paths {
|
|
|
49556
51361
|
[name: string]: unknown;
|
|
49557
51362
|
};
|
|
49558
51363
|
content: {
|
|
49559
|
-
"application/json": components["schemas"]["
|
|
51364
|
+
"application/json": components["schemas"]["InternalError"];
|
|
51365
|
+
};
|
|
51366
|
+
};
|
|
51367
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
51368
|
+
503: {
|
|
51369
|
+
headers: {
|
|
51370
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
51371
|
+
"Retry-After": string;
|
|
51372
|
+
[name: string]: unknown;
|
|
51373
|
+
};
|
|
51374
|
+
content: {
|
|
51375
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
49560
51376
|
};
|
|
49561
51377
|
};
|
|
49562
51378
|
};
|
|
@@ -50982,7 +52798,18 @@ interface paths {
|
|
|
50982
52798
|
[name: string]: unknown;
|
|
50983
52799
|
};
|
|
50984
52800
|
content: {
|
|
50985
|
-
"application/json": components["schemas"]["
|
|
52801
|
+
"application/json": components["schemas"]["InternalError"];
|
|
52802
|
+
};
|
|
52803
|
+
};
|
|
52804
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
52805
|
+
503: {
|
|
52806
|
+
headers: {
|
|
52807
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
52808
|
+
"Retry-After": string;
|
|
52809
|
+
[name: string]: unknown;
|
|
52810
|
+
};
|
|
52811
|
+
content: {
|
|
52812
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
50986
52813
|
};
|
|
50987
52814
|
};
|
|
50988
52815
|
};
|
|
@@ -51942,7 +53769,18 @@ interface paths {
|
|
|
51942
53769
|
[name: string]: unknown;
|
|
51943
53770
|
};
|
|
51944
53771
|
content: {
|
|
51945
|
-
"application/json": components["schemas"]["
|
|
53772
|
+
"application/json": components["schemas"]["InternalError"];
|
|
53773
|
+
};
|
|
53774
|
+
};
|
|
53775
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
53776
|
+
503: {
|
|
53777
|
+
headers: {
|
|
53778
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
53779
|
+
"Retry-After": string;
|
|
53780
|
+
[name: string]: unknown;
|
|
53781
|
+
};
|
|
53782
|
+
content: {
|
|
53783
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
51946
53784
|
};
|
|
51947
53785
|
};
|
|
51948
53786
|
};
|
|
@@ -52008,7 +53846,18 @@ interface paths {
|
|
|
52008
53846
|
[name: string]: unknown;
|
|
52009
53847
|
};
|
|
52010
53848
|
content: {
|
|
52011
|
-
"application/json": components["schemas"]["
|
|
53849
|
+
"application/json": components["schemas"]["InternalError"];
|
|
53850
|
+
};
|
|
53851
|
+
};
|
|
53852
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
53853
|
+
503: {
|
|
53854
|
+
headers: {
|
|
53855
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
53856
|
+
"Retry-After": string;
|
|
53857
|
+
[name: string]: unknown;
|
|
53858
|
+
};
|
|
53859
|
+
content: {
|
|
53860
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
52012
53861
|
};
|
|
52013
53862
|
};
|
|
52014
53863
|
};
|
|
@@ -52282,6 +54131,7 @@ interface paths {
|
|
|
52282
54131
|
enableChromeSurface: boolean;
|
|
52283
54132
|
enableDashboardAssistant: boolean;
|
|
52284
54133
|
enableDecisionModelsDashboard: boolean;
|
|
54134
|
+
enableDelegateToRuntype?: boolean;
|
|
52285
54135
|
enableEndUserUsageAnalytics: boolean;
|
|
52286
54136
|
enableMassiveWebRender: boolean;
|
|
52287
54137
|
enableOnboardingIntentGate: boolean;
|
|
@@ -52293,6 +54143,7 @@ interface paths {
|
|
|
52293
54143
|
enableWorkspaceModel: boolean;
|
|
52294
54144
|
externalTelemetryAllowed?: boolean;
|
|
52295
54145
|
modelCreditPromoMultiplier?: number;
|
|
54146
|
+
simulationsAvailable?: boolean;
|
|
52296
54147
|
workspaceModelEligible: boolean;
|
|
52297
54148
|
workspaceModelReady: boolean;
|
|
52298
54149
|
};
|
|
@@ -52551,7 +54402,18 @@ interface paths {
|
|
|
52551
54402
|
[name: string]: unknown;
|
|
52552
54403
|
};
|
|
52553
54404
|
content: {
|
|
52554
|
-
"application/json": components["schemas"]["
|
|
54405
|
+
"application/json": components["schemas"]["InternalError"];
|
|
54406
|
+
};
|
|
54407
|
+
};
|
|
54408
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
54409
|
+
503: {
|
|
54410
|
+
headers: {
|
|
54411
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
54412
|
+
"Retry-After": string;
|
|
54413
|
+
[name: string]: unknown;
|
|
54414
|
+
};
|
|
54415
|
+
content: {
|
|
54416
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
52555
54417
|
};
|
|
52556
54418
|
};
|
|
52557
54419
|
};
|
|
@@ -52637,7 +54499,18 @@ interface paths {
|
|
|
52637
54499
|
[name: string]: unknown;
|
|
52638
54500
|
};
|
|
52639
54501
|
content: {
|
|
52640
|
-
"application/json": components["schemas"]["
|
|
54502
|
+
"application/json": components["schemas"]["InternalError"];
|
|
54503
|
+
};
|
|
54504
|
+
};
|
|
54505
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
54506
|
+
503: {
|
|
54507
|
+
headers: {
|
|
54508
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
54509
|
+
"Retry-After": string;
|
|
54510
|
+
[name: string]: unknown;
|
|
54511
|
+
};
|
|
54512
|
+
content: {
|
|
54513
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
52641
54514
|
};
|
|
52642
54515
|
};
|
|
52643
54516
|
};
|
|
@@ -53419,7 +55292,7 @@ interface components {
|
|
|
53419
55292
|
reasons: string[];
|
|
53420
55293
|
};
|
|
53421
55294
|
BuiltinToolExecuteResult: {
|
|
53422
|
-
/** @description Execution metadata for the caller, never part of a model-facing tool result. builtin:
|
|
55295
|
+
/** @description Execution metadata for the caller, never part of a model-facing tool result. builtin:decision_judge sets metadata.judgment: requestedModel, resolvedModelId (null when not reported), provider, route, calibrationId (null when absent), keySource, questionSetId and questionSetVersion (configured mode), usage { inputTokens, outputTokens, reported }, and estimatedCostUsd (provider rates, before margin). */
|
|
53423
55296
|
metadata?: {
|
|
53424
55297
|
[key: string]: unknown;
|
|
53425
55298
|
};
|
|
@@ -54192,6 +56065,12 @@ interface components {
|
|
|
54192
56065
|
tier: string;
|
|
54193
56066
|
};
|
|
54194
56067
|
};
|
|
56068
|
+
DatabaseUnavailableError: components["schemas"]["Error"] & {
|
|
56069
|
+
/** @enum {string} */
|
|
56070
|
+
code: "DATABASE_UNAVAILABLE";
|
|
56071
|
+
/** @description The `X-Runtype-Request-ID` of the failed request, for support. */
|
|
56072
|
+
requestId?: string;
|
|
56073
|
+
};
|
|
54195
56074
|
DecisionModel: {
|
|
54196
56075
|
contextWindow: number | null;
|
|
54197
56076
|
credentialRequirements: {
|
|
@@ -54505,7 +56384,7 @@ interface components {
|
|
|
54505
56384
|
/** @description Per-case graders that REPLACE the suite graders for this case, or null when the case uses the suite graders. */
|
|
54506
56385
|
graders: unknown[] | null;
|
|
54507
56386
|
id: string;
|
|
54508
|
-
/** @description { variables?, messages?, toolMocks?, endUser?, tenant? } — what the case feeds the target and the
|
|
56387
|
+
/** @description { variables?, messages?, toolMocks?, endUser?, tenant?, record? } — what the case feeds the target, the identity it runs as, and the record it runs on. */
|
|
54509
56388
|
input?: unknown;
|
|
54510
56389
|
name: string;
|
|
54511
56390
|
notes: string | null;
|
|
@@ -54746,6 +56625,22 @@ interface components {
|
|
|
54746
56625
|
suiteId: string;
|
|
54747
56626
|
updatedAt: string | null;
|
|
54748
56627
|
};
|
|
56628
|
+
EvalQuotaExceededError: components["schemas"]["Error"] & {
|
|
56629
|
+
/** @description Stable error code. DAILY_EVAL_LIMIT: the daily eval count of the plan is used up; retry after `stats.resetsAt`. SPEND_LIMIT_EXCEEDED: the monthly spend cap is reached. CLAUDE_MANAGED_AGENTS_DENIED: the account cannot evaluate a Claude Managed agent. */
|
|
56630
|
+
code: string;
|
|
56631
|
+
/** @description Human-readable reason, including the limit and when it resets. */
|
|
56632
|
+
message: string;
|
|
56633
|
+
/** @description Daily eval usage at the moment of a DAILY_EVAL_LIMIT or SPEND_LIMIT_EXCEEDED refusal. */
|
|
56634
|
+
stats?: {
|
|
56635
|
+
/** @description Daily eval limit; -1 means unlimited. */
|
|
56636
|
+
evalLimit: number;
|
|
56637
|
+
evalsUsed: number;
|
|
56638
|
+
isAtLimit: boolean;
|
|
56639
|
+
remaining: number | null;
|
|
56640
|
+
/** @description ISO 8601 instant the daily count resets (midnight UTC). */
|
|
56641
|
+
resetsAt: string;
|
|
56642
|
+
};
|
|
56643
|
+
};
|
|
54749
56644
|
EvalRunScoresResponse: {
|
|
54750
56645
|
/** @description The release alias the run resolved through, when it resolved through one. */
|
|
54751
56646
|
agentTargetAlias?: string | null;
|
|
@@ -55823,6 +57718,12 @@ interface components {
|
|
|
55823
57718
|
/** @enum {string} */
|
|
55824
57719
|
status: "pending" | "applied" | "settled" | "not_applied";
|
|
55825
57720
|
};
|
|
57721
|
+
InternalError: components["schemas"]["Error"] & {
|
|
57722
|
+
/** @description Stable error code: `INTERNAL_ERROR` unless the route documents its own. */
|
|
57723
|
+
code: string;
|
|
57724
|
+
/** @description The `X-Runtype-Request-ID` of the failed request, for support. */
|
|
57725
|
+
requestId?: string;
|
|
57726
|
+
};
|
|
55826
57727
|
JudgmentCalibrationRecord: {
|
|
55827
57728
|
createdAt: string;
|
|
55828
57729
|
createdByUserId: string | null;
|
|
@@ -56004,7 +57905,7 @@ interface components {
|
|
|
56004
57905
|
/** @description Resulting platform id (absent on failure/skip/pruned). */
|
|
56005
57906
|
id?: string;
|
|
56006
57907
|
/** @enum {string} */
|
|
56007
|
-
kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule" | "eval" | "skill";
|
|
57908
|
+
kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule" | "eval" | "skill" | "collection" | "questionSet";
|
|
56008
57909
|
name: string;
|
|
56009
57910
|
/** @description The FPO-local ref (capability id / entity name) for correlation. */
|
|
56010
57911
|
ref: string;
|
|
@@ -56406,6 +58307,8 @@ interface components {
|
|
|
56406
58307
|
fidelityTier: string | null;
|
|
56407
58308
|
/** @description Flow that ran. */
|
|
56408
58309
|
flowId: string | null;
|
|
58310
|
+
/** @description Exact saved flow version or test capture that ran. Absent means the overlay did not answer, which is not false and not null. */
|
|
58311
|
+
flowVersionId?: string | null;
|
|
56409
58312
|
/** @description True when the dispatch carried a complete inline agent definition (name and model) beside or instead of an agentId, so the run executed that inline config and no stored version; such a row stamps no agentVersionId. False when the run executed the saved definition by reference. NULL when the header states nothing: a flow run, a lane that resolves no agent definition, or a row that predates the field. */
|
|
56410
58313
|
inlineDefinition: boolean | null;
|
|
56411
58314
|
/** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
|
|
@@ -56485,17 +58388,198 @@ interface components {
|
|
|
56485
58388
|
traceId: string | null;
|
|
56486
58389
|
/** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
|
|
56487
58390
|
via?: {
|
|
56488
|
-
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli)
|
|
58391
|
+
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli), eval suite id (eval) or simulation run id (simulation). Null for mcp and test, and for an api run whose header predates key stamping. */
|
|
56489
58392
|
id: string | null;
|
|
56490
58393
|
/**
|
|
56491
58394
|
* @description One word for the way the run started.
|
|
56492
58395
|
* @enum {string}
|
|
56493
58396
|
*/
|
|
56494
|
-
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
|
|
58397
|
+
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval" | "simulation";
|
|
56495
58398
|
/** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
|
|
56496
58399
|
label: string | null;
|
|
56497
58400
|
} | null;
|
|
56498
58401
|
};
|
|
58402
|
+
RunStats: {
|
|
58403
|
+
/** @description Runs grouped by agent id. */
|
|
58404
|
+
byAgentId: {
|
|
58405
|
+
[key: string]: {
|
|
58406
|
+
cost: {
|
|
58407
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58408
|
+
known: number;
|
|
58409
|
+
/** @description Settled runs with a known cost. */
|
|
58410
|
+
pricedRuns: number;
|
|
58411
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58412
|
+
unpricedRuns: number;
|
|
58413
|
+
};
|
|
58414
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58415
|
+
failed: number;
|
|
58416
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58417
|
+
lastStartedAt: string | null;
|
|
58418
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58419
|
+
p50DurationMs: number | null;
|
|
58420
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58421
|
+
p95DurationMs: number | null;
|
|
58422
|
+
/** @description Runs still running. */
|
|
58423
|
+
running: number;
|
|
58424
|
+
/** @description Runs in the bucket. */
|
|
58425
|
+
total: number;
|
|
58426
|
+
};
|
|
58427
|
+
};
|
|
58428
|
+
/** @description Runs grouped by agent and surface, keyed `<agentId>:<surfaceId>`. */
|
|
58429
|
+
byAgentSurface: {
|
|
58430
|
+
[key: string]: {
|
|
58431
|
+
cost: {
|
|
58432
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58433
|
+
known: number;
|
|
58434
|
+
/** @description Settled runs with a known cost. */
|
|
58435
|
+
pricedRuns: number;
|
|
58436
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58437
|
+
unpricedRuns: number;
|
|
58438
|
+
};
|
|
58439
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58440
|
+
failed: number;
|
|
58441
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58442
|
+
lastStartedAt: string | null;
|
|
58443
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58444
|
+
p50DurationMs: number | null;
|
|
58445
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58446
|
+
p95DurationMs: number | null;
|
|
58447
|
+
/** @description Runs still running. */
|
|
58448
|
+
running: number;
|
|
58449
|
+
/** @description Runs in the bucket. */
|
|
58450
|
+
total: number;
|
|
58451
|
+
};
|
|
58452
|
+
};
|
|
58453
|
+
/** @description Runs grouped by flow id. */
|
|
58454
|
+
byFlowId: {
|
|
58455
|
+
[key: string]: {
|
|
58456
|
+
cost: {
|
|
58457
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58458
|
+
known: number;
|
|
58459
|
+
/** @description Settled runs with a known cost. */
|
|
58460
|
+
pricedRuns: number;
|
|
58461
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58462
|
+
unpricedRuns: number;
|
|
58463
|
+
};
|
|
58464
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58465
|
+
failed: number;
|
|
58466
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58467
|
+
lastStartedAt: string | null;
|
|
58468
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58469
|
+
p50DurationMs: number | null;
|
|
58470
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58471
|
+
p95DurationMs: number | null;
|
|
58472
|
+
/** @description Runs still running. */
|
|
58473
|
+
running: number;
|
|
58474
|
+
/** @description Runs in the bucket. */
|
|
58475
|
+
total: number;
|
|
58476
|
+
};
|
|
58477
|
+
};
|
|
58478
|
+
/** @description Runs grouped by flow and surface, keyed `<flowId>:<surfaceId>`. */
|
|
58479
|
+
byFlowSurface: {
|
|
58480
|
+
[key: string]: {
|
|
58481
|
+
cost: {
|
|
58482
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58483
|
+
known: number;
|
|
58484
|
+
/** @description Settled runs with a known cost. */
|
|
58485
|
+
pricedRuns: number;
|
|
58486
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58487
|
+
unpricedRuns: number;
|
|
58488
|
+
};
|
|
58489
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58490
|
+
failed: number;
|
|
58491
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58492
|
+
lastStartedAt: string | null;
|
|
58493
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58494
|
+
p50DurationMs: number | null;
|
|
58495
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58496
|
+
p95DurationMs: number | null;
|
|
58497
|
+
/** @description Runs still running. */
|
|
58498
|
+
running: number;
|
|
58499
|
+
/** @description Runs in the bucket. */
|
|
58500
|
+
total: number;
|
|
58501
|
+
};
|
|
58502
|
+
};
|
|
58503
|
+
/** @description Runs grouped by surface id. */
|
|
58504
|
+
bySurfaceId: {
|
|
58505
|
+
[key: string]: {
|
|
58506
|
+
cost: {
|
|
58507
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58508
|
+
known: number;
|
|
58509
|
+
/** @description Settled runs with a known cost. */
|
|
58510
|
+
pricedRuns: number;
|
|
58511
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58512
|
+
unpricedRuns: number;
|
|
58513
|
+
};
|
|
58514
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58515
|
+
failed: number;
|
|
58516
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58517
|
+
lastStartedAt: string | null;
|
|
58518
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58519
|
+
p50DurationMs: number | null;
|
|
58520
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58521
|
+
p95DurationMs: number | null;
|
|
58522
|
+
/** @description Runs still running. */
|
|
58523
|
+
running: number;
|
|
58524
|
+
/** @description Runs in the bucket. */
|
|
58525
|
+
total: number;
|
|
58526
|
+
};
|
|
58527
|
+
};
|
|
58528
|
+
/** @description The same runs before the `traffic` filter, split by kind, so a live view can say "plus 4 test runs". */
|
|
58529
|
+
byTraffic: {
|
|
58530
|
+
eval: {
|
|
58531
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
58532
|
+
failed: number;
|
|
58533
|
+
/** @description Runs of this traffic kind in the window. */
|
|
58534
|
+
total: number;
|
|
58535
|
+
};
|
|
58536
|
+
live: {
|
|
58537
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
58538
|
+
failed: number;
|
|
58539
|
+
/** @description Runs of this traffic kind in the window. */
|
|
58540
|
+
total: number;
|
|
58541
|
+
};
|
|
58542
|
+
sim: {
|
|
58543
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
58544
|
+
failed: number;
|
|
58545
|
+
/** @description Runs of this traffic kind in the window. */
|
|
58546
|
+
total: number;
|
|
58547
|
+
};
|
|
58548
|
+
test: {
|
|
58549
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
58550
|
+
failed: number;
|
|
58551
|
+
/** @description Runs of this traffic kind in the window. */
|
|
58552
|
+
total: number;
|
|
58553
|
+
};
|
|
58554
|
+
};
|
|
58555
|
+
/** @description Every run the filters match, `traffic` included. */
|
|
58556
|
+
totals: {
|
|
58557
|
+
cost: {
|
|
58558
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
58559
|
+
known: number;
|
|
58560
|
+
/** @description Settled runs with a known cost. */
|
|
58561
|
+
pricedRuns: number;
|
|
58562
|
+
/** @description Settled runs with no known cost, usually a model or tool with no price set. When this is above 0, `known` is a lower bound. */
|
|
58563
|
+
unpricedRuns: number;
|
|
58564
|
+
};
|
|
58565
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
58566
|
+
failed: number;
|
|
58567
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
58568
|
+
lastStartedAt: string | null;
|
|
58569
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
58570
|
+
p50DurationMs: number | null;
|
|
58571
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
58572
|
+
p95DurationMs: number | null;
|
|
58573
|
+
/** @description Runs still running. */
|
|
58574
|
+
running: number;
|
|
58575
|
+
/** @description Runs in the bucket. */
|
|
58576
|
+
total: number;
|
|
58577
|
+
};
|
|
58578
|
+
};
|
|
58579
|
+
RunStoreUnavailableError: components["schemas"]["Error"] & {
|
|
58580
|
+
/** @enum {string} */
|
|
58581
|
+
code: "RUN_STORE_UNAVAILABLE";
|
|
58582
|
+
};
|
|
56499
58583
|
RuntimeEmailAdmissionError: {
|
|
56500
58584
|
code?: string;
|
|
56501
58585
|
error: string;
|
|
@@ -56507,10 +58591,13 @@ interface components {
|
|
|
56507
58591
|
};
|
|
56508
58592
|
RuntimeExportWarning: {
|
|
56509
58593
|
childId?: string;
|
|
56510
|
-
/** @enum {string} */
|
|
56511
|
-
childKind: "agent" | "flow";
|
|
56512
58594
|
/**
|
|
56513
|
-
* @description
|
|
58595
|
+
* @description What kind of child the warning is about. `question_set` names the question set id in `childId`.
|
|
58596
|
+
* @enum {string}
|
|
58597
|
+
*/
|
|
58598
|
+
childKind: "agent" | "flow" | "question_set";
|
|
58599
|
+
/**
|
|
58600
|
+
* @description `child_dropped`: the child is absent from the artifact. `child_stubbed`: the artifact carries a stub the runtime cannot run, or a configured decision tool without its question set.
|
|
56514
58601
|
* @enum {string}
|
|
56515
58602
|
*/
|
|
56516
58603
|
code: "child_dropped" | "child_stubbed";
|
|
@@ -56518,10 +58605,10 @@ interface components {
|
|
|
56518
58605
|
/** @description The agent whose capability referenced the child, when the child came from one. */
|
|
56519
58606
|
parentId?: string;
|
|
56520
58607
|
/**
|
|
56521
|
-
* @description Why the export could not embed the child.
|
|
58608
|
+
* @description Why the export could not embed the child. `question_set_unresolved`: a configured `decision_judge` tool references a question set that is missing, unpublished, owned by another account, or pinned to a version that is not published; the tool stays in the artifact without `config.questionSet`, so a self-hosted runtime in own-key mode refuses its calls (platform and hybrid modes resolve it through Runtype).
|
|
56522
58609
|
* @enum {string}
|
|
56523
58610
|
*/
|
|
56524
|
-
reason: "not_found" | "claude_managed_unsupported" | "max_depth_exceeded" | "invalid_flow_config" | "unresolved_tool_ref" | "unsupported_mcp_auth";
|
|
58611
|
+
reason: "not_found" | "claude_managed_unsupported" | "max_depth_exceeded" | "invalid_flow_config" | "unresolved_tool_ref" | "unsupported_mcp_auth" | "question_set_unresolved";
|
|
56525
58612
|
/** @description The capability or tool name that referenced the child. */
|
|
56526
58613
|
toolName?: string;
|
|
56527
58614
|
};
|
|
@@ -56568,6 +58655,49 @@ interface components {
|
|
|
56568
58655
|
kind: string;
|
|
56569
58656
|
reason: string;
|
|
56570
58657
|
};
|
|
58658
|
+
RuntimeJudgmentMetadata: {
|
|
58659
|
+
calibrationId: string | null;
|
|
58660
|
+
/** @description Provider rates, before margin. */
|
|
58661
|
+
estimatedCostUsd?: number;
|
|
58662
|
+
/** @enum {string} */
|
|
58663
|
+
keySource: "user" | "platform";
|
|
58664
|
+
provider: string;
|
|
58665
|
+
questionSetId?: string;
|
|
58666
|
+
questionSetVersion?: number;
|
|
58667
|
+
requestedModel: string;
|
|
58668
|
+
resolvedModelId: string | null;
|
|
58669
|
+
route: string;
|
|
58670
|
+
usage: {
|
|
58671
|
+
inputTokens: number;
|
|
58672
|
+
outputTokens: number;
|
|
58673
|
+
reported: boolean;
|
|
58674
|
+
};
|
|
58675
|
+
};
|
|
58676
|
+
RuntimeJudgmentRequest: {
|
|
58677
|
+
/** @description The self-hosted execution asking, recorded on the judgment telemetry. */
|
|
58678
|
+
executionId?: string;
|
|
58679
|
+
/** @description Decision model id. In configured mode it outranks the question set version model. */
|
|
58680
|
+
model?: string;
|
|
58681
|
+
/** @description A question set owned by the caller; its published version supplies the questions. */
|
|
58682
|
+
questionSetId?: string;
|
|
58683
|
+
/** @description Ad hoc questions keyed by question id, each `{ type: "boolean" | "choice" | "score", instructions, criteria }`. Refused with `JUDGMENT_CONFIGURED_QUESTIONS_REJECTED` when `questionSetId` is set. */
|
|
58684
|
+
questions?: {
|
|
58685
|
+
[key: string]: unknown;
|
|
58686
|
+
};
|
|
58687
|
+
/** @description The text, JSON object or JSON array to judge. Never echoed in errors or logs. */
|
|
58688
|
+
state: string | {
|
|
58689
|
+
[key: string]: unknown;
|
|
58690
|
+
} | unknown[];
|
|
58691
|
+
/** @description Published question set version to use; omit for the current version. Without `questionSetId` the call is refused with 400 `JUDGMENT_VERSION_WITHOUT_QUESTION_SET`. */
|
|
58692
|
+
version?: number;
|
|
58693
|
+
};
|
|
58694
|
+
RuntimeJudgmentResponse: {
|
|
58695
|
+
/** @description One answer per question id, exactly as the decision model returned it. */
|
|
58696
|
+
answers: {
|
|
58697
|
+
[key: string]: unknown;
|
|
58698
|
+
};
|
|
58699
|
+
judgment: components["schemas"]["RuntimeJudgmentMetadata"];
|
|
58700
|
+
};
|
|
56571
58701
|
ScheduleEnsureConflict: {
|
|
56572
58702
|
/** @enum {string} */
|
|
56573
58703
|
code: "external_modification" | "remote_changed";
|
|
@@ -58921,8 +61051,24 @@ export interface ModelConfig {
|
|
|
58921
61051
|
requiresIntegration?: string;
|
|
58922
61052
|
apiKey?: string;
|
|
58923
61053
|
scope?: 'personal' | 'organization';
|
|
61054
|
+
/**
|
|
61055
|
+
* `organization_connection` marks a model declared by an organization custom inference endpoint with
|
|
61056
|
+
* no stored configuration for the caller: runnable, but its `id` cannot be updated, toggled, or deleted.
|
|
61057
|
+
*/
|
|
61058
|
+
configScope?: 'personal' | 'organization' | 'organization_connection';
|
|
58924
61059
|
organizationId?: string;
|
|
58925
61060
|
}
|
|
61061
|
+
/** Which providers may serve a model call for the account, and under whose credential. */
|
|
61062
|
+
export interface ModelCredentialPolicy {
|
|
61063
|
+
/** `byok_only`: only models from `byokProviders` run. */
|
|
61064
|
+
mode: 'byok_only' | 'mixed' | 'platform';
|
|
61065
|
+
/** Providers served by the account's own credentials; `generic-openai` is its custom inference endpoint. */
|
|
61066
|
+
byokProviders: string[];
|
|
61067
|
+
platformProviders: string[];
|
|
61068
|
+
/** Providers an organization policy refuses until a credential is connected. */
|
|
61069
|
+
blockedProviders: string[];
|
|
61070
|
+
summary: string;
|
|
61071
|
+
}
|
|
58926
61072
|
export type UserProfile = paths['/v1/users/profile']['get']['responses'][200]['content']['application/json'];
|
|
58927
61073
|
type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
|
|
58928
61074
|
type UpdateFlowRequestBody = NonNullable<paths['/v1/flows/{id}']['put']['requestBody']>['content']['application/json'];
|
|
@@ -59100,7 +61246,8 @@ export type SelectOrganizationProviderCredentialRequest = NonNullable<paths['/v1
|
|
|
59100
61246
|
export type SelectOrganizationProviderCredentialResponse = paths['/v1/provider-keys/organization-policy']['put']['responses'][200]['content']['application/json'];
|
|
59101
61247
|
export interface CreateApiKeyRequest {
|
|
59102
61248
|
name: string;
|
|
59103
|
-
|
|
61249
|
+
/** Required, at least one scope; the API has no default. `apiKeys.getPermissionOptions()` lists them. */
|
|
61250
|
+
permissions: string[];
|
|
59104
61251
|
expiresAt?: string;
|
|
59105
61252
|
allowedIps?: string[];
|
|
59106
61253
|
environment?: 'test' | 'production';
|
|
@@ -60063,21 +62210,8 @@ export interface AgentVersionPublishResponse {
|
|
|
60063
62210
|
export interface VersionPublishOptions {
|
|
60064
62211
|
onConflict?: 'error' | 'overwrite';
|
|
60065
62212
|
}
|
|
60066
|
-
export
|
|
60067
|
-
|
|
60068
|
-
versionNumber: number;
|
|
60069
|
-
versionType: string;
|
|
60070
|
-
label: string | null;
|
|
60071
|
-
notes: string | null;
|
|
60072
|
-
stepSummary: string | null;
|
|
60073
|
-
stepCount: number;
|
|
60074
|
-
createdAt: string;
|
|
60075
|
-
}
|
|
60076
|
-
export interface FlowVersionsListResponse {
|
|
60077
|
-
flowId: string;
|
|
60078
|
-
publishedVersionId: string | null;
|
|
60079
|
-
versions: FlowVersionListItem[];
|
|
60080
|
-
}
|
|
62213
|
+
export type FlowVersionsListResponse = paths['/v1/flow-versions/{flowId}']['get']['responses'][200]['content']['application/json'];
|
|
62214
|
+
export type FlowVersionListItem = FlowVersionsListResponse['versions'][number];
|
|
60081
62215
|
export type FlowVersionDetail = paths['/v1/flow-versions/{flowId}/{versionId}']['get']['responses'][200]['content']['application/json'];
|
|
60082
62216
|
export interface FlowVersionPublishResponse {
|
|
60083
62217
|
success: boolean;
|
|
@@ -63823,6 +65957,7 @@ interface RunListRow {
|
|
|
63823
65957
|
kind: 'agent' | 'flow';
|
|
63824
65958
|
agentId: string | null;
|
|
63825
65959
|
flowId: string | null;
|
|
65960
|
+
flowVersionId?: string | null;
|
|
63826
65961
|
conversationId: string | null;
|
|
63827
65962
|
surfaceId: string | null;
|
|
63828
65963
|
surfaceType: string | null;
|
|
@@ -64402,9 +66537,13 @@ interface EnsureFpoOptions {
|
|
|
64402
66537
|
*/
|
|
64403
66538
|
release?: 'none' | 'publish';
|
|
64404
66539
|
}
|
|
66540
|
+
type GeneratedFpoEnsureResponse = Extract<components['schemas']['ProductFpoEnsureResponse'], {
|
|
66541
|
+
entities: unknown;
|
|
66542
|
+
}>;
|
|
66543
|
+
type GeneratedFpoEntityOutcome = GeneratedFpoEnsureResponse['entities'][number];
|
|
64405
66544
|
/** One nested entity's converge result. */
|
|
64406
66545
|
interface FpoEntityOutcome {
|
|
64407
|
-
kind: '
|
|
66546
|
+
kind: GeneratedFpoEntityOutcome['kind'];
|
|
64408
66547
|
ref: string;
|
|
64409
66548
|
name: string;
|
|
64410
66549
|
result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped' | 'pruned';
|
|
@@ -65665,7 +67804,7 @@ interface PromoteAgentResult {
|
|
|
65665
67804
|
*/
|
|
65666
67805
|
export declare function promoteAgent(input: PromoteAgentInput): Promise<PromoteAgentResult>;
|
|
65667
67806
|
//#endregion
|
|
65668
|
-
//#region ../shared/dist/models-
|
|
67807
|
+
//#region ../shared/dist/models-BFb-uNHy.d.ts
|
|
65669
67808
|
//#region src/generated-evaluation-models.d.ts
|
|
65670
67809
|
/**
|
|
65671
67810
|
* Per-token USD exactly as the gateway listed it, plus the per-million figures
|
|
@@ -66873,7 +69012,7 @@ export declare class ModelConfigsEndpoint {
|
|
|
66873
69012
|
private client;
|
|
66874
69013
|
constructor(client: ApiClient);
|
|
66875
69014
|
/**
|
|
66876
|
-
* Get available models catalog
|
|
69015
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
66877
69016
|
*/
|
|
66878
69017
|
getAvailable(): Promise<ModelConfig[]>;
|
|
66879
69018
|
/**
|
|
@@ -66885,9 +69024,15 @@ export declare class ModelConfigsEndpoint {
|
|
|
66885
69024
|
*/
|
|
66886
69025
|
getSearchConfigured(): Promise<ModelConfig[]>;
|
|
66887
69026
|
/**
|
|
66888
|
-
* List
|
|
69027
|
+
* List every model the account can run: its model configurations plus the models its organization's
|
|
69028
|
+
* custom inference endpoints declare (`configScope: 'organization_connection'`)
|
|
66889
69029
|
*/
|
|
66890
69030
|
list(): Promise<ModelConfig[]>;
|
|
69031
|
+
/**
|
|
69032
|
+
* Get which providers may serve a model call for the account. When `mode` is `byok_only`,
|
|
69033
|
+
* only models from `byokProviders` run.
|
|
69034
|
+
*/
|
|
69035
|
+
getCredentialPolicy(): Promise<ModelCredentialPolicy | undefined>;
|
|
66891
69036
|
/**
|
|
66892
69037
|
* Create a new model configuration
|
|
66893
69038
|
*/
|