@runtypelabs/sdk 6.6.2 → 7.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 +8 -3
- package/dist/index.d.cts +925 -33
- package/dist/index.d.ts +925 -33
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6717,6 +6717,8 @@ interface paths {
|
|
|
6717
6717
|
/** @enum {string} */
|
|
6718
6718
|
type: "reasoning";
|
|
6719
6719
|
})[];
|
|
6720
|
+
/** @description The text a human actually saw for this message, when it differs from `content`. Stored beside the model content and returned by the history routes; NEVER read by execution, and never treated as authority. Send it for a message whose visible form is not its model form (a structured payload, a hidden `llmContent` variant, a directive rendered as UI). Absent means no projection was captured; an empty string is a deliberate empty projection, and the two are distinguished on read. For a message id the conversation already stores, only this field is taken — the stored model content wins — which makes a re-sent turn an idempotent repair path for a display-projection finalization that never landed. Plain text or Markdown, never rendered HTML. */
|
|
6721
|
+
displayContent?: string;
|
|
6720
6722
|
id?: string;
|
|
6721
6723
|
/** @enum {string} */
|
|
6722
6724
|
role: "user" | "assistant" | "system";
|
|
@@ -6750,13 +6752,16 @@ interface paths {
|
|
|
6750
6752
|
"application/json": components["schemas"]["Error"];
|
|
6751
6753
|
};
|
|
6752
6754
|
};
|
|
6753
|
-
/** @description Session not found or expired */
|
|
6755
|
+
/** @description Session not found or expired, or an `identityProof` was supplied that failed verification (`invalid_identity_proof`, fail-closed: the turn never runs). Identity-proof rejections carry `errorDescription` naming the reason. */
|
|
6754
6756
|
401: {
|
|
6755
6757
|
headers: {
|
|
6756
6758
|
[name: string]: unknown;
|
|
6757
6759
|
};
|
|
6758
6760
|
content: {
|
|
6759
|
-
"application/json": components["schemas"]["Error"]
|
|
6761
|
+
"application/json": components["schemas"]["Error"] & {
|
|
6762
|
+
/** @description Why the supplied `identityProof` was refused (for example an expired assertion, an unknown issuer, or a proof minted for another tenant). Diagnostic text for the embedding site, not a value to branch on. */
|
|
6763
|
+
errorDescription?: string;
|
|
6764
|
+
};
|
|
6760
6765
|
};
|
|
6761
6766
|
};
|
|
6762
6767
|
/** @description Forbidden. Either the client token is inactive or the origin is not allowed, or the tenancy lock-down refused the execution: the agent requires an end-user scope and no valid `identityProof` was supplied (`end_user_scope_required`), or this session's conversation record belongs to a different signed-in end user (`conversation_scope_mismatch`; start a new conversation). */
|
|
@@ -6777,7 +6782,7 @@ interface paths {
|
|
|
6777
6782
|
"application/json": components["schemas"]["Error"];
|
|
6778
6783
|
};
|
|
6779
6784
|
};
|
|
6780
|
-
/** @description Conflict. Either the client tools registry fingerprint was not found (`client_tools_resend_required`; resend full clientTools[]
|
|
6785
|
+
/** @description Conflict. Either the client tools registry fingerprint was not found (`client_tools_resend_required`; resend the full `clientTools[]` with the fingerprint), or this turn was superseded by a newer interrupting turn before it could start (`turn_superseded`). The body carries `error` alone. */
|
|
6781
6786
|
409: {
|
|
6782
6787
|
headers: {
|
|
6783
6788
|
[name: string]: unknown;
|
|
@@ -6812,6 +6817,610 @@ interface paths {
|
|
|
6812
6817
|
patch?: never;
|
|
6813
6818
|
trace?: never;
|
|
6814
6819
|
};
|
|
6820
|
+
"/v1/client/conversations": {
|
|
6821
|
+
parameters: {
|
|
6822
|
+
query?: never;
|
|
6823
|
+
header?: never;
|
|
6824
|
+
path?: never;
|
|
6825
|
+
cookie?: never;
|
|
6826
|
+
};
|
|
6827
|
+
/**
|
|
6828
|
+
* List the visitor's own conversations
|
|
6829
|
+
* @description List conversations belonging to the calling browser's anonymous visitor, newest first, cursor-paginated. Requires both a live `sessionId` and the `X-Visitor-Token` secret from `/client/init`; the site-wide client token alone can never reach this route. Every response carries `X-History-Identity-Status` (`not_provided` | `admitted` | `ignored`) reporting what the server did with a supplied `X-Identity-Proof`, so a widget can tell a verified action from a browser-scoped one. It is exposed via CORS; it grants no authority.
|
|
6830
|
+
*/
|
|
6831
|
+
get: {
|
|
6832
|
+
parameters: {
|
|
6833
|
+
query: {
|
|
6834
|
+
/** @description Client session id from /client/init. */
|
|
6835
|
+
sessionId: string;
|
|
6836
|
+
/** @description Only return conversations for this flow or agent id. Pass the `targetId` returned by `/client/init`. */
|
|
6837
|
+
targetId?: string;
|
|
6838
|
+
/** @description Deprecated alias of `targetId`. Sending both with different values is rejected 400; sending both with the same value is accepted. */
|
|
6839
|
+
flowId?: string;
|
|
6840
|
+
/** @description Opaque cursor returned as `nextCursor` by a previous page. Omit for the first page. */
|
|
6841
|
+
cursor?: string;
|
|
6842
|
+
/** @description Page size as a decimal string. Defaults to 25, clamped to a maximum of 100. A non-numeric or non-positive value falls back to the default. */
|
|
6843
|
+
limit?: string;
|
|
6844
|
+
};
|
|
6845
|
+
header: {
|
|
6846
|
+
/** @description The browser's anonymous visitor secret (`cvt_…`) returned by `/client/init`. It is what scopes the request to one visitor's own conversations, so a request without it is refused. Sent as a header so it never lands in access logs or `Referer`. */
|
|
6847
|
+
"x-visitor-token": string;
|
|
6848
|
+
/** @description Optional fresh hosted end-user identity proof. When admitted and already bound to the presented visitor, expands the request from this exact browser to sibling visitors for the same verified person. Without it, even a previously bound visitor remains exact-browser scoped. */
|
|
6849
|
+
"x-identity-proof"?: string;
|
|
6850
|
+
};
|
|
6851
|
+
path?: never;
|
|
6852
|
+
cookie?: never;
|
|
6853
|
+
};
|
|
6854
|
+
requestBody?: never;
|
|
6855
|
+
responses: {
|
|
6856
|
+
/** @description Conversations page */
|
|
6857
|
+
200: {
|
|
6858
|
+
headers: {
|
|
6859
|
+
[name: string]: unknown;
|
|
6860
|
+
};
|
|
6861
|
+
content: {
|
|
6862
|
+
"application/json": {
|
|
6863
|
+
/** @description Conversations owned by the calling visitor, newest first. */
|
|
6864
|
+
data: {
|
|
6865
|
+
/** @description ISO-8601 timestamp of the first turn, i.e. when the conversation was created. */
|
|
6866
|
+
createdAt: string;
|
|
6867
|
+
/** @description Deprecated alias of `targetId`, carrying the same value. Retained for clients written before the rename; read `targetId` instead. */
|
|
6868
|
+
flowId: string | null;
|
|
6869
|
+
/** @description Conversation id. */
|
|
6870
|
+
id: string;
|
|
6871
|
+
/** @description Number of stored messages. Falls back to the length of the stored transcript when the conversation predates the counter. */
|
|
6872
|
+
messageCount: number;
|
|
6873
|
+
/** @description Plain-text excerpt of the conversation's most recent visitor-visible message, bounded to 140 Unicode code points, for a scannable history list. Derived from `displayContent` when the message has one and never from opaque model-only content, so it cannot become the one place internals leak. Null when the latest visible message has no text — including when its captured projection is deliberately empty. */
|
|
6874
|
+
preview: string | null;
|
|
6875
|
+
/** @description The flow or agent this conversation ran against, and the exact value to pass as the `targetId` list/delete filter. Null for a conversation stored without one. Canonical replacement for `flowId`. */
|
|
6876
|
+
targetId: string | null;
|
|
6877
|
+
/** @description Display title. Uses a timestamp fallback unless conversation-title generation is enabled and produces a title from the opening exchange. */
|
|
6878
|
+
title: string;
|
|
6879
|
+
/** @description ISO-8601 timestamp of the most recent write. Sort key for "resume where I left off" in a widget. */
|
|
6880
|
+
updatedAt: string;
|
|
6881
|
+
}[];
|
|
6882
|
+
/** @description Opaque cursor for the next page, or null when exhausted. */
|
|
6883
|
+
nextCursor: string | null;
|
|
6884
|
+
};
|
|
6885
|
+
};
|
|
6886
|
+
};
|
|
6887
|
+
/** @description Missing or malformed `sessionId`, an undecodable `cursor`, `targetId` or `flowId` supplied empty (`invalid_target_filter`), or the two supplied with different values (`conflicting_target_filter`) */
|
|
6888
|
+
400: {
|
|
6889
|
+
headers: {
|
|
6890
|
+
[name: string]: unknown;
|
|
6891
|
+
};
|
|
6892
|
+
content: {
|
|
6893
|
+
"application/json": components["schemas"]["Error"];
|
|
6894
|
+
};
|
|
6895
|
+
};
|
|
6896
|
+
/** @description Session expired, or missing/invalid visitor token */
|
|
6897
|
+
401: {
|
|
6898
|
+
headers: {
|
|
6899
|
+
[name: string]: unknown;
|
|
6900
|
+
};
|
|
6901
|
+
content: {
|
|
6902
|
+
"application/json": components["schemas"]["Error"];
|
|
6903
|
+
};
|
|
6904
|
+
};
|
|
6905
|
+
/** @description Client token inactive or origin mismatch */
|
|
6906
|
+
403: {
|
|
6907
|
+
headers: {
|
|
6908
|
+
[name: string]: unknown;
|
|
6909
|
+
};
|
|
6910
|
+
content: {
|
|
6911
|
+
"application/json": components["schemas"]["Error"];
|
|
6912
|
+
};
|
|
6913
|
+
};
|
|
6914
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header with the advisory wait in seconds. */
|
|
6915
|
+
429: {
|
|
6916
|
+
headers: {
|
|
6917
|
+
[name: string]: unknown;
|
|
6918
|
+
};
|
|
6919
|
+
content: {
|
|
6920
|
+
"application/json": components["schemas"]["Error"];
|
|
6921
|
+
};
|
|
6922
|
+
};
|
|
6923
|
+
/** @description Internal server error */
|
|
6924
|
+
500: {
|
|
6925
|
+
headers: {
|
|
6926
|
+
[name: string]: unknown;
|
|
6927
|
+
};
|
|
6928
|
+
content: {
|
|
6929
|
+
"application/json": components["schemas"]["Error"];
|
|
6930
|
+
};
|
|
6931
|
+
};
|
|
6932
|
+
/** @description An `X-Identity-Proof` was supplied but end-user identity admission is not enabled for this token owner, so it cannot be evaluated (`identity_proof_not_admitted`). Nothing was read, deleted, or otherwise acted on. Retry without the proof to act at plain browser scope. Distinct from 401 `invalid_identity_proof`, which means the proof WAS evaluated and rejected. */
|
|
6933
|
+
503: {
|
|
6934
|
+
headers: {
|
|
6935
|
+
[name: string]: unknown;
|
|
6936
|
+
};
|
|
6937
|
+
content: {
|
|
6938
|
+
"application/json": components["schemas"]["Error"];
|
|
6939
|
+
};
|
|
6940
|
+
};
|
|
6941
|
+
};
|
|
6942
|
+
};
|
|
6943
|
+
put?: never;
|
|
6944
|
+
post?: never;
|
|
6945
|
+
/**
|
|
6946
|
+
* Delete all of the visitor's own conversations
|
|
6947
|
+
* @description Permanently delete every conversation belonging to the calling visitor, with their transcripts. Intended for a widget's "clear my history" control and for host-site privacy-erasure hooks. Pass `targetId` to delete only the conversations a target-scoped UI actually listed; OMITTING it deliberately means every conversation in the authorized visitor scope, across all targets. Every response carries `X-History-Identity-Status` (`not_provided` | `admitted` | `ignored`) reporting what the server did with a supplied `X-Identity-Proof`, so a widget can tell a verified action from a browser-scoped one. It is exposed via CORS; it grants no authority.
|
|
6948
|
+
*/
|
|
6949
|
+
delete: {
|
|
6950
|
+
parameters: {
|
|
6951
|
+
query: {
|
|
6952
|
+
/** @description Client session id from /client/init. */
|
|
6953
|
+
sessionId: string;
|
|
6954
|
+
/** @description Only delete conversations for this flow or agent id, matching the list route's filter. Omit to delete the visitor's entire authorized history. A widget showing one target's history should always send this, so "clear my history" cannot remove conversations the visitor was never shown. */
|
|
6955
|
+
targetId?: string;
|
|
6956
|
+
/** @description Deprecated alias of `targetId`. Sending both with different values is rejected 400; sending both with the same value is accepted. */
|
|
6957
|
+
flowId?: string;
|
|
6958
|
+
};
|
|
6959
|
+
header: {
|
|
6960
|
+
/** @description The browser's anonymous visitor secret (`cvt_…`) returned by `/client/init`. It is what scopes the request to one visitor's own conversations, so a request without it is refused. Sent as a header so it never lands in access logs or `Referer`. */
|
|
6961
|
+
"x-visitor-token": string;
|
|
6962
|
+
/** @description Optional fresh hosted end-user identity proof. When admitted and already bound to the presented visitor, expands the request from this exact browser to sibling visitors for the same verified person. Without it, even a previously bound visitor remains exact-browser scoped. */
|
|
6963
|
+
"x-identity-proof"?: string;
|
|
6964
|
+
};
|
|
6965
|
+
path?: never;
|
|
6966
|
+
cookie?: never;
|
|
6967
|
+
};
|
|
6968
|
+
requestBody?: never;
|
|
6969
|
+
responses: {
|
|
6970
|
+
/** @description Deleted. `deleted` counts the rows removed and is 0 when the visitor had no history in scope. */
|
|
6971
|
+
200: {
|
|
6972
|
+
headers: {
|
|
6973
|
+
[name: string]: unknown;
|
|
6974
|
+
};
|
|
6975
|
+
content: {
|
|
6976
|
+
"application/json": {
|
|
6977
|
+
/** @description Number of conversations deleted. The delete-all route returns 0 when the visitor has no history, rather than an error. */
|
|
6978
|
+
deleted: number;
|
|
6979
|
+
};
|
|
6980
|
+
};
|
|
6981
|
+
};
|
|
6982
|
+
/** @description Missing or malformed `sessionId`, `targetId` or `flowId` supplied empty (`invalid_target_filter`), or the two supplied with different values (`conflicting_target_filter`) */
|
|
6983
|
+
400: {
|
|
6984
|
+
headers: {
|
|
6985
|
+
[name: string]: unknown;
|
|
6986
|
+
};
|
|
6987
|
+
content: {
|
|
6988
|
+
"application/json": components["schemas"]["Error"];
|
|
6989
|
+
};
|
|
6990
|
+
};
|
|
6991
|
+
/** @description Session expired, or missing/invalid visitor token */
|
|
6992
|
+
401: {
|
|
6993
|
+
headers: {
|
|
6994
|
+
[name: string]: unknown;
|
|
6995
|
+
};
|
|
6996
|
+
content: {
|
|
6997
|
+
"application/json": components["schemas"]["Error"];
|
|
6998
|
+
};
|
|
6999
|
+
};
|
|
7000
|
+
/** @description Client token inactive or origin mismatch */
|
|
7001
|
+
403: {
|
|
7002
|
+
headers: {
|
|
7003
|
+
[name: string]: unknown;
|
|
7004
|
+
};
|
|
7005
|
+
content: {
|
|
7006
|
+
"application/json": components["schemas"]["Error"];
|
|
7007
|
+
};
|
|
7008
|
+
};
|
|
7009
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header with the advisory wait in seconds. */
|
|
7010
|
+
429: {
|
|
7011
|
+
headers: {
|
|
7012
|
+
[name: string]: unknown;
|
|
7013
|
+
};
|
|
7014
|
+
content: {
|
|
7015
|
+
"application/json": components["schemas"]["Error"];
|
|
7016
|
+
};
|
|
7017
|
+
};
|
|
7018
|
+
/** @description Internal server error */
|
|
7019
|
+
500: {
|
|
7020
|
+
headers: {
|
|
7021
|
+
[name: string]: unknown;
|
|
7022
|
+
};
|
|
7023
|
+
content: {
|
|
7024
|
+
"application/json": components["schemas"]["Error"];
|
|
7025
|
+
};
|
|
7026
|
+
};
|
|
7027
|
+
/** @description An `X-Identity-Proof` was supplied but end-user identity admission is not enabled for this token owner, so it cannot be evaluated (`identity_proof_not_admitted`). Nothing was read, deleted, or otherwise acted on. Retry without the proof to act at plain browser scope. Distinct from 401 `invalid_identity_proof`, which means the proof WAS evaluated and rejected. */
|
|
7028
|
+
503: {
|
|
7029
|
+
headers: {
|
|
7030
|
+
[name: string]: unknown;
|
|
7031
|
+
};
|
|
7032
|
+
content: {
|
|
7033
|
+
"application/json": components["schemas"]["Error"];
|
|
7034
|
+
};
|
|
7035
|
+
};
|
|
7036
|
+
};
|
|
7037
|
+
};
|
|
7038
|
+
options?: never;
|
|
7039
|
+
head?: never;
|
|
7040
|
+
patch?: never;
|
|
7041
|
+
trace?: never;
|
|
7042
|
+
};
|
|
7043
|
+
"/v1/client/conversations/{id}": {
|
|
7044
|
+
parameters: {
|
|
7045
|
+
query?: never;
|
|
7046
|
+
header?: never;
|
|
7047
|
+
path?: never;
|
|
7048
|
+
cookie?: never;
|
|
7049
|
+
};
|
|
7050
|
+
/**
|
|
7051
|
+
* Read one of the visitor's own conversations
|
|
7052
|
+
* @description Return a single conversation with its message transcript. Answers 404 (never 403) for a conversation the caller does not own, so the route cannot be used to probe for other visitors' conversations. Every response carries `X-History-Identity-Status` (`not_provided` | `admitted` | `ignored`) reporting what the server did with a supplied `X-Identity-Proof`, so a widget can tell a verified action from a browser-scoped one. It is exposed via CORS; it grants no authority.
|
|
7053
|
+
*/
|
|
7054
|
+
get: {
|
|
7055
|
+
parameters: {
|
|
7056
|
+
query: {
|
|
7057
|
+
/** @description Client session id from /client/init. */
|
|
7058
|
+
sessionId: string;
|
|
7059
|
+
/** @description Opaque cursor returned as `nextMessageCursor` by a previous detail response. Omit for the newest message page. */
|
|
7060
|
+
messageCursor?: string;
|
|
7061
|
+
/** @description Message page size as a decimal string. Defaults to 25 and is clamped to 25 to bound media rehydration and Worker memory. */
|
|
7062
|
+
messageLimit?: string;
|
|
7063
|
+
};
|
|
7064
|
+
header: {
|
|
7065
|
+
/** @description The browser's anonymous visitor secret (`cvt_…`) returned by `/client/init`. It is what scopes the request to one visitor's own conversations, so a request without it is refused. Sent as a header so it never lands in access logs or `Referer`. */
|
|
7066
|
+
"x-visitor-token": string;
|
|
7067
|
+
/** @description Optional fresh hosted end-user identity proof. When admitted and already bound to the presented visitor, expands the request from this exact browser to sibling visitors for the same verified person. Without it, even a previously bound visitor remains exact-browser scoped. */
|
|
7068
|
+
"x-identity-proof"?: string;
|
|
7069
|
+
};
|
|
7070
|
+
path: {
|
|
7071
|
+
/** @description Conversation id from the list route. */
|
|
7072
|
+
id: string;
|
|
7073
|
+
};
|
|
7074
|
+
cookie?: never;
|
|
7075
|
+
};
|
|
7076
|
+
requestBody?: never;
|
|
7077
|
+
responses: {
|
|
7078
|
+
/** @description Conversation */
|
|
7079
|
+
200: {
|
|
7080
|
+
headers: {
|
|
7081
|
+
[name: string]: unknown;
|
|
7082
|
+
};
|
|
7083
|
+
content: {
|
|
7084
|
+
"application/json": {
|
|
7085
|
+
/** @description Opaque change token for this conversation. Compare for equality only — it is unordered and unparseable. It changes on every transcript mutation, including a display-projection finalization that deliberately leaves `updatedAt` untouched, so a client can tell whether a transcript it cached is still current. The same token is returned by `/client/init` and by the display-projections route. */
|
|
7086
|
+
conversationRevision: string;
|
|
7087
|
+
/** @description ISO-8601 timestamp of the first turn, i.e. when the conversation was created. */
|
|
7088
|
+
createdAt: string;
|
|
7089
|
+
/** @description Deprecated alias of `targetId`, carrying the same value. Retained for clients written before the rename; read `targetId` instead. */
|
|
7090
|
+
flowId: string | null;
|
|
7091
|
+
/** @description Conversation id. */
|
|
7092
|
+
id: string;
|
|
7093
|
+
/** @description Number of stored messages. Falls back to the length of the stored transcript when the conversation predates the counter. */
|
|
7094
|
+
messageCount: number;
|
|
7095
|
+
/** @description The stored transcript, oldest first. Renderable fields only: tool invocations and other execution internals are not exposed here. */
|
|
7096
|
+
messages: {
|
|
7097
|
+
/** @description The MODEL channel content, exactly as stored: a plain string, or an array of multi-modal content parts. Absent on a stored message that carried no content, and deliberately WITHHELD when the message has no `displayContent` and its stored content is not plainly render-safe — opaque structure is not handed to a renderer that would show a visitor internals. Prefer `displayContent` for rendering whenever it is present. */
|
|
7098
|
+
content?: unknown;
|
|
7099
|
+
/** @description Whether this message has a visitor-renderable form at all — either a captured `displayContent`, or stored content that is plainly render-safe. False means the message exists in the transcript but its visible form cannot be reconstructed (a legacy message whose content was model-only); render a placeholder rather than anything derived from `content`. */
|
|
7100
|
+
displayAvailable: boolean;
|
|
7101
|
+
/** @description The text a human actually saw for this message, as captured by the client. Present only when a projection was recorded; an empty string is a deliberate empty projection and is NOT the same as absence. Render this in preference to `content`. Plain text or Markdown, never rendered HTML, and never model input. */
|
|
7102
|
+
displayContent?: string;
|
|
7103
|
+
/** @description Client-supplied or server-minted message id. */
|
|
7104
|
+
id: string;
|
|
7105
|
+
/** @description Message author, typically 'user' or 'assistant'. */
|
|
7106
|
+
role: string;
|
|
7107
|
+
/** @description ISO-8601 send time. Absent on messages stored without one. */
|
|
7108
|
+
timestamp?: string;
|
|
7109
|
+
}[];
|
|
7110
|
+
/** @description Opaque cursor for the next older message page, or null when the beginning is reached. */
|
|
7111
|
+
nextMessageCursor: string | null;
|
|
7112
|
+
/** @description Plain-text excerpt of the conversation's most recent visitor-visible message, bounded to 140 Unicode code points, for a scannable history list. Derived from `displayContent` when the message has one and never from opaque model-only content, so it cannot become the one place internals leak. Null when the latest visible message has no text — including when its captured projection is deliberately empty. */
|
|
7113
|
+
preview: string | null;
|
|
7114
|
+
/** @description The flow or agent this conversation ran against, and the exact value to pass as the `targetId` list/delete filter. Null for a conversation stored without one. Canonical replacement for `flowId`. */
|
|
7115
|
+
targetId: string | null;
|
|
7116
|
+
/** @description Display title. Uses a timestamp fallback unless conversation-title generation is enabled and produces a title from the opening exchange. */
|
|
7117
|
+
title: string;
|
|
7118
|
+
/** @description ISO-8601 timestamp of the most recent write. Sort key for "resume where I left off" in a widget. */
|
|
7119
|
+
updatedAt: string;
|
|
7120
|
+
};
|
|
7121
|
+
};
|
|
7122
|
+
};
|
|
7123
|
+
/** @description Missing or malformed `sessionId` */
|
|
7124
|
+
400: {
|
|
7125
|
+
headers: {
|
|
7126
|
+
[name: string]: unknown;
|
|
7127
|
+
};
|
|
7128
|
+
content: {
|
|
7129
|
+
"application/json": components["schemas"]["Error"];
|
|
7130
|
+
};
|
|
7131
|
+
};
|
|
7132
|
+
/** @description Session expired, or missing/invalid visitor token */
|
|
7133
|
+
401: {
|
|
7134
|
+
headers: {
|
|
7135
|
+
[name: string]: unknown;
|
|
7136
|
+
};
|
|
7137
|
+
content: {
|
|
7138
|
+
"application/json": components["schemas"]["Error"];
|
|
7139
|
+
};
|
|
7140
|
+
};
|
|
7141
|
+
/** @description Client token inactive or origin mismatch */
|
|
7142
|
+
403: {
|
|
7143
|
+
headers: {
|
|
7144
|
+
[name: string]: unknown;
|
|
7145
|
+
};
|
|
7146
|
+
content: {
|
|
7147
|
+
"application/json": components["schemas"]["Error"];
|
|
7148
|
+
};
|
|
7149
|
+
};
|
|
7150
|
+
/** @description No such conversation for this visitor */
|
|
7151
|
+
404: {
|
|
7152
|
+
headers: {
|
|
7153
|
+
[name: string]: unknown;
|
|
7154
|
+
};
|
|
7155
|
+
content: {
|
|
7156
|
+
"application/json": components["schemas"]["Error"];
|
|
7157
|
+
};
|
|
7158
|
+
};
|
|
7159
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header with the advisory wait in seconds. */
|
|
7160
|
+
429: {
|
|
7161
|
+
headers: {
|
|
7162
|
+
[name: string]: unknown;
|
|
7163
|
+
};
|
|
7164
|
+
content: {
|
|
7165
|
+
"application/json": components["schemas"]["Error"];
|
|
7166
|
+
};
|
|
7167
|
+
};
|
|
7168
|
+
/** @description Internal server error */
|
|
7169
|
+
500: {
|
|
7170
|
+
headers: {
|
|
7171
|
+
[name: string]: unknown;
|
|
7172
|
+
};
|
|
7173
|
+
content: {
|
|
7174
|
+
"application/json": components["schemas"]["Error"];
|
|
7175
|
+
};
|
|
7176
|
+
};
|
|
7177
|
+
/** @description An `X-Identity-Proof` was supplied but end-user identity admission is not enabled for this token owner, so it cannot be evaluated (`identity_proof_not_admitted`). Nothing was read, deleted, or otherwise acted on. Retry without the proof to act at plain browser scope. Distinct from 401 `invalid_identity_proof`, which means the proof WAS evaluated and rejected. */
|
|
7178
|
+
503: {
|
|
7179
|
+
headers: {
|
|
7180
|
+
[name: string]: unknown;
|
|
7181
|
+
};
|
|
7182
|
+
content: {
|
|
7183
|
+
"application/json": components["schemas"]["Error"];
|
|
7184
|
+
};
|
|
7185
|
+
};
|
|
7186
|
+
};
|
|
7187
|
+
};
|
|
7188
|
+
put?: never;
|
|
7189
|
+
post?: never;
|
|
7190
|
+
/**
|
|
7191
|
+
* Delete one of the visitor's own conversations
|
|
7192
|
+
* @description Permanently delete a conversation and its stored transcript. Answers 404 (never 403) for a conversation the caller does not own. Every response carries `X-History-Identity-Status` (`not_provided` | `admitted` | `ignored`) reporting what the server did with a supplied `X-Identity-Proof`, so a widget can tell a verified action from a browser-scoped one. It is exposed via CORS; it grants no authority.
|
|
7193
|
+
*/
|
|
7194
|
+
delete: {
|
|
7195
|
+
parameters: {
|
|
7196
|
+
query: {
|
|
7197
|
+
/** @description Client session id from /client/init. */
|
|
7198
|
+
sessionId: string;
|
|
7199
|
+
};
|
|
7200
|
+
header: {
|
|
7201
|
+
/** @description The browser's anonymous visitor secret (`cvt_…`) returned by `/client/init`. It is what scopes the request to one visitor's own conversations, so a request without it is refused. Sent as a header so it never lands in access logs or `Referer`. */
|
|
7202
|
+
"x-visitor-token": string;
|
|
7203
|
+
/** @description Optional fresh hosted end-user identity proof. When admitted and already bound to the presented visitor, expands the request from this exact browser to sibling visitors for the same verified person. Without it, even a previously bound visitor remains exact-browser scoped. */
|
|
7204
|
+
"x-identity-proof"?: string;
|
|
7205
|
+
};
|
|
7206
|
+
path: {
|
|
7207
|
+
/** @description Conversation id from the list route. */
|
|
7208
|
+
id: string;
|
|
7209
|
+
};
|
|
7210
|
+
cookie?: never;
|
|
7211
|
+
};
|
|
7212
|
+
requestBody?: never;
|
|
7213
|
+
responses: {
|
|
7214
|
+
/** @description Deleted. `deleted` is always 1 on this route. */
|
|
7215
|
+
200: {
|
|
7216
|
+
headers: {
|
|
7217
|
+
[name: string]: unknown;
|
|
7218
|
+
};
|
|
7219
|
+
content: {
|
|
7220
|
+
"application/json": {
|
|
7221
|
+
/** @description Number of conversations deleted. The delete-all route returns 0 when the visitor has no history, rather than an error. */
|
|
7222
|
+
deleted: number;
|
|
7223
|
+
};
|
|
7224
|
+
};
|
|
7225
|
+
};
|
|
7226
|
+
/** @description Missing or malformed `sessionId` */
|
|
7227
|
+
400: {
|
|
7228
|
+
headers: {
|
|
7229
|
+
[name: string]: unknown;
|
|
7230
|
+
};
|
|
7231
|
+
content: {
|
|
7232
|
+
"application/json": components["schemas"]["Error"];
|
|
7233
|
+
};
|
|
7234
|
+
};
|
|
7235
|
+
/** @description Session expired, or missing/invalid visitor token */
|
|
7236
|
+
401: {
|
|
7237
|
+
headers: {
|
|
7238
|
+
[name: string]: unknown;
|
|
7239
|
+
};
|
|
7240
|
+
content: {
|
|
7241
|
+
"application/json": components["schemas"]["Error"];
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
/** @description Client token inactive or origin mismatch */
|
|
7245
|
+
403: {
|
|
7246
|
+
headers: {
|
|
7247
|
+
[name: string]: unknown;
|
|
7248
|
+
};
|
|
7249
|
+
content: {
|
|
7250
|
+
"application/json": components["schemas"]["Error"];
|
|
7251
|
+
};
|
|
7252
|
+
};
|
|
7253
|
+
/** @description No such conversation for this visitor */
|
|
7254
|
+
404: {
|
|
7255
|
+
headers: {
|
|
7256
|
+
[name: string]: unknown;
|
|
7257
|
+
};
|
|
7258
|
+
content: {
|
|
7259
|
+
"application/json": components["schemas"]["Error"];
|
|
7260
|
+
};
|
|
7261
|
+
};
|
|
7262
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header with the advisory wait in seconds. */
|
|
7263
|
+
429: {
|
|
7264
|
+
headers: {
|
|
7265
|
+
[name: string]: unknown;
|
|
7266
|
+
};
|
|
7267
|
+
content: {
|
|
7268
|
+
"application/json": components["schemas"]["Error"];
|
|
7269
|
+
};
|
|
7270
|
+
};
|
|
7271
|
+
/** @description Internal server error */
|
|
7272
|
+
500: {
|
|
7273
|
+
headers: {
|
|
7274
|
+
[name: string]: unknown;
|
|
7275
|
+
};
|
|
7276
|
+
content: {
|
|
7277
|
+
"application/json": components["schemas"]["Error"];
|
|
7278
|
+
};
|
|
7279
|
+
};
|
|
7280
|
+
/** @description An `X-Identity-Proof` was supplied but end-user identity admission is not enabled for this token owner, so it cannot be evaluated (`identity_proof_not_admitted`). Nothing was read, deleted, or otherwise acted on. Retry without the proof to act at plain browser scope. Distinct from 401 `invalid_identity_proof`, which means the proof WAS evaluated and rejected. */
|
|
7281
|
+
503: {
|
|
7282
|
+
headers: {
|
|
7283
|
+
[name: string]: unknown;
|
|
7284
|
+
};
|
|
7285
|
+
content: {
|
|
7286
|
+
"application/json": components["schemas"]["Error"];
|
|
7287
|
+
};
|
|
7288
|
+
};
|
|
7289
|
+
};
|
|
7290
|
+
};
|
|
7291
|
+
options?: never;
|
|
7292
|
+
head?: never;
|
|
7293
|
+
patch?: never;
|
|
7294
|
+
trace?: never;
|
|
7295
|
+
};
|
|
7296
|
+
"/v1/client/conversations/{id}/display-projections": {
|
|
7297
|
+
parameters: {
|
|
7298
|
+
query?: never;
|
|
7299
|
+
header?: never;
|
|
7300
|
+
path?: never;
|
|
7301
|
+
cookie?: never;
|
|
7302
|
+
};
|
|
7303
|
+
get?: never;
|
|
7304
|
+
put?: never;
|
|
7305
|
+
post?: never;
|
|
7306
|
+
delete?: never;
|
|
7307
|
+
options?: never;
|
|
7308
|
+
head?: never;
|
|
7309
|
+
/**
|
|
7310
|
+
* Finalize the visible text of stored messages
|
|
7311
|
+
* @description Record what a human actually saw for messages this conversation already stores. A chat client can only compute an assistant message's final visible text after the stream closes and its own parsers, postprocessors, and plugins have run; this is the channel for sending that back, so the transcript reopens showing what the visitor read rather than the model-channel payload. It is projection-only: it can fill or replace `displayContent` and nothing else, never creating a message or touching model content, role, ordering, timestamps, count, ownership, or title. The batch applies all-or-nothing, and the write is guarded by a compare-and-swap on `conversationRevision`, so it can never overwrite a turn the chat path persisted concurrently. Replaying an identical projection is a no-op that performs no write and returns the same `conversationRevision`. A genuinely changed projection advances the revision and refreshes the list `preview`, but deliberately does NOT change `updatedAt` — a closing tab must not reorder the visitor's history. Authorization is exact: the live session must be bound to this conversation, on top of the visitor secret. Small and bounded on purpose, so a client can send it with `keepalive: true` on page exit.
|
|
7312
|
+
*/
|
|
7313
|
+
patch: {
|
|
7314
|
+
parameters: {
|
|
7315
|
+
query: {
|
|
7316
|
+
/** @description Client session id from /client/init. */
|
|
7317
|
+
sessionId: string;
|
|
7318
|
+
};
|
|
7319
|
+
header: {
|
|
7320
|
+
/** @description The browser's anonymous visitor secret (`cvt_…`) returned by `/client/init`. It is what scopes the request to one visitor's own conversations, so a request without it is refused. Sent as a header so it never lands in access logs or `Referer`. */
|
|
7321
|
+
"x-visitor-token": string;
|
|
7322
|
+
/** @description Optional fresh hosted end-user identity proof. When admitted and already bound to the presented visitor, expands the request from this exact browser to sibling visitors for the same verified person. Without it, even a previously bound visitor remains exact-browser scoped. */
|
|
7323
|
+
"x-identity-proof"?: string;
|
|
7324
|
+
};
|
|
7325
|
+
path: {
|
|
7326
|
+
/** @description Conversation id — must be this session’s own. */
|
|
7327
|
+
id: string;
|
|
7328
|
+
};
|
|
7329
|
+
cookie?: never;
|
|
7330
|
+
};
|
|
7331
|
+
requestBody: {
|
|
7332
|
+
content: {
|
|
7333
|
+
"application/json": {
|
|
7334
|
+
/** @description Projections to finalize, applied atomically. Total `displayContent` across the batch is capped at 49152 characters so the request fits the browser keepalive budget. */
|
|
7335
|
+
messages: {
|
|
7336
|
+
/** @description The final text a human saw for that message. An empty string is a valid, deliberate empty projection. */
|
|
7337
|
+
displayContent: string;
|
|
7338
|
+
/** @description Id of a message this conversation ALREADY stores. An id it does not hold fails the whole batch. */
|
|
7339
|
+
id: string;
|
|
7340
|
+
}[];
|
|
7341
|
+
};
|
|
7342
|
+
};
|
|
7343
|
+
};
|
|
7344
|
+
responses: {
|
|
7345
|
+
/** @description Projections finalized (or already current). */
|
|
7346
|
+
200: {
|
|
7347
|
+
headers: {
|
|
7348
|
+
[name: string]: unknown;
|
|
7349
|
+
};
|
|
7350
|
+
content: {
|
|
7351
|
+
"application/json": {
|
|
7352
|
+
/** @description The conversation's change token after this call. Unchanged when the projections were already current, so a client can replay a lost finalization safely. Compare for equality only. */
|
|
7353
|
+
conversationRevision: string;
|
|
7354
|
+
};
|
|
7355
|
+
};
|
|
7356
|
+
};
|
|
7357
|
+
/** @description Missing or malformed `sessionId`, or a body that exceeds the per-message / per-batch projection bounds */
|
|
7358
|
+
400: {
|
|
7359
|
+
headers: {
|
|
7360
|
+
[name: string]: unknown;
|
|
7361
|
+
};
|
|
7362
|
+
content: {
|
|
7363
|
+
"application/json": components["schemas"]["Error"];
|
|
7364
|
+
};
|
|
7365
|
+
};
|
|
7366
|
+
/** @description Session expired, or missing/invalid visitor token */
|
|
7367
|
+
401: {
|
|
7368
|
+
headers: {
|
|
7369
|
+
[name: string]: unknown;
|
|
7370
|
+
};
|
|
7371
|
+
content: {
|
|
7372
|
+
"application/json": components["schemas"]["Error"];
|
|
7373
|
+
};
|
|
7374
|
+
};
|
|
7375
|
+
/** @description Client token inactive or origin mismatch */
|
|
7376
|
+
403: {
|
|
7377
|
+
headers: {
|
|
7378
|
+
[name: string]: unknown;
|
|
7379
|
+
};
|
|
7380
|
+
content: {
|
|
7381
|
+
"application/json": components["schemas"]["Error"];
|
|
7382
|
+
};
|
|
7383
|
+
};
|
|
7384
|
+
/** @description This session is not on that conversation, the visitor does not own it, or the batch named a message the conversation does not hold. One non-enumerating answer covers all three: the route never confirms which. */
|
|
7385
|
+
404: {
|
|
7386
|
+
headers: {
|
|
7387
|
+
[name: string]: unknown;
|
|
7388
|
+
};
|
|
7389
|
+
content: {
|
|
7390
|
+
"application/json": components["schemas"]["Error"];
|
|
7391
|
+
};
|
|
7392
|
+
};
|
|
7393
|
+
/** @description The conversation changed while the projections were being written and the compare-and-swap kept losing (`conversation_modified`). Nothing was written. Non-fatal: retry, or ignore it and let the next chat turn re-carry the projections through the repair path. */
|
|
7394
|
+
409: {
|
|
7395
|
+
headers: {
|
|
7396
|
+
[name: string]: unknown;
|
|
7397
|
+
};
|
|
7398
|
+
content: {
|
|
7399
|
+
"application/json": components["schemas"]["Error"];
|
|
7400
|
+
};
|
|
7401
|
+
};
|
|
7402
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header with the advisory wait in seconds. */
|
|
7403
|
+
429: {
|
|
7404
|
+
headers: {
|
|
7405
|
+
[name: string]: unknown;
|
|
7406
|
+
};
|
|
7407
|
+
content: {
|
|
7408
|
+
"application/json": components["schemas"]["Error"];
|
|
7409
|
+
};
|
|
7410
|
+
};
|
|
7411
|
+
/** @description Internal server error */
|
|
7412
|
+
500: {
|
|
7413
|
+
headers: {
|
|
7414
|
+
[name: string]: unknown;
|
|
7415
|
+
};
|
|
7416
|
+
content: {
|
|
7417
|
+
"application/json": components["schemas"]["Error"];
|
|
7418
|
+
};
|
|
7419
|
+
};
|
|
7420
|
+
};
|
|
7421
|
+
};
|
|
7422
|
+
trace?: never;
|
|
7423
|
+
};
|
|
6815
7424
|
"/v1/client/feedback": {
|
|
6816
7425
|
parameters: {
|
|
6817
7426
|
query?: never;
|
|
@@ -6886,7 +7495,7 @@ interface paths {
|
|
|
6886
7495
|
"application/json": components["schemas"]["Error"];
|
|
6887
7496
|
};
|
|
6888
7497
|
};
|
|
6889
|
-
/** @description Invalid client token
|
|
7498
|
+
/** @description Invalid client token. The `token` field is required on every feedback call. */
|
|
6890
7499
|
401: {
|
|
6891
7500
|
headers: {
|
|
6892
7501
|
[name: string]: unknown;
|
|
@@ -6941,7 +7550,7 @@ interface paths {
|
|
|
6941
7550
|
put?: never;
|
|
6942
7551
|
/**
|
|
6943
7552
|
* Initialize a client session
|
|
6944
|
-
* @description Exchange a client token for a browser chat session. Validates the token + request `Origin`, resolves the target flow or agent, and returns the session id plus widget display config. Pass an existing `sessionId` to
|
|
7553
|
+
* @description Exchange a client token for a browser chat session. Validates the token + request `Origin`, resolves the target flow or agent, and returns the session id plus widget display config. Pass an existing `sessionId` for legacy resume, or a visitor-authorized `conversationId` returned by the history list to reopen a conversation across sessions or verified devices.
|
|
6945
7554
|
*/
|
|
6946
7555
|
post: {
|
|
6947
7556
|
parameters: {
|
|
@@ -6954,8 +7563,31 @@ interface paths {
|
|
|
6954
7563
|
content: {
|
|
6955
7564
|
"application/json": {
|
|
6956
7565
|
flowId?: string;
|
|
6957
|
-
|
|
7566
|
+
identityProof?: string;
|
|
7567
|
+
token: string;
|
|
7568
|
+
visitorHistory?: boolean;
|
|
7569
|
+
visitorToken?: string;
|
|
7570
|
+
} | {
|
|
7571
|
+
flowId?: string;
|
|
7572
|
+
identityProof?: string;
|
|
7573
|
+
sessionId: string;
|
|
7574
|
+
token: string;
|
|
7575
|
+
visitorHistory?: boolean;
|
|
7576
|
+
visitorToken?: string;
|
|
7577
|
+
} | {
|
|
7578
|
+
conversationId: string;
|
|
7579
|
+
flowId?: string;
|
|
7580
|
+
identityProof?: string;
|
|
7581
|
+
token: string;
|
|
7582
|
+
visitorHistory?: boolean;
|
|
7583
|
+
visitorToken: string;
|
|
7584
|
+
} | {
|
|
7585
|
+
conversationId: string;
|
|
7586
|
+
flowId?: string;
|
|
7587
|
+
identityProof: string;
|
|
6958
7588
|
token: string;
|
|
7589
|
+
visitorHistory?: boolean;
|
|
7590
|
+
visitorToken?: string;
|
|
6959
7591
|
};
|
|
6960
7592
|
};
|
|
6961
7593
|
};
|
|
@@ -6967,22 +7599,55 @@ interface paths {
|
|
|
6967
7599
|
};
|
|
6968
7600
|
content: {
|
|
6969
7601
|
"application/json": {
|
|
7602
|
+
/** @description Present instead of `flow` for a Runtype App token whose manifest declares record namespaces but no flows or agents. Exactly one of `flow` and `app` is returned. */
|
|
7603
|
+
app?: {
|
|
7604
|
+
/** @description Runtype App id backing this session. */
|
|
7605
|
+
id: string;
|
|
7606
|
+
};
|
|
7607
|
+
/** @description Widget display config, read from the client token's stored config. Always returned, with null standing in for an unset welcome message or theme. */
|
|
6970
7608
|
config: {
|
|
6971
|
-
placeholder
|
|
7609
|
+
/** @description Composer placeholder text. Defaults to 'Type your message...' when the client token sets none. */
|
|
7610
|
+
placeholder: string;
|
|
7611
|
+
/** @description Persona theme tokens stored on the client token, passed through verbatim. Null when unthemed. */
|
|
6972
7612
|
theme?: unknown;
|
|
6973
|
-
|
|
7613
|
+
/** @description Opening message to render before the visitor's first turn. Null when the client token sets none. */
|
|
7614
|
+
welcomeMessage: string | null;
|
|
6974
7615
|
};
|
|
7616
|
+
/** @description The durable conversation record this session reads and writes. Returned by every successful branch — a fresh mint, a legacy `sessionId` replay, and a `conversationId` resume all report the record they landed on. Persist THIS rather than the session id: a session is short-lived, the conversation is what a returning browser reopens. It is not a credential; history access is still scoped by the visitor secret. */
|
|
7617
|
+
conversationId: string;
|
|
7618
|
+
/** @description Opaque change token for `conversationId` at the moment this session was created. Compare it for equality and nothing else — it is unordered and unparseable. It changes on every transcript mutation, including a display-projection finalization that deliberately leaves `updatedAt` untouched, so a second device or a reloaded tab can tell whether the transcript it holds is still current. */
|
|
7619
|
+
conversationRevision: string;
|
|
6975
7620
|
/** @description ISO-8601 session idle-expiry timestamp. */
|
|
6976
7621
|
expiresAt: string;
|
|
6977
|
-
/** @description Resolved flow
|
|
7622
|
+
/** @description Resolved flow or agent for this session. Present on every response except the data-only Runtype App branch, which returns `app` instead. Retained for compatibility: `id` always carries the same value as the canonical top-level `targetId`, which new clients should read instead. */
|
|
6978
7623
|
flow?: {
|
|
7624
|
+
/** @description Flow description, null when the flow has none. Flow sessions only. */
|
|
6979
7625
|
description?: string | null;
|
|
6980
7626
|
/** @description Resolved flow or agent ID for this session. */
|
|
6981
7627
|
id: string;
|
|
6982
|
-
name
|
|
7628
|
+
/** @description Flow name. Present only for a flow session; the agent branch returns `id` alone because the widget does not render either field. */
|
|
7629
|
+
name?: string;
|
|
6983
7630
|
};
|
|
6984
7631
|
/** @description The created (or resumed) client session ID. */
|
|
6985
7632
|
sessionId: string;
|
|
7633
|
+
/** @description The flow or agent this session executes against, resolved server-side. Canonical replacement for `flow.id`, and the exact key to pass as `targetId` when listing or deleting this conversation's history. Matches the value stored on the conversation record, including the case where an agent-only token resolves its agent to a primary flow. Absent only on the data-only Runtype App branch, which is not chat-capable. */
|
|
7634
|
+
targetId?: string;
|
|
7635
|
+
/** @description The browser's anonymous visitor identity. Present when the request opts into visitor history (or supplies a visitor token, identity proof, or conversation id). Authenticates the `/client/conversations*` history routes, which the site-wide client token alone cannot reach. */
|
|
7636
|
+
visitor?: {
|
|
7637
|
+
/** @description The verified end user (`eu_…`) this browser is bound to, when an `identityProof` was admitted. Null while anonymous. Cross-device reads still require a fresh `identityProof` on that request; the stored binding alone remains exact-browser scoped. */
|
|
7638
|
+
endUserId: string | null;
|
|
7639
|
+
/** @description ISO-8601 sliding idle-expiry for this visitor. */
|
|
7640
|
+
expiresAt: string;
|
|
7641
|
+
/** @description Durable anonymous visitor id (`cvis_…`). */
|
|
7642
|
+
id: string;
|
|
7643
|
+
/**
|
|
7644
|
+
* @description What the server did with a supplied `identityProof` on THIS request. `not_provided`: none was sent. `admitted`: it was verified and produced the end-user scope. `ignored`: one was sent but end-user admission is not enabled for this token owner, so it was never evaluated and the session is plain browser scope. Init still succeeds on `ignored` so chat degrades gracefully, but a widget must not offer verified cross-device history or a verified erase in that state (the history routes refuse such a request outright with 503 `identity_proof_not_admitted`). Reporting only: it confers no authority and carries no identity value.
|
|
7645
|
+
* @enum {string}
|
|
7646
|
+
*/
|
|
7647
|
+
identityStatus: "not_provided" | "admitted" | "ignored";
|
|
7648
|
+
/** @description The raw visitor secret (`cvt_…`). Returned ONLY when this init newly mints a visitor. Store it and send it back as `visitorToken` on the next init; it is unrecoverable afterwards. Reset itself returns no replacement; the next history-capable init mints one. */
|
|
7649
|
+
token?: string;
|
|
7650
|
+
};
|
|
6986
7651
|
};
|
|
6987
7652
|
};
|
|
6988
7653
|
};
|
|
@@ -6995,13 +7660,16 @@ interface paths {
|
|
|
6995
7660
|
"application/json": components["schemas"]["Error"];
|
|
6996
7661
|
};
|
|
6997
7662
|
};
|
|
6998
|
-
/** @description Invalid client token */
|
|
7663
|
+
/** @description Invalid client token, or an `identityProof` was supplied that failed verification (`invalid_identity_proof`, fail-closed: nothing is bound). Identity-proof rejections carry `errorDescription` naming the reason. */
|
|
6999
7664
|
401: {
|
|
7000
7665
|
headers: {
|
|
7001
7666
|
[name: string]: unknown;
|
|
7002
7667
|
};
|
|
7003
7668
|
content: {
|
|
7004
|
-
"application/json": components["schemas"]["Error"]
|
|
7669
|
+
"application/json": components["schemas"]["Error"] & {
|
|
7670
|
+
/** @description Why the supplied `identityProof` was refused (for example an expired assertion, an unknown issuer, or a proof minted for another tenant). Diagnostic text for the embedding site, not a value to branch on. */
|
|
7671
|
+
errorDescription?: string;
|
|
7672
|
+
};
|
|
7005
7673
|
};
|
|
7006
7674
|
};
|
|
7007
7675
|
/** @description Client token inactive or origin not allowed */
|
|
@@ -7013,7 +7681,7 @@ interface paths {
|
|
|
7013
7681
|
"application/json": components["schemas"]["Error"];
|
|
7014
7682
|
};
|
|
7015
7683
|
};
|
|
7016
|
-
/** @description Referenced flow or
|
|
7684
|
+
/** @description Referenced flow, agent, or visitor-authorized conversation not found. Conversations outside the visitor scope also answer 404. */
|
|
7017
7685
|
404: {
|
|
7018
7686
|
headers: {
|
|
7019
7687
|
[name: string]: unknown;
|
|
@@ -7197,6 +7865,111 @@ interface paths {
|
|
|
7197
7865
|
patch?: never;
|
|
7198
7866
|
trace?: never;
|
|
7199
7867
|
};
|
|
7868
|
+
"/v1/client/visitor/reset": {
|
|
7869
|
+
parameters: {
|
|
7870
|
+
query?: never;
|
|
7871
|
+
header?: never;
|
|
7872
|
+
path?: never;
|
|
7873
|
+
cookie?: never;
|
|
7874
|
+
};
|
|
7875
|
+
get?: never;
|
|
7876
|
+
put?: never;
|
|
7877
|
+
/**
|
|
7878
|
+
* Reset the current browser visitor
|
|
7879
|
+
* @description Explicit widget shutdown/logout lifecycle. Revokes the presented browser visitor when it still resolves, without deleting conversation records. The response is idempotent so it cannot reveal whether a visitor secret was valid. Clear the locally stored secret after success; a later history-capable init creates a clean anonymous visitor. Every response carries `X-History-Identity-Status` (`not_provided` | `admitted` | `ignored`) reporting what the server did with a supplied `X-Identity-Proof`, so a widget can tell a verified action from a browser-scoped one. It is exposed via CORS; it grants no authority.
|
|
7880
|
+
*/
|
|
7881
|
+
post: {
|
|
7882
|
+
parameters: {
|
|
7883
|
+
query: {
|
|
7884
|
+
/** @description Live client session id from /client/init. */
|
|
7885
|
+
sessionId: string;
|
|
7886
|
+
};
|
|
7887
|
+
header?: {
|
|
7888
|
+
/** @description The visitor secret to revoke. Omit when local storage is already empty; reset remains idempotent. */
|
|
7889
|
+
"x-visitor-token"?: string;
|
|
7890
|
+
};
|
|
7891
|
+
path?: never;
|
|
7892
|
+
cookie?: never;
|
|
7893
|
+
};
|
|
7894
|
+
requestBody?: never;
|
|
7895
|
+
responses: {
|
|
7896
|
+
/** @description Visitor reset accepted. */
|
|
7897
|
+
200: {
|
|
7898
|
+
headers: {
|
|
7899
|
+
[name: string]: unknown;
|
|
7900
|
+
};
|
|
7901
|
+
content: {
|
|
7902
|
+
"application/json": {
|
|
7903
|
+
/**
|
|
7904
|
+
* @description Always true after the reset request is accepted, including when the supplied visitor was already expired or revoked.
|
|
7905
|
+
* @enum {boolean}
|
|
7906
|
+
*/
|
|
7907
|
+
reset: true;
|
|
7908
|
+
};
|
|
7909
|
+
};
|
|
7910
|
+
};
|
|
7911
|
+
/** @description Missing or malformed `sessionId` */
|
|
7912
|
+
400: {
|
|
7913
|
+
headers: {
|
|
7914
|
+
[name: string]: unknown;
|
|
7915
|
+
};
|
|
7916
|
+
content: {
|
|
7917
|
+
"application/json": components["schemas"]["Error"];
|
|
7918
|
+
};
|
|
7919
|
+
};
|
|
7920
|
+
/** @description Session expired */
|
|
7921
|
+
401: {
|
|
7922
|
+
headers: {
|
|
7923
|
+
[name: string]: unknown;
|
|
7924
|
+
};
|
|
7925
|
+
content: {
|
|
7926
|
+
"application/json": components["schemas"]["Error"];
|
|
7927
|
+
};
|
|
7928
|
+
};
|
|
7929
|
+
/** @description Client token inactive or origin mismatch */
|
|
7930
|
+
403: {
|
|
7931
|
+
headers: {
|
|
7932
|
+
[name: string]: unknown;
|
|
7933
|
+
};
|
|
7934
|
+
content: {
|
|
7935
|
+
"application/json": components["schemas"]["Error"];
|
|
7936
|
+
};
|
|
7937
|
+
};
|
|
7938
|
+
/** @description Rate limit exceeded for this client token or session. The response carries a `Retry-After` header. */
|
|
7939
|
+
429: {
|
|
7940
|
+
headers: {
|
|
7941
|
+
[name: string]: unknown;
|
|
7942
|
+
};
|
|
7943
|
+
content: {
|
|
7944
|
+
"application/json": components["schemas"]["Error"];
|
|
7945
|
+
};
|
|
7946
|
+
};
|
|
7947
|
+
/** @description Internal server error */
|
|
7948
|
+
500: {
|
|
7949
|
+
headers: {
|
|
7950
|
+
[name: string]: unknown;
|
|
7951
|
+
};
|
|
7952
|
+
content: {
|
|
7953
|
+
"application/json": components["schemas"]["Error"];
|
|
7954
|
+
};
|
|
7955
|
+
};
|
|
7956
|
+
/** @description An `X-Identity-Proof` was supplied but end-user identity admission is not enabled for this token owner, so it cannot be evaluated (`identity_proof_not_admitted`). Nothing was read, deleted, or otherwise acted on. Retry without the proof to act at plain browser scope. Distinct from 401 `invalid_identity_proof`, which means the proof WAS evaluated and rejected. */
|
|
7957
|
+
503: {
|
|
7958
|
+
headers: {
|
|
7959
|
+
[name: string]: unknown;
|
|
7960
|
+
};
|
|
7961
|
+
content: {
|
|
7962
|
+
"application/json": components["schemas"]["Error"];
|
|
7963
|
+
};
|
|
7964
|
+
};
|
|
7965
|
+
};
|
|
7966
|
+
};
|
|
7967
|
+
delete?: never;
|
|
7968
|
+
options?: never;
|
|
7969
|
+
head?: never;
|
|
7970
|
+
patch?: never;
|
|
7971
|
+
trace?: never;
|
|
7972
|
+
};
|
|
7200
7973
|
"/v1/collections": {
|
|
7201
7974
|
parameters: {
|
|
7202
7975
|
query?: never;
|
|
@@ -10239,6 +11012,7 @@ interface paths {
|
|
|
10239
11012
|
localInference?: {
|
|
10240
11013
|
/** @enum {string} */
|
|
10241
11014
|
backend: "ollama";
|
|
11015
|
+
capabilityRevision?: string;
|
|
10242
11016
|
model: string;
|
|
10243
11017
|
/** Format: uuid */
|
|
10244
11018
|
sessionId: string;
|
|
@@ -10603,6 +11377,7 @@ interface paths {
|
|
|
10603
11377
|
localInference?: {
|
|
10604
11378
|
/** @enum {string} */
|
|
10605
11379
|
backend: "ollama";
|
|
11380
|
+
capabilityRevision?: string;
|
|
10606
11381
|
model: string;
|
|
10607
11382
|
/** Format: uuid */
|
|
10608
11383
|
sessionId: string;
|
|
@@ -12976,6 +13751,8 @@ interface paths {
|
|
|
12976
13751
|
requestBody?: {
|
|
12977
13752
|
content: {
|
|
12978
13753
|
"application/json": {
|
|
13754
|
+
evalConfigs?: components["schemas"]["EvalConfigRequest"][];
|
|
13755
|
+
} & {
|
|
12979
13756
|
[key: string]: unknown;
|
|
12980
13757
|
};
|
|
12981
13758
|
};
|
|
@@ -13066,6 +13843,9 @@ interface paths {
|
|
|
13066
13843
|
requestBody?: {
|
|
13067
13844
|
content: {
|
|
13068
13845
|
"application/json": {
|
|
13846
|
+
evalConfig?: components["schemas"]["EvalConfigRequest"];
|
|
13847
|
+
evalConfigs?: components["schemas"]["EvalConfigRequest"][];
|
|
13848
|
+
} & {
|
|
13069
13849
|
[key: string]: unknown;
|
|
13070
13850
|
};
|
|
13071
13851
|
};
|
|
@@ -43392,6 +44172,8 @@ interface components {
|
|
|
43392
44172
|
daily?: {
|
|
43393
44173
|
atSpendLimit: boolean;
|
|
43394
44174
|
date: string;
|
|
44175
|
+
/** @enum {string|null} */
|
|
44176
|
+
executionCapReason: "no_card_ceiling" | null;
|
|
43395
44177
|
executionLimit: number;
|
|
43396
44178
|
executionsUsed: number;
|
|
43397
44179
|
inSlowMode: boolean;
|
|
@@ -43411,6 +44193,8 @@ interface components {
|
|
|
43411
44193
|
monthly?: {
|
|
43412
44194
|
atSpendLimit: boolean;
|
|
43413
44195
|
date: string;
|
|
44196
|
+
/** @enum {string|null} */
|
|
44197
|
+
executionCapReason: "no_card_ceiling" | null;
|
|
43414
44198
|
executionLimit: number;
|
|
43415
44199
|
executionsUsed: number;
|
|
43416
44200
|
inSlowMode: boolean;
|
|
@@ -43686,6 +44470,13 @@ interface components {
|
|
|
43686
44470
|
model: string;
|
|
43687
44471
|
proposals: components["schemas"]["EvalCaseProposal"][];
|
|
43688
44472
|
};
|
|
44473
|
+
EvalConfigRequest: {
|
|
44474
|
+
evalConfigId?: string;
|
|
44475
|
+
evalName?: string;
|
|
44476
|
+
overrides?: components["schemas"]["EvalOverrides"];
|
|
44477
|
+
} & {
|
|
44478
|
+
[key: string]: unknown;
|
|
44479
|
+
};
|
|
43689
44480
|
EvalCoverage: {
|
|
43690
44481
|
definitionHash: string;
|
|
43691
44482
|
instructions: {
|
|
@@ -43723,6 +44514,39 @@ interface components {
|
|
|
43723
44514
|
/** @enum {string} */
|
|
43724
44515
|
result: "definitionRequired";
|
|
43725
44516
|
};
|
|
44517
|
+
/** @description Canonical eval override field. Replaces `stepOverrides` (and its `"*"` key), `claudeManagedOverride` and `advisorOverride`; setting both spellings of one channel is a 400. */
|
|
44518
|
+
EvalOverrides: {
|
|
44519
|
+
/** @description Advisor override for agent capabilities. `null` disables the advisor; omitting it leaves the target’s own config alone. */
|
|
44520
|
+
advisor?: ({
|
|
44521
|
+
model: string;
|
|
44522
|
+
systemPrompt?: string;
|
|
44523
|
+
} & {
|
|
44524
|
+
[key: string]: unknown;
|
|
44525
|
+
}) | null;
|
|
44526
|
+
agent?: components["schemas"]["EvalStepOverrideValues"];
|
|
44527
|
+
/** @description Claude Managed variant override. Valid only on a claude_managed agent target; rejected on a standard agent rather than silently ignored. */
|
|
44528
|
+
claudeManaged?: {
|
|
44529
|
+
model?: string;
|
|
44530
|
+
systemPrompt?: string;
|
|
44531
|
+
toolPermissions?: {
|
|
44532
|
+
[key: string]: boolean;
|
|
44533
|
+
};
|
|
44534
|
+
} & {
|
|
44535
|
+
[key: string]: unknown;
|
|
44536
|
+
};
|
|
44537
|
+
flow?: components["schemas"]["EvalStepOverrideValues"] & unknown;
|
|
44538
|
+
/** @description Per-step overrides keyed by step id. Beats agent/flow field by field. A key naming no step of the target is a 400 rather than a silently-scored no-op. */
|
|
44539
|
+
steps?: {
|
|
44540
|
+
[key: string]: components["schemas"]["EvalStepOverrideValues"] & unknown;
|
|
44541
|
+
};
|
|
44542
|
+
subagentDefaults?: components["schemas"]["EvalStepOverrideValues"] & unknown;
|
|
44543
|
+
/** @description Per-sub-agent overrides keyed by agentId. The key is an identity, not a position: an entry applies wherever that agent runs, at any depth. A key naming an agent this target cannot reach is a 400. */
|
|
44544
|
+
subagents?: {
|
|
44545
|
+
[key: string]: components["schemas"]["EvalStepOverrideValues"] & unknown;
|
|
44546
|
+
};
|
|
44547
|
+
} & {
|
|
44548
|
+
[key: string]: unknown;
|
|
44549
|
+
};
|
|
43726
44550
|
EvalPullResponse: {
|
|
43727
44551
|
contentHash: string;
|
|
43728
44552
|
definition: {
|
|
@@ -43845,6 +44669,23 @@ interface components {
|
|
|
43845
44669
|
humanVerdict: "agree" | "disagree" | null;
|
|
43846
44670
|
scoreId: string;
|
|
43847
44671
|
};
|
|
44672
|
+
/** @description Applies to every prompt step of the agent under test. Valid only on an agent target; sending it on a flow target is a 400. */
|
|
44673
|
+
EvalStepOverrideValues: {
|
|
44674
|
+
frequencyPenalty?: number;
|
|
44675
|
+
maxTokens?: number;
|
|
44676
|
+
model?: string;
|
|
44677
|
+
presencePenalty?: number;
|
|
44678
|
+
reasoning?: unknown;
|
|
44679
|
+
/** @enum {string} */
|
|
44680
|
+
responseFormat?: "default" | "json" | "markdown" | "html" | "xml";
|
|
44681
|
+
seed?: number;
|
|
44682
|
+
temperature?: number;
|
|
44683
|
+
tools?: unknown;
|
|
44684
|
+
topK?: number;
|
|
44685
|
+
topP?: number;
|
|
44686
|
+
} & {
|
|
44687
|
+
[key: string]: unknown;
|
|
44688
|
+
};
|
|
43848
44689
|
EvalSuiteDetail: {
|
|
43849
44690
|
agentId: string | null;
|
|
43850
44691
|
baselineBatchExecutionId: string | null;
|
|
@@ -44951,6 +45792,8 @@ interface components {
|
|
|
44951
45792
|
daily?: {
|
|
44952
45793
|
atSpendLimit: boolean;
|
|
44953
45794
|
date: string;
|
|
45795
|
+
/** @enum {string|null} */
|
|
45796
|
+
executionCapReason: "no_card_ceiling" | null;
|
|
44954
45797
|
executionLimit: number;
|
|
44955
45798
|
executionsUsed: number;
|
|
44956
45799
|
inSlowMode: boolean;
|
|
@@ -44974,6 +45817,8 @@ interface components {
|
|
|
44974
45817
|
monthly?: {
|
|
44975
45818
|
atSpendLimit: boolean;
|
|
44976
45819
|
date: string;
|
|
45820
|
+
/** @enum {string|null} */
|
|
45821
|
+
executionCapReason: "no_card_ceiling" | null;
|
|
44977
45822
|
executionLimit: number;
|
|
44978
45823
|
executionsUsed: number;
|
|
44979
45824
|
inSlowMode: boolean;
|
|
@@ -52900,6 +53745,45 @@ declare class ToolsEndpoint {
|
|
|
52900
53745
|
*/
|
|
52901
53746
|
cleanupCfSandbox(sandboxId: string): Promise<void>;
|
|
52902
53747
|
}
|
|
53748
|
+
/**
|
|
53749
|
+
* Sampling/model/tool values applied to one eval override target.
|
|
53750
|
+
*
|
|
53751
|
+
* Structurally `StepOverride` from `@runtypelabs/shared`, restated here to
|
|
53752
|
+
* keep the SDK dependency-free. `tools` stays `any` for the same reason: its
|
|
53753
|
+
* full shape pulls in the runtime-tool types.
|
|
53754
|
+
*/
|
|
53755
|
+
interface EvalOverrideValues {
|
|
53756
|
+
model?: string;
|
|
53757
|
+
temperature?: number;
|
|
53758
|
+
maxTokens?: number;
|
|
53759
|
+
topP?: number;
|
|
53760
|
+
topK?: number;
|
|
53761
|
+
frequencyPenalty?: number;
|
|
53762
|
+
presencePenalty?: number;
|
|
53763
|
+
seed?: number;
|
|
53764
|
+
responseFormat?: 'default' | 'json' | 'markdown' | 'html' | 'xml';
|
|
53765
|
+
reasoning?: any;
|
|
53766
|
+
tools?: any;
|
|
53767
|
+
}
|
|
53768
|
+
/**
|
|
53769
|
+
* Claude Managed variant override. Mirrors `ClaudeManagedEvalOverride` from
|
|
53770
|
+
* `@runtypelabs/shared`.
|
|
53771
|
+
*/
|
|
53772
|
+
interface ClaudeManagedEvalOverrideValues {
|
|
53773
|
+
targetType?: 'claude_managed';
|
|
53774
|
+
model?: string;
|
|
53775
|
+
systemPrompt?: string;
|
|
53776
|
+
toolPermissions?: {
|
|
53777
|
+
bash?: boolean;
|
|
53778
|
+
read?: boolean;
|
|
53779
|
+
write?: boolean;
|
|
53780
|
+
edit?: boolean;
|
|
53781
|
+
glob?: boolean;
|
|
53782
|
+
grep?: boolean;
|
|
53783
|
+
webFetch?: boolean;
|
|
53784
|
+
webSearch?: boolean;
|
|
53785
|
+
};
|
|
53786
|
+
}
|
|
52903
53787
|
/**
|
|
52904
53788
|
* Eval endpoint handlers
|
|
52905
53789
|
*/
|
|
@@ -52912,8 +53796,13 @@ declare class EvalEndpoint {
|
|
|
52912
53796
|
*
|
|
52913
53797
|
* Targets are mutually exclusive — provide exactly one of `flowId`,
|
|
52914
53798
|
* `flowDefinition`, or `agentId`. The `agentId` form targets a
|
|
52915
|
-
* `claude_managed` agent; combine with per-config
|
|
52916
|
-
* to vary model / system prompt / tool
|
|
53799
|
+
* `claude_managed` agent; combine with per-config
|
|
53800
|
+
* `overrides.claudeManaged` to vary model / system prompt / tool
|
|
53801
|
+
* permissions across configs.
|
|
53802
|
+
*
|
|
53803
|
+
* Override intent goes in `overrides`. Set one channel per config: pairing
|
|
53804
|
+
* `overrides` with a legacy field it replaces is a 400, because the losing
|
|
53805
|
+
* one would still be recorded and compared.
|
|
52917
53806
|
*/
|
|
52918
53807
|
runVirtualEval(data: {
|
|
52919
53808
|
record?: {
|
|
@@ -52935,27 +53824,30 @@ declare class EvalEndpoint {
|
|
|
52935
53824
|
evalConfigs: Array<{
|
|
52936
53825
|
evalConfigId?: string;
|
|
52937
53826
|
evalName?: string;
|
|
52938
|
-
stepOverrides?: Record<string, any>;
|
|
52939
53827
|
/**
|
|
52940
|
-
*
|
|
52941
|
-
* `claude_managed` agent. Mirrors `ClaudeManagedEvalOverride` from
|
|
53828
|
+
* The canonical override field. Mirrors `ResolvedEvalOverrides` from
|
|
52942
53829
|
* `@runtypelabs/shared` — defined inline here to keep the SDK
|
|
52943
53830
|
* dependency-free.
|
|
53831
|
+
*
|
|
53832
|
+
* `flow` (or `agent`, on an agent target) applies to every prompt step
|
|
53833
|
+
* of the unit under test; `steps` names one step and beats it field by
|
|
53834
|
+
* field. `subagents` is keyed by agentId and matches wherever that agent
|
|
53835
|
+
* runs, at ANY depth, with `subagentDefaults` covering the rest. A step
|
|
53836
|
+
* id or agentId the target does not have is a 400 rather than a
|
|
53837
|
+
* silently-compared no-op.
|
|
52944
53838
|
*/
|
|
52945
|
-
|
|
52946
|
-
|
|
52947
|
-
|
|
52948
|
-
|
|
52949
|
-
|
|
52950
|
-
|
|
52951
|
-
|
|
52952
|
-
|
|
52953
|
-
|
|
52954
|
-
|
|
52955
|
-
|
|
52956
|
-
|
|
52957
|
-
webSearch?: boolean;
|
|
52958
|
-
};
|
|
53839
|
+
overrides?: {
|
|
53840
|
+
agent?: EvalOverrideValues;
|
|
53841
|
+
flow?: EvalOverrideValues;
|
|
53842
|
+
steps?: Record<string, EvalOverrideValues>;
|
|
53843
|
+
subagents?: Record<string, EvalOverrideValues>;
|
|
53844
|
+
subagentDefaults?: EvalOverrideValues;
|
|
53845
|
+
claudeManaged?: ClaudeManagedEvalOverrideValues;
|
|
53846
|
+
/** `null` disables the advisor; omitting it leaves the target's own config alone. */
|
|
53847
|
+
advisor?: {
|
|
53848
|
+
model: string;
|
|
53849
|
+
systemPrompt?: string;
|
|
53850
|
+
} | null;
|
|
52959
53851
|
};
|
|
52960
53852
|
}>;
|
|
52961
53853
|
evalGroupId?: string;
|
|
@@ -56431,4 +57323,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
56431
57323
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
56432
57324
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
56433
57325
|
|
|
56434
|
-
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|
|
57326
|
+
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|