@runtypelabs/sdk 7.3.0 → 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.cjs CHANGED
@@ -6452,7 +6452,7 @@ var Runtype = class {
6452
6452
 
6453
6453
  // src/version.ts
6454
6454
  var FALLBACK_VERSION = "0.0.0";
6455
- var SDK_VERSION = "7.3.0".length > 0 ? "7.3.0" : FALLBACK_VERSION;
6455
+ var SDK_VERSION = "7.3.1".length > 0 ? "7.3.1" : FALLBACK_VERSION;
6456
6456
  var RUNTYPE_CLIENT_KIND = "sdk";
6457
6457
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6458
6458
 
@@ -9043,6 +9043,14 @@ var ProviderKeysEndpoint = class {
9043
9043
  async delete(id) {
9044
9044
  return this.client.delete(`/provider-keys/${id}`);
9045
9045
  }
9046
+ /**
9047
+ * Select organization-wide execution custody for a migrated model provider.
9048
+ * Pass a concrete connection ID for BYOK or `platform` for Runtype-managed
9049
+ * custody. This is an audited organization-wide action.
9050
+ */
9051
+ async selectOrganizationProviderCredential(data) {
9052
+ return this.client.put("/provider-keys/organization-policy", data);
9053
+ }
9046
9054
  /**
9047
9055
  * Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
9048
9056
  * before a key is saved.
package/dist/index.d.cts CHANGED
@@ -24878,9 +24878,12 @@ interface paths {
24878
24878
  keyStatus?: "platform" | "custom" | "needs_setup";
24879
24879
  maxOutputTokens?: number;
24880
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;
24881
24883
  organizationId: string | null;
24882
24884
  outputCostPer1kTokens?: number;
24883
24885
  provider: string;
24886
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
24884
24887
  providerKeyId: string | null;
24885
24888
  reasoningCapability?: {
24886
24889
  /** @enum {string} */
@@ -24950,6 +24953,7 @@ interface paths {
24950
24953
  modelId: string;
24951
24954
  /** @enum {string} */
24952
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. */
24953
24957
  providerKeyId?: string;
24954
24958
  /** @default {} */
24955
24959
  settings?: {
@@ -25006,9 +25010,12 @@ interface paths {
25006
25010
  keyStatus?: "platform" | "custom" | "needs_setup";
25007
25011
  maxOutputTokens?: number;
25008
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;
25009
25015
  organizationId: string | null;
25010
25016
  outputCostPer1kTokens?: number;
25011
25017
  provider: string;
25018
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25012
25019
  providerKeyId: string | null;
25013
25020
  reasoningCapability?: {
25014
25021
  /** @enum {string} */
@@ -25519,6 +25526,7 @@ interface paths {
25519
25526
  "application/json": {
25520
25527
  isDefault?: boolean;
25521
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. */
25522
25530
  providerKeyId?: string;
25523
25531
  settings?: {
25524
25532
  customModel?: {
@@ -25574,9 +25582,12 @@ interface paths {
25574
25582
  keyStatus?: "platform" | "custom" | "needs_setup";
25575
25583
  maxOutputTokens?: number;
25576
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;
25577
25587
  organizationId: string | null;
25578
25588
  outputCostPer1kTokens?: number;
25579
25589
  provider: string;
25590
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25580
25591
  providerKeyId: string | null;
25581
25592
  reasoningCapability?: {
25582
25593
  /** @enum {string} */
@@ -25769,9 +25780,12 @@ interface paths {
25769
25780
  keyStatus?: "platform" | "custom" | "needs_setup";
25770
25781
  maxOutputTokens?: number;
25771
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;
25772
25785
  organizationId: string | null;
25773
25786
  outputCostPer1kTokens?: number;
25774
25787
  provider: string;
25788
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25775
25789
  providerKeyId: string | null;
25776
25790
  reasoningCapability?: {
25777
25791
  /** @enum {string} */
@@ -32368,7 +32382,7 @@ interface paths {
32368
32382
  requestBody?: {
32369
32383
  content: {
32370
32384
  "application/json": {
32371
- /** @default gemini-3.6-flash */
32385
+ /** @default gemini-3.7-flash */
32372
32386
  model?: string;
32373
32387
  name: string;
32374
32388
  /**
@@ -32565,7 +32579,7 @@ interface paths {
32565
32579
  requestBody?: {
32566
32580
  content: {
32567
32581
  "application/json": {
32568
- /** @default gemini-3.6-flash */
32582
+ /** @default gemini-3.7-flash */
32569
32583
  model?: string;
32570
32584
  name?: string;
32571
32585
  /**
@@ -32726,7 +32740,7 @@ interface paths {
32726
32740
  };
32727
32741
  /**
32728
32742
  * List provider keys
32729
- * @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.
32730
32744
  */
32731
32745
  get: {
32732
32746
  parameters: {
@@ -32771,6 +32785,15 @@ interface paths {
32771
32785
  "application/json": components["schemas"]["Error"];
32772
32786
  };
32773
32787
  };
32788
+ /** @description Forbidden */
32789
+ 403: {
32790
+ headers: {
32791
+ [name: string]: unknown;
32792
+ };
32793
+ content: {
32794
+ "application/json": components["schemas"]["Error"];
32795
+ };
32796
+ };
32774
32797
  /** @description Internal server error */
32775
32798
  500: {
32776
32799
  headers: {
@@ -32785,7 +32808,7 @@ interface paths {
32785
32808
  put?: never;
32786
32809
  /**
32787
32810
  * Create a provider key
32788
- * @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.
32789
32812
  */
32790
32813
  post: {
32791
32814
  parameters: {
@@ -32975,6 +32998,104 @@ interface paths {
32975
32998
  patch?: never;
32976
32999
  trace?: never;
32977
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
+ };
32978
33099
  "/v1/provider-keys/provider/{provider}": {
32979
33100
  parameters: {
32980
33101
  query?: never;
@@ -32984,7 +33105,7 @@ interface paths {
32984
33105
  };
32985
33106
  /**
32986
33107
  * List provider keys by provider
32987
- * @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.
32988
33109
  */
32989
33110
  get: {
32990
33111
  parameters: {
@@ -33032,6 +33153,15 @@ interface paths {
33032
33153
  "application/json": components["schemas"]["Error"];
33033
33154
  };
33034
33155
  };
33156
+ /** @description Forbidden */
33157
+ 403: {
33158
+ headers: {
33159
+ [name: string]: unknown;
33160
+ };
33161
+ content: {
33162
+ "application/json": components["schemas"]["Error"];
33163
+ };
33164
+ };
33035
33165
  /** @description Internal server error */
33036
33166
  500: {
33037
33167
  headers: {
@@ -33063,14 +33193,14 @@ interface paths {
33063
33193
  post?: never;
33064
33194
  /**
33065
33195
  * Delete a provider key
33066
- * @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.
33067
33197
  */
33068
33198
  delete: {
33069
33199
  parameters: {
33070
33200
  query?: never;
33071
33201
  header?: never;
33072
33202
  path: {
33073
- /** @description Provider key ID */
33203
+ /** @description Provider key or organization connection ID */
33074
33204
  id: string;
33075
33205
  };
33076
33206
  cookie?: never;
@@ -33124,6 +33254,29 @@ interface paths {
33124
33254
  "application/json": components["schemas"]["Error"];
33125
33255
  };
33126
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
+ };
33127
33280
  /** @description Internal server error */
33128
33281
  500: {
33129
33282
  headers: {
@@ -33139,14 +33292,14 @@ interface paths {
33139
33292
  head?: never;
33140
33293
  /**
33141
33294
  * Update a provider key
33142
- * @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.
33143
33296
  */
33144
33297
  patch: {
33145
33298
  parameters: {
33146
33299
  query?: never;
33147
33300
  header?: never;
33148
33301
  path: {
33149
- /** @description Provider key ID */
33302
+ /** @description Provider key or organization connection ID */
33150
33303
  id: string;
33151
33304
  };
33152
33305
  cookie?: never;
@@ -33226,6 +33379,29 @@ interface paths {
33226
33379
  "application/json": components["schemas"]["Error"];
33227
33380
  };
33228
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
+ };
33229
33405
  /** @description Internal server error */
33230
33406
  500: {
33231
33407
  headers: {
@@ -33436,6 +33612,20 @@ interface paths {
33436
33612
  "application/json": components["schemas"]["Error"];
33437
33613
  };
33438
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
+ };
33439
33629
  /** @description Internal server error */
33440
33630
  500: {
33441
33631
  headers: {
@@ -47440,7 +47630,10 @@ interface ModelConfig {
47440
47630
  settings: JsonObject;
47441
47631
  createdAt: string;
47442
47632
  updatedAt: string;
47633
+ /** Previous-Worker-compatible provider-key alias; use organizationConnectionId for migrated organization providers. */
47443
47634
  providerKeyId?: string | null;
47635
+ /** Normalized organization-owned connection reference; null for platform and personal credentials. */
47636
+ organizationConnectionId?: string | null;
47444
47637
  requiresIntegration?: string;
47445
47638
  apiKey?: string;
47446
47639
  scope?: 'personal' | 'organization';
@@ -47609,6 +47802,8 @@ interface UpdateProviderKeyRequest {
47609
47802
  /** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
47610
47803
  settings?: JsonObject;
47611
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'];
47612
47807
  interface CreateApiKeyRequest {
47613
47808
  name: string;
47614
47809
  permissions?: string[];
@@ -53514,6 +53709,12 @@ declare class ProviderKeysEndpoint {
53514
53709
  * associated model configs.
53515
53710
  */
53516
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>;
53517
53718
  /**
53518
53719
  * Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
53519
53720
  * before a key is saved.
@@ -57456,4 +57657,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
57456
57657
  declare function getDefaultPlanPath(taskName: string): string;
57457
57658
  declare function sanitizeTaskSlug(taskName: string): string;
57458
57659
 
57459
- 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 };
package/dist/index.d.ts CHANGED
@@ -24878,9 +24878,12 @@ interface paths {
24878
24878
  keyStatus?: "platform" | "custom" | "needs_setup";
24879
24879
  maxOutputTokens?: number;
24880
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;
24881
24883
  organizationId: string | null;
24882
24884
  outputCostPer1kTokens?: number;
24883
24885
  provider: string;
24886
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
24884
24887
  providerKeyId: string | null;
24885
24888
  reasoningCapability?: {
24886
24889
  /** @enum {string} */
@@ -24950,6 +24953,7 @@ interface paths {
24950
24953
  modelId: string;
24951
24954
  /** @enum {string} */
24952
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. */
24953
24957
  providerKeyId?: string;
24954
24958
  /** @default {} */
24955
24959
  settings?: {
@@ -25006,9 +25010,12 @@ interface paths {
25006
25010
  keyStatus?: "platform" | "custom" | "needs_setup";
25007
25011
  maxOutputTokens?: number;
25008
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;
25009
25015
  organizationId: string | null;
25010
25016
  outputCostPer1kTokens?: number;
25011
25017
  provider: string;
25018
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25012
25019
  providerKeyId: string | null;
25013
25020
  reasoningCapability?: {
25014
25021
  /** @enum {string} */
@@ -25519,6 +25526,7 @@ interface paths {
25519
25526
  "application/json": {
25520
25527
  isDefault?: boolean;
25521
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. */
25522
25530
  providerKeyId?: string;
25523
25531
  settings?: {
25524
25532
  customModel?: {
@@ -25574,9 +25582,12 @@ interface paths {
25574
25582
  keyStatus?: "platform" | "custom" | "needs_setup";
25575
25583
  maxOutputTokens?: number;
25576
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;
25577
25587
  organizationId: string | null;
25578
25588
  outputCostPer1kTokens?: number;
25579
25589
  provider: string;
25590
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25580
25591
  providerKeyId: string | null;
25581
25592
  reasoningCapability?: {
25582
25593
  /** @enum {string} */
@@ -25769,9 +25780,12 @@ interface paths {
25769
25780
  keyStatus?: "platform" | "custom" | "needs_setup";
25770
25781
  maxOutputTokens?: number;
25771
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;
25772
25785
  organizationId: string | null;
25773
25786
  outputCostPer1kTokens?: number;
25774
25787
  provider: string;
25788
+ /** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
25775
25789
  providerKeyId: string | null;
25776
25790
  reasoningCapability?: {
25777
25791
  /** @enum {string} */
@@ -32368,7 +32382,7 @@ interface paths {
32368
32382
  requestBody?: {
32369
32383
  content: {
32370
32384
  "application/json": {
32371
- /** @default gemini-3.6-flash */
32385
+ /** @default gemini-3.7-flash */
32372
32386
  model?: string;
32373
32387
  name: string;
32374
32388
  /**
@@ -32565,7 +32579,7 @@ interface paths {
32565
32579
  requestBody?: {
32566
32580
  content: {
32567
32581
  "application/json": {
32568
- /** @default gemini-3.6-flash */
32582
+ /** @default gemini-3.7-flash */
32569
32583
  model?: string;
32570
32584
  name?: string;
32571
32585
  /**
@@ -32726,7 +32740,7 @@ interface paths {
32726
32740
  };
32727
32741
  /**
32728
32742
  * List provider keys
32729
- * @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.
32730
32744
  */
32731
32745
  get: {
32732
32746
  parameters: {
@@ -32771,6 +32785,15 @@ interface paths {
32771
32785
  "application/json": components["schemas"]["Error"];
32772
32786
  };
32773
32787
  };
32788
+ /** @description Forbidden */
32789
+ 403: {
32790
+ headers: {
32791
+ [name: string]: unknown;
32792
+ };
32793
+ content: {
32794
+ "application/json": components["schemas"]["Error"];
32795
+ };
32796
+ };
32774
32797
  /** @description Internal server error */
32775
32798
  500: {
32776
32799
  headers: {
@@ -32785,7 +32808,7 @@ interface paths {
32785
32808
  put?: never;
32786
32809
  /**
32787
32810
  * Create a provider key
32788
- * @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.
32789
32812
  */
32790
32813
  post: {
32791
32814
  parameters: {
@@ -32975,6 +32998,104 @@ interface paths {
32975
32998
  patch?: never;
32976
32999
  trace?: never;
32977
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
+ };
32978
33099
  "/v1/provider-keys/provider/{provider}": {
32979
33100
  parameters: {
32980
33101
  query?: never;
@@ -32984,7 +33105,7 @@ interface paths {
32984
33105
  };
32985
33106
  /**
32986
33107
  * List provider keys by provider
32987
- * @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.
32988
33109
  */
32989
33110
  get: {
32990
33111
  parameters: {
@@ -33032,6 +33153,15 @@ interface paths {
33032
33153
  "application/json": components["schemas"]["Error"];
33033
33154
  };
33034
33155
  };
33156
+ /** @description Forbidden */
33157
+ 403: {
33158
+ headers: {
33159
+ [name: string]: unknown;
33160
+ };
33161
+ content: {
33162
+ "application/json": components["schemas"]["Error"];
33163
+ };
33164
+ };
33035
33165
  /** @description Internal server error */
33036
33166
  500: {
33037
33167
  headers: {
@@ -33063,14 +33193,14 @@ interface paths {
33063
33193
  post?: never;
33064
33194
  /**
33065
33195
  * Delete a provider key
33066
- * @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.
33067
33197
  */
33068
33198
  delete: {
33069
33199
  parameters: {
33070
33200
  query?: never;
33071
33201
  header?: never;
33072
33202
  path: {
33073
- /** @description Provider key ID */
33203
+ /** @description Provider key or organization connection ID */
33074
33204
  id: string;
33075
33205
  };
33076
33206
  cookie?: never;
@@ -33124,6 +33254,29 @@ interface paths {
33124
33254
  "application/json": components["schemas"]["Error"];
33125
33255
  };
33126
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
+ };
33127
33280
  /** @description Internal server error */
33128
33281
  500: {
33129
33282
  headers: {
@@ -33139,14 +33292,14 @@ interface paths {
33139
33292
  head?: never;
33140
33293
  /**
33141
33294
  * Update a provider key
33142
- * @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.
33143
33296
  */
33144
33297
  patch: {
33145
33298
  parameters: {
33146
33299
  query?: never;
33147
33300
  header?: never;
33148
33301
  path: {
33149
- /** @description Provider key ID */
33302
+ /** @description Provider key or organization connection ID */
33150
33303
  id: string;
33151
33304
  };
33152
33305
  cookie?: never;
@@ -33226,6 +33379,29 @@ interface paths {
33226
33379
  "application/json": components["schemas"]["Error"];
33227
33380
  };
33228
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
+ };
33229
33405
  /** @description Internal server error */
33230
33406
  500: {
33231
33407
  headers: {
@@ -33436,6 +33612,20 @@ interface paths {
33436
33612
  "application/json": components["schemas"]["Error"];
33437
33613
  };
33438
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
+ };
33439
33629
  /** @description Internal server error */
33440
33630
  500: {
33441
33631
  headers: {
@@ -47440,7 +47630,10 @@ interface ModelConfig {
47440
47630
  settings: JsonObject;
47441
47631
  createdAt: string;
47442
47632
  updatedAt: string;
47633
+ /** Previous-Worker-compatible provider-key alias; use organizationConnectionId for migrated organization providers. */
47443
47634
  providerKeyId?: string | null;
47635
+ /** Normalized organization-owned connection reference; null for platform and personal credentials. */
47636
+ organizationConnectionId?: string | null;
47444
47637
  requiresIntegration?: string;
47445
47638
  apiKey?: string;
47446
47639
  scope?: 'personal' | 'organization';
@@ -47609,6 +47802,8 @@ interface UpdateProviderKeyRequest {
47609
47802
  /** Provider-specific settings, e.g. `{ baseUrl }` for generic-openai endpoints. */
47610
47803
  settings?: JsonObject;
47611
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'];
47612
47807
  interface CreateApiKeyRequest {
47613
47808
  name: string;
47614
47809
  permissions?: string[];
@@ -53514,6 +53709,12 @@ declare class ProviderKeysEndpoint {
53514
53709
  * associated model configs.
53515
53710
  */
53516
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>;
53517
53718
  /**
53518
53719
  * Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
53519
53720
  * before a key is saved.
@@ -57456,4 +57657,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
57456
57657
  declare function getDefaultPlanPath(taskName: string): string;
57457
57658
  declare function sanitizeTaskSlug(taskName: string): string;
57458
57659
 
57459
- 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 };
package/dist/index.mjs CHANGED
@@ -6264,7 +6264,7 @@ var Runtype = class {
6264
6264
 
6265
6265
  // src/version.ts
6266
6266
  var FALLBACK_VERSION = "0.0.0";
6267
- var SDK_VERSION = "7.3.0".length > 0 ? "7.3.0" : FALLBACK_VERSION;
6267
+ var SDK_VERSION = "7.3.1".length > 0 ? "7.3.1" : FALLBACK_VERSION;
6268
6268
  var RUNTYPE_CLIENT_KIND = "sdk";
6269
6269
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6270
6270
 
@@ -8855,6 +8855,14 @@ var ProviderKeysEndpoint = class {
8855
8855
  async delete(id) {
8856
8856
  return this.client.delete(`/provider-keys/${id}`);
8857
8857
  }
8858
+ /**
8859
+ * Select organization-wide execution custody for a migrated model provider.
8860
+ * Pass a concrete connection ID for BYOK or `platform` for Runtype-managed
8861
+ * custody. This is an audited organization-wide action.
8862
+ */
8863
+ async selectOrganizationProviderCredential(data) {
8864
+ return this.client.put("/provider-keys/organization-policy", data);
8865
+ }
8858
8866
  /**
8859
8867
  * Discover models from an OpenAI-compatible endpoint (calls its `/v1/models`)
8860
8868
  * before a key is saved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "7.3.0",
3
+ "version": "7.3.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",