@runtypelabs/sdk 7.3.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2722,6 +2722,24 @@ interface paths {
2722
2722
  "application/json": components["schemas"]["Error"];
2723
2723
  };
2724
2724
  };
2725
+ /** @description Organization model configuration needs configuration */
2726
+ 409: {
2727
+ headers: {
2728
+ [name: string]: unknown;
2729
+ };
2730
+ content: {
2731
+ "application/json": {
2732
+ candidateCount: number;
2733
+ /** @enum {string} */
2734
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
2735
+ configId: string;
2736
+ details: string;
2737
+ error: string;
2738
+ modelId: string;
2739
+ provider: string;
2740
+ };
2741
+ };
2742
+ };
2725
2743
  /** @description Internal server error */
2726
2744
  500: {
2727
2745
  headers: {
@@ -18500,6 +18518,21 @@ interface paths {
18500
18518
  "application/json": components["schemas"]["Error"];
18501
18519
  };
18502
18520
  };
18521
+ /** @description Organization model configuration already migrated */
18522
+ 409: {
18523
+ headers: {
18524
+ [name: string]: unknown;
18525
+ };
18526
+ content: {
18527
+ "application/json": {
18528
+ /** @enum {string} */
18529
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
18530
+ configId: string;
18531
+ details: string;
18532
+ error: string;
18533
+ };
18534
+ };
18535
+ };
18503
18536
  /** @description Internal server error */
18504
18537
  500: {
18505
18538
  headers: {
@@ -18556,6 +18589,21 @@ interface paths {
18556
18589
  "application/json": components["schemas"]["Error"];
18557
18590
  };
18558
18591
  };
18592
+ /** @description Organization model configuration already migrated */
18593
+ 409: {
18594
+ headers: {
18595
+ [name: string]: unknown;
18596
+ };
18597
+ content: {
18598
+ "application/json": {
18599
+ /** @enum {string} */
18600
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
18601
+ configId: string;
18602
+ details: string;
18603
+ error: string;
18604
+ };
18605
+ };
18606
+ };
18559
18607
  };
18560
18608
  };
18561
18609
  options?: never;
@@ -18799,7 +18847,7 @@ interface paths {
18799
18847
  };
18800
18848
  /**
18801
18849
  * List connected integration accounts
18802
- * @description List the caller's connected integration accounts (with their integration IDs) for a provider. Use the integration ID to pin a tool instance to a specific connection, e.g. a Granola tool's toolConfigs integrationId.
18850
+ * @description List connected integration accounts available in the caller's active personal or organization scope. Use an integration ID to pin a tool instance to a specific connection, e.g. a Granola tool's toolConfigs integrationId.
18803
18851
  */
