librechat-data-provider 0.8.522 → 0.8.523

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.
Files changed (46) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-Bx6IFaSa.mjs} +638 -27
  2. package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CTX0tVO5.js} +871 -26
  4. package/dist/data-service-CTX0tVO5.js.map +1 -0
  5. package/dist/index.js +557 -19
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +491 -20
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +1 -1
  10. package/dist/react-query/index.mjs +1 -1
  11. package/dist/types/accessPermissions.d.ts +54 -1
  12. package/dist/types/api-endpoints.d.ts +6 -0
  13. package/dist/types/bedrock.d.ts +80 -20
  14. package/dist/types/code/approval.d.ts +26 -0
  15. package/dist/types/code/worker.d.ts +10 -0
  16. package/dist/types/code/workspace.d.ts +28 -0
  17. package/dist/types/codeEnvRef.d.ts +5 -0
  18. package/dist/types/config.d.ts +6062 -3828
  19. package/dist/types/data-service.d.ts +8 -0
  20. package/dist/types/errors.d.ts +2 -0
  21. package/dist/types/file-config.d.ts +137 -9
  22. package/dist/types/filters.d.ts +176 -176
  23. package/dist/types/generate.d.ts +28 -4
  24. package/dist/types/index.d.ts +7 -0
  25. package/dist/types/keys.d.ts +11 -1
  26. package/dist/types/mcp.d.ts +336 -330
  27. package/dist/types/messages.d.ts +19 -0
  28. package/dist/types/models.d.ts +367 -238
  29. package/dist/types/parameterSettings.d.ts +8 -0
  30. package/dist/types/providers.d.ts +1 -0
  31. package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
  32. package/dist/types/schemas.d.ts +628 -317
  33. package/dist/types/svg.d.ts +34 -0
  34. package/dist/types/types/agents.d.ts +24 -0
  35. package/dist/types/types/assistants.d.ts +27 -3
  36. package/dist/types/types/files.d.ts +34 -0
  37. package/dist/types/types/insights.d.ts +9 -0
  38. package/dist/types/types/queries.d.ts +8 -1
  39. package/dist/types/types/queuedTurns.d.ts +16 -16
  40. package/dist/types/types/runs.d.ts +24 -5
  41. package/dist/types/types/schedules.d.ts +44 -11
  42. package/dist/types/types/traces.d.ts +85 -0
  43. package/dist/types/types.d.ts +41 -1
  44. package/package.json +2 -2
  45. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  46. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -56,6 +56,14 @@ export declare const isOpenAILikeProvider: (provider?: string | null) => boolean
56
56
  export declare const cacheSubsetProviders: Set<string>;
57
57
  export declare const inputTokensIncludesCache: (provider?: string | null) => boolean;
58
58
  export declare const isDocumentSupportedProvider: (provider?: string | null) => boolean;
59
+ /**
60
+ * Endpoints whose encoders actually build native audio/video payloads. Narrower than
61
+ * `documentSupportedProviders`: a provider can accept PDFs and still emit nothing for
62
+ * media, in which case the upload has to fall back to text/STT.
63
+ */
64
+ export declare const mediaSupportedProviders: Set<string>;
65
+ export declare const isMediaSupportedProvider: (provider?: string | null) => boolean;
66
+ export declare const isKnownProviderIdentifier: (provider?: string | null) => boolean;
59
67
  export declare const paramEndpoints: Set<string>;
