@runtypelabs/sdk 6.6.3 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -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";
@@ -6824,14 +6826,16 @@ interface paths {
6824
6826
  };
6825
6827
  /**
6826
6828
  * List the visitor's own conversations
6827
- * @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.
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.
6828
6830
  */
6829
6831
  get: {
6830
6832
  parameters: {
6831
6833
  query: {
6832
6834
  /** @description Client session id from /client/init. */
6833
6835
  sessionId: string;
6834
- /** @description Only return conversations for this flow or agent id. */
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. */
6835
6839
  flowId?: string;
6836
6840
  /** @description Opaque cursor returned as `nextCursor` by a previous page. Omit for the first page. */
6837
6841
  cursor?: string;
@@ -6860,12 +6864,16 @@ interface paths {
6860
6864
  data: {
6861
6865
  /** @description ISO-8601 timestamp of the first turn, i.e. when the conversation was created. */
6862
6866
  createdAt: string;
6863
- /** @description The flow or agent this conversation ran against. Null for a conversation stored without one. */
6867
+ /** @description Deprecated alias of `targetId`, carrying the same value. Retained for clients written before the rename; read `targetId` instead. */
6864
6868
  flowId: string | null;
6865
6869
  /** @description Conversation id. */
6866
6870
  id: string;
6867
6871
  /** @description Number of stored messages. Falls back to the length of the stored transcript when the conversation predates the counter. */
6868
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;
6869
6877
  /** @description Display title. Uses a timestamp fallback unless conversation-title generation is enabled and produces a title from the opening exchange. */
6870
6878
  title: string;
6871
6879
  /** @description ISO-8601 timestamp of the most recent write. Sort key for "resume where I left off" in a widget. */
@@ -6876,7 +6884,7 @@ interface paths {
6876
6884
  };
6877
6885
  };
6878
6886
  };
6879
- /** @description Missing or malformed `sessionId`, or an undecodable `cursor` */
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`) */
6880
6888
  400: {
6881
6889
  headers: {
6882
6890
  [name: string]: unknown;
@@ -6921,19 +6929,32 @@ interface paths {
6921
6929
  "application/json": components["schemas"]["Error"];
6922
6930
  };
6923
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
+ };
6924
6941
  };
6925
6942
  };
6926
6943
  put?: never;
6927
6944
  post?: never;
6928
6945
  /**
6929
6946
  * Delete all of the visitor's own conversations
6930
- * @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.
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.
6931
6948
  */
6932
6949
  delete: {
6933
6950
  parameters: {
6934
6951
  query: {
6935
6952
  /** @description Client session id from /client/init. */
6936
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;
6937
6958
  };
6938
6959
  header: {
6939
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`. */
@@ -6946,7 +6967,7 @@ interface paths {
6946
6967
  };
6947
6968
  requestBody?: never;
6948
6969
  responses: {
6949
- /** @description Deleted. `deleted` counts the rows removed and is 0 when the visitor had no history. */
6970
+ /** @description Deleted. `deleted` counts the rows removed and is 0 when the visitor had no history in scope. */
6950
6971
  200: {
6951
6972
  headers: {
6952
6973
  [name: string]: unknown;
@@ -6958,7 +6979,7 @@ interface paths {
6958
6979
  };
6959
6980
  };
6960
6981
  };
6961
- /** @description Missing or malformed `sessionId` */
6982
+ /** @description Missing or malformed `sessionId`, `targetId` or `flowId` supplied empty (`invalid_target_filter`), or the two supplied with different values (`conflicting_target_filter`) */
6962
6983
  400: {
6963
6984
  headers: {
6964
6985
  [name: string]: unknown;
@@ -7003,6 +7024,15 @@ interface paths {
7003
7024
  "application/json": components["schemas"]["Error"];
7004
7025
  };
7005
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
+ };
7006
7036
  };
7007
7037
  };
7008
7038
  options?: never;
@@ -7019,7 +7049,7 @@ interface paths {
7019
7049
  };
7020
7050
  /**
7021
7051
  * Read one of the visitor's own conversations
7022
- * @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.
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.
7023
7053
  */
7024
7054
  get: {
7025
7055
  parameters: {
@@ -7052,9 +7082,11 @@ interface paths {
7052
7082
  };
7053
7083
  content: {
7054
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;
7055
7087
  /** @description ISO-8601 timestamp of the first turn, i.e. when the conversation was created. */
7056
7088
  createdAt: string;
7057
- /** @description The flow or agent this conversation ran against. Null for a conversation stored without one. */
7089
+ /** @description Deprecated alias of `targetId`, carrying the same value. Retained for clients written before the rename; read `targetId` instead. */
7058
7090
  flowId: string | null;
7059
7091
  /** @description Conversation id. */
7060
7092
  id: string;
@@ -7062,8 +7094,12 @@ interface paths {
7062
7094
  messageCount: number;
7063
7095
  /** @description The stored transcript, oldest first. Renderable fields only: tool invocations and other execution internals are not exposed here. */
7064
7096
  messages: {
7065
- /** @description Message content exactly as stored: a plain string, or an array of multi-modal content parts. Absent on a stored message that carried no content. */
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. */
7066
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;
7067
7103
  /** @description Client-supplied or server-minted message id. */
7068
7104
  id: string;
7069
7105
  /** @description Message author, typically 'user' or 'assistant'. */
@@ -7073,6 +7109,10 @@ interface paths {
7073
7109
  }[];
7074
7110
  /** @description Opaque cursor for the next older message page, or null when the beginning is reached. */
7075
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;
7076
7116
  /** @description Display title. Uses a timestamp fallback unless conversation-title generation is enabled and produces a title from the opening exchange. */
7077
7117
  title: string;
7078
7118
  /** @description ISO-8601 timestamp of the most recent write. Sort key for "resume where I left off" in a widget. */
@@ -7134,13 +7174,22 @@ interface paths {
7134
7174
  "application/json": components["schemas"]["Error"];
7135
7175
  };
7136
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
+ };
7137
7186
  };
7138
7187
  };
7139
7188
  put?: never;
7140
7189
  post?: never;
7141
7190
  /**
7142
7191
  * Delete one of the visitor's own conversations
7143
- * @description Permanently delete a conversation and its stored transcript. Answers 404 (never 403) for a conversation the caller does not own.
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.
7144
7193
  */
7145
7194
  delete: {
7146
7195
  parameters: {
@@ -7228,6 +7277,15 @@ interface paths {
7228
7277
  "application/json": components["schemas"]["Error"];
7229
7278
  };
7230
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
+ };
7231
7289
  };
7232
7290
  };
7233
7291
  options?: never;
@@ -7235,6 +7293,134 @@ interface paths {
7235
7293
  patch?: never;
7236
7294
  trace?: never;
7237
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
+ };
7238
7424
  "/v1/client/feedback": {
7239
7425
  parameters: {
7240
7426
  query?: never;
@@ -7427,9 +7613,13 @@ interface paths {
7427
7613
  /** @description Opening message to render before the visitor's first turn. Null when the client token sets none. */
7428
7614
  welcomeMessage: string | null;
7429
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;
7430
7620
  /** @description ISO-8601 session idle-expiry timestamp. */
7431
7621
  expiresAt: string;
7432
- /** @description Resolved flow or agent for this session. Present on every response except the data-only Runtype App branch, which returns `app` instead. */
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. */
7433
7623
  flow?: {
7434
7624
  /** @description Flow description, null when the flow has none. Flow sessions only. */
7435
7625
  description?: string | null;
@@ -7440,6 +7630,8 @@ interface paths {
7440
7630
  };
7441
7631
  /** @description The created (or resumed) client session ID. */
7442
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;
7443
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. */
7444
7636
  visitor?: {
7445
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. */
@@ -7448,6 +7640,11 @@ interface paths {
7448
7640
  expiresAt: string;
7449
7641
  /** @description Durable anonymous visitor id (`cvis_…`). */
7450
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";
7451
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. */
7452
7649
  token?: string;
7453
7650
  };
@@ -7679,7 +7876,7 @@ interface paths {
7679
7876
  put?: never;
7680
7877
  /**
7681
7878
  * Reset the current browser visitor
7682
- * @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.
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.
7683
7880
  */
7684
7881
  post: {
7685
7882
  parameters: {
@@ -7756,6 +7953,15 @@ interface paths {
7756
7953
  "application/json": components["schemas"]["Error"];
7757
7954
  };
7758
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
+ };
7759
7965
  };
7760
7966
  };
7761
7967
  delete?: never;
@@ -10806,6 +11012,7 @@ interface paths {
10806
11012
  localInference?: {
10807
11013
  /** @enum {string} */
10808
11014
  backend: "ollama";
11015
+ capabilityRevision?: string;
10809
11016
  model: string;
10810
11017
  /** Format: uuid */
10811
11018
  sessionId: string;
@@ -11170,6 +11377,7 @@ interface paths {
11170
11377
  localInference?: {
11171
11378
  /** @enum {string} */
11172
11379
  backend: "ollama";
11380
+ capabilityRevision?: string;
11173
11381
  model: string;
11174
11382
  /** Format: uuid */
11175
11383
  sessionId: string;
@@ -13543,6 +13751,8 @@ interface paths {
13543
13751
  requestBody?: {
13544
13752
  content: {
13545
13753
  "application/json": {
13754
+ evalConfigs?: components["schemas"]["EvalConfigRequest"][];
13755
+ } & {
13546
13756
  [key: string]: unknown;
13547
13757
  };
13548
13758
  };
@@ -13633,6 +13843,9 @@ interface paths {
13633
13843
  requestBody?: {
13634
13844
  content: {
13635
13845
  "application/json": {
13846
+ evalConfig?: components["schemas"]["EvalConfigRequest"];
13847
+ evalConfigs?: components["schemas"]["EvalConfigRequest"][];
13848
+ } & {
13636
13849
  [key: string]: unknown;
13637
13850
  };
13638
13851
  };
@@ -28006,6 +28219,16 @@ interface paths {
28006
28219
  status: string;
28007
28220
  type: string;
28008
28221
  updatedAt: string;
28222
+ /** @description Advisory findings about this surface configuration. Present only when non-empty; never blocks the mutation. */
28223
+ warnings?: {
28224
+ /** @description Stable advisory code, e.g. `MODEL_NOT_ENABLED` when `behavior.conversationTitles.model` names a model this account cannot run. */
28225
+ code: string;
28226
+ message: string;
28227
+ path: string;
28228
+ /** @enum {string} */
28229
+ severity: "warning" | "recommendation";
28230
+ suggestedFix?: string;
28231
+ }[];
28009
28232
  webhookHealth: components["schemas"]["WebhookHealth"];
28010
28233
  };
28011
28234
  };
@@ -28465,6 +28688,16 @@ interface paths {
28465
28688
  status: string;
28466
28689
  type: string;
28467
28690
  updatedAt: string;
28691
+ /** @description Advisory findings about this surface configuration. Present only when non-empty; never blocks the mutation. */
28692
+ warnings?: {
28693
+ /** @description Stable advisory code, e.g. `MODEL_NOT_ENABLED` when `behavior.conversationTitles.model` names a model this account cannot run. */
28694
+ code: string;
28695
+ message: string;
28696
+ path: string;
28697
+ /** @enum {string} */
28698
+ severity: "warning" | "recommendation";
28699
+ suggestedFix?: string;
28700
+ }[];
28468
28701
  webhookHealth: components["schemas"]["WebhookHealth"];
28469
28702
  };
28470
28703
  };
@@ -44257,6 +44490,13 @@ interface components {
44257
44490
  model: string;
44258
44491
  proposals: components["schemas"]["EvalCaseProposal"][];
44259
44492
  };
44493
+ EvalConfigRequest: {
44494
+ evalConfigId?: string;
44495
+ evalName?: string;
44496
+ overrides?: components["schemas"]["EvalOverrides"];
44497
+ } & {
44498
+ [key: string]: unknown;
44499
+ };
44260
44500
  EvalCoverage: {
44261
44501
  definitionHash: string;
44262
44502
  instructions: {
@@ -44294,6 +44534,39 @@ interface components {
44294
44534
  /** @enum {string} */
44295
44535
  result: "definitionRequired";
44296
44536
  };
44537
+ /** @description Canonical eval override field. Replaces `stepOverrides` (and its `"*"` key), `claudeManagedOverride` and `advisorOverride`; setting both spellings of one channel is a 400. */
44538
+ EvalOverrides: {
44539
+ /** @description Advisor override for agent capabilities. `null` disables the advisor; omitting it leaves the target’s own config alone. */
44540
+ advisor?: ({
44541
+ model: string;
44542
+ systemPrompt?: string;
44543
+ } & {
44544
+ [key: string]: unknown;
44545
+ }) | null;
44546
+ agent?: components["schemas"]["EvalStepOverrideValues"];
44547
+ /** @description Claude Managed variant override. Valid only on a claude_managed agent target; rejected on a standard agent rather than silently ignored. */
44548
+ claudeManaged?: {
44549
+ model?: string;
44550
+ systemPrompt?: string;
44551
+ toolPermissions?: {
44552
+ [key: string]: boolean;
44553
+ };
44554
+ } & {
44555
+ [key: string]: unknown;
44556
+ };
44557
+ flow?: components["schemas"]["EvalStepOverrideValues"] & unknown;
44558
+ /** @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. */
44559
+ steps?: {
44560
+ [key: string]: components["schemas"]["EvalStepOverrideValues"] & unknown;
44561
+ };
44562
+ subagentDefaults?: components["schemas"]["EvalStepOverrideValues"] & unknown;
44563
+ /** @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. */
44564
+ subagents?: {
44565
+ [key: string]: components["schemas"]["EvalStepOverrideValues"] & unknown;
44566
+ };
44567
+ } & {
44568
+ [key: string]: unknown;
44569
+ };
44297
44570
  EvalPullResponse: {
44298
44571
  contentHash: string;
44299
44572
  definition: {
@@ -44416,6 +44689,23 @@ interface components {
44416
44689
  humanVerdict: "agree" | "disagree" | null;
44417
44690
  scoreId: string;
44418
44691
  };
44692
+ /** @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. */
44693
+ EvalStepOverrideValues: {
44694
+ frequencyPenalty?: number;
44695
+ maxTokens?: number;
44696
+ model?: string;
44697
+ presencePenalty?: number;
44698
+ reasoning?: unknown;
44699
+ /** @enum {string} */
44700
+ responseFormat?: "default" | "json" | "markdown" | "html" | "xml";
44701
+ seed?: number;
44702
+ temperature?: number;
44703
+ tools?: unknown;
44704
+ topK?: number;
44705
+ topP?: number;
44706
+ } & {
44707
+ [key: string]: unknown;
44708
+ };
44419
44709
  EvalSuiteDetail: {
44420
44710
  agentId: string | null;
44421
44711
  baselineBatchExecutionId: string | null;
@@ -44550,6 +44840,7 @@ interface components {
44550
44840
  /** @enum {string} */
44551
44841
  kind: "agent" | "flow";
44552
44842
  seq: number;
44843
+ stepErrorCount?: number;
44553
44844
  stopReason?: string;
44554
44845
  success: boolean;
44555
44846
  successfulSteps?: number;
@@ -44957,6 +45248,10 @@ interface components {
44957
45248
  url?: string;
44958
45249
  };
44959
45250
  executionId: string;
45251
+ externalAgent?: {
45252
+ contextId?: string;
45253
+ taskId?: string;
45254
+ };
44960
45255
  /** @enum {string} */
44961
45256
  origin?: "webmcp" | "sdk";
44962
45257
  pageOrigin?: string;
@@ -53475,6 +53770,45 @@ declare class ToolsEndpoint {
53475
53770
  */
53476
53771
  cleanupCfSandbox(sandboxId: string): Promise<void>;
53477
53772
  }
53773
+ /**
53774
+ * Sampling/model/tool values applied to one eval override target.
53775
+ *
53776
+ * Structurally `StepOverride` from `@runtypelabs/shared`, restated here to
53777
+ * keep the SDK dependency-free. `tools` stays `any` for the same reason: its
53778
+ * full shape pulls in the runtime-tool types.
53779
+ */
53780
+ interface EvalOverrideValues {
53781
+ model?: string;
53782
+ temperature?: number;
53783
+ maxTokens?: number;
53784
+ topP?: number;
53785
+ topK?: number;
53786
+ frequencyPenalty?: number;
53787
+ presencePenalty?: number;
53788
+ seed?: number;
53789
+ responseFormat?: 'default' | 'json' | 'markdown' | 'html' | 'xml';
53790
+ reasoning?: any;
53791
+ tools?: any;
53792
+ }
53793
+ /**
53794
+ * Claude Managed variant override. Mirrors `ClaudeManagedEvalOverride` from
53795
+ * `@runtypelabs/shared`.
53796
+ */
53797
+ interface ClaudeManagedEvalOverrideValues {
53798
+ targetType?: 'claude_managed';
53799
+ model?: string;
53800
+ systemPrompt?: string;
53801
+ toolPermissions?: {
53802
+ bash?: boolean;
53803
+ read?: boolean;
53804
+ write?: boolean;
53805
+ edit?: boolean;
53806
+ glob?: boolean;
53807
+ grep?: boolean;
53808
+ webFetch?: boolean;
53809
+ webSearch?: boolean;
53810
+ };
53811
+ }
53478
53812
  /**
53479
53813
  * Eval endpoint handlers
53480
53814
  */
@@ -53487,8 +53821,13 @@ declare class EvalEndpoint {
53487
53821
  *
53488
53822
  * Targets are mutually exclusive — provide exactly one of `flowId`,
53489
53823
  * `flowDefinition`, or `agentId`. The `agentId` form targets a
53490
- * `claude_managed` agent; combine with per-config `claudeManagedOverride`
53491
- * to vary model / system prompt / tool permissions across configs.
53824
+ * `claude_managed` agent; combine with per-config
53825
+ * `overrides.claudeManaged` to vary model / system prompt / tool
53826
+ * permissions across configs.
53827
+ *
53828
+ * Override intent goes in `overrides`. Set one channel per config: pairing
53829
+ * `overrides` with a legacy field it replaces is a 400, because the losing
53830
+ * one would still be recorded and compared.
53492
53831
  */
53493
53832
  runVirtualEval(data: {
53494
53833
  record?: {
@@ -53510,27 +53849,30 @@ declare class EvalEndpoint {
53510
53849
  evalConfigs: Array<{
53511
53850
  evalConfigId?: string;
53512
53851
  evalName?: string;
53513
- stepOverrides?: Record<string, any>;
53514
53852
  /**
53515
- * Per-config override applied when the eval target is a
53516
- * `claude_managed` agent. Mirrors `ClaudeManagedEvalOverride` from
53853
+ * The canonical override field. Mirrors `ResolvedEvalOverrides` from
53517
53854
  * `@runtypelabs/shared` — defined inline here to keep the SDK
53518
53855
  * dependency-free.
53856
+ *
53857
+ * `flow` (or `agent`, on an agent target) applies to every prompt step
53858
+ * of the unit under test; `steps` names one step and beats it field by
53859
+ * field. `subagents` is keyed by agentId and matches wherever that agent
53860
+ * runs, at ANY depth, with `subagentDefaults` covering the rest. A step
53861
+ * id or agentId the target does not have is a 400 rather than a
53862
+ * silently-compared no-op.
53519
53863
  */
53520
- claudeManagedOverride?: {
53521
- targetType?: 'claude_managed';
53522
- model?: string;
53523
- systemPrompt?: string;
53524
- toolPermissions?: {
53525
- bash?: boolean;
53526
- read?: boolean;
53527
- write?: boolean;
53528
- edit?: boolean;
53529
- glob?: boolean;
53530
- grep?: boolean;
53531
- webFetch?: boolean;
53532
- webSearch?: boolean;
53533
- };
53864
+ overrides?: {
53865
+ agent?: EvalOverrideValues;
53866
+ flow?: EvalOverrideValues;
53867
+ steps?: Record<string, EvalOverrideValues>;
53868
+ subagents?: Record<string, EvalOverrideValues>;
53869
+ subagentDefaults?: EvalOverrideValues;
53870
+ claudeManaged?: ClaudeManagedEvalOverrideValues;
53871
+ /** `null` disables the advisor; omitting it leaves the target's own config alone. */
53872
+ advisor?: {
53873
+ model: string;
53874
+ systemPrompt?: string;
53875
+ } | null;
53534
53876
  };
53535
53877
  }>;
53536
53878
  evalGroupId?: string;
@@ -53780,8 +54122,9 @@ interface AgentMediaEvent extends BaseAgentEvent {
53780
54122
  }>;
53781
54123
  }
53782
54124
  /**
53783
- * A2A 0.3.0 conversation handle surfaced on `agent_complete` and
53784
- * `agent_approval_start` events for external-mode agents.
54125
+ * A2A conversation handle surfaced on `agent_complete`, `agent_approval_start`,
54126
+ * and `agent_await` events for external-mode agents. Carried under both
54127
+ * negotiated A2A dialects (0.3 and 1.0).
53785
54128
  *
53786
54129
  * Local SDK copy of `ExternalAgentContext` from `@runtypelabs/shared`'s
53787
54130
  * `sse-parser.ts`. The SDK has zero production dependencies and
@@ -53793,6 +54136,58 @@ interface ExternalAgentContext {
53793
54136
  contextId?: string;
53794
54137
  taskId?: string;
53795
54138
  }
54139
+ /**
54140
+ * One request inside a multi-request MCP elicitation. Present only when a
54141
+ * single `input_required` result carried more than one embedded request; the
54142
+ * answer must be returned under the same `name`.
54143
+ *
54144
+ * Server-controlled, display-only text — never a control signal.
54145
+ */
54146
+ interface AgentElicitationRequest {
54147
+ name: string;
54148
+ mode: 'form' | 'url';
54149
+ message: string;
54150
+ requestedSchema?: Record<string, unknown>;
54151
+ url?: string;
54152
+ }
54153
+ /**
54154
+ * The peer's question on a pause that elicits the HUMAN rather than asking the
54155
+ * client to run a tool: an MCP server eliciting mid `tools/call`
54156
+ * (`awaitReason: 'mcp_elicitation'`), or an external A2A agent replying
54157
+ * `input-required` / `auth-required` (`a2a_input_required` /
54158
+ * `a2a_auth_required`). Both ride this one payload so a client that already
54159
+ * renders an elicitation prompt renders either unchanged.
54160
+ *
54161
+ * Peer-controlled, display-only. Render it; never branch program logic on its
54162
+ * content.
54163
+ *
54164
+ * Local SDK copy of `unifiedElicitationSchema` from `@runtypelabs/shared`'s
54165
+ * `unified-sse-event-schemas.ts`. The SDK has zero production dependencies and
54166
+ * re-derives wire types by design (Phase 9). Keep the shape identical.
54167
+ */
54168
+ interface AgentElicitation {
54169
+ /** `form` answers with text; `url` sends the human to {@link url} first. */
54170
+ mode: 'form' | 'url';
54171
+ message: string;
54172
+ /** JSON Schema for a `form`-mode answer. */
54173
+ requestedSchema?: Record<string, unknown>;
54174
+ /** The destination for a `url`-mode elicitation (auth / consent). */
54175
+ url?: string;
54176
+ /** The MCP server, or the external agent's name for an A2A pause. */
54177
+ serverName?: string;
54178
+ /**
54179
+ * Cumulative pauses this logical tool call has taken, including this one. A
54180
+ * resuming client must echo it back so the per-call pause cap binds across
54181
+ * re-issue cycles.
54182
+ */
54183
+ pauseCount?: number;
54184
+ /**
54185
+ * Present only when one result carried MORE than one embedded request. The
54186
+ * top-level fields always mirror `requests[0]`, so a client unaware of this
54187
+ * field degrades to answering one request per pause.
54188
+ */
54189
+ requests?: AgentElicitationRequest[];
54190
+ }
53796
54191
  /**
53797
54192
  * Agent approval start event — execution paused waiting for user approval.
53798
54193
  */
@@ -53908,6 +54303,9 @@ interface AgentPingEvent extends BaseAgentEvent {
53908
54303
  }
53909
54304
  /**
53910
54305
  * API-emitted agent await event for local tools that must execute on the client.
54306
+ * Also carries A2A external-agent elicitations (`a2a_input_required` /
54307
+ * `a2a_auth_required`) so a paused conversation's resume handles survive the
54308
+ * SDK boundary.
53911
54309
  */
53912
54310
  interface AgentPausedEvent extends BaseAgentEvent {
53913
54311
  type: 'agent_await';
@@ -53920,6 +54318,12 @@ interface AgentPausedEvent extends BaseAgentEvent {
53920
54318
  origin?: 'webmcp' | 'sdk';
53921
54319
  /** `window.location.origin` of the page that registered a WebMCP tool. */
53922
54320
  pageOrigin?: string;
54321
+ /** Why the run paused. UX context only — never a control signal. */
54322
+ awaitReason?: string;
54323
+ /** The peer's question for an elicitation-of-the-user pause (A2A / MCP). */
54324
+ elicitation?: AgentElicitation;
54325
+ /** A2A conversation handles for an external-agent pause; resume uses these. */
54326
+ externalAgent?: ExternalAgentContext;
53923
54327
  }
53924
54328
  /**
53925
54329
  * Synthetic SDK event fired when client-side local tool execution begins.
@@ -57006,4 +57410,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
57006
57410
  declare function getDefaultPlanPath(taskName: string): string;
57007
57411
  declare function sanitizeTaskSlug(taskName: string): string;
57008
57412
 
57009
- 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 };
57413
+ export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, 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 };