18804
18852
  get: {
18805
18853
  parameters: {
@@ -18823,7 +18871,10 @@ interface paths {
18823
18871
  connections: {
18824
18872
  accountName: string;
18825
18873
  createdAt: string;
18874
+ /** @enum {string} */
18875
+ environment?: "development" | "production";
18826
18876
  integrationId: string;
18877
+ isDefault?: boolean;
18827
18878
  metadata?: {
18828
18879
  [key: string]: unknown;
18829
18880
  };
@@ -21927,6 +21978,22 @@ interface paths {
21927
21978
  "application/json": components["schemas"]["Error"];
21928
21979
  };
21929
21980
  };
21981
+ /** @description The organization credential has moved to the normalized connection plane. The legacy route refuses the mutation and identifies whether the blocking authority is a connection or provider policy. */
21982
+ 409: {
21983
+ headers: {
21984
+ [name: string]: unknown;
21985
+ };
21986
+ content: {
21987
+ "application/json": {
21988
+ authorityId: string;
21989
+ /** @enum {string} */
21990
+ authorityType: "connection" | "policy";
21991
+ /** @enum {string} */
21992
+ code: "ORGANIZATION_CONNECTION_MIGRATED";
21993
+ error: string;
21994
+ };
21995
+ };
21996
+ };
21930
21997
  /** @description Internal server error */
21931
21998
  500: {
21932
21999
  headers: {
@@ -22005,6 +22072,22 @@ interface paths {
22005
22072
  "application/json": components["schemas"]["Error"];
22006
22073
  };
22007
22074
  };
22075
+ /** @description The organization credential has moved to the normalized connection plane. The legacy route refuses the mutation and identifies whether the blocking authority is a connection or provider policy. */
22076
+ 409: {
22077
+ headers: {
22078
+ [name: string]: unknown;
22079
+ };
22080
+ content: {
22081
+ "application/json": {
22082
+ authorityId: string;
22083
+ /** @enum {string} */
22084
+ authorityType: "connection" | "policy";
22085
+ /** @enum {string} */
22086
+ code: "ORGANIZATION_CONNECTION_MIGRATED";
22087
+ error: string;
22088
+ };
22089
+ };
22090
+ };
22008
22091
  /** @description Internal server error */
22009
22092
  500: {
22010
22093
  headers: {
@@ -22293,7 +22376,7 @@ interface paths {
22293
22376
  flowId?: string;
22294
22377
  /** @description Filter by agent ID */
22295
22378
  agentId?: string;
22296
- /** @description Filter by execution ID */
22379
+ /** @description Filter by runtime execution_id / executionSessionId (for example exec_... or otel-...), not the aex_... agent-execution row ID */
22297
22380
  executionId?: string;
22298
22381
  /** @description Filter by surface ID */
22299
22382
  surfaceId?: string;
@@ -22472,7 +22555,7 @@ interface paths {
22472
22555
  flowId?: string;
22473
22556
  /** @description Filter by agent ID */
22474
22557
  agentId?: string;
22475
- /** @description Filter by execution ID */
22558
+ /** @description Filter by runtime execution_id / executionSessionId (for example exec_... or otel-...), not the aex_... agent-execution row ID */
22476
22559
  executionId?: string;
22477
22560
  /** @description Filter by surface ID */
22478
22561
  surfaceId?: string;
@@ -22657,7 +22740,7 @@ interface paths {
22657
22740
  query?: never;
22658
22741
  header?: never;
22659
22742
  path: {
22660
- /** @description Execution ID to trace */
22743
+ /** @description Runtime execution_id / executionSessionId to trace (for example exec_... or otel-...), not the aex_... agent-execution row ID */
22661
22744
  executionId: string;
22662
22745
  };
22663
22746
  cookie?: never;
@@ -24865,8 +24948,15 @@ interface paths {
24865
24948
  "application/json": {
24866
24949
  data: {
24867
24950
  configScope?: string;
24951
+ /**
24952
+ * @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
24953
+ * @enum {string}
24954
+ */
24955
+ configurationStatus?: "ready" | "needs_configuration";
24868
24956
  costPer1kTokens?: number;
24869
24957
  createdAt: string;
24958
+ /** @description Nullable creation provenance for organization-owned model configurations; never authorization or execution authority. */
24959
+ createdByUserId?: string | null;
24870
24960
  creator?: string;
24871
24961
  creatorDisplayName?: string | null;
24872
24962
  displayName?: string;
@@ -24877,6 +24967,8 @@ interface paths {
24877
24967
  /** @enum {string} */
24878
24968
  keyStatus?: "platform" | "custom" | "needs_setup";
24879
24969
  maxOutputTokens?: number;
24970
+ /** @description Number of preserved legacy candidates considered during organization migration. Candidate settings remain internal. */
24971
+ migrationCandidateCount?: number;
24880
24972
  modelId: string;
24881
24973
  /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
24882
24974
  organizationConnectionId?: string | null;
@@ -24900,7 +24992,8 @@ interface paths {
24900
24992
  supportsSearch?: boolean;
24901
24993
  supportsStreaming?: boolean;
24902
24994
  updatedAt: string;
24903
- userId: string;
24995
+ /** @description Legacy actor owner for personal/compatibility rows. Null for organization-owned model configurations. */
24996
+ userId: string | null;
24904
24997
  }[];
24905
24998
  total: number;
24906
24999
  };
@@ -24997,8 +25090,15 @@ interface paths {
24997
25090
  content: {
24998
25091
  "application/json": {
24999
25092
  configScope?: string;
25093
+ /**
25094
+ * @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
25095
+ * @enum {string}
25096
+ */
25097
+ configurationStatus?: "ready" | "needs_configuration";
25000
25098
  costPer1kTokens?: number;
25001
25099
  createdAt: string;
25100
+ /** @description Nullable creation provenance for organization-owned model configurations; never authorization or execution authority. */
25101
+ createdByUserId?: string | null;
25002
25102
  creator?: string;
25003
25103
  creatorDisplayName?: string | null;
25004
25104
  displayName?: string;
@@ -25009,6 +25109,8 @@ interface paths {
25009
25109
  /** @enum {string} */
25010
25110
  keyStatus?: "platform" | "custom" | "needs_setup";
25011
25111
  maxOutputTokens?: number;
25112
+ /** @description Number of preserved legacy candidates considered during organization migration. Candidate settings remain internal. */
25113
+ migrationCandidateCount?: number;
25012
25114
  modelId: string;
25013
25115
  /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25014
25116
  organizationConnectionId?: string | null;
@@ -25032,7 +25134,8 @@ interface paths {
25032
25134
  supportsSearch?: boolean;
25033
25135
  supportsStreaming?: boolean;
25034
25136
  updatedAt: string;
25035
- userId: string;
25137
+ /** @description Legacy actor owner for personal/compatibility rows. Null for organization-owned model configurations. */
25138
+ userId: string | null;
25036
25139
  };
25037
25140
  };
25038
25141
  };
@@ -25072,6 +25175,30 @@ interface paths {
25072
25175
  "application/json": components["schemas"]["Error"];
25073
25176
  };
25074
25177
  };
25178
+ /** @description Organization model configuration migration conflict */
25179
+ 409: {
25180
+ headers: {
25181
+ [name: string]: unknown;
25182
+ };
25183
+ content: {
25184
+ "application/json": {
25185
+ /** @enum {string} */
25186
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
25187
+ configId: string;
25188
+ details: string;
25189
+ error: string;
25190
+ } | {
25191
+ candidateCount: number;
25192
+ /** @enum {string} */
25193
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
25194
+ configId: string;
25195
+ details: string;
25196
+ error: string;
25197
+ modelId: string;
25198
+ provider: string;
25199
+ };
25200
+ };
25201
+ };
25075
25202
  /** @description Internal server error */
25076
25203
  500: {
25077
25204
  headers: {
@@ -25569,8 +25696,15 @@ interface paths {
25569
25696
  content: {
25570
25697
  "application/json": {
25571
25698
  configScope?: string;
25699
+ /**
25700
+ * @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
25701
+ * @enum {string}
25702
+ */
25703
+ configurationStatus?: "ready" | "needs_configuration";
25572
25704
  costPer1kTokens?: number;
25573
25705
  createdAt: string;
25706
+ /** @description Nullable creation provenance for organization-owned model configurations; never authorization or execution authority. */
25707
+ createdByUserId?: string | null;
25574
25708
  creator?: string;
25575
25709
  creatorDisplayName?: string | null;
25576
25710
  displayName?: string;
@@ -25581,6 +25715,8 @@ interface paths {
25581
25715
  /** @enum {string} */
25582
25716
  keyStatus?: "platform" | "custom" | "needs_setup";
25583
25717
  maxOutputTokens?: number;
25718
+ /** @description Number of preserved legacy candidates considered during organization migration. Candidate settings remain internal. */
25719
+ migrationCandidateCount?: number;
25584
25720
  modelId: string;
25585
25721
  /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25586
25722
  organizationConnectionId?: string | null;
@@ -25604,7 +25740,8 @@ interface paths {
25604
25740
  supportsSearch?: boolean;
25605
25741
  supportsStreaming?: boolean;
25606
25742
  updatedAt: string;
25607
- userId: string;
25743
+ /** @description Legacy actor owner for personal/compatibility rows. Null for organization-owned model configurations. */
25744
+ userId: string | null;
25608
25745
  };
25609
25746
  };
25610
25747
  };
@@ -25644,6 +25781,30 @@ interface paths {
25644
25781
  "application/json": components["schemas"]["Error"];
25645
25782
  };
25646
25783
  };
25784
+ /** @description Organization model configuration migration conflict */
25785
+ 409: {
25786
+ headers: {
25787
+ [name: string]: unknown;
25788
+ };
25789
+ content: {
25790
+ "application/json": {
25791
+ /** @enum {string} */
25792
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
25793
+ configId: string;
25794
+ details: string;
25795
+ error: string;
25796
+ } | {
25797
+ candidateCount: number;
25798
+ /** @enum {string} */
25799
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
25800
+ configId: string;
25801
+ details: string;
25802
+ error: string;
25803
+ modelId: string;
25804
+ provider: string;
25805
+ };
25806
+ };
25807
+ };
25647
25808
  /** @description Internal server error */
25648
25809
  500: {
25649
25810
  headers: {
@@ -25714,6 +25875,30 @@ interface paths {
25714
25875
  "application/json": components["schemas"]["Error"];
25715
25876
  };
25716
25877
  };
25878
+ /** @description Organization model configuration migration conflict */
25879
+ 409: {
25880
+ headers: {
25881
+ [name: string]: unknown;
25882
+ };
25883
+ content: {
25884
+ "application/json": {
25885
+ /** @enum {string} */
25886
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
25887
+ configId: string;
25888
+ details: string;
25889
+ error: string;
25890
+ } | {
25891
+ candidateCount: number;
25892
+ /** @enum {string} */
25893
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
25894
+ configId: string;
25895
+ details: string;
25896
+ error: string;
25897
+ modelId: string;
25898
+ provider: string;
25899
+ };
25900
+ };
25901
+ };
25717
25902
  /** @description Internal server error */
25718
25903
  500: {
25719
25904
  headers: {
@@ -25767,8 +25952,15 @@ interface paths {
25767
25952
  "application/json": {
25768
25953
  data: {
25769
25954
  configScope?: string;
25955
+ /**
25956
+ * @description Organization configuration readiness. `needs_configuration` means conflicting legacy teammate settings were preserved and execution fails closed until an authorized actor deliberately updates the canonical row.
25957
+ * @enum {string}
25958
+ */
25959
+ configurationStatus?: "ready" | "needs_configuration";
25770
25960
  costPer1kTokens?: number;
25771
25961
  createdAt: string;
25962
+ /** @description Nullable creation provenance for organization-owned model configurations; never authorization or execution authority. */
25963
+ createdByUserId?: string | null;
25772
25964
  creator?: string;
25773
25965
  creatorDisplayName?: string | null;
25774
25966
  displayName?: string;
@@ -25779,6 +25971,8 @@ interface paths {
25779
25971
  /** @enum {string} */
25780
25972
  keyStatus?: "platform" | "custom" | "needs_setup";
25781
25973
  maxOutputTokens?: number;
25974
+ /** @description Number of preserved legacy candidates considered during organization migration. Candidate settings remain internal. */
25975
+ migrationCandidateCount?: number;
25782
25976
  modelId: string;
25783
25977
  /** @description Normalized organization-owned connection reference. Null for platform selection, personal credentials, and providers that have not migrated. */
25784
25978
  organizationConnectionId?: string | null;
@@ -25802,7 +25996,8 @@ interface paths {
25802
25996
  supportsSearch?: boolean;
25803
25997
  supportsStreaming?: boolean;
25804
25998
  updatedAt: string;
25805
- userId: string;
25999
+ /** @description Legacy actor owner for personal/compatibility rows. Null for organization-owned model configurations. */
26000
+ userId: string | null;
25806
26001
  };
25807
26002
  message: string;
25808
26003
  success: boolean;
@@ -25845,6 +26040,30 @@ interface paths {
25845
26040
  "application/json": components["schemas"]["Error"];
25846
26041
  };
25847
26042
  };
26043
+ /** @description Organization model configuration migration conflict */
26044
+ 409: {
26045
+ headers: {
26046
+ [name: string]: unknown;
26047
+ };
26048
+ content: {
26049
+ "application/json": {
26050
+ /** @enum {string} */
26051
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
26052
+ configId: string;
26053
+ details: string;
26054
+ error: string;
26055
+ } | {
26056
+ candidateCount: number;
26057
+ /** @enum {string} */
26058
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
26059
+ configId: string;
26060
+ details: string;
26061
+ error: string;
26062
+ modelId: string;
26063
+ provider: string;
26064
+ };
26065
+ };
26066
+ };
25848
26067
  /** @description Internal server error */
25849
26068
  500: {
25850
26069
  headers: {
@@ -25940,6 +26159,30 @@ interface paths {
25940
26159
  "application/json": components["schemas"]["Error"];
25941
26160
  };
25942
26161
  };
26162
+ /** @description Organization model configuration migration conflict */
26163
+ 409: {
26164
+ headers: {
26165
+ [name: string]: unknown;
26166
+ };
26167
+ content: {
26168
+ "application/json": {
26169
+ /** @enum {string} */
26170
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
26171
+ configId: string;
26172
+ details: string;
26173
+ error: string;
26174
+ } | {
26175
+ candidateCount: number;
26176
+ /** @enum {string} */
26177
+ code: "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION";
26178
+ configId: string;
26179
+ details: string;
26180
+ error: string;
26181
+ modelId: string;
26182
+ provider: string;
26183
+ };
26184
+ };
26185
+ };
25943
26186
  /** @description Internal server error */
25944
26187
  500: {
25945
26188
  headers: {
@@ -32808,7 +33051,7 @@ interface paths {
32808
33051
  put?: never;
32809
33052
  /**
32810
33053
  * Create a provider key
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.
33054
+ * @description Creates a provider credential for the active account. In an organization, Braintrust and migrated model providers (currently OpenAI, Anthropic, Google, xAI, Mixlayer, Vercel AI Gateway, Together.ai, Tinfoil, Amazon Bedrock, Vertex AI, Vertex AI (Claude), and generic-openai) create organization-owned connections and return connection IDs. For OpenAI, Anthropic, Google, and xAI, isDefault=true selects organization BYOK authority; false stores the connection without changing custody. Mixlayer, Vercel AI Gateway, Together.ai, Tinfoil, Amazon Bedrock, Vertex AI, Vertex AI (Claude), and generic-openai creates are always storage-only; use the organization-policy endpoint to select one explicitly. Personal accounts and providers that have not migrated retain provider-key ownership. Requires BYOK entitlement.
32812
33055
  */
32813
33056
  post: {
32814
33057
  parameters: {
@@ -33021,10 +33264,15 @@ interface paths {
33021
33264
  content: {
33022
33265
  "application/json": {
33023
33266
  /** @enum {string} */
33024
- provider: "openai" | "anthropic" | "google" | "xai";
33025
- selection: "platform" | {
33267
+ provider: "openai" | "anthropic" | "google" | "xai" | "mixlayer" | "vercel" | "tinfoil" | "bedrock" | "generic-openai" | "togetherai" | "vertex" | "vertex-anthropic";
33268
+ selection: {
33026
33269
  connectionId: string;
33027
33270
  };
33271
+ } | {
33272
+ /** @enum {string} */
33273
+ provider: "openai" | "anthropic" | "google" | "xai" | "mixlayer" | "vercel";
33274
+ /** @enum {string} */
33275
+ selection: "platform";
33028
33276
  };
33029
33277
  };
33030
33278
  };
@@ -33126,6 +33374,8 @@ interface paths {
33126
33374
  };
33127
33375
  content: {
33128
33376
  "application/json": {
33377
+ /** @enum {string|null} */
33378
+ organizationPolicy?: "organization-byok-required" | "organization-byok-with-platform-fallback" | "platform-managed" | null;
33129
33379
  providerKeys: {
33130
33380
  createdAt: string;
33131
33381
  id: string;
@@ -33254,7 +33504,7 @@ interface paths {
33254
33504
  "application/json": components["schemas"]["Error"];
33255
33505
  };
33256
33506
  };
33257
- /** @description Legacy ID replacement during mixed-version rollout */
33507
+ /** @description Credential or model inventory moved during mixed-version rollout */
33258
33508
  409: {
33259
33509
  headers: {
33260
33510
  [name: string]: unknown;
@@ -33265,6 +33515,12 @@ interface paths {
33265
33515
  code: "ORGANIZATION_CONNECTION_MIGRATED";
33266
33516
  error: string;
33267
33517
  replacementId: string;
33518
+ } | {
33519
+ /** @enum {string} */
33520
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
33521
+ configId: string;
33522
+ details: string;
33523
+ error: string;
33268
33524
  };
33269
33525
  };
33270
33526
  };
@@ -33426,14 +33682,14 @@ interface paths {
33426
33682
  put?: never;
33427
33683
  /**
33428
33684
  * Discover models from existing key
33429
- * @description Discover available models from an existing generic-openai provider key.
33685
+ * @description Discover available models from an existing generic-openai provider key or organization connection.
33430
33686
  */
33431
33687
  post: {
33432
33688
  parameters: {
33433
33689
  query?: never;
33434
33690
  header?: never;
33435
33691
  path: {
33436
- /** @description Provider key ID */
33692
+ /** @description Provider key or organization connection ID */
33437
33693
  id: string;
33438
33694
  };
33439
33695
  cookie?: never;
@@ -33527,14 +33783,14 @@ interface paths {
33527
33783
  put?: never;
33528
33784
  /**
33529
33785
  * Sync models for a provider key
33530
- * @description Sync and upsert model configurations for a generic-openai provider key.
33786
+ * @description Sync and upsert model configurations for a generic-openai provider key or organization connection.
33531
33787
  */
33532
33788
  post: {
33533
33789
  parameters: {
33534
33790
  query?: never;
33535
33791
  header?: never;
33536
33792
  path: {
33537
- /** @description Provider key ID */
33793
+ /** @description Provider key or organization connection ID */
33538
33794
  id: string;
33539
33795
  };
33540
33796
  cookie?: never;
@@ -33612,7 +33868,7 @@ interface paths {
33612
33868
  "application/json": components["schemas"]["Error"];
33613
33869
  };
33614
33870
  };
33615
- /** @description Organization connection is managed by a newer Worker */
33871
+ /** @description Organization connection or model inventory is managed by a newer Worker */
33616
33872
  409: {
33617
33873
  headers: {
33618
33874
  [name: string]: unknown;
@@ -33623,6 +33879,12 @@ interface paths {
33623
33879
  code: "ORGANIZATION_CONNECTION_MIGRATED";
33624
33880
  error: string;
33625
33881
  replacementId: string;
33882
+ } | {
33883
+ /** @enum {string} */
33884
+ code: "ORGANIZATION_MODEL_CONFIG_MIGRATED";
33885
+ configId: string;
33886
+ details: string;
33887
+ error: string;
33626
33888
  };
33627
33889
  };
33628
33890
  };
@@ -40981,80 +41243,6 @@ interface paths {
40981
41243
  patch?: never;
40982
41244
  trace?: never;
40983
41245
  };
40984
- "/v1/skills/scan": {
40985
- parameters: {
40986
- query?: never;
40987
- header?: never;
40988
- path?: never;
40989
- cookie?: never;
40990
- };
40991
- get?: never;
40992
- put?: never;
40993
- /**
40994
- * Scan a skill for malicious patterns
40995
- * @description Statically scan a SKILL.md string (`markdown`) or structured manifest (`frontmatter` + `body`) and return a two-tier verdict (warning when suspected malicious, error when high-confidence malicious). Does not persist or gate.
40996
- */
40997
- post: {
40998
- parameters: {
40999
- query?: never;
41000
- header?: never;
41001
- path?: never;
41002
- cookie?: never;
41003
- };
41004
- requestBody?: {
41005
- content: {
41006
- "application/json": {
41007
- [key: string]: unknown;
41008
- };
41009
- };
41010
- };
41011
- responses: {
41012
- /** @description Scan verdict */
41013
- 200: {
41014
- headers: {
41015
- [name: string]: unknown;
41016
- };
41017
- content: {
41018
- "application/json": {
41019
- [key: string]: unknown;
41020
- };
41021
- };
41022
- };
41023
- /** @description Invalid manifest */
41024
- 400: {
41025
- headers: {
41026
- [name: string]: unknown;
41027
- };
41028
- content: {
41029
- "application/json": components["schemas"]["Error"];
41030
- };
41031
- };
41032
- /** @description Unauthorized */
41033
- 401: {
41034
- headers: {
41035
- [name: string]: unknown;
41036
- };
41037
- content: {
41038
- "application/json": components["schemas"]["Error"];
41039
- };
41040
- };
41041
- /** @description Insufficient permissions */
41042
- 403: {
41043
- headers: {
41044
- [name: string]: unknown;
41045
- };
41046
- content: {
41047
- "application/json": components["schemas"]["Error"];
41048
- };
41049
- };
41050
- };
41051
- };
41052
- delete?: never;
41053
- options?: never;
41054
- head?: never;
41055
- patch?: never;
41056
- trace?: never;
41057
- };
41058
41246
  "/v1/skills/{id}": {
41059
41247
  parameters: {
41060
41248
  query?: never;
@@ -43612,7 +43800,6 @@ interface paths {
43612
43800
  enableRuntown: boolean;
43613
43801
  enableRuntypeApps: boolean;
43614
43802
  enableSelfServeOauthClients: boolean;
43615
- enableSkillScanner: boolean;
43616
43803
  enableVoice: boolean;
43617
43804
  enableWorkspaceModel: boolean;
43618
43805
  workspaceModelEligible: boolean;
@@ -47609,6 +47796,10 @@ interface ApiKey {
47609
47796
  }
47610
47797
  interface ModelConfig {
47611
47798
  id: string;
47799
+ /** Legacy actor owner. Null for organization-owned model configurations. */
47800
+ userId?: string | null;
47801
+ /** Nullable creation provenance; never authorization or execution authority. */
47802
+ createdByUserId?: string | null;
47612
47803
  provider: string;
47613
47804
  modelId: string;
47614
47805
  displayName?: string;
@@ -47634,6 +47825,10 @@ interface ModelConfig {
47634
47825
  providerKeyId?: string | null;
47635
47826
  /** Normalized organization-owned connection reference; null for platform and personal credentials. */
47636
47827
  organizationConnectionId?: string | null;
47828
+ /** Organization conflict readiness; unresolved rows fail closed at execution. */
47829
+ configurationStatus?: 'ready' | 'needs_configuration';
47830
+ /** Count of preserved legacy candidates; candidate contents remain internal. */
47831
+ migrationCandidateCount?: number;
47637
47832
  requiresIntegration?: string;
47638
47833
  apiKey?: string;
47639
47834
  scope?: 'personal' | 'organization';
@@ -51243,43 +51438,6 @@ interface SkillManifestInput {
51243
51438
  }
51244
51439
  /** A skill create/update payload — either a SKILL.md string or a manifest. */
51245
51440
  type SkillWriteInput = SkillMarkdownInput | SkillManifestInput;
51246
- /** Per-finding tier surfaced to the user. */
51247
- interface SkillScanFinding {
51248
- ruleId: string;
51249
- category: string | null;
51250
- severity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
51251
- confidence: number;
51252
- tier: 'warning' | 'error';
51253
- hardBlock: boolean;
51254
- message: string;
51255
- file: string;
51256
- startLine: number;
51257
- remediation: string | null;
51258
- }
51259
- /** Two-tier verdict over a skill scan. `tier` is authoritative. */
51260
- interface SkillScanVerdict {
51261
- tier: 'clean' | 'warning' | 'error';
51262
- riskScore: number;
51263
- riskSeverity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
51264
- recommendation: 'SAFE' | 'CAUTION' | 'DO_NOT_INSTALL';
51265
- errors: SkillScanFinding[];
51266
- warnings: SkillScanFinding[];
51267
- summary: string;
51268
- scannerVersion: string;
51269
- verdictVersion: number;
51270
- }
51271
- /** The `POST /v1/skills/scan` response. */
51272
- interface SkillScanResult {
51273
- status: 'passed' | 'warning' | 'blocked' | 'scanner_error';
51274
- verdict: SkillScanVerdict;
51275
- reportBody: string;
51276
- scannerVersion: string;
51277
- completedAt: string;
51278
- error?: {
51279
- code: string;
51280
- message: string;
51281
- };
51282
- }
51283
51441
  /** Options for binding a skill to an agent. */
51284
51442
  interface BindSkillInput {
51285
51443
  agentId: string;
@@ -51440,19 +51598,6 @@ declare class SkillsNamespace {
51440
51598
  * ```
51441
51599
  */
51442
51600
  publishVersion(skillId: string, versionId: string): Promise<void>;
51443
- /**
51444
- * Statically scan a SKILL.md document for malicious patterns and return a
51445
- * two-tier verdict — `warning` when a skill appears suspicious (low–medium
51446
- * confidence), `error` when high-confidence malicious. Does not persist or
51447
- * gate; use it as a "scan before save" affordance.
51448
- *
51449
- * @example
51450
- * ```typescript
51451
- * const { verdict } = await Runtype.skills.scan(skillMarkdown)
51452
- * if (verdict.tier === 'error') console.warn(verdict.summary)
51453
- * ```
51454
- */
51455
- scan(markdown: string): Promise<SkillScanResult>;
51456
51601
  /**
51457
51602
  * Import a single SKILL.md document. The imported skill lands with
51458
51603
  * `trustLevel: 'imported'` and a draft version.
@@ -53726,15 +53871,17 @@ declare class ProviderKeysEndpoint {
53726
53871
  models: DiscoveredModel[];
53727
53872
  }>;
53728
53873
  /**
53729
- * Discover models from the endpoint of an existing generic-openai provider key.
53874
+ * Discover models from the endpoint of an existing generic-openai provider
53875
+ * key or organization connection.
53730
53876
  */
53731
53877
  discoverModelsForKey(id: string): Promise<{
53732
53878
  models: DiscoveredModel[];
53733
53879
  }>;
53734
53880
  /**
53735
- * Set the discrete model list for a generic-openai provider key. Pass the
53736
- * discovered models, or a hand-authored list when the endpoint has no
53737
- * `/v1/models`. An empty array removes all models for the key.
53881
+ * Set the discrete model list for a generic-openai provider key or
53882
+ * organization connection. Pass the discovered models, or a hand-authored
53883
+ * list when the endpoint has no `/v1/models`. An empty array removes all
53884
+ * models for that credential.
53738
53885
  */
53739
53886
  syncModels(id: string, models: ProviderKeyModel[]): Promise<{
53740
53887
  success: boolean;
@@ -57657,4 +57804,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
57657
57804
  declare function getDefaultPlanPath(taskName: string): string;
57658
57805
  declare function sanitizeTaskSlug(taskName: string): string;
57659
57806
 
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 };
57807
+ 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 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 };