60
68
  export declare enum BedrockProviders {
61
69
  AI21 = "ai21",
@@ -222,6 +230,7 @@ export declare const defaultAgentFormValues: {
222
230
  memory: boolean;
223
231
  stateful_code_environment: "user";
224
232
  code_environment_id: string | null | undefined;
233
+ code_workspace_id: string | undefined;
225
234
  category: string;
226
235
  support_contact: {
227
236
  name: string;
@@ -950,15 +959,15 @@ export declare const tMessageSchema: z.ZodObject<{
950
959
  } & {
951
960
  agentId: z.ZodString;
952
961
  }, "strip", z.ZodTypeAny, {
962
+ agentId: string;
953
963
  v: 1;
954
964
  budgetTokens: number;
955
965
  masked: boolean;
956
- agentId: string;
957
966
  }, {
967
+ agentId: string;
958
968
  v: 1;
959
969
  budgetTokens: number;
960
970
  masked: boolean;
961
- agentId: string;
962
971
  }>, "many">>;
963
972
  }, "strip", z.ZodTypeAny, {
964
973
  calibrationRatio?: number | undefined;
@@ -969,10 +978,10 @@ export declare const tMessageSchema: z.ZodObject<{
969
978
  masked: boolean;
970
979
  } | undefined;
971
980
  fadingTiers?: {
981
+ agentId: string;
972
982
  v: 1;
973
983
  budgetTokens: number;
974
984
  masked: boolean;
975
- agentId: string;
976
985
  }[] | undefined;
977
986
  }, {
978
987
  calibrationRatio?: number | undefined;
@@ -983,10 +992,10 @@ export declare const tMessageSchema: z.ZodObject<{
983
992
  masked: boolean;
984
993
  } | undefined;
985
994
  fadingTiers?: {
995
+ agentId: string;
986
996
  v: 1;
987
997
  budgetTokens: number;
988
998
  masked: boolean;
989
- agentId: string;
990
999
  }[] | undefined;
991
1000
  }>>;
992
1001
  /**
@@ -1015,16 +1024,18 @@ export declare const tMessageSchema: z.ZodObject<{
1015
1024
  */
1016
1025
  quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
1026
  }, "strip", z.ZodTypeAny, {
1027
+ text: string;
1018
1028
  conversationId: string | null;
1019
1029
  title: string | null;
1020
1030
  parentMessageId: string | null;
1021
1031
  createdAt: string;
1022
1032
  updatedAt: string;
1023
- text: string;
1024
1033
  messageId: string;
1025
1034
  isCreatedByUser: boolean;
1026
- model?: string | null | undefined;
1027
1035
  endpoint?: string | undefined;
1036
+ metadata?: Record<string, unknown> | undefined;
1037
+ model?: string | null | undefined;
1038
+ error?: boolean | undefined;
1028
1039
  iconURL?: string | null | undefined;
1029
1040
  expiredAt?: string | null | undefined;
1030
1041
  isTemporary?: boolean | undefined;
@@ -1040,7 +1051,6 @@ export declare const tMessageSchema: z.ZodObject<{
1040
1051
  path: string;
1041
1052
  field: "answer" | "decision_response" | "decision_reason";
1042
1053
  }[] | undefined;
1043
- error?: boolean | undefined;
1044
1054
  clientTimestamp?: string | undefined;
1045
1055
  current?: boolean | undefined;
1046
1056
  unfinished?: boolean | undefined;
@@ -1052,7 +1062,6 @@ export declare const tMessageSchema: z.ZodObject<{
1052
1062
  tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1053
1063
  text?: string | undefined;
1054
1064
  } | undefined;
1055
- metadata?: Record<string, unknown> | undefined;
1056
1065
  tokenCount?: number | undefined;
1057
1066
  contextMeta?: {
1058
1067
  calibrationRatio?: number | undefined;
@@ -1063,23 +1072,25 @@ export declare const tMessageSchema: z.ZodObject<{
1063
1072
  masked: boolean;
1064
1073
  } | undefined;
1065
1074
  fadingTiers?: {
1075
+ agentId: string;
1066
1076
  v: 1;
1067
1077
  budgetTokens: number;
1068
1078
  masked: boolean;
1069
- agentId: string;
1070
1079
  }[] | undefined;
1071
1080
  } | undefined;
1072
1081
  manualSkills?: string[] | undefined;
1073
1082
  alwaysAppliedSkills?: string[] | undefined;
1074
1083
  quotes?: string[] | undefined;
1075
1084
  }, {
1085
+ text: string;
1076
1086
  conversationId: string | null;
1077
1087
  parentMessageId: string | null;
1078
- text: string;
1079
1088
  messageId: string;
1080
1089
  isCreatedByUser: boolean;
1081
- model?: string | null | undefined;
1082
1090
  endpoint?: string | undefined;
1091
+ metadata?: Record<string, unknown> | undefined;
1092
+ model?: string | null | undefined;
1093
+ error?: boolean | undefined;
1083
1094
  title?: string | null | undefined;
1084
1095
  createdAt?: string | undefined;
1085
1096
  updatedAt?: string | undefined;
@@ -1098,7 +1109,6 @@ export declare const tMessageSchema: z.ZodObject<{
1098
1109
  path: string;
1099
1110
  field: "answer" | "decision_response" | "decision_reason";
1100
1111
  }[] | undefined;
1101
- error?: boolean | undefined;
1102
1112
  clientTimestamp?: string | undefined;
1103
1113
  current?: boolean | undefined;
1104
1114
  unfinished?: boolean | undefined;
@@ -1110,7 +1120,6 @@ export declare const tMessageSchema: z.ZodObject<{
1110
1120
  tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1111
1121
  text?: string | undefined;
1112
1122
  } | undefined;
1113
- metadata?: Record<string, unknown> | undefined;
1114
1123
  tokenCount?: number | undefined;
1115
1124
  contextMeta?: {
1116
1125
  calibrationRatio?: number | undefined;
@@ -1121,10 +1130,10 @@ export declare const tMessageSchema: z.ZodObject<{
1121
1130
  masked: boolean;
1122
1131
  } | undefined;
1123
1132
  fadingTiers?: {
1133
+ agentId: string;
1124
1134
  v: 1;
1125
1135
  budgetTokens: number;
1126
1136
  masked: boolean;
1127
- agentId: string;
1128
1137
  }[] | undefined;
1129
1138
  } | undefined;
1130
1139
  manualSkills?: string[] | undefined;
@@ -1193,6 +1202,8 @@ export type TMessage = z.input<typeof tMessageSchema> & {
1193
1202
  siblingIndex?: number;
1194
1203
  attachments?: TAttachment[];
1195
1204
  clientTimestamp?: string;
1205
+ /** Client-only durable branch anchor while this message is an optimistic response. */
1206
+ clientQueueParentMessageId?: string;
1196
1207
  feedback?: TFeedback;
1197
1208
  };
1198
1209
  export declare const coerceNumber: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>;
@@ -1209,21 +1220,21 @@ export declare const subagentThreadLineageSchema: z.ZodObject<{
1209
1220
  subagentKind: z.ZodEnum<["agent", "graph"]>;
1210
1221
  depth: z.ZodNumber;
1211
1222
  }, "strip", z.ZodTypeAny, {
1223
+ subagentKind: "agent" | "graph";
1212
1224
  parentMessageId: string;
1213
1225
  rootConversationId: string;
1214
1226
  parentConversationId: string;
1215
1227
  parentToolCallId: string;
1216
1228
  subagentType: string;
1217
- subagentKind: "agent" | "graph";
1218
1229
  depth: number;
1219
1230
  parentAgentId?: string | undefined;
1220
1231
  }, {
1232
+ subagentKind: "agent" | "graph";
1221
1233
  parentMessageId: string;
1222
1234
  rootConversationId: string;
1223
1235
  parentConversationId: string;
1224
1236
  parentToolCallId: string;
1225
1237
  subagentType: string;
1226
- subagentKind: "agent" | "graph";
1227
1238
  depth: number;
1228
1239
  parentAgentId?: string | undefined;
1229
1240
  }>;
@@ -1238,6 +1249,18 @@ export declare const tConversationSchema: z.ZodObject<{
1238
1249
  pinned: z.ZodOptional<z.ZodBoolean>;
1239
1250
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
1240
1251
  isShared: z.ZodOptional<z.ZodBoolean>;
1252
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1253
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1254
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1255
+ environmentId: z.ZodString;
1256
+ workspaceId: z.ZodString;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ environmentId: string;
1259
+ workspaceId: string;
1260
+ }, {
1261
+ environmentId: string;
1262
+ workspaceId: string;
1263
+ }>, "many">>;
1241
1264
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1242
1265
  user: z.ZodOptional<z.ZodString>;
1243
1266
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1392,21 +1415,21 @@ export declare const tConversationSchema: z.ZodObject<{
1392
1415
  subagentKind: z.ZodEnum<["agent", "graph"]>;
1393
1416
  depth: z.ZodNumber;
1394
1417
  }, "strip", z.ZodTypeAny, {
1418
+ subagentKind: "agent" | "graph";
1395
1419
  parentMessageId: string;
1396
1420
  rootConversationId: string;
1397
1421
  parentConversationId: string;
1398
1422
  parentToolCallId: string;
1399
1423
  subagentType: string;
1400
- subagentKind: "agent" | "graph";
1401
1424
  depth: number;
1402
1425
  parentAgentId?: string | undefined;
1403
1426
  }, {
1427
+ subagentKind: "agent" | "graph";
1404
1428
  parentMessageId: string;
1405
1429
  rootConversationId: string;
1406
1430
  parentConversationId: string;
1407
1431
  parentToolCallId: string;
1408
1432
  subagentType: string;
1409
- subagentKind: "agent" | "graph";
1410
1433
  depth: number;
1411
1434
  parentAgentId?: string | undefined;
1412
1435
  }>>;
@@ -1430,20 +1453,17 @@ export declare const tConversationSchema: z.ZodObject<{
1430
1453
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
1431
1454
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1432
1455
  }, "strip", z.ZodTypeAny, {
1433
- conversationId: string | null;
1434
1456
  endpoint: EModelEndpoint | null;
1457
+ conversationId: string | null;
1435
1458
  title: string | null;
1436
1459
  createdAt: string;
1437
1460
  updatedAt: string;
1438
1461
  user?: string | undefined;
1439
- tags?: string[] | undefined;
1440
- model?: string | null | undefined;
1441
- endpointType?: EModelEndpoint | null | undefined;
1442
- isArchived?: boolean | undefined;
1443
- archivedAt?: string | null | undefined;
1444
- pinned?: boolean | undefined;
1445
- isShared?: boolean | undefined;
1446
- messages?: string[] | undefined;
1462
+ web_search?: boolean | undefined;
1463
+ context?: string | null | undefined;
1464
+ artifacts?: string | undefined;
1465
+ instructions?: string | undefined;
1466
+ additional_instructions?: string | undefined;
1447
1467
  tools?: string[] | {
1448
1468
  name: string;
1449
1469
  pluginKey: string;
@@ -1462,6 +1482,20 @@ export declare const tConversationSchema: z.ZodObject<{
1462
1482
  toolkit?: boolean | undefined;
1463
1483
  serverToolName?: string | undefined;
1464
1484
  }[] | undefined;
1485
+ model?: string | null | undefined;
1486
+ tags?: string[] | undefined;
1487
+ endpointType?: EModelEndpoint | null | undefined;
1488
+ isArchived?: boolean | undefined;
1489
+ archivedAt?: string | null | undefined;
1490
+ pinned?: boolean | undefined;
1491
+ isShared?: boolean | undefined;
1492
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1493
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1494
+ codeWorkspaces?: {
1495
+ environmentId: string;
1496
+ workspaceId: string;
1497
+ }[] | undefined;
1498
+ messages?: string[] | undefined;
1465
1499
  modelLabel?: string | null | undefined;
1466
1500
  userLabel?: string | undefined;
1467
1501
  promptPrefix?: string | null | undefined;
@@ -1482,8 +1516,6 @@ export declare const tConversationSchema: z.ZodObject<{
1482
1516
  thinkingBudget?: number | undefined;
1483
1517
  thinkingLevel?: ThinkingLevel | undefined;
1484
1518
  stream?: boolean | undefined;
1485
- artifacts?: string | undefined;
1486
- context?: string | null | undefined;
1487
1519
  examples?: {
1488
1520
  input: {
1489
1521
  content: string;
@@ -1504,26 +1536,23 @@ export declare const tConversationSchema: z.ZodObject<{
1504
1536
  useResponsesApi?: boolean | undefined;
1505
1537
  effort?: AnthropicEffort | null | undefined;
1506
1538
  thinkingDisplay?: ThinkingDisplay | null | undefined;
1507
- web_search?: boolean | undefined;
1508
1539
  url_context?: boolean | undefined;
1509
1540
  disableStreaming?: boolean | undefined;
1510
1541
  assistant_id?: string | undefined;
1511
1542
  agent_id?: string | undefined;
1512
1543
  subagentThread?: {
1544
+ subagentKind: "agent" | "graph";
1513
1545
  parentMessageId: string;
1514
1546
  rootConversationId: string;
1515
1547
  parentConversationId: string;
1516
1548
  parentToolCallId: string;
1517
1549
  subagentType: string;
1518
- subagentKind: "agent" | "graph";
1519
1550
  depth: number;
1520
1551
  parentAgentId?: string | undefined;
1521
1552
  } | undefined;
1522
1553
  region?: string | undefined;
1523
1554
  maxTokens?: number | undefined;
1524
1555
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1525
- instructions?: string | undefined;
1526
- additional_instructions?: string | undefined;
1527
1556
  append_current_datetime?: boolean | undefined;
1528
1557
  presetOverride?: Record<string, unknown> | undefined;
1529
1558
  stop?: string[] | undefined;
@@ -1536,20 +1565,16 @@ export declare const tConversationSchema: z.ZodObject<{
1536
1565
  resendImages?: boolean | undefined;
1537
1566
  chatGptLabel?: string | null | undefined;
1538
1567
  }, {
1539
- conversationId: string | null;
1540
1568
  endpoint: EModelEndpoint | null;
1569
+ conversationId: string | null;
1541
1570
  createdAt: string;
1542
1571
  updatedAt: string;
1543
1572
  user?: string | undefined;
1544
- tags?: string[] | undefined;
1545
- model?: string | null | undefined;
1546
- endpointType?: EModelEndpoint | null | undefined;
1547
- isArchived?: boolean | undefined;
1548
- archivedAt?: string | null | undefined;
1549
- pinned?: boolean | undefined;
1550
- isShared?: boolean | undefined;
1551
- title?: string | null | undefined;
1552
- messages?: string[] | undefined;
1573
+ web_search?: boolean | undefined;
1574
+ context?: string | null | undefined;
1575
+ artifacts?: string | undefined;
1576
+ instructions?: string | undefined;
1577
+ additional_instructions?: string | undefined;
1553
1578
  tools?: string[] | {
1554
1579
  name: string;
1555
1580
  pluginKey: string;
@@ -1568,6 +1593,21 @@ export declare const tConversationSchema: z.ZodObject<{
1568
1593
  toolkit?: boolean | undefined;
1569
1594
  serverToolName?: string | undefined;
1570
1595
  }[] | undefined;
1596
+ model?: string | null | undefined;
1597
+ tags?: string[] | undefined;
1598
+ endpointType?: EModelEndpoint | null | undefined;
1599
+ isArchived?: boolean | undefined;
1600
+ archivedAt?: string | null | undefined;
1601
+ pinned?: boolean | undefined;
1602
+ isShared?: boolean | undefined;
1603
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1604
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1605
+ codeWorkspaces?: {
1606
+ environmentId: string;
1607
+ workspaceId: string;
1608
+ }[] | undefined;
1609
+ title?: string | null | undefined;
1610
+ messages?: string[] | undefined;
1571
1611
  modelLabel?: string | null | undefined;
1572
1612
  userLabel?: string | undefined;
1573
1613
  promptPrefix?: string | null | undefined;
@@ -1588,8 +1628,6 @@ export declare const tConversationSchema: z.ZodObject<{
1588
1628
  thinkingBudget?: string | number | undefined;
1589
1629
  thinkingLevel?: ThinkingLevel | undefined;
1590
1630
  stream?: boolean | undefined;
1591
- artifacts?: string | undefined;
1592
- context?: string | null | undefined;
1593
1631
  examples?: {
1594
1632
  input: {
1595
1633
  content: string;
@@ -1610,26 +1648,23 @@ export declare const tConversationSchema: z.ZodObject<{
1610
1648
  useResponsesApi?: boolean | undefined;
1611
1649
  effort?: AnthropicEffort | null | undefined;
1612
1650
  thinkingDisplay?: ThinkingDisplay | null | undefined;
1613
- web_search?: boolean | undefined;
1614
1651
  url_context?: boolean | undefined;
1615
1652
  disableStreaming?: boolean | undefined;
1616
1653
  assistant_id?: string | undefined;
1617
1654
  agent_id?: string | undefined;
1618
1655
  subagentThread?: {
1656
+ subagentKind: "agent" | "graph";
1619
1657
  parentMessageId: string;
1620
1658
  rootConversationId: string;
1621
1659
  parentConversationId: string;
1622
1660
  parentToolCallId: string;
1623
1661
  subagentType: string;
1624
- subagentKind: "agent" | "graph";
1625
1662
  depth: number;
1626
1663
  parentAgentId?: string | undefined;
1627
1664
  } | undefined;
1628
1665
  region?: string | undefined;
1629
1666
  maxTokens?: string | number | undefined;
1630
1667
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1631
- instructions?: string | undefined;
1632
- additional_instructions?: string | undefined;
1633
1668
  append_current_datetime?: boolean | undefined;
1634
1669
  presetOverride?: Record<string, unknown> | undefined;
1635
1670
  stop?: string[] | undefined;
@@ -1644,14 +1679,11 @@ export declare const tConversationSchema: z.ZodObject<{
1644
1679
  }>;
1645
1680
  export declare const tPresetSchema: z.ZodObject<{
1646
1681
  user: z.ZodOptional<z.ZodString>;
1647
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1648
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
- endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1650
- isArchived: z.ZodOptional<z.ZodBoolean>;
1651
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
- pinned: z.ZodOptional<z.ZodBoolean>;
1653
- isShared: z.ZodOptional<z.ZodBoolean>;
1654
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1682
+ web_search: z.ZodOptional<z.ZodBoolean>;
1683
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1684
+ artifacts: z.ZodOptional<z.ZodString>;
1685
+ instructions: z.ZodOptional<z.ZodString>;
1686
+ additional_instructions: z.ZodOptional<z.ZodString>;
1655
1687
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1656
1688
  name: z.ZodString;
1657
1689
  pluginKey: z.ZodString;
@@ -1719,6 +1751,26 @@ export declare const tPresetSchema: z.ZodObject<{
1719
1751
  toolkit?: boolean | undefined;
1720
1752
  serverToolName?: string | undefined;
1721
1753
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1754
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1755
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1756
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1757
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1758
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1759
+ pinned: z.ZodOptional<z.ZodBoolean>;
1760
+ isShared: z.ZodOptional<z.ZodBoolean>;
1761
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1762
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1763
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1764
+ environmentId: z.ZodString;
1765
+ workspaceId: z.ZodString;
1766
+ }, "strict", z.ZodTypeAny, {
1767
+ environmentId: string;
1768
+ workspaceId: string;
1769
+ }, {
1770
+ environmentId: string;
1771
+ workspaceId: string;
1772
+ }>, "many">>;
1773
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1722
1774
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
1775
  userLabel: z.ZodOptional<z.ZodString>;
1724
1776
  promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1739,8 +1791,6 @@ export declare const tPresetSchema: z.ZodObject<{
1739
1791
  thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1740
1792
  thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
1741
1793
  stream: z.ZodOptional<z.ZodBoolean>;
1742
- artifacts: z.ZodOptional<z.ZodString>;
1743
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1744
1794
  examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1745
1795
  input: z.ZodObject<{
1746
1796
  content: z.ZodString;
@@ -1782,7 +1832,6 @@ export declare const tPresetSchema: z.ZodObject<{
1782
1832
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
1783
1833
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
1784
1834
  thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
1785
- web_search: z.ZodOptional<z.ZodBoolean>;
1786
1835
  url_context: z.ZodOptional<z.ZodBoolean>;
1787
1836
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
1788
1837
  assistant_id: z.ZodOptional<z.ZodString>;
@@ -1797,29 +1846,27 @@ export declare const tPresetSchema: z.ZodObject<{
1797
1846
  subagentKind: z.ZodEnum<["agent", "graph"]>;
1798
1847
  depth: z.ZodNumber;
1799
1848
  }, "strip", z.ZodTypeAny, {
1849
+ subagentKind: "agent" | "graph";
1800
1850
  parentMessageId: string;
1801
1851
  rootConversationId: string;
1802
1852
  parentConversationId: string;
1803
1853
  parentToolCallId: string;
1804
1854
  subagentType: string;
1805
- subagentKind: "agent" | "graph";
1806
1855
  depth: number;
1807
1856
  parentAgentId?: string | undefined;
1808
1857
  }, {
1858
+ subagentKind: "agent" | "graph";
1809
1859
  parentMessageId: string;
1810
1860
  rootConversationId: string;
1811
1861
  parentConversationId: string;
1812
1862
  parentToolCallId: string;
1813
1863
  subagentType: string;
1814
- subagentKind: "agent" | "graph";
1815
1864
  depth: number;
1816
1865
  parentAgentId?: string | undefined;
1817
1866
  }>>;
1818
1867
  region: z.ZodOptional<z.ZodString>;
1819
1868
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1820
1869
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1821
- instructions: z.ZodOptional<z.ZodString>;
1822
- additional_instructions: z.ZodOptional<z.ZodString>;
1823
1870
  append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1824
1871
  presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1825
1872
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1841,16 +1888,11 @@ export declare const tPresetSchema: z.ZodObject<{
1841
1888
  }, "strip", z.ZodTypeAny, {
1842
1889
  endpoint: string | null;
1843
1890
  user?: string | undefined;
1844
- tags?: string[] | undefined;
1845
- model?: string | null | undefined;
1846
- conversationId?: string | null | undefined;
1847
- endpointType?: EModelEndpoint | null | undefined;
1848
- isArchived?: boolean | undefined;
1849
- archivedAt?: string | null | undefined;
1850
- pinned?: boolean | undefined;
1851
- isShared?: boolean | undefined;
1852
- title?: string | null | undefined;
1853
- messages?: string[] | undefined;
1891
+ web_search?: boolean | undefined;
1892
+ context?: string | null | undefined;
1893
+ artifacts?: string | undefined;
1894
+ instructions?: string | undefined;
1895
+ additional_instructions?: string | undefined;
1854
1896
  tools?: string[] | {
1855
1897
  name: string;
1856
1898
  pluginKey: string;
@@ -1869,6 +1911,22 @@ export declare const tPresetSchema: z.ZodObject<{
1869
1911
  toolkit?: boolean | undefined;
1870
1912
  serverToolName?: string | undefined;
1871
1913
  }[] | undefined;
1914
+ model?: string | null | undefined;
1915
+ tags?: string[] | undefined;
1916
+ conversationId?: string | null | undefined;
1917
+ endpointType?: EModelEndpoint | null | undefined;
1918
+ isArchived?: boolean | undefined;
1919
+ archivedAt?: string | null | undefined;
1920
+ pinned?: boolean | undefined;
1921
+ isShared?: boolean | undefined;
1922
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1923
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1924
+ codeWorkspaces?: {
1925
+ environmentId: string;
1926
+ workspaceId: string;
1927
+ }[] | undefined;
1928
+ title?: string | null | undefined;
1929
+ messages?: string[] | undefined;
1872
1930
  modelLabel?: string | null | undefined;
1873
1931
  userLabel?: string | undefined;
1874
1932
  promptPrefix?: string | null | undefined;
@@ -1889,8 +1947,6 @@ export declare const tPresetSchema: z.ZodObject<{
1889
1947
  thinkingBudget?: number | undefined;
1890
1948
  thinkingLevel?: ThinkingLevel | undefined;
1891
1949
  stream?: boolean | undefined;
1892
- artifacts?: string | undefined;
1893
- context?: string | null | undefined;
1894
1950
  examples?: {
1895
1951
  input: {
1896
1952
  content: string;
@@ -1910,26 +1966,23 @@ export declare const tPresetSchema: z.ZodObject<{
1910
1966
  useResponsesApi?: boolean | undefined;
1911
1967
  effort?: AnthropicEffort | null | undefined;
1912
1968
  thinkingDisplay?: ThinkingDisplay | null | undefined;
1913
- web_search?: boolean | undefined;
1914
1969
  url_context?: boolean | undefined;
1915
1970
  disableStreaming?: boolean | undefined;
1916
1971
  assistant_id?: string | undefined;
1917
1972
  agent_id?: string | undefined;
1918
1973
  subagentThread?: {
1974
+ subagentKind: "agent" | "graph";
1919
1975
  parentMessageId: string;
1920
1976
  rootConversationId: string;
1921
1977
  parentConversationId: string;
1922
1978
  parentToolCallId: string;
1923
1979
  subagentType: string;
1924
- subagentKind: "agent" | "graph";
1925
1980
  depth: number;
1926
1981
  parentAgentId?: string | undefined;
1927
1982
  } | undefined;
1928
1983
  region?: string | undefined;
1929
1984
  maxTokens?: number | undefined;
1930
1985
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1931
- instructions?: string | undefined;
1932
- additional_instructions?: string | undefined;
1933
1986
  append_current_datetime?: boolean | undefined;
1934
1987
  presetOverride?: Record<string, unknown> | undefined;
1935
1988
  stop?: string[] | undefined;
@@ -1947,16 +2000,11 @@ export declare const tPresetSchema: z.ZodObject<{
1947
2000
  }, {
1948
2001
  endpoint: string | null;
1949
2002
  user?: string | undefined;
1950
- tags?: string[] | undefined;
1951
- model?: string | null | undefined;
1952
- conversationId?: string | null | undefined;
1953
- endpointType?: EModelEndpoint | null | undefined;
1954
- isArchived?: boolean | undefined;
1955
- archivedAt?: string | null | undefined;
1956
- pinned?: boolean | undefined;
1957
- isShared?: boolean | undefined;
1958
- title?: string | null | undefined;
1959
- messages?: string[] | undefined;
2003
+ web_search?: boolean | undefined;
2004
+ context?: string | null | undefined;
2005
+ artifacts?: string | undefined;
2006
+ instructions?: string | undefined;
2007
+ additional_instructions?: string | undefined;
1960
2008
  tools?: string[] | {
1961
2009
  name: string;
1962
2010
  pluginKey: string;
@@ -1975,6 +2023,22 @@ export declare const tPresetSchema: z.ZodObject<{
1975
2023
  toolkit?: boolean | undefined;
1976
2024
  serverToolName?: string | undefined;
1977
2025
  }[] | undefined;
2026
+ model?: string | null | undefined;
2027
+ tags?: string[] | undefined;
2028
+ conversationId?: string | null | undefined;
2029
+ endpointType?: EModelEndpoint | null | undefined;
2030
+ isArchived?: boolean | undefined;
2031
+ archivedAt?: string | null | undefined;
2032
+ pinned?: boolean | undefined;
2033
+ isShared?: boolean | undefined;
2034
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2035
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2036
+ codeWorkspaces?: {
2037
+ environmentId: string;
2038
+ workspaceId: string;
2039
+ }[] | undefined;
2040
+ title?: string | null | undefined;
2041
+ messages?: string[] | undefined;
1978
2042
  modelLabel?: string | null | undefined;
1979
2043
  userLabel?: string | undefined;
1980
2044
  promptPrefix?: string | null | undefined;
@@ -1995,8 +2059,6 @@ export declare const tPresetSchema: z.ZodObject<{
1995
2059
  thinkingBudget?: string | number | undefined;
1996
2060
  thinkingLevel?: ThinkingLevel | undefined;
1997
2061
  stream?: boolean | undefined;
1998
- artifacts?: string | undefined;
1999
- context?: string | null | undefined;
2000
2062
  examples?: {
2001
2063
  input: {
2002
2064
  content: string;
@@ -2016,26 +2078,23 @@ export declare const tPresetSchema: z.ZodObject<{
2016
2078
  useResponsesApi?: boolean | undefined;
2017
2079
  effort?: AnthropicEffort | null | undefined;
2018
2080
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2019
- web_search?: boolean | undefined;
2020
2081
  url_context?: boolean | undefined;
2021
2082
  disableStreaming?: boolean | undefined;
2022
2083
  assistant_id?: string | undefined;
2023
2084
  agent_id?: string | undefined;
2024
2085
  subagentThread?: {
2086
+ subagentKind: "agent" | "graph";
2025
2087
  parentMessageId: string;
2026
2088
  rootConversationId: string;
2027
2089
  parentConversationId: string;
2028
2090
  parentToolCallId: string;
2029
2091
  subagentType: string;
2030
- subagentKind: "agent" | "graph";
2031
2092
  depth: number;
2032
2093
  parentAgentId?: string | undefined;
2033
2094
  } | undefined;
2034
2095
  region?: string | undefined;
2035
2096
  maxTokens?: string | number | undefined;
2036
2097
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2037
- instructions?: string | undefined;
2038
- additional_instructions?: string | undefined;
2039
2098
  append_current_datetime?: boolean | undefined;
2040
2099
  presetOverride?: Record<string, unknown> | undefined;
2041
2100
  stop?: string[] | undefined;
@@ -2058,6 +2117,18 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2058
2117
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2059
2118
  pinned: z.ZodOptional<z.ZodBoolean>;
2060
2119
  isShared: z.ZodOptional<z.ZodBoolean>;
2120
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2121
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2122
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2123
+ environmentId: z.ZodString;
2124
+ workspaceId: z.ZodString;
2125
+ }, "strict", z.ZodTypeAny, {
2126
+ environmentId: string;
2127
+ workspaceId: string;
2128
+ }, {
2129
+ environmentId: string;
2130
+ workspaceId: string;
2131
+ }>, "many">>;
2061
2132
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2062
2133
  user: z.ZodOptional<z.ZodString>;
2063
2134
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2209,21 +2280,21 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2209
2280
  subagentKind: z.ZodEnum<["agent", "graph"]>;
2210
2281
  depth: z.ZodNumber;
2211
2282
  }, "strip", z.ZodTypeAny, {
2283
+ subagentKind: "agent" | "graph";
2212
2284
  parentMessageId: string;
2213
2285
  rootConversationId: string;
2214
2286
  parentConversationId: string;
2215
2287
  parentToolCallId: string;
2216
2288
  subagentType: string;
2217
- subagentKind: "agent" | "graph";
2218
2289
  depth: number;
2219
2290
  parentAgentId?: string | undefined;
2220
2291
  }, {
2292
+ subagentKind: "agent" | "graph";
2221
2293
  parentMessageId: string;
2222
2294
  rootConversationId: string;
2223
2295
  parentConversationId: string;
2224
2296
  parentToolCallId: string;
2225
2297
  subagentType: string;
2226
- subagentKind: "agent" | "graph";
2227
2298
  depth: number;
2228
2299
  parentAgentId?: string | undefined;
2229
2300
  }>>;
@@ -2248,18 +2319,15 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2248
2319
  createdAt: z.ZodOptional<z.ZodString>;
2249
2320
  updatedAt: z.ZodOptional<z.ZodString>;
2250
2321
  }, "strip", z.ZodTypeAny, {
2251
- conversationId: string | null;
2252
2322
  endpoint: string | null;
2323
+ conversationId: string | null;
2253
2324
  title: string | null;
2254
2325
  user?: string | undefined;
2255
- tags?: string[] | undefined;
2256
- model?: string | null | undefined;
2257
- endpointType?: EModelEndpoint | null | undefined;
2258
- isArchived?: boolean | undefined;
2259
- archivedAt?: string | null | undefined;
2260
- pinned?: boolean | undefined;
2261
- isShared?: boolean | undefined;
2262
- messages?: string[] | undefined;
2326
+ web_search?: boolean | undefined;
2327
+ context?: string | null | undefined;
2328
+ artifacts?: string | undefined;
2329
+ instructions?: string | undefined;
2330
+ additional_instructions?: string | undefined;
2263
2331
  tools?: string[] | {
2264
2332
  name: string;
2265
2333
  pluginKey: string;
@@ -2278,6 +2346,20 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2278
2346
  toolkit?: boolean | undefined;
2279
2347
  serverToolName?: string | undefined;
2280
2348
  }[] | undefined;
2349
+ model?: string | null | undefined;
2350
+ tags?: string[] | undefined;
2351
+ endpointType?: EModelEndpoint | null | undefined;
2352
+ isArchived?: boolean | undefined;
2353
+ archivedAt?: string | null | undefined;
2354
+ pinned?: boolean | undefined;
2355
+ isShared?: boolean | undefined;
2356
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2357
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2358
+ codeWorkspaces?: {
2359
+ environmentId: string;
2360
+ workspaceId: string;
2361
+ }[] | undefined;
2362
+ messages?: string[] | undefined;
2281
2363
  modelLabel?: string | null | undefined;
2282
2364
  userLabel?: string | undefined;
2283
2365
  promptPrefix?: string | null | undefined;
@@ -2298,8 +2380,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2298
2380
  thinkingBudget?: number | undefined;
2299
2381
  thinkingLevel?: ThinkingLevel | undefined;
2300
2382
  stream?: boolean | undefined;
2301
- artifacts?: string | undefined;
2302
- context?: string | null | undefined;
2303
2383
  examples?: {
2304
2384
  input: {
2305
2385
  content: string;
@@ -2322,26 +2402,23 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2322
2402
  useResponsesApi?: boolean | undefined;
2323
2403
  effort?: AnthropicEffort | null | undefined;
2324
2404
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2325
- web_search?: boolean | undefined;
2326
2405
  url_context?: boolean | undefined;
2327
2406
  disableStreaming?: boolean | undefined;
2328
2407
  assistant_id?: string | undefined;
2329
2408
  agent_id?: string | undefined;
2330
2409
  subagentThread?: {
2410
+ subagentKind: "agent" | "graph";
2331
2411
  parentMessageId: string;
2332
2412
  rootConversationId: string;
2333
2413
  parentConversationId: string;
2334
2414
  parentToolCallId: string;
2335
2415
  subagentType: string;
2336
- subagentKind: "agent" | "graph";
2337
2416
  depth: number;
2338
2417
  parentAgentId?: string | undefined;
2339
2418
  } | undefined;
2340
2419
  region?: string | undefined;
2341
2420
  maxTokens?: number | undefined;
2342
2421
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2343
- instructions?: string | undefined;
2344
- additional_instructions?: string | undefined;
2345
2422
  append_current_datetime?: boolean | undefined;
2346
2423
  presetOverride?: Record<string, unknown> | undefined;
2347
2424
  stop?: string[] | undefined;
@@ -2354,18 +2431,14 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2354
2431
  resendImages?: boolean | undefined;
2355
2432
  chatGptLabel?: string | null | undefined;
2356
2433
  }, {
2357
- conversationId: string | null;
2358
2434
  endpoint: string | null;
2435
+ conversationId: string | null;
2359
2436
  user?: string | undefined;
2360
- tags?: string[] | undefined;
2361
- model?: string | null | undefined;
2362
- endpointType?: EModelEndpoint | null | undefined;
2363
- isArchived?: boolean | undefined;
2364
- archivedAt?: string | null | undefined;
2365
- pinned?: boolean | undefined;
2366
- isShared?: boolean | undefined;
2367
- title?: string | null | undefined;
2368
- messages?: string[] | undefined;
2437
+ web_search?: boolean | undefined;
2438
+ context?: string | null | undefined;
2439
+ artifacts?: string | undefined;
2440
+ instructions?: string | undefined;
2441
+ additional_instructions?: string | undefined;
2369
2442
  tools?: string[] | {
2370
2443
  name: string;
2371
2444
  pluginKey: string;
@@ -2384,6 +2457,21 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2384
2457
  toolkit?: boolean | undefined;
2385
2458
  serverToolName?: string | undefined;
2386
2459
  }[] | undefined;
2460
+ model?: string | null | undefined;
2461
+ tags?: string[] | undefined;
2462
+ endpointType?: EModelEndpoint | null | undefined;
2463
+ isArchived?: boolean | undefined;
2464
+ archivedAt?: string | null | undefined;
2465
+ pinned?: boolean | undefined;
2466
+ isShared?: boolean | undefined;
2467
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2468
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2469
+ codeWorkspaces?: {
2470
+ environmentId: string;
2471
+ workspaceId: string;
2472
+ }[] | undefined;
2473
+ title?: string | null | undefined;
2474
+ messages?: string[] | undefined;
2387
2475
  modelLabel?: string | null | undefined;
2388
2476
  userLabel?: string | undefined;
2389
2477
  promptPrefix?: string | null | undefined;
@@ -2404,8 +2492,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2404
2492
  thinkingBudget?: string | number | undefined;
2405
2493
  thinkingLevel?: ThinkingLevel | undefined;
2406
2494
  stream?: boolean | undefined;
2407
- artifacts?: string | undefined;
2408
- context?: string | null | undefined;
2409
2495
  examples?: {
2410
2496
  input: {
2411
2497
  content: string;
@@ -2428,26 +2514,23 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2428
2514
  useResponsesApi?: boolean | undefined;
2429
2515
  effort?: AnthropicEffort | null | undefined;
2430
2516
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2431
- web_search?: boolean | undefined;
2432
2517
  url_context?: boolean | undefined;
2433
2518
  disableStreaming?: boolean | undefined;
2434
2519
  assistant_id?: string | undefined;
2435
2520
  agent_id?: string | undefined;
2436
2521
  subagentThread?: {
2522
+ subagentKind: "agent" | "graph";
2437
2523
  parentMessageId: string;
2438
2524
  rootConversationId: string;
2439
2525
  parentConversationId: string;
2440
2526
  parentToolCallId: string;
2441
2527
  subagentType: string;
2442
- subagentKind: "agent" | "graph";
2443
2528
  depth: number;
2444
2529
  parentAgentId?: string | undefined;
2445
2530
  } | undefined;
2446
2531
  region?: string | undefined;
2447
2532
  maxTokens?: string | number | undefined;
2448
2533
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2449
- instructions?: string | undefined;
2450
- additional_instructions?: string | undefined;
2451
2534
  append_current_datetime?: boolean | undefined;
2452
2535
  presetOverride?: Record<string, unknown> | undefined;
2453
2536
  stop?: string[] | undefined;
@@ -2470,6 +2553,18 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2470
2553
  pinned: z.ZodOptional<z.ZodBoolean>;
2471
2554
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
2472
2555
  isShared: z.ZodOptional<z.ZodBoolean>;
2556
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2557
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2558
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2559
+ environmentId: z.ZodString;
2560
+ workspaceId: z.ZodString;
2561
+ }, "strict", z.ZodTypeAny, {
2562
+ environmentId: string;
2563
+ workspaceId: string;
2564
+ }, {
2565
+ environmentId: string;
2566
+ workspaceId: string;
2567
+ }>, "many">>;
2473
2568
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2474
2569
  user: z.ZodOptional<z.ZodString>;
2475
2570
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2624,21 +2719,21 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2624
2719
  subagentKind: z.ZodEnum<["agent", "graph"]>;
2625
2720
  depth: z.ZodNumber;
2626
2721
  }, "strip", z.ZodTypeAny, {
2722
+ subagentKind: "agent" | "graph";
2627
2723
  parentMessageId: string;
2628
2724
  rootConversationId: string;
2629
2725
  parentConversationId: string;
2630
2726
  parentToolCallId: string;
2631
2727
  subagentType: string;
2632
- subagentKind: "agent" | "graph";
2633
2728
  depth: number;
2634
2729
  parentAgentId?: string | undefined;
2635
2730
  }, {
2731
+ subagentKind: "agent" | "graph";
2636
2732
  parentMessageId: string;
2637
2733
  rootConversationId: string;
2638
2734
  parentConversationId: string;
2639
2735
  parentToolCallId: string;
2640
2736
  subagentType: string;
2641
- subagentKind: "agent" | "graph";
2642
2737
  depth: number;
2643
2738
  parentAgentId?: string | undefined;
2644
2739
  }>>;
@@ -2661,11 +2756,13 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2661
2756
  resendImages: z.ZodOptional<z.ZodBoolean>;
2662
2757
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2663
2758
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2664
- }, "model" | "promptPrefix" | "temperature" | "topP" | "topK" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxOutputTokens" | "maxContextTokens" | "max_tokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "thinkingLevel" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "effort" | "thinkingDisplay" | "web_search" | "url_context" | "disableStreaming" | "assistant_id" | "agent_id" | "region" | "maxTokens" | "instructions" | "append_current_datetime" | "stop" | "spec" | "fileTokenLimit"> & {
2759
+ }, "web_search" | "instructions" | "model" | "promptPrefix" | "temperature" | "topP" | "topK" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxOutputTokens" | "maxContextTokens" | "max_tokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "thinkingLevel" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "effort" | "thinkingDisplay" | "url_context" | "disableStreaming" | "assistant_id" | "agent_id" | "region" | "maxTokens" | "append_current_datetime" | "stop" | "spec" | "fileTokenLimit"> & {
2665
2760
  /** @endpoints openAI, custom, azureOpenAI, google, anthropic, assistants, azureAssistants, bedrock, agents */
2666
2761
  endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
2667
2762
  }, "strip", z.ZodTypeAny, {
2668
2763
  endpoint: string | null;
2764
+ web_search?: boolean | undefined;
2765
+ instructions?: string | undefined;
2669
2766
  model?: string | null | undefined;
2670
2767
  promptPrefix?: string | null | undefined;
2671
2768
  temperature?: number | null | undefined;
@@ -2692,20 +2789,20 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2692
2789
  useResponsesApi?: boolean | undefined;
2693
2790
  effort?: AnthropicEffort | null | undefined;
2694
2791
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2695
- web_search?: boolean | undefined;
2696
2792
  url_context?: boolean | undefined;
2697
2793
  disableStreaming?: boolean | undefined;
2698
2794
  assistant_id?: string | undefined;
2699
2795
  agent_id?: string | undefined;
2700
2796
  region?: string | undefined;
2701
2797
  maxTokens?: number | undefined;
2702
- instructions?: string | undefined;
2703
2798
  append_current_datetime?: boolean | undefined;
2704
2799
  stop?: string[] | undefined;
2705
2800
  spec?: string | null | undefined;
2706
2801
  fileTokenLimit?: number | undefined;
2707
2802
  }, {
2708
2803
  endpoint: string | null;
2804
+ web_search?: boolean | undefined;
2805
+ instructions?: string | undefined;
2709
2806
  model?: string | null | undefined;
2710
2807
  promptPrefix?: string | null | undefined;
2711
2808
  temperature?: number | null | undefined;
@@ -2732,14 +2829,12 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2732
2829
  useResponsesApi?: boolean | undefined;
2733
2830
  effort?: AnthropicEffort | null | undefined;
2734
2831
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2735
- web_search?: boolean | undefined;
2736
2832
  url_context?: boolean | undefined;
2737
2833
  disableStreaming?: boolean | undefined;
2738
2834
  assistant_id?: string | undefined;
2739
2835
  agent_id?: string | undefined;
2740
2836
  region?: string | undefined;
2741
2837
  maxTokens?: string | number | undefined;
2742
- instructions?: string | undefined;
2743
2838
  append_current_datetime?: boolean | undefined;
2744
2839
  stop?: string[] | undefined;
2745
2840
  spec?: string | null | undefined;
@@ -2753,11 +2848,11 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2753
2848
  * omitted to avoid duplicate configuration surface.
2754
2849
  */
2755
2850
  export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2756
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
- endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2758
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2759
- pinned: z.ZodOptional<z.ZodBoolean>;
2760
- isShared: z.ZodOptional<z.ZodBoolean>;
2851
+ web_search: z.ZodOptional<z.ZodBoolean>;
2852
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2853
+ artifacts: z.ZodOptional<z.ZodString>;
2854
+ instructions: z.ZodOptional<z.ZodString>;
2855
+ additional_instructions: z.ZodOptional<z.ZodString>;
2761
2856
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2762
2857
  name: z.ZodString;
2763
2858
  pluginKey: z.ZodString;
@@ -2825,6 +2920,23 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2825
2920
  toolkit?: boolean | undefined;
2826
2921
  serverToolName?: string | undefined;
2827
2922
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2923
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2924
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2925
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2926
+ pinned: z.ZodOptional<z.ZodBoolean>;
2927
+ isShared: z.ZodOptional<z.ZodBoolean>;
2928
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2929
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2930
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2931
+ environmentId: z.ZodString;
2932
+ workspaceId: z.ZodString;
2933
+ }, "strict", z.ZodTypeAny, {
2934
+ environmentId: string;
2935
+ workspaceId: string;
2936
+ }, {
2937
+ environmentId: string;
2938
+ workspaceId: string;
2939
+ }>, "many">>;
2828
2940
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2829
2941
  userLabel: z.ZodOptional<z.ZodString>;
2830
2942
  promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2844,8 +2956,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2844
2956
  thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2845
2957
  thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2846
2958
  stream: z.ZodOptional<z.ZodBoolean>;
2847
- artifacts: z.ZodOptional<z.ZodString>;
2848
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2849
2959
  examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2850
2960
  input: z.ZodObject<{
2851
2961
  content: z.ZodString;
@@ -2886,7 +2996,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2886
2996
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
2887
2997
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
2888
2998
  thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
2889
- web_search: z.ZodOptional<z.ZodBoolean>;
2890
2999
  url_context: z.ZodOptional<z.ZodBoolean>;
2891
3000
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
2892
3001
  assistant_id: z.ZodOptional<z.ZodString>;
@@ -2901,29 +3010,27 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2901
3010
  subagentKind: z.ZodEnum<["agent", "graph"]>;
2902
3011
  depth: z.ZodNumber;
2903
3012
  }, "strip", z.ZodTypeAny, {
3013
+ subagentKind: "agent" | "graph";
2904
3014
  parentMessageId: string;
2905
3015
  rootConversationId: string;
2906
3016
  parentConversationId: string;
2907
3017
  parentToolCallId: string;
2908
3018
  subagentType: string;
2909
- subagentKind: "agent" | "graph";
2910
3019
  depth: number;
2911
3020
  parentAgentId?: string | undefined;
2912
3021
  }, {
3022
+ subagentKind: "agent" | "graph";
2913
3023
  parentMessageId: string;
2914
3024
  rootConversationId: string;
2915
3025
  parentConversationId: string;
2916
3026
  parentToolCallId: string;
2917
3027
  subagentType: string;
2918
- subagentKind: "agent" | "graph";
2919
3028
  depth: number;
2920
3029
  parentAgentId?: string | undefined;
2921
3030
  }>>;
2922
3031
  region: z.ZodOptional<z.ZodString>;
2923
3032
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2924
3033
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2925
- instructions: z.ZodOptional<z.ZodString>;
2926
- additional_instructions: z.ZodOptional<z.ZodString>;
2927
3034
  append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2928
3035
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2929
3036
  greeting: z.ZodOptional<z.ZodString>;
@@ -2933,12 +3040,12 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2933
3040
  } & {
2934
3041
  endpoint: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>>;
2935
3042
  }, "strip", z.ZodTypeAny, {
2936
- model?: string | null | undefined;
3043
+ web_search?: boolean | undefined;
3044
+ context?: string | null | undefined;
3045
+ artifacts?: string | undefined;
2937
3046
  endpoint?: string | null | undefined;
2938
- endpointType?: EModelEndpoint | null | undefined;
2939
- archivedAt?: string | null | undefined;
2940
- pinned?: boolean | undefined;
2941
- isShared?: boolean | undefined;
3047
+ instructions?: string | undefined;
3048
+ additional_instructions?: string | undefined;
2942
3049
  tools?: string[] | {
2943
3050
  name: string;
2944
3051
  pluginKey: string;
@@ -2957,6 +3064,17 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2957
3064
  toolkit?: boolean | undefined;
2958
3065
  serverToolName?: string | undefined;
2959
3066
  }[] | undefined;
3067
+ model?: string | null | undefined;
3068
+ endpointType?: EModelEndpoint | null | undefined;
3069
+ archivedAt?: string | null | undefined;
3070
+ pinned?: boolean | undefined;
3071
+ isShared?: boolean | undefined;
3072
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3073
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3074
+ codeWorkspaces?: {
3075
+ environmentId: string;
3076
+ workspaceId: string;
3077
+ }[] | undefined;
2960
3078
  modelLabel?: string | null | undefined;
2961
3079
  userLabel?: string | undefined;
2962
3080
  promptPrefix?: string | null | undefined;
@@ -2976,8 +3094,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2976
3094
  thinkingBudget?: number | undefined;
2977
3095
  thinkingLevel?: ThinkingLevel | undefined;
2978
3096
  stream?: boolean | undefined;
2979
- artifacts?: string | undefined;
2980
- context?: string | null | undefined;
2981
3097
  examples?: {
2982
3098
  input: {
2983
3099
  content: string;
@@ -2996,26 +3112,23 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2996
3112
  useResponsesApi?: boolean | undefined;
2997
3113
  effort?: AnthropicEffort | null | undefined;
2998
3114
  thinkingDisplay?: ThinkingDisplay | null | undefined;
2999
- web_search?: boolean | undefined;
3000
3115
  url_context?: boolean | undefined;
3001
3116
  disableStreaming?: boolean | undefined;
3002
3117
  assistant_id?: string | undefined;
3003
3118
  agent_id?: string | undefined;
3004
3119
  subagentThread?: {
3120
+ subagentKind: "agent" | "graph";
3005
3121
  parentMessageId: string;
3006
3122
  rootConversationId: string;
3007
3123
  parentConversationId: string;
3008
3124
  parentToolCallId: string;
3009
3125
  subagentType: string;
3010
- subagentKind: "agent" | "graph";
3011
3126
  depth: number;
3012
3127
  parentAgentId?: string | undefined;
3013
3128
  } | undefined;
3014
3129
  region?: string | undefined;
3015
3130
  maxTokens?: number | undefined;
3016
3131
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3017
- instructions?: string | undefined;
3018
- additional_instructions?: string | undefined;
3019
3132
  append_current_datetime?: boolean | undefined;
3020
3133
  stop?: string[] | undefined;
3021
3134
  greeting?: string | undefined;
@@ -3023,12 +3136,12 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3023
3136
  isTemporary?: boolean | undefined;
3024
3137
  fileTokenLimit?: number | undefined;
3025
3138
  }, {
3026
- model?: string | null | undefined;
3139
+ web_search?: boolean | undefined;
3140
+ context?: string | null | undefined;
3141
+ artifacts?: string | undefined;
3027
3142
  endpoint?: string | null | undefined;
3028
- endpointType?: EModelEndpoint | null | undefined;
3029
- archivedAt?: string | null | undefined;
3030
- pinned?: boolean | undefined;
3031
- isShared?: boolean | undefined;
3143
+ instructions?: string | undefined;
3144
+ additional_instructions?: string | undefined;
3032
3145
  tools?: string[] | {
3033
3146
  name: string;
3034
3147
  pluginKey: string;
@@ -3047,6 +3160,17 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3047
3160
  toolkit?: boolean | undefined;
3048
3161
  serverToolName?: string | undefined;
3049
3162
  }[] | undefined;
3163
+ model?: string | null | undefined;
3164
+ endpointType?: EModelEndpoint | null | undefined;
3165
+ archivedAt?: string | null | undefined;
3166
+ pinned?: boolean | undefined;
3167
+ isShared?: boolean | undefined;
3168
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3169
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3170
+ codeWorkspaces?: {
3171
+ environmentId: string;
3172
+ workspaceId: string;
3173
+ }[] | undefined;
3050
3174
  modelLabel?: string | null | undefined;
3051
3175
  userLabel?: string | undefined;
3052
3176
  promptPrefix?: string | null | undefined;
@@ -3066,8 +3190,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3066
3190
  thinkingBudget?: string | number | undefined;
3067
3191
  thinkingLevel?: ThinkingLevel | undefined;
3068
3192
  stream?: boolean | undefined;
3069
- artifacts?: string | undefined;
3070
- context?: string | null | undefined;
3071
3193
  examples?: {
3072
3194
  input: {
3073
3195
  content: string;
@@ -3086,26 +3208,23 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3086
3208
  useResponsesApi?: boolean | undefined;
3087
3209
  effort?: AnthropicEffort | null | undefined;
3088
3210
  thinkingDisplay?: ThinkingDisplay | null | undefined;
3089
- web_search?: boolean | undefined;
3090
3211
  url_context?: boolean | undefined;
3091
3212
  disableStreaming?: boolean | undefined;
3092
3213
  assistant_id?: string | undefined;
3093
3214
  agent_id?: string | undefined;
3094
3215
  subagentThread?: {
3216
+ subagentKind: "agent" | "graph";
3095
3217
  parentMessageId: string;
3096
3218
  rootConversationId: string;
3097
3219
  parentConversationId: string;
3098
3220
  parentToolCallId: string;
3099
3221
  subagentType: string;
3100
- subagentKind: "agent" | "graph";
3101
3222
  depth: number;
3102
3223
  parentAgentId?: string | undefined;
3103
3224
  } | undefined;
3104
3225
  region?: string | undefined;
3105
3226
  maxTokens?: string | number | undefined;
3106
3227
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3107
- instructions?: string | undefined;
3108
- additional_instructions?: string | undefined;
3109
3228
  append_current_datetime?: boolean | undefined;
3110
3229
  stop?: string[] | undefined;
3111
3230
  greeting?: string | undefined;
@@ -3113,12 +3232,12 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3113
3232
  isTemporary?: boolean | undefined;
3114
3233
  fileTokenLimit?: string | number | undefined;
3115
3234
  }>, {
3116
- model?: string | null | undefined;
3235
+ web_search?: boolean | undefined;
3236
+ context?: string | null | undefined;
3237
+ artifacts?: string | undefined;
3117
3238
  endpoint?: string | null | undefined;
3118
- endpointType?: EModelEndpoint | null | undefined;
3119
- archivedAt?: string | null | undefined;
3120
- pinned?: boolean | undefined;
3121
- isShared?: boolean | undefined;
3239
+ instructions?: string | undefined;
3240
+ additional_instructions?: string | undefined;
3122
3241
  tools?: string[] | {
3123
3242
  name: string;
3124
3243
  pluginKey: string;
@@ -3137,6 +3256,17 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3137
3256
  toolkit?: boolean | undefined;
3138
3257
  serverToolName?: string | undefined;
3139
3258
  }[] | undefined;
3259
+ model?: string | null | undefined;
3260
+ endpointType?: EModelEndpoint | null | undefined;
3261
+ archivedAt?: string | null | undefined;
3262
+ pinned?: boolean | undefined;
3263
+ isShared?: boolean | undefined;
3264
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3265
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3266
+ codeWorkspaces?: {
3267
+ environmentId: string;
3268
+ workspaceId: string;
3269
+ }[] | undefined;
3140
3270
  modelLabel?: string | null | undefined;
3141
3271
  userLabel?: string | undefined;
3142
3272
  promptPrefix?: string | null | undefined;
@@ -3156,8 +3286,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3156
3286
  thinkingBudget?: number | undefined;
3157
3287
  thinkingLevel?: ThinkingLevel | undefined;
3158
3288
  stream?: boolean | undefined;
3159
- artifacts?: string | undefined;
3160
- context?: string | null | undefined;
3161
3289
  examples?: {
3162
3290
  input: {
3163
3291
  content: string;
@@ -3176,26 +3304,23 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3176
3304
  useResponsesApi?: boolean | undefined;
3177
3305
  effort?: AnthropicEffort | null | undefined;
3178
3306
  thinkingDisplay?: ThinkingDisplay | null | undefined;
3179
- web_search?: boolean | undefined;
3180
3307
  url_context?: boolean | undefined;
3181
3308
  disableStreaming?: boolean | undefined;
3182
3309
  assistant_id?: string | undefined;
3183
3310
  agent_id?: string | undefined;
3184
3311
  subagentThread?: {
3312
+ subagentKind: "agent" | "graph";
3185
3313
  parentMessageId: string;
3186
3314
  rootConversationId: string;
3187
3315
  parentConversationId: string;
3188
3316
  parentToolCallId: string;
3189
3317
  subagentType: string;
3190
- subagentKind: "agent" | "graph";
3191
3318
  depth: number;
3192
3319
  parentAgentId?: string | undefined;
3193
3320
  } | undefined;
3194
3321
  region?: string | undefined;
3195
3322
  maxTokens?: number | undefined;
3196
3323
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3197
- instructions?: string | undefined;
3198
- additional_instructions?: string | undefined;
3199
3324
  append_current_datetime?: boolean | undefined;
3200
3325
  stop?: string[] | undefined;
3201
3326
  greeting?: string | undefined;
@@ -3203,12 +3328,12 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3203
3328
  isTemporary?: boolean | undefined;
3204
3329
  fileTokenLimit?: number | undefined;
3205
3330
  }, {
3206
- model?: string | null | undefined;
3331
+ web_search?: boolean | undefined;
3332
+ context?: string | null | undefined;
3333
+ artifacts?: string | undefined;
3207
3334
  endpoint?: string | null | undefined;
3208
- endpointType?: EModelEndpoint | null | undefined;
3209
- archivedAt?: string | null | undefined;
3210
- pinned?: boolean | undefined;
3211
- isShared?: boolean | undefined;
3335
+ instructions?: string | undefined;
3336
+ additional_instructions?: string | undefined;
3212
3337
  tools?: string[] | {
3213
3338
  name: string;
3214
3339
  pluginKey: string;
@@ -3227,6 +3352,17 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3227
3352
  toolkit?: boolean | undefined;
3228
3353
  serverToolName?: string | undefined;
3229
3354
  }[] | undefined;
3355
+ model?: string | null | undefined;
3356
+ endpointType?: EModelEndpoint | null | undefined;
3357
+ archivedAt?: string | null | undefined;
3358
+ pinned?: boolean | undefined;
3359
+ isShared?: boolean | undefined;
3360
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3361
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3362
+ codeWorkspaces?: {
3363
+ environmentId: string;
3364
+ workspaceId: string;
3365
+ }[] | undefined;
3230
3366
  modelLabel?: string | null | undefined;
3231
3367
  userLabel?: string | undefined;
3232
3368
  promptPrefix?: string | null | undefined;
@@ -3246,8 +3382,6 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3246
3382
  thinkingBudget?: string | number | undefined;
3247
3383
  thinkingLevel?: ThinkingLevel | undefined;
3248
3384
  stream?: boolean | undefined;
3249
- artifacts?: string | undefined;
3250
- context?: string | null | undefined;
3251
3385
  examples?: {
3252
3386
  input: {
3253
3387
  content: string;
@@ -3266,26 +3400,23 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3266
3400
  useResponsesApi?: boolean | undefined;
3267
3401
  effort?: AnthropicEffort | null | undefined;
3268
3402
  thinkingDisplay?: ThinkingDisplay | null | undefined;
3269
- web_search?: boolean | undefined;
3270
3403
  url_context?: boolean | undefined;
3271
3404
  disableStreaming?: boolean | undefined;
3272
3405
  assistant_id?: string | undefined;
3273
3406
  agent_id?: string | undefined;
3274
3407
  subagentThread?: {
3408
+ subagentKind: "agent" | "graph";
3275
3409
  parentMessageId: string;
3276
3410
  rootConversationId: string;
3277
3411
  parentConversationId: string;
3278
3412
  parentToolCallId: string;
3279
3413
  subagentType: string;
3280
- subagentKind: "agent" | "graph";
3281
3414
  depth: number;
3282
3415
  parentAgentId?: string | undefined;
3283
3416
  } | undefined;
3284
3417
  region?: string | undefined;
3285
3418
  maxTokens?: string | number | undefined;
3286
3419
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3287
- instructions?: string | undefined;
3288
- additional_instructions?: string | undefined;
3289
3420
  append_current_datetime?: boolean | undefined;
3290
3421
  stop?: string[] | undefined;
3291
3422
  greeting?: string | undefined;
@@ -3337,19 +3468,19 @@ export declare const tConversationTagSchema: z.ZodObject<{
3337
3468
  position: z.ZodNumber;
3338
3469
  }, "strip", z.ZodTypeAny, {
3339
3470
  user: string;
3471
+ _id: string;
3340
3472
  createdAt: string;
3341
3473
  updatedAt: string;
3342
3474
  tag: string;
3343
- _id: string;
3344
3475
  count: number;
3345
3476
  position: number;
3346
3477
  description?: string | undefined;
3347
3478
  }, {
3348
3479
  user: string;
3480
+ _id: string;
3349
3481
  createdAt: string;
3350
3482
  updatedAt: string;
3351
3483
  tag: string;
3352
- _id: string;
3353
3484
  count: number;
3354
3485
  position: number;
3355
3486
  description?: string | undefined;
@@ -3365,6 +3496,18 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3365
3496
  pinned: z.ZodOptional<z.ZodBoolean>;
3366
3497
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3367
3498
  isShared: z.ZodOptional<z.ZodBoolean>;
3499
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
3500
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
3501
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3502
+ environmentId: z.ZodString;
3503
+ workspaceId: z.ZodString;
3504
+ }, "strict", z.ZodTypeAny, {
3505
+ environmentId: string;
3506
+ workspaceId: string;
3507
+ }, {
3508
+ environmentId: string;
3509
+ workspaceId: string;
3510
+ }>, "many">>;
3368
3511
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3369
3512
  user: z.ZodOptional<z.ZodString>;
3370
3513
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3519,21 +3662,21 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3519
3662
  subagentKind: z.ZodEnum<["agent", "graph"]>;
3520
3663
  depth: z.ZodNumber;
3521
3664
  }, "strip", z.ZodTypeAny, {
3665
+ subagentKind: "agent" | "graph";
3522
3666
  parentMessageId: string;
3523
3667
  rootConversationId: string;
3524
3668
  parentConversationId: string;
3525
3669
  parentToolCallId: string;
3526
3670
  subagentType: string;
3527
- subagentKind: "agent" | "graph";
3528
3671
  depth: number;
3529
3672
  parentAgentId?: string | undefined;
3530
3673
  }, {
3674
+ subagentKind: "agent" | "graph";
3531
3675
  parentMessageId: string;
3532
3676
  rootConversationId: string;
3533
3677
  parentConversationId: string;
3534
3678
  parentToolCallId: string;
3535
3679
  subagentType: string;
3536
- subagentKind: "agent" | "graph";
3537
3680
  depth: number;
3538
3681
  parentAgentId?: string | undefined;
3539
3682
  }>>;
@@ -3556,7 +3699,9 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3556
3699
  resendImages: z.ZodOptional<z.ZodBoolean>;
3557
3700
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3558
3701
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3559
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3702
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3703
+ web_search?: boolean | undefined;
3704
+ artifacts?: string | undefined;
3560
3705
  model?: string | null | undefined;
3561
3706
  modelLabel?: string | null | undefined;
3562
3707
  promptPrefix?: string | null | undefined;
@@ -3568,7 +3713,6 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3568
3713
  thinking?: boolean | undefined;
3569
3714
  thinkingBudget?: number | undefined;
3570
3715
  thinkingLevel?: ThinkingLevel | undefined;
3571
- artifacts?: string | undefined;
3572
3716
  examples?: {
3573
3717
  input: {
3574
3718
  content: string;
@@ -3579,13 +3723,14 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3579
3723
  }[] | undefined;
3580
3724
  chatProjectId?: string | null | undefined;
3581
3725
  resendFiles?: boolean | undefined;
3582
- web_search?: boolean | undefined;
3583
3726
  url_context?: boolean | undefined;
3584
3727
  greeting?: string | undefined;
3585
3728
  spec?: string | null | undefined;
3586
3729
  iconURL?: string | null | undefined;
3587
3730
  fileTokenLimit?: number | undefined;
3588
3731
  }, {
3732
+ web_search?: boolean | undefined;
3733
+ artifacts?: string | undefined;
3589
3734
  model?: string | null | undefined;
3590
3735
  modelLabel?: string | null | undefined;
3591
3736
  promptPrefix?: string | null | undefined;
@@ -3597,7 +3742,6 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3597
3742
  thinking?: boolean | undefined;
3598
3743
  thinkingBudget?: string | number | undefined;
3599
3744
  thinkingLevel?: ThinkingLevel | undefined;
3600
- artifacts?: string | undefined;
3601
3745
  examples?: {
3602
3746
  input: {
3603
3747
  content: string;
@@ -3608,7 +3752,6 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3608
3752
  }[] | undefined;
3609
3753
  chatProjectId?: string | null | undefined;
3610
3754
  resendFiles?: boolean | undefined;
3611
- web_search?: boolean | undefined;
3612
3755
  url_context?: boolean | undefined;
3613
3756
  greeting?: string | undefined;
3614
3757
  spec?: string | null | undefined;
@@ -3625,6 +3768,18 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3625
3768
  pinned: z.ZodOptional<z.ZodBoolean>;
3626
3769
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3627
3770
  isShared: z.ZodOptional<z.ZodBoolean>;
3771
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
3772
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
3773
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3774
+ environmentId: z.ZodString;
3775
+ workspaceId: z.ZodString;
3776
+ }, "strict", z.ZodTypeAny, {
3777
+ environmentId: string;
3778
+ workspaceId: string;
3779
+ }, {
3780
+ environmentId: string;
3781
+ workspaceId: string;
3782
+ }>, "many">>;
3628
3783
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3629
3784
  user: z.ZodOptional<z.ZodString>;
3630
3785
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3779,21 +3934,21 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3779
3934
  subagentKind: z.ZodEnum<["agent", "graph"]>;
3780
3935
  depth: z.ZodNumber;
3781
3936
  }, "strip", z.ZodTypeAny, {
3937
+ subagentKind: "agent" | "graph";
3782
3938
  parentMessageId: string;
3783
3939
  rootConversationId: string;
3784
3940
  parentConversationId: string;
3785
3941
  parentToolCallId: string;
3786
3942
  subagentType: string;
3787
- subagentKind: "agent" | "graph";
3788
3943
  depth: number;
3789
3944
  parentAgentId?: string | undefined;
3790
3945
  }, {
3946
+ subagentKind: "agent" | "graph";
3791
3947
  parentMessageId: string;
3792
3948
  rootConversationId: string;
3793
3949
  parentConversationId: string;
3794
3950
  parentToolCallId: string;
3795
3951
  subagentType: string;
3796
- subagentKind: "agent" | "graph";
3797
3952
  depth: number;
3798
3953
  parentAgentId?: string | undefined;
3799
3954
  }>>;
@@ -3816,7 +3971,9 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3816
3971
  resendImages: z.ZodOptional<z.ZodBoolean>;
3817
3972
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3818
3973
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3819
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3974
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3975
+ web_search?: boolean | undefined;
3976
+ artifacts?: string | undefined;
3820
3977
  model?: string | null | undefined;
3821
3978
  modelLabel?: string | null | undefined;
3822
3979
  promptPrefix?: string | null | undefined;
@@ -3828,7 +3985,6 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3828
3985
  thinking?: boolean | undefined;
3829
3986
  thinkingBudget?: number | undefined;
3830
3987
  thinkingLevel?: ThinkingLevel | undefined;
3831
- artifacts?: string | undefined;
3832
3988
  examples?: {
3833
3989
  input: {
3834
3990
  content: string;
@@ -3839,13 +3995,14 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3839
3995
  }[] | undefined;
3840
3996
  chatProjectId?: string | null | undefined;
3841
3997
  resendFiles?: boolean | undefined;
3842
- web_search?: boolean | undefined;
3843
3998
  url_context?: boolean | undefined;
3844
3999
  greeting?: string | undefined;
3845
4000
  spec?: string | null | undefined;
3846
4001
  iconURL?: string | null | undefined;
3847
4002
  fileTokenLimit?: number | undefined;
3848
4003
  }, {
4004
+ web_search?: boolean | undefined;
4005
+ artifacts?: string | undefined;
3849
4006
  model?: string | null | undefined;
3850
4007
  modelLabel?: string | null | undefined;
3851
4008
  promptPrefix?: string | null | undefined;
@@ -3857,7 +4014,6 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3857
4014
  thinking?: boolean | undefined;
3858
4015
  thinkingBudget?: string | number | undefined;
3859
4016
  thinkingLevel?: ThinkingLevel | undefined;
3860
- artifacts?: string | undefined;
3861
4017
  examples?: {
3862
4018
  input: {
3863
4019
  content: string;
@@ -3868,13 +4024,14 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3868
4024
  }[] | undefined;
3869
4025
  chatProjectId?: string | null | undefined;
3870
4026
  resendFiles?: boolean | undefined;
3871
- web_search?: boolean | undefined;
3872
4027
  url_context?: boolean | undefined;
3873
4028
  greeting?: string | undefined;
3874
4029
  spec?: string | null | undefined;
3875
4030
  iconURL?: string | null | undefined;
3876
4031
  fileTokenLimit?: string | number | undefined;
3877
4032
  }>, Partial<Partial<TConversation>>, {
4033
+ web_search?: boolean | undefined;
4034
+ artifacts?: string | undefined;
3878
4035
  model?: string | null | undefined;
3879
4036
  modelLabel?: string | null | undefined;
3880
4037
  promptPrefix?: string | null | undefined;
@@ -3886,7 +4043,6 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3886
4043
  thinking?: boolean | undefined;
3887
4044
  thinkingBudget?: string | number | undefined;
3888
4045
  thinkingLevel?: ThinkingLevel | undefined;
3889
- artifacts?: string | undefined;
3890
4046
  examples?: {
3891
4047
  input: {
3892
4048
  content: string;
@@ -3897,7 +4053,6 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3897
4053
  }[] | undefined;
3898
4054
  chatProjectId?: string | null | undefined;
3899
4055
  resendFiles?: boolean | undefined;
3900
- web_search?: boolean | undefined;
3901
4056
  url_context?: boolean | undefined;
3902
4057
  greeting?: string | undefined;
3903
4058
  spec?: string | null | undefined;
@@ -3934,11 +4089,11 @@ export declare const googleGenConfigSchema: z.ZodOptional<z.ZodObject<{
3934
4089
  web_search: z.ZodOptional<z.ZodBoolean>;
3935
4090
  url_context: z.ZodOptional<z.ZodBoolean>;
3936
4091
  }, "strip", z.ZodTypeAny, {
4092
+ web_search?: boolean | undefined;
3937
4093
  temperature?: number | undefined;
3938
4094
  topP?: number | undefined;
3939
4095
  topK?: number | undefined;
3940
4096
  maxOutputTokens?: number | undefined;
3941
- web_search?: boolean | undefined;
3942
4097
  url_context?: boolean | undefined;
3943
4098
  presencePenalty?: number | undefined;
3944
4099
  frequencyPenalty?: number | undefined;
@@ -3949,11 +4104,11 @@ export declare const googleGenConfigSchema: z.ZodOptional<z.ZodObject<{
3949
4104
  includeThoughts?: boolean | undefined;
3950
4105
  } | undefined;
3951
4106
  }, {
4107
+ web_search?: boolean | undefined;
3952
4108
  temperature?: string | number | undefined;
3953
4109
  topP?: string | number | undefined;
3954
4110
  topK?: string | number | undefined;
3955
4111
  maxOutputTokens?: string | number | undefined;
3956
- web_search?: boolean | undefined;
3957
4112
  url_context?: boolean | undefined;
3958
4113
  presencePenalty?: string | number | undefined;
3959
4114
  frequencyPenalty?: string | number | undefined;
@@ -3975,6 +4130,18 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3975
4130
  pinned: z.ZodOptional<z.ZodBoolean>;
3976
4131
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3977
4132
  isShared: z.ZodOptional<z.ZodBoolean>;
4133
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4134
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4135
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4136
+ environmentId: z.ZodString;
4137
+ workspaceId: z.ZodString;
4138
+ }, "strict", z.ZodTypeAny, {
4139
+ environmentId: string;
4140
+ workspaceId: string;
4141
+ }, {
4142
+ environmentId: string;
4143
+ workspaceId: string;
4144
+ }>, "many">>;
3978
4145
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3979
4146
  user: z.ZodOptional<z.ZodString>;
3980
4147
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4129,21 +4296,21 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4129
4296
  subagentKind: z.ZodEnum<["agent", "graph"]>;
4130
4297
  depth: z.ZodNumber;
4131
4298
  }, "strip", z.ZodTypeAny, {
4299
+ subagentKind: "agent" | "graph";
4132
4300
  parentMessageId: string;
4133
4301
  rootConversationId: string;
4134
4302
  parentConversationId: string;
4135
4303
  parentToolCallId: string;
4136
4304
  subagentType: string;
4137
- subagentKind: "agent" | "graph";
4138
4305
  depth: number;
4139
4306
  parentAgentId?: string | undefined;
4140
4307
  }, {
4308
+ subagentKind: "agent" | "graph";
4141
4309
  parentMessageId: string;
4142
4310
  rootConversationId: string;
4143
4311
  parentConversationId: string;
4144
4312
  parentToolCallId: string;
4145
4313
  subagentType: string;
4146
- subagentKind: "agent" | "graph";
4147
4314
  depth: number;
4148
4315
  parentAgentId?: string | undefined;
4149
4316
  }>>;
@@ -4166,24 +4333,24 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4166
4333
  resendImages: z.ZodOptional<z.ZodBoolean>;
4167
4334
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4168
4335
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4169
- }, "model" | "promptPrefix" | "artifacts" | "chatProjectId" | "assistant_id" | "instructions" | "append_current_datetime" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4336
+ }, "artifacts" | "instructions" | "model" | "promptPrefix" | "chatProjectId" | "assistant_id" | "append_current_datetime" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4337
+ artifacts?: string | undefined;
4338
+ instructions?: string | undefined;
4170
4339
  model?: string | null | undefined;
4171
4340
  promptPrefix?: string | null | undefined;
4172
- artifacts?: string | undefined;
4173
4341
  chatProjectId?: string | null | undefined;
4174
4342
  assistant_id?: string | undefined;
4175
- instructions?: string | undefined;
4176
4343
  append_current_datetime?: boolean | undefined;
4177
4344
  greeting?: string | undefined;
4178
4345
  spec?: string | null | undefined;
4179
4346
  iconURL?: string | null | undefined;
4180
4347
  }, {
4348
+ artifacts?: string | undefined;
4349
+ instructions?: string | undefined;
4181
4350
  model?: string | null | undefined;
4182
4351
  promptPrefix?: string | null | undefined;
4183
- artifacts?: string | undefined;
4184
4352
  chatProjectId?: string | null | undefined;
4185
4353
  assistant_id?: string | undefined;
4186
- instructions?: string | undefined;
4187
4354
  append_current_datetime?: boolean | undefined;
4188
4355
  greeting?: string | undefined;
4189
4356
  spec?: string | null | undefined;
@@ -4200,12 +4367,12 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4200
4367
  artifacts?: string | undefined;
4201
4368
  chatProjectId?: string | null | undefined;
4202
4369
  }, {
4370
+ artifacts?: string | undefined;
4371
+ instructions?: string | undefined;
4203
4372
  model?: string | null | undefined;
4204
4373
  promptPrefix?: string | null | undefined;
4205
- artifacts?: string | undefined;
4206
4374
  chatProjectId?: string | null | undefined;
4207
4375
  assistant_id?: string | undefined;
4208
- instructions?: string | undefined;
4209
4376
  append_current_datetime?: boolean | undefined;
4210
4377
  greeting?: string | undefined;
4211
4378
  spec?: string | null | undefined;
@@ -4221,6 +4388,18 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4221
4388
  pinned: z.ZodOptional<z.ZodBoolean>;
4222
4389
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4223
4390
  isShared: z.ZodOptional<z.ZodBoolean>;
4391
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4392
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4393
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4394
+ environmentId: z.ZodString;
4395
+ workspaceId: z.ZodString;
4396
+ }, "strict", z.ZodTypeAny, {
4397
+ environmentId: string;
4398
+ workspaceId: string;
4399
+ }, {
4400
+ environmentId: string;
4401
+ workspaceId: string;
4402
+ }>, "many">>;
4224
4403
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4225
4404
  user: z.ZodOptional<z.ZodString>;
4226
4405
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4375,21 +4554,21 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4375
4554
  subagentKind: z.ZodEnum<["agent", "graph"]>;
4376
4555
  depth: z.ZodNumber;
4377
4556
  }, "strip", z.ZodTypeAny, {
4557
+ subagentKind: "agent" | "graph";
4378
4558
  parentMessageId: string;
4379
4559
  rootConversationId: string;
4380
4560
  parentConversationId: string;
4381
4561
  parentToolCallId: string;
4382
4562
  subagentType: string;
4383
- subagentKind: "agent" | "graph";
4384
4563
  depth: number;
4385
4564
  parentAgentId?: string | undefined;
4386
4565
  }, {
4566
+ subagentKind: "agent" | "graph";
4387
4567
  parentMessageId: string;
4388
4568
  rootConversationId: string;
4389
4569
  parentConversationId: string;
4390
4570
  parentToolCallId: string;
4391
4571
  subagentType: string;
4392
- subagentKind: "agent" | "graph";
4393
4572
  depth: number;
4394
4573
  parentAgentId?: string | undefined;
4395
4574
  }>>;
@@ -4412,43 +4591,43 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4412
4591
  resendImages: z.ZodOptional<z.ZodBoolean>;
4413
4592
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4414
4593
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4415
- }, "model" | "promptPrefix" | "artifacts" | "chatProjectId" | "assistant_id" | "instructions" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4594
+ }, "artifacts" | "instructions" | "model" | "promptPrefix" | "chatProjectId" | "assistant_id" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4595
+ artifacts?: string | undefined;
4596
+ instructions?: string | undefined;
4416
4597
  model?: string | null | undefined;
4417
4598
  promptPrefix?: string | null | undefined;
4418
- artifacts?: string | undefined;
4419
4599
  chatProjectId?: string | null | undefined;
4420
4600
  assistant_id?: string | undefined;
4421
- instructions?: string | undefined;
4422
4601
  greeting?: string | undefined;
4423
4602
  spec?: string | null | undefined;
4424
4603
  iconURL?: string | null | undefined;
4425
4604
  }, {
4605
+ artifacts?: string | undefined;
4606
+ instructions?: string | undefined;
4426
4607
  model?: string | null | undefined;
4427
4608
  promptPrefix?: string | null | undefined;
4428
- artifacts?: string | undefined;
4429
4609
  chatProjectId?: string | null | undefined;
4430
4610
  assistant_id?: string | undefined;
4431
- instructions?: string | undefined;
4432
4611
  greeting?: string | undefined;
4433
4612
  spec?: string | null | undefined;
4434
4613
  iconURL?: string | null | undefined;
4435
4614
  }>, Partial<{
4615
+ artifacts?: string | undefined;
4616
+ instructions?: string | undefined;
4436
4617
  model?: string | null | undefined;
4437
4618
  promptPrefix?: string | null | undefined;
4438
- artifacts?: string | undefined;
4439
4619
  chatProjectId?: string | null | undefined;
4440
4620
  assistant_id?: string | undefined;
4441
- instructions?: string | undefined;
4442
4621
  greeting?: string | undefined;
4443
4622
  spec?: string | null | undefined;
4444
4623
  iconURL?: string | null | undefined;
4445
4624
  }>, {
4625
+ artifacts?: string | undefined;
4626
+ instructions?: string | undefined;
4446
4627
  model?: string | null | undefined;
4447
4628
  promptPrefix?: string | null | undefined;
4448
- artifacts?: string | undefined;
4449
4629
  chatProjectId?: string | null | undefined;
4450
4630
  assistant_id?: string | undefined;
4451
- instructions?: string | undefined;
4452
4631
  greeting?: string | undefined;
4453
4632
  spec?: string | null | undefined;
4454
4633
  iconURL?: string | null | undefined;
@@ -4463,6 +4642,18 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4463
4642
  pinned: z.ZodOptional<z.ZodBoolean>;
4464
4643
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4465
4644
  isShared: z.ZodOptional<z.ZodBoolean>;
4645
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4646
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4647
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4648
+ environmentId: z.ZodString;
4649
+ workspaceId: z.ZodString;
4650
+ }, "strict", z.ZodTypeAny, {
4651
+ environmentId: string;
4652
+ workspaceId: string;
4653
+ }, {
4654
+ environmentId: string;
4655
+ workspaceId: string;
4656
+ }>, "many">>;
4466
4657
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4467
4658
  user: z.ZodOptional<z.ZodString>;
4468
4659
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4617,21 +4808,21 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4617
4808
  subagentKind: z.ZodEnum<["agent", "graph"]>;
4618
4809
  depth: z.ZodNumber;
4619
4810
  }, "strip", z.ZodTypeAny, {
4811
+ subagentKind: "agent" | "graph";
4620
4812
  parentMessageId: string;
4621
4813
  rootConversationId: string;
4622
4814
  parentConversationId: string;
4623
4815
  parentToolCallId: string;
4624
4816
  subagentType: string;
4625
- subagentKind: "agent" | "graph";
4626
4817
  depth: number;
4627
4818
  parentAgentId?: string | undefined;
4628
4819
  }, {
4820
+ subagentKind: "agent" | "graph";
4629
4821
  parentMessageId: string;
4630
4822
  rootConversationId: string;
4631
4823
  parentConversationId: string;
4632
4824
  parentToolCallId: string;
4633
4825
  subagentType: string;
4634
- subagentKind: "agent" | "graph";
4635
4826
  depth: number;
4636
4827
  parentAgentId?: string | undefined;
4637
4828
  }>>;
@@ -4654,7 +4845,8 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4654
4845
  resendImages: z.ZodOptional<z.ZodBoolean>;
4655
4846
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4656
4847
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4657
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "instructions" | "greeting" | "iconURL">, "strip", z.ZodTypeAny, {
4848
+ }, "instructions" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "greeting" | "iconURL">, "strip", z.ZodTypeAny, {
4849
+ instructions?: string | undefined;
4658
4850
  model?: string | null | undefined;
4659
4851
  modelLabel?: string | null | undefined;
4660
4852
  promptPrefix?: string | null | undefined;
@@ -4667,10 +4859,10 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4667
4859
  resendFiles?: boolean | undefined;
4668
4860
  imageDetail?: ImageDetail | undefined;
4669
4861
  agent_id?: string | undefined;
4670
- instructions?: string | undefined;
4671
4862
  greeting?: string | undefined;
4672
4863
  iconURL?: string | null | undefined;
4673
4864
  }, {
4865
+ instructions?: string | undefined;
4674
4866
  model?: string | null | undefined;
4675
4867
  modelLabel?: string | null | undefined;
4676
4868
  promptPrefix?: string | null | undefined;
@@ -4683,7 +4875,6 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4683
4875
  resendFiles?: boolean | undefined;
4684
4876
  imageDetail?: ImageDetail | undefined;
4685
4877
  agent_id?: string | undefined;
4686
- instructions?: string | undefined;
4687
4878
  greeting?: string | undefined;
4688
4879
  iconURL?: string | null | undefined;
4689
4880
  }>;
@@ -4697,6 +4888,18 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4697
4888
  pinned: z.ZodOptional<z.ZodBoolean>;
4698
4889
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4699
4890
  isShared: z.ZodOptional<z.ZodBoolean>;
4891
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4892
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4893
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4894
+ environmentId: z.ZodString;
4895
+ workspaceId: z.ZodString;
4896
+ }, "strict", z.ZodTypeAny, {
4897
+ environmentId: string;
4898
+ workspaceId: string;
4899
+ }, {
4900
+ environmentId: string;
4901
+ workspaceId: string;
4902
+ }>, "many">>;
4700
4903
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4701
4904
  user: z.ZodOptional<z.ZodString>;
4702
4905
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4851,21 +5054,21 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4851
5054
  subagentKind: z.ZodEnum<["agent", "graph"]>;
4852
5055
  depth: z.ZodNumber;
4853
5056
  }, "strip", z.ZodTypeAny, {
5057
+ subagentKind: "agent" | "graph";
4854
5058
  parentMessageId: string;
4855
5059
  rootConversationId: string;
4856
5060
  parentConversationId: string;
4857
5061
  parentToolCallId: string;
4858
5062
  subagentType: string;
4859
- subagentKind: "agent" | "graph";
4860
5063
  depth: number;
4861
5064
  parentAgentId?: string | undefined;
4862
5065
  }, {
5066
+ subagentKind: "agent" | "graph";
4863
5067
  parentMessageId: string;
4864
5068
  rootConversationId: string;
4865
5069
  parentConversationId: string;
4866
5070
  parentToolCallId: string;
4867
5071
  subagentType: string;
4868
- subagentKind: "agent" | "graph";
4869
5072
  depth: number;
4870
5073
  parentAgentId?: string | undefined;
4871
5074
  }>>;
@@ -4888,7 +5091,8 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4888
5091
  resendImages: z.ZodOptional<z.ZodBoolean>;
4889
5092
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4890
5093
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4891
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "instructions" | "greeting" | "iconURL">, "strip", z.ZodTypeAny, {
5094
+ }, "instructions" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "greeting" | "iconURL">, "strip", z.ZodTypeAny, {
5095
+ instructions?: string | undefined;
4892
5096
  model?: string | null | undefined;
4893
5097
  modelLabel?: string | null | undefined;
4894
5098
  promptPrefix?: string | null | undefined;
@@ -4901,10 +5105,10 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4901
5105
  resendFiles?: boolean | undefined;
4902
5106
  imageDetail?: ImageDetail | undefined;
4903
5107
  agent_id?: string | undefined;
4904
- instructions?: string | undefined;
4905
5108
  greeting?: string | undefined;
4906
5109
  iconURL?: string | null | undefined;
4907
5110
  }, {
5111
+ instructions?: string | undefined;
4908
5112
  model?: string | null | undefined;
4909
5113
  modelLabel?: string | null | undefined;
4910
5114
  promptPrefix?: string | null | undefined;
@@ -4917,7 +5121,6 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4917
5121
  resendFiles?: boolean | undefined;
4918
5122
  imageDetail?: ImageDetail | undefined;
4919
5123
  agent_id?: string | undefined;
4920
- instructions?: string | undefined;
4921
5124
  greeting?: string | undefined;
4922
5125
  iconURL?: string | null | undefined;
4923
5126
  }>, {
@@ -4937,6 +5140,7 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4937
5140
  maxContextTokens: number | undefined;
4938
5141
  chatProjectId?: string | null | undefined;
4939
5142
  }, {
5143
+ instructions?: string | undefined;
4940
5144
  model?: string | null | undefined;
4941
5145
  modelLabel?: string | null | undefined;
4942
5146
  promptPrefix?: string | null | undefined;
@@ -4949,7 +5153,6 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4949
5153
  resendFiles?: boolean | undefined;
4950
5154
  imageDetail?: ImageDetail | undefined;
4951
5155
  agent_id?: string | undefined;
4952
- instructions?: string | undefined;
4953
5156
  greeting?: string | undefined;
4954
5157
  iconURL?: string | null | undefined;
4955
5158
  }>>;
@@ -4963,6 +5166,18 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4963
5166
  pinned: z.ZodOptional<z.ZodBoolean>;
4964
5167
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4965
5168
  isShared: z.ZodOptional<z.ZodBoolean>;
5169
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5170
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5171
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5172
+ environmentId: z.ZodString;
5173
+ workspaceId: z.ZodString;
5174
+ }, "strict", z.ZodTypeAny, {
5175
+ environmentId: string;
5176
+ workspaceId: string;
5177
+ }, {
5178
+ environmentId: string;
5179
+ workspaceId: string;
5180
+ }>, "many">>;
4966
5181
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4967
5182
  user: z.ZodOptional<z.ZodString>;
4968
5183
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5117,21 +5332,21 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5117
5332
  subagentKind: z.ZodEnum<["agent", "graph"]>;
5118
5333
  depth: z.ZodNumber;
5119
5334
  }, "strip", z.ZodTypeAny, {
5335
+ subagentKind: "agent" | "graph";
5120
5336
  parentMessageId: string;
5121
5337
  rootConversationId: string;
5122
5338
  parentConversationId: string;
5123
5339
  parentToolCallId: string;
5124
5340
  subagentType: string;
5125
- subagentKind: "agent" | "graph";
5126
5341
  depth: number;
5127
5342
  parentAgentId?: string | undefined;
5128
5343
  }, {
5344
+ subagentKind: "agent" | "graph";
5129
5345
  parentMessageId: string;
5130
5346
  rootConversationId: string;
5131
5347
  parentConversationId: string;
5132
5348
  parentToolCallId: string;
5133
5349
  subagentType: string;
5134
- subagentKind: "agent" | "graph";
5135
5350
  depth: number;
5136
5351
  parentAgentId?: string | undefined;
5137
5352
  }>>;
@@ -5154,7 +5369,9 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5154
5369
  resendImages: z.ZodOptional<z.ZodBoolean>;
5155
5370
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5156
5371
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5157
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5372
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5373
+ web_search?: boolean | undefined;
5374
+ artifacts?: string | undefined;
5158
5375
  model?: string | null | undefined;
5159
5376
  modelLabel?: string | null | undefined;
5160
5377
  promptPrefix?: string | null | undefined;
@@ -5164,7 +5381,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5164
5381
  presence_penalty?: number | undefined;
5165
5382
  maxContextTokens?: number | undefined;
5166
5383
  max_tokens?: number | undefined;
5167
- artifacts?: string | undefined;
5168
5384
  chatProjectId?: string | null | undefined;
5169
5385
  resendFiles?: boolean | undefined;
5170
5386
  imageDetail?: ImageDetail | undefined;
@@ -5174,7 +5390,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5174
5390
  reasoning_context?: ReasoningContext | null | undefined;
5175
5391
  verbosity?: Verbosity | null | undefined;
5176
5392
  useResponsesApi?: boolean | undefined;
5177
- web_search?: boolean | undefined;
5178
5393
  disableStreaming?: boolean | undefined;
5179
5394
  stop?: string[] | undefined;
5180
5395
  greeting?: string | undefined;
@@ -5183,6 +5398,8 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5183
5398
  fileTokenLimit?: number | undefined;
5184
5399
  chatGptLabel?: string | null | undefined;
5185
5400
  }, {
5401
+ web_search?: boolean | undefined;
5402
+ artifacts?: string | undefined;
5186
5403
  model?: string | null | undefined;
5187
5404
  modelLabel?: string | null | undefined;
5188
5405
  promptPrefix?: string | null | undefined;
@@ -5192,7 +5409,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5192
5409
  presence_penalty?: number | undefined;
5193
5410
  maxContextTokens?: string | number | undefined;
5194
5411
  max_tokens?: string | number | undefined;
5195
- artifacts?: string | undefined;
5196
5412
  chatProjectId?: string | null | undefined;
5197
5413
  resendFiles?: boolean | undefined;
5198
5414
  imageDetail?: ImageDetail | undefined;
@@ -5202,7 +5418,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5202
5418
  reasoning_context?: ReasoningContext | null | undefined;
5203
5419
  verbosity?: Verbosity | null | undefined;
5204
5420
  useResponsesApi?: boolean | undefined;
5205
- web_search?: boolean | undefined;
5206
5421
  disableStreaming?: boolean | undefined;
5207
5422
  stop?: string[] | undefined;
5208
5423
  greeting?: string | undefined;
@@ -5221,6 +5436,18 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5221
5436
  pinned: z.ZodOptional<z.ZodBoolean>;
5222
5437
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5223
5438
  isShared: z.ZodOptional<z.ZodBoolean>;
5439
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5440
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5441
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5442
+ environmentId: z.ZodString;
5443
+ workspaceId: z.ZodString;
5444
+ }, "strict", z.ZodTypeAny, {
5445
+ environmentId: string;
5446
+ workspaceId: string;
5447
+ }, {
5448
+ environmentId: string;
5449
+ workspaceId: string;
5450
+ }>, "many">>;
5224
5451
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5225
5452
  user: z.ZodOptional<z.ZodString>;
5226
5453
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5375,21 +5602,21 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5375
5602
  subagentKind: z.ZodEnum<["agent", "graph"]>;
5376
5603
  depth: z.ZodNumber;
5377
5604
  }, "strip", z.ZodTypeAny, {
5605
+ subagentKind: "agent" | "graph";
5378
5606
  parentMessageId: string;
5379
5607
  rootConversationId: string;
5380
5608
  parentConversationId: string;
5381
5609
  parentToolCallId: string;
5382
5610
  subagentType: string;
5383
- subagentKind: "agent" | "graph";
5384
5611
  depth: number;
5385
5612
  parentAgentId?: string | undefined;
5386
5613
  }, {
5614
+ subagentKind: "agent" | "graph";
5387
5615
  parentMessageId: string;
5388
5616
  rootConversationId: string;
5389
5617
  parentConversationId: string;
5390
5618
  parentToolCallId: string;
5391
5619
  subagentType: string;
5392
- subagentKind: "agent" | "graph";
5393
5620
  depth: number;
5394
5621
  parentAgentId?: string | undefined;
5395
5622
  }>>;
@@ -5412,7 +5639,9 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5412
5639
  resendImages: z.ZodOptional<z.ZodBoolean>;
5413
5640
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5414
5641
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5415
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5642
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5643
+ web_search?: boolean | undefined;
5644
+ artifacts?: string | undefined;
5416
5645
  model?: string | null | undefined;
5417
5646
  modelLabel?: string | null | undefined;
5418
5647
  promptPrefix?: string | null | undefined;
@@ -5422,7 +5651,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5422
5651
  presence_penalty?: number | undefined;
5423
5652
  maxContextTokens?: number | undefined;
5424
5653
  max_tokens?: number | undefined;
5425
- artifacts?: string | undefined;
5426
5654
  chatProjectId?: string | null | undefined;
5427
5655
  resendFiles?: boolean | undefined;
5428
5656
  imageDetail?: ImageDetail | undefined;
@@ -5432,7 +5660,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5432
5660
  reasoning_context?: ReasoningContext | null | undefined;
5433
5661
  verbosity?: Verbosity | null | undefined;
5434
5662
  useResponsesApi?: boolean | undefined;
5435
- web_search?: boolean | undefined;
5436
5663
  disableStreaming?: boolean | undefined;
5437
5664
  stop?: string[] | undefined;
5438
5665
  greeting?: string | undefined;
@@ -5441,6 +5668,8 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5441
5668
  fileTokenLimit?: number | undefined;
5442
5669
  chatGptLabel?: string | null | undefined;
5443
5670
  }, {
5671
+ web_search?: boolean | undefined;
5672
+ artifacts?: string | undefined;
5444
5673
  model?: string | null | undefined;
5445
5674
  modelLabel?: string | null | undefined;
5446
5675
  promptPrefix?: string | null | undefined;
@@ -5450,7 +5679,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5450
5679
  presence_penalty?: number | undefined;
5451
5680
  maxContextTokens?: string | number | undefined;
5452
5681
  max_tokens?: string | number | undefined;
5453
- artifacts?: string | undefined;
5454
5682
  chatProjectId?: string | null | undefined;
5455
5683
  resendFiles?: boolean | undefined;
5456
5684
  imageDetail?: ImageDetail | undefined;
@@ -5460,7 +5688,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5460
5688
  reasoning_context?: ReasoningContext | null | undefined;
5461
5689
  verbosity?: Verbosity | null | undefined;
5462
5690
  useResponsesApi?: boolean | undefined;
5463
- web_search?: boolean | undefined;
5464
5691
  disableStreaming?: boolean | undefined;
5465
5692
  stop?: string[] | undefined;
5466
5693
  greeting?: string | undefined;
@@ -5469,6 +5696,8 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5469
5696
  fileTokenLimit?: string | number | undefined;
5470
5697
  chatGptLabel?: string | null | undefined;
5471
5698
  }>, Partial<Partial<TConversation>>, {
5699
+ web_search?: boolean | undefined;
5700
+ artifacts?: string | undefined;
5472
5701
  model?: string | null | undefined;
5473
5702
  modelLabel?: string | null | undefined;
5474
5703
  promptPrefix?: string | null | undefined;
@@ -5478,7 +5707,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5478
5707
  presence_penalty?: number | undefined;
5479
5708
  maxContextTokens?: string | number | undefined;
5480
5709
  max_tokens?: string | number | undefined;
5481
- artifacts?: string | undefined;
5482
5710
  chatProjectId?: string | null | undefined;
5483
5711
  resendFiles?: boolean | undefined;
5484
5712
  imageDetail?: ImageDetail | undefined;
@@ -5488,7 +5716,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5488
5716
  reasoning_context?: ReasoningContext | null | undefined;
5489
5717
  verbosity?: Verbosity | null | undefined;
5490
5718
  useResponsesApi?: boolean | undefined;
5491
- web_search?: boolean | undefined;
5492
5719
  disableStreaming?: boolean | undefined;
5493
5720
  stop?: string[] | undefined;
5494
5721
  greeting?: string | undefined;
@@ -5507,6 +5734,18 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5507
5734
  pinned: z.ZodOptional<z.ZodBoolean>;
5508
5735
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5509
5736
  isShared: z.ZodOptional<z.ZodBoolean>;
5737
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5738
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5739
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5740
+ environmentId: z.ZodString;
5741
+ workspaceId: z.ZodString;
5742
+ }, "strict", z.ZodTypeAny, {
5743
+ environmentId: string;
5744
+ workspaceId: string;
5745
+ }, {
5746
+ environmentId: string;
5747
+ workspaceId: string;
5748
+ }>, "many">>;
5510
5749
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5511
5750
  user: z.ZodOptional<z.ZodString>;
5512
5751
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5661,21 +5900,21 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5661
5900
  subagentKind: z.ZodEnum<["agent", "graph"]>;
5662
5901
  depth: z.ZodNumber;
5663
5902
  }, "strip", z.ZodTypeAny, {
5903
+ subagentKind: "agent" | "graph";
5664
5904
  parentMessageId: string;
5665
5905
  rootConversationId: string;
5666
5906
  parentConversationId: string;
5667
5907
  parentToolCallId: string;
5668
5908
  subagentType: string;
5669
- subagentKind: "agent" | "graph";
5670
5909
  depth: number;
5671
5910
  parentAgentId?: string | undefined;
5672
5911
  }, {
5912
+ subagentKind: "agent" | "graph";
5673
5913
  parentMessageId: string;
5674
5914
  rootConversationId: string;
5675
5915
  parentConversationId: string;
5676
5916
  parentToolCallId: string;
5677
5917
  subagentType: string;
5678
- subagentKind: "agent" | "graph";
5679
5918
  depth: number;
5680
5919
  parentAgentId?: string | undefined;
5681
5920
  }>>;
@@ -5698,7 +5937,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5698
5937
  resendImages: z.ZodOptional<z.ZodBoolean>;
5699
5938
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5700
5939
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5701
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel"> & Pick<{
5940
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "reasoning_mode" | "reasoning_context" | "verbosity" | "useResponsesApi" | "disableStreaming" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel"> & Pick<{
5702
5941
  conversationId: z.ZodNullable<z.ZodString>;
5703
5942
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5704
5943
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
@@ -5708,6 +5947,18 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5708
5947
  pinned: z.ZodOptional<z.ZodBoolean>;
5709
5948
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5710
5949
  isShared: z.ZodOptional<z.ZodBoolean>;
5950
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5951
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5952
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5953
+ environmentId: z.ZodString;
5954
+ workspaceId: z.ZodString;
5955
+ }, "strict", z.ZodTypeAny, {
5956
+ environmentId: string;
5957
+ workspaceId: string;
5958
+ }, {
5959
+ environmentId: string;
5960
+ workspaceId: string;
5961
+ }>, "many">>;
5711
5962
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5712
5963
  user: z.ZodOptional<z.ZodString>;
5713
5964
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5862,21 +6113,21 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5862
6113
  subagentKind: z.ZodEnum<["agent", "graph"]>;
5863
6114
  depth: z.ZodNumber;
5864
6115
  }, "strip", z.ZodTypeAny, {
6116
+ subagentKind: "agent" | "graph";
5865
6117
  parentMessageId: string;
5866
6118
  rootConversationId: string;
5867
6119
  parentConversationId: string;
5868
6120
  parentToolCallId: string;
5869
6121
  subagentType: string;
5870
- subagentKind: "agent" | "graph";
5871
6122
  depth: number;
5872
6123
  parentAgentId?: string | undefined;
5873
6124
  }, {
6125
+ subagentKind: "agent" | "graph";
5874
6126
  parentMessageId: string;
5875
6127
  rootConversationId: string;
5876
6128
  parentConversationId: string;
5877
6129
  parentToolCallId: string;
5878
6130
  subagentType: string;
5879
- subagentKind: "agent" | "graph";
5880
6131
  depth: number;
5881
6132
  parentAgentId?: string | undefined;
5882
6133
  }>>;
@@ -5900,6 +6151,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5900
6151
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5901
6152
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5902
6153
  }, "promptCache" | "promptCacheTtl">, "strip", z.ZodTypeAny, {
6154
+ web_search?: boolean | undefined;
6155
+ artifacts?: string | undefined;
5903
6156
  model?: string | null | undefined;
5904
6157
  modelLabel?: string | null | undefined;
5905
6158
  promptPrefix?: string | null | undefined;
@@ -5911,7 +6164,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5911
6164
  max_tokens?: number | undefined;
5912
6165
  promptCache?: boolean | undefined;
5913
6166
  promptCacheTtl?: "5m" | "1h" | undefined;
5914
- artifacts?: string | undefined;
5915
6167
  chatProjectId?: string | null | undefined;
5916
6168
  resendFiles?: boolean | undefined;
5917
6169
  imageDetail?: ImageDetail | undefined;
@@ -5921,7 +6173,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5921
6173
  reasoning_context?: ReasoningContext | null | undefined;
5922
6174
  verbosity?: Verbosity | null | undefined;
5923
6175
  useResponsesApi?: boolean | undefined;
5924
- web_search?: boolean | undefined;
5925
6176
  disableStreaming?: boolean | undefined;
5926
6177
  stop?: string[] | undefined;
5927
6178
  greeting?: string | undefined;
@@ -5930,6 +6181,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5930
6181
  fileTokenLimit?: number | undefined;
5931
6182
  chatGptLabel?: string | null | undefined;
5932
6183
  }, {
6184
+ web_search?: boolean | undefined;
6185
+ artifacts?: string | undefined;
5933
6186
  model?: string | null | undefined;
5934
6187
  modelLabel?: string | null | undefined;
5935
6188
  promptPrefix?: string | null | undefined;
@@ -5941,7 +6194,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5941
6194
  max_tokens?: string | number | undefined;
5942
6195
  promptCache?: boolean | undefined;
5943
6196
  promptCacheTtl?: "5m" | "1h" | undefined;
5944
- artifacts?: string | undefined;
5945
6197
  chatProjectId?: string | null | undefined;
5946
6198
  resendFiles?: boolean | undefined;
5947
6199
  imageDetail?: ImageDetail | undefined;
@@ -5951,7 +6203,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5951
6203
  reasoning_context?: ReasoningContext | null | undefined;
5952
6204
  verbosity?: Verbosity | null | undefined;
5953
6205
  useResponsesApi?: boolean | undefined;
5954
- web_search?: boolean | undefined;
5955
6206
  disableStreaming?: boolean | undefined;
5956
6207
  stop?: string[] | undefined;
5957
6208
  greeting?: string | undefined;
@@ -5960,6 +6211,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5960
6211
  fileTokenLimit?: string | number | undefined;
5961
6212
  chatGptLabel?: string | null | undefined;
5962
6213
  }>, Partial<Partial<TConversation>>, {
6214
+ web_search?: boolean | undefined;
6215
+ artifacts?: string | undefined;
5963
6216
  model?: string | null | undefined;
5964
6217
  modelLabel?: string | null | undefined;
5965
6218
  promptPrefix?: string | null | undefined;
@@ -5971,7 +6224,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5971
6224
  max_tokens?: string | number | undefined;
5972
6225
  promptCache?: boolean | undefined;
5973
6226
  promptCacheTtl?: "5m" | "1h" | undefined;
5974
- artifacts?: string | undefined;
5975
6227
  chatProjectId?: string | null | undefined;
5976
6228
  resendFiles?: boolean | undefined;
5977
6229
  imageDetail?: ImageDetail | undefined;
@@ -5981,7 +6233,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5981
6233
  reasoning_context?: ReasoningContext | null | undefined;
5982
6234
  verbosity?: Verbosity | null | undefined;
5983
6235
  useResponsesApi?: boolean | undefined;
5984
- web_search?: boolean | undefined;
5985
6236
  disableStreaming?: boolean | undefined;
5986
6237
  stop?: string[] | undefined;
5987
6238
  greeting?: string | undefined;
@@ -6000,6 +6251,18 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6000
6251
  pinned: z.ZodOptional<z.ZodBoolean>;
6001
6252
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6002
6253
  isShared: z.ZodOptional<z.ZodBoolean>;
6254
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6255
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6256
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6257
+ environmentId: z.ZodString;
6258
+ workspaceId: z.ZodString;
6259
+ }, "strict", z.ZodTypeAny, {
6260
+ environmentId: string;
6261
+ workspaceId: string;
6262
+ }, {
6263
+ environmentId: string;
6264
+ workspaceId: string;
6265
+ }>, "many">>;
6003
6266
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6004
6267
  user: z.ZodOptional<z.ZodString>;
6005
6268
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6154,21 +6417,21 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6154
6417
  subagentKind: z.ZodEnum<["agent", "graph"]>;
6155
6418
  depth: z.ZodNumber;
6156
6419
  }, "strip", z.ZodTypeAny, {
6420
+ subagentKind: "agent" | "graph";
6157
6421
  parentMessageId: string;
6158
6422
  rootConversationId: string;
6159
6423
  parentConversationId: string;
6160
6424
  parentToolCallId: string;
6161
6425
  subagentType: string;
6162
- subagentKind: "agent" | "graph";
6163
6426
  depth: number;
6164
6427
  parentAgentId?: string | undefined;
6165
6428
  }, {
6429
+ subagentKind: "agent" | "graph";
6166
6430
  parentMessageId: string;
6167
6431
  rootConversationId: string;
6168
6432
  parentConversationId: string;
6169
6433
  parentToolCallId: string;
6170
6434
  subagentType: string;
6171
- subagentKind: "agent" | "graph";
6172
6435
  depth: number;
6173
6436
  parentAgentId?: string | undefined;
6174
6437
  }>>;
@@ -6191,7 +6454,9 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6191
6454
  resendImages: z.ZodOptional<z.ZodBoolean>;
6192
6455
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6193
6456
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6194
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6457
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6458
+ web_search?: boolean | undefined;
6459
+ artifacts?: string | undefined;
6195
6460
  model?: string | null | undefined;
6196
6461
  modelLabel?: string | null | undefined;
6197
6462
  promptPrefix?: string | null | undefined;
@@ -6203,7 +6468,6 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6203
6468
  thinking?: boolean | undefined;
6204
6469
  thinkingBudget?: number | undefined;
6205
6470
  thinkingLevel?: ThinkingLevel | undefined;
6206
- artifacts?: string | undefined;
6207
6471
  examples?: {
6208
6472
  input: {
6209
6473
  content: string;
@@ -6214,13 +6478,14 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6214
6478
  }[] | undefined;
6215
6479
  chatProjectId?: string | null | undefined;
6216
6480
  resendFiles?: boolean | undefined;
6217
- web_search?: boolean | undefined;
6218
6481
  url_context?: boolean | undefined;
6219
6482
  greeting?: string | undefined;
6220
6483
  spec?: string | null | undefined;
6221
6484
  iconURL?: string | null | undefined;
6222
6485
  fileTokenLimit?: number | undefined;
6223
6486
  }, {
6487
+ web_search?: boolean | undefined;
6488
+ artifacts?: string | undefined;
6224
6489
  model?: string | null | undefined;
6225
6490
  modelLabel?: string | null | undefined;
6226
6491
  promptPrefix?: string | null | undefined;
@@ -6232,7 +6497,6 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6232
6497
  thinking?: boolean | undefined;
6233
6498
  thinkingBudget?: string | number | undefined;
6234
6499
  thinkingLevel?: ThinkingLevel | undefined;
6235
- artifacts?: string | undefined;
6236
6500
  examples?: {
6237
6501
  input: {
6238
6502
  content: string;
@@ -6243,13 +6507,14 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6243
6507
  }[] | undefined;
6244
6508
  chatProjectId?: string | null | undefined;
6245
6509
  resendFiles?: boolean | undefined;
6246
- web_search?: boolean | undefined;
6247
6510
  url_context?: boolean | undefined;
6248
6511
  greeting?: string | undefined;
6249
6512
  spec?: string | null | undefined;
6250
6513
  iconURL?: string | null | undefined;
6251
6514
  fileTokenLimit?: string | number | undefined;
6252
6515
  }>, Partial<Partial<TConversation>>, {
6516
+ web_search?: boolean | undefined;
6517
+ artifacts?: string | undefined;
6253
6518
  model?: string | null | undefined;
6254
6519
  modelLabel?: string | null | undefined;
6255
6520
  promptPrefix?: string | null | undefined;
@@ -6261,7 +6526,6 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6261
6526
  thinking?: boolean | undefined;
6262
6527
  thinkingBudget?: string | number | undefined;
6263
6528
  thinkingLevel?: ThinkingLevel | undefined;
6264
- artifacts?: string | undefined;
6265
6529
  examples?: {
6266
6530
  input: {
6267
6531
  content: string;
@@ -6272,7 +6536,6 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6272
6536
  }[] | undefined;
6273
6537
  chatProjectId?: string | null | undefined;
6274
6538
  resendFiles?: boolean | undefined;
6275
- web_search?: boolean | undefined;
6276
6539
  url_context?: boolean | undefined;
6277
6540
  greeting?: string | undefined;
6278
6541
  spec?: string | null | undefined;
@@ -6289,6 +6552,18 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6289
6552
  pinned: z.ZodOptional<z.ZodBoolean>;
6290
6553
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6291
6554
  isShared: z.ZodOptional<z.ZodBoolean>;
6555
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6556
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6557
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6558
+ environmentId: z.ZodString;
6559
+ workspaceId: z.ZodString;
6560
+ }, "strict", z.ZodTypeAny, {
6561
+ environmentId: string;
6562
+ workspaceId: string;
6563
+ }, {
6564
+ environmentId: string;
6565
+ workspaceId: string;
6566
+ }>, "many">>;
6292
6567
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6293
6568
  user: z.ZodOptional<z.ZodString>;
6294
6569
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6443,21 +6718,21 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6443
6718
  subagentKind: z.ZodEnum<["agent", "graph"]>;
6444
6719
  depth: z.ZodNumber;
6445
6720
  }, "strip", z.ZodTypeAny, {
6721
+ subagentKind: "agent" | "graph";
6446
6722
  parentMessageId: string;
6447
6723
  rootConversationId: string;
6448
6724
  parentConversationId: string;
6449
6725
  parentToolCallId: string;
6450
6726
  subagentType: string;
6451
- subagentKind: "agent" | "graph";
6452
6727
  depth: number;
6453
6728
  parentAgentId?: string | undefined;
6454
6729
  }, {
6730
+ subagentKind: "agent" | "graph";
6455
6731
  parentMessageId: string;
6456
6732
  rootConversationId: string;
6457
6733
  parentConversationId: string;
6458
6734
  parentToolCallId: string;
6459
6735
  subagentType: string;
6460
- subagentKind: "agent" | "graph";
6461
6736
  depth: number;
6462
6737
  parentAgentId?: string | undefined;
6463
6738
  }>>;
@@ -6480,7 +6755,9 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6480
6755
  resendImages: z.ZodOptional<z.ZodBoolean>;
6481
6756
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6482
6757
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6483
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "artifacts" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "web_search" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6758
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6759
+ web_search?: boolean | undefined;
6760
+ artifacts?: string | undefined;
6484
6761
  model?: string | null | undefined;
6485
6762
  modelLabel?: string | null | undefined;
6486
6763
  promptPrefix?: string | null | undefined;
@@ -6494,18 +6771,18 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6494
6771
  thinking?: boolean | undefined;
6495
6772
  thinkingBudget?: number | undefined;
6496
6773
  stream?: boolean | undefined;
6497
- artifacts?: string | undefined;
6498
6774
  chatProjectId?: string | null | undefined;
6499
6775
  resendFiles?: boolean | undefined;
6500
6776
  effort?: AnthropicEffort | null | undefined;
6501
6777
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6502
- web_search?: boolean | undefined;
6503
6778
  stop?: string[] | undefined;
6504
6779
  greeting?: string | undefined;
6505
6780
  spec?: string | null | undefined;
6506
6781
  iconURL?: string | null | undefined;
6507
6782
  fileTokenLimit?: number | undefined;
6508
6783
  }, {
6784
+ web_search?: boolean | undefined;
6785
+ artifacts?: string | undefined;
6509
6786
  model?: string | null | undefined;
6510
6787
  modelLabel?: string | null | undefined;
6511
6788
  promptPrefix?: string | null | undefined;
@@ -6519,12 +6796,10 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6519
6796
  thinking?: boolean | undefined;
6520
6797
  thinkingBudget?: string | number | undefined;
6521
6798
  stream?: boolean | undefined;
6522
- artifacts?: string | undefined;
6523
6799
  chatProjectId?: string | null | undefined;
6524
6800
  resendFiles?: boolean | undefined;
6525
6801
  effort?: AnthropicEffort | null | undefined;
6526
6802
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6527
- web_search?: boolean | undefined;
6528
6803
  stop?: string[] | undefined;
6529
6804
  greeting?: string | undefined;
6530
6805
  spec?: string | null | undefined;
@@ -6541,6 +6816,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6541
6816
  pinned: z.ZodOptional<z.ZodBoolean>;
6542
6817
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6543
6818
  isShared: z.ZodOptional<z.ZodBoolean>;
6819
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6820
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6821
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6822
+ environmentId: z.ZodString;
6823
+ workspaceId: z.ZodString;
6824
+ }, "strict", z.ZodTypeAny, {
6825
+ environmentId: string;
6826
+ workspaceId: string;
6827
+ }, {
6828
+ environmentId: string;
6829
+ workspaceId: string;
6830
+ }>, "many">>;
6544
6831
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6545
6832
  user: z.ZodOptional<z.ZodString>;
6546
6833
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6695,21 +6982,21 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6695
6982
  subagentKind: z.ZodEnum<["agent", "graph"]>;
6696
6983
  depth: z.ZodNumber;
6697
6984
  }, "strip", z.ZodTypeAny, {
6985
+ subagentKind: "agent" | "graph";
6698
6986
  parentMessageId: string;
6699
6987
  rootConversationId: string;
6700
6988
  parentConversationId: string;
6701
6989
  parentToolCallId: string;
6702
6990
  subagentType: string;
6703
- subagentKind: "agent" | "graph";
6704
6991
  depth: number;
6705
6992
  parentAgentId?: string | undefined;
6706
6993
  }, {
6994
+ subagentKind: "agent" | "graph";
6707
6995
  parentMessageId: string;
6708
6996
  rootConversationId: string;
6709
6997
  parentConversationId: string;
6710
6998
  parentToolCallId: string;
6711
6999
  subagentType: string;
6712
- subagentKind: "agent" | "graph";
6713
7000
  depth: number;
6714
7001
  parentAgentId?: string | undefined;
6715
7002
  }>>;
@@ -6732,7 +7019,9 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6732
7019
  resendImages: z.ZodOptional<z.ZodBoolean>;
6733
7020
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6734
7021
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6735
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "artifacts" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "web_search" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
7022
+ }, "web_search" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "stop" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
7023
+ web_search?: boolean | undefined;
7024
+ artifacts?: string | undefined;
6736
7025
  model?: string | null | undefined;
6737
7026
  modelLabel?: string | null | undefined;
6738
7027
  promptPrefix?: string | null | undefined;
@@ -6746,18 +7035,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6746
7035
  thinking?: boolean | undefined;
6747
7036
  thinkingBudget?: number | undefined;
6748
7037
  stream?: boolean | undefined;
6749
- artifacts?: string | undefined;
6750
7038
  chatProjectId?: string | null | undefined;
6751
7039
  resendFiles?: boolean | undefined;
6752
7040
  effort?: AnthropicEffort | null | undefined;
6753
7041
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6754
- web_search?: boolean | undefined;
6755
7042
  stop?: string[] | undefined;
6756
7043
  greeting?: string | undefined;
6757
7044
  spec?: string | null | undefined;
6758
7045
  iconURL?: string | null | undefined;
6759
7046
  fileTokenLimit?: number | undefined;
6760
7047
  }, {
7048
+ web_search?: boolean | undefined;
7049
+ artifacts?: string | undefined;
6761
7050
  model?: string | null | undefined;
6762
7051
  modelLabel?: string | null | undefined;
6763
7052
  promptPrefix?: string | null | undefined;
@@ -6771,18 +7060,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6771
7060
  thinking?: boolean | undefined;
6772
7061
  thinkingBudget?: string | number | undefined;
6773
7062
  stream?: boolean | undefined;
6774
- artifacts?: string | undefined;
6775
7063
  chatProjectId?: string | null | undefined;
6776
7064
  resendFiles?: boolean | undefined;
6777
7065
  effort?: AnthropicEffort | null | undefined;
6778
7066
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6779
- web_search?: boolean | undefined;
6780
7067
  stop?: string[] | undefined;
6781
7068
  greeting?: string | undefined;
6782
7069
  spec?: string | null | undefined;
6783
7070
  iconURL?: string | null | undefined;
6784
7071
  fileTokenLimit?: string | number | undefined;
6785
7072
  }>, Partial<{
7073
+ web_search?: boolean | undefined;
7074
+ artifacts?: string | undefined;
6786
7075
  model?: string | null | undefined;
6787
7076
  modelLabel?: string | null | undefined;
6788
7077
  promptPrefix?: string | null | undefined;
@@ -6796,18 +7085,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6796
7085
  thinking?: boolean | undefined;
6797
7086
  thinkingBudget?: number | undefined;
6798
7087
  stream?: boolean | undefined;
6799
- artifacts?: string | undefined;
6800
7088
  chatProjectId?: string | null | undefined;
6801
7089
  resendFiles?: boolean | undefined;
6802
7090
  effort?: AnthropicEffort | null | undefined;
6803
7091
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6804
- web_search?: boolean | undefined;
6805
7092
  stop?: string[] | undefined;
6806
7093
  greeting?: string | undefined;
6807
7094
  spec?: string | null | undefined;
6808
7095
  iconURL?: string | null | undefined;
6809
7096
  fileTokenLimit?: number | undefined;
6810
7097
  }>, {
7098
+ web_search?: boolean | undefined;
7099
+ artifacts?: string | undefined;
6811
7100
  model?: string | null | undefined;
6812
7101
  modelLabel?: string | null | undefined;
6813
7102
  promptPrefix?: string | null | undefined;
@@ -6821,12 +7110,10 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6821
7110
  thinking?: boolean | undefined;
6822
7111
  thinkingBudget?: string | number | undefined;
6823
7112
  stream?: boolean | undefined;
6824
- artifacts?: string | undefined;
6825
7113
  chatProjectId?: string | null | undefined;
6826
7114
  resendFiles?: boolean | undefined;
6827
7115
  effort?: AnthropicEffort | null | undefined;
6828
7116
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6829
- web_search?: boolean | undefined;
6830
7117
  stop?: string[] | undefined;
6831
7118
  greeting?: string | undefined;
6832
7119
  spec?: string | null | undefined;
@@ -6844,18 +7131,18 @@ export declare const tBannerSchema: z.ZodObject<{
6844
7131
  persistable: z.ZodDefault<z.ZodBoolean>;
6845
7132
  }, "strip", z.ZodTypeAny, {
6846
7133
  message: string;
7134
+ isPublic: boolean;
6847
7135
  createdAt: string;
6848
7136
  updatedAt: string;
6849
- isPublic: boolean;
6850
7137
  bannerId: string;
6851
7138
  displayFrom: string;
6852
7139
  displayTo: string;
6853
7140
  persistable: boolean;
6854
7141
  }, {
6855
7142
  message: string;
7143
+ isPublic: boolean;
6856
7144
  createdAt: string;
6857
7145
  updatedAt: string;
6858
- isPublic: boolean;
6859
7146
  bannerId: string;
6860
7147
  displayFrom: string;
6861
7148
  displayTo: string;
@@ -6872,6 +7159,18 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6872
7159
  pinned: z.ZodOptional<z.ZodBoolean>;
6873
7160
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6874
7161
  isShared: z.ZodOptional<z.ZodBoolean>;
7162
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
7163
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
7164
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
7165
+ environmentId: z.ZodString;
7166
+ workspaceId: z.ZodString;
7167
+ }, "strict", z.ZodTypeAny, {
7168
+ environmentId: string;
7169
+ workspaceId: string;
7170
+ }, {
7171
+ environmentId: string;
7172
+ workspaceId: string;
7173
+ }>, "many">>;
6875
7174
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6876
7175
  user: z.ZodOptional<z.ZodString>;
6877
7176
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -7026,21 +7325,21 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
7026
7325
  subagentKind: z.ZodEnum<["agent", "graph"]>;
7027
7326
  depth: z.ZodNumber;
7028
7327
  }, "strip", z.ZodTypeAny, {
7328
+ subagentKind: "agent" | "graph";
7029
7329
  parentMessageId: string;
7030
7330
  rootConversationId: string;
7031
7331
  parentConversationId: string;
7032
7332
  parentToolCallId: string;
7033
7333
  subagentType: string;
7034
- subagentKind: "agent" | "graph";
7035
7334
  depth: number;
7036
7335
  parentAgentId?: string | undefined;
7037
7336
  }, {
7337
+ subagentKind: "agent" | "graph";
7038
7338
  parentMessageId: string;
7039
7339
  rootConversationId: string;
7040
7340
  parentConversationId: string;
7041
7341
  parentToolCallId: string;
7042
7342
  subagentType: string;
7043
- subagentKind: "agent" | "graph";
7044
7343
  depth: number;
7045
7344
  parentAgentId?: string | undefined;
7046
7345
  }>>;
@@ -7063,19 +7362,19 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
7063
7362
  resendImages: z.ZodOptional<z.ZodBoolean>;
7064
7363
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
7065
7364
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7066
- }, "chatProjectId" | "agent_id" | "instructions" | "additional_instructions" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7067
- chatProjectId?: string | null | undefined;
7068
- agent_id?: string | undefined;
7365
+ }, "instructions" | "additional_instructions" | "chatProjectId" | "agent_id" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7069
7366
  instructions?: string | undefined;
7070
7367
  additional_instructions?: string | undefined;
7368
+ chatProjectId?: string | null | undefined;
7369
+ agent_id?: string | undefined;
7071
7370
  greeting?: string | undefined;
7072
7371
  spec?: string | null | undefined;
7073
7372
  iconURL?: string | null | undefined;
7074
7373
  }, {
7075
- chatProjectId?: string | null | undefined;
7076
- agent_id?: string | undefined;
7077
7374
  instructions?: string | undefined;
7078
7375
  additional_instructions?: string | undefined;
7376
+ chatProjectId?: string | null | undefined;
7377
+ agent_id?: string | undefined;
7079
7378
  greeting?: string | undefined;
7080
7379
  spec?: string | null | undefined;
7081
7380
  iconURL?: string | null | undefined;
@@ -7090,6 +7389,18 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7090
7389
  pinned: z.ZodOptional<z.ZodBoolean>;
7091
7390
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
7092
7391
  isShared: z.ZodOptional<z.ZodBoolean>;
7392
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
7393
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
7394
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
7395
+ environmentId: z.ZodString;
7396
+ workspaceId: z.ZodString;
7397
+ }, "strict", z.ZodTypeAny, {
7398
+ environmentId: string;
7399
+ workspaceId: string;
7400
+ }, {
7401
+ environmentId: string;
7402
+ workspaceId: string;
7403
+ }>, "many">>;
7093
7404
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
7094
7405
  user: z.ZodOptional<z.ZodString>;
7095
7406
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -7244,21 +7555,21 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7244
7555
  subagentKind: z.ZodEnum<["agent", "graph"]>;
7245
7556
  depth: z.ZodNumber;
7246
7557
  }, "strip", z.ZodTypeAny, {
7558
+ subagentKind: "agent" | "graph";
7247
7559
  parentMessageId: string;
7248
7560
  rootConversationId: string;
7249
7561
  parentConversationId: string;
7250
7562
  parentToolCallId: string;
7251
7563
  subagentType: string;
7252
- subagentKind: "agent" | "graph";
7253
7564
  depth: number;
7254
7565
  parentAgentId?: string | undefined;
7255
7566
  }, {
7567
+ subagentKind: "agent" | "graph";
7256
7568
  parentMessageId: string;
7257
7569
  rootConversationId: string;
7258
7570
  parentConversationId: string;
7259
7571
  parentToolCallId: string;
7260
7572
  subagentType: string;
7261
- subagentKind: "agent" | "graph";
7262
7573
  depth: number;
7263
7574
  parentAgentId?: string | undefined;
7264
7575
  }>>;
@@ -7281,35 +7592,35 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7281
7592
  resendImages: z.ZodOptional<z.ZodBoolean>;
7282
7593
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
7283
7594
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7284
- }, "chatProjectId" | "agent_id" | "instructions" | "additional_instructions" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7285
- chatProjectId?: string | null | undefined;
7286
- agent_id?: string | undefined;
7595
+ }, "instructions" | "additional_instructions" | "chatProjectId" | "agent_id" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7287
7596
  instructions?: string | undefined;
7288
7597
  additional_instructions?: string | undefined;
7598
+ chatProjectId?: string | null | undefined;
7599
+ agent_id?: string | undefined;
7289
7600
  greeting?: string | undefined;
7290
7601
  spec?: string | null | undefined;
7291
7602
  iconURL?: string | null | undefined;
7292
7603
  }, {
7293
- chatProjectId?: string | null | undefined;
7294
- agent_id?: string | undefined;
7295
7604
  instructions?: string | undefined;
7296
7605
  additional_instructions?: string | undefined;
7606
+ chatProjectId?: string | null | undefined;
7607
+ agent_id?: string | undefined;
7297
7608
  greeting?: string | undefined;
7298
7609
  spec?: string | null | undefined;
7299
7610
  iconURL?: string | null | undefined;
7300
7611
  }>, Partial<{
7301
- chatProjectId?: string | null | undefined;
7302
- agent_id?: string | undefined;
7303
7612
  instructions?: string | undefined;
7304
7613
  additional_instructions?: string | undefined;
7614
+ chatProjectId?: string | null | undefined;
7615
+ agent_id?: string | undefined;
7305
7616
  greeting?: string | undefined;
7306
7617
  spec?: string | null | undefined;
7307
7618
  iconURL?: string | null | undefined;
7308
7619
  }>, {
7309
- chatProjectId?: string | null | undefined;
7310
- agent_id?: string | undefined;
7311
7620
  instructions?: string | undefined;
7312
7621
  additional_instructions?: string | undefined;
7622
+ chatProjectId?: string | null | undefined;
7623
+ agent_id?: string | undefined;
7313
7624
  greeting?: string | undefined;
7314
7625
  spec?: string | null | undefined;
7315
7626
  iconURL?: string | null | undefined;