@runtypelabs/sdk 10.9.0 → 10.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2080,21 +2080,6 @@ var AgentAliasNotFoundError = class extends Error {
2080
2080
  this.agentId = body.agentId;
2081
2081
  }
2082
2082
  };
2083
- /**
2084
- * A new preview pointer refused by the active-preview quota (HTTP 429). Archive
2085
- * a preview you no longer need — archiving frees the quota immediately — or wait
2086
- * for one to expire. `live` is never counted.
2087
- */
2088
- var AgentAliasPreviewLimitError = class extends Error {
2089
- constructor(body) {
2090
- super(body.error ?? `This ${body.scope} already has ${body.limit} active preview aliases, the maximum.`);
2091
- this.code = "PREVIEW_ALIAS_LIMIT";
2092
- this.name = "AgentAliasPreviewLimitError";
2093
- this.scope = body.scope;
2094
- this.limit = body.limit;
2095
- this.active = body.active;
2096
- }
2097
- };
2098
2083
  /** A version whose named references no longer resolve in this account (HTTP 422). */
2099
2084
  var AgentAliasDependencyError = class extends Error {
2100
2085
  constructor(body) {
@@ -2163,12 +2148,6 @@ function toAliasError(err, agentId, alias) {
2163
2148
  alias: asString$1(body.alias, alias),
2164
2149
  agentId: asString$1(body.agentId, agentId)
2165
2150
  });
2166
- if (status === 429 && body?.code === "PREVIEW_ALIAS_LIMIT") return new AgentAliasPreviewLimitError({
2167
- ...error !== void 0 ? { error } : {},
2168
- scope: body.scope === "organization" ? "organization" : "agent",
2169
- limit: typeof body.limit === "number" ? body.limit : 0,
2170
- active: typeof body.active === "number" ? body.active : 0
2171
- });
2172
2151
  if (status === 422 && body?.code === "alias_dependency_unresolved") return new AgentAliasDependencyError({
2173
2152
  ...error !== void 0 ? { error } : {},
2174
2153
  refs: Array.isArray(body.refs) ? body.refs.filter((ref) => typeof ref === "string") : []
@@ -2179,8 +2158,7 @@ const TYPED_ALIAS_ERRORS = [
2179
2158
  AgentAliasRevisionMismatchError,
2180
2159
  AgentAliasRevisionRequiredError,
2181
2160
  AgentAliasNotFoundError,
2182
- AgentAliasDependencyError,
2183
- AgentAliasPreviewLimitError
2161
+ AgentAliasDependencyError
2184
2162
  ];
2185
2163
  /** The refusal code, when this is one of the typed alias errors. */
2186
2164
  function agentAliasErrorCode(err) {
@@ -14299,7 +14277,7 @@ function transformQueryParams(params) {
14299
14277
  }
14300
14278
  //#endregion
14301
14279
  //#region src/version.ts
14302
- const SDK_VERSION = "10.9.0";
14280
+ const SDK_VERSION = "10.11.1";
14303
14281
  /**
14304
14282
  * Canonical client identity the API uses for attribution
14305
14283
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
@@ -16490,7 +16468,6 @@ const STEP_TYPE_TO_METHOD = {
16490
16468
  //#endregion
16491
16469
  exports.AgentAliasDependencyError = AgentAliasDependencyError;
16492
16470
  exports.AgentAliasNotFoundError = AgentAliasNotFoundError;
16493
- exports.AgentAliasPreviewLimitError = AgentAliasPreviewLimitError;
16494
16471
  exports.AgentAliasRevisionMismatchError = AgentAliasRevisionMismatchError;
16495
16472
  exports.AgentAliasRevisionRequiredError = AgentAliasRevisionRequiredError;
16496
16473
  exports.AgentAliasesNamespace = AgentAliasesNamespace;
package/dist/index.d.cts CHANGED
@@ -1047,7 +1047,7 @@ interface paths {
1047
1047
  enabled: boolean;
1048
1048
  includeThoughts?: boolean;
1049
1049
  /** @enum {string} */
1050
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1050
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1051
1051
  /** @enum {string} */
1052
1052
  reasoningSummary?: "auto" | "detailed";
1053
1053
  thinkingBudget?: number;
@@ -1301,7 +1301,7 @@ interface paths {
1301
1301
  enabled: boolean;
1302
1302
  includeThoughts?: boolean;
1303
1303
  /** @enum {string} */
1304
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1304
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1305
1305
  /** @enum {string} */
1306
1306
  reasoningSummary?: "auto" | "detailed";
1307
1307
  thinkingBudget?: number;
@@ -1575,7 +1575,7 @@ interface paths {
1575
1575
  enabled: boolean;
1576
1576
  includeThoughts?: boolean;
1577
1577
  /** @enum {string} */
1578
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1578
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1579
1579
  /** @enum {string} */
1580
1580
  reasoningSummary?: "auto" | "detailed";
1581
1581
  thinkingBudget?: number;
@@ -1853,15 +1853,6 @@ interface paths {
1853
1853
  "application/json": components["schemas"]["AgentEnsureHashMismatch"];
1854
1854
  };
1855
1855
  };
1856
- /** @description Active preview alias quota exceeded for the organization or the agent (code PREVIEW_ALIAS_LIMIT). Archive a preview alias and retry. */
1857
- 429: {
1858
- headers: {
1859
- [name: string]: unknown;
1860
- };
1861
- content: {
1862
- "application/json": components["schemas"]["AgentEnsurePreviewAliasLimit"];
1863
- };
1864
- };
1865
1856
  /** @description Internal server error, or code alias_activation_failed when a non-live activation could not be applied (nothing was written) */
1866
1857
  500: {
1867
1858
  headers: {
@@ -2379,7 +2370,7 @@ interface paths {
2379
2370
  enabled: boolean;
2380
2371
  includeThoughts?: boolean;
2381
2372
  /** @enum {string} */
2382
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
2373
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2383
2374
  /** @enum {string} */
2384
2375
  reasoningSummary?: "auto" | "detailed";
2385
2376
  thinkingBudget?: number;
@@ -2633,7 +2624,7 @@ interface paths {
2633
2624
  enabled: boolean;
2634
2625
  includeThoughts?: boolean;
2635
2626
  /** @enum {string} */
2636
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
2627
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2637
2628
  /** @enum {string} */
2638
2629
  reasoningSummary?: "auto" | "detailed";
2639
2630
  thinkingBudget?: number;
@@ -3063,7 +3054,7 @@ interface paths {
3063
3054
  };
3064
3055
  /**
3065
3056
  * Activate a version at a release alias
3066
- * @description Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision; preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first, and an unresolvable reference refuses the activation. Activating a preview alias renews its 14-day expiry; `live` never expires. Creating a new preview alias past the active-preview quota answers 429 with code PREVIEW_ALIAS_LIMIT.
3057
+ * @description Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision; preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first, and an unresolvable reference refuses the activation. Activating a preview alias renews its 14-day expiry; `live` never expires.
3067
3058
  */
3068
3059
  put: {
3069
3060
  parameters: {
@@ -3098,14 +3089,10 @@ interface paths {
3098
3089
  };
3099
3090
  content: {
3100
3091
  "application/json": {
3101
- /** @description How many preview aliases this agent has active after the write. Null for `live`, which is never counted. Read it beside `previewLimit` to see a per-pull-request pipeline filling up before an activation is refused with PREVIEW_ALIAS_LIMIT. */
3102
- activePreviewCount: number | null;
3103
3092
  alias: string;
3104
3093
  /** @description Per-alias secret binding names in force after this activation. Names only, never values. */
3105
3094
  bindingNames: string[];
3106
3095
  changed: boolean;
3107
- /** @description The active-preview ceiling this agent is counted against. Null for `live`. */
3108
- previewLimit: number | null;
3109
3096
  receiptId: string;
3110
3097
  revision: number;
3111
3098
  versionId: string;
@@ -3197,15 +3184,6 @@ interface paths {
3197
3184
  "application/json": components["schemas"]["Error"];
3198
3185
  };
3199
3186
  };
3200
- /** @description Active preview alias quota exceeded for the organization or the agent */
3201
- 429: {
3202
- headers: {
3203
- [name: string]: unknown;
3204
- };
3205
- content: {
3206
- "application/json": components["schemas"]["PreviewAliasLimitError"];
3207
- };
3208
- };
3209
3187
  /** @description Internal server error */
3210
3188
  500: {
3211
3189
  headers: {
@@ -3720,14 +3698,10 @@ interface paths {
3720
3698
  };
3721
3699
  content: {
3722
3700
  "application/json": {
3723
- /** @description How many preview aliases this agent has active after the write. Null for `live`, which is never counted. Read it beside `previewLimit` to see a per-pull-request pipeline filling up before an activation is refused with PREVIEW_ALIAS_LIMIT. */
3724
- activePreviewCount: number | null;
3725
3701
  alias: string;
3726
3702
  /** @description Per-alias secret binding names in force after this activation. Names only, never values. */
3727
3703
  bindingNames: string[];
3728
3704
  changed: boolean;
3729
- /** @description The active-preview ceiling this agent is counted against. Null for `live`. */
3730
- previewLimit: number | null;
3731
3705
  receiptId: string;
3732
3706
  revision: number;
3733
3707
  versionId: string;
@@ -13586,7 +13560,7 @@ interface paths {
13586
13560
  enabled: boolean;
13587
13561
  includeThoughts?: boolean;
13588
13562
  /** @enum {string} */
13589
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
13563
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
13590
13564
  /** @enum {string} */
13591
13565
  reasoningSummary?: "auto" | "detailed";
13592
13566
  thinkingBudget?: number;
@@ -14036,7 +14010,7 @@ interface paths {
14036
14010
  enabled: boolean;
14037
14011
  includeThoughts?: boolean;
14038
14012
  /** @enum {string} */
14039
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
14013
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
14040
14014
  /** @enum {string} */
14041
14015
  reasoningSummary?: "auto" | "detailed";
14042
14016
  thinkingBudget?: number;
@@ -31838,6 +31812,18 @@ interface paths {
31838
31812
  totalCost: string | null;
31839
31813
  /** @description Trace id in the span store; null on a row the control-plane arm served. */
31840
31814
  traceId: string | null;
31815
+ /** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
31816
+ via?: {
31817
+ /** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli) or eval suite id (eval). Null for mcp and test, and for an api run whose header predates key stamping. */
31818
+ id: string | null;
31819
+ /**
31820
+ * @description One word for the way the run started.
31821
+ * @enum {string}
31822
+ */
31823
+ kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
31824
+ /** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
31825
+ label: string | null;
31826
+ } | null;
31841
31827
  }[];
31842
31828
  error?: {
31843
31829
  message: string;
@@ -42555,7 +42541,7 @@ interface paths {
42555
42541
  };
42556
42542
  /**
42557
42543
  * List runs
42558
- * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers `pagination.cursorReset: true`.
42544
+ * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers `pagination.cursorReset: true`. `includeCount=true` adds `pagination.totalCount`, counted up to 1000, and `pagination.totalCountCapped`. Each row carries `via` (schedule | surface | api | mcp | cli | test | eval, with the id and name of the thing that started it) where the entrance stated it; null otherwise.
42559
42545
  */
42560
42546
  get: {
42561
42547
  parameters: {
@@ -42598,6 +42584,8 @@ interface paths {
42598
42584
  limit?: string;
42599
42585
  /** @description Keyset cursor from a previous page. */
42600
42586
  cursor?: string;
42587
+ /** @description "true" adds pagination.totalCount and pagination.totalCountCapped: the number of runs matching this request's filters within its window, ignoring the cursor and limit, counted up to 1000. Past that the count stops at 1000 and totalCountCapped is true, so read it as "more than 1000". Omitted, or any other value, the response carries neither field. */
42588
+ includeCount?: string;
42601
42589
  };
42602
42590
  header?: never;
42603
42591
  path?: never;
@@ -42620,6 +42608,10 @@ interface paths {
42620
42608
  hasPrev: boolean;
42621
42609
  limit: number;
42622
42610
  nextCursor: string | null;
42611
+ /** @description The runs the request's filters match within its window, ignoring the cursor and limit, counted up to 1000. Present only when `includeCount=true`. */
42612
+ totalCount?: number;
42613
+ /** @description True when more than 1000 runs matched, so `totalCount` is the cap rather than the total. Present only when `includeCount=true`. */
42614
+ totalCountCapped?: boolean;
42623
42615
  };
42624
42616
  /** @description The started_at window the query resolved to, after defaults. */
42625
42617
  window: {
@@ -44309,6 +44301,8 @@ interface paths {
44309
44301
  search?: string;
44310
44302
  /** @description Filter by status */
44311
44303
  status?: "active" | "paused";
44304
+ /** @description Only schedules that run this agent */
44305
+ agentId?: string;
44312
44306
  /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
44313
44307
  view?: "full" | "compact";
44314
44308
  };
@@ -44357,7 +44351,7 @@ interface paths {
44357
44351
  };
44358
44352
  };
44359
44353
  };
44360
- /** @description Canonical first page (no cursor/search/status, includeCount=true) is unchanged since the ETag echoed in If-None-Match. No body. */
44354
+ /** @description Canonical first page (no cursor/search/status/agentId, includeCount=true) is unchanged since the ETag echoed in If-None-Match. No body. */
44361
44355
  304: {
44362
44356
  headers: {
44363
44357
  [name: string]: unknown;
@@ -51432,20 +51426,6 @@ interface components {
51432
51426
  contentHash: string;
51433
51427
  error: string;
51434
51428
  };
51435
- AgentEnsurePreviewAliasLimit: {
51436
- active: number;
51437
- /** @enum {string} */
51438
- code: "PREVIEW_ALIAS_LIMIT";
51439
- error: string;
51440
- limit: number;
51441
- /** @description The same remediation sentence as `error`. */
51442
- message: string;
51443
- /**
51444
- * @description Which population was already at its active-preview limit.
51445
- * @enum {string}
51446
- */
51447
- scope: "organization" | "agent";
51448
- };
51449
51429
  AgentEnsureResponse: {
51450
51430
  agentId: string;
51451
51431
  /** @description Present when the request carried capabilities: one row per declared capability, then removals. */
@@ -51604,7 +51584,7 @@ interface components {
51604
51584
  enabled: boolean;
51605
51585
  includeThoughts?: boolean;
51606
51586
  /** @enum {string} */
51607
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
51587
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
51608
51588
  /** @enum {string} */
51609
51589
  reasoningSummary?: "auto" | "detailed";
51610
51590
  thinkingBudget?: number;
@@ -52381,7 +52361,7 @@ interface components {
52381
52361
  enabled: boolean;
52382
52362
  includeThoughts?: boolean;
52383
52363
  /** @enum {string} */
52384
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
52364
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
52385
52365
  /** @enum {string} */
52386
52366
  reasoningSummary?: "auto" | "detailed";
52387
52367
  thinkingBudget?: number;
@@ -54219,15 +54199,6 @@ interface components {
54219
54199
  totalCount?: number;
54220
54200
  totalPages?: number;
54221
54201
  };
54222
- PreviewAliasLimitError: components["schemas"]["Error"] & {
54223
- active: number;
54224
- /** @enum {string} */
54225
- code: "PREVIEW_ALIAS_LIMIT";
54226
- limit: number;
54227
- message: string;
54228
- /** @enum {string} */
54229
- scope: "organization" | "agent";
54230
- };
54231
54202
  ProductCanvasBlock: {
54232
54203
  /** @description When the block was added; set by the server */
54233
54204
  readonly addedAt?: string;
@@ -54778,6 +54749,18 @@ interface components {
54778
54749
  totalCost: string | null;
54779
54750
  /** @description Trace id in the span store; null on a row the control-plane arm served. */
54780
54751
  traceId: string | null;
54752
+ /** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
54753
+ via?: {
54754
+ /** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli) or eval suite id (eval). Null for mcp and test, and for an api run whose header predates key stamping. */
54755
+ id: string | null;
54756
+ /**
54757
+ * @description One word for the way the run started.
54758
+ * @enum {string}
54759
+ */
54760
+ kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
54761
+ /** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
54762
+ label: string | null;
54763
+ } | null;
54781
54764
  };
54782
54765
  RuntimeEmailAdmissionError: {
54783
54766
  code?: string;
@@ -57900,7 +57883,7 @@ export interface ToolsConfig {
57900
57883
  }
57901
57884
  export interface ReasoningConfig {
57902
57885
  enabled: boolean;
57903
- reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
57886
+ reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
57904
57887
  reasoningSummary?: 'auto' | 'detailed';
57905
57888
  budgetTokens?: number;
57906
57889
  /**
@@ -61393,23 +61376,6 @@ export declare class AgentAliasNotFoundError extends Error {
61393
61376
  agentId: string;
61394
61377
  });
61395
61378
  }
61396
- /**
61397
- * A new preview pointer refused by the active-preview quota (HTTP 429). Archive
61398
- * a preview you no longer need — archiving frees the quota immediately — or wait
61399
- * for one to expire. `live` is never counted.
61400
- */
61401
- export declare class AgentAliasPreviewLimitError extends Error {
61402
- readonly code = "PREVIEW_ALIAS_LIMIT";
61403
- readonly scope: 'organization' | 'agent';
61404
- readonly limit: number;
61405
- readonly active: number;
61406
- constructor(body: {
61407
- error?: string;
61408
- scope: 'organization' | 'agent';
61409
- limit: number;
61410
- active: number;
61411
- });
61412
- }
61413
61379
  /** A version whose named references no longer resolve in this account (HTTP 422). */
61414
61380
  export declare class AgentAliasDependencyError extends Error {
61415
61381
  readonly code = "alias_dependency_unresolved";
@@ -61420,7 +61386,7 @@ export declare class AgentAliasDependencyError extends Error {
61420
61386
  });
61421
61387
  }
61422
61388
  /** Every coded refusal the alias plane maps onto a typed error. */
61423
- type TypedAliasError = AgentAliasRevisionMismatchError | AgentAliasRevisionRequiredError | AgentAliasNotFoundError | AgentAliasDependencyError | AgentAliasPreviewLimitError;
61389
+ type TypedAliasError = AgentAliasRevisionMismatchError | AgentAliasRevisionRequiredError | AgentAliasNotFoundError | AgentAliasDependencyError;
61424
61390
  /** The refusal code, when this is one of the typed alias errors. */
61425
61391
  export declare function agentAliasErrorCode(err: unknown): TypedAliasError['code'] | undefined;
61426
61392
  interface ListAgentAliasesOptions {
@@ -62026,6 +61992,18 @@ interface RunListRow {
62026
61992
  * predates the field.
62027
61993
  */
62028
61994
  test: boolean | null;
61995
+ /**
61996
+ * How the run started, for a Via column. Forward-only for schedule, API key,
61997
+ * CLI, MCP and eval detail: a header written before those stamps reads null or
61998
+ * the coarse origin. `mcp`, `cli` and `sdk` are self-declared by the client.
61999
+ */
62000
+ via?: {
62001
+ kind: 'schedule' | 'surface' | 'api' | 'mcp' | 'cli' | 'test' | 'eval';
62002
+ /** Schedule, surface, API key, acting user or eval suite id; null for mcp and test. */
62003
+ id: string | null;
62004
+ /** Its display name when the API could resolve one; null otherwise. */
62005
+ label: string | null;
62006
+ } | null;
62029
62007
  stopReason?: string | null;
62030
62008
  iterations?: number | null;
62031
62009
  /**
@@ -62079,6 +62057,8 @@ interface RunListParams {
62079
62057
  overlay?: 'live' | 'none';
62080
62058
  limit?: number;
62081
62059
  cursor?: string;
62060
+ /** `'true'` adds `pagination.totalCount`, counted up to 1000, and `totalCountCapped`. */
62061
+ includeCount?: 'true' | 'false';
62082
62062
  }
62083
62063
  interface RunListResponse {
62084
62064
  data: RunListRow[];
@@ -62089,6 +62069,10 @@ interface RunListResponse {
62089
62069
  limit: number;
62090
62070
  /** True when the supplied cursor was rejected and the read restarted at page one; stop paging. */
62091
62071
  cursorReset?: boolean;
62072
+ /** Runs the filters match in the window, up to 1000; present only when `includeCount` was `'true'`. */
62073
+ totalCount?: number;
62074
+ /** True when more runs matched than `totalCount` counts, so read it as "more than". */
62075
+ totalCountCapped?: boolean;
62092
62076
  };
62093
62077
  window: {
62094
62078
  from: string;
package/dist/index.d.ts CHANGED
@@ -1047,7 +1047,7 @@ interface paths {
1047
1047
  enabled: boolean;
1048
1048
  includeThoughts?: boolean;
1049
1049
  /** @enum {string} */
1050
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1050
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1051
1051
  /** @enum {string} */
1052
1052
  reasoningSummary?: "auto" | "detailed";
1053
1053
  thinkingBudget?: number;
@@ -1301,7 +1301,7 @@ interface paths {
1301
1301
  enabled: boolean;
1302
1302
  includeThoughts?: boolean;
1303
1303
  /** @enum {string} */
1304
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1304
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1305
1305
  /** @enum {string} */
1306
1306
  reasoningSummary?: "auto" | "detailed";
1307
1307
  thinkingBudget?: number;
@@ -1575,7 +1575,7 @@ interface paths {
1575
1575
  enabled: boolean;
1576
1576
  includeThoughts?: boolean;
1577
1577
  /** @enum {string} */
1578
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
1578
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1579
1579
  /** @enum {string} */
1580
1580
  reasoningSummary?: "auto" | "detailed";
1581
1581
  thinkingBudget?: number;
@@ -1853,15 +1853,6 @@ interface paths {
1853
1853
  "application/json": components["schemas"]["AgentEnsureHashMismatch"];
1854
1854
  };
1855
1855
  };
1856
- /** @description Active preview alias quota exceeded for the organization or the agent (code PREVIEW_ALIAS_LIMIT). Archive a preview alias and retry. */
1857
- 429: {
1858
- headers: {
1859
- [name: string]: unknown;
1860
- };
1861
- content: {
1862
- "application/json": components["schemas"]["AgentEnsurePreviewAliasLimit"];
1863
- };
1864
- };
1865
1856
  /** @description Internal server error, or code alias_activation_failed when a non-live activation could not be applied (nothing was written) */
1866
1857
  500: {
1867
1858
  headers: {
@@ -2379,7 +2370,7 @@ interface paths {
2379
2370
  enabled: boolean;
2380
2371
  includeThoughts?: boolean;
2381
2372
  /** @enum {string} */
2382
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
2373
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2383
2374
  /** @enum {string} */
2384
2375
  reasoningSummary?: "auto" | "detailed";
2385
2376
  thinkingBudget?: number;
@@ -2633,7 +2624,7 @@ interface paths {
2633
2624
  enabled: boolean;
2634
2625
  includeThoughts?: boolean;
2635
2626
  /** @enum {string} */
2636
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
2627
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2637
2628
  /** @enum {string} */
2638
2629
  reasoningSummary?: "auto" | "detailed";
2639
2630
  thinkingBudget?: number;
@@ -3063,7 +3054,7 @@ interface paths {
3063
3054
  };
3064
3055
  /**
3065
3056
  * Activate a version at a release alias
3066
- * @description Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision; preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first, and an unresolvable reference refuses the activation. Activating a preview alias renews its 14-day expiry; `live` never expires. Creating a new preview alias past the active-preview quota answers 429 with code PREVIEW_ALIAS_LIMIT.
3057
+ * @description Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision; preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first, and an unresolvable reference refuses the activation. Activating a preview alias renews its 14-day expiry; `live` never expires.
3067
3058
  */
3068
3059
  put: {
3069
3060
  parameters: {
@@ -3098,14 +3089,10 @@ interface paths {
3098
3089
  };
3099
3090
  content: {
3100
3091
  "application/json": {
3101
- /** @description How many preview aliases this agent has active after the write. Null for `live`, which is never counted. Read it beside `previewLimit` to see a per-pull-request pipeline filling up before an activation is refused with PREVIEW_ALIAS_LIMIT. */
3102
- activePreviewCount: number | null;
3103
3092
  alias: string;
3104
3093
  /** @description Per-alias secret binding names in force after this activation. Names only, never values. */
3105
3094
  bindingNames: string[];
3106
3095
  changed: boolean;
3107
- /** @description The active-preview ceiling this agent is counted against. Null for `live`. */
3108
- previewLimit: number | null;
3109
3096
  receiptId: string;
3110
3097
  revision: number;
3111
3098
  versionId: string;
@@ -3197,15 +3184,6 @@ interface paths {
3197
3184
  "application/json": components["schemas"]["Error"];
3198
3185
  };
3199
3186
  };
3200
- /** @description Active preview alias quota exceeded for the organization or the agent */
3201
- 429: {
3202
- headers: {
3203
- [name: string]: unknown;
3204
- };
3205
- content: {
3206
- "application/json": components["schemas"]["PreviewAliasLimitError"];
3207
- };
3208
- };
3209
3187
  /** @description Internal server error */
3210
3188
  500: {
3211
3189
  headers: {
@@ -3720,14 +3698,10 @@ interface paths {
3720
3698
  };
3721
3699
  content: {
3722
3700
  "application/json": {
3723
- /** @description How many preview aliases this agent has active after the write. Null for `live`, which is never counted. Read it beside `previewLimit` to see a per-pull-request pipeline filling up before an activation is refused with PREVIEW_ALIAS_LIMIT. */
3724
- activePreviewCount: number | null;
3725
3701
  alias: string;
3726
3702
  /** @description Per-alias secret binding names in force after this activation. Names only, never values. */
3727
3703
  bindingNames: string[];
3728
3704
  changed: boolean;
3729
- /** @description The active-preview ceiling this agent is counted against. Null for `live`. */
3730
- previewLimit: number | null;
3731
3705
  receiptId: string;
3732
3706
  revision: number;
3733
3707
  versionId: string;
@@ -13586,7 +13560,7 @@ interface paths {
13586
13560
  enabled: boolean;
13587
13561
  includeThoughts?: boolean;
13588
13562
  /** @enum {string} */
13589
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
13563
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
13590
13564
  /** @enum {string} */
13591
13565
  reasoningSummary?: "auto" | "detailed";
13592
13566
  thinkingBudget?: number;
@@ -14036,7 +14010,7 @@ interface paths {
14036
14010
  enabled: boolean;
14037
14011
  includeThoughts?: boolean;
14038
14012
  /** @enum {string} */
14039
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
14013
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
14040
14014
  /** @enum {string} */
14041
14015
  reasoningSummary?: "auto" | "detailed";
14042
14016
  thinkingBudget?: number;
@@ -31838,6 +31812,18 @@ interface paths {
31838
31812
  totalCost: string | null;
31839
31813
  /** @description Trace id in the span store; null on a row the control-plane arm served. */
31840
31814
  traceId: string | null;
31815
+ /** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
31816
+ via?: {
31817
+ /** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli) or eval suite id (eval). Null for mcp and test, and for an api run whose header predates key stamping. */
31818
+ id: string | null;
31819
+ /**
31820
+ * @description One word for the way the run started.
31821
+ * @enum {string}
31822
+ */
31823
+ kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
31824
+ /** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
31825
+ label: string | null;
31826
+ } | null;
31841
31827
  }[];
31842
31828
  error?: {
31843
31829
  message: string;
@@ -42555,7 +42541,7 @@ interface paths {
42555
42541
  };
42556
42542
  /**
42557
42543
  * List runs
42558
- * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers `pagination.cursorReset: true`.
42544
+ * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers `pagination.cursorReset: true`. `includeCount=true` adds `pagination.totalCount`, counted up to 1000, and `pagination.totalCountCapped`. Each row carries `via` (schedule | surface | api | mcp | cli | test | eval, with the id and name of the thing that started it) where the entrance stated it; null otherwise.
42559
42545
  */
42560
42546
  get: {
42561
42547
  parameters: {
@@ -42598,6 +42584,8 @@ interface paths {
42598
42584
  limit?: string;
42599
42585
  /** @description Keyset cursor from a previous page. */
42600
42586
  cursor?: string;
42587
+ /** @description "true" adds pagination.totalCount and pagination.totalCountCapped: the number of runs matching this request's filters within its window, ignoring the cursor and limit, counted up to 1000. Past that the count stops at 1000 and totalCountCapped is true, so read it as "more than 1000". Omitted, or any other value, the response carries neither field. */
42588
+ includeCount?: string;
42601
42589
  };
42602
42590
  header?: never;
42603
42591
  path?: never;
@@ -42620,6 +42608,10 @@ interface paths {
42620
42608
  hasPrev: boolean;
42621
42609
  limit: number;
42622
42610
  nextCursor: string | null;
42611
+ /** @description The runs the request's filters match within its window, ignoring the cursor and limit, counted up to 1000. Present only when `includeCount=true`. */
42612
+ totalCount?: number;
42613
+ /** @description True when more than 1000 runs matched, so `totalCount` is the cap rather than the total. Present only when `includeCount=true`. */
42614
+ totalCountCapped?: boolean;
42623
42615
  };
42624
42616
  /** @description The started_at window the query resolved to, after defaults. */
42625
42617
  window: {
@@ -44309,6 +44301,8 @@ interface paths {
44309
44301
  search?: string;
44310
44302
  /** @description Filter by status */
44311
44303
  status?: "active" | "paused";
44304
+ /** @description Only schedules that run this agent */
44305
+ agentId?: string;
44312
44306
  /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
44313
44307
  view?: "full" | "compact";
44314
44308
  };
@@ -44357,7 +44351,7 @@ interface paths {
44357
44351
  };
44358
44352
  };
44359
44353
  };
44360
- /** @description Canonical first page (no cursor/search/status, includeCount=true) is unchanged since the ETag echoed in If-None-Match. No body. */
44354
+ /** @description Canonical first page (no cursor/search/status/agentId, includeCount=true) is unchanged since the ETag echoed in If-None-Match. No body. */
44361
44355
  304: {
44362
44356
  headers: {
44363
44357
  [name: string]: unknown;
@@ -51432,20 +51426,6 @@ interface components {
51432
51426
  contentHash: string;
51433
51427
  error: string;
51434
51428
  };
51435
- AgentEnsurePreviewAliasLimit: {
51436
- active: number;
51437
- /** @enum {string} */
51438
- code: "PREVIEW_ALIAS_LIMIT";
51439
- error: string;
51440
- limit: number;
51441
- /** @description The same remediation sentence as `error`. */
51442
- message: string;
51443
- /**
51444
- * @description Which population was already at its active-preview limit.
51445
- * @enum {string}
51446
- */
51447
- scope: "organization" | "agent";
51448
- };
51449
51429
  AgentEnsureResponse: {
51450
51430
  agentId: string;
51451
51431
  /** @description Present when the request carried capabilities: one row per declared capability, then removals. */
@@ -51604,7 +51584,7 @@ interface components {
51604
51584
  enabled: boolean;
51605
51585
  includeThoughts?: boolean;
51606
51586
  /** @enum {string} */
51607
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
51587
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
51608
51588
  /** @enum {string} */
51609
51589
  reasoningSummary?: "auto" | "detailed";
51610
51590
  thinkingBudget?: number;
@@ -52381,7 +52361,7 @@ interface components {
52381
52361
  enabled: boolean;
52382
52362
  includeThoughts?: boolean;
52383
52363
  /** @enum {string} */
52384
- reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
52364
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
52385
52365
  /** @enum {string} */
52386
52366
  reasoningSummary?: "auto" | "detailed";
52387
52367
  thinkingBudget?: number;
@@ -54219,15 +54199,6 @@ interface components {
54219
54199
  totalCount?: number;
54220
54200
  totalPages?: number;
54221
54201
  };
54222
- PreviewAliasLimitError: components["schemas"]["Error"] & {
54223
- active: number;
54224
- /** @enum {string} */
54225
- code: "PREVIEW_ALIAS_LIMIT";
54226
- limit: number;
54227
- message: string;
54228
- /** @enum {string} */
54229
- scope: "organization" | "agent";
54230
- };
54231
54202
  ProductCanvasBlock: {
54232
54203
  /** @description When the block was added; set by the server */
54233
54204
  readonly addedAt?: string;
@@ -54778,6 +54749,18 @@ interface components {
54778
54749
  totalCost: string | null;
54779
54750
  /** @description Trace id in the span store; null on a row the control-plane arm served. */
54780
54751
  traceId: string | null;
54752
+ /** @description How the run started, for a Via column. Forward-only for schedule, api key, cli, mcp and eval detail: a header written before those stamps reads null, or falls back to the coarse origin/surface facts when they alone answer it. A label is a snapshot or a lookup and never authority; mcp, cli and sdk are self-declared by the client. */
54753
+ via?: {
54754
+ /** @description The thing that started it: the schedule id (schedule), product surface id (surface), API key id (api), the acting user id (cli) or eval suite id (eval). Null for mcp and test, and for an api run whose header predates key stamping. */
54755
+ id: string | null;
54756
+ /**
54757
+ * @description One word for the way the run started.
54758
+ * @enum {string}
54759
+ */
54760
+ kind: "schedule" | "surface" | "api" | "mcp" | "cli" | "test" | "eval";
54761
+ /** @description Its display name when the API could resolve one: schedule name, surface name, API key name as it was at dispatch, MCP client name, the acting user's first name, or eval suite name. Null when unresolved, for example a deleted schedule. */
54762
+ label: string | null;
54763
+ } | null;
54781
54764
  };
54782
54765
  RuntimeEmailAdmissionError: {
54783
54766
  code?: string;
@@ -57900,7 +57883,7 @@ export interface ToolsConfig {
57900
57883
  }
57901
57884
  export interface ReasoningConfig {
57902
57885
  enabled: boolean;
57903
- reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
57886
+ reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
57904
57887
  reasoningSummary?: 'auto' | 'detailed';
57905
57888
  budgetTokens?: number;
57906
57889
  /**
@@ -61393,23 +61376,6 @@ export declare class AgentAliasNotFoundError extends Error {
61393
61376
  agentId: string;
61394
61377
  });
61395
61378
  }
61396
- /**
61397
- * A new preview pointer refused by the active-preview quota (HTTP 429). Archive
61398
- * a preview you no longer need — archiving frees the quota immediately — or wait
61399
- * for one to expire. `live` is never counted.
61400
- */
61401
- export declare class AgentAliasPreviewLimitError extends Error {
61402
- readonly code = "PREVIEW_ALIAS_LIMIT";
61403
- readonly scope: 'organization' | 'agent';
61404
- readonly limit: number;
61405
- readonly active: number;
61406
- constructor(body: {
61407
- error?: string;
61408
- scope: 'organization' | 'agent';
61409
- limit: number;
61410
- active: number;
61411
- });
61412
- }
61413
61379
  /** A version whose named references no longer resolve in this account (HTTP 422). */
61414
61380
  export declare class AgentAliasDependencyError extends Error {
61415
61381
  readonly code = "alias_dependency_unresolved";
@@ -61420,7 +61386,7 @@ export declare class AgentAliasDependencyError extends Error {
61420
61386
  });
61421
61387
  }
61422
61388
  /** Every coded refusal the alias plane maps onto a typed error. */
61423
- type TypedAliasError = AgentAliasRevisionMismatchError | AgentAliasRevisionRequiredError | AgentAliasNotFoundError | AgentAliasDependencyError | AgentAliasPreviewLimitError;
61389
+ type TypedAliasError = AgentAliasRevisionMismatchError | AgentAliasRevisionRequiredError | AgentAliasNotFoundError | AgentAliasDependencyError;
61424
61390
  /** The refusal code, when this is one of the typed alias errors. */
61425
61391
  export declare function agentAliasErrorCode(err: unknown): TypedAliasError['code'] | undefined;
61426
61392
  interface ListAgentAliasesOptions {
@@ -62026,6 +61992,18 @@ interface RunListRow {
62026
61992
  * predates the field.
62027
61993
  */
62028
61994
  test: boolean | null;
61995
+ /**
61996
+ * How the run started, for a Via column. Forward-only for schedule, API key,
61997
+ * CLI, MCP and eval detail: a header written before those stamps reads null or
61998
+ * the coarse origin. `mcp`, `cli` and `sdk` are self-declared by the client.
61999
+ */
62000
+ via?: {
62001
+ kind: 'schedule' | 'surface' | 'api' | 'mcp' | 'cli' | 'test' | 'eval';
62002
+ /** Schedule, surface, API key, acting user or eval suite id; null for mcp and test. */
62003
+ id: string | null;
62004
+ /** Its display name when the API could resolve one; null otherwise. */
62005
+ label: string | null;
62006
+ } | null;
62029
62007
  stopReason?: string | null;
62030
62008
  iterations?: number | null;
62031
62009
  /**
@@ -62079,6 +62057,8 @@ interface RunListParams {
62079
62057
  overlay?: 'live' | 'none';
62080
62058
  limit?: number;
62081
62059
  cursor?: string;
62060
+ /** `'true'` adds `pagination.totalCount`, counted up to 1000, and `totalCountCapped`. */
62061
+ includeCount?: 'true' | 'false';
62082
62062
  }
62083
62063
  interface RunListResponse {
62084
62064
  data: RunListRow[];
@@ -62089,6 +62069,10 @@ interface RunListResponse {
62089
62069
  limit: number;
62090
62070
  /** True when the supplied cursor was rejected and the read restarted at page one; stop paging. */
62091
62071
  cursorReset?: boolean;
62072
+ /** Runs the filters match in the window, up to 1000; present only when `includeCount` was `'true'`. */
62073
+ totalCount?: number;
62074
+ /** True when more runs matched than `totalCount` counts, so read it as "more than". */
62075
+ totalCountCapped?: boolean;
62092
62076
  };
62093
62077
  window: {
62094
62078
  from: string;
package/dist/index.mjs CHANGED
@@ -2079,21 +2079,6 @@ var AgentAliasNotFoundError = class extends Error {
2079
2079
  this.agentId = body.agentId;
2080
2080
  }
2081
2081
  };
2082
- /**
2083
- * A new preview pointer refused by the active-preview quota (HTTP 429). Archive
2084
- * a preview you no longer need — archiving frees the quota immediately — or wait
2085
- * for one to expire. `live` is never counted.
2086
- */
2087
- var AgentAliasPreviewLimitError = class extends Error {
2088
- constructor(body) {
2089
- super(body.error ?? `This ${body.scope} already has ${body.limit} active preview aliases, the maximum.`);
2090
- this.code = "PREVIEW_ALIAS_LIMIT";
2091
- this.name = "AgentAliasPreviewLimitError";
2092
- this.scope = body.scope;
2093
- this.limit = body.limit;
2094
- this.active = body.active;
2095
- }
2096
- };
2097
2082
  /** A version whose named references no longer resolve in this account (HTTP 422). */
2098
2083
  var AgentAliasDependencyError = class extends Error {
2099
2084
  constructor(body) {
@@ -2162,12 +2147,6 @@ function toAliasError(err, agentId, alias) {
2162
2147
  alias: asString$1(body.alias, alias),
2163
2148
  agentId: asString$1(body.agentId, agentId)
2164
2149
  });
2165
- if (status === 429 && body?.code === "PREVIEW_ALIAS_LIMIT") return new AgentAliasPreviewLimitError({
2166
- ...error !== void 0 ? { error } : {},
2167
- scope: body.scope === "organization" ? "organization" : "agent",
2168
- limit: typeof body.limit === "number" ? body.limit : 0,
2169
- active: typeof body.active === "number" ? body.active : 0
2170
- });
2171
2150
  if (status === 422 && body?.code === "alias_dependency_unresolved") return new AgentAliasDependencyError({
2172
2151
  ...error !== void 0 ? { error } : {},
2173
2152
  refs: Array.isArray(body.refs) ? body.refs.filter((ref) => typeof ref === "string") : []
@@ -2178,8 +2157,7 @@ const TYPED_ALIAS_ERRORS = [
2178
2157
  AgentAliasRevisionMismatchError,
2179
2158
  AgentAliasRevisionRequiredError,
2180
2159
  AgentAliasNotFoundError,
2181
- AgentAliasDependencyError,
2182
- AgentAliasPreviewLimitError
2160
+ AgentAliasDependencyError
2183
2161
  ];
2184
2162
  /** The refusal code, when this is one of the typed alias errors. */
2185
2163
  function agentAliasErrorCode(err) {
@@ -14298,7 +14276,7 @@ function transformQueryParams(params) {
14298
14276
  }
14299
14277
  //#endregion
14300
14278
  //#region src/version.ts
14301
- const SDK_VERSION = "10.9.0";
14279
+ const SDK_VERSION = "10.11.1";
14302
14280
  /**
14303
14281
  * Canonical client identity the API uses for attribution
14304
14282
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
@@ -16487,5 +16465,5 @@ const STEP_TYPE_TO_METHOD = {
16487
16465
  "memory-summary": "memorySummary"
16488
16466
  };
16489
16467
  //#endregion
16490
- export { AgentAliasDependencyError, AgentAliasNotFoundError, AgentAliasPreviewLimitError, AgentAliasRevisionMismatchError, AgentAliasRevisionRequiredError, AgentAliasesNamespace, AgentDeploymentsNamespace, AgentDriftError, AgentEnsureConflictError, AgentPromotionError, AgentVersionsEndpoint, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, ApiKeyRequestsEndpoint, ApiKeysEndpoint, BatchBuilder, BatchesNamespace, BillingEndpoint, ChatEndpoint, ClientBatchBuilder, ClientEvalBuilder, ClientFlowBuilder, ClientTokenDriftError, ClientTokenEnsureError, ClientTokensEndpoint, ClientTokensNamespace, CollectionDriftError, CollectionEnsureConflictError, CollectionsEndpoint, ContextTemplatesEndpoint, ConversationsEndpoint, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, DispatchEndpoint, ENSURE_RELEASE_DEPLOY_CONFLICT_MESSAGE, EvalBuilder, EvalDriftError, EvalEndpoint, EvalEnsureConflictError, EvalRunner, EvalSuitesNamespace, EvalsNamespace, ExecutionsEndpoint, ExecutionsNamespace, FlowBuilder, FlowDriftError, FlowEnsureConflictError, FlowResult, FlowStepsEndpoint, FlowVersionsEndpoint, FlowsEndpoint, FlowsNamespace, FpoDriftError, IntegrationsEndpoint, LEDGER_ARTIFACT_LINE_PREFIX, LIVE_AGENT_ALIAS, LogsEndpoint, ModelConfigsEndpoint, ProductDriftError, ProductEnsureConflictError, ProductsNamespace, PromptsEndpoint, PromptsNamespace, ProviderKeysEndpoint, QuestionSetDriftError, QuestionSetEnsureConflictError, QuestionSetsNamespace, RUNTYPE_CLIENT_KIND, RecordsEndpoint, RunsNamespace, Runtype, RuntypeApiError, RuntypeClient, RuntypeFlowBuilder, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, ScheduleDriftError, ScheduleEnsureConflictError, SchedulesEndpoint, SecretsEndpoint, SkillDriftError, SkillEnsureConflictError, SkillProposalsNamespace, SkillsNamespace, SurfaceDriftError, SurfaceEnsureConflictError, SurfacesEndpoint, SurfacesNamespace, ToolApprovalGrantsEndpoint, ToolDriftError, ToolEnsureConflictError, ToolsEndpoint, ToolsNamespace, TypedRecordsScope, UNIFIED_EVENTS_QUERY, UsersEndpoint, activateAgentPromotion, agentAliasErrorCode, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildExecutionEventsPath, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, combineAbortSignals, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeQuestionSetContentHash, computeRecordCollectionContentHash, computeScheduleContentHash, computeScheduleDefinitionHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineQuestionSet, defineSchedule, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, ensureSchedule, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, fpoPlanHasDrift, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isBuiltinToolExecuteResponse, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeQuestionSetDefinition, normalizeRecordCollectionDefinition, normalizeScheduleContent, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, prepareAgentPromotion, processStream, promoteAgent, promotionIdempotencyKey, pullEval, pullFpo, pullSchedule, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, validateAgentPromotion, withDetachedReconnect, withUnifiedEvents };
16468
+ export { AgentAliasDependencyError, AgentAliasNotFoundError, AgentAliasRevisionMismatchError, AgentAliasRevisionRequiredError, AgentAliasesNamespace, AgentDeploymentsNamespace, AgentDriftError, AgentEnsureConflictError, AgentPromotionError, AgentVersionsEndpoint, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, ApiKeyRequestsEndpoint, ApiKeysEndpoint, BatchBuilder, BatchesNamespace, BillingEndpoint, ChatEndpoint, ClientBatchBuilder, ClientEvalBuilder, ClientFlowBuilder, ClientTokenDriftError, ClientTokenEnsureError, ClientTokensEndpoint, ClientTokensNamespace, CollectionDriftError, CollectionEnsureConflictError, CollectionsEndpoint, ContextTemplatesEndpoint, ConversationsEndpoint, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, DispatchEndpoint, ENSURE_RELEASE_DEPLOY_CONFLICT_MESSAGE, EvalBuilder, EvalDriftError, EvalEndpoint, EvalEnsureConflictError, EvalRunner, EvalSuitesNamespace, EvalsNamespace, ExecutionsEndpoint, ExecutionsNamespace, FlowBuilder, FlowDriftError, FlowEnsureConflictError, FlowResult, FlowStepsEndpoint, FlowVersionsEndpoint, FlowsEndpoint, FlowsNamespace, FpoDriftError, IntegrationsEndpoint, LEDGER_ARTIFACT_LINE_PREFIX, LIVE_AGENT_ALIAS, LogsEndpoint, ModelConfigsEndpoint, ProductDriftError, ProductEnsureConflictError, ProductsNamespace, PromptsEndpoint, PromptsNamespace, ProviderKeysEndpoint, QuestionSetDriftError, QuestionSetEnsureConflictError, QuestionSetsNamespace, RUNTYPE_CLIENT_KIND, RecordsEndpoint, RunsNamespace, Runtype, RuntypeApiError, RuntypeClient, RuntypeFlowBuilder, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, ScheduleDriftError, ScheduleEnsureConflictError, SchedulesEndpoint, SecretsEndpoint, SkillDriftError, SkillEnsureConflictError, SkillProposalsNamespace, SkillsNamespace, SurfaceDriftError, SurfaceEnsureConflictError, SurfacesEndpoint, SurfacesNamespace, ToolApprovalGrantsEndpoint, ToolDriftError, ToolEnsureConflictError, ToolsEndpoint, ToolsNamespace, TypedRecordsScope, UNIFIED_EVENTS_QUERY, UsersEndpoint, activateAgentPromotion, agentAliasErrorCode, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildExecutionEventsPath, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, combineAbortSignals, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeQuestionSetContentHash, computeRecordCollectionContentHash, computeScheduleContentHash, computeScheduleDefinitionHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineQuestionSet, defineSchedule, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, ensureSchedule, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, fpoPlanHasDrift, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isBuiltinToolExecuteResponse, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeQuestionSetDefinition, normalizeRecordCollectionDefinition, normalizeScheduleContent, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, prepareAgentPromotion, processStream, promoteAgent, promotionIdempotencyKey, pullEval, pullFpo, pullSchedule, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, validateAgentPromotion, withDetachedReconnect, withUnifiedEvents };
16491
16469
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "10.9.0",
3
+ "version": "10.11.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.69.0",
27
+ "@runtypelabs/shared": "3.71.1",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.0",
30
30
  "typescript": "^6.0.3",