@runtypelabs/sdk 7.2.1 → 7.3.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.d.ts CHANGED
@@ -506,6 +506,12 @@ interface paths {
506
506
  cursor?: string;
507
507
  includeCount?: string;
508
508
  search?: string;
509
+ /** @description Filter to a single agent type. */
510
+ agentType?: "runtype" | "external" | "claude_managed";
511
+ /** @description Deprecated alias for `agentType`. */
512
+ agent_type?: "runtype" | "external" | "claude_managed";
513
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
514
+ view?: "full" | "compact";
509
515
  };
510
516
  header?: never;
511
517
  path?: never;
@@ -521,6 +527,7 @@ interface paths {
521
527
  content: {
522
528
  "application/json": {
523
529
  data: {
530
+ agentType: string;
524
531
  capabilityCount: number;
525
532
  config: {
526
533
  [key: string]: unknown;
@@ -1705,7 +1712,7 @@ interface paths {
1705
1712
  };
1706
1713
  /**
1707
1714
  * Update agent
1708
- * @description Update an existing agent. Supports partial updates — only provided fields are changed. Config updates are deep-merged.
1715
+ * @description Update an existing agent. Supports partial updates — only provided fields are changed. Both config and externalConfig are merged onto the stored values, so a partial write preserves keys it omits (notably externalConfig.protocol and externalConfig.cachedAgentCard). To REMOVE a value, send it explicitly as null: a null field clears that field, and externalConfig: null clears the whole object. Nested values replace atomically — sending auth replaces the entire auth block, so switching auth type cannot reuse the previous credential. Repointing an external agent (endpoint, agentCardUrl or protocol) discards the cached agent card, which is re-fetched by POST /agents/{id}/refresh-agent-card. Moving externalConfig.endpoint to a different host additionally requires re-sending externalConfig.auth: a stored credential is never carried to a host it was not configured against, so a repoint that omits auth is rejected with 400.
1709
1716
  */
1710
1717
  put: {
1711
1718
  parameters: {
@@ -1968,13 +1975,13 @@ interface paths {
1968
1975
  description?: string;
1969
1976
  externalConfig?: {
1970
1977
  /** Format: uri */
1971
- agentCardUrl?: string;
1978
+ agentCardUrl?: string | null;
1972
1979
  auth?: {
1973
1980
  credentials?: string;
1974
1981
  headerName?: string;
1975
1982
  /** @enum {string} */
1976
1983
  type: "none" | "bearer" | "api_key" | "basic";
1977
- };
1984
+ } | null;
1978
1985
  cachedAgentCard?: {
1979
1986
  capabilities?: {
1980
1987
  pushNotifications?: boolean;
@@ -1998,15 +2005,15 @@ interface paths {
1998
2005
  };
1999
2006
  }[];
2000
2007
  version?: string;
2001
- };
2008
+ } | null;
2002
2009
  /** Format: uri */
2003
- endpoint: string;
2004
- /** @enum {string} */
2005
- framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
2006
- /** @enum {string} */
2007
- protocol?: "a2a" | "runtype-stream";
2008
- retryCount?: number;
2009
- skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
2010
+ endpoint?: string;
2011
+ /** @enum {string|null} */
2012
+ framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom" | null;
2013
+ /** @enum {string|null} */
2014
+ protocol?: "a2a" | "runtype-stream" | null;
2015
+ retryCount?: number | null;
2016
+ skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none") | null;
2010
2017
  skillOrchestrator?: {
2011
2018
  frequencyPenalty?: number;
2012
2019
  model: string;
@@ -2026,7 +2033,7 @@ interface paths {
2026
2033
  temperature?: number;
2027
2034
  topK?: number;
2028
2035
  topP?: number;
2029
- };
2036
+ } | null;
2030
2037
  skillsOverride?: {
2031
2038
  enabled: boolean;
2032
2039
  exposedDescription?: string;
@@ -2035,8 +2042,8 @@ interface paths {
2035
2042
  isNew?: boolean;
2036
2043
  /** @enum {string} */
2037
2044
  role?: "orchestrator" | "tool" | "standalone" | "hidden";
2038
- }[];
2039
- timeoutMs?: number;
2045
+ }[] | null;
2046
+ timeoutMs?: number | null;
2040
2047
  } | null;
2041
2048
  icon?: string;
2042
2049
  maxTurns?: number;
@@ -7999,6 +8006,8 @@ interface paths {
7999
8006
  limit?: string;
8000
8007
  cursor?: string;
8001
8008
  includeCount?: string;
8009
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
8010
+ view?: "full" | "compact";
8002
8011
  };
8003
8012
  header?: never;
8004
8013
  path?: never;
@@ -8762,6 +8771,8 @@ interface paths {
8762
8771
  name?: string;
8763
8772
  cursor?: string;
8764
8773
  limit?: string;
8774
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
8775
+ view?: "full" | "compact";
8765
8776
  };
8766
8777
  header?: never;
8767
8778
  path?: never;
@@ -16697,6 +16708,8 @@ interface paths {
16697
16708
  direction?: string;
16698
16709
  includeCount?: string;
16699
16710
  search?: string;
16711
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
16712
+ view?: "full" | "compact";
16700
16713
  };
16701
16714
  header?: never;
16702
16715
  path?: never;
@@ -24865,9 +24878,12 @@ interface paths {
24865
24878
  keyStatus?: "platform" | "custom" | "needs_setup";
24866
24879
  maxOutputTokens?: number;
24867
24880
  modelId: string;
24881
+ /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
24882
+ organizationConnectionId?: string | null;
24868
24883
  organizationId: string | null;
24869
24884
  outputCostPer1kTokens?: number;
24870
24885
  provider: string;
24886
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
24871
24887
  providerKeyId: string | null;
24872
24888
  reasoningCapability?: {
24873
24889
  /** @enum {string} */
@@ -24937,6 +24953,7 @@ interface paths {
24937
24953
  modelId: string;
24938
24954
  /** @enum {string} */
24939
24955
  provider: "model" | "runtype" | "mock" | "modelsocket" | "mixlayer" | "openai" | "anthropic" | "google" | "xai" | "togetherai" | "vertex" | "vertex-anthropic" | "bedrock" | "tinfoil" | "vercel" | "generic-openai";
24956
+ /** @description Credential selector: `platform`, a provider-key ID, or an organization-connection ID. For migrated model providers this stores the model reference without changing organization-wide credential policy. */
24940
24957
  providerKeyId?: string;
24941
24958
  /** @default {} */
24942
24959
  settings?: {
@@ -24993,9 +25010,12 @@ interface paths {
24993
25010
  keyStatus?: "platform" | "custom" | "needs_setup";
24994
25011
  maxOutputTokens?: number;
24995
25012
  modelId: string;
25013
+ /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25014
+ organizationConnectionId?: string | null;
24996
25015
  organizationId: string | null;
24997
25016
  outputCostPer1kTokens?: number;
24998
25017
  provider: string;
25018
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
24999
25019
  providerKeyId: string | null;
25000
25020
  reasoningCapability?: {
25001
25021
  /** @enum {string} */
@@ -25506,6 +25526,7 @@ interface paths {
25506
25526
  "application/json": {
25507
25527
  isDefault?: boolean;
25508
25528
  isEnabled?: boolean;
25529
+ /** @description Credential selector: `platform`, a provider-key ID, or an organization-connection ID. For migrated model providers this stores the model reference without changing organization-wide credential policy. */
25509
25530
  providerKeyId?: string;
25510
25531
  settings?: {
25511
25532
  customModel?: {
@@ -25561,9 +25582,12 @@ interface paths {
25561
25582
  keyStatus?: "platform" | "custom" | "needs_setup";
25562
25583
  maxOutputTokens?: number;
25563
25584
  modelId: string;
25585
+ /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25586
+ organizationConnectionId?: string | null;
25564
25587
  organizationId: string | null;
25565
25588
  outputCostPer1kTokens?: number;
25566
25589
  provider: string;
25590
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25567
25591
  providerKeyId: string | null;
25568
25592
  reasoningCapability?: {
25569
25593
  /** @enum {string} */
@@ -25756,9 +25780,12 @@ interface paths {
25756
25780
  keyStatus?: "platform" | "custom" | "needs_setup";
25757
25781
  maxOutputTokens?: number;
25758
25782
  modelId: string;
25783
+ /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25784
+ organizationConnectionId?: string | null;
25759
25785
  organizationId: string | null;
25760
25786
  outputCostPer1kTokens?: number;
25761
25787
  provider: string;
25788
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25762
25789
  providerKeyId: string | null;
25763
25790
  reasoningCapability?: {
25764
25791
  /** @enum {string} */
@@ -26177,6 +26204,8 @@ interface paths {
26177
26204
  limit?: string;
26178
26205
  cursor?: string;
26179
26206
  search?: string;
26207
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
26208
+ view?: "full" | "compact";
26180
26209
  };
26181
26210
  header?: never;
26182
26211
  path?: never;
@@ -29017,12 +29046,12 @@ interface paths {
29017
29046
  surfaceId: string;
29018
29047
  /** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
29019
29048
  warnings?: {
29020
- /** @description Stable advisory code, e.g. `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt. */
29049
+ /** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
29021
29050
  code: string;
29022
29051
  message: string;
29023
29052
  path: string;
29024
29053
  /** @enum {string} */
29025
- severity: "warning";
29054
+ severity: "warning" | "recommendation";
29026
29055
  suggestedFix?: string;
29027
29056
  }[];
29028
29057
  };
@@ -29171,12 +29200,12 @@ interface paths {
29171
29200
  surfaceId: string;
29172
29201
  /** @description Advisory findings about this binding. Present only when non-empty; never blocks the mutation. */
29173
29202
  warnings?: {
29174
- /** @description Stable advisory code, e.g. `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt. */
29203
+ /** @description Stable advisory code: `APPROVAL_UNANSWERABLE_ON_SURFACE` when an approval-gated agent is bound to a surface with no human to answer the prompt, or `APPROVAL_REPLY_CAPTURE_ON_SURFACE` when the pairing works but the decision is read from the reply the person texts back. */
29175
29204
  code: string;
29176
29205
  message: string;
29177
29206
  path: string;
29178
29207
  /** @enum {string} */
29179
- severity: "warning";
29208
+ severity: "warning" | "recommendation";
29180
29209
  suggestedFix?: string;
29181
29210
  }[];
29182
29211
  };
@@ -32262,6 +32291,8 @@ interface paths {
32262
32291
  search?: string;
32263
32292
  /** @description Filter by model ID */
32264
32293
  model?: string;
32294
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
32295
+ view?: "full" | "compact";
32265
32296
  };
32266
32297
  header?: never;
32267
32298
  path?: never;
@@ -32351,7 +32382,7 @@ interface paths {
32351
32382
  requestBody?: {
32352
32383
  content: {
32353
32384
  "application/json": {
32354
- /** @default gemini-3.6-flash */
32385
+ /** @default gemini-3.7-flash */
32355
32386
  model?: string;
32356
32387
  name: string;
32357
32388
  /**
@@ -32548,7 +32579,7 @@ interface paths {
32548
32579
  requestBody?: {
32549
32580
  content: {
32550
32581
  "application/json": {
32551
- /** @default gemini-3.6-flash */
32582
+ /** @default gemini-3.7-flash */
32552
32583
  model?: string;
32553
32584
  name?: string;
32554
32585
  /**
@@ -32709,7 +32740,7 @@ interface paths {
32709
32740
  };
32710
32741
  /**
32711
32742
  * List provider keys
32712
- * @description Returns all provider API keys for the authenticated user.
32743
+ * @description Returns provider credentials for the active account. Migrated organization integrations and model-provider credentials are organization-owned; personal compatibility credentials remain user-owned.
32713
32744
  */
32714
32745
  get: {
32715
32746
  parameters: {
@@ -32754,6 +32785,15 @@ interface paths {
32754
32785
  "application/json": components["schemas"]["Error"];
32755
32786
  };
32756
32787
  };
32788
+ /** @description Forbidden */
32789
+ 403: {
32790
+ headers: {
32791
+ [name: string]: unknown;
32792
+ };
32793
+ content: {
32794
+ "application/json": components["schemas"]["Error"];
32795
+ };
32796
+ };
32757
32797
  /** @description Internal server error */
32758
32798
  500: {
32759
32799
  headers: {
@@ -32768,7 +32808,7 @@ interface paths {
32768
32808
  put?: never;
32769
32809
  /**
32770
32810
  * Create a provider key
32771
- * @description Creates a new provider API key for the authenticated user. Requires BYOK entitlement.
32811
+ * @description Creates a provider credential for the active account. In an organization, Braintrust and migrated model providers (currently OpenAI, Anthropic, Google, and xAI) create organization-owned connections and return connection IDs; for migrated model providers, isDefault=true explicitly selects organization BYOK authority while a non-default connection is storage-only. Personal accounts and providers that have not migrated retain provider-key ownership. Requires BYOK entitlement.
32772
32812
  */
32773
32813
  post: {
32774
32814
  parameters: {
@@ -32958,6 +32998,104 @@ interface paths {
32958
32998
  patch?: never;
32959
32999
  trace?: never;
32960
33000
  };
33001
+ "/v1/provider-keys/organization-policy": {
33002
+ parameters: {
33003
+ query?: never;
33004
+ header?: never;
33005
+ path?: never;
33006
+ cookie?: never;
33007
+ };
33008
+ get?: never;
33009
+ /**
33010
+ * Select organization model-provider credential custody
33011
+ * @description Selects the organization-wide credential used for a migrated model provider. This is an explicit audited authority change affecting all members and detached execution.
33012
+ */
33013
+ put: {
33014
+ parameters: {
33015
+ query?: never;
33016
+ header?: never;
33017
+ path?: never;
33018
+ cookie?: never;
33019
+ };
33020
+ requestBody?: {
33021
+ content: {
33022
+ "application/json": {
33023
+ /** @enum {string} */
33024
+ provider: "openai" | "anthropic" | "google" | "xai";
33025
+ selection: "platform" | {
33026
+ connectionId: string;
33027
+ };
33028
+ };
33029
+ };
33030
+ };
33031
+ responses: {
33032
+ /** @description Organization provider credential selected */
33033
+ 200: {
33034
+ headers: {
33035
+ [name: string]: unknown;
33036
+ };
33037
+ content: {
33038
+ "application/json": {
33039
+ connectionId: string | null;
33040
+ policy: string;
33041
+ provider: string;
33042
+ };
33043
+ };
33044
+ };
33045
+ /** @description Invalid request */
33046
+ 400: {
33047
+ headers: {
33048
+ [name: string]: unknown;
33049
+ };
33050
+ content: {
33051
+ "application/json": components["schemas"]["Error"];
33052
+ };
33053
+ };
33054
+ /** @description Unauthorized */
33055
+ 401: {
33056
+ headers: {
33057
+ [name: string]: unknown;
33058
+ };
33059
+ content: {
33060
+ "application/json": components["schemas"]["Error"];
33061
+ };
33062
+ };
33063
+ /** @description Organization context or permission required */
33064
+ 403: {
33065
+ headers: {
33066
+ [name: string]: unknown;
33067
+ };
33068
+ content: {
33069
+ "application/json": components["schemas"]["Error"];
33070
+ };
33071
+ };
33072
+ /** @description Credential selection unavailable */
33073
+ 422: {
33074
+ headers: {
33075
+ [name: string]: unknown;
33076
+ };
33077
+ content: {
33078
+ "application/json": components["schemas"]["Error"];
33079
+ };
33080
+ };
33081
+ /** @description Internal server error */
33082
+ 500: {
33083
+ headers: {
33084
+ [name: string]: unknown;
33085
+ };
33086
+ content: {
33087
+ "application/json": components["schemas"]["Error"];
33088
+ };
33089
+ };
33090
+ };
33091
+ };
33092
+ post?: never;
33093
+ delete?: never;
33094
+ options?: never;
33095
+ head?: never;
33096
+ patch?: never;
33097
+ trace?: never;
33098
+ };
32961
33099
  "/v1/provider-keys/provider/{provider}": {
32962
33100
  parameters: {
32963
33101
  query?: never;
@@ -32967,7 +33105,7 @@ interface paths {
32967
33105
  };
32968
33106
  /**
32969
33107
  * List provider keys by provider
32970
- * @description Returns provider API keys filtered by a specific provider.
33108
+ * @description Returns active-account provider credentials filtered by provider, including organization-owned migrated connections.
32971
33109
  */
32972
33110
  get: {
32973
33111
  parameters: {
@@ -33015,6 +33153,15 @@ interface paths {
33015
33153
  "application/json": components["schemas"]["Error"];
33016
33154
  };
33017
33155
  };
33156
+ /** @description Forbidden */
33157
+ 403: {
33158
+ headers: {
33159
+ [name: string]: unknown;
33160
+ };
33161
+ content: {
33162
+ "application/json": components["schemas"]["Error"];
33163
+ };
33164
+ };
33018
33165
  /** @description Internal server error */
33019
33166
  500: {
33020
33167
  headers: {
@@ -33046,14 +33193,14 @@ interface paths {
33046
33193
  post?: never;
33047
33194
  /**
33048
33195
  * Delete a provider key
33049
- * @description Deletes a provider API key and cleans up associated model configs for generic-openai keys.
33196
+ * @description Deletes a provider key or supported organization-owned connection. Generic-openai deletion also cleans up associated model configs.
33050
33197
  */
33051
33198
  delete: {
33052
33199
  parameters: {
33053
33200
  query?: never;
33054
33201
  header?: never;
33055
33202
  path: {
33056
- /** @description Provider key ID */
33203
+ /** @description Provider key or organization connection ID */
33057
33204
  id: string;
33058
33205
  };
33059
33206
  cookie?: never;
@@ -33107,6 +33254,29 @@ interface paths {
33107
33254
  "application/json": components["schemas"]["Error"];
33108
33255
  };
33109
33256
  };
33257
+ /** @description Legacy ID replacement during mixed-version rollout */
33258
+ 409: {
33259
+ headers: {
33260
+ [name: string]: unknown;
33261
+ };
33262
+ content: {
33263
+ "application/json": {
33264
+ /** @enum {string} */
33265
+ code: "ORGANIZATION_CONNECTION_MIGRATED";
33266
+ error: string;
33267
+ replacementId: string;
33268
+ };
33269
+ };
33270
+ };
33271
+ /** @description Mutation would leave organization credential selection ambiguous */
33272
+ 422: {
33273
+ headers: {
33274
+ [name: string]: unknown;
33275
+ };
33276
+ content: {
33277
+ "application/json": components["schemas"]["Error"];
33278
+ };
33279
+ };
33110
33280
  /** @description Internal server error */
33111
33281
  500: {
33112
33282
  headers: {
@@ -33122,14 +33292,14 @@ interface paths {
33122
33292
  head?: never;
33123
33293
  /**
33124
33294
  * Update a provider key
33125
- * @description Updates an existing provider API key.
33295
+ * @description Updates a provider key or a supported organization-owned connection returned by create/list. For migrated organization model providers, isDefault=true explicitly selects organization BYOK authority; rotation and non-default metadata changes do not change custody policy.
33126
33296
  */
33127
33297
  patch: {
33128
33298
  parameters: {
33129
33299
  query?: never;
33130
33300
  header?: never;
33131
33301
  path: {
33132
- /** @description Provider key ID */
33302
+ /** @description Provider key or organization connection ID */
33133
33303
  id: string;
33134
33304
  };
33135
33305
  cookie?: never;
@@ -33209,6 +33379,29 @@ interface paths {
33209
33379
  "application/json": components["schemas"]["Error"];
33210
33380
  };
33211
33381
  };
33382
+ /** @description Legacy ID replacement during mixed-version rollout */
33383
+ 409: {
33384
+ headers: {
33385
+ [name: string]: unknown;
33386
+ };
33387
+ content: {
33388
+ "application/json": {
33389
+ /** @enum {string} */
33390
+ code: "ORGANIZATION_CONNECTION_MIGRATED";
33391
+ error: string;
33392
+ replacementId: string;
33393
+ };
33394
+ };
33395
+ };
33396
+ /** @description Mutation would leave organization credential selection ambiguous */
33397
+ 422: {
33398
+ headers: {
33399
+ [name: string]: unknown;
33400
+ };
33401
+ content: {
33402
+ "application/json": components["schemas"]["Error"];
33403
+ };
33404
+ };
33212
33405
  /** @description Internal server error */
33213
33406
  500: {
33214
33407
  headers: {
@@ -33419,6 +33612,20 @@ interface paths {
33419
33612
  "application/json": components["schemas"]["Error"];
33420
33613
  };
33421
33614
  };
33615
+ /** @description Organization connection is managed by a newer Worker */
33616
+ 409: {
33617
+ headers: {
33618
+ [name: string]: unknown;
33619
+ };
33620
+ content: {
33621
+ "application/json": {
33622
+ /** @enum {string} */
33623
+ code: "ORGANIZATION_CONNECTION_MIGRATED";
33624
+ error: string;
33625
+ replacementId: string;
33626
+ };
33627
+ };
33628
+ };
33422
33629
  /** @description Internal server error */
33423
33630
  500: {
33424
33631
  headers: {
@@ -34364,6 +34571,8 @@ interface paths {
34364
34571
  min_size_kb?: string;
34365
34572
  max_size_kb?: string;
34366
34573
  recordFilter?: string;
34574
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
34575
+ view?: "full" | "compact";
34367
34576
  };
34368
34577
  header?: never;
34369
34578
  path?: never;
@@ -37772,6 +37981,8 @@ interface paths {
37772
37981
  search?: string;
37773
37982
  /** @description Filter by status */
37774
37983
  status?: "active" | "paused";
37984
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
37985
+ view?: "full" | "compact";
37775
37986
  };
37776
37987
  header?: never;
37777
37988
  path?: never;
@@ -40078,6 +40289,8 @@ interface paths {
40078
40289
  cursor?: string;
40079
40290
  direction?: string;
40080
40291
  includeCount?: string;
40292
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
40293
+ view?: "full" | "compact";
40081
40294
  };
40082
40295
  header?: never;
40083
40296
  path?: never;
@@ -41449,6 +41662,8 @@ interface paths {
41449
41662
  isActive?: string;
41450
41663
  ids?: string;
41451
41664
  include?: string;
41665
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
41666
+ view?: "full" | "compact";
41452
41667
  };
41453
41668
  header?: never;
41454
41669
  path?: never;
@@ -47415,7 +47630,10 @@ interface ModelConfig {
47415
47630
  settings: JsonObject;
47416
47631
  createdAt: string;
47417
47632
  updatedAt: string;
47633
+ /** Previous-Worker-compatible provider-key alias; use organizationConnectionId for migrated organization providers. */
47418
47634
  providerKeyId?: string | null;
47635
+ /** Normalized organization-owned connection reference; null for platform and personal credentials. */
47636
+ organizationConnectionId?: string | null;
47419
47637
  requiresIntegration?: string;
47420
47638
  apiKey?: string;
47421
47639
  scope?: 'personal' | 'organization';
@@ -47584,6 +47802,8 @@ interface UpdateProviderKeyRequest {
47584
47802
  /** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
47585
47803
  settings?: JsonObject;
47586
47804
  }
47805
+ type SelectOrganizationProviderCredentialRequest = NonNullable<paths['/v1/provider-keys/organization-policy']['put']['requestBody']>['content']['application/json'];
47806
+ type SelectOrganizationProviderCredentialResponse = paths['/v1/provider-keys/organization-policy']['put']['responses'][200]['content']['application/json'];
47587
47807
  interface CreateApiKeyRequest {
47588
47808
  name: string;
47589
47809
  permissions?: string[];
@@ -53489,6 +53709,12 @@ declare class ProviderKeysEndpoint {
53489
53709
  * associated model configs.
53490
53710
  */
53491
53711
  delete(id: string): Promise<void>;
53712
+ /**
53713
+ * Select organization-wide execution custody for a migrated model provider.
53714
+ * Pass a concrete connection ID for BYOK or `platform` for Runtype-managed
53715
+ * custody. This is an audited organization-wide action.
53716
+ */
53717
+ selectOrganizationProviderCredential(data: SelectOrganizationProviderCredentialRequest): Promise<SelectOrganizationProviderCredentialResponse>;
53492
53718
  /**
53493
53719
  * Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
53494
53720
  * before a key is saved.
@@ -57431,4 +57657,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
57431
57657
  declare function getDefaultPlanPath(taskName: string): string;
57432
57658
  declare function sanitizeTaskSlug(taskName: string): string;
57433
57659
 
57434
- 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 };
57660
+ 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 SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, 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 };