@runtypelabs/sdk 10.16.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +34 -5
- package/dist/index.d.cts +1588 -255
- package/dist/index.d.ts +1588 -255
- package/dist/index.mjs +34 -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
|
};
|
|
@@ -1014,6 +1050,11 @@ interface paths {
|
|
|
1014
1050
|
enabled: true;
|
|
1015
1051
|
types: ("markdown" | "component")[];
|
|
1016
1052
|
};
|
|
1053
|
+
busyMessageRouting?: {
|
|
1054
|
+
classifierModel?: string;
|
|
1055
|
+
/** @enum {string} */
|
|
1056
|
+
mode?: "enforced" | "off";
|
|
1057
|
+
};
|
|
1017
1058
|
contextManagement?: {
|
|
1018
1059
|
compaction?: {
|
|
1019
1060
|
enabled?: boolean;
|
|
@@ -1264,6 +1305,10 @@ interface paths {
|
|
|
1264
1305
|
topK?: number;
|
|
1265
1306
|
topP?: number;
|
|
1266
1307
|
voice?: {
|
|
1308
|
+
directTools?: {
|
|
1309
|
+
enabled?: boolean;
|
|
1310
|
+
model?: string;
|
|
1311
|
+
};
|
|
1267
1312
|
disclosure?: boolean;
|
|
1268
1313
|
elevenLabs?: {
|
|
1269
1314
|
modelId?: string;
|
|
@@ -1551,6 +1596,11 @@ interface paths {
|
|
|
1551
1596
|
enabled: true;
|
|
1552
1597
|
types: ("markdown" | "component")[];
|
|
1553
1598
|
};
|
|
1599
|
+
busyMessageRouting?: {
|
|
1600
|
+
classifierModel?: string;
|
|
1601
|
+
/** @enum {string} */
|
|
1602
|
+
mode?: "enforced" | "off";
|
|
1603
|
+
};
|
|
1554
1604
|
contextManagement?: {
|
|
1555
1605
|
compaction?: {
|
|
1556
1606
|
enabled?: boolean;
|
|
@@ -1801,6 +1851,10 @@ interface paths {
|
|
|
1801
1851
|
topK?: number;
|
|
1802
1852
|
topP?: number;
|
|
1803
1853
|
voice?: {
|
|
1854
|
+
directTools?: {
|
|
1855
|
+
enabled?: boolean;
|
|
1856
|
+
model?: string;
|
|
1857
|
+
};
|
|
1804
1858
|
disclosure?: boolean;
|
|
1805
1859
|
elevenLabs?: {
|
|
1806
1860
|
modelId?: string;
|
|
@@ -2377,6 +2431,11 @@ interface paths {
|
|
|
2377
2431
|
enabled: true;
|
|
2378
2432
|
types: ("markdown" | "component")[];
|
|
2379
2433
|
};
|
|
2434
|
+
busyMessageRouting?: {
|
|
2435
|
+
classifierModel?: string;
|
|
2436
|
+
/** @enum {string} */
|
|
2437
|
+
mode?: "enforced" | "off";
|
|
2438
|
+
};
|
|
2380
2439
|
contextManagement?: {
|
|
2381
2440
|
compaction?: {
|
|
2382
2441
|
enabled?: boolean;
|
|
@@ -2627,6 +2686,10 @@ interface paths {
|
|
|
2627
2686
|
topK?: number;
|
|
2628
2687
|
topP?: number;
|
|
2629
2688
|
voice?: {
|
|
2689
|
+
directTools?: {
|
|
2690
|
+
enabled?: boolean;
|
|
2691
|
+
model?: string;
|
|
2692
|
+
};
|
|
2630
2693
|
disclosure?: boolean;
|
|
2631
2694
|
elevenLabs?: {
|
|
2632
2695
|
modelId?: string;
|
|
@@ -3289,7 +3352,11 @@ interface paths {
|
|
|
3289
3352
|
[name: string]: unknown;
|
|
3290
3353
|
};
|
|
3291
3354
|
content: {
|
|
3292
|
-
"application/json": components["schemas"]["Error"]
|
|
3355
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3356
|
+
alias: string;
|
|
3357
|
+
/** @enum {string} */
|
|
3358
|
+
code: "alias_revision_required";
|
|
3359
|
+
};
|
|
3293
3360
|
};
|
|
3294
3361
|
};
|
|
3295
3362
|
/** @description Internal server error */
|
|
@@ -3628,7 +3695,11 @@ interface paths {
|
|
|
3628
3695
|
[name: string]: unknown;
|
|
3629
3696
|
};
|
|
3630
3697
|
content: {
|
|
3631
|
-
"application/json": components["schemas"]["Error"]
|
|
3698
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3699
|
+
alias: string;
|
|
3700
|
+
/** @enum {string} */
|
|
3701
|
+
code: "alias_revision_required";
|
|
3702
|
+
};
|
|
3632
3703
|
};
|
|
3633
3704
|
};
|
|
3634
3705
|
/** @description Internal server error */
|
|
@@ -3742,7 +3813,11 @@ interface paths {
|
|
|
3742
3813
|
[name: string]: unknown;
|
|
3743
3814
|
};
|
|
3744
3815
|
content: {
|
|
3745
|
-
"application/json": components["schemas"]["Error"]
|
|
3816
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3817
|
+
alias: string;
|
|
3818
|
+
/** @enum {string} */
|
|
3819
|
+
code: "alias_revision_required";
|
|
3820
|
+
};
|
|
3746
3821
|
};
|
|
3747
3822
|
};
|
|
3748
3823
|
/** @description Internal server error */
|
|
@@ -3893,7 +3968,11 @@ interface paths {
|
|
|
3893
3968
|
[name: string]: unknown;
|
|
3894
3969
|
};
|
|
3895
3970
|
content: {
|
|
3896
|
-
"application/json": components["schemas"]["Error"]
|
|
3971
|
+
"application/json": components["schemas"]["Error"] & {
|
|
3972
|
+
alias: string;
|
|
3973
|
+
/** @enum {string} */
|
|
3974
|
+
code: "alias_revision_required";
|
|
3975
|
+
};
|
|
3897
3976
|
};
|
|
3898
3977
|
};
|
|
3899
3978
|
/** @description Internal server error */
|
|
@@ -4813,8 +4892,8 @@ interface paths {
|
|
|
4813
4892
|
parameters: {
|
|
4814
4893
|
query?: never;
|
|
4815
4894
|
header?: {
|
|
4816
|
-
/** @description How a durable turn handles overlap. `reject` (default) answers CONVERSATION_BUSY naming the occupant execution, its phase, and a Retry-After; `supersede` cancels and replaces; `queue` runs afterward; `steer` durably appends new user-message deltas to the same execution at a safe boundary, attaches through the host's slot claim when the host has not started yet, or starts the next execution if completion wins. Steer requires a conversationId, preserves configuration and authority, cannot combine with coalesce, and rejects unsupported lanes. Other policies remain ignored on in-process execution. */
|
|
4817
|
-
"x-runtype-concurrency"?: "reject" | "supersede" | "queue" | "steer";
|
|
4895
|
+
/** @description How a durable turn handles overlap. `reject` (default) answers CONVERSATION_BUSY naming the occupant execution, its phase, and a Retry-After; `supersede` cancels and replaces; `queue` runs afterward; `steer` durably appends new user-message deltas to the same execution at a safe boundary, attaches through the host's slot claim when the host has not started yet, or starts the next execution if completion wins. Steer requires a conversationId, preserves configuration and authority, cannot combine with coalesce, and rejects unsupported lanes. `auto` sends the same user-message deltas as steer and lets a classifier choose: while a turn runs, a message that belongs to it steers and an independent one queues as the next turn; with nothing running it is an ordinary turn with no route report. A routed or downgraded answer reports the route in `X-Runtype-Busy-Message-Route` / `-Source` (plus `-Probability` and `-Model` when the classifier answered) and, on JSON bodies, `busyMessageRoute`. Where auto cannot route (in-process execution, stored history, no conversationId, coalesce, Prefer: respond-async) it keeps the default admission and reports source `disabled`. Other policies remain ignored on in-process execution. */
|
|
4896
|
+
"x-runtype-concurrency"?: "reject" | "supersede" | "queue" | "steer" | "auto";
|
|
4818
4897
|
/** @description Send `true` to fold this request into an already-pending turn for the same conversation instead of starting a second one. The response is the pending execution. Any other value (or omitting the header) starts a new turn. */
|
|
4819
4898
|
"x-runtype-coalesce"?: "true";
|
|
4820
4899
|
/** @description Caller-chosen key that makes admission idempotent: a retry with the same key returns the ORIGINAL execution rather than starting a second turn, and consumes no additional quota. Scoped to the durable lane. */
|
|
@@ -5719,11 +5798,11 @@ interface paths {
|
|
|
5719
5798
|
};
|
|
5720
5799
|
/**
|
|
5721
5800
|
* Export agent for runtime
|
|
5722
|
-
* @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.
|
|
5723
5802
|
*
|
|
5724
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.
|
|
5725
5804
|
*
|
|
5726
|
-
* 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.
|
|
5727
5806
|
*
|
|
5728
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`.
|
|
5729
5808
|
*/
|
|
@@ -5775,7 +5854,7 @@ interface paths {
|
|
|
5775
5854
|
};
|
|
5776
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. */
|
|
5777
5856
|
skills?: components["schemas"]["RuntimeExportedSkill"][];
|
|
5778
|
-
/** @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. */
|
|
5779
5858
|
warnings: components["schemas"]["RuntimeExportWarning"][];
|
|
5780
5859
|
};
|
|
5781
5860
|
"application/zip": string;
|
|
@@ -7299,11 +7378,7 @@ interface paths {
|
|
|
7299
7378
|
[name: string]: unknown;
|
|
7300
7379
|
};
|
|
7301
7380
|
content: {
|
|
7302
|
-
"application/json":
|
|
7303
|
-
/** @enum {string} */
|
|
7304
|
-
code: "invalid_request" | "storage_not_configured" | "store_failed";
|
|
7305
|
-
error: string;
|
|
7306
|
-
};
|
|
7381
|
+
"application/json": components["schemas"]["InternalError"];
|
|
7307
7382
|
};
|
|
7308
7383
|
};
|
|
7309
7384
|
/** @description Asset storage is not configured in this environment */
|
|
@@ -9670,7 +9745,7 @@ interface paths {
|
|
|
9670
9745
|
put?: never;
|
|
9671
9746
|
/**
|
|
9672
9747
|
* Send a client chat message
|
|
9673
|
-
* @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. 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.
|
|
9674
9749
|
*/
|
|
9675
9750
|
post: {
|
|
9676
9751
|
parameters: {
|
|
@@ -9750,10 +9825,19 @@ interface paths {
|
|
|
9750
9825
|
};
|
|
9751
9826
|
sessionId: string;
|
|
9752
9827
|
/** @enum {string} */
|
|
9753
|
-
submitMode?: "normal" | "interrupt" | "steer";
|
|
9828
|
+
submitMode?: "normal" | "interrupt" | "steer" | "auto";
|
|
9754
9829
|
turnId?: string;
|
|
9755
9830
|
/** @description Voice context for this turn. Omit for typed chat; behavior is unchanged when absent. */
|
|
9756
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
|
+
}[];
|
|
9757
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. */
|
|
9758
9842
|
spoken?: boolean;
|
|
9759
9843
|
};
|
|
@@ -9770,7 +9854,7 @@ interface paths {
|
|
|
9770
9854
|
"text/event-stream": unknown;
|
|
9771
9855
|
};
|
|
9772
9856
|
};
|
|
9773
|
-
/** @description Input accepted
|
|
9857
|
+
/** @description Input accepted without a new response stream: a steer receipt from the running execution, or (for `auto`) a queued handle for the next turn */
|
|
9774
9858
|
202: {
|
|
9775
9859
|
headers: {
|
|
9776
9860
|
[name: string]: unknown;
|
|
@@ -9779,6 +9863,7 @@ interface paths {
|
|
|
9779
9863
|
"application/json": {
|
|
9780
9864
|
/** @enum {boolean} */
|
|
9781
9865
|
accepted: true;
|
|
9866
|
+
busyMessageRoute?: components["schemas"]["BusyMessageRouteReport"];
|
|
9782
9867
|
conversationId: string;
|
|
9783
9868
|
deliveryId: string;
|
|
9784
9869
|
/** @enum {string} */
|
|
@@ -9786,7 +9871,15 @@ interface paths {
|
|
|
9786
9871
|
deliveryStatusUrl: string;
|
|
9787
9872
|
eventsUrl: string;
|
|
9788
9873
|
executionId: string;
|
|
9789
|
-
}
|
|
9874
|
+
} | ({
|
|
9875
|
+
busyMessageRoute: components["schemas"]["BusyMessageRouteReport"];
|
|
9876
|
+
/** @description The queued execution, distinct from the running one. */
|
|
9877
|
+
executionId: string;
|
|
9878
|
+
/** @description `queued` until the running execution finishes. */
|
|
9879
|
+
status: string;
|
|
9880
|
+
} & {
|
|
9881
|
+
[key: string]: unknown;
|
|
9882
|
+
});
|
|
9790
9883
|
};
|
|
9791
9884
|
};
|
|
9792
9885
|
/** @description Validation error */
|
|
@@ -10770,7 +10863,18 @@ interface paths {
|
|
|
10770
10863
|
[name: string]: unknown;
|
|
10771
10864
|
};
|
|
10772
10865
|
content: {
|
|
10773
|
-
"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"];
|
|
10774
10878
|
};
|
|
10775
10879
|
};
|
|
10776
10880
|
};
|
|
@@ -14344,7 +14448,7 @@ interface paths {
|
|
|
14344
14448
|
put?: never;
|
|
14345
14449
|
/**
|
|
14346
14450
|
* Execute a flow or agent
|
|
14347
|
-
* @description Main dispatch endpoint for flow and agent execution with record resolution. Supports streaming via SSE or synchronous JSON responses. Send the RFC 7240 `Prefer: respond-async` header to receive a durable execution handle immediately, then poll its status URL for completion. A saved agent may run on the durable session lane; the admission headers `x-runtype-concurrency` (reject, supersede, queue, steer), `x-runtype-coalesce` (true) and `idempotency-key` then apply exactly as on `POST /v1/agents/{id}/execute`, and are ignored for in-process execution except steer, which fails explicitly on unsupported lanes. Any other x-runtype-concurrency value is refused with 400 INVALID_CONCURRENCY_MODE. Steer accepts only new user-message deltas, preserves the active execution configuration and authority, and returns a deliveryId with a deliveryStatusUrl. Prefer: respond-async with steer returns a native delivery receipt without queuing an HTTP replay.
|
|
14451
|
+
* @description Main dispatch endpoint for flow and agent execution with record resolution. Supports streaming via SSE or synchronous JSON responses. Send the RFC 7240 `Prefer: respond-async` header to receive a durable execution handle immediately, then poll its status URL for completion. A saved agent may run on the durable session lane; the admission headers `x-runtype-concurrency` (reject, supersede, queue, steer), `x-runtype-coalesce` (true) and `idempotency-key` then apply exactly as on `POST /v1/agents/{id}/execute`, and are ignored for in-process execution except steer, which fails explicitly on unsupported lanes. `x-runtype-concurrency: auto` sends the same user-message deltas as steer and lets a classifier choose: while a turn runs, a message that belongs to it steers and an independent one queues as the next turn; with nothing running it is an ordinary turn with no route report. A routed or downgraded answer carries `X-Runtype-Busy-Message-Route` (steer or queue) and `X-Runtype-Busy-Message-Source` (classifier, shadow, abstained, timeout, error, unanswered, circuit_open, or disabled), plus `X-Runtype-Busy-Message-Probability` and `X-Runtype-Busy-Message-Model` when the classifier answered; JSON bodies repeat them as `busyMessageRoute`. Where auto cannot route (in-process execution, stored history, a flow, no conversationId, coalesce, Prefer: respond-async) it keeps the default admission and reports source `disabled`. Any other x-runtype-concurrency value is refused with 400 INVALID_CONCURRENCY_MODE. Steer accepts only new user-message deltas, preserves the active execution configuration and authority, and returns a deliveryId with a deliveryStatusUrl. Prefer: respond-async with steer returns a native delivery receipt without queuing an HTTP replay.
|
|
14348
14452
|
*/
|
|
14349
14453
|
post: {
|
|
14350
14454
|
parameters: {
|
|
@@ -14370,6 +14474,11 @@ interface paths {
|
|
|
14370
14474
|
enabled: true;
|
|
14371
14475
|
types: ("markdown" | "component")[];
|
|
14372
14476
|
};
|
|
14477
|
+
busyMessageRouting?: {
|
|
14478
|
+
classifierModel?: string;
|
|
14479
|
+
/** @enum {string} */
|
|
14480
|
+
mode?: "enforced" | "off";
|
|
14481
|
+
};
|
|
14373
14482
|
claudeManagedConfig?: {
|
|
14374
14483
|
anthropicAgentId?: string;
|
|
14375
14484
|
anthropicAgentVersion?: number;
|
|
@@ -14556,6 +14665,10 @@ interface paths {
|
|
|
14556
14665
|
topP?: number;
|
|
14557
14666
|
versionId?: string;
|
|
14558
14667
|
voice?: {
|
|
14668
|
+
directTools?: {
|
|
14669
|
+
enabled?: boolean;
|
|
14670
|
+
model?: string;
|
|
14671
|
+
};
|
|
14559
14672
|
disclosure?: boolean;
|
|
14560
14673
|
elevenLabs?: {
|
|
14561
14674
|
modelId?: string;
|
|
@@ -14832,6 +14945,11 @@ interface paths {
|
|
|
14832
14945
|
enabled: true;
|
|
14833
14946
|
types: ("markdown" | "component")[];
|
|
14834
14947
|
};
|
|
14948
|
+
busyMessageRouting?: {
|
|
14949
|
+
classifierModel?: string;
|
|
14950
|
+
/** @enum {string} */
|
|
14951
|
+
mode?: "enforced" | "off";
|
|
14952
|
+
};
|
|
14835
14953
|
claudeManagedConfig?: {
|
|
14836
14954
|
anthropicAgentId?: string;
|
|
14837
14955
|
anthropicAgentVersion?: number;
|
|
@@ -15018,6 +15136,10 @@ interface paths {
|
|
|
15018
15136
|
topP?: number;
|
|
15019
15137
|
versionId?: string;
|
|
15020
15138
|
voice?: {
|
|
15139
|
+
directTools?: {
|
|
15140
|
+
enabled?: boolean;
|
|
15141
|
+
model?: string;
|
|
15142
|
+
};
|
|
15021
15143
|
disclosure?: boolean;
|
|
15022
15144
|
elevenLabs?: {
|
|
15023
15145
|
modelId?: string;
|
|
@@ -16568,7 +16690,18 @@ interface paths {
|
|
|
16568
16690
|
[name: string]: unknown;
|
|
16569
16691
|
};
|
|
16570
16692
|
content: {
|
|
16571
|
-
"application/json": components["schemas"]["
|
|
16693
|
+
"application/json": components["schemas"]["InternalError"];
|
|
16694
|
+
};
|
|
16695
|
+
};
|
|
16696
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
16697
|
+
503: {
|
|
16698
|
+
headers: {
|
|
16699
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
16700
|
+
"Retry-After": string;
|
|
16701
|
+
[name: string]: unknown;
|
|
16702
|
+
};
|
|
16703
|
+
content: {
|
|
16704
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
16572
16705
|
};
|
|
16573
16706
|
};
|
|
16574
16707
|
};
|
|
@@ -16643,7 +16776,18 @@ interface paths {
|
|
|
16643
16776
|
[name: string]: unknown;
|
|
16644
16777
|
};
|
|
16645
16778
|
content: {
|
|
16646
|
-
"application/json": components["schemas"]["
|
|
16779
|
+
"application/json": components["schemas"]["InternalError"];
|
|
16780
|
+
};
|
|
16781
|
+
};
|
|
16782
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
16783
|
+
503: {
|
|
16784
|
+
headers: {
|
|
16785
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
16786
|
+
"Retry-After": string;
|
|
16787
|
+
[name: string]: unknown;
|
|
16788
|
+
};
|
|
16789
|
+
content: {
|
|
16790
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
16647
16791
|
};
|
|
16648
16792
|
};
|
|
16649
16793
|
};
|
|
@@ -16755,7 +16899,18 @@ interface paths {
|
|
|
16755
16899
|
[name: string]: unknown;
|
|
16756
16900
|
};
|
|
16757
16901
|
content: {
|
|
16758
|
-
"application/json": components["schemas"]["
|
|
16902
|
+
"application/json": components["schemas"]["InternalError"];
|
|
16903
|
+
};
|
|
16904
|
+
};
|
|
16905
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
16906
|
+
503: {
|
|
16907
|
+
headers: {
|
|
16908
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
16909
|
+
"Retry-After": string;
|
|
16910
|
+
[name: string]: unknown;
|
|
16911
|
+
};
|
|
16912
|
+
content: {
|
|
16913
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
16759
16914
|
};
|
|
16760
16915
|
};
|
|
16761
16916
|
};
|
|
@@ -16865,6 +17020,101 @@ interface paths {
|
|
|
16865
17020
|
};
|
|
16866
17021
|
};
|
|
16867
17022
|
/** @description Internal server error */
|
|
17023
|
+
500: {
|
|
17024
|
+
headers: {
|
|
17025
|
+
[name: string]: unknown;
|
|
17026
|
+
};
|
|
17027
|
+
content: {
|
|
17028
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17029
|
+
};
|
|
17030
|
+
};
|
|
17031
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17032
|
+
503: {
|
|
17033
|
+
headers: {
|
|
17034
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17035
|
+
"Retry-After": string;
|
|
17036
|
+
[name: string]: unknown;
|
|
17037
|
+
};
|
|
17038
|
+
content: {
|
|
17039
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17040
|
+
};
|
|
17041
|
+
};
|
|
17042
|
+
};
|
|
17043
|
+
};
|
|
17044
|
+
delete?: never;
|
|
17045
|
+
options?: never;
|
|
17046
|
+
head?: never;
|
|
17047
|
+
patch?: never;
|
|
17048
|
+
trace?: never;
|
|
17049
|
+
};
|
|
17050
|
+
"/v1/eval/default-suites": {
|
|
17051
|
+
parameters: {
|
|
17052
|
+
query?: never;
|
|
17053
|
+
header?: never;
|
|
17054
|
+
path?: never;
|
|
17055
|
+
cookie?: never;
|
|
17056
|
+
};
|
|
17057
|
+
get?: never;
|
|
17058
|
+
put?: never;
|
|
17059
|
+
/**
|
|
17060
|
+
* Ensure default eval suites
|
|
17061
|
+
* @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.
|
|
17062
|
+
*/
|
|
17063
|
+
post: {
|
|
17064
|
+
parameters: {
|
|
17065
|
+
query?: never;
|
|
17066
|
+
header?: never;
|
|
17067
|
+
path?: never;
|
|
17068
|
+
cookie?: never;
|
|
17069
|
+
};
|
|
17070
|
+
requestBody?: {
|
|
17071
|
+
content: {
|
|
17072
|
+
"application/json": {
|
|
17073
|
+
agentIds?: string[];
|
|
17074
|
+
flowIds?: string[];
|
|
17075
|
+
};
|
|
17076
|
+
};
|
|
17077
|
+
};
|
|
17078
|
+
responses: {
|
|
17079
|
+
/** @description Default suites ensured */
|
|
17080
|
+
200: {
|
|
17081
|
+
headers: {
|
|
17082
|
+
[name: string]: unknown;
|
|
17083
|
+
};
|
|
17084
|
+
content: {
|
|
17085
|
+
"application/json": {
|
|
17086
|
+
created: number;
|
|
17087
|
+
};
|
|
17088
|
+
};
|
|
17089
|
+
};
|
|
17090
|
+
/** @description Invalid request */
|
|
17091
|
+
400: {
|
|
17092
|
+
headers: {
|
|
17093
|
+
[name: string]: unknown;
|
|
17094
|
+
};
|
|
17095
|
+
content: {
|
|
17096
|
+
"application/json": components["schemas"]["Error"];
|
|
17097
|
+
};
|
|
17098
|
+
};
|
|
17099
|
+
/** @description Unauthorized */
|
|
17100
|
+
401: {
|
|
17101
|
+
headers: {
|
|
17102
|
+
[name: string]: unknown;
|
|
17103
|
+
};
|
|
17104
|
+
content: {
|
|
17105
|
+
"application/json": components["schemas"]["Error"];
|
|
17106
|
+
};
|
|
17107
|
+
};
|
|
17108
|
+
/** @description Forbidden */
|
|
17109
|
+
403: {
|
|
17110
|
+
headers: {
|
|
17111
|
+
[name: string]: unknown;
|
|
17112
|
+
};
|
|
17113
|
+
content: {
|
|
17114
|
+
"application/json": components["schemas"]["Error"];
|
|
17115
|
+
};
|
|
17116
|
+
};
|
|
17117
|
+
/** @description Internal server error */
|
|
16868
17118
|
500: {
|
|
16869
17119
|
headers: {
|
|
16870
17120
|
[name: string]: unknown;
|
|
@@ -17301,7 +17551,18 @@ interface paths {
|
|
|
17301
17551
|
[name: string]: unknown;
|
|
17302
17552
|
};
|
|
17303
17553
|
content: {
|
|
17304
|
-
"application/json": components["schemas"]["
|
|
17554
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17555
|
+
};
|
|
17556
|
+
};
|
|
17557
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17558
|
+
503: {
|
|
17559
|
+
headers: {
|
|
17560
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17561
|
+
"Retry-After": string;
|
|
17562
|
+
[name: string]: unknown;
|
|
17563
|
+
};
|
|
17564
|
+
content: {
|
|
17565
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17305
17566
|
};
|
|
17306
17567
|
};
|
|
17307
17568
|
};
|
|
@@ -17539,7 +17800,7 @@ interface paths {
|
|
|
17539
17800
|
[name: string]: unknown;
|
|
17540
17801
|
};
|
|
17541
17802
|
content: {
|
|
17542
|
-
"application/json": components["schemas"]["
|
|
17803
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17543
17804
|
};
|
|
17544
17805
|
};
|
|
17545
17806
|
/** @description Forbidden */
|
|
@@ -17566,7 +17827,18 @@ interface paths {
|
|
|
17566
17827
|
[name: string]: unknown;
|
|
17567
17828
|
};
|
|
17568
17829
|
content: {
|
|
17569
|
-
"application/json": components["schemas"]["
|
|
17830
|
+
"application/json": components["schemas"]["InternalError"];
|
|
17831
|
+
};
|
|
17832
|
+
};
|
|
17833
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
17834
|
+
503: {
|
|
17835
|
+
headers: {
|
|
17836
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
17837
|
+
"Retry-After": string;
|
|
17838
|
+
[name: string]: unknown;
|
|
17839
|
+
};
|
|
17840
|
+
content: {
|
|
17841
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17570
17842
|
};
|
|
17571
17843
|
};
|
|
17572
17844
|
};
|
|
@@ -17813,7 +18085,7 @@ interface paths {
|
|
|
17813
18085
|
[name: string]: unknown;
|
|
17814
18086
|
};
|
|
17815
18087
|
content: {
|
|
17816
|
-
"application/json": components["schemas"]["
|
|
18088
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17817
18089
|
};
|
|
17818
18090
|
};
|
|
17819
18091
|
/** @description Forbidden */
|
|
@@ -17831,7 +18103,18 @@ interface paths {
|
|
|
17831
18103
|
[name: string]: unknown;
|
|
17832
18104
|
};
|
|
17833
18105
|
content: {
|
|
17834
|
-
"application/json": components["schemas"]["
|
|
18106
|
+
"application/json": components["schemas"]["InternalError"];
|
|
18107
|
+
};
|
|
18108
|
+
};
|
|
18109
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
18110
|
+
503: {
|
|
18111
|
+
headers: {
|
|
18112
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
18113
|
+
"Retry-After": string;
|
|
18114
|
+
[name: string]: unknown;
|
|
18115
|
+
};
|
|
18116
|
+
content: {
|
|
18117
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17835
18118
|
};
|
|
17836
18119
|
};
|
|
17837
18120
|
};
|
|
@@ -17868,6 +18151,10 @@ interface paths {
|
|
|
17868
18151
|
agent?: components["schemas"]["EvalAgentSelector"] & unknown;
|
|
17869
18152
|
evalConfig?: components["schemas"]["EvalConfigRequest"];
|
|
17870
18153
|
evalConfigs?: components["schemas"]["EvalConfigRequest"][];
|
|
18154
|
+
/** @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. */
|
|
18155
|
+
inputs?: {
|
|
18156
|
+
[key: string]: unknown;
|
|
18157
|
+
} | null;
|
|
17871
18158
|
} & {
|
|
17872
18159
|
[key: string]: unknown;
|
|
17873
18160
|
};
|
|
@@ -17920,7 +18207,7 @@ interface paths {
|
|
|
17920
18207
|
[name: string]: unknown;
|
|
17921
18208
|
};
|
|
17922
18209
|
content: {
|
|
17923
|
-
"application/json": components["schemas"]["
|
|
18210
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
17924
18211
|
};
|
|
17925
18212
|
};
|
|
17926
18213
|
/** @description Forbidden */
|
|
@@ -17947,7 +18234,18 @@ interface paths {
|
|
|
17947
18234
|
[name: string]: unknown;
|
|
17948
18235
|
};
|
|
17949
18236
|
content: {
|
|
17950
|
-
"application/json": components["schemas"]["
|
|
18237
|
+
"application/json": components["schemas"]["InternalError"];
|
|
18238
|
+
};
|
|
18239
|
+
};
|
|
18240
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
18241
|
+
503: {
|
|
18242
|
+
headers: {
|
|
18243
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
18244
|
+
"Retry-After": string;
|
|
18245
|
+
[name: string]: unknown;
|
|
18246
|
+
};
|
|
18247
|
+
content: {
|
|
18248
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
17951
18249
|
};
|
|
17952
18250
|
};
|
|
17953
18251
|
};
|
|
@@ -18091,6 +18389,14 @@ interface paths {
|
|
|
18091
18389
|
toolName: string;
|
|
18092
18390
|
}[];
|
|
18093
18391
|
}[];
|
|
18392
|
+
/** @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. */
|
|
18393
|
+
record?: {
|
|
18394
|
+
metadata?: {
|
|
18395
|
+
[key: string]: unknown;
|
|
18396
|
+
};
|
|
18397
|
+
name?: string;
|
|
18398
|
+
type?: string;
|
|
18399
|
+
};
|
|
18094
18400
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18095
18401
|
tenant?: {
|
|
18096
18402
|
id: string;
|
|
@@ -18542,6 +18848,14 @@ interface paths {
|
|
|
18542
18848
|
toolName: string;
|
|
18543
18849
|
}[];
|
|
18544
18850
|
}[];
|
|
18851
|
+
/** @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. */
|
|
18852
|
+
record?: {
|
|
18853
|
+
metadata?: {
|
|
18854
|
+
[key: string]: unknown;
|
|
18855
|
+
};
|
|
18856
|
+
name?: string;
|
|
18857
|
+
type?: string;
|
|
18858
|
+
};
|
|
18545
18859
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18546
18860
|
tenant?: {
|
|
18547
18861
|
id: string;
|
|
@@ -18873,6 +19187,14 @@ interface paths {
|
|
|
18873
19187
|
toolName: string;
|
|
18874
19188
|
}[];
|
|
18875
19189
|
}[];
|
|
19190
|
+
/** @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. */
|
|
19191
|
+
record?: {
|
|
19192
|
+
metadata?: {
|
|
19193
|
+
[key: string]: unknown;
|
|
19194
|
+
};
|
|
19195
|
+
name?: string;
|
|
19196
|
+
type?: string;
|
|
19197
|
+
};
|
|
18876
19198
|
/** @description Product tenant this case runs within (exposed as _tenant.*). Overrides the suite identityDefaults.tenant. */
|
|
18877
19199
|
tenant?: {
|
|
18878
19200
|
id: string;
|
|
@@ -19114,7 +19436,7 @@ interface paths {
|
|
|
19114
19436
|
[name: string]: unknown;
|
|
19115
19437
|
};
|
|
19116
19438
|
content: {
|
|
19117
|
-
"application/json": components["schemas"]["
|
|
19439
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
19118
19440
|
};
|
|
19119
19441
|
};
|
|
19120
19442
|
/** @description Forbidden */
|
|
@@ -19592,7 +19914,7 @@ interface paths {
|
|
|
19592
19914
|
[name: string]: unknown;
|
|
19593
19915
|
};
|
|
19594
19916
|
content: {
|
|
19595
|
-
"application/json": components["schemas"]["
|
|
19917
|
+
"application/json": components["schemas"]["EvalQuotaExceededError"];
|
|
19596
19918
|
};
|
|
19597
19919
|
};
|
|
19598
19920
|
/** @description Forbidden */
|
|
@@ -19628,7 +19950,18 @@ interface paths {
|
|
|
19628
19950
|
[name: string]: unknown;
|
|
19629
19951
|
};
|
|
19630
19952
|
content: {
|
|
19631
|
-
"application/json": components["schemas"]["
|
|
19953
|
+
"application/json": components["schemas"]["InternalError"];
|
|
19954
|
+
};
|
|
19955
|
+
};
|
|
19956
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
19957
|
+
503: {
|
|
19958
|
+
headers: {
|
|
19959
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
19960
|
+
"Retry-After": string;
|
|
19961
|
+
[name: string]: unknown;
|
|
19962
|
+
};
|
|
19963
|
+
content: {
|
|
19964
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
19632
19965
|
};
|
|
19633
19966
|
};
|
|
19634
19967
|
};
|
|
@@ -19771,7 +20104,18 @@ interface paths {
|
|
|
19771
20104
|
[name: string]: unknown;
|
|
19772
20105
|
};
|
|
19773
20106
|
content: {
|
|
19774
|
-
"application/json": components["schemas"]["
|
|
20107
|
+
"application/json": components["schemas"]["InternalError"];
|
|
20108
|
+
};
|
|
20109
|
+
};
|
|
20110
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
20111
|
+
503: {
|
|
20112
|
+
headers: {
|
|
20113
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
20114
|
+
"Retry-After": string;
|
|
20115
|
+
[name: string]: unknown;
|
|
20116
|
+
};
|
|
20117
|
+
content: {
|
|
20118
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
19775
20119
|
};
|
|
19776
20120
|
};
|
|
19777
20121
|
};
|
|
@@ -20346,7 +20690,18 @@ interface paths {
|
|
|
20346
20690
|
[name: string]: unknown;
|
|
20347
20691
|
};
|
|
20348
20692
|
content: {
|
|
20349
|
-
"application/json": components["schemas"]["
|
|
20693
|
+
"application/json": components["schemas"]["InternalError"];
|
|
20694
|
+
};
|
|
20695
|
+
};
|
|
20696
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
20697
|
+
503: {
|
|
20698
|
+
headers: {
|
|
20699
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
20700
|
+
"Retry-After": string;
|
|
20701
|
+
[name: string]: unknown;
|
|
20702
|
+
};
|
|
20703
|
+
content: {
|
|
20704
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20350
20705
|
};
|
|
20351
20706
|
};
|
|
20352
20707
|
};
|
|
@@ -20750,6 +21105,8 @@ interface paths {
|
|
|
20750
21105
|
};
|
|
20751
21106
|
content: {
|
|
20752
21107
|
"application/json": {
|
|
21108
|
+
draftVersionId: string | null;
|
|
21109
|
+
draftVersionMatchesConfig?: boolean;
|
|
20753
21110
|
flowId: string;
|
|
20754
21111
|
publishedVersionId: string | null;
|
|
20755
21112
|
versions: {
|
|
@@ -20757,8 +21114,11 @@ interface paths {
|
|
|
20757
21114
|
id: string;
|
|
20758
21115
|
label: string | null;
|
|
20759
21116
|
notes: string | null;
|
|
21117
|
+
publishedAt: string | null;
|
|
21118
|
+
savedVersionNumber: number | null;
|
|
20760
21119
|
stepCount: number;
|
|
20761
21120
|
stepSummary: string | null;
|
|
21121
|
+
userId: string;
|
|
20762
21122
|
versionNumber: number;
|
|
20763
21123
|
versionType: string;
|
|
20764
21124
|
}[];
|
|
@@ -20798,9 +21158,18 @@ interface paths {
|
|
|
20798
21158
|
[name: string]: unknown;
|
|
20799
21159
|
};
|
|
20800
21160
|
content: {
|
|
20801
|
-
"application/json": components["schemas"]["
|
|
20802
|
-
|
|
20803
|
-
|
|
21161
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21162
|
+
};
|
|
21163
|
+
};
|
|
21164
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21165
|
+
503: {
|
|
21166
|
+
headers: {
|
|
21167
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21168
|
+
"Retry-After": string;
|
|
21169
|
+
[name: string]: unknown;
|
|
21170
|
+
};
|
|
21171
|
+
content: {
|
|
21172
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20804
21173
|
};
|
|
20805
21174
|
};
|
|
20806
21175
|
};
|
|
@@ -20924,9 +21293,18 @@ interface paths {
|
|
|
20924
21293
|
[name: string]: unknown;
|
|
20925
21294
|
};
|
|
20926
21295
|
content: {
|
|
20927
|
-
"application/json": components["schemas"]["
|
|
20928
|
-
|
|
20929
|
-
|
|
21296
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21297
|
+
};
|
|
21298
|
+
};
|
|
21299
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21300
|
+
503: {
|
|
21301
|
+
headers: {
|
|
21302
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21303
|
+
"Retry-After": string;
|
|
21304
|
+
[name: string]: unknown;
|
|
21305
|
+
};
|
|
21306
|
+
content: {
|
|
21307
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
20930
21308
|
};
|
|
20931
21309
|
};
|
|
20932
21310
|
};
|
|
@@ -20971,6 +21349,9 @@ interface paths {
|
|
|
20971
21349
|
id: string;
|
|
20972
21350
|
label: string | null;
|
|
20973
21351
|
notes: string | null;
|
|
21352
|
+
publishedAt: string | null;
|
|
21353
|
+
savedVersionNumber: number | null;
|
|
21354
|
+
userId: string;
|
|
20974
21355
|
versionNumber: number;
|
|
20975
21356
|
versionType: string;
|
|
20976
21357
|
};
|
|
@@ -21009,9 +21390,18 @@ interface paths {
|
|
|
21009
21390
|
[name: string]: unknown;
|
|
21010
21391
|
};
|
|
21011
21392
|
content: {
|
|
21012
|
-
"application/json": components["schemas"]["
|
|
21013
|
-
|
|
21014
|
-
|
|
21393
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21394
|
+
};
|
|
21395
|
+
};
|
|
21396
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21397
|
+
503: {
|
|
21398
|
+
headers: {
|
|
21399
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21400
|
+
"Retry-After": string;
|
|
21401
|
+
[name: string]: unknown;
|
|
21402
|
+
};
|
|
21403
|
+
content: {
|
|
21404
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
21015
21405
|
};
|
|
21016
21406
|
};
|
|
21017
21407
|
};
|
|
@@ -21059,6 +21449,9 @@ interface paths {
|
|
|
21059
21449
|
id: string;
|
|
21060
21450
|
label: string | null;
|
|
21061
21451
|
notes: string | null;
|
|
21452
|
+
publishedAt: string | null;
|
|
21453
|
+
savedVersionNumber: number | null;
|
|
21454
|
+
userId: string;
|
|
21062
21455
|
versionNumber: number;
|
|
21063
21456
|
versionType: string;
|
|
21064
21457
|
};
|
|
@@ -21106,9 +21499,18 @@ interface paths {
|
|
|
21106
21499
|
[name: string]: unknown;
|
|
21107
21500
|
};
|
|
21108
21501
|
content: {
|
|
21109
|
-
"application/json": components["schemas"]["
|
|
21110
|
-
|
|
21111
|
-
|
|
21502
|
+
"application/json": components["schemas"]["InternalError"];
|
|
21503
|
+
};
|
|
21504
|
+
};
|
|
21505
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
21506
|
+
503: {
|
|
21507
|
+
headers: {
|
|
21508
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
21509
|
+
"Retry-After": string;
|
|
21510
|
+
[name: string]: unknown;
|
|
21511
|
+
};
|
|
21512
|
+
content: {
|
|
21513
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
21112
21514
|
};
|
|
21113
21515
|
};
|
|
21114
21516
|
};
|
|
@@ -21142,6 +21544,8 @@ interface paths {
|
|
|
21142
21544
|
search?: string;
|
|
21143
21545
|
/** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
|
|
21144
21546
|
view?: "full" | "compact";
|
|
21547
|
+
/** @description usage adds each flow usage: the model ids its steps name and the record types its steps write. */
|
|
21548
|
+
include?: "usage";
|
|
21145
21549
|
};
|
|
21146
21550
|
header?: never;
|
|
21147
21551
|
path?: never;
|
|
@@ -21163,6 +21567,13 @@ interface paths {
|
|
|
21163
21567
|
lastRunAt: string | null;
|
|
21164
21568
|
name: string;
|
|
21165
21569
|
updatedAt: string;
|
|
21570
|
+
/** @description What the saved flow steps reach. Present only when the request asked for include=usage. */
|
|
21571
|
+
usage?: {
|
|
21572
|
+
/** @description Model ids the flow steps name, each once. */
|
|
21573
|
+
models: string[];
|
|
21574
|
+
/** @description Record types the upsert-record and update-record steps write, each once. */
|
|
21575
|
+
recordTypesWritten: string[];
|
|
21576
|
+
};
|
|
21166
21577
|
}[];
|
|
21167
21578
|
pagination: components["schemas"]["Pagination"];
|
|
21168
21579
|
};
|
|
@@ -21266,6 +21677,7 @@ interface paths {
|
|
|
21266
21677
|
createdAt: string;
|
|
21267
21678
|
dashboardUrl?: string;
|
|
21268
21679
|
description?: string | null;
|
|
21680
|
+
draftVersionId?: string | null;
|
|
21269
21681
|
flowSteps: {
|
|
21270
21682
|
config?: {
|
|
21271
21683
|
[key: string]: unknown;
|
|
@@ -21281,6 +21693,7 @@ interface paths {
|
|
|
21281
21693
|
lastRunAt?: string | null;
|
|
21282
21694
|
name: string;
|
|
21283
21695
|
organizationId: string | null;
|
|
21696
|
+
publishedVersionId?: string | null;
|
|
21284
21697
|
sampleMetadata?: {
|
|
21285
21698
|
[key: string]: unknown;
|
|
21286
21699
|
};
|
|
@@ -21563,6 +21976,7 @@ interface paths {
|
|
|
21563
21976
|
createdAt: string;
|
|
21564
21977
|
dashboardUrl?: string;
|
|
21565
21978
|
description?: string | null;
|
|
21979
|
+
draftVersionId?: string | null;
|
|
21566
21980
|
flowSteps: {
|
|
21567
21981
|
config?: {
|
|
21568
21982
|
[key: string]: unknown;
|
|
@@ -21578,6 +21992,7 @@ interface paths {
|
|
|
21578
21992
|
lastRunAt?: string | null;
|
|
21579
21993
|
name: string;
|
|
21580
21994
|
organizationId: string | null;
|
|
21995
|
+
publishedVersionId?: string | null;
|
|
21581
21996
|
sampleMetadata?: {
|
|
21582
21997
|
[key: string]: unknown;
|
|
21583
21998
|
};
|
|
@@ -21684,6 +22099,7 @@ interface paths {
|
|
|
21684
22099
|
lastRunAt?: string | null;
|
|
21685
22100
|
name: string;
|
|
21686
22101
|
organizationId: string | null;
|
|
22102
|
+
publishedVersionId?: string | null;
|
|
21687
22103
|
sampleMetadata?: {
|
|
21688
22104
|
[key: string]: unknown;
|
|
21689
22105
|
};
|
|
@@ -21824,11 +22240,11 @@ interface paths {
|
|
|
21824
22240
|
};
|
|
21825
22241
|
/**
|
|
21826
22242
|
* Export flow for runtime (limited preview)
|
|
21827
|
-
* @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.
|
|
22243
|
+
* @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.
|
|
21828
22244
|
*
|
|
21829
22245
|
* 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.
|
|
21830
22246
|
*
|
|
21831
|
-
* 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.
|
|
22247
|
+
* 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.
|
|
21832
22248
|
*/
|
|
21833
22249
|
get: {
|
|
21834
22250
|
parameters: {
|
|
@@ -21863,7 +22279,7 @@ interface paths {
|
|
|
21863
22279
|
steps: {
|
|
21864
22280
|
[key: string]: unknown;
|
|
21865
22281
|
}[];
|
|
21866
|
-
/** @description Referenced sub-agents and
|
|
22282
|
+
/** @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. */
|
|
21867
22283
|
warnings: components["schemas"]["RuntimeExportWarning"][];
|
|
21868
22284
|
};
|
|
21869
22285
|
};
|
|
@@ -22005,6 +22421,17 @@ interface paths {
|
|
|
22005
22421
|
"application/json": components["schemas"]["Error"];
|
|
22006
22422
|
};
|
|
22007
22423
|
};
|
|
22424
|
+
/** @description Flow is managed by code */
|
|
22425
|
+
409: {
|
|
22426
|
+
headers: {
|
|
22427
|
+
[name: string]: unknown;
|
|
22428
|
+
};
|
|
22429
|
+
content: {
|
|
22430
|
+
"application/json": components["schemas"]["Error"] & {
|
|
22431
|
+
code: string;
|
|
22432
|
+
};
|
|
22433
|
+
};
|
|
22434
|
+
};
|
|
22008
22435
|
/** @description Internal server error */
|
|
22009
22436
|
500: {
|
|
22010
22437
|
headers: {
|
|
@@ -26650,7 +27077,18 @@ interface paths {
|
|
|
26650
27077
|
[name: string]: unknown;
|
|
26651
27078
|
};
|
|
26652
27079
|
content: {
|
|
26653
|
-
"application/json": components["schemas"]["
|
|
27080
|
+
"application/json": components["schemas"]["InternalError"];
|
|
27081
|
+
};
|
|
27082
|
+
};
|
|
27083
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
27084
|
+
503: {
|
|
27085
|
+
headers: {
|
|
27086
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
27087
|
+
"Retry-After": string;
|
|
27088
|
+
[name: string]: unknown;
|
|
27089
|
+
};
|
|
27090
|
+
content: {
|
|
27091
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
26654
27092
|
};
|
|
26655
27093
|
};
|
|
26656
27094
|
};
|
|
@@ -26744,7 +27182,18 @@ interface paths {
|
|
|
26744
27182
|
[name: string]: unknown;
|
|
26745
27183
|
};
|
|
26746
27184
|
content: {
|
|
26747
|
-
"application/json": components["schemas"]["
|
|
27185
|
+
"application/json": components["schemas"]["InternalError"];
|
|
27186
|
+
};
|
|
27187
|
+
};
|
|
27188
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
27189
|
+
503: {
|
|
27190
|
+
headers: {
|
|
27191
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
27192
|
+
"Retry-After": string;
|
|
27193
|
+
[name: string]: unknown;
|
|
27194
|
+
};
|
|
27195
|
+
content: {
|
|
27196
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
26748
27197
|
};
|
|
26749
27198
|
};
|
|
26750
27199
|
};
|
|
@@ -29622,15 +30071,29 @@ interface paths {
|
|
|
29622
30071
|
"application/json": components["schemas"]["Error"];
|
|
29623
30072
|
};
|
|
29624
30073
|
};
|
|
29625
|
-
/** @description
|
|
30074
|
+
/** @description The SMTP server rejected the test email (`success: false`), or an internal error occurred */
|
|
29626
30075
|
500: {
|
|
29627
30076
|
headers: {
|
|
29628
30077
|
[name: string]: unknown;
|
|
29629
30078
|
};
|
|
29630
30079
|
content: {
|
|
29631
30080
|
"application/json": {
|
|
29632
|
-
|
|
29633
|
-
|
|
30081
|
+
/** @description The SMTP rejection, e.g. an authentication or relay refusal. */
|
|
30082
|
+
error: string;
|
|
30083
|
+
/** @enum {boolean} */
|
|
30084
|
+
success: false;
|
|
30085
|
+
} | components["schemas"]["InternalError"];
|
|
30086
|
+
};
|
|
30087
|
+
};
|
|
30088
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
30089
|
+
503: {
|
|
30090
|
+
headers: {
|
|
30091
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
30092
|
+
"Retry-After": string;
|
|
30093
|
+
[name: string]: unknown;
|
|
30094
|
+
};
|
|
30095
|
+
content: {
|
|
30096
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
29634
30097
|
};
|
|
29635
30098
|
};
|
|
29636
30099
|
};
|
|
@@ -30139,7 +30602,7 @@ interface paths {
|
|
|
30139
30602
|
};
|
|
30140
30603
|
/**
|
|
30141
30604
|
* List model configurations
|
|
30142
|
-
* @description Get the
|
|
30605
|
+
* @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.
|
|
30143
30606
|
*/
|
|
30144
30607
|
get: {
|
|
30145
30608
|
parameters: {
|
|
@@ -30157,7 +30620,24 @@ interface paths {
|
|
|
30157
30620
|
};
|
|
30158
30621
|
content: {
|
|
30159
30622
|
"application/json": {
|
|
30623
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
30624
|
+
credentialPolicy?: {
|
|
30625
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
30626
|
+
blockedProviders: string[];
|
|
30627
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
30628
|
+
byokProviders: string[];
|
|
30629
|
+
/**
|
|
30630
|
+
* @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.
|
|
30631
|
+
* @enum {string}
|
|
30632
|
+
*/
|
|
30633
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
30634
|
+
/** @description Providers served by Runtype platform keys. */
|
|
30635
|
+
platformProviders: string[];
|
|
30636
|
+
/** @description Plain-language statement of the same facts. */
|
|
30637
|
+
summary: string;
|
|
30638
|
+
};
|
|
30160
30639
|
data: {
|
|
30640
|
+
/** @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). */
|
|
30161
30641
|
configScope?: string;
|
|
30162
30642
|
/**
|
|
30163
30643
|
* @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.
|
|
@@ -30331,6 +30811,7 @@ interface paths {
|
|
|
30331
30811
|
};
|
|
30332
30812
|
content: {
|
|
30333
30813
|
"application/json": {
|
|
30814
|
+
/** @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). */
|
|
30334
30815
|
configScope?: string;
|
|
30335
30816
|
/**
|
|
30336
30817
|
* @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.
|
|
@@ -30511,6 +30992,22 @@ interface paths {
|
|
|
30511
30992
|
};
|
|
30512
30993
|
content: {
|
|
30513
30994
|
"application/json": {
|
|
30995
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
30996
|
+
credentialPolicy?: {
|
|
30997
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
30998
|
+
blockedProviders: string[];
|
|
30999
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
31000
|
+
byokProviders: string[];
|
|
31001
|
+
/**
|
|
31002
|
+
* @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.
|
|
31003
|
+
* @enum {string}
|
|
31004
|
+
*/
|
|
31005
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
31006
|
+
/** @description Providers served by Runtype platform keys. */
|
|
31007
|
+
platformProviders: string[];
|
|
31008
|
+
/** @description Plain-language statement of the same facts. */
|
|
31009
|
+
summary: string;
|
|
31010
|
+
};
|
|
30514
31011
|
data: {
|
|
30515
31012
|
contextLength?: number;
|
|
30516
31013
|
costPer1kTokens: number;
|
|
@@ -30583,7 +31080,7 @@ interface paths {
|
|
|
30583
31080
|
};
|
|
30584
31081
|
/**
|
|
30585
31082
|
* Get grouped models
|
|
30586
|
-
* @description Get models grouped by base model with all provider options. Supports filtering to configured-only models.
|
|
31083
|
+
* @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.
|
|
30587
31084
|
*/
|
|
30588
31085
|
get: {
|
|
30589
31086
|
parameters: {
|
|
@@ -30605,6 +31102,22 @@ interface paths {
|
|
|
30605
31102
|
};
|
|
30606
31103
|
content: {
|
|
30607
31104
|
"application/json": {
|
|
31105
|
+
/** @description Which providers may serve a model call for this account. A model whose `keyStatus` is `needs_setup` is refused at execution. */
|
|
31106
|
+
credentialPolicy?: {
|
|
31107
|
+
/** @description Providers organization policy refuses until a credential is connected. */
|
|
31108
|
+
blockedProviders: string[];
|
|
31109
|
+
/** @description Providers served by the account own credentials. `generic-openai` is its custom inference endpoint. */
|
|
31110
|
+
byokProviders: string[];
|
|
31111
|
+
/**
|
|
31112
|
+
* @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.
|
|
31113
|
+
* @enum {string}
|
|
31114
|
+
*/
|
|
31115
|
+
mode: "byok_only" | "mixed" | "platform";
|
|
31116
|
+
/** @description Providers served by Runtype platform keys. */
|
|
31117
|
+
platformProviders: string[];
|
|
31118
|
+
/** @description Plain-language statement of the same facts. */
|
|
31119
|
+
summary: string;
|
|
31120
|
+
};
|
|
30608
31121
|
data: {
|
|
30609
31122
|
baseModel: string;
|
|
30610
31123
|
configuredConfigs: {
|
|
@@ -30622,6 +31135,8 @@ interface paths {
|
|
|
30622
31135
|
creditPromoMultiplier?: number;
|
|
30623
31136
|
displayName: string;
|
|
30624
31137
|
isConfigured: boolean;
|
|
31138
|
+
/** @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. */
|
|
31139
|
+
isCustom?: boolean;
|
|
30625
31140
|
lowestCost: number;
|
|
30626
31141
|
maxOutputTokens: number;
|
|
30627
31142
|
providers: {
|
|
@@ -31004,6 +31519,7 @@ interface paths {
|
|
|
31004
31519
|
};
|
|
31005
31520
|
content: {
|
|
31006
31521
|
"application/json": {
|
|
31522
|
+
/** @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). */
|
|
31007
31523
|
configScope?: string;
|
|
31008
31524
|
/**
|
|
31009
31525
|
* @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.
|
|
@@ -31282,6 +31798,7 @@ interface paths {
|
|
|
31282
31798
|
content: {
|
|
31283
31799
|
"application/json": {
|
|
31284
31800
|
data: {
|
|
31801
|
+
/** @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). */
|
|
31285
31802
|
configScope?: string;
|
|
31286
31803
|
/**
|
|
31287
31804
|
* @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.
|
|
@@ -31647,7 +32164,7 @@ interface paths {
|
|
|
31647
32164
|
[name: string]: unknown;
|
|
31648
32165
|
};
|
|
31649
32166
|
content: {
|
|
31650
|
-
"application/json": components["schemas"]["
|
|
32167
|
+
"application/json": components["schemas"]["InternalError"];
|
|
31651
32168
|
};
|
|
31652
32169
|
};
|
|
31653
32170
|
/** @description Analytics Engine not configured */
|
|
@@ -31761,7 +32278,7 @@ interface paths {
|
|
|
31761
32278
|
[name: string]: unknown;
|
|
31762
32279
|
};
|
|
31763
32280
|
content: {
|
|
31764
|
-
"application/json": components["schemas"]["
|
|
32281
|
+
"application/json": components["schemas"]["InternalError"];
|
|
31765
32282
|
};
|
|
31766
32283
|
};
|
|
31767
32284
|
/** @description Analytics Engine not configured */
|
|
@@ -31826,8 +32343,22 @@ interface paths {
|
|
|
31826
32343
|
capabilityCount: number;
|
|
31827
32344
|
createdAt: string;
|
|
31828
32345
|
description: string | null;
|
|
32346
|
+
/** @description What a Runs elsewhere product was imported from; null for any other product */
|
|
32347
|
+
externalSource: {
|
|
32348
|
+
/** @enum {string} */
|
|
32349
|
+
kind: "mcp" | "openapi" | "a2a";
|
|
32350
|
+
/** @description The saved MCP connection the import signed in through */
|
|
32351
|
+
savedServerName?: string;
|
|
32352
|
+
serverName: string | null;
|
|
32353
|
+
url: string;
|
|
32354
|
+
} | null;
|
|
31829
32355
|
icon: string | null;
|
|
31830
32356
|
id: string;
|
|
32357
|
+
/**
|
|
32358
|
+
* @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`
|
|
32359
|
+
* @enum {string}
|
|
32360
|
+
*/
|
|
32361
|
+
kind: "runtype" | "external" | "spec_only";
|
|
31831
32362
|
name: string;
|
|
31832
32363
|
spec?: unknown;
|
|
31833
32364
|
surfaceCount: number;
|
|
@@ -31939,9 +32470,11 @@ interface paths {
|
|
|
31939
32470
|
};
|
|
31940
32471
|
quickStartImport?: {
|
|
31941
32472
|
/** @enum {string} */
|
|
31942
|
-
documentKind: "a2a-agent" | "fpo" | "fpo-template";
|
|
32473
|
+
documentKind: "a2a-agent" | "fpo" | "fpo-template" | "mcp-server";
|
|
31943
32474
|
importedAt: string;
|
|
31944
32475
|
normalizedSourceUrl?: string;
|
|
32476
|
+
savedServerName?: string;
|
|
32477
|
+
serverName?: string;
|
|
31945
32478
|
/** @enum {string} */
|
|
31946
32479
|
sourceKind: "url" | "json";
|
|
31947
32480
|
sourceUrl?: string;
|
|
@@ -32133,6 +32666,8 @@ interface paths {
|
|
|
32133
32666
|
surfaceItemIds: string[];
|
|
32134
32667
|
type: string;
|
|
32135
32668
|
}[];
|
|
32669
|
+
/** @description Non-fatal advisories, e.g. a remapped deprecated field or seed data skipped because an existing enforce collection outside the FPO refuses it. */
|
|
32670
|
+
warnings?: string[];
|
|
32136
32671
|
};
|
|
32137
32672
|
};
|
|
32138
32673
|
};
|
|
@@ -32678,6 +33213,10 @@ interface paths {
|
|
|
32678
33213
|
publishedVersionIds?: {
|
|
32679
33214
|
[key: string]: string | null;
|
|
32680
33215
|
};
|
|
33216
|
+
/** @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 */
|
|
33217
|
+
publishedVersionNumbers?: {
|
|
33218
|
+
[key: string]: number | null;
|
|
33219
|
+
};
|
|
32681
33220
|
/** @description Display name per capability flow or agent id */
|
|
32682
33221
|
resourceNames?: {
|
|
32683
33222
|
[key: string]: string;
|
|
@@ -32691,8 +33230,22 @@ interface paths {
|
|
|
32691
33230
|
[key: string]: string[];
|
|
32692
33231
|
};
|
|
32693
33232
|
};
|
|
33233
|
+
/** @description What a Runs elsewhere product was imported from; null for any other product */
|
|
33234
|
+
externalSource: {
|
|
33235
|
+
/** @enum {string} */
|
|
33236
|
+
kind: "mcp" | "openapi" | "a2a";
|
|
33237
|
+
/** @description The saved MCP connection the import signed in through */
|
|
33238
|
+
savedServerName?: string;
|
|
33239
|
+
serverName: string | null;
|
|
33240
|
+
url: string;
|
|
33241
|
+
} | null;
|
|
32694
33242
|
icon: string | null;
|
|
32695
33243
|
id: string;
|
|
33244
|
+
/**
|
|
33245
|
+
* @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`
|
|
33246
|
+
* @enum {string}
|
|
33247
|
+
*/
|
|
33248
|
+
kind: "runtype" | "external" | "spec_only";
|
|
32696
33249
|
name: string;
|
|
32697
33250
|
pendingConfigurationCount?: number;
|
|
32698
33251
|
spec?: unknown;
|
|
@@ -32800,9 +33353,11 @@ interface paths {
|
|
|
32800
33353
|
};
|
|
32801
33354
|
quickStartImport?: {
|
|
32802
33355
|
/** @enum {string} */
|
|
32803
|
-
documentKind: "a2a-agent" | "fpo" | "fpo-template";
|
|
33356
|
+
documentKind: "a2a-agent" | "fpo" | "fpo-template" | "mcp-server";
|
|
32804
33357
|
importedAt: string;
|
|
32805
33358
|
normalizedSourceUrl?: string;
|
|
33359
|
+
savedServerName?: string;
|
|
33360
|
+
serverName?: string;
|
|
32806
33361
|
/** @enum {string} */
|
|
32807
33362
|
sourceKind: "url" | "json";
|
|
32808
33363
|
sourceUrl?: string;
|
|
@@ -33088,6 +33643,8 @@ interface paths {
|
|
|
33088
33643
|
fidelityTier: string | null;
|
|
33089
33644
|
/** @description Flow that ran. */
|
|
33090
33645
|
flowId: string | null;
|
|
33646
|
+
/** @description Exact saved flow version or test capture that ran. Absent means the overlay did not answer, which is not false and not null. */
|
|
33647
|
+
flowVersionId?: string | null;
|
|
33091
33648
|
/** @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. */
|
|
33092
33649
|
inlineDefinition: boolean | null;
|
|
33093
33650
|
/** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
|
|
@@ -33167,13 +33724,13 @@ interface paths {
|
|
|
33167
33724
|
traceId: string | null;
|
|
33168
33725
|
/** @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. */
|
|
33169
33726
|
via?: {
|
|
33170
|
-
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli)
|
|
33727
|
+
/** @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. */
|
|
33171
33728
|
id: string | null;
|
|
33172
33729
|
/**
|
|
33173
33730
|
* @description One word for the way the run started.
|
|
33174
33731
|
* @enum {string}
|
|
33175
33732
|
*/
|
|
33176
|
-
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
|
|
33733
|
+
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval" | "simulation";
|
|
33177
33734
|
/** @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. */
|
|
33178
33735
|
label: string | null;
|
|
33179
33736
|
} | null;
|
|
@@ -34562,7 +35119,18 @@ interface paths {
|
|
|
34562
35119
|
[name: string]: unknown;
|
|
34563
35120
|
};
|
|
34564
35121
|
content: {
|
|
34565
|
-
"application/json": components["schemas"]["
|
|
35122
|
+
"application/json": components["schemas"]["InternalError"];
|
|
35123
|
+
};
|
|
35124
|
+
};
|
|
35125
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
35126
|
+
503: {
|
|
35127
|
+
headers: {
|
|
35128
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
35129
|
+
"Retry-After": string;
|
|
35130
|
+
[name: string]: unknown;
|
|
35131
|
+
};
|
|
35132
|
+
content: {
|
|
35133
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
34566
35134
|
};
|
|
34567
35135
|
};
|
|
34568
35136
|
};
|
|
@@ -36896,7 +37464,18 @@ interface paths {
|
|
|
36896
37464
|
[name: string]: unknown;
|
|
36897
37465
|
};
|
|
36898
37466
|
content: {
|
|
36899
|
-
"application/json": components["schemas"]["
|
|
37467
|
+
"application/json": components["schemas"]["InternalError"];
|
|
37468
|
+
};
|
|
37469
|
+
};
|
|
37470
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
37471
|
+
503: {
|
|
37472
|
+
headers: {
|
|
37473
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
37474
|
+
"Retry-After": string;
|
|
37475
|
+
[name: string]: unknown;
|
|
37476
|
+
};
|
|
37477
|
+
content: {
|
|
37478
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
36900
37479
|
};
|
|
36901
37480
|
};
|
|
36902
37481
|
};
|
|
@@ -42130,7 +42709,18 @@ interface paths {
|
|
|
42130
42709
|
[name: string]: unknown;
|
|
42131
42710
|
};
|
|
42132
42711
|
content: {
|
|
42133
|
-
"application/json": components["schemas"]["
|
|
42712
|
+
"application/json": components["schemas"]["InternalError"];
|
|
42713
|
+
};
|
|
42714
|
+
};
|
|
42715
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
42716
|
+
503: {
|
|
42717
|
+
headers: {
|
|
42718
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
42719
|
+
"Retry-After": string;
|
|
42720
|
+
[name: string]: unknown;
|
|
42721
|
+
};
|
|
42722
|
+
content: {
|
|
42723
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
42134
42724
|
};
|
|
42135
42725
|
};
|
|
42136
42726
|
};
|
|
@@ -42261,7 +42851,7 @@ interface paths {
|
|
|
42261
42851
|
[name: string]: unknown;
|
|
42262
42852
|
};
|
|
42263
42853
|
content: {
|
|
42264
|
-
"application/json": components["schemas"]["
|
|
42854
|
+
"application/json": components["schemas"]["InternalError"];
|
|
42265
42855
|
};
|
|
42266
42856
|
};
|
|
42267
42857
|
/** @description The type's collection schema could not be loaded, so the write was refused rather than left unvalidated; retry */
|
|
@@ -42616,7 +43206,18 @@ interface paths {
|
|
|
42616
43206
|
[name: string]: unknown;
|
|
42617
43207
|
};
|
|
42618
43208
|
content: {
|
|
42619
|
-
"application/json": components["schemas"]["
|
|
43209
|
+
"application/json": components["schemas"]["InternalError"];
|
|
43210
|
+
};
|
|
43211
|
+
};
|
|
43212
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
43213
|
+
503: {
|
|
43214
|
+
headers: {
|
|
43215
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
43216
|
+
"Retry-After": string;
|
|
43217
|
+
[name: string]: unknown;
|
|
43218
|
+
};
|
|
43219
|
+
content: {
|
|
43220
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
42620
43221
|
};
|
|
42621
43222
|
};
|
|
42622
43223
|
};
|
|
@@ -43936,11 +44537,13 @@ interface paths {
|
|
|
43936
44537
|
source?: "hosted" | "ingested";
|
|
43937
44538
|
/** @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. */
|
|
43938
44539
|
status?: "running" | "completed" | "failed";
|
|
44540
|
+
/** @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. */
|
|
44541
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
43939
44542
|
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
43940
44543
|
from?: string;
|
|
43941
44544
|
/** @description Window end (ISO 8601). Defaults to now. */
|
|
43942
44545
|
to?: string;
|
|
43943
|
-
/** @description full (the default) returns every field. compact omits exactly these
|
|
44546
|
+
/** @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. */
|
|
43944
44547
|
view?: "compact" | "full";
|
|
43945
44548
|
/** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
|
|
43946
44549
|
overlay?: "live" | "none";
|
|
@@ -44021,6 +44624,137 @@ interface paths {
|
|
|
44021
44624
|
"application/json": components["schemas"]["Error"];
|
|
44022
44625
|
};
|
|
44023
44626
|
};
|
|
44627
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
44628
|
+
503: {
|
|
44629
|
+
headers: {
|
|
44630
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
44631
|
+
"Retry-After": string;
|
|
44632
|
+
[name: string]: unknown;
|
|
44633
|
+
};
|
|
44634
|
+
content: {
|
|
44635
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
44636
|
+
};
|
|
44637
|
+
};
|
|
44638
|
+
};
|
|
44639
|
+
};
|
|
44640
|
+
put?: never;
|
|
44641
|
+
post?: never;
|
|
44642
|
+
delete?: never;
|
|
44643
|
+
options?: never;
|
|
44644
|
+
head?: never;
|
|
44645
|
+
patch?: never;
|
|
44646
|
+
trace?: never;
|
|
44647
|
+
};
|
|
44648
|
+
"/v1/runs/stats": {
|
|
44649
|
+
parameters: {
|
|
44650
|
+
query?: never;
|
|
44651
|
+
header?: never;
|
|
44652
|
+
path?: never;
|
|
44653
|
+
cookie?: never;
|
|
44654
|
+
};
|
|
44655
|
+
/**
|
|
44656
|
+
* Count runs
|
|
44657
|
+
* @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.
|
|
44658
|
+
*/
|
|
44659
|
+
get: {
|
|
44660
|
+
parameters: {
|
|
44661
|
+
query?: {
|
|
44662
|
+
/** @description Filter by agent id; repeat for a set. */
|
|
44663
|
+
agentId?: string | string[];
|
|
44664
|
+
/** @description Filter by flow id; repeat for a set. */
|
|
44665
|
+
flowId?: string | string[];
|
|
44666
|
+
/** @description Filter by conversation id. */
|
|
44667
|
+
conversationId?: string;
|
|
44668
|
+
/** @description Filter by surface id. */
|
|
44669
|
+
surfaceId?: string;
|
|
44670
|
+
/** @description Filter by surface family. */
|
|
44671
|
+
surfaceType?: string;
|
|
44672
|
+
/** @description Filter by record id. */
|
|
44673
|
+
recordId?: string;
|
|
44674
|
+
/** @description Filter by batch id; repeat for a set. */
|
|
44675
|
+
batchExecutionId?: string | string[];
|
|
44676
|
+
/** @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. */
|
|
44677
|
+
includeChildren?: "true" | "false";
|
|
44678
|
+
/** @description Filter by producing lane. */
|
|
44679
|
+
source?: "hosted" | "ingested";
|
|
44680
|
+
/** @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. */
|
|
44681
|
+
status?: "running" | "completed" | "failed";
|
|
44682
|
+
/** @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. */
|
|
44683
|
+
traffic?: "live" | "test" | "eval" | "sim" | "all";
|
|
44684
|
+
/** @description Window start (ISO 8601). Defaults to 24 hours ago. */
|
|
44685
|
+
from?: string;
|
|
44686
|
+
/** @description Window end (ISO 8601). Defaults to now. */
|
|
44687
|
+
to?: string;
|
|
44688
|
+
};
|
|
44689
|
+
header?: never;
|
|
44690
|
+
path?: never;
|
|
44691
|
+
cookie?: never;
|
|
44692
|
+
};
|
|
44693
|
+
requestBody?: never;
|
|
44694
|
+
responses: {
|
|
44695
|
+
/** @description Run counts returned */
|
|
44696
|
+
200: {
|
|
44697
|
+
headers: {
|
|
44698
|
+
[name: string]: unknown;
|
|
44699
|
+
};
|
|
44700
|
+
content: {
|
|
44701
|
+
"application/json": {
|
|
44702
|
+
data: components["schemas"]["RunStats"];
|
|
44703
|
+
/** @description The started_at window the query resolved to, after defaults. */
|
|
44704
|
+
window: {
|
|
44705
|
+
from: string;
|
|
44706
|
+
to: string;
|
|
44707
|
+
};
|
|
44708
|
+
};
|
|
44709
|
+
};
|
|
44710
|
+
};
|
|
44711
|
+
/** @description Invalid request, including a filter whose value could not be read */
|
|
44712
|
+
400: {
|
|
44713
|
+
headers: {
|
|
44714
|
+
[name: string]: unknown;
|
|
44715
|
+
};
|
|
44716
|
+
content: {
|
|
44717
|
+
"application/json": components["schemas"]["Error"];
|
|
44718
|
+
};
|
|
44719
|
+
};
|
|
44720
|
+
/** @description Unauthorized */
|
|
44721
|
+
401: {
|
|
44722
|
+
headers: {
|
|
44723
|
+
[name: string]: unknown;
|
|
44724
|
+
};
|
|
44725
|
+
content: {
|
|
44726
|
+
"application/json": components["schemas"]["Error"];
|
|
44727
|
+
};
|
|
44728
|
+
};
|
|
44729
|
+
/** @description Insufficient API key permissions */
|
|
44730
|
+
403: {
|
|
44731
|
+
headers: {
|
|
44732
|
+
[name: string]: unknown;
|
|
44733
|
+
};
|
|
44734
|
+
content: {
|
|
44735
|
+
"application/json": components["schemas"]["Error"];
|
|
44736
|
+
};
|
|
44737
|
+
};
|
|
44738
|
+
/** @description Internal server error */
|
|
44739
|
+
500: {
|
|
44740
|
+
headers: {
|
|
44741
|
+
[name: string]: unknown;
|
|
44742
|
+
};
|
|
44743
|
+
content: {
|
|
44744
|
+
"application/json": components["schemas"]["Error"];
|
|
44745
|
+
};
|
|
44746
|
+
};
|
|
44747
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
44748
|
+
503: {
|
|
44749
|
+
headers: {
|
|
44750
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
44751
|
+
"Retry-After": string;
|
|
44752
|
+
[name: string]: unknown;
|
|
44753
|
+
};
|
|
44754
|
+
content: {
|
|
44755
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
44756
|
+
};
|
|
44757
|
+
};
|
|
44024
44758
|
};
|
|
44025
44759
|
};
|
|
44026
44760
|
put?: never;
|
|
@@ -44047,7 +44781,7 @@ interface paths {
|
|
|
44047
44781
|
query?: {
|
|
44048
44782
|
/** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
|
|
44049
44783
|
overlay?: "live" | "none";
|
|
44050
|
-
/** @description full (the default) returns every field. compact omits exactly these
|
|
44784
|
+
/** @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. */
|
|
44051
44785
|
view?: "compact" | "full";
|
|
44052
44786
|
};
|
|
44053
44787
|
header?: never;
|
|
@@ -44114,6 +44848,17 @@ interface paths {
|
|
|
44114
44848
|
"application/json": components["schemas"]["Error"];
|
|
44115
44849
|
};
|
|
44116
44850
|
};
|
|
44851
|
+
/** @description Run store temporarily unavailable; nothing could be read. Retry after the `Retry-After` interval (seconds). */
|
|
44852
|
+
503: {
|
|
44853
|
+
headers: {
|
|
44854
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
44855
|
+
"Retry-After": string;
|
|
44856
|
+
[name: string]: unknown;
|
|
44857
|
+
};
|
|
44858
|
+
content: {
|
|
44859
|
+
"application/json": components["schemas"]["RunStoreUnavailableError"];
|
|
44860
|
+
};
|
|
44861
|
+
};
|
|
44117
44862
|
};
|
|
44118
44863
|
};
|
|
44119
44864
|
put?: never;
|
|
@@ -44522,6 +45267,139 @@ interface paths {
|
|
|
44522
45267
|
patch?: never;
|
|
44523
45268
|
trace?: never;
|
|
44524
45269
|
};
|
|
45270
|
+
"/v1/runtime/judgments": {
|
|
45271
|
+
parameters: {
|
|
45272
|
+
query?: never;
|
|
45273
|
+
header?: never;
|
|
45274
|
+
path?: never;
|
|
45275
|
+
cookie?: never;
|
|
45276
|
+
};
|
|
45277
|
+
get?: never;
|
|
45278
|
+
put?: never;
|
|
45279
|
+
/**
|
|
45280
|
+
* Ask for a judgment (hosted DecisionProvider)
|
|
45281
|
+
* @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`).
|
|
45282
|
+
*/
|
|
45283
|
+
post: {
|
|
45284
|
+
parameters: {
|
|
45285
|
+
query?: never;
|
|
45286
|
+
header?: never;
|
|
45287
|
+
path?: never;
|
|
45288
|
+
cookie?: never;
|
|
45289
|
+
};
|
|
45290
|
+
requestBody?: {
|
|
45291
|
+
content: {
|
|
45292
|
+
"application/json": components["schemas"]["RuntimeJudgmentRequest"];
|
|
45293
|
+
};
|
|
45294
|
+
};
|
|
45295
|
+
responses: {
|
|
45296
|
+
/** @description The answers and the judgment metadata */
|
|
45297
|
+
200: {
|
|
45298
|
+
headers: {
|
|
45299
|
+
[name: string]: unknown;
|
|
45300
|
+
};
|
|
45301
|
+
content: {
|
|
45302
|
+
"application/json": components["schemas"]["RuntimeJudgmentResponse"];
|
|
45303
|
+
};
|
|
45304
|
+
};
|
|
45305
|
+
/** @description Invalid state, questions or configuration (see `code`) */
|
|
45306
|
+
400: {
|
|
45307
|
+
headers: {
|
|
45308
|
+
[name: string]: unknown;
|
|
45309
|
+
};
|
|
45310
|
+
content: {
|
|
45311
|
+
"application/json": components["schemas"]["Error"] & {
|
|
45312
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
45313
|
+
code?: string;
|
|
45314
|
+
details?: {
|
|
45315
|
+
[key: string]: unknown;
|
|
45316
|
+
};
|
|
45317
|
+
};
|
|
45318
|
+
};
|
|
45319
|
+
};
|
|
45320
|
+
/** @description Unauthorized */
|
|
45321
|
+
401: {
|
|
45322
|
+
headers: {
|
|
45323
|
+
[name: string]: unknown;
|
|
45324
|
+
};
|
|
45325
|
+
content: {
|
|
45326
|
+
"application/json": components["schemas"]["Error"];
|
|
45327
|
+
};
|
|
45328
|
+
};
|
|
45329
|
+
/** @description Monthly spend limit exceeded */
|
|
45330
|
+
402: {
|
|
45331
|
+
headers: {
|
|
45332
|
+
[name: string]: unknown;
|
|
45333
|
+
};
|
|
45334
|
+
content: {
|
|
45335
|
+
"application/json": components["schemas"]["Error"];
|
|
45336
|
+
};
|
|
45337
|
+
};
|
|
45338
|
+
/** @description Not an API key, the key lacks an execute permission, or the account is not on an Enterprise plan (code `BYOC_PLAN_REQUIRED`) */
|
|
45339
|
+
403: {
|
|
45340
|
+
headers: {
|
|
45341
|
+
[name: string]: unknown;
|
|
45342
|
+
};
|
|
45343
|
+
content: {
|
|
45344
|
+
"application/json": components["schemas"]["Error"];
|
|
45345
|
+
};
|
|
45346
|
+
};
|
|
45347
|
+
/** @description The question set is missing, unpublished or not owned by the caller (code `QUESTION_SET_UNRESOLVED`) */
|
|
45348
|
+
404: {
|
|
45349
|
+
headers: {
|
|
45350
|
+
[name: string]: unknown;
|
|
45351
|
+
};
|
|
45352
|
+
content: {
|
|
45353
|
+
"application/json": components["schemas"]["Error"] & {
|
|
45354
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
45355
|
+
code?: string;
|
|
45356
|
+
details?: {
|
|
45357
|
+
[key: string]: unknown;
|
|
45358
|
+
};
|
|
45359
|
+
};
|
|
45360
|
+
};
|
|
45361
|
+
};
|
|
45362
|
+
/** @description The decision model is not served or no credential can pay for it (see `code`) */
|
|
45363
|
+
422: {
|
|
45364
|
+
headers: {
|
|
45365
|
+
[name: string]: unknown;
|
|
45366
|
+
};
|
|
45367
|
+
content: {
|
|
45368
|
+
"application/json": components["schemas"]["Error"] & {
|
|
45369
|
+
/** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID, JUDGMENT_CONFIGURED_QUESTIONS_REJECTED or QUESTION_SET_UNRESOLVED. */
|
|
45370
|
+
code?: string;
|
|
45371
|
+
details?: {
|
|
45372
|
+
[key: string]: unknown;
|
|
45373
|
+
};
|
|
45374
|
+
};
|
|
45375
|
+
};
|
|
45376
|
+
};
|
|
45377
|
+
/** @description Daily execution limit or rate limit exceeded */
|
|
45378
|
+
429: {
|
|
45379
|
+
headers: {
|
|
45380
|
+
[name: string]: unknown;
|
|
45381
|
+
};
|
|
45382
|
+
content: {
|
|
45383
|
+
"application/json": components["schemas"]["Error"];
|
|
45384
|
+
};
|
|
45385
|
+
};
|
|
45386
|
+
/** @description Judgment failed */
|
|
45387
|
+
500: {
|
|
45388
|
+
headers: {
|
|
45389
|
+
[name: string]: unknown;
|
|
45390
|
+
};
|
|
45391
|
+
content: {
|
|
45392
|
+
"application/json": components["schemas"]["Error"];
|
|
45393
|
+
};
|
|
45394
|
+
};
|
|
45395
|
+
};
|
|
45396
|
+
};
|
|
45397
|
+
delete?: never;
|
|
45398
|
+
options?: never;
|
|
45399
|
+
head?: never;
|
|
45400
|
+
patch?: never;
|
|
45401
|
+
trace?: never;
|
|
45402
|
+
};
|
|
44525
45403
|
"/v1/runtime/memory/recall": {
|
|
44526
45404
|
parameters: {
|
|
44527
45405
|
query?: never;
|
|
@@ -45045,6 +45923,17 @@ interface paths {
|
|
|
45045
45923
|
};
|
|
45046
45924
|
};
|
|
45047
45925
|
};
|
|
45926
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
45927
|
+
503: {
|
|
45928
|
+
headers: {
|
|
45929
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
45930
|
+
"Retry-After": string;
|
|
45931
|
+
[name: string]: unknown;
|
|
45932
|
+
};
|
|
45933
|
+
content: {
|
|
45934
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
45935
|
+
};
|
|
45936
|
+
};
|
|
45048
45937
|
};
|
|
45049
45938
|
};
|
|
45050
45939
|
delete?: never;
|
|
@@ -45203,6 +46092,17 @@ interface paths {
|
|
|
45203
46092
|
};
|
|
45204
46093
|
};
|
|
45205
46094
|
};
|
|
46095
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
46096
|
+
503: {
|
|
46097
|
+
headers: {
|
|
46098
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46099
|
+
"Retry-After": string;
|
|
46100
|
+
[name: string]: unknown;
|
|
46101
|
+
};
|
|
46102
|
+
content: {
|
|
46103
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
46104
|
+
};
|
|
46105
|
+
};
|
|
45206
46106
|
};
|
|
45207
46107
|
};
|
|
45208
46108
|
delete?: never;
|
|
@@ -45341,144 +46241,166 @@ interface paths {
|
|
|
45341
46241
|
};
|
|
45342
46242
|
};
|
|
45343
46243
|
};
|
|
45344
|
-
|
|
45345
|
-
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
|
|
45349
|
-
|
|
45350
|
-
|
|
45351
|
-
|
|
45352
|
-
|
|
45353
|
-
|
|
45354
|
-
|
|
45355
|
-
|
|
45356
|
-
|
|
45357
|
-
|
|
45358
|
-
|
|
45359
|
-
|
|
45360
|
-
|
|
45361
|
-
|
|
45362
|
-
|
|
45363
|
-
|
|
45364
|
-
|
|
45365
|
-
|
|
45366
|
-
|
|
45367
|
-
|
|
45368
|
-
|
|
45369
|
-
|
|
45370
|
-
|
|
45371
|
-
|
|
45372
|
-
|
|
45373
|
-
|
|
45374
|
-
|
|
45375
|
-
|
|
45376
|
-
|
|
45377
|
-
|
|
45378
|
-
|
|
45379
|
-
|
|
45380
|
-
|
|
45381
|
-
|
|
45382
|
-
|
|
45383
|
-
|
|
45384
|
-
|
|
45385
|
-
|
|
45386
|
-
|
|
45387
|
-
|
|
45388
|
-
|
|
45389
|
-
|
|
45390
|
-
|
|
45391
|
-
|
|
45392
|
-
|
|
45393
|
-
|
|
45394
|
-
|
|
45395
|
-
|
|
45396
|
-
|
|
45397
|
-
|
|
45398
|
-
|
|
45399
|
-
|
|
45400
|
-
|
|
45401
|
-
|
|
45402
|
-
|
|
45403
|
-
|
|
45404
|
-
|
|
45405
|
-
|
|
45406
|
-
|
|
45407
|
-
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45411
|
-
|
|
45412
|
-
|
|
45413
|
-
|
|
45414
|
-
|
|
45415
|
-
|
|
45416
|
-
|
|
45417
|
-
|
|
45418
|
-
|
|
45419
|
-
|
|
45420
|
-
|
|
45421
|
-
|
|
45422
|
-
|
|
45423
|
-
|
|
45424
|
-
|
|
45425
|
-
|
|
45426
|
-
|
|
45427
|
-
|
|
45428
|
-
|
|
45429
|
-
|
|
45430
|
-
|
|
45431
|
-
|
|
45432
|
-
|
|
45433
|
-
|
|
45434
|
-
|
|
45435
|
-
|
|
45436
|
-
|
|
45437
|
-
|
|
45438
|
-
|
|
45439
|
-
|
|
45440
|
-
|
|
45441
|
-
|
|
45442
|
-
|
|
45443
|
-
|
|
45444
|
-
|
|
45445
|
-
|
|
45446
|
-
|
|
45447
|
-
|
|
45448
|
-
|
|
45449
|
-
|
|
45450
|
-
|
|
45451
|
-
|
|
45452
|
-
|
|
45453
|
-
|
|
45454
|
-
|
|
45455
|
-
|
|
45456
|
-
|
|
45457
|
-
|
|
45458
|
-
|
|
45459
|
-
|
|
45460
|
-
|
|
45461
|
-
|
|
45462
|
-
|
|
45463
|
-
|
|
45464
|
-
|
|
45465
|
-
|
|
45466
|
-
|
|
45467
|
-
|
|
45468
|
-
|
|
45469
|
-
|
|
45470
|
-
|
|
45471
|
-
|
|
45472
|
-
|
|
46244
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
46245
|
+
503: {
|
|
46246
|
+
headers: {
|
|
46247
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46248
|
+
"Retry-After": string;
|
|
46249
|
+
[name: string]: unknown;
|
|
46250
|
+
};
|
|
46251
|
+
content: {
|
|
46252
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
46253
|
+
};
|
|
46254
|
+
};
|
|
46255
|
+
};
|
|
46256
|
+
};
|
|
46257
|
+
delete?: never;
|
|
46258
|
+
options?: never;
|
|
46259
|
+
head?: never;
|
|
46260
|
+
patch?: never;
|
|
46261
|
+
trace?: never;
|
|
46262
|
+
};
|
|
46263
|
+
"/v1/runtime/records/upsert": {
|
|
46264
|
+
parameters: {
|
|
46265
|
+
query?: never;
|
|
46266
|
+
header?: never;
|
|
46267
|
+
path?: never;
|
|
46268
|
+
cookie?: never;
|
|
46269
|
+
};
|
|
46270
|
+
get?: never;
|
|
46271
|
+
put?: never;
|
|
46272
|
+
/**
|
|
46273
|
+
* Upsert a record (hosted RecordStore.upsert)
|
|
46274
|
+
* @description Hosted fulfillment of the runtime RecordStore seam. Inserts or merges / replaces a record keyed by the authenticated caller's ownership `(org|user, type, name)`. Requires an Enterprise plan: ineligible accounts receive 403 (code `BYOC_PLAN_REQUIRED`).
|
|
46275
|
+
*/
|
|
46276
|
+
post: {
|
|
46277
|
+
parameters: {
|
|
46278
|
+
query?: never;
|
|
46279
|
+
header?: never;
|
|
46280
|
+
path?: never;
|
|
46281
|
+
cookie?: never;
|
|
46282
|
+
};
|
|
46283
|
+
requestBody?: {
|
|
46284
|
+
content: {
|
|
46285
|
+
"application/json": {
|
|
46286
|
+
/** @enum {string} */
|
|
46287
|
+
mergeStrategy?: "merge" | "replace";
|
|
46288
|
+
metadata: {
|
|
46289
|
+
[key: string]: unknown;
|
|
46290
|
+
};
|
|
46291
|
+
name: string;
|
|
46292
|
+
type: string;
|
|
46293
|
+
};
|
|
46294
|
+
};
|
|
46295
|
+
};
|
|
46296
|
+
responses: {
|
|
46297
|
+
/** @description The stored record + created flag (dates as ISO-8601 strings) */
|
|
46298
|
+
200: {
|
|
46299
|
+
headers: {
|
|
46300
|
+
[name: string]: unknown;
|
|
46301
|
+
};
|
|
46302
|
+
content: {
|
|
46303
|
+
"application/json": {
|
|
46304
|
+
created: boolean;
|
|
46305
|
+
record: {
|
|
46306
|
+
createdAt: string;
|
|
46307
|
+
id: string;
|
|
46308
|
+
messages?: {
|
|
46309
|
+
content: string;
|
|
46310
|
+
role: string;
|
|
46311
|
+
}[] | null;
|
|
46312
|
+
metadata: {
|
|
46313
|
+
[key: string]: unknown;
|
|
46314
|
+
};
|
|
46315
|
+
metadataLabels?: {
|
|
46316
|
+
[key: string]: string;
|
|
46317
|
+
} | null;
|
|
46318
|
+
metadataSchema?: {
|
|
46319
|
+
[key: string]: unknown;
|
|
46320
|
+
} | null;
|
|
46321
|
+
name: string;
|
|
46322
|
+
organizationId: string | null;
|
|
46323
|
+
ownerId?: string | null;
|
|
46324
|
+
productSurfaceId?: string | null;
|
|
46325
|
+
schemaValid?: boolean | null;
|
|
46326
|
+
type: string;
|
|
46327
|
+
updatedAt: string;
|
|
46328
|
+
userId: string;
|
|
46329
|
+
};
|
|
46330
|
+
};
|
|
46331
|
+
};
|
|
46332
|
+
};
|
|
46333
|
+
/** @description Invalid request body (payload limits, filter compile, identity fields) */
|
|
46334
|
+
400: {
|
|
46335
|
+
headers: {
|
|
46336
|
+
[name: string]: unknown;
|
|
46337
|
+
};
|
|
46338
|
+
content: {
|
|
46339
|
+
"application/json": {
|
|
46340
|
+
/** @enum {string} */
|
|
46341
|
+
code: "invalid_request" | "record_write_failed" | "record_read_failed";
|
|
46342
|
+
error: string;
|
|
46343
|
+
};
|
|
46344
|
+
};
|
|
46345
|
+
};
|
|
46346
|
+
/** @description Unauthorized */
|
|
46347
|
+
401: {
|
|
46348
|
+
headers: {
|
|
46349
|
+
[name: string]: unknown;
|
|
46350
|
+
};
|
|
46351
|
+
content: {
|
|
46352
|
+
"application/json": components["schemas"]["Error"];
|
|
46353
|
+
};
|
|
46354
|
+
};
|
|
46355
|
+
/** @description Monthly spend limit exceeded */
|
|
46356
|
+
402: {
|
|
46357
|
+
headers: {
|
|
46358
|
+
[name: string]: unknown;
|
|
46359
|
+
};
|
|
46360
|
+
content: {
|
|
46361
|
+
"application/json": components["schemas"]["Error"];
|
|
46362
|
+
};
|
|
46363
|
+
};
|
|
46364
|
+
/** @description API key lacks an execute permission, or the account is not on an Enterprise plan (code `BYOC_PLAN_REQUIRED`) */
|
|
46365
|
+
403: {
|
|
46366
|
+
headers: {
|
|
46367
|
+
[name: string]: unknown;
|
|
46368
|
+
};
|
|
46369
|
+
content: {
|
|
46370
|
+
"application/json": components["schemas"]["Error"];
|
|
46371
|
+
};
|
|
46372
|
+
};
|
|
46373
|
+
/** @description Daily execution limit or rate limit exceeded */
|
|
46374
|
+
429: {
|
|
46375
|
+
headers: {
|
|
46376
|
+
[name: string]: unknown;
|
|
46377
|
+
};
|
|
46378
|
+
content: {
|
|
46379
|
+
"application/json": components["schemas"]["Error"];
|
|
46380
|
+
};
|
|
46381
|
+
};
|
|
46382
|
+
/** @description Record operation failed */
|
|
46383
|
+
500: {
|
|
46384
|
+
headers: {
|
|
46385
|
+
[name: string]: unknown;
|
|
46386
|
+
};
|
|
46387
|
+
content: {
|
|
46388
|
+
"application/json": {
|
|
46389
|
+
/** @enum {string} */
|
|
46390
|
+
code: "invalid_request" | "record_write_failed" | "record_read_failed";
|
|
46391
|
+
error: string;
|
|
46392
|
+
};
|
|
46393
|
+
};
|
|
46394
|
+
};
|
|
46395
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
46396
|
+
503: {
|
|
45473
46397
|
headers: {
|
|
46398
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
46399
|
+
"Retry-After": string;
|
|
45474
46400
|
[name: string]: unknown;
|
|
45475
46401
|
};
|
|
45476
46402
|
content: {
|
|
45477
|
-
"application/json":
|
|
45478
|
-
/** @enum {string} */
|
|
45479
|
-
code: "invalid_request" | "record_write_failed" | "record_read_failed";
|
|
45480
|
-
error: string;
|
|
45481
|
-
};
|
|
46403
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
45482
46404
|
};
|
|
45483
46405
|
};
|
|
45484
46406
|
};
|
|
@@ -47280,7 +48202,18 @@ interface paths {
|
|
|
47280
48202
|
[name: string]: unknown;
|
|
47281
48203
|
};
|
|
47282
48204
|
content: {
|
|
47283
|
-
"application/json": components["schemas"]["
|
|
48205
|
+
"application/json": components["schemas"]["InternalError"];
|
|
48206
|
+
};
|
|
48207
|
+
};
|
|
48208
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
48209
|
+
503: {
|
|
48210
|
+
headers: {
|
|
48211
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
48212
|
+
"Retry-After": string;
|
|
48213
|
+
[name: string]: unknown;
|
|
48214
|
+
};
|
|
48215
|
+
content: {
|
|
48216
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
47284
48217
|
};
|
|
47285
48218
|
};
|
|
47286
48219
|
};
|
|
@@ -49502,7 +50435,18 @@ interface paths {
|
|
|
49502
50435
|
[name: string]: unknown;
|
|
49503
50436
|
};
|
|
49504
50437
|
content: {
|
|
49505
|
-
"application/json": components["schemas"]["
|
|
50438
|
+
"application/json": components["schemas"]["InternalError"];
|
|
50439
|
+
};
|
|
50440
|
+
};
|
|
50441
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
50442
|
+
503: {
|
|
50443
|
+
headers: {
|
|
50444
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
50445
|
+
"Retry-After": string;
|
|
50446
|
+
[name: string]: unknown;
|
|
50447
|
+
};
|
|
50448
|
+
content: {
|
|
50449
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
49506
50450
|
};
|
|
49507
50451
|
};
|
|
49508
50452
|
};
|
|
@@ -50928,7 +51872,18 @@ interface paths {
|
|
|
50928
51872
|
[name: string]: unknown;
|
|
50929
51873
|
};
|
|
50930
51874
|
content: {
|
|
50931
|
-
"application/json": components["schemas"]["
|
|
51875
|
+
"application/json": components["schemas"]["InternalError"];
|
|
51876
|
+
};
|
|
51877
|
+
};
|
|
51878
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
51879
|
+
503: {
|
|
51880
|
+
headers: {
|
|
51881
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
51882
|
+
"Retry-After": string;
|
|
51883
|
+
[name: string]: unknown;
|
|
51884
|
+
};
|
|
51885
|
+
content: {
|
|
51886
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
50932
51887
|
};
|
|
50933
51888
|
};
|
|
50934
51889
|
};
|
|
@@ -51888,7 +52843,18 @@ interface paths {
|
|
|
51888
52843
|
[name: string]: unknown;
|
|
51889
52844
|
};
|
|
51890
52845
|
content: {
|
|
51891
|
-
"application/json": components["schemas"]["
|
|
52846
|
+
"application/json": components["schemas"]["InternalError"];
|
|
52847
|
+
};
|
|
52848
|
+
};
|
|
52849
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
52850
|
+
503: {
|
|
52851
|
+
headers: {
|
|
52852
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
52853
|
+
"Retry-After": string;
|
|
52854
|
+
[name: string]: unknown;
|
|
52855
|
+
};
|
|
52856
|
+
content: {
|
|
52857
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
51892
52858
|
};
|
|
51893
52859
|
};
|
|
51894
52860
|
};
|
|
@@ -51954,7 +52920,18 @@ interface paths {
|
|
|
51954
52920
|
[name: string]: unknown;
|
|
51955
52921
|
};
|
|
51956
52922
|
content: {
|
|
51957
|
-
"application/json": components["schemas"]["
|
|
52923
|
+
"application/json": components["schemas"]["InternalError"];
|
|
52924
|
+
};
|
|
52925
|
+
};
|
|
52926
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
52927
|
+
503: {
|
|
52928
|
+
headers: {
|
|
52929
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
52930
|
+
"Retry-After": string;
|
|
52931
|
+
[name: string]: unknown;
|
|
52932
|
+
};
|
|
52933
|
+
content: {
|
|
52934
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
51958
52935
|
};
|
|
51959
52936
|
};
|
|
51960
52937
|
};
|
|
@@ -52239,6 +53216,7 @@ interface paths {
|
|
|
52239
53216
|
enableWorkspaceModel: boolean;
|
|
52240
53217
|
externalTelemetryAllowed?: boolean;
|
|
52241
53218
|
modelCreditPromoMultiplier?: number;
|
|
53219
|
+
simulationsAvailable?: boolean;
|
|
52242
53220
|
workspaceModelEligible: boolean;
|
|
52243
53221
|
workspaceModelReady: boolean;
|
|
52244
53222
|
};
|
|
@@ -52497,7 +53475,18 @@ interface paths {
|
|
|
52497
53475
|
[name: string]: unknown;
|
|
52498
53476
|
};
|
|
52499
53477
|
content: {
|
|
52500
|
-
"application/json": components["schemas"]["
|
|
53478
|
+
"application/json": components["schemas"]["InternalError"];
|
|
53479
|
+
};
|
|
53480
|
+
};
|
|
53481
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
53482
|
+
503: {
|
|
53483
|
+
headers: {
|
|
53484
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
53485
|
+
"Retry-After": string;
|
|
53486
|
+
[name: string]: unknown;
|
|
53487
|
+
};
|
|
53488
|
+
content: {
|
|
53489
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
52501
53490
|
};
|
|
52502
53491
|
};
|
|
52503
53492
|
};
|
|
@@ -52583,7 +53572,18 @@ interface paths {
|
|
|
52583
53572
|
[name: string]: unknown;
|
|
52584
53573
|
};
|
|
52585
53574
|
content: {
|
|
52586
|
-
"application/json": components["schemas"]["
|
|
53575
|
+
"application/json": components["schemas"]["InternalError"];
|
|
53576
|
+
};
|
|
53577
|
+
};
|
|
53578
|
+
/** @description Database temporarily unavailable; nothing was read or written. Retry after the `Retry-After` interval (seconds). */
|
|
53579
|
+
503: {
|
|
53580
|
+
headers: {
|
|
53581
|
+
/** @description Advisory wait before retrying, in whole seconds. */
|
|
53582
|
+
"Retry-After": string;
|
|
53583
|
+
[name: string]: unknown;
|
|
53584
|
+
};
|
|
53585
|
+
content: {
|
|
53586
|
+
"application/json": components["schemas"]["DatabaseUnavailableError"];
|
|
52587
53587
|
};
|
|
52588
53588
|
};
|
|
52589
53589
|
};
|
|
@@ -52874,6 +53874,8 @@ interface components {
|
|
|
52874
53874
|
error: string;
|
|
52875
53875
|
};
|
|
52876
53876
|
AgentEnsureResponse: {
|
|
53877
|
+
/** @description Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when this converge (or, on a dry run, the planned one) changes what active schedules run into a version they cannot run. */
|
|
53878
|
+
_warnings?: string[];
|
|
52877
53879
|
agentId: string;
|
|
52878
53880
|
/** @description Present when the request carried capabilities: one row per declared capability, then removals. */
|
|
52879
53881
|
capabilityChanges?: components["schemas"]["AgentEnsureCapabilityChange"][];
|
|
@@ -52892,6 +53894,8 @@ interface components {
|
|
|
52892
53894
|
/** @enum {string} */
|
|
52893
53895
|
result: "definitionRequired";
|
|
52894
53896
|
} | {
|
|
53897
|
+
/** @description Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when this converge (or, on a dry run, the planned one) changes what active schedules run into a version they cannot run. */
|
|
53898
|
+
_warnings?: string[];
|
|
52895
53899
|
agentId?: string;
|
|
52896
53900
|
/** @description Present when the request carried capabilities: one row per declared capability, then removals. */
|
|
52897
53901
|
capabilityChanges?: components["schemas"]["AgentEnsureCapabilityChange"][];
|
|
@@ -52961,6 +53965,11 @@ interface components {
|
|
|
52961
53965
|
enabled: true;
|
|
52962
53966
|
types: ("markdown" | "component")[];
|
|
52963
53967
|
};
|
|
53968
|
+
busyMessageRouting?: {
|
|
53969
|
+
classifierModel?: string;
|
|
53970
|
+
/** @enum {string} */
|
|
53971
|
+
mode?: "enforced" | "off";
|
|
53972
|
+
};
|
|
52964
53973
|
contextManagement?: {
|
|
52965
53974
|
compaction?: {
|
|
52966
53975
|
enabled?: boolean;
|
|
@@ -53211,6 +54220,10 @@ interface components {
|
|
|
53211
54220
|
topK?: number;
|
|
53212
54221
|
topP?: number;
|
|
53213
54222
|
voice?: {
|
|
54223
|
+
directTools?: {
|
|
54224
|
+
enabled?: boolean;
|
|
54225
|
+
model?: string;
|
|
54226
|
+
};
|
|
53214
54227
|
disclosure?: boolean;
|
|
53215
54228
|
elevenLabs?: {
|
|
53216
54229
|
modelId?: string;
|
|
@@ -53352,7 +54365,7 @@ interface components {
|
|
|
53352
54365
|
reasons: string[];
|
|
53353
54366
|
};
|
|
53354
54367
|
BuiltinToolExecuteResult: {
|
|
53355
|
-
/** @description Execution metadata for the caller, never part of a model-facing tool result. builtin:
|
|
54368
|
+
/** @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). */
|
|
53356
54369
|
metadata?: {
|
|
53357
54370
|
[key: string]: unknown;
|
|
53358
54371
|
};
|
|
@@ -53360,6 +54373,27 @@ interface components {
|
|
|
53360
54373
|
toolId: string;
|
|
53361
54374
|
toolName: string;
|
|
53362
54375
|
};
|
|
54376
|
+
BusyMessageRouteReport: {
|
|
54377
|
+
/** @description The decision model that answered. */
|
|
54378
|
+
model?: string;
|
|
54379
|
+
/** @description Probability the message belongs to the running work (classifier only). */
|
|
54380
|
+
probability?: number;
|
|
54381
|
+
/**
|
|
54382
|
+
* @description Where the message went: into the running execution, or after it.
|
|
54383
|
+
* @enum {string}
|
|
54384
|
+
*/
|
|
54385
|
+
route: "steer" | "queue";
|
|
54386
|
+
/**
|
|
54387
|
+
* @description Why this route applied.
|
|
54388
|
+
* @enum {string}
|
|
54389
|
+
*/
|
|
54390
|
+
source: "classifier" | "abstained" | "timeout" | "error" | "unanswered" | "circuit_open" | "disabled";
|
|
54391
|
+
/**
|
|
54392
|
+
* @description The classifier chose steer but the running execution could no longer take input.
|
|
54393
|
+
* @enum {boolean}
|
|
54394
|
+
*/
|
|
54395
|
+
steerUnavailable?: true;
|
|
54396
|
+
};
|
|
53363
54397
|
CaptureExecutionPreview: {
|
|
53364
54398
|
/** @description The recorded tool-call actions in invocation order — the fork-picker rows. */
|
|
53365
54399
|
actions: components["schemas"]["CaptureExecutionPreviewAction"][];
|
|
@@ -53755,6 +54789,11 @@ interface components {
|
|
|
53755
54789
|
enabled: true;
|
|
53756
54790
|
types: ("markdown" | "component")[];
|
|
53757
54791
|
};
|
|
54792
|
+
busyMessageRouting?: {
|
|
54793
|
+
classifierModel?: string;
|
|
54794
|
+
/** @enum {string} */
|
|
54795
|
+
mode?: "enforced" | "off";
|
|
54796
|
+
};
|
|
53758
54797
|
contextManagement?: {
|
|
53759
54798
|
compaction?: {
|
|
53760
54799
|
enabled?: boolean;
|
|
@@ -54005,6 +55044,10 @@ interface components {
|
|
|
54005
55044
|
topK?: number;
|
|
54006
55045
|
topP?: number;
|
|
54007
55046
|
voice?: {
|
|
55047
|
+
directTools?: {
|
|
55048
|
+
enabled?: boolean;
|
|
55049
|
+
model?: string;
|
|
55050
|
+
};
|
|
54008
55051
|
disclosure?: boolean;
|
|
54009
55052
|
elevenLabs?: {
|
|
54010
55053
|
modelId?: string;
|
|
@@ -54095,6 +55138,12 @@ interface components {
|
|
|
54095
55138
|
tier: string;
|
|
54096
55139
|
};
|
|
54097
55140
|
};
|
|
55141
|
+
DatabaseUnavailableError: components["schemas"]["Error"] & {
|
|
55142
|
+
/** @enum {string} */
|
|
55143
|
+
code: "DATABASE_UNAVAILABLE";
|
|
55144
|
+
/** @description The `X-Runtype-Request-ID` of the failed request, for support. */
|
|
55145
|
+
requestId?: string;
|
|
55146
|
+
};
|
|
54098
55147
|
DecisionModel: {
|
|
54099
55148
|
contextWindow: number | null;
|
|
54100
55149
|
credentialRequirements: {
|
|
@@ -54408,7 +55457,7 @@ interface components {
|
|
|
54408
55457
|
/** @description Per-case graders that REPLACE the suite graders for this case, or null when the case uses the suite graders. */
|
|
54409
55458
|
graders: unknown[] | null;
|
|
54410
55459
|
id: string;
|
|
54411
|
-
/** @description { variables?, messages?, toolMocks?, endUser?, tenant? } — what the case feeds the target and the
|
|
55460
|
+
/** @description { variables?, messages?, toolMocks?, endUser?, tenant?, record? } — what the case feeds the target, the identity it runs as, and the record it runs on. */
|
|
54412
55461
|
input?: unknown;
|
|
54413
55462
|
name: string;
|
|
54414
55463
|
notes: string | null;
|
|
@@ -54649,6 +55698,22 @@ interface components {
|
|
|
54649
55698
|
suiteId: string;
|
|
54650
55699
|
updatedAt: string | null;
|
|
54651
55700
|
};
|
|
55701
|
+
EvalQuotaExceededError: components["schemas"]["Error"] & {
|
|
55702
|
+
/** @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. */
|
|
55703
|
+
code: string;
|
|
55704
|
+
/** @description Human-readable reason, including the limit and when it resets. */
|
|
55705
|
+
message: string;
|
|
55706
|
+
/** @description Daily eval usage at the moment of a DAILY_EVAL_LIMIT or SPEND_LIMIT_EXCEEDED refusal. */
|
|
55707
|
+
stats?: {
|
|
55708
|
+
/** @description Daily eval limit; -1 means unlimited. */
|
|
55709
|
+
evalLimit: number;
|
|
55710
|
+
evalsUsed: number;
|
|
55711
|
+
isAtLimit: boolean;
|
|
55712
|
+
remaining: number | null;
|
|
55713
|
+
/** @description ISO 8601 instant the daily count resets (midnight UTC). */
|
|
55714
|
+
resetsAt: string;
|
|
55715
|
+
};
|
|
55716
|
+
};
|
|
54652
55717
|
EvalRunScoresResponse: {
|
|
54653
55718
|
/** @description The release alias the run resolved through, when it resolved through one. */
|
|
54654
55719
|
agentTargetAlias?: string | null;
|
|
@@ -55726,6 +56791,12 @@ interface components {
|
|
|
55726
56791
|
/** @enum {string} */
|
|
55727
56792
|
status: "pending" | "applied" | "settled" | "not_applied";
|
|
55728
56793
|
};
|
|
56794
|
+
InternalError: components["schemas"]["Error"] & {
|
|
56795
|
+
/** @description Stable error code: `INTERNAL_ERROR` unless the route documents its own. */
|
|
56796
|
+
code: string;
|
|
56797
|
+
/** @description The `X-Runtype-Request-ID` of the failed request, for support. */
|
|
56798
|
+
requestId?: string;
|
|
56799
|
+
};
|
|
55729
56800
|
JudgmentCalibrationRecord: {
|
|
55730
56801
|
createdAt: string;
|
|
55731
56802
|
createdByUserId: string | null;
|
|
@@ -55907,12 +56978,14 @@ interface components {
|
|
|
55907
56978
|
/** @description Resulting platform id (absent on failure/skip/pruned). */
|
|
55908
56979
|
id?: string;
|
|
55909
56980
|
/** @enum {string} */
|
|
55910
|
-
kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule" | "eval" | "skill";
|
|
56981
|
+
kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule" | "eval" | "skill" | "collection" | "questionSet";
|
|
55911
56982
|
name: string;
|
|
55912
56983
|
/** @description The FPO-local ref (capability id / entity name) for correlation. */
|
|
55913
56984
|
ref: string;
|
|
55914
56985
|
/** @enum {string} */
|
|
55915
56986
|
result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
|
|
56987
|
+
/** @description Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when converging an agent moved `live` onto a version its active schedules cannot run. */
|
|
56988
|
+
warnings?: string[];
|
|
55916
56989
|
}[];
|
|
55917
56990
|
/** @description True when one or more entities failed to converge (re-run to self-heal). */
|
|
55918
56991
|
hasFailures: boolean;
|
|
@@ -56307,6 +57380,8 @@ interface components {
|
|
|
56307
57380
|
fidelityTier: string | null;
|
|
56308
57381
|
/** @description Flow that ran. */
|
|
56309
57382
|
flowId: string | null;
|
|
57383
|
+
/** @description Exact saved flow version or test capture that ran. Absent means the overlay did not answer, which is not false and not null. */
|
|
57384
|
+
flowVersionId?: string | null;
|
|
56310
57385
|
/** @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. */
|
|
56311
57386
|
inlineDefinition: boolean | null;
|
|
56312
57387
|
/** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
|
|
@@ -56386,17 +57461,198 @@ interface components {
|
|
|
56386
57461
|
traceId: string | null;
|
|
56387
57462
|
/** @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. */
|
|
56388
57463
|
via?: {
|
|
56389
|
-
/** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli)
|
|
57464
|
+
/** @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. */
|
|
56390
57465
|
id: string | null;
|
|
56391
57466
|
/**
|
|
56392
57467
|
* @description One word for the way the run started.
|
|
56393
57468
|
* @enum {string}
|
|
56394
57469
|
*/
|
|
56395
|
-
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
|
|
57470
|
+
kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval" | "simulation";
|
|
56396
57471
|
/** @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. */
|
|
56397
57472
|
label: string | null;
|
|
56398
57473
|
} | null;
|
|
56399
57474
|
};
|
|
57475
|
+
RunStats: {
|
|
57476
|
+
/** @description Runs grouped by agent id. */
|
|
57477
|
+
byAgentId: {
|
|
57478
|
+
[key: string]: {
|
|
57479
|
+
cost: {
|
|
57480
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57481
|
+
known: number;
|
|
57482
|
+
/** @description Settled runs with a known cost. */
|
|
57483
|
+
pricedRuns: number;
|
|
57484
|
+
/** @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. */
|
|
57485
|
+
unpricedRuns: number;
|
|
57486
|
+
};
|
|
57487
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57488
|
+
failed: number;
|
|
57489
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57490
|
+
lastStartedAt: string | null;
|
|
57491
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57492
|
+
p50DurationMs: number | null;
|
|
57493
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57494
|
+
p95DurationMs: number | null;
|
|
57495
|
+
/** @description Runs still running. */
|
|
57496
|
+
running: number;
|
|
57497
|
+
/** @description Runs in the bucket. */
|
|
57498
|
+
total: number;
|
|
57499
|
+
};
|
|
57500
|
+
};
|
|
57501
|
+
/** @description Runs grouped by agent and surface, keyed `<agentId>:<surfaceId>`. */
|
|
57502
|
+
byAgentSurface: {
|
|
57503
|
+
[key: string]: {
|
|
57504
|
+
cost: {
|
|
57505
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57506
|
+
known: number;
|
|
57507
|
+
/** @description Settled runs with a known cost. */
|
|
57508
|
+
pricedRuns: number;
|
|
57509
|
+
/** @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. */
|
|
57510
|
+
unpricedRuns: number;
|
|
57511
|
+
};
|
|
57512
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57513
|
+
failed: number;
|
|
57514
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57515
|
+
lastStartedAt: string | null;
|
|
57516
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57517
|
+
p50DurationMs: number | null;
|
|
57518
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57519
|
+
p95DurationMs: number | null;
|
|
57520
|
+
/** @description Runs still running. */
|
|
57521
|
+
running: number;
|
|
57522
|
+
/** @description Runs in the bucket. */
|
|
57523
|
+
total: number;
|
|
57524
|
+
};
|
|
57525
|
+
};
|
|
57526
|
+
/** @description Runs grouped by flow id. */
|
|
57527
|
+
byFlowId: {
|
|
57528
|
+
[key: string]: {
|
|
57529
|
+
cost: {
|
|
57530
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57531
|
+
known: number;
|
|
57532
|
+
/** @description Settled runs with a known cost. */
|
|
57533
|
+
pricedRuns: number;
|
|
57534
|
+
/** @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. */
|
|
57535
|
+
unpricedRuns: number;
|
|
57536
|
+
};
|
|
57537
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57538
|
+
failed: number;
|
|
57539
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57540
|
+
lastStartedAt: string | null;
|
|
57541
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57542
|
+
p50DurationMs: number | null;
|
|
57543
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57544
|
+
p95DurationMs: number | null;
|
|
57545
|
+
/** @description Runs still running. */
|
|
57546
|
+
running: number;
|
|
57547
|
+
/** @description Runs in the bucket. */
|
|
57548
|
+
total: number;
|
|
57549
|
+
};
|
|
57550
|
+
};
|
|
57551
|
+
/** @description Runs grouped by flow and surface, keyed `<flowId>:<surfaceId>`. */
|
|
57552
|
+
byFlowSurface: {
|
|
57553
|
+
[key: string]: {
|
|
57554
|
+
cost: {
|
|
57555
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57556
|
+
known: number;
|
|
57557
|
+
/** @description Settled runs with a known cost. */
|
|
57558
|
+
pricedRuns: number;
|
|
57559
|
+
/** @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. */
|
|
57560
|
+
unpricedRuns: number;
|
|
57561
|
+
};
|
|
57562
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57563
|
+
failed: number;
|
|
57564
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57565
|
+
lastStartedAt: string | null;
|
|
57566
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57567
|
+
p50DurationMs: number | null;
|
|
57568
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57569
|
+
p95DurationMs: number | null;
|
|
57570
|
+
/** @description Runs still running. */
|
|
57571
|
+
running: number;
|
|
57572
|
+
/** @description Runs in the bucket. */
|
|
57573
|
+
total: number;
|
|
57574
|
+
};
|
|
57575
|
+
};
|
|
57576
|
+
/** @description Runs grouped by surface id. */
|
|
57577
|
+
bySurfaceId: {
|
|
57578
|
+
[key: string]: {
|
|
57579
|
+
cost: {
|
|
57580
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57581
|
+
known: number;
|
|
57582
|
+
/** @description Settled runs with a known cost. */
|
|
57583
|
+
pricedRuns: number;
|
|
57584
|
+
/** @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. */
|
|
57585
|
+
unpricedRuns: number;
|
|
57586
|
+
};
|
|
57587
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57588
|
+
failed: number;
|
|
57589
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57590
|
+
lastStartedAt: string | null;
|
|
57591
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57592
|
+
p50DurationMs: number | null;
|
|
57593
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57594
|
+
p95DurationMs: number | null;
|
|
57595
|
+
/** @description Runs still running. */
|
|
57596
|
+
running: number;
|
|
57597
|
+
/** @description Runs in the bucket. */
|
|
57598
|
+
total: number;
|
|
57599
|
+
};
|
|
57600
|
+
};
|
|
57601
|
+
/** @description The same runs before the `traffic` filter, split by kind, so a live view can say "plus 4 test runs". */
|
|
57602
|
+
byTraffic: {
|
|
57603
|
+
eval: {
|
|
57604
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
57605
|
+
failed: number;
|
|
57606
|
+
/** @description Runs of this traffic kind in the window. */
|
|
57607
|
+
total: number;
|
|
57608
|
+
};
|
|
57609
|
+
live: {
|
|
57610
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
57611
|
+
failed: number;
|
|
57612
|
+
/** @description Runs of this traffic kind in the window. */
|
|
57613
|
+
total: number;
|
|
57614
|
+
};
|
|
57615
|
+
sim: {
|
|
57616
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
57617
|
+
failed: number;
|
|
57618
|
+
/** @description Runs of this traffic kind in the window. */
|
|
57619
|
+
total: number;
|
|
57620
|
+
};
|
|
57621
|
+
test: {
|
|
57622
|
+
/** @description Failed runs of this traffic kind in the window. */
|
|
57623
|
+
failed: number;
|
|
57624
|
+
/** @description Runs of this traffic kind in the window. */
|
|
57625
|
+
total: number;
|
|
57626
|
+
};
|
|
57627
|
+
};
|
|
57628
|
+
/** @description Every run the filters match, `traffic` included. */
|
|
57629
|
+
totals: {
|
|
57630
|
+
cost: {
|
|
57631
|
+
/** @description Sum of total cost over runs whose cost is known. Never includes an unknown cost as 0. */
|
|
57632
|
+
known: number;
|
|
57633
|
+
/** @description Settled runs with a known cost. */
|
|
57634
|
+
pricedRuns: number;
|
|
57635
|
+
/** @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. */
|
|
57636
|
+
unpricedRuns: number;
|
|
57637
|
+
};
|
|
57638
|
+
/** @description Runs that read as failed in `/v1/runs` (the same predicate as `status=failed`). */
|
|
57639
|
+
failed: number;
|
|
57640
|
+
/** @description Start of the newest run in the bucket (ISO 8601). */
|
|
57641
|
+
lastStartedAt: string | null;
|
|
57642
|
+
/** @description Median duration of settled runs, or null when none settled. */
|
|
57643
|
+
p50DurationMs: number | null;
|
|
57644
|
+
/** @description 95th percentile duration of settled runs, or null when none settled. */
|
|
57645
|
+
p95DurationMs: number | null;
|
|
57646
|
+
/** @description Runs still running. */
|
|
57647
|
+
running: number;
|
|
57648
|
+
/** @description Runs in the bucket. */
|
|
57649
|
+
total: number;
|
|
57650
|
+
};
|
|
57651
|
+
};
|
|
57652
|
+
RunStoreUnavailableError: components["schemas"]["Error"] & {
|
|
57653
|
+
/** @enum {string} */
|
|
57654
|
+
code: "RUN_STORE_UNAVAILABLE";
|
|
57655
|
+
};
|
|
56400
57656
|
RuntimeEmailAdmissionError: {
|
|
56401
57657
|
code?: string;
|
|
56402
57658
|
error: string;
|
|
@@ -56408,10 +57664,13 @@ interface components {
|
|
|
56408
57664
|
};
|
|
56409
57665
|
RuntimeExportWarning: {
|
|
56410
57666
|
childId?: string;
|
|
56411
|
-
/** @enum {string} */
|
|
56412
|
-
childKind: "agent" | "flow";
|
|
56413
57667
|
/**
|
|
56414
|
-
* @description
|
|
57668
|
+
* @description What kind of child the warning is about. `question_set` names the question set id in `childId`.
|
|
57669
|
+
* @enum {string}
|
|
57670
|
+
*/
|
|
57671
|
+
childKind: "agent" | "flow" | "question_set";
|
|
57672
|
+
/**
|
|
57673
|
+
* @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.
|
|
56415
57674
|
* @enum {string}
|
|
56416
57675
|
*/
|
|
56417
57676
|
code: "child_dropped" | "child_stubbed";
|
|
@@ -56419,10 +57678,10 @@ interface components {
|
|
|
56419
57678
|
/** @description The agent whose capability referenced the child, when the child came from one. */
|
|
56420
57679
|
parentId?: string;
|
|
56421
57680
|
/**
|
|
56422
|
-
* @description Why the export could not embed the child.
|
|
57681
|
+
* @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).
|
|
56423
57682
|
* @enum {string}
|
|
56424
57683
|
*/
|
|
56425
|
-
reason: "not_found" | "claude_managed_unsupported" | "max_depth_exceeded" | "invalid_flow_config" | "unresolved_tool_ref" | "unsupported_mcp_auth";
|
|
57684
|
+
reason: "not_found" | "claude_managed_unsupported" | "max_depth_exceeded" | "invalid_flow_config" | "unresolved_tool_ref" | "unsupported_mcp_auth" | "question_set_unresolved";
|
|
56426
57685
|
/** @description The capability or tool name that referenced the child. */
|
|
56427
57686
|
toolName?: string;
|
|
56428
57687
|
};
|
|
@@ -56469,6 +57728,49 @@ interface components {
|
|
|
56469
57728
|
kind: string;
|
|
56470
57729
|
reason: string;
|
|
56471
57730
|
};
|
|
57731
|
+
RuntimeJudgmentMetadata: {
|
|
57732
|
+
calibrationId: string | null;
|
|
57733
|
+
/** @description Provider rates, before margin. */
|
|
57734
|
+
estimatedCostUsd?: number;
|
|
57735
|
+
/** @enum {string} */
|
|
57736
|
+
keySource: "user" | "platform";
|
|
57737
|
+
provider: string;
|
|
57738
|
+
questionSetId?: string;
|
|
57739
|
+
questionSetVersion?: number;
|
|
57740
|
+
requestedModel: string;
|
|
57741
|
+
resolvedModelId: string | null;
|
|
57742
|
+
route: string;
|
|
57743
|
+
usage: {
|
|
57744
|
+
inputTokens: number;
|
|
57745
|
+
outputTokens: number;
|
|
57746
|
+
reported: boolean;
|
|
57747
|
+
};
|
|
57748
|
+
};
|
|
57749
|
+
RuntimeJudgmentRequest: {
|
|
57750
|
+
/** @description The self-hosted execution asking, recorded on the judgment telemetry. */
|
|
57751
|
+
executionId?: string;
|
|
57752
|
+
/** @description Decision model id. In configured mode it outranks the question set version model. */
|
|
57753
|
+
model?: string;
|
|
57754
|
+
/** @description A question set owned by the caller; its published version supplies the questions. */
|
|
57755
|
+
questionSetId?: string;
|
|
57756
|
+
/** @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. */
|
|
57757
|
+
questions?: {
|
|
57758
|
+
[key: string]: unknown;
|
|
57759
|
+
};
|
|
57760
|
+
/** @description The text, JSON object or JSON array to judge. Never echoed in errors or logs. */
|
|
57761
|
+
state: string | {
|
|
57762
|
+
[key: string]: unknown;
|
|
57763
|
+
} | unknown[];
|
|
57764
|
+
/** @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`. */
|
|
57765
|
+
version?: number;
|
|
57766
|
+
};
|
|
57767
|
+
RuntimeJudgmentResponse: {
|
|
57768
|
+
/** @description One answer per question id, exactly as the decision model returned it. */
|
|
57769
|
+
answers: {
|
|
57770
|
+
[key: string]: unknown;
|
|
57771
|
+
};
|
|
57772
|
+
judgment: components["schemas"]["RuntimeJudgmentMetadata"];
|
|
57773
|
+
};
|
|
56472
57774
|
ScheduleEnsureConflict: {
|
|
56473
57775
|
/** @enum {string} */
|
|
56474
57776
|
code: "external_modification" | "remote_changed";
|
|
@@ -58822,8 +60124,24 @@ export interface ModelConfig {
|
|
|
58822
60124
|
requiresIntegration?: string;
|
|
58823
60125
|
apiKey?: string;
|
|
58824
60126
|
scope?: 'personal' | 'organization';
|
|
60127
|
+
/**
|
|
60128
|
+
* `organization_connection` marks a model declared by an organization custom inference endpoint with
|
|
60129
|
+
* no stored configuration for the caller: runnable, but its `id` cannot be updated, toggled, or deleted.
|
|
60130
|
+
*/
|
|
60131
|
+
configScope?: 'personal' | 'organization' | 'organization_connection';
|
|
58825
60132
|
organizationId?: string;
|
|
58826
60133
|
}
|
|
60134
|
+
/** Which providers may serve a model call for the account, and under whose credential. */
|
|
60135
|
+
export interface ModelCredentialPolicy {
|
|
60136
|
+
/** `byok_only`: only models from `byokProviders` run. */
|
|
60137
|
+
mode: 'byok_only' | 'mixed' | 'platform';
|
|
60138
|
+
/** Providers served by the account's own credentials; `generic-openai` is its custom inference endpoint. */
|
|
60139
|
+
byokProviders: string[];
|
|
60140
|
+
platformProviders: string[];
|
|
60141
|
+
/** Providers an organization policy refuses until a credential is connected. */
|
|
60142
|
+
blockedProviders: string[];
|
|
60143
|
+
summary: string;
|
|
60144
|
+
}
|
|
58827
60145
|
export type UserProfile = paths['/v1/users/profile']['get']['responses'][200]['content']['application/json'];
|
|
58828
60146
|
type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
|
|
58829
60147
|
type UpdateFlowRequestBody = NonNullable<paths['/v1/flows/{id}']['put']['requestBody']>['content']['application/json'];
|
|
@@ -59001,7 +60319,8 @@ export type SelectOrganizationProviderCredentialRequest = NonNullable<paths['/v1
|
|
|
59001
60319
|
export type SelectOrganizationProviderCredentialResponse = paths['/v1/provider-keys/organization-policy']['put']['responses'][200]['content']['application/json'];
|
|
59002
60320
|
export interface CreateApiKeyRequest {
|
|
59003
60321
|
name: string;
|
|
59004
|
-
|
|
60322
|
+
/** Required, at least one scope; the API has no default. `apiKeys.getPermissionOptions()` lists them. */
|
|
60323
|
+
permissions: string[];
|
|
59005
60324
|
expiresAt?: string;
|
|
59006
60325
|
allowedIps?: string[];
|
|
59007
60326
|
environment?: 'test' | 'production';
|
|
@@ -59964,21 +61283,8 @@ export interface AgentVersionPublishResponse {
|
|
|
59964
61283
|
export interface VersionPublishOptions {
|
|
59965
61284
|
onConflict?: 'error' | 'overwrite';
|
|
59966
61285
|
}
|
|
59967
|
-
export
|
|
59968
|
-
|
|
59969
|
-
versionNumber: number;
|
|
59970
|
-
versionType: string;
|
|
59971
|
-
label: string | null;
|
|
59972
|
-
notes: string | null;
|
|
59973
|
-
stepSummary: string | null;
|
|
59974
|
-
stepCount: number;
|
|
59975
|
-
createdAt: string;
|
|
59976
|
-
}
|
|
59977
|
-
export interface FlowVersionsListResponse {
|
|
59978
|
-
flowId: string;
|
|
59979
|
-
publishedVersionId: string | null;
|
|
59980
|
-
versions: FlowVersionListItem[];
|
|
59981
|
-
}
|
|
61286
|
+
export type FlowVersionsListResponse = paths['/v1/flow-versions/{flowId}']['get']['responses'][200]['content']['application/json'];
|
|
61287
|
+
export type FlowVersionListItem = FlowVersionsListResponse['versions'][number];
|
|
59982
61288
|
export type FlowVersionDetail = paths['/v1/flow-versions/{flowId}/{versionId}']['get']['responses'][200]['content']['application/json'];
|
|
59983
61289
|
export interface FlowVersionPublishResponse {
|
|
59984
61290
|
success: boolean;
|
|
@@ -63432,6 +64738,14 @@ interface AgentDefinitionConfig {
|
|
|
63432
64738
|
maxBudgetMs?: number | null;
|
|
63433
64739
|
forced?: 'durable' | 'in_process';
|
|
63434
64740
|
};
|
|
64741
|
+
/**
|
|
64742
|
+
* Steer-or-queue routing for a `submitMode: 'auto'` message sent while a turn runs. `mode` is
|
|
64743
|
+
* `enforced` (default) or `off` (always queue); `classifierModel` is a `GET /v1/decision-models` id.
|
|
64744
|
+
*/
|
|
64745
|
+
busyMessageRouting?: {
|
|
64746
|
+
mode?: 'enforced' | 'off';
|
|
64747
|
+
classifierModel?: string;
|
|
64748
|
+
};
|
|
63435
64749
|
/** Opt-in agent state channel — a shared JSON document the client and agent both see. */
|
|
63436
64750
|
state?: {
|
|
63437
64751
|
initial?: Record<string, unknown>;
|
|
@@ -63593,6 +64907,8 @@ interface EnsureAgentConverged {
|
|
|
63593
64907
|
skillBindings?: AgentSkillBindingChange[];
|
|
63594
64908
|
/** Present when the request carried `capabilities`. */
|
|
63595
64909
|
capabilityChanges?: AgentCapabilityChange[];
|
|
64910
|
+
/** Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when `live` moves onto a version schedules cannot run. */
|
|
64911
|
+
_warnings?: string[];
|
|
63596
64912
|
}
|
|
63597
64913
|
interface EnsureAgentPlan {
|
|
63598
64914
|
result: 'plan';
|
|
@@ -63607,6 +64923,8 @@ interface EnsureAgentPlan {
|
|
|
63607
64923
|
skillBindings?: AgentSkillBindingChange[];
|
|
63608
64924
|
/** Present when the request carried `capabilities`. */
|
|
63609
64925
|
capabilityChanges?: AgentCapabilityChange[];
|
|
64926
|
+
/** Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when `live` moves onto a version schedules cannot run. */
|
|
64927
|
+
_warnings?: string[];
|
|
63610
64928
|
}
|
|
63611
64929
|
type EnsureAgentResult = EnsureAgentConverged | EnsureAgentPlan;
|
|
63612
64930
|
interface AgentPullResult {
|
|
@@ -63712,6 +65030,7 @@ interface RunListRow {
|
|
|
63712
65030
|
kind: 'agent' | 'flow';
|
|
63713
65031
|
agentId: string | null;
|
|
63714
65032
|
flowId: string | null;
|
|
65033
|
+
flowVersionId?: string | null;
|
|
63715
65034
|
conversationId: string | null;
|
|
63716
65035
|
surfaceId: string | null;
|
|
63717
65036
|
surfaceType: string | null;
|
|
@@ -64291,14 +65610,20 @@ interface EnsureFpoOptions {
|
|
|
64291
65610
|
*/
|
|
64292
65611
|
release?: 'none' | 'publish';
|
|
64293
65612
|
}
|
|
65613
|
+
type GeneratedFpoEnsureResponse = Extract<components['schemas']['ProductFpoEnsureResponse'], {
|
|
65614
|
+
entities: unknown;
|
|
65615
|
+
}>;
|
|
65616
|
+
type GeneratedFpoEntityOutcome = GeneratedFpoEnsureResponse['entities'][number];
|
|
64294
65617
|
/** One nested entity's converge result. */
|
|
64295
65618
|
interface FpoEntityOutcome {
|
|
64296
|
-
kind: '
|
|
65619
|
+
kind: GeneratedFpoEntityOutcome['kind'];
|
|
64297
65620
|
ref: string;
|
|
64298
65621
|
name: string;
|
|
64299
65622
|
result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped' | 'pruned';
|
|
64300
65623
|
id?: string;
|
|
64301
65624
|
error?: string;
|
|
65625
|
+
/** Non-blocking advisories for this entity, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED. */
|
|
65626
|
+
warnings?: string[];
|
|
64302
65627
|
}
|
|
64303
65628
|
interface EnsureFpoResult {
|
|
64304
65629
|
result: 'unchanged' | 'converged' | 'plan';
|
|
@@ -65552,7 +66877,7 @@ interface PromoteAgentResult {
|
|
|
65552
66877
|
*/
|
|
65553
66878
|
export declare function promoteAgent(input: PromoteAgentInput): Promise<PromoteAgentResult>;
|
|
65554
66879
|
//#endregion
|
|
65555
|
-
//#region ../shared/dist/
|
|
66880
|
+
//#region ../shared/dist/models-BFb-uNHy.d.ts
|
|
65556
66881
|
//#region src/generated-evaluation-models.d.ts
|
|
65557
66882
|
/**
|
|
65558
66883
|
* Per-token USD exactly as the gateway listed it, plus the per-million figures
|
|
@@ -66760,7 +68085,7 @@ export declare class ModelConfigsEndpoint {
|
|
|
66760
68085
|
private client;
|
|
66761
68086
|
constructor(client: ApiClient);
|
|
66762
68087
|
/**
|
|
66763
|
-
* Get available models catalog
|
|
68088
|
+
* Get the available models catalog, followed by the account's custom models (`uiCategory: 'custom'`)
|
|
66764
68089
|
*/
|
|
66765
68090
|
getAvailable(): Promise<ModelConfig[]>;
|
|
66766
68091
|
/**
|
|
@@ -66772,9 +68097,15 @@ export declare class ModelConfigsEndpoint {
|
|
|
66772
68097
|
*/
|
|
66773
68098
|
getSearchConfigured(): Promise<ModelConfig[]>;
|
|
66774
68099
|
/**
|
|
66775
|
-
* List
|
|
68100
|
+
* List every model the account can run: its model configurations plus the models its organization's
|
|
68101
|
+
* custom inference endpoints declare (`configScope: 'organization_connection'`)
|
|
66776
68102
|
*/
|
|
66777
68103
|
list(): Promise<ModelConfig[]>;
|
|
68104
|
+
/**
|
|
68105
|
+
* Get which providers may serve a model call for the account. When `mode` is `byok_only`,
|
|
68106
|
+
* only models from `byokProviders` run.
|
|
68107
|
+
*/
|
|
68108
|
+
getCredentialPolicy(): Promise<ModelCredentialPolicy | undefined>;
|
|
66778
68109
|
/**
|
|
66779
68110
|
* Create a new model configuration
|
|
66780
68111
|
*/
|
|
@@ -68466,9 +69797,11 @@ export interface AgentAdmissionOptions {
|
|
|
68466
69797
|
* What to do when the conversation already has a turn in flight. `reject`
|
|
68467
69798
|
* (the default when omitted) answers `CONVERSATION_BUSY`; `supersede`
|
|
68468
69799
|
* cancels the incumbent and takes over; `queue` runs after it; `steer` delivers
|
|
68469
|
-
* new user-message deltas to the incumbent at a safe boundary, without resetting its budgets
|
|
69800
|
+
* new user-message deltas to the incumbent at a safe boundary, without resetting its budgets;
|
|
69801
|
+
* `auto` sends steer-shaped deltas and lets a classifier choose steer or queue, reporting the
|
|
69802
|
+
* route in the `X-Runtype-Busy-Message-Route` / `-Source` response headers.
|
|
68470
69803
|
*/
|
|
68471
|
-
concurrency?: 'reject' | 'supersede' | 'queue' | 'steer';
|
|
69804
|
+
concurrency?: 'reject' | 'supersede' | 'queue' | 'steer' | 'auto';
|
|
68472
69805
|
/**
|
|
68473
69806
|
* Fold this request into an already-pending turn for the same conversation
|
|
68474
69807
|
* instead of starting a second one. The response is the pending execution.
|