librechat-data-provider 0.8.522 → 0.8.524

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 (57) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-B-WUVvTH.mjs} +1044 -173
  2. package/dist/data-service-B-WUVvTH.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CUG1qdeC.js} +1426 -207
  4. package/dist/data-service-CUG1qdeC.js.map +1 -0
  5. package/dist/index.js +886 -74
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +780 -70
  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/actions.d.ts +1 -1
  13. package/dist/types/agentToolOptions.d.ts +1 -1
  14. package/dist/types/api-endpoints.d.ts +7 -0
  15. package/dist/types/backgroundResults.d.ts +13 -0
  16. package/dist/types/balance.d.ts +4 -0
  17. package/dist/types/bedrock.d.ts +132 -65
  18. package/dist/types/code/approval.d.ts +26 -0
  19. package/dist/types/code/worker.d.ts +10 -0
  20. package/dist/types/code/workspace.d.ts +50 -0
  21. package/dist/types/codeEnvRef.d.ts +5 -0
  22. package/dist/types/config.d.ts +5859 -2469
  23. package/dist/types/data-service.d.ts +22 -12
  24. package/dist/types/errors.d.ts +2 -0
  25. package/dist/types/file-config.d.ts +179 -12
  26. package/dist/types/filters.d.ts +97 -97
  27. package/dist/types/footer.d.ts +20 -0
  28. package/dist/types/generate.d.ts +48 -24
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/types/keys.d.ts +13 -2
  31. package/dist/types/limits.d.ts +8 -0
  32. package/dist/types/mcp.d.ts +683 -30
  33. package/dist/types/messages.d.ts +25 -1
  34. package/dist/types/models.d.ts +312 -183
  35. package/dist/types/parameterSettings.d.ts +10 -1
  36. package/dist/types/parsers.d.ts +25 -1
  37. package/dist/types/providers.d.ts +1 -0
  38. package/dist/types/resolve-llm-delivery-path.d.ts +161 -0
  39. package/dist/types/schemas.d.ts +771 -457
  40. package/dist/types/svg.d.ts +34 -0
  41. package/dist/types/types/agents.d.ts +257 -2
  42. package/dist/types/types/assistants.d.ts +2 -617
  43. package/dist/types/types/content.d.ts +286 -0
  44. package/dist/types/types/files.d.ts +48 -1
  45. package/dist/types/types/insights.d.ts +9 -0
  46. package/dist/types/types/mutations.d.ts +3 -2
  47. package/dist/types/types/queries.d.ts +8 -1
  48. package/dist/types/types/queuedTurns.d.ts +140 -106
  49. package/dist/types/types/runs.d.ts +33 -5
  50. package/dist/types/types/schedules.d.ts +40 -7
  51. package/dist/types/types/skills.d.ts +43 -0
  52. package/dist/types/types/tools.d.ts +132 -0
  53. package/dist/types/types/traces.d.ts +134 -0
  54. package/dist/types/types.d.ts +72 -2
  55. package/package.json +2 -2
  56. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  57. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -1,9 +1,11 @@
1
1
  import { z } from 'zod';
2
- import type { TMessageContentParts, AgentSubagentGraph, FunctionTool } from './types/assistants';
2
+ import type { TMessageContentParts } from './types/content';
3
+ import type { AgentSubagentGraph } from './types/agents';
3
4
  import type { SearchResultData } from './types/web';
5
+ import type { FunctionTool } from './types/tools';
4
6
  import type { TFile } from './types/files';
5
7
  import { TFeedback } from './feedback';
6
- import { Tools } from './types/assistants';
8
+ import { Tools } from './types/tools';
7
9
  export declare const isUUID: z.ZodString;
8
10
  export declare enum AuthType {
9
11
  OVERRIDE_AUTH = "override_auth",
@@ -56,6 +58,14 @@ export declare const isOpenAILikeProvider: (provider?: string | null) => boolean
56
58
  export declare const cacheSubsetProviders: Set<string>;
57
59
  export declare const inputTokensIncludesCache: (provider?: string | null) => boolean;
58
60
  export declare const isDocumentSupportedProvider: (provider?: string | null) => boolean;
61
+ /**
62
+ * Endpoints whose encoders actually build native audio/video payloads. Narrower than
63
+ * `documentSupportedProviders`: a provider can accept PDFs and still emit nothing for
64
+ * media, in which case the upload has to fall back to text/STT.
65
+ */
66
+ export declare const mediaSupportedProviders: Set<string>;
67
+ export declare const isMediaSupportedProvider: (provider?: string | null) => boolean;
68
+ export declare const isKnownProviderIdentifier: (provider?: string | null) => boolean;
59
69
  export declare const paramEndpoints: Set<string>;
60
70
  export declare enum BedrockProviders {
61
71
  AI21 = "ai21",
@@ -222,6 +232,8 @@ export declare const defaultAgentFormValues: {
222
232
  memory: boolean;
223
233
  stateful_code_environment: "user";
224
234
  code_environment_id: string | null | undefined;
235
+ code_workspace_id: string | undefined;
236
+ repositoryInstructions: "prefer" | "defer" | "off" | undefined;
225
237
  category: string;
226
238
  support_contact: {
227
239
  name: string;
@@ -745,14 +757,14 @@ export declare const tPluginAuthConfigSchema: z.ZodObject<{
745
757
  sensitive: z.ZodOptional<z.ZodBoolean>;
746
758
  }, "strip", z.ZodTypeAny, {
747
759
  description: string;
748
- authField: string;
749
760
  label: string;
761
+ authField: string;
750
762
  optional?: boolean | undefined;
751
763
  sensitive?: boolean | undefined;
752
764
  }, {
753
765
  description: string;
754
- authField: string;
755
766
  label: string;
767
+ authField: string;
756
768
  optional?: boolean | undefined;
757
769
  sensitive?: boolean | undefined;
758
770
  }>;
@@ -771,14 +783,14 @@ export declare const tPluginSchema: z.ZodObject<{
771
783
  sensitive: z.ZodOptional<z.ZodBoolean>;
772
784
  }, "strip", z.ZodTypeAny, {
773
785
  description: string;
774
- authField: string;
775
786
  label: string;
787
+ authField: string;
776
788
  optional?: boolean | undefined;
777
789
  sensitive?: boolean | undefined;
778
790
  }, {
779
791
  description: string;
780
- authField: string;
781
792
  label: string;
793
+ authField: string;
782
794
  optional?: boolean | undefined;
783
795
  sensitive?: boolean | undefined;
784
796
  }>, "many">>;
@@ -796,8 +808,8 @@ export declare const tPluginSchema: z.ZodObject<{
796
808
  icon?: string | undefined;
797
809
  authConfig?: {
798
810
  description: string;
799
- authField: string;
800
811
  label: string;
812
+ authField: string;
801
813
  optional?: boolean | undefined;
802
814
  sensitive?: boolean | undefined;
803
815
  }[] | undefined;
@@ -813,8 +825,8 @@ export declare const tPluginSchema: z.ZodObject<{
813
825
  icon?: string | undefined;
814
826
  authConfig?: {
815
827
  description: string;
816
- authField: string;
817
828
  label: string;
829
+ authField: string;
818
830
  optional?: boolean | undefined;
819
831
  sensitive?: boolean | undefined;
820
832
  }[] | undefined;
@@ -844,19 +856,19 @@ export declare const tExampleSchema: z.ZodObject<{
844
856
  content: string;
845
857
  }>;
846
858
  }, "strip", z.ZodTypeAny, {
847
- input: {
848
- content: string;
849
- };
850
859
  output: {
851
860
  content: string;
852
861
  };
853
- }, {
854
862
  input: {
855
863
  content: string;
856
864
  };
865
+ }, {
857
866
  output: {
858
867
  content: string;
859
868
  };
869
+ input: {
870
+ content: string;
871
+ };
860
872
  }>;
861
873
  export type TExample = z.infer<typeof tExampleSchema>;
862
874
  export declare const tMessageSchema: z.ZodObject<{
@@ -1015,14 +1027,20 @@ export declare const tMessageSchema: z.ZodObject<{
1015
1027
  */
1016
1028
  quotes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
1029
  }, "strip", z.ZodTypeAny, {
1018
- conversationId: string | null;
1030
+ text: string;
1019
1031
  title: string | null;
1032
+ conversationId: string | null;
1020
1033
  parentMessageId: string | null;
1021
1034
  createdAt: string;
1022
1035
  updatedAt: string;
1023
- text: string;
1024
1036
  messageId: string;
1025
1037
  isCreatedByUser: boolean;
1038
+ metadata?: Record<string, unknown> | undefined;
1039
+ feedback?: {
1040
+ rating: "thumbsUp" | "thumbsDown";
1041
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1042
+ text?: string | undefined;
1043
+ } | undefined;
1026
1044
  model?: string | null | undefined;
1027
1045
  endpoint?: string | undefined;
1028
1046
  iconURL?: string | null | undefined;
@@ -1047,12 +1065,6 @@ export declare const tMessageSchema: z.ZodObject<{
1047
1065
  searchResult?: boolean | undefined;
1048
1066
  finish_reason?: string | undefined;
1049
1067
  thread_id?: string | undefined;
1050
- feedback?: {
1051
- rating: "thumbsUp" | "thumbsDown";
1052
- tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1053
- text?: string | undefined;
1054
- } | undefined;
1055
- metadata?: Record<string, unknown> | undefined;
1056
1068
  tokenCount?: number | undefined;
1057
1069
  contextMeta?: {
1058
1070
  calibrationRatio?: number | undefined;
@@ -1073,14 +1085,20 @@ export declare const tMessageSchema: z.ZodObject<{
1073
1085
  alwaysAppliedSkills?: string[] | undefined;
1074
1086
  quotes?: string[] | undefined;
1075
1087
  }, {
1088
+ text: string;
1076
1089
  conversationId: string | null;
1077
1090
  parentMessageId: string | null;
1078
- text: string;
1079
1091
  messageId: string;
1080
1092
  isCreatedByUser: boolean;
1093
+ title?: string | null | undefined;
1094
+ metadata?: Record<string, unknown> | undefined;
1095
+ feedback?: {
1096
+ rating: "thumbsUp" | "thumbsDown";
1097
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1098
+ text?: string | undefined;
1099
+ } | undefined;
1081
1100
  model?: string | null | undefined;
1082
1101
  endpoint?: string | undefined;
1083
- title?: string | null | undefined;
1084
1102
  createdAt?: string | undefined;
1085
1103
  updatedAt?: string | undefined;
1086
1104
  iconURL?: string | null | undefined;
@@ -1105,12 +1123,6 @@ export declare const tMessageSchema: z.ZodObject<{
1105
1123
  searchResult?: boolean | undefined;
1106
1124
  finish_reason?: string | undefined;
1107
1125
  thread_id?: string | undefined;
1108
- feedback?: {
1109
- rating: "thumbsUp" | "thumbsDown";
1110
- tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
1111
- text?: string | undefined;
1112
- } | undefined;
1113
- metadata?: Record<string, unknown> | undefined;
1114
1126
  tokenCount?: number | undefined;
1115
1127
  contextMeta?: {
1116
1128
  calibrationRatio?: number | undefined;
@@ -1193,6 +1205,8 @@ export type TMessage = z.input<typeof tMessageSchema> & {
1193
1205
  siblingIndex?: number;
1194
1206
  attachments?: TAttachment[];
1195
1207
  clientTimestamp?: string;
1208
+ /** Client-only durable branch anchor while this message is an optimistic response. */
1209
+ clientQueueParentMessageId?: string;
1196
1210
  feedback?: TFeedback;
1197
1211
  };
1198
1212
  export declare const coerceNumber: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>;
@@ -1238,6 +1252,18 @@ export declare const tConversationSchema: z.ZodObject<{
1238
1252
  pinned: z.ZodOptional<z.ZodBoolean>;
1239
1253
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
1240
1254
  isShared: z.ZodOptional<z.ZodBoolean>;
1255
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1256
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1257
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ environmentId: z.ZodString;
1259
+ workspaceId: z.ZodString;
1260
+ }, "strict", z.ZodTypeAny, {
1261
+ environmentId: string;
1262
+ workspaceId: string;
1263
+ }, {
1264
+ environmentId: string;
1265
+ workspaceId: string;
1266
+ }>, "many">>;
1241
1267
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1242
1268
  user: z.ZodOptional<z.ZodString>;
1243
1269
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1255,14 +1281,14 @@ export declare const tConversationSchema: z.ZodObject<{
1255
1281
  sensitive: z.ZodOptional<z.ZodBoolean>;
1256
1282
  }, "strip", z.ZodTypeAny, {
1257
1283
  description: string;
1258
- authField: string;
1259
1284
  label: string;
1285
+ authField: string;
1260
1286
  optional?: boolean | undefined;
1261
1287
  sensitive?: boolean | undefined;
1262
1288
  }, {
1263
1289
  description: string;
1264
- authField: string;
1265
1290
  label: string;
1291
+ authField: string;
1266
1292
  optional?: boolean | undefined;
1267
1293
  sensitive?: boolean | undefined;
1268
1294
  }>, "many">>;
@@ -1280,8 +1306,8 @@ export declare const tConversationSchema: z.ZodObject<{
1280
1306
  icon?: string | undefined;
1281
1307
  authConfig?: {
1282
1308
  description: string;
1283
- authField: string;
1284
1309
  label: string;
1310
+ authField: string;
1285
1311
  optional?: boolean | undefined;
1286
1312
  sensitive?: boolean | undefined;
1287
1313
  }[] | undefined;
@@ -1297,8 +1323,8 @@ export declare const tConversationSchema: z.ZodObject<{
1297
1323
  icon?: string | undefined;
1298
1324
  authConfig?: {
1299
1325
  description: string;
1300
- authField: string;
1301
1326
  label: string;
1327
+ authField: string;
1302
1328
  optional?: boolean | undefined;
1303
1329
  sensitive?: boolean | undefined;
1304
1330
  }[] | undefined;
@@ -1347,19 +1373,19 @@ export declare const tConversationSchema: z.ZodObject<{
1347
1373
  content: string;
1348
1374
  }>;
1349
1375
  }, "strip", z.ZodTypeAny, {
1350
- input: {
1351
- content: string;
1352
- };
1353
1376
  output: {
1354
1377
  content: string;
1355
1378
  };
1356
- }, {
1357
1379
  input: {
1358
1380
  content: string;
1359
1381
  };
1382
+ }, {
1360
1383
  output: {
1361
1384
  content: string;
1362
1385
  };
1386
+ input: {
1387
+ content: string;
1388
+ };
1363
1389
  }>, "many">>;
1364
1390
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1365
1391
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1430,12 +1456,20 @@ export declare const tConversationSchema: z.ZodObject<{
1430
1456
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
1431
1457
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1432
1458
  }, "strip", z.ZodTypeAny, {
1459
+ title: string | null;
1433
1460
  conversationId: string | null;
1434
1461
  endpoint: EModelEndpoint | null;
1435
- title: string | null;
1436
1462
  createdAt: string;
1437
1463
  updatedAt: string;
1438
1464
  user?: string | undefined;
1465
+ system?: string | undefined;
1466
+ context?: string | null | undefined;
1467
+ instructions?: string | undefined;
1468
+ additional_instructions?: string | undefined;
1469
+ greeting?: string | undefined;
1470
+ artifacts?: string | undefined;
1471
+ stop?: string[] | undefined;
1472
+ messages?: string[] | undefined;
1439
1473
  tags?: string[] | undefined;
1440
1474
  model?: string | null | undefined;
1441
1475
  endpointType?: EModelEndpoint | null | undefined;
@@ -1443,7 +1477,12 @@ export declare const tConversationSchema: z.ZodObject<{
1443
1477
  archivedAt?: string | null | undefined;
1444
1478
  pinned?: boolean | undefined;
1445
1479
  isShared?: boolean | undefined;
1446
- messages?: string[] | undefined;
1480
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1481
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1482
+ codeWorkspaces?: {
1483
+ environmentId: string;
1484
+ workspaceId: string;
1485
+ }[] | undefined;
1447
1486
  tools?: string[] | {
1448
1487
  name: string;
1449
1488
  pluginKey: string;
@@ -1451,8 +1490,8 @@ export declare const tConversationSchema: z.ZodObject<{
1451
1490
  icon?: string | undefined;
1452
1491
  authConfig?: {
1453
1492
  description: string;
1454
- authField: string;
1455
1493
  label: string;
1494
+ authField: string;
1456
1495
  optional?: boolean | undefined;
1457
1496
  sensitive?: boolean | undefined;
1458
1497
  }[] | undefined;
@@ -1477,18 +1516,15 @@ export declare const tConversationSchema: z.ZodObject<{
1477
1516
  max_tokens?: number | undefined;
1478
1517
  promptCache?: boolean | undefined;
1479
1518
  promptCacheTtl?: "5m" | "1h" | undefined;
1480
- system?: string | undefined;
1481
1519
  thinking?: boolean | undefined;
1482
1520
  thinkingBudget?: number | undefined;
1483
1521
  thinkingLevel?: ThinkingLevel | undefined;
1484
1522
  stream?: boolean | undefined;
1485
- artifacts?: string | undefined;
1486
- context?: string | null | undefined;
1487
1523
  examples?: {
1488
- input: {
1524
+ output: {
1489
1525
  content: string;
1490
1526
  };
1491
- output: {
1527
+ input: {
1492
1528
  content: string;
1493
1529
  };
1494
1530
  }[] | undefined;
@@ -1522,12 +1558,8 @@ export declare const tConversationSchema: z.ZodObject<{
1522
1558
  region?: string | undefined;
1523
1559
  maxTokens?: number | undefined;
1524
1560
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1525
- instructions?: string | undefined;
1526
- additional_instructions?: string | undefined;
1527
1561
  append_current_datetime?: boolean | undefined;
1528
1562
  presetOverride?: Record<string, unknown> | undefined;
1529
- stop?: string[] | undefined;
1530
- greeting?: string | undefined;
1531
1563
  spec?: string | null | undefined;
1532
1564
  iconURL?: string | null | undefined;
1533
1565
  expiredAt?: string | null | undefined;
@@ -1541,6 +1573,15 @@ export declare const tConversationSchema: z.ZodObject<{
1541
1573
  createdAt: string;
1542
1574
  updatedAt: string;
1543
1575
  user?: string | undefined;
1576
+ system?: string | undefined;
1577
+ context?: string | null | undefined;
1578
+ instructions?: string | undefined;
1579
+ additional_instructions?: string | undefined;
1580
+ greeting?: string | undefined;
1581
+ artifacts?: string | undefined;
1582
+ title?: string | null | undefined;
1583
+ stop?: string[] | undefined;
1584
+ messages?: string[] | undefined;
1544
1585
  tags?: string[] | undefined;
1545
1586
  model?: string | null | undefined;
1546
1587
  endpointType?: EModelEndpoint | null | undefined;
@@ -1548,8 +1589,12 @@ export declare const tConversationSchema: z.ZodObject<{
1548
1589
  archivedAt?: string | null | undefined;
1549
1590
  pinned?: boolean | undefined;
1550
1591
  isShared?: boolean | undefined;
1551
- title?: string | null | undefined;
1552
- messages?: string[] | undefined;
1592
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1593
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1594
+ codeWorkspaces?: {
1595
+ environmentId: string;
1596
+ workspaceId: string;
1597
+ }[] | undefined;
1553
1598
  tools?: string[] | {
1554
1599
  name: string;
1555
1600
  pluginKey: string;
@@ -1557,8 +1602,8 @@ export declare const tConversationSchema: z.ZodObject<{
1557
1602
  icon?: string | undefined;
1558
1603
  authConfig?: {
1559
1604
  description: string;
1560
- authField: string;
1561
1605
  label: string;
1606
+ authField: string;
1562
1607
  optional?: boolean | undefined;
1563
1608
  sensitive?: boolean | undefined;
1564
1609
  }[] | undefined;
@@ -1583,18 +1628,15 @@ export declare const tConversationSchema: z.ZodObject<{
1583
1628
  max_tokens?: string | number | undefined;
1584
1629
  promptCache?: boolean | undefined;
1585
1630
  promptCacheTtl?: "5m" | "1h" | undefined;
1586
- system?: string | undefined;
1587
1631
  thinking?: boolean | undefined;
1588
1632
  thinkingBudget?: string | number | undefined;
1589
1633
  thinkingLevel?: ThinkingLevel | undefined;
1590
1634
  stream?: boolean | undefined;
1591
- artifacts?: string | undefined;
1592
- context?: string | null | undefined;
1593
1635
  examples?: {
1594
- input: {
1636
+ output: {
1595
1637
  content: string;
1596
1638
  };
1597
- output: {
1639
+ input: {
1598
1640
  content: string;
1599
1641
  };
1600
1642
  }[] | undefined;
@@ -1628,12 +1670,8 @@ export declare const tConversationSchema: z.ZodObject<{
1628
1670
  region?: string | undefined;
1629
1671
  maxTokens?: string | number | undefined;
1630
1672
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1631
- instructions?: string | undefined;
1632
- additional_instructions?: string | undefined;
1633
1673
  append_current_datetime?: boolean | undefined;
1634
1674
  presetOverride?: Record<string, unknown> | undefined;
1635
- stop?: string[] | undefined;
1636
- greeting?: string | undefined;
1637
1675
  spec?: string | null | undefined;
1638
1676
  iconURL?: string | null | undefined;
1639
1677
  expiredAt?: string | null | undefined;
@@ -1644,6 +1682,14 @@ export declare const tConversationSchema: z.ZodObject<{
1644
1682
  }>;
1645
1683
  export declare const tPresetSchema: z.ZodObject<{
1646
1684
  user: z.ZodOptional<z.ZodString>;
1685
+ system: z.ZodOptional<z.ZodString>;
1686
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1687
+ instructions: z.ZodOptional<z.ZodString>;
1688
+ additional_instructions: z.ZodOptional<z.ZodString>;
1689
+ greeting: z.ZodOptional<z.ZodString>;
1690
+ artifacts: z.ZodOptional<z.ZodString>;
1691
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1692
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1647
1693
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1648
1694
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
1695
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
@@ -1651,7 +1697,18 @@ export declare const tPresetSchema: z.ZodObject<{
1651
1697
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
1698
  pinned: z.ZodOptional<z.ZodBoolean>;
1653
1699
  isShared: z.ZodOptional<z.ZodBoolean>;
1654
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1700
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
1701
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
1702
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1703
+ environmentId: z.ZodString;
1704
+ workspaceId: z.ZodString;
1705
+ }, "strict", z.ZodTypeAny, {
1706
+ environmentId: string;
1707
+ workspaceId: string;
1708
+ }, {
1709
+ environmentId: string;
1710
+ workspaceId: string;
1711
+ }>, "many">>;
1655
1712
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1656
1713
  name: z.ZodString;
1657
1714
  pluginKey: z.ZodString;
@@ -1666,14 +1723,14 @@ export declare const tPresetSchema: z.ZodObject<{
1666
1723
  sensitive: z.ZodOptional<z.ZodBoolean>;
1667
1724
  }, "strip", z.ZodTypeAny, {
1668
1725
  description: string;
1669
- authField: string;
1670
1726
  label: string;
1727
+ authField: string;
1671
1728
  optional?: boolean | undefined;
1672
1729
  sensitive?: boolean | undefined;
1673
1730
  }, {
1674
1731
  description: string;
1675
- authField: string;
1676
1732
  label: string;
1733
+ authField: string;
1677
1734
  optional?: boolean | undefined;
1678
1735
  sensitive?: boolean | undefined;
1679
1736
  }>, "many">>;
@@ -1691,8 +1748,8 @@ export declare const tPresetSchema: z.ZodObject<{
1691
1748
  icon?: string | undefined;
1692
1749
  authConfig?: {
1693
1750
  description: string;
1694
- authField: string;
1695
1751
  label: string;
1752
+ authField: string;
1696
1753
  optional?: boolean | undefined;
1697
1754
  sensitive?: boolean | undefined;
1698
1755
  }[] | undefined;
@@ -1708,8 +1765,8 @@ export declare const tPresetSchema: z.ZodObject<{
1708
1765
  icon?: string | undefined;
1709
1766
  authConfig?: {
1710
1767
  description: string;
1711
- authField: string;
1712
1768
  label: string;
1769
+ authField: string;
1713
1770
  optional?: boolean | undefined;
1714
1771
  sensitive?: boolean | undefined;
1715
1772
  }[] | undefined;
@@ -1734,13 +1791,10 @@ export declare const tPresetSchema: z.ZodObject<{
1734
1791
  max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1735
1792
  promptCache: z.ZodOptional<z.ZodBoolean>;
1736
1793
  promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
1737
- system: z.ZodOptional<z.ZodString>;
1738
1794
  thinking: z.ZodOptional<z.ZodBoolean>;
1739
1795
  thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1740
1796
  thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
1741
1797
  stream: z.ZodOptional<z.ZodBoolean>;
1742
- artifacts: z.ZodOptional<z.ZodString>;
1743
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1744
1798
  examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1745
1799
  input: z.ZodObject<{
1746
1800
  content: z.ZodString;
@@ -1757,19 +1811,19 @@ export declare const tPresetSchema: z.ZodObject<{
1757
1811
  content: string;
1758
1812
  }>;
1759
1813
  }, "strip", z.ZodTypeAny, {
1760
- input: {
1761
- content: string;
1762
- };
1763
1814
  output: {
1764
1815
  content: string;
1765
1816
  };
1766
- }, {
1767
1817
  input: {
1768
1818
  content: string;
1769
1819
  };
1820
+ }, {
1770
1821
  output: {
1771
1822
  content: string;
1772
1823
  };
1824
+ input: {
1825
+ content: string;
1826
+ };
1773
1827
  }>, "many">>;
1774
1828
  resendFiles: z.ZodOptional<z.ZodBoolean>;
1775
1829
  file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1818,12 +1872,8 @@ export declare const tPresetSchema: z.ZodObject<{
1818
1872
  region: z.ZodOptional<z.ZodString>;
1819
1873
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1820
1874
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1821
- instructions: z.ZodOptional<z.ZodString>;
1822
- additional_instructions: z.ZodOptional<z.ZodString>;
1823
1875
  append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1824
1876
  presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1825
- stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1826
- greeting: z.ZodOptional<z.ZodString>;
1827
1877
  spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
1878
  iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1829
1879
  expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1841,6 +1891,15 @@ export declare const tPresetSchema: z.ZodObject<{
1841
1891
  }, "strip", z.ZodTypeAny, {
1842
1892
  endpoint: string | null;
1843
1893
  user?: string | undefined;
1894
+ system?: string | undefined;
1895
+ context?: string | null | undefined;
1896
+ instructions?: string | undefined;
1897
+ additional_instructions?: string | undefined;
1898
+ greeting?: string | undefined;
1899
+ artifacts?: string | undefined;
1900
+ title?: string | null | undefined;
1901
+ stop?: string[] | undefined;
1902
+ messages?: string[] | undefined;
1844
1903
  tags?: string[] | undefined;
1845
1904
  model?: string | null | undefined;
1846
1905
  conversationId?: string | null | undefined;
@@ -1849,8 +1908,12 @@ export declare const tPresetSchema: z.ZodObject<{
1849
1908
  archivedAt?: string | null | undefined;
1850
1909
  pinned?: boolean | undefined;
1851
1910
  isShared?: boolean | undefined;
1852
- title?: string | null | undefined;
1853
- messages?: string[] | undefined;
1911
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
1912
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
1913
+ codeWorkspaces?: {
1914
+ environmentId: string;
1915
+ workspaceId: string;
1916
+ }[] | undefined;
1854
1917
  tools?: string[] | {
1855
1918
  name: string;
1856
1919
  pluginKey: string;
@@ -1858,8 +1921,8 @@ export declare const tPresetSchema: z.ZodObject<{
1858
1921
  icon?: string | undefined;
1859
1922
  authConfig?: {
1860
1923
  description: string;
1861
- authField: string;
1862
1924
  label: string;
1925
+ authField: string;
1863
1926
  optional?: boolean | undefined;
1864
1927
  sensitive?: boolean | undefined;
1865
1928
  }[] | undefined;
@@ -1884,18 +1947,15 @@ export declare const tPresetSchema: z.ZodObject<{
1884
1947
  max_tokens?: number | undefined;
1885
1948
  promptCache?: boolean | undefined;
1886
1949
  promptCacheTtl?: "5m" | "1h" | undefined;
1887
- system?: string | undefined;
1888
1950
  thinking?: boolean | undefined;
1889
1951
  thinkingBudget?: number | undefined;
1890
1952
  thinkingLevel?: ThinkingLevel | undefined;
1891
1953
  stream?: boolean | undefined;
1892
- artifacts?: string | undefined;
1893
- context?: string | null | undefined;
1894
1954
  examples?: {
1895
- input: {
1955
+ output: {
1896
1956
  content: string;
1897
1957
  };
1898
- output: {
1958
+ input: {
1899
1959
  content: string;
1900
1960
  };
1901
1961
  }[] | undefined;
@@ -1928,12 +1988,8 @@ export declare const tPresetSchema: z.ZodObject<{
1928
1988
  region?: string | undefined;
1929
1989
  maxTokens?: number | undefined;
1930
1990
  additionalModelRequestFields?: DocumentTypeValue | undefined;
1931
- instructions?: string | undefined;
1932
- additional_instructions?: string | undefined;
1933
1991
  append_current_datetime?: boolean | undefined;
1934
1992
  presetOverride?: Record<string, unknown> | undefined;
1935
- stop?: string[] | undefined;
1936
- greeting?: string | undefined;
1937
1993
  spec?: string | null | undefined;
1938
1994
  iconURL?: string | null | undefined;
1939
1995
  expiredAt?: string | null | undefined;
@@ -1947,6 +2003,15 @@ export declare const tPresetSchema: z.ZodObject<{
1947
2003
  }, {
1948
2004
  endpoint: string | null;
1949
2005
  user?: string | undefined;
2006
+ system?: string | undefined;
2007
+ context?: string | null | undefined;
2008
+ instructions?: string | undefined;
2009
+ additional_instructions?: string | undefined;
2010
+ greeting?: string | undefined;
2011
+ artifacts?: string | undefined;
2012
+ title?: string | null | undefined;
2013
+ stop?: string[] | undefined;
2014
+ messages?: string[] | undefined;
1950
2015
  tags?: string[] | undefined;
1951
2016
  model?: string | null | undefined;
1952
2017
  conversationId?: string | null | undefined;
@@ -1955,8 +2020,12 @@ export declare const tPresetSchema: z.ZodObject<{
1955
2020
  archivedAt?: string | null | undefined;
1956
2021
  pinned?: boolean | undefined;
1957
2022
  isShared?: boolean | undefined;
1958
- title?: string | null | undefined;
1959
- messages?: string[] | undefined;
2023
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2024
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2025
+ codeWorkspaces?: {
2026
+ environmentId: string;
2027
+ workspaceId: string;
2028
+ }[] | undefined;
1960
2029
  tools?: string[] | {
1961
2030
  name: string;
1962
2031
  pluginKey: string;
@@ -1964,8 +2033,8 @@ export declare const tPresetSchema: z.ZodObject<{
1964
2033
  icon?: string | undefined;
1965
2034
  authConfig?: {
1966
2035
  description: string;
1967
- authField: string;
1968
2036
  label: string;
2037
+ authField: string;
1969
2038
  optional?: boolean | undefined;
1970
2039
  sensitive?: boolean | undefined;
1971
2040
  }[] | undefined;
@@ -1990,18 +2059,15 @@ export declare const tPresetSchema: z.ZodObject<{
1990
2059
  max_tokens?: string | number | undefined;
1991
2060
  promptCache?: boolean | undefined;
1992
2061
  promptCacheTtl?: "5m" | "1h" | undefined;
1993
- system?: string | undefined;
1994
2062
  thinking?: boolean | undefined;
1995
2063
  thinkingBudget?: string | number | undefined;
1996
2064
  thinkingLevel?: ThinkingLevel | undefined;
1997
2065
  stream?: boolean | undefined;
1998
- artifacts?: string | undefined;
1999
- context?: string | null | undefined;
2000
2066
  examples?: {
2001
- input: {
2067
+ output: {
2002
2068
  content: string;
2003
2069
  };
2004
- output: {
2070
+ input: {
2005
2071
  content: string;
2006
2072
  };
2007
2073
  }[] | undefined;
@@ -2034,12 +2100,8 @@ export declare const tPresetSchema: z.ZodObject<{
2034
2100
  region?: string | undefined;
2035
2101
  maxTokens?: string | number | undefined;
2036
2102
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2037
- instructions?: string | undefined;
2038
- additional_instructions?: string | undefined;
2039
2103
  append_current_datetime?: boolean | undefined;
2040
2104
  presetOverride?: Record<string, unknown> | undefined;
2041
- stop?: string[] | undefined;
2042
- greeting?: string | undefined;
2043
2105
  spec?: string | null | undefined;
2044
2106
  iconURL?: string | null | undefined;
2045
2107
  expiredAt?: string | null | undefined;
@@ -2058,6 +2120,18 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2058
2120
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2059
2121
  pinned: z.ZodOptional<z.ZodBoolean>;
2060
2122
  isShared: z.ZodOptional<z.ZodBoolean>;
2123
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2124
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2125
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2126
+ environmentId: z.ZodString;
2127
+ workspaceId: z.ZodString;
2128
+ }, "strict", z.ZodTypeAny, {
2129
+ environmentId: string;
2130
+ workspaceId: string;
2131
+ }, {
2132
+ environmentId: string;
2133
+ workspaceId: string;
2134
+ }>, "many">>;
2061
2135
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2062
2136
  user: z.ZodOptional<z.ZodString>;
2063
2137
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2075,14 +2149,14 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2075
2149
  sensitive: z.ZodOptional<z.ZodBoolean>;
2076
2150
  }, "strip", z.ZodTypeAny, {
2077
2151
  description: string;
2078
- authField: string;
2079
2152
  label: string;
2153
+ authField: string;
2080
2154
  optional?: boolean | undefined;
2081
2155
  sensitive?: boolean | undefined;
2082
2156
  }, {
2083
2157
  description: string;
2084
- authField: string;
2085
2158
  label: string;
2159
+ authField: string;
2086
2160
  optional?: boolean | undefined;
2087
2161
  sensitive?: boolean | undefined;
2088
2162
  }>, "many">>;
@@ -2100,8 +2174,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2100
2174
  icon?: string | undefined;
2101
2175
  authConfig?: {
2102
2176
  description: string;
2103
- authField: string;
2104
2177
  label: string;
2178
+ authField: string;
2105
2179
  optional?: boolean | undefined;
2106
2180
  sensitive?: boolean | undefined;
2107
2181
  }[] | undefined;
@@ -2117,8 +2191,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2117
2191
  icon?: string | undefined;
2118
2192
  authConfig?: {
2119
2193
  description: string;
2120
- authField: string;
2121
2194
  label: string;
2195
+ authField: string;
2122
2196
  optional?: boolean | undefined;
2123
2197
  sensitive?: boolean | undefined;
2124
2198
  }[] | undefined;
@@ -2167,19 +2241,19 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2167
2241
  content: string;
2168
2242
  }>;
2169
2243
  }, "strip", z.ZodTypeAny, {
2170
- input: {
2171
- content: string;
2172
- };
2173
2244
  output: {
2174
2245
  content: string;
2175
2246
  };
2176
- }, {
2177
2247
  input: {
2178
2248
  content: string;
2179
2249
  };
2250
+ }, {
2180
2251
  output: {
2181
2252
  content: string;
2182
2253
  };
2254
+ input: {
2255
+ content: string;
2256
+ };
2183
2257
  }>, "many">>;
2184
2258
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2185
2259
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2248,10 +2322,18 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2248
2322
  createdAt: z.ZodOptional<z.ZodString>;
2249
2323
  updatedAt: z.ZodOptional<z.ZodString>;
2250
2324
  }, "strip", z.ZodTypeAny, {
2325
+ title: string | null;
2251
2326
  conversationId: string | null;
2252
2327
  endpoint: string | null;
2253
- title: string | null;
2254
2328
  user?: string | undefined;
2329
+ system?: string | undefined;
2330
+ context?: string | null | undefined;
2331
+ instructions?: string | undefined;
2332
+ additional_instructions?: string | undefined;
2333
+ greeting?: string | undefined;
2334
+ artifacts?: string | undefined;
2335
+ stop?: string[] | undefined;
2336
+ messages?: string[] | undefined;
2255
2337
  tags?: string[] | undefined;
2256
2338
  model?: string | null | undefined;
2257
2339
  endpointType?: EModelEndpoint | null | undefined;
@@ -2259,7 +2341,12 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2259
2341
  archivedAt?: string | null | undefined;
2260
2342
  pinned?: boolean | undefined;
2261
2343
  isShared?: boolean | undefined;
2262
- messages?: string[] | undefined;
2344
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2345
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2346
+ codeWorkspaces?: {
2347
+ environmentId: string;
2348
+ workspaceId: string;
2349
+ }[] | undefined;
2263
2350
  tools?: string[] | {
2264
2351
  name: string;
2265
2352
  pluginKey: string;
@@ -2267,8 +2354,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2267
2354
  icon?: string | undefined;
2268
2355
  authConfig?: {
2269
2356
  description: string;
2270
- authField: string;
2271
2357
  label: string;
2358
+ authField: string;
2272
2359
  optional?: boolean | undefined;
2273
2360
  sensitive?: boolean | undefined;
2274
2361
  }[] | undefined;
@@ -2293,18 +2380,15 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2293
2380
  max_tokens?: number | undefined;
2294
2381
  promptCache?: boolean | undefined;
2295
2382
  promptCacheTtl?: "5m" | "1h" | undefined;
2296
- system?: string | undefined;
2297
2383
  thinking?: boolean | undefined;
2298
2384
  thinkingBudget?: number | undefined;
2299
2385
  thinkingLevel?: ThinkingLevel | undefined;
2300
2386
  stream?: boolean | undefined;
2301
- artifacts?: string | undefined;
2302
- context?: string | null | undefined;
2303
2387
  examples?: {
2304
- input: {
2388
+ output: {
2305
2389
  content: string;
2306
2390
  };
2307
- output: {
2391
+ input: {
2308
2392
  content: string;
2309
2393
  };
2310
2394
  }[] | undefined;
@@ -2340,12 +2424,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2340
2424
  region?: string | undefined;
2341
2425
  maxTokens?: number | undefined;
2342
2426
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2343
- instructions?: string | undefined;
2344
- additional_instructions?: string | undefined;
2345
2427
  append_current_datetime?: boolean | undefined;
2346
2428
  presetOverride?: Record<string, unknown> | undefined;
2347
- stop?: string[] | undefined;
2348
- greeting?: string | undefined;
2349
2429
  spec?: string | null | undefined;
2350
2430
  iconURL?: string | null | undefined;
2351
2431
  expiredAt?: string | null | undefined;
@@ -2357,15 +2437,28 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2357
2437
  conversationId: string | null;
2358
2438
  endpoint: string | null;
2359
2439
  user?: string | undefined;
2360
- tags?: string[] | undefined;
2361
- model?: string | null | undefined;
2362
- endpointType?: EModelEndpoint | null | undefined;
2363
- isArchived?: boolean | undefined;
2440
+ system?: string | undefined;
2441
+ context?: string | null | undefined;
2442
+ instructions?: string | undefined;
2443
+ additional_instructions?: string | undefined;
2444
+ greeting?: string | undefined;
2445
+ artifacts?: string | undefined;
2446
+ title?: string | null | undefined;
2447
+ stop?: string[] | undefined;
2448
+ messages?: string[] | undefined;
2449
+ tags?: string[] | undefined;
2450
+ model?: string | null | undefined;
2451
+ endpointType?: EModelEndpoint | null | undefined;
2452
+ isArchived?: boolean | undefined;
2364
2453
  archivedAt?: string | null | undefined;
2365
2454
  pinned?: boolean | undefined;
2366
2455
  isShared?: boolean | undefined;
2367
- title?: string | null | undefined;
2368
- messages?: string[] | undefined;
2456
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
2457
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
2458
+ codeWorkspaces?: {
2459
+ environmentId: string;
2460
+ workspaceId: string;
2461
+ }[] | undefined;
2369
2462
  tools?: string[] | {
2370
2463
  name: string;
2371
2464
  pluginKey: string;
@@ -2373,8 +2466,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2373
2466
  icon?: string | undefined;
2374
2467
  authConfig?: {
2375
2468
  description: string;
2376
- authField: string;
2377
2469
  label: string;
2470
+ authField: string;
2378
2471
  optional?: boolean | undefined;
2379
2472
  sensitive?: boolean | undefined;
2380
2473
  }[] | undefined;
@@ -2399,18 +2492,15 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2399
2492
  max_tokens?: string | number | undefined;
2400
2493
  promptCache?: boolean | undefined;
2401
2494
  promptCacheTtl?: "5m" | "1h" | undefined;
2402
- system?: string | undefined;
2403
2495
  thinking?: boolean | undefined;
2404
2496
  thinkingBudget?: string | number | undefined;
2405
2497
  thinkingLevel?: ThinkingLevel | undefined;
2406
2498
  stream?: boolean | undefined;
2407
- artifacts?: string | undefined;
2408
- context?: string | null | undefined;
2409
2499
  examples?: {
2410
- input: {
2500
+ output: {
2411
2501
  content: string;
2412
2502
  };
2413
- output: {
2503
+ input: {
2414
2504
  content: string;
2415
2505
  };
2416
2506
  }[] | undefined;
@@ -2446,12 +2536,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2446
2536
  region?: string | undefined;
2447
2537
  maxTokens?: string | number | undefined;
2448
2538
  additionalModelRequestFields?: DocumentTypeValue | undefined;
2449
- instructions?: string | undefined;
2450
- additional_instructions?: string | undefined;
2451
2539
  append_current_datetime?: boolean | undefined;
2452
2540
  presetOverride?: Record<string, unknown> | undefined;
2453
- stop?: string[] | undefined;
2454
- greeting?: string | undefined;
2455
2541
  spec?: string | null | undefined;
2456
2542
  iconURL?: string | null | undefined;
2457
2543
  expiredAt?: string | null | undefined;
@@ -2470,6 +2556,18 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2470
2556
  pinned: z.ZodOptional<z.ZodBoolean>;
2471
2557
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
2472
2558
  isShared: z.ZodOptional<z.ZodBoolean>;
2559
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2560
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2561
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2562
+ environmentId: z.ZodString;
2563
+ workspaceId: z.ZodString;
2564
+ }, "strict", z.ZodTypeAny, {
2565
+ environmentId: string;
2566
+ workspaceId: string;
2567
+ }, {
2568
+ environmentId: string;
2569
+ workspaceId: string;
2570
+ }>, "many">>;
2473
2571
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2474
2572
  user: z.ZodOptional<z.ZodString>;
2475
2573
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2487,14 +2585,14 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2487
2585
  sensitive: z.ZodOptional<z.ZodBoolean>;
2488
2586
  }, "strip", z.ZodTypeAny, {
2489
2587
  description: string;
2490
- authField: string;
2491
2588
  label: string;
2589
+ authField: string;
2492
2590
  optional?: boolean | undefined;
2493
2591
  sensitive?: boolean | undefined;
2494
2592
  }, {
2495
2593
  description: string;
2496
- authField: string;
2497
2594
  label: string;
2595
+ authField: string;
2498
2596
  optional?: boolean | undefined;
2499
2597
  sensitive?: boolean | undefined;
2500
2598
  }>, "many">>;
@@ -2512,8 +2610,8 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2512
2610
  icon?: string | undefined;
2513
2611
  authConfig?: {
2514
2612
  description: string;
2515
- authField: string;
2516
2613
  label: string;
2614
+ authField: string;
2517
2615
  optional?: boolean | undefined;
2518
2616
  sensitive?: boolean | undefined;
2519
2617
  }[] | undefined;
@@ -2529,8 +2627,8 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2529
2627
  icon?: string | undefined;
2530
2628
  authConfig?: {
2531
2629
  description: string;
2532
- authField: string;
2533
2630
  label: string;
2631
+ authField: string;
2534
2632
  optional?: boolean | undefined;
2535
2633
  sensitive?: boolean | undefined;
2536
2634
  }[] | undefined;
@@ -2579,19 +2677,19 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2579
2677
  content: string;
2580
2678
  }>;
2581
2679
  }, "strip", z.ZodTypeAny, {
2582
- input: {
2583
- content: string;
2584
- };
2585
2680
  output: {
2586
2681
  content: string;
2587
2682
  };
2588
- }, {
2589
2683
  input: {
2590
2684
  content: string;
2591
2685
  };
2686
+ }, {
2592
2687
  output: {
2593
2688
  content: string;
2594
2689
  };
2690
+ input: {
2691
+ content: string;
2692
+ };
2595
2693
  }>, "many">>;
2596
2694
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2597
2695
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2661,11 +2759,13 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2661
2759
  resendImages: z.ZodOptional<z.ZodBoolean>;
2662
2760
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2663
2761
  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"> & {
2762
+ }, "instructions" | "stop" | "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" | "append_current_datetime" | "spec" | "fileTokenLimit"> & {
2665
2763
  /** @endpoints openAI, custom, azureOpenAI, google, anthropic, assistants, azureAssistants, bedrock, agents */
2666
2764
  endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
2667
2765
  }, "strip", z.ZodTypeAny, {
2668
2766
  endpoint: string | null;
2767
+ instructions?: string | undefined;
2768
+ stop?: string[] | undefined;
2669
2769
  model?: string | null | undefined;
2670
2770
  promptPrefix?: string | null | undefined;
2671
2771
  temperature?: number | null | undefined;
@@ -2699,13 +2799,13 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2699
2799
  agent_id?: string | undefined;
2700
2800
  region?: string | undefined;
2701
2801
  maxTokens?: number | undefined;
2702
- instructions?: string | undefined;
2703
2802
  append_current_datetime?: boolean | undefined;
2704
- stop?: string[] | undefined;
2705
2803
  spec?: string | null | undefined;
2706
2804
  fileTokenLimit?: number | undefined;
2707
2805
  }, {
2708
2806
  endpoint: string | null;
2807
+ instructions?: string | undefined;
2808
+ stop?: string[] | undefined;
2709
2809
  model?: string | null | undefined;
2710
2810
  promptPrefix?: string | null | undefined;
2711
2811
  temperature?: number | null | undefined;
@@ -2739,9 +2839,7 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2739
2839
  agent_id?: string | undefined;
2740
2840
  region?: string | undefined;
2741
2841
  maxTokens?: string | number | undefined;
2742
- instructions?: string | undefined;
2743
2842
  append_current_datetime?: boolean | undefined;
2744
- stop?: string[] | undefined;
2745
2843
  spec?: string | null | undefined;
2746
2844
  fileTokenLimit?: string | number | undefined;
2747
2845
  }>;
@@ -2753,11 +2851,30 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2753
2851
  * omitted to avoid duplicate configuration surface.
2754
2852
  */
2755
2853
  export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2854
+ system: z.ZodOptional<z.ZodString>;
2855
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2856
+ instructions: z.ZodOptional<z.ZodString>;
2857
+ additional_instructions: z.ZodOptional<z.ZodString>;
2858
+ greeting: z.ZodOptional<z.ZodString>;
2859
+ artifacts: z.ZodOptional<z.ZodString>;
2860
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2756
2861
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
2862
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2758
2863
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2759
2864
  pinned: z.ZodOptional<z.ZodBoolean>;
2760
2865
  isShared: z.ZodOptional<z.ZodBoolean>;
2866
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
2867
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
2868
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2869
+ environmentId: z.ZodString;
2870
+ workspaceId: z.ZodString;
2871
+ }, "strict", z.ZodTypeAny, {
2872
+ environmentId: string;
2873
+ workspaceId: string;
2874
+ }, {
2875
+ environmentId: string;
2876
+ workspaceId: string;
2877
+ }>, "many">>;
2761
2878
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2762
2879
  name: z.ZodString;
2763
2880
  pluginKey: z.ZodString;
@@ -2772,14 +2889,14 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2772
2889
  sensitive: z.ZodOptional<z.ZodBoolean>;
2773
2890
  }, "strip", z.ZodTypeAny, {
2774
2891
  description: string;
2775
- authField: string;
2776
2892
  label: string;
2893
+ authField: string;
2777
2894
  optional?: boolean | undefined;
2778
2895
  sensitive?: boolean | undefined;
2779
2896
  }, {
2780
2897
  description: string;
2781
- authField: string;
2782
2898
  label: string;
2899
+ authField: string;
2783
2900
  optional?: boolean | undefined;
2784
2901
  sensitive?: boolean | undefined;
2785
2902
  }>, "many">>;
@@ -2797,8 +2914,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2797
2914
  icon?: string | undefined;
2798
2915
  authConfig?: {
2799
2916
  description: string;
2800
- authField: string;
2801
2917
  label: string;
2918
+ authField: string;
2802
2919
  optional?: boolean | undefined;
2803
2920
  sensitive?: boolean | undefined;
2804
2921
  }[] | undefined;
@@ -2814,8 +2931,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2814
2931
  icon?: string | undefined;
2815
2932
  authConfig?: {
2816
2933
  description: string;
2817
- authField: string;
2818
2934
  label: string;
2935
+ authField: string;
2819
2936
  optional?: boolean | undefined;
2820
2937
  sensitive?: boolean | undefined;
2821
2938
  }[] | undefined;
@@ -2839,13 +2956,10 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2839
2956
  max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2840
2957
  promptCache: z.ZodOptional<z.ZodBoolean>;
2841
2958
  promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2842
- system: z.ZodOptional<z.ZodString>;
2843
2959
  thinking: z.ZodOptional<z.ZodBoolean>;
2844
2960
  thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2845
2961
  thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2846
2962
  stream: z.ZodOptional<z.ZodBoolean>;
2847
- artifacts: z.ZodOptional<z.ZodString>;
2848
- context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2849
2963
  examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2850
2964
  input: z.ZodObject<{
2851
2965
  content: z.ZodString;
@@ -2862,19 +2976,19 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2862
2976
  content: string;
2863
2977
  }>;
2864
2978
  }, "strip", z.ZodTypeAny, {
2865
- input: {
2866
- content: string;
2867
- };
2868
2979
  output: {
2869
2980
  content: string;
2870
2981
  };
2871
- }, {
2872
2982
  input: {
2873
2983
  content: string;
2874
2984
  };
2985
+ }, {
2875
2986
  output: {
2876
2987
  content: string;
2877
2988
  };
2989
+ input: {
2990
+ content: string;
2991
+ };
2878
2992
  }>, "many">>;
2879
2993
  resendFiles: z.ZodOptional<z.ZodBoolean>;
2880
2994
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
@@ -2922,23 +3036,32 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2922
3036
  region: z.ZodOptional<z.ZodString>;
2923
3037
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2924
3038
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2925
- instructions: z.ZodOptional<z.ZodString>;
2926
- additional_instructions: z.ZodOptional<z.ZodString>;
2927
3039
  append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2928
- stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2929
- greeting: z.ZodOptional<z.ZodString>;
2930
3040
  iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2931
3041
  isTemporary: z.ZodOptional<z.ZodBoolean>;
2932
3042
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2933
3043
  } & {
2934
3044
  endpoint: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>>;
2935
3045
  }, "strip", z.ZodTypeAny, {
3046
+ system?: string | undefined;
3047
+ context?: string | null | undefined;
3048
+ instructions?: string | undefined;
3049
+ additional_instructions?: string | undefined;
3050
+ greeting?: string | undefined;
3051
+ artifacts?: string | undefined;
3052
+ stop?: string[] | undefined;
2936
3053
  model?: string | null | undefined;
2937
3054
  endpoint?: string | null | undefined;
2938
3055
  endpointType?: EModelEndpoint | null | undefined;
2939
3056
  archivedAt?: string | null | undefined;
2940
3057
  pinned?: boolean | undefined;
2941
3058
  isShared?: boolean | undefined;
3059
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3060
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3061
+ codeWorkspaces?: {
3062
+ environmentId: string;
3063
+ workspaceId: string;
3064
+ }[] | undefined;
2942
3065
  tools?: string[] | {
2943
3066
  name: string;
2944
3067
  pluginKey: string;
@@ -2946,8 +3069,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2946
3069
  icon?: string | undefined;
2947
3070
  authConfig?: {
2948
3071
  description: string;
2949
- authField: string;
2950
3072
  label: string;
3073
+ authField: string;
2951
3074
  optional?: boolean | undefined;
2952
3075
  sensitive?: boolean | undefined;
2953
3076
  }[] | undefined;
@@ -2971,18 +3094,15 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2971
3094
  max_tokens?: number | undefined;
2972
3095
  promptCache?: boolean | undefined;
2973
3096
  promptCacheTtl?: "5m" | "1h" | undefined;
2974
- system?: string | undefined;
2975
3097
  thinking?: boolean | undefined;
2976
3098
  thinkingBudget?: number | undefined;
2977
3099
  thinkingLevel?: ThinkingLevel | undefined;
2978
3100
  stream?: boolean | undefined;
2979
- artifacts?: string | undefined;
2980
- context?: string | null | undefined;
2981
3101
  examples?: {
2982
- input: {
3102
+ output: {
2983
3103
  content: string;
2984
3104
  };
2985
- output: {
3105
+ input: {
2986
3106
  content: string;
2987
3107
  };
2988
3108
  }[] | undefined;
@@ -3014,21 +3134,30 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3014
3134
  region?: string | undefined;
3015
3135
  maxTokens?: number | undefined;
3016
3136
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3017
- instructions?: string | undefined;
3018
- additional_instructions?: string | undefined;
3019
3137
  append_current_datetime?: boolean | undefined;
3020
- stop?: string[] | undefined;
3021
- greeting?: string | undefined;
3022
3138
  iconURL?: string | null | undefined;
3023
3139
  isTemporary?: boolean | undefined;
3024
3140
  fileTokenLimit?: number | undefined;
3025
3141
  }, {
3142
+ system?: string | undefined;
3143
+ context?: string | null | undefined;
3144
+ instructions?: string | undefined;
3145
+ additional_instructions?: string | undefined;
3146
+ greeting?: string | undefined;
3147
+ artifacts?: string | undefined;
3148
+ stop?: string[] | undefined;
3026
3149
  model?: string | null | undefined;
3027
3150
  endpoint?: string | null | undefined;
3028
3151
  endpointType?: EModelEndpoint | null | undefined;
3029
3152
  archivedAt?: string | null | undefined;
3030
3153
  pinned?: boolean | undefined;
3031
3154
  isShared?: boolean | undefined;
3155
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3156
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3157
+ codeWorkspaces?: {
3158
+ environmentId: string;
3159
+ workspaceId: string;
3160
+ }[] | undefined;
3032
3161
  tools?: string[] | {
3033
3162
  name: string;
3034
3163
  pluginKey: string;
@@ -3036,8 +3165,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3036
3165
  icon?: string | undefined;
3037
3166
  authConfig?: {
3038
3167
  description: string;
3039
- authField: string;
3040
3168
  label: string;
3169
+ authField: string;
3041
3170
  optional?: boolean | undefined;
3042
3171
  sensitive?: boolean | undefined;
3043
3172
  }[] | undefined;
@@ -3061,18 +3190,15 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3061
3190
  max_tokens?: string | number | undefined;
3062
3191
  promptCache?: boolean | undefined;
3063
3192
  promptCacheTtl?: "5m" | "1h" | undefined;
3064
- system?: string | undefined;
3065
3193
  thinking?: boolean | undefined;
3066
3194
  thinkingBudget?: string | number | undefined;
3067
3195
  thinkingLevel?: ThinkingLevel | undefined;
3068
3196
  stream?: boolean | undefined;
3069
- artifacts?: string | undefined;
3070
- context?: string | null | undefined;
3071
3197
  examples?: {
3072
- input: {
3198
+ output: {
3073
3199
  content: string;
3074
3200
  };
3075
- output: {
3201
+ input: {
3076
3202
  content: string;
3077
3203
  };
3078
3204
  }[] | undefined;
@@ -3104,21 +3230,30 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3104
3230
  region?: string | undefined;
3105
3231
  maxTokens?: string | number | undefined;
3106
3232
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3107
- instructions?: string | undefined;
3108
- additional_instructions?: string | undefined;
3109
3233
  append_current_datetime?: boolean | undefined;
3110
- stop?: string[] | undefined;
3111
- greeting?: string | undefined;
3112
3234
  iconURL?: string | null | undefined;
3113
3235
  isTemporary?: boolean | undefined;
3114
3236
  fileTokenLimit?: string | number | undefined;
3115
3237
  }>, {
3238
+ system?: string | undefined;
3239
+ context?: string | null | undefined;
3240
+ instructions?: string | undefined;
3241
+ additional_instructions?: string | undefined;
3242
+ greeting?: string | undefined;
3243
+ artifacts?: string | undefined;
3244
+ stop?: string[] | undefined;
3116
3245
  model?: string | null | undefined;
3117
3246
  endpoint?: string | null | undefined;
3118
3247
  endpointType?: EModelEndpoint | null | undefined;
3119
3248
  archivedAt?: string | null | undefined;
3120
3249
  pinned?: boolean | undefined;
3121
3250
  isShared?: boolean | undefined;
3251
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3252
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3253
+ codeWorkspaces?: {
3254
+ environmentId: string;
3255
+ workspaceId: string;
3256
+ }[] | undefined;
3122
3257
  tools?: string[] | {
3123
3258
  name: string;
3124
3259
  pluginKey: string;
@@ -3126,8 +3261,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3126
3261
  icon?: string | undefined;
3127
3262
  authConfig?: {
3128
3263
  description: string;
3129
- authField: string;
3130
3264
  label: string;
3265
+ authField: string;
3131
3266
  optional?: boolean | undefined;
3132
3267
  sensitive?: boolean | undefined;
3133
3268
  }[] | undefined;
@@ -3151,18 +3286,15 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3151
3286
  max_tokens?: number | undefined;
3152
3287
  promptCache?: boolean | undefined;
3153
3288
  promptCacheTtl?: "5m" | "1h" | undefined;
3154
- system?: string | undefined;
3155
3289
  thinking?: boolean | undefined;
3156
3290
  thinkingBudget?: number | undefined;
3157
3291
  thinkingLevel?: ThinkingLevel | undefined;
3158
3292
  stream?: boolean | undefined;
3159
- artifacts?: string | undefined;
3160
- context?: string | null | undefined;
3161
3293
  examples?: {
3162
- input: {
3294
+ output: {
3163
3295
  content: string;
3164
3296
  };
3165
- output: {
3297
+ input: {
3166
3298
  content: string;
3167
3299
  };
3168
3300
  }[] | undefined;
@@ -3194,21 +3326,30 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3194
3326
  region?: string | undefined;
3195
3327
  maxTokens?: number | undefined;
3196
3328
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3197
- instructions?: string | undefined;
3198
- additional_instructions?: string | undefined;
3199
3329
  append_current_datetime?: boolean | undefined;
3200
- stop?: string[] | undefined;
3201
- greeting?: string | undefined;
3202
3330
  iconURL?: string | null | undefined;
3203
3331
  isTemporary?: boolean | undefined;
3204
3332
  fileTokenLimit?: number | undefined;
3205
3333
  }, {
3334
+ system?: string | undefined;
3335
+ context?: string | null | undefined;
3336
+ instructions?: string | undefined;
3337
+ additional_instructions?: string | undefined;
3338
+ greeting?: string | undefined;
3339
+ artifacts?: string | undefined;
3340
+ stop?: string[] | undefined;
3206
3341
  model?: string | null | undefined;
3207
3342
  endpoint?: string | null | undefined;
3208
3343
  endpointType?: EModelEndpoint | null | undefined;
3209
3344
  archivedAt?: string | null | undefined;
3210
3345
  pinned?: boolean | undefined;
3211
3346
  isShared?: boolean | undefined;
3347
+ codeApprovalMode?: "ask" | "acceptEdits" | "fullAccess" | undefined;
3348
+ codeEnvironmentMode?: "attached" | "without_attached" | undefined;
3349
+ codeWorkspaces?: {
3350
+ environmentId: string;
3351
+ workspaceId: string;
3352
+ }[] | undefined;
3212
3353
  tools?: string[] | {
3213
3354
  name: string;
3214
3355
  pluginKey: string;
@@ -3216,8 +3357,8 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3216
3357
  icon?: string | undefined;
3217
3358
  authConfig?: {
3218
3359
  description: string;
3219
- authField: string;
3220
3360
  label: string;
3361
+ authField: string;
3221
3362
  optional?: boolean | undefined;
3222
3363
  sensitive?: boolean | undefined;
3223
3364
  }[] | undefined;
@@ -3241,18 +3382,15 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3241
3382
  max_tokens?: string | number | undefined;
3242
3383
  promptCache?: boolean | undefined;
3243
3384
  promptCacheTtl?: "5m" | "1h" | undefined;
3244
- system?: string | undefined;
3245
3385
  thinking?: boolean | undefined;
3246
3386
  thinkingBudget?: string | number | undefined;
3247
3387
  thinkingLevel?: ThinkingLevel | undefined;
3248
3388
  stream?: boolean | undefined;
3249
- artifacts?: string | undefined;
3250
- context?: string | null | undefined;
3251
3389
  examples?: {
3252
- input: {
3390
+ output: {
3253
3391
  content: string;
3254
3392
  };
3255
- output: {
3393
+ input: {
3256
3394
  content: string;
3257
3395
  };
3258
3396
  }[] | undefined;
@@ -3284,11 +3422,7 @@ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
3284
3422
  region?: string | undefined;
3285
3423
  maxTokens?: string | number | undefined;
3286
3424
  additionalModelRequestFields?: DocumentTypeValue | undefined;
3287
- instructions?: string | undefined;
3288
- additional_instructions?: string | undefined;
3289
3425
  append_current_datetime?: boolean | undefined;
3290
- stop?: string[] | undefined;
3291
- greeting?: string | undefined;
3292
3426
  iconURL?: string | null | undefined;
3293
3427
  isTemporary?: boolean | undefined;
3294
3428
  fileTokenLimit?: string | number | undefined;
@@ -3309,17 +3443,17 @@ export declare const tSharedLinkSchema: z.ZodObject<{
3309
3443
  createdAt: z.ZodString;
3310
3444
  updatedAt: z.ZodString;
3311
3445
  }, "strip", z.ZodTypeAny, {
3312
- conversationId: string;
3313
3446
  title: string;
3314
3447
  messages: string[];
3448
+ conversationId: string;
3315
3449
  createdAt: string;
3316
3450
  updatedAt: string;
3317
3451
  shareId: string;
3318
3452
  targetMessageId?: string | undefined;
3319
3453
  }, {
3320
- conversationId: string;
3321
3454
  title: string;
3322
3455
  messages: string[];
3456
+ conversationId: string;
3323
3457
  createdAt: string;
3324
3458
  updatedAt: string;
3325
3459
  shareId: string;
@@ -3365,6 +3499,18 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3365
3499
  pinned: z.ZodOptional<z.ZodBoolean>;
3366
3500
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3367
3501
  isShared: z.ZodOptional<z.ZodBoolean>;
3502
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
3503
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
3504
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3505
+ environmentId: z.ZodString;
3506
+ workspaceId: z.ZodString;
3507
+ }, "strict", z.ZodTypeAny, {
3508
+ environmentId: string;
3509
+ workspaceId: string;
3510
+ }, {
3511
+ environmentId: string;
3512
+ workspaceId: string;
3513
+ }>, "many">>;
3368
3514
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3369
3515
  user: z.ZodOptional<z.ZodString>;
3370
3516
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3382,14 +3528,14 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3382
3528
  sensitive: z.ZodOptional<z.ZodBoolean>;
3383
3529
  }, "strip", z.ZodTypeAny, {
3384
3530
  description: string;
3385
- authField: string;
3386
3531
  label: string;
3532
+ authField: string;
3387
3533
  optional?: boolean | undefined;
3388
3534
  sensitive?: boolean | undefined;
3389
3535
  }, {
3390
3536
  description: string;
3391
- authField: string;
3392
3537
  label: string;
3538
+ authField: string;
3393
3539
  optional?: boolean | undefined;
3394
3540
  sensitive?: boolean | undefined;
3395
3541
  }>, "many">>;
@@ -3407,8 +3553,8 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3407
3553
  icon?: string | undefined;
3408
3554
  authConfig?: {
3409
3555
  description: string;
3410
- authField: string;
3411
3556
  label: string;
3557
+ authField: string;
3412
3558
  optional?: boolean | undefined;
3413
3559
  sensitive?: boolean | undefined;
3414
3560
  }[] | undefined;
@@ -3424,8 +3570,8 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3424
3570
  icon?: string | undefined;
3425
3571
  authConfig?: {
3426
3572
  description: string;
3427
- authField: string;
3428
3573
  label: string;
3574
+ authField: string;
3429
3575
  optional?: boolean | undefined;
3430
3576
  sensitive?: boolean | undefined;
3431
3577
  }[] | undefined;
@@ -3474,19 +3620,19 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3474
3620
  content: string;
3475
3621
  }>;
3476
3622
  }, "strip", z.ZodTypeAny, {
3477
- input: {
3478
- content: string;
3479
- };
3480
3623
  output: {
3481
3624
  content: string;
3482
3625
  };
3483
- }, {
3484
3626
  input: {
3485
3627
  content: string;
3486
3628
  };
3629
+ }, {
3487
3630
  output: {
3488
3631
  content: string;
3489
3632
  };
3633
+ input: {
3634
+ content: string;
3635
+ };
3490
3636
  }>, "many">>;
3491
3637
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3492
3638
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3556,7 +3702,9 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3556
3702
  resendImages: z.ZodOptional<z.ZodBoolean>;
3557
3703
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3558
3704
  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, {
3705
+ }, "greeting" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3706
+ greeting?: string | undefined;
3707
+ artifacts?: string | undefined;
3560
3708
  model?: string | null | undefined;
3561
3709
  modelLabel?: string | null | undefined;
3562
3710
  promptPrefix?: string | null | undefined;
@@ -3568,12 +3716,11 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3568
3716
  thinking?: boolean | undefined;
3569
3717
  thinkingBudget?: number | undefined;
3570
3718
  thinkingLevel?: ThinkingLevel | undefined;
3571
- artifacts?: string | undefined;
3572
3719
  examples?: {
3573
- input: {
3720
+ output: {
3574
3721
  content: string;
3575
3722
  };
3576
- output: {
3723
+ input: {
3577
3724
  content: string;
3578
3725
  };
3579
3726
  }[] | undefined;
@@ -3581,11 +3728,12 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3581
3728
  resendFiles?: boolean | undefined;
3582
3729
  web_search?: boolean | undefined;
3583
3730
  url_context?: boolean | undefined;
3584
- greeting?: string | undefined;
3585
3731
  spec?: string | null | undefined;
3586
3732
  iconURL?: string | null | undefined;
3587
3733
  fileTokenLimit?: number | undefined;
3588
3734
  }, {
3735
+ greeting?: string | undefined;
3736
+ artifacts?: string | undefined;
3589
3737
  model?: string | null | undefined;
3590
3738
  modelLabel?: string | null | undefined;
3591
3739
  promptPrefix?: string | null | undefined;
@@ -3597,12 +3745,11 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3597
3745
  thinking?: boolean | undefined;
3598
3746
  thinkingBudget?: string | number | undefined;
3599
3747
  thinkingLevel?: ThinkingLevel | undefined;
3600
- artifacts?: string | undefined;
3601
3748
  examples?: {
3602
- input: {
3749
+ output: {
3603
3750
  content: string;
3604
3751
  };
3605
- output: {
3752
+ input: {
3606
3753
  content: string;
3607
3754
  };
3608
3755
  }[] | undefined;
@@ -3610,7 +3757,6 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
3610
3757
  resendFiles?: boolean | undefined;
3611
3758
  web_search?: boolean | undefined;
3612
3759
  url_context?: boolean | undefined;
3613
- greeting?: string | undefined;
3614
3760
  spec?: string | null | undefined;
3615
3761
  iconURL?: string | null | undefined;
3616
3762
  fileTokenLimit?: string | number | undefined;
@@ -3625,6 +3771,18 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3625
3771
  pinned: z.ZodOptional<z.ZodBoolean>;
3626
3772
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3627
3773
  isShared: z.ZodOptional<z.ZodBoolean>;
3774
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
3775
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
3776
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
3777
+ environmentId: z.ZodString;
3778
+ workspaceId: z.ZodString;
3779
+ }, "strict", z.ZodTypeAny, {
3780
+ environmentId: string;
3781
+ workspaceId: string;
3782
+ }, {
3783
+ environmentId: string;
3784
+ workspaceId: string;
3785
+ }>, "many">>;
3628
3786
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3629
3787
  user: z.ZodOptional<z.ZodString>;
3630
3788
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3642,14 +3800,14 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3642
3800
  sensitive: z.ZodOptional<z.ZodBoolean>;
3643
3801
  }, "strip", z.ZodTypeAny, {
3644
3802
  description: string;
3645
- authField: string;
3646
3803
  label: string;
3804
+ authField: string;
3647
3805
  optional?: boolean | undefined;
3648
3806
  sensitive?: boolean | undefined;
3649
3807
  }, {
3650
3808
  description: string;
3651
- authField: string;
3652
3809
  label: string;
3810
+ authField: string;
3653
3811
  optional?: boolean | undefined;
3654
3812
  sensitive?: boolean | undefined;
3655
3813
  }>, "many">>;
@@ -3667,8 +3825,8 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3667
3825
  icon?: string | undefined;
3668
3826
  authConfig?: {
3669
3827
  description: string;
3670
- authField: string;
3671
3828
  label: string;
3829
+ authField: string;
3672
3830
  optional?: boolean | undefined;
3673
3831
  sensitive?: boolean | undefined;
3674
3832
  }[] | undefined;
@@ -3684,8 +3842,8 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3684
3842
  icon?: string | undefined;
3685
3843
  authConfig?: {
3686
3844
  description: string;
3687
- authField: string;
3688
3845
  label: string;
3846
+ authField: string;
3689
3847
  optional?: boolean | undefined;
3690
3848
  sensitive?: boolean | undefined;
3691
3849
  }[] | undefined;
@@ -3734,19 +3892,19 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3734
3892
  content: string;
3735
3893
  }>;
3736
3894
  }, "strip", z.ZodTypeAny, {
3737
- input: {
3738
- content: string;
3739
- };
3740
3895
  output: {
3741
3896
  content: string;
3742
3897
  };
3743
- }, {
3744
3898
  input: {
3745
3899
  content: string;
3746
3900
  };
3901
+ }, {
3747
3902
  output: {
3748
3903
  content: string;
3749
3904
  };
3905
+ input: {
3906
+ content: string;
3907
+ };
3750
3908
  }>, "many">>;
3751
3909
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3752
3910
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3816,7 +3974,9 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3816
3974
  resendImages: z.ZodOptional<z.ZodBoolean>;
3817
3975
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3818
3976
  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, {
3977
+ }, "greeting" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3978
+ greeting?: string | undefined;
3979
+ artifacts?: string | undefined;
3820
3980
  model?: string | null | undefined;
3821
3981
  modelLabel?: string | null | undefined;
3822
3982
  promptPrefix?: string | null | undefined;
@@ -3828,12 +3988,11 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3828
3988
  thinking?: boolean | undefined;
3829
3989
  thinkingBudget?: number | undefined;
3830
3990
  thinkingLevel?: ThinkingLevel | undefined;
3831
- artifacts?: string | undefined;
3832
3991
  examples?: {
3833
- input: {
3992
+ output: {
3834
3993
  content: string;
3835
3994
  };
3836
- output: {
3995
+ input: {
3837
3996
  content: string;
3838
3997
  };
3839
3998
  }[] | undefined;
@@ -3841,11 +4000,12 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3841
4000
  resendFiles?: boolean | undefined;
3842
4001
  web_search?: boolean | undefined;
3843
4002
  url_context?: boolean | undefined;
3844
- greeting?: string | undefined;
3845
4003
  spec?: string | null | undefined;
3846
4004
  iconURL?: string | null | undefined;
3847
4005
  fileTokenLimit?: number | undefined;
3848
4006
  }, {
4007
+ greeting?: string | undefined;
4008
+ artifacts?: string | undefined;
3849
4009
  model?: string | null | undefined;
3850
4010
  modelLabel?: string | null | undefined;
3851
4011
  promptPrefix?: string | null | undefined;
@@ -3857,12 +4017,11 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3857
4017
  thinking?: boolean | undefined;
3858
4018
  thinkingBudget?: string | number | undefined;
3859
4019
  thinkingLevel?: ThinkingLevel | undefined;
3860
- artifacts?: string | undefined;
3861
4020
  examples?: {
3862
- input: {
4021
+ output: {
3863
4022
  content: string;
3864
4023
  };
3865
- output: {
4024
+ input: {
3866
4025
  content: string;
3867
4026
  };
3868
4027
  }[] | undefined;
@@ -3870,11 +4029,12 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3870
4029
  resendFiles?: boolean | undefined;
3871
4030
  web_search?: boolean | undefined;
3872
4031
  url_context?: boolean | undefined;
3873
- greeting?: string | undefined;
3874
4032
  spec?: string | null | undefined;
3875
4033
  iconURL?: string | null | undefined;
3876
4034
  fileTokenLimit?: string | number | undefined;
3877
4035
  }>, Partial<Partial<TConversation>>, {
4036
+ greeting?: string | undefined;
4037
+ artifacts?: string | undefined;
3878
4038
  model?: string | null | undefined;
3879
4039
  modelLabel?: string | null | undefined;
3880
4040
  promptPrefix?: string | null | undefined;
@@ -3886,12 +4046,11 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3886
4046
  thinking?: boolean | undefined;
3887
4047
  thinkingBudget?: string | number | undefined;
3888
4048
  thinkingLevel?: ThinkingLevel | undefined;
3889
- artifacts?: string | undefined;
3890
4049
  examples?: {
3891
- input: {
4050
+ output: {
3892
4051
  content: string;
3893
4052
  };
3894
- output: {
4053
+ input: {
3895
4054
  content: string;
3896
4055
  };
3897
4056
  }[] | undefined;
@@ -3899,7 +4058,6 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3899
4058
  resendFiles?: boolean | undefined;
3900
4059
  web_search?: boolean | undefined;
3901
4060
  url_context?: boolean | undefined;
3902
- greeting?: string | undefined;
3903
4061
  spec?: string | null | undefined;
3904
4062
  iconURL?: string | null | undefined;
3905
4063
  fileTokenLimit?: string | number | undefined;
@@ -3975,6 +4133,18 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3975
4133
  pinned: z.ZodOptional<z.ZodBoolean>;
3976
4134
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3977
4135
  isShared: z.ZodOptional<z.ZodBoolean>;
4136
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4137
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4138
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4139
+ environmentId: z.ZodString;
4140
+ workspaceId: z.ZodString;
4141
+ }, "strict", z.ZodTypeAny, {
4142
+ environmentId: string;
4143
+ workspaceId: string;
4144
+ }, {
4145
+ environmentId: string;
4146
+ workspaceId: string;
4147
+ }>, "many">>;
3978
4148
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3979
4149
  user: z.ZodOptional<z.ZodString>;
3980
4150
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3992,14 +4162,14 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3992
4162
  sensitive: z.ZodOptional<z.ZodBoolean>;
3993
4163
  }, "strip", z.ZodTypeAny, {
3994
4164
  description: string;
3995
- authField: string;
3996
4165
  label: string;
4166
+ authField: string;
3997
4167
  optional?: boolean | undefined;
3998
4168
  sensitive?: boolean | undefined;
3999
4169
  }, {
4000
4170
  description: string;
4001
- authField: string;
4002
4171
  label: string;
4172
+ authField: string;
4003
4173
  optional?: boolean | undefined;
4004
4174
  sensitive?: boolean | undefined;
4005
4175
  }>, "many">>;
@@ -4017,8 +4187,8 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4017
4187
  icon?: string | undefined;
4018
4188
  authConfig?: {
4019
4189
  description: string;
4020
- authField: string;
4021
4190
  label: string;
4191
+ authField: string;
4022
4192
  optional?: boolean | undefined;
4023
4193
  sensitive?: boolean | undefined;
4024
4194
  }[] | undefined;
@@ -4034,8 +4204,8 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4034
4204
  icon?: string | undefined;
4035
4205
  authConfig?: {
4036
4206
  description: string;
4037
- authField: string;
4038
4207
  label: string;
4208
+ authField: string;
4039
4209
  optional?: boolean | undefined;
4040
4210
  sensitive?: boolean | undefined;
4041
4211
  }[] | undefined;
@@ -4084,19 +4254,19 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4084
4254
  content: string;
4085
4255
  }>;
4086
4256
  }, "strip", z.ZodTypeAny, {
4087
- input: {
4088
- content: string;
4089
- };
4090
4257
  output: {
4091
4258
  content: string;
4092
4259
  };
4093
- }, {
4094
4260
  input: {
4095
4261
  content: string;
4096
4262
  };
4263
+ }, {
4097
4264
  output: {
4098
4265
  content: string;
4099
4266
  };
4267
+ input: {
4268
+ content: string;
4269
+ };
4100
4270
  }>, "many">>;
4101
4271
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4102
4272
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4166,26 +4336,26 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4166
4336
  resendImages: z.ZodOptional<z.ZodBoolean>;
4167
4337
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4168
4338
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4169
- }, "model" | "promptPrefix" | "artifacts" | "chatProjectId" | "assistant_id" | "instructions" | "append_current_datetime" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4339
+ }, "instructions" | "greeting" | "artifacts" | "model" | "promptPrefix" | "chatProjectId" | "assistant_id" | "append_current_datetime" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4340
+ instructions?: string | undefined;
4341
+ greeting?: string | undefined;
4342
+ artifacts?: string | undefined;
4170
4343
  model?: string | null | undefined;
4171
4344
  promptPrefix?: string | null | undefined;
4172
- artifacts?: string | undefined;
4173
4345
  chatProjectId?: string | null | undefined;
4174
4346
  assistant_id?: string | undefined;
4175
- instructions?: string | undefined;
4176
4347
  append_current_datetime?: boolean | undefined;
4177
- greeting?: string | undefined;
4178
4348
  spec?: string | null | undefined;
4179
4349
  iconURL?: string | null | undefined;
4180
4350
  }, {
4351
+ instructions?: string | undefined;
4352
+ greeting?: string | undefined;
4353
+ artifacts?: string | undefined;
4181
4354
  model?: string | null | undefined;
4182
4355
  promptPrefix?: string | null | undefined;
4183
- artifacts?: string | undefined;
4184
4356
  chatProjectId?: string | null | undefined;
4185
4357
  assistant_id?: string | undefined;
4186
- instructions?: string | undefined;
4187
4358
  append_current_datetime?: boolean | undefined;
4188
- greeting?: string | undefined;
4189
4359
  spec?: string | null | undefined;
4190
4360
  iconURL?: string | null | undefined;
4191
4361
  }>, {
@@ -4200,14 +4370,14 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4200
4370
  artifacts?: string | undefined;
4201
4371
  chatProjectId?: string | null | undefined;
4202
4372
  }, {
4373
+ instructions?: string | undefined;
4374
+ greeting?: string | undefined;
4375
+ artifacts?: string | undefined;
4203
4376
  model?: string | null | undefined;
4204
4377
  promptPrefix?: string | null | undefined;
4205
- artifacts?: string | undefined;
4206
4378
  chatProjectId?: string | null | undefined;
4207
4379
  assistant_id?: string | undefined;
4208
- instructions?: string | undefined;
4209
4380
  append_current_datetime?: boolean | undefined;
4210
- greeting?: string | undefined;
4211
4381
  spec?: string | null | undefined;
4212
4382
  iconURL?: string | null | undefined;
4213
4383
  }>>;
@@ -4221,6 +4391,18 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4221
4391
  pinned: z.ZodOptional<z.ZodBoolean>;
4222
4392
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4223
4393
  isShared: z.ZodOptional<z.ZodBoolean>;
4394
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4395
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4396
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4397
+ environmentId: z.ZodString;
4398
+ workspaceId: z.ZodString;
4399
+ }, "strict", z.ZodTypeAny, {
4400
+ environmentId: string;
4401
+ workspaceId: string;
4402
+ }, {
4403
+ environmentId: string;
4404
+ workspaceId: string;
4405
+ }>, "many">>;
4224
4406
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4225
4407
  user: z.ZodOptional<z.ZodString>;
4226
4408
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4238,14 +4420,14 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4238
4420
  sensitive: z.ZodOptional<z.ZodBoolean>;
4239
4421
  }, "strip", z.ZodTypeAny, {
4240
4422
  description: string;
4241
- authField: string;
4242
4423
  label: string;
4424
+ authField: string;
4243
4425
  optional?: boolean | undefined;
4244
4426
  sensitive?: boolean | undefined;
4245
4427
  }, {
4246
4428
  description: string;
4247
- authField: string;
4248
4429
  label: string;
4430
+ authField: string;
4249
4431
  optional?: boolean | undefined;
4250
4432
  sensitive?: boolean | undefined;
4251
4433
  }>, "many">>;
@@ -4263,8 +4445,8 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4263
4445
  icon?: string | undefined;
4264
4446
  authConfig?: {
4265
4447
  description: string;
4266
- authField: string;
4267
4448
  label: string;
4449
+ authField: string;
4268
4450
  optional?: boolean | undefined;
4269
4451
  sensitive?: boolean | undefined;
4270
4452
  }[] | undefined;
@@ -4280,8 +4462,8 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4280
4462
  icon?: string | undefined;
4281
4463
  authConfig?: {
4282
4464
  description: string;
4283
- authField: string;
4284
4465
  label: string;
4466
+ authField: string;
4285
4467
  optional?: boolean | undefined;
4286
4468
  sensitive?: boolean | undefined;
4287
4469
  }[] | undefined;
@@ -4330,19 +4512,19 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4330
4512
  content: string;
4331
4513
  }>;
4332
4514
  }, "strip", z.ZodTypeAny, {
4333
- input: {
4334
- content: string;
4335
- };
4336
4515
  output: {
4337
4516
  content: string;
4338
4517
  };
4339
- }, {
4340
4518
  input: {
4341
4519
  content: string;
4342
4520
  };
4521
+ }, {
4343
4522
  output: {
4344
4523
  content: string;
4345
4524
  };
4525
+ input: {
4526
+ content: string;
4527
+ };
4346
4528
  }>, "many">>;
4347
4529
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4348
4530
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4412,44 +4594,44 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
4412
4594
  resendImages: z.ZodOptional<z.ZodBoolean>;
4413
4595
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4414
4596
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4415
- }, "model" | "promptPrefix" | "artifacts" | "chatProjectId" | "assistant_id" | "instructions" | "greeting" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4597
+ }, "instructions" | "greeting" | "artifacts" | "model" | "promptPrefix" | "chatProjectId" | "assistant_id" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
4598
+ instructions?: string | undefined;
4599
+ greeting?: string | undefined;
4600
+ artifacts?: string | undefined;
4416
4601
  model?: string | null | undefined;
4417
4602
  promptPrefix?: string | null | undefined;
4418
- artifacts?: string | undefined;
4419
4603
  chatProjectId?: string | null | undefined;
4420
4604
  assistant_id?: string | undefined;
4421
- instructions?: string | undefined;
4422
- greeting?: string | undefined;
4423
4605
  spec?: string | null | undefined;
4424
4606
  iconURL?: string | null | undefined;
4425
4607
  }, {
4608
+ instructions?: string | undefined;
4609
+ greeting?: string | undefined;
4610
+ artifacts?: string | undefined;
4426
4611
  model?: string | null | undefined;
4427
4612
  promptPrefix?: string | null | undefined;
4428
- artifacts?: string | undefined;
4429
4613
  chatProjectId?: string | null | undefined;
4430
4614
  assistant_id?: string | undefined;
4431
- instructions?: string | undefined;
4432
- greeting?: string | undefined;
4433
4615
  spec?: string | null | undefined;
4434
4616
  iconURL?: string | null | undefined;
4435
4617
  }>, Partial<{
4618
+ instructions?: string | undefined;
4619
+ greeting?: string | undefined;
4620
+ artifacts?: string | undefined;
4436
4621
  model?: string | null | undefined;
4437
4622
  promptPrefix?: string | null | undefined;
4438
- artifacts?: string | undefined;
4439
4623
  chatProjectId?: string | null | undefined;
4440
4624
  assistant_id?: string | undefined;
4441
- instructions?: string | undefined;
4442
- greeting?: string | undefined;
4443
4625
  spec?: string | null | undefined;
4444
4626
  iconURL?: string | null | undefined;
4445
4627
  }>, {
4628
+ instructions?: string | undefined;
4629
+ greeting?: string | undefined;
4630
+ artifacts?: string | undefined;
4446
4631
  model?: string | null | undefined;
4447
4632
  promptPrefix?: string | null | undefined;
4448
- artifacts?: string | undefined;
4449
4633
  chatProjectId?: string | null | undefined;
4450
4634
  assistant_id?: string | undefined;
4451
- instructions?: string | undefined;
4452
- greeting?: string | undefined;
4453
4635
  spec?: string | null | undefined;
4454
4636
  iconURL?: string | null | undefined;
4455
4637
  }>>;
@@ -4463,6 +4645,18 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4463
4645
  pinned: z.ZodOptional<z.ZodBoolean>;
4464
4646
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4465
4647
  isShared: z.ZodOptional<z.ZodBoolean>;
4648
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4649
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4650
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4651
+ environmentId: z.ZodString;
4652
+ workspaceId: z.ZodString;
4653
+ }, "strict", z.ZodTypeAny, {
4654
+ environmentId: string;
4655
+ workspaceId: string;
4656
+ }, {
4657
+ environmentId: string;
4658
+ workspaceId: string;
4659
+ }>, "many">>;
4466
4660
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4467
4661
  user: z.ZodOptional<z.ZodString>;
4468
4662
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4480,14 +4674,14 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4480
4674
  sensitive: z.ZodOptional<z.ZodBoolean>;
4481
4675
  }, "strip", z.ZodTypeAny, {
4482
4676
  description: string;
4483
- authField: string;
4484
4677
  label: string;
4678
+ authField: string;
4485
4679
  optional?: boolean | undefined;
4486
4680
  sensitive?: boolean | undefined;
4487
4681
  }, {
4488
4682
  description: string;
4489
- authField: string;
4490
4683
  label: string;
4684
+ authField: string;
4491
4685
  optional?: boolean | undefined;
4492
4686
  sensitive?: boolean | undefined;
4493
4687
  }>, "many">>;
@@ -4505,8 +4699,8 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4505
4699
  icon?: string | undefined;
4506
4700
  authConfig?: {
4507
4701
  description: string;
4508
- authField: string;
4509
4702
  label: string;
4703
+ authField: string;
4510
4704
  optional?: boolean | undefined;
4511
4705
  sensitive?: boolean | undefined;
4512
4706
  }[] | undefined;
@@ -4522,8 +4716,8 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4522
4716
  icon?: string | undefined;
4523
4717
  authConfig?: {
4524
4718
  description: string;
4525
- authField: string;
4526
4719
  label: string;
4720
+ authField: string;
4527
4721
  optional?: boolean | undefined;
4528
4722
  sensitive?: boolean | undefined;
4529
4723
  }[] | undefined;
@@ -4572,19 +4766,19 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4572
4766
  content: string;
4573
4767
  }>;
4574
4768
  }, "strip", z.ZodTypeAny, {
4575
- input: {
4576
- content: string;
4577
- };
4578
4769
  output: {
4579
4770
  content: string;
4580
4771
  };
4581
- }, {
4582
4772
  input: {
4583
4773
  content: string;
4584
4774
  };
4775
+ }, {
4585
4776
  output: {
4586
4777
  content: string;
4587
4778
  };
4779
+ input: {
4780
+ content: string;
4781
+ };
4588
4782
  }>, "many">>;
4589
4783
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4590
4784
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4654,7 +4848,9 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4654
4848
  resendImages: z.ZodOptional<z.ZodBoolean>;
4655
4849
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4656
4850
  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, {
4851
+ }, "instructions" | "greeting" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "iconURL">, "strip", z.ZodTypeAny, {
4852
+ instructions?: string | undefined;
4853
+ greeting?: string | undefined;
4658
4854
  model?: string | null | undefined;
4659
4855
  modelLabel?: string | null | undefined;
4660
4856
  promptPrefix?: string | null | undefined;
@@ -4667,10 +4863,10 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4667
4863
  resendFiles?: boolean | undefined;
4668
4864
  imageDetail?: ImageDetail | undefined;
4669
4865
  agent_id?: string | undefined;
4670
- instructions?: string | undefined;
4671
- greeting?: string | undefined;
4672
4866
  iconURL?: string | null | undefined;
4673
4867
  }, {
4868
+ instructions?: string | undefined;
4869
+ greeting?: string | undefined;
4674
4870
  model?: string | null | undefined;
4675
4871
  modelLabel?: string | null | undefined;
4676
4872
  promptPrefix?: string | null | undefined;
@@ -4683,8 +4879,6 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
4683
4879
  resendFiles?: boolean | undefined;
4684
4880
  imageDetail?: ImageDetail | undefined;
4685
4881
  agent_id?: string | undefined;
4686
- instructions?: string | undefined;
4687
- greeting?: string | undefined;
4688
4882
  iconURL?: string | null | undefined;
4689
4883
  }>;
4690
4884
  export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
@@ -4697,6 +4891,18 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4697
4891
  pinned: z.ZodOptional<z.ZodBoolean>;
4698
4892
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4699
4893
  isShared: z.ZodOptional<z.ZodBoolean>;
4894
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
4895
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
4896
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
4897
+ environmentId: z.ZodString;
4898
+ workspaceId: z.ZodString;
4899
+ }, "strict", z.ZodTypeAny, {
4900
+ environmentId: string;
4901
+ workspaceId: string;
4902
+ }, {
4903
+ environmentId: string;
4904
+ workspaceId: string;
4905
+ }>, "many">>;
4700
4906
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4701
4907
  user: z.ZodOptional<z.ZodString>;
4702
4908
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4714,14 +4920,14 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4714
4920
  sensitive: z.ZodOptional<z.ZodBoolean>;
4715
4921
  }, "strip", z.ZodTypeAny, {
4716
4922
  description: string;
4717
- authField: string;
4718
4923
  label: string;
4924
+ authField: string;
4719
4925
  optional?: boolean | undefined;
4720
4926
  sensitive?: boolean | undefined;
4721
4927
  }, {
4722
4928
  description: string;
4723
- authField: string;
4724
4929
  label: string;
4930
+ authField: string;
4725
4931
  optional?: boolean | undefined;
4726
4932
  sensitive?: boolean | undefined;
4727
4933
  }>, "many">>;
@@ -4739,8 +4945,8 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4739
4945
  icon?: string | undefined;
4740
4946
  authConfig?: {
4741
4947
  description: string;
4742
- authField: string;
4743
4948
  label: string;
4949
+ authField: string;
4744
4950
  optional?: boolean | undefined;
4745
4951
  sensitive?: boolean | undefined;
4746
4952
  }[] | undefined;
@@ -4756,8 +4962,8 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4756
4962
  icon?: string | undefined;
4757
4963
  authConfig?: {
4758
4964
  description: string;
4759
- authField: string;
4760
4965
  label: string;
4966
+ authField: string;
4761
4967
  optional?: boolean | undefined;
4762
4968
  sensitive?: boolean | undefined;
4763
4969
  }[] | undefined;
@@ -4806,19 +5012,19 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4806
5012
  content: string;
4807
5013
  }>;
4808
5014
  }, "strip", z.ZodTypeAny, {
4809
- input: {
4810
- content: string;
4811
- };
4812
5015
  output: {
4813
5016
  content: string;
4814
5017
  };
4815
- }, {
4816
5018
  input: {
4817
5019
  content: string;
4818
5020
  };
5021
+ }, {
4819
5022
  output: {
4820
5023
  content: string;
4821
5024
  };
5025
+ input: {
5026
+ content: string;
5027
+ };
4822
5028
  }>, "many">>;
4823
5029
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4824
5030
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4888,7 +5094,9 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4888
5094
  resendImages: z.ZodOptional<z.ZodBoolean>;
4889
5095
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4890
5096
  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, {
5097
+ }, "instructions" | "greeting" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "chatProjectId" | "resendFiles" | "imageDetail" | "agent_id" | "iconURL">, "strip", z.ZodTypeAny, {
5098
+ instructions?: string | undefined;
5099
+ greeting?: string | undefined;
4892
5100
  model?: string | null | undefined;
4893
5101
  modelLabel?: string | null | undefined;
4894
5102
  promptPrefix?: string | null | undefined;
@@ -4901,10 +5109,10 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4901
5109
  resendFiles?: boolean | undefined;
4902
5110
  imageDetail?: ImageDetail | undefined;
4903
5111
  agent_id?: string | undefined;
4904
- instructions?: string | undefined;
4905
- greeting?: string | undefined;
4906
5112
  iconURL?: string | null | undefined;
4907
5113
  }, {
5114
+ instructions?: string | undefined;
5115
+ greeting?: string | undefined;
4908
5116
  model?: string | null | undefined;
4909
5117
  modelLabel?: string | null | undefined;
4910
5118
  promptPrefix?: string | null | undefined;
@@ -4917,8 +5125,6 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4917
5125
  resendFiles?: boolean | undefined;
4918
5126
  imageDetail?: ImageDetail | undefined;
4919
5127
  agent_id?: string | undefined;
4920
- instructions?: string | undefined;
4921
- greeting?: string | undefined;
4922
5128
  iconURL?: string | null | undefined;
4923
5129
  }>, {
4924
5130
  model: string;
@@ -4937,6 +5143,8 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4937
5143
  maxContextTokens: number | undefined;
4938
5144
  chatProjectId?: string | null | undefined;
4939
5145
  }, {
5146
+ instructions?: string | undefined;
5147
+ greeting?: string | undefined;
4940
5148
  model?: string | null | undefined;
4941
5149
  modelLabel?: string | null | undefined;
4942
5150
  promptPrefix?: string | null | undefined;
@@ -4949,8 +5157,6 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4949
5157
  resendFiles?: boolean | undefined;
4950
5158
  imageDetail?: ImageDetail | undefined;
4951
5159
  agent_id?: string | undefined;
4952
- instructions?: string | undefined;
4953
- greeting?: string | undefined;
4954
5160
  iconURL?: string | null | undefined;
4955
5161
  }>>;
4956
5162
  export declare const openAIBaseSchema: z.ZodObject<Pick<{
@@ -4963,6 +5169,18 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4963
5169
  pinned: z.ZodOptional<z.ZodBoolean>;
4964
5170
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4965
5171
  isShared: z.ZodOptional<z.ZodBoolean>;
5172
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5173
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5174
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5175
+ environmentId: z.ZodString;
5176
+ workspaceId: z.ZodString;
5177
+ }, "strict", z.ZodTypeAny, {
5178
+ environmentId: string;
5179
+ workspaceId: string;
5180
+ }, {
5181
+ environmentId: string;
5182
+ workspaceId: string;
5183
+ }>, "many">>;
4966
5184
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4967
5185
  user: z.ZodOptional<z.ZodString>;
4968
5186
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4980,14 +5198,14 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4980
5198
  sensitive: z.ZodOptional<z.ZodBoolean>;
4981
5199
  }, "strip", z.ZodTypeAny, {
4982
5200
  description: string;
4983
- authField: string;
4984
5201
  label: string;
5202
+ authField: string;
4985
5203
  optional?: boolean | undefined;
4986
5204
  sensitive?: boolean | undefined;
4987
5205
  }, {
4988
5206
  description: string;
4989
- authField: string;
4990
5207
  label: string;
5208
+ authField: string;
4991
5209
  optional?: boolean | undefined;
4992
5210
  sensitive?: boolean | undefined;
4993
5211
  }>, "many">>;
@@ -5005,8 +5223,8 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5005
5223
  icon?: string | undefined;
5006
5224
  authConfig?: {
5007
5225
  description: string;
5008
- authField: string;
5009
5226
  label: string;
5227
+ authField: string;
5010
5228
  optional?: boolean | undefined;
5011
5229
  sensitive?: boolean | undefined;
5012
5230
  }[] | undefined;
@@ -5022,8 +5240,8 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5022
5240
  icon?: string | undefined;
5023
5241
  authConfig?: {
5024
5242
  description: string;
5025
- authField: string;
5026
5243
  label: string;
5244
+ authField: string;
5027
5245
  optional?: boolean | undefined;
5028
5246
  sensitive?: boolean | undefined;
5029
5247
  }[] | undefined;
@@ -5072,19 +5290,19 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5072
5290
  content: string;
5073
5291
  }>;
5074
5292
  }, "strip", z.ZodTypeAny, {
5075
- input: {
5076
- content: string;
5077
- };
5078
5293
  output: {
5079
5294
  content: string;
5080
5295
  };
5081
- }, {
5082
5296
  input: {
5083
5297
  content: string;
5084
5298
  };
5299
+ }, {
5085
5300
  output: {
5086
5301
  content: string;
5087
5302
  };
5303
+ input: {
5304
+ content: string;
5305
+ };
5088
5306
  }>, "many">>;
5089
5307
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5090
5308
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5154,7 +5372,10 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5154
5372
  resendImages: z.ZodOptional<z.ZodBoolean>;
5155
5373
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5156
5374
  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, {
5375
+ }, "greeting" | "artifacts" | "stop" | "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" | "web_search" | "disableStreaming" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5376
+ greeting?: string | undefined;
5377
+ artifacts?: string | undefined;
5378
+ stop?: string[] | undefined;
5158
5379
  model?: string | null | undefined;
5159
5380
  modelLabel?: string | null | undefined;
5160
5381
  promptPrefix?: string | null | undefined;
@@ -5164,7 +5385,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5164
5385
  presence_penalty?: number | undefined;
5165
5386
  maxContextTokens?: number | undefined;
5166
5387
  max_tokens?: number | undefined;
5167
- artifacts?: string | undefined;
5168
5388
  chatProjectId?: string | null | undefined;
5169
5389
  resendFiles?: boolean | undefined;
5170
5390
  imageDetail?: ImageDetail | undefined;
@@ -5176,13 +5396,14 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5176
5396
  useResponsesApi?: boolean | undefined;
5177
5397
  web_search?: boolean | undefined;
5178
5398
  disableStreaming?: boolean | undefined;
5179
- stop?: string[] | undefined;
5180
- greeting?: string | undefined;
5181
5399
  spec?: string | null | undefined;
5182
5400
  iconURL?: string | null | undefined;
5183
5401
  fileTokenLimit?: number | undefined;
5184
5402
  chatGptLabel?: string | null | undefined;
5185
5403
  }, {
5404
+ greeting?: string | undefined;
5405
+ artifacts?: string | undefined;
5406
+ stop?: string[] | undefined;
5186
5407
  model?: string | null | undefined;
5187
5408
  modelLabel?: string | null | undefined;
5188
5409
  promptPrefix?: string | null | undefined;
@@ -5192,7 +5413,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5192
5413
  presence_penalty?: number | undefined;
5193
5414
  maxContextTokens?: string | number | undefined;
5194
5415
  max_tokens?: string | number | undefined;
5195
- artifacts?: string | undefined;
5196
5416
  chatProjectId?: string | null | undefined;
5197
5417
  resendFiles?: boolean | undefined;
5198
5418
  imageDetail?: ImageDetail | undefined;
@@ -5204,8 +5424,6 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
5204
5424
  useResponsesApi?: boolean | undefined;
5205
5425
  web_search?: boolean | undefined;
5206
5426
  disableStreaming?: boolean | undefined;
5207
- stop?: string[] | undefined;
5208
- greeting?: string | undefined;
5209
5427
  spec?: string | null | undefined;
5210
5428
  iconURL?: string | null | undefined;
5211
5429
  fileTokenLimit?: string | number | undefined;
@@ -5221,6 +5439,18 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5221
5439
  pinned: z.ZodOptional<z.ZodBoolean>;
5222
5440
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5223
5441
  isShared: z.ZodOptional<z.ZodBoolean>;
5442
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5443
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5444
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5445
+ environmentId: z.ZodString;
5446
+ workspaceId: z.ZodString;
5447
+ }, "strict", z.ZodTypeAny, {
5448
+ environmentId: string;
5449
+ workspaceId: string;
5450
+ }, {
5451
+ environmentId: string;
5452
+ workspaceId: string;
5453
+ }>, "many">>;
5224
5454
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5225
5455
  user: z.ZodOptional<z.ZodString>;
5226
5456
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5238,14 +5468,14 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5238
5468
  sensitive: z.ZodOptional<z.ZodBoolean>;
5239
5469
  }, "strip", z.ZodTypeAny, {
5240
5470
  description: string;
5241
- authField: string;
5242
5471
  label: string;
5472
+ authField: string;
5243
5473
  optional?: boolean | undefined;
5244
5474
  sensitive?: boolean | undefined;
5245
5475
  }, {
5246
5476
  description: string;
5247
- authField: string;
5248
5477
  label: string;
5478
+ authField: string;
5249
5479
  optional?: boolean | undefined;
5250
5480
  sensitive?: boolean | undefined;
5251
5481
  }>, "many">>;
@@ -5263,8 +5493,8 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5263
5493
  icon?: string | undefined;
5264
5494
  authConfig?: {
5265
5495
  description: string;
5266
- authField: string;
5267
5496
  label: string;
5497
+ authField: string;
5268
5498
  optional?: boolean | undefined;
5269
5499
  sensitive?: boolean | undefined;
5270
5500
  }[] | undefined;
@@ -5280,8 +5510,8 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5280
5510
  icon?: string | undefined;
5281
5511
  authConfig?: {
5282
5512
  description: string;
5283
- authField: string;
5284
5513
  label: string;
5514
+ authField: string;
5285
5515
  optional?: boolean | undefined;
5286
5516
  sensitive?: boolean | undefined;
5287
5517
  }[] | undefined;
@@ -5330,17 +5560,17 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5330
5560
  content: string;
5331
5561
  }>;
5332
5562
  }, "strip", z.ZodTypeAny, {
5333
- input: {
5563
+ output: {
5334
5564
  content: string;
5335
5565
  };
5336
- output: {
5566
+ input: {
5337
5567
  content: string;
5338
5568
  };
5339
5569
  }, {
5340
- input: {
5570
+ output: {
5341
5571
  content: string;
5342
5572
  };
5343
- output: {
5573
+ input: {
5344
5574
  content: string;
5345
5575
  };
5346
5576
  }>, "many">>;
@@ -5412,7 +5642,10 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5412
5642
  resendImages: z.ZodOptional<z.ZodBoolean>;
5413
5643
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5414
5644
  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, {
5645
+ }, "greeting" | "artifacts" | "stop" | "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" | "web_search" | "disableStreaming" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
5646
+ greeting?: string | undefined;
5647
+ artifacts?: string | undefined;
5648
+ stop?: string[] | undefined;
5416
5649
  model?: string | null | undefined;
5417
5650
  modelLabel?: string | null | undefined;
5418
5651
  promptPrefix?: string | null | undefined;
@@ -5422,7 +5655,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5422
5655
  presence_penalty?: number | undefined;
5423
5656
  maxContextTokens?: number | undefined;
5424
5657
  max_tokens?: number | undefined;
5425
- artifacts?: string | undefined;
5426
5658
  chatProjectId?: string | null | undefined;
5427
5659
  resendFiles?: boolean | undefined;
5428
5660
  imageDetail?: ImageDetail | undefined;
@@ -5434,13 +5666,14 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5434
5666
  useResponsesApi?: boolean | undefined;
5435
5667
  web_search?: boolean | undefined;
5436
5668
  disableStreaming?: boolean | undefined;
5437
- stop?: string[] | undefined;
5438
- greeting?: string | undefined;
5439
5669
  spec?: string | null | undefined;
5440
5670
  iconURL?: string | null | undefined;
5441
5671
  fileTokenLimit?: number | undefined;
5442
5672
  chatGptLabel?: string | null | undefined;
5443
5673
  }, {
5674
+ greeting?: string | undefined;
5675
+ artifacts?: string | undefined;
5676
+ stop?: string[] | undefined;
5444
5677
  model?: string | null | undefined;
5445
5678
  modelLabel?: string | null | undefined;
5446
5679
  promptPrefix?: string | null | undefined;
@@ -5450,7 +5683,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5450
5683
  presence_penalty?: number | undefined;
5451
5684
  maxContextTokens?: string | number | undefined;
5452
5685
  max_tokens?: string | number | undefined;
5453
- artifacts?: string | undefined;
5454
5686
  chatProjectId?: string | null | undefined;
5455
5687
  resendFiles?: boolean | undefined;
5456
5688
  imageDetail?: ImageDetail | undefined;
@@ -5462,13 +5694,14 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5462
5694
  useResponsesApi?: boolean | undefined;
5463
5695
  web_search?: boolean | undefined;
5464
5696
  disableStreaming?: boolean | undefined;
5465
- stop?: string[] | undefined;
5466
- greeting?: string | undefined;
5467
5697
  spec?: string | null | undefined;
5468
5698
  iconURL?: string | null | undefined;
5469
5699
  fileTokenLimit?: string | number | undefined;
5470
5700
  chatGptLabel?: string | null | undefined;
5471
5701
  }>, Partial<Partial<TConversation>>, {
5702
+ greeting?: string | undefined;
5703
+ artifacts?: string | undefined;
5704
+ stop?: string[] | undefined;
5472
5705
  model?: string | null | undefined;
5473
5706
  modelLabel?: string | null | undefined;
5474
5707
  promptPrefix?: string | null | undefined;
@@ -5478,7 +5711,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5478
5711
  presence_penalty?: number | undefined;
5479
5712
  maxContextTokens?: string | number | undefined;
5480
5713
  max_tokens?: string | number | undefined;
5481
- artifacts?: string | undefined;
5482
5714
  chatProjectId?: string | null | undefined;
5483
5715
  resendFiles?: boolean | undefined;
5484
5716
  imageDetail?: ImageDetail | undefined;
@@ -5490,8 +5722,6 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5490
5722
  useResponsesApi?: boolean | undefined;
5491
5723
  web_search?: boolean | undefined;
5492
5724
  disableStreaming?: boolean | undefined;
5493
- stop?: string[] | undefined;
5494
- greeting?: string | undefined;
5495
5725
  spec?: string | null | undefined;
5496
5726
  iconURL?: string | null | undefined;
5497
5727
  fileTokenLimit?: string | number | undefined;
@@ -5507,6 +5737,18 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5507
5737
  pinned: z.ZodOptional<z.ZodBoolean>;
5508
5738
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5509
5739
  isShared: z.ZodOptional<z.ZodBoolean>;
5740
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5741
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5742
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5743
+ environmentId: z.ZodString;
5744
+ workspaceId: z.ZodString;
5745
+ }, "strict", z.ZodTypeAny, {
5746
+ environmentId: string;
5747
+ workspaceId: string;
5748
+ }, {
5749
+ environmentId: string;
5750
+ workspaceId: string;
5751
+ }>, "many">>;
5510
5752
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5511
5753
  user: z.ZodOptional<z.ZodString>;
5512
5754
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5524,14 +5766,14 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5524
5766
  sensitive: z.ZodOptional<z.ZodBoolean>;
5525
5767
  }, "strip", z.ZodTypeAny, {
5526
5768
  description: string;
5527
- authField: string;
5528
5769
  label: string;
5770
+ authField: string;
5529
5771
  optional?: boolean | undefined;
5530
5772
  sensitive?: boolean | undefined;
5531
5773
  }, {
5532
5774
  description: string;
5533
- authField: string;
5534
5775
  label: string;
5776
+ authField: string;
5535
5777
  optional?: boolean | undefined;
5536
5778
  sensitive?: boolean | undefined;
5537
5779
  }>, "many">>;
@@ -5549,8 +5791,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5549
5791
  icon?: string | undefined;
5550
5792
  authConfig?: {
5551
5793
  description: string;
5552
- authField: string;
5553
5794
  label: string;
5795
+ authField: string;
5554
5796
  optional?: boolean | undefined;
5555
5797
  sensitive?: boolean | undefined;
5556
5798
  }[] | undefined;
@@ -5566,8 +5808,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5566
5808
  icon?: string | undefined;
5567
5809
  authConfig?: {
5568
5810
  description: string;
5569
- authField: string;
5570
5811
  label: string;
5812
+ authField: string;
5571
5813
  optional?: boolean | undefined;
5572
5814
  sensitive?: boolean | undefined;
5573
5815
  }[] | undefined;
@@ -5616,19 +5858,19 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5616
5858
  content: string;
5617
5859
  }>;
5618
5860
  }, "strip", z.ZodTypeAny, {
5619
- input: {
5620
- content: string;
5621
- };
5622
5861
  output: {
5623
5862
  content: string;
5624
5863
  };
5625
- }, {
5626
5864
  input: {
5627
5865
  content: string;
5628
5866
  };
5867
+ }, {
5629
5868
  output: {
5630
5869
  content: string;
5631
5870
  };
5871
+ input: {
5872
+ content: string;
5873
+ };
5632
5874
  }>, "many">>;
5633
5875
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5634
5876
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5698,7 +5940,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5698
5940
  resendImages: z.ZodOptional<z.ZodBoolean>;
5699
5941
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5700
5942
  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<{
5943
+ }, "greeting" | "artifacts" | "stop" | "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" | "web_search" | "disableStreaming" | "spec" | "iconURL" | "fileTokenLimit" | "chatGptLabel"> & Pick<{
5702
5944
  conversationId: z.ZodNullable<z.ZodString>;
5703
5945
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5704
5946
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
@@ -5708,6 +5950,18 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5708
5950
  pinned: z.ZodOptional<z.ZodBoolean>;
5709
5951
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5710
5952
  isShared: z.ZodOptional<z.ZodBoolean>;
5953
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
5954
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
5955
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
5956
+ environmentId: z.ZodString;
5957
+ workspaceId: z.ZodString;
5958
+ }, "strict", z.ZodTypeAny, {
5959
+ environmentId: string;
5960
+ workspaceId: string;
5961
+ }, {
5962
+ environmentId: string;
5963
+ workspaceId: string;
5964
+ }>, "many">>;
5711
5965
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
5712
5966
  user: z.ZodOptional<z.ZodString>;
5713
5967
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5725,14 +5979,14 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5725
5979
  sensitive: z.ZodOptional<z.ZodBoolean>;
5726
5980
  }, "strip", z.ZodTypeAny, {
5727
5981
  description: string;
5728
- authField: string;
5729
5982
  label: string;
5983
+ authField: string;
5730
5984
  optional?: boolean | undefined;
5731
5985
  sensitive?: boolean | undefined;
5732
5986
  }, {
5733
5987
  description: string;
5734
- authField: string;
5735
5988
  label: string;
5989
+ authField: string;
5736
5990
  optional?: boolean | undefined;
5737
5991
  sensitive?: boolean | undefined;
5738
5992
  }>, "many">>;
@@ -5750,8 +6004,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5750
6004
  icon?: string | undefined;
5751
6005
  authConfig?: {
5752
6006
  description: string;
5753
- authField: string;
5754
6007
  label: string;
6008
+ authField: string;
5755
6009
  optional?: boolean | undefined;
5756
6010
  sensitive?: boolean | undefined;
5757
6011
  }[] | undefined;
@@ -5767,8 +6021,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5767
6021
  icon?: string | undefined;
5768
6022
  authConfig?: {
5769
6023
  description: string;
5770
- authField: string;
5771
6024
  label: string;
6025
+ authField: string;
5772
6026
  optional?: boolean | undefined;
5773
6027
  sensitive?: boolean | undefined;
5774
6028
  }[] | undefined;
@@ -5817,19 +6071,19 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5817
6071
  content: string;
5818
6072
  }>;
5819
6073
  }, "strip", z.ZodTypeAny, {
5820
- input: {
5821
- content: string;
5822
- };
5823
6074
  output: {
5824
6075
  content: string;
5825
6076
  };
5826
- }, {
5827
6077
  input: {
5828
6078
  content: string;
5829
6079
  };
6080
+ }, {
5830
6081
  output: {
5831
6082
  content: string;
5832
6083
  };
6084
+ input: {
6085
+ content: string;
6086
+ };
5833
6087
  }>, "many">>;
5834
6088
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5835
6089
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5900,6 +6154,9 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5900
6154
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5901
6155
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5902
6156
  }, "promptCache" | "promptCacheTtl">, "strip", z.ZodTypeAny, {
6157
+ greeting?: string | undefined;
6158
+ artifacts?: string | undefined;
6159
+ stop?: string[] | undefined;
5903
6160
  model?: string | null | undefined;
5904
6161
  modelLabel?: string | null | undefined;
5905
6162
  promptPrefix?: string | null | undefined;
@@ -5911,7 +6168,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5911
6168
  max_tokens?: number | undefined;
5912
6169
  promptCache?: boolean | undefined;
5913
6170
  promptCacheTtl?: "5m" | "1h" | undefined;
5914
- artifacts?: string | undefined;
5915
6171
  chatProjectId?: string | null | undefined;
5916
6172
  resendFiles?: boolean | undefined;
5917
6173
  imageDetail?: ImageDetail | undefined;
@@ -5923,13 +6179,14 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5923
6179
  useResponsesApi?: boolean | undefined;
5924
6180
  web_search?: boolean | undefined;
5925
6181
  disableStreaming?: boolean | undefined;
5926
- stop?: string[] | undefined;
5927
- greeting?: string | undefined;
5928
6182
  spec?: string | null | undefined;
5929
6183
  iconURL?: string | null | undefined;
5930
6184
  fileTokenLimit?: number | undefined;
5931
6185
  chatGptLabel?: string | null | undefined;
5932
6186
  }, {
6187
+ greeting?: string | undefined;
6188
+ artifacts?: string | undefined;
6189
+ stop?: string[] | undefined;
5933
6190
  model?: string | null | undefined;
5934
6191
  modelLabel?: string | null | undefined;
5935
6192
  promptPrefix?: string | null | undefined;
@@ -5941,7 +6198,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5941
6198
  max_tokens?: string | number | undefined;
5942
6199
  promptCache?: boolean | undefined;
5943
6200
  promptCacheTtl?: "5m" | "1h" | undefined;
5944
- artifacts?: string | undefined;
5945
6201
  chatProjectId?: string | null | undefined;
5946
6202
  resendFiles?: boolean | undefined;
5947
6203
  imageDetail?: ImageDetail | undefined;
@@ -5953,13 +6209,14 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5953
6209
  useResponsesApi?: boolean | undefined;
5954
6210
  web_search?: boolean | undefined;
5955
6211
  disableStreaming?: boolean | undefined;
5956
- stop?: string[] | undefined;
5957
- greeting?: string | undefined;
5958
6212
  spec?: string | null | undefined;
5959
6213
  iconURL?: string | null | undefined;
5960
6214
  fileTokenLimit?: string | number | undefined;
5961
6215
  chatGptLabel?: string | null | undefined;
5962
6216
  }>, Partial<Partial<TConversation>>, {
6217
+ greeting?: string | undefined;
6218
+ artifacts?: string | undefined;
6219
+ stop?: string[] | undefined;
5963
6220
  model?: string | null | undefined;
5964
6221
  modelLabel?: string | null | undefined;
5965
6222
  promptPrefix?: string | null | undefined;
@@ -5971,7 +6228,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5971
6228
  max_tokens?: string | number | undefined;
5972
6229
  promptCache?: boolean | undefined;
5973
6230
  promptCacheTtl?: "5m" | "1h" | undefined;
5974
- artifacts?: string | undefined;
5975
6231
  chatProjectId?: string | null | undefined;
5976
6232
  resendFiles?: boolean | undefined;
5977
6233
  imageDetail?: ImageDetail | undefined;
@@ -5983,8 +6239,6 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
5983
6239
  useResponsesApi?: boolean | undefined;
5984
6240
  web_search?: boolean | undefined;
5985
6241
  disableStreaming?: boolean | undefined;
5986
- stop?: string[] | undefined;
5987
- greeting?: string | undefined;
5988
6242
  spec?: string | null | undefined;
5989
6243
  iconURL?: string | null | undefined;
5990
6244
  fileTokenLimit?: string | number | undefined;
@@ -6000,6 +6254,18 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6000
6254
  pinned: z.ZodOptional<z.ZodBoolean>;
6001
6255
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6002
6256
  isShared: z.ZodOptional<z.ZodBoolean>;
6257
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6258
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6259
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6260
+ environmentId: z.ZodString;
6261
+ workspaceId: z.ZodString;
6262
+ }, "strict", z.ZodTypeAny, {
6263
+ environmentId: string;
6264
+ workspaceId: string;
6265
+ }, {
6266
+ environmentId: string;
6267
+ workspaceId: string;
6268
+ }>, "many">>;
6003
6269
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6004
6270
  user: z.ZodOptional<z.ZodString>;
6005
6271
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6017,14 +6283,14 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6017
6283
  sensitive: z.ZodOptional<z.ZodBoolean>;
6018
6284
  }, "strip", z.ZodTypeAny, {
6019
6285
  description: string;
6020
- authField: string;
6021
6286
  label: string;
6287
+ authField: string;
6022
6288
  optional?: boolean | undefined;
6023
6289
  sensitive?: boolean | undefined;
6024
6290
  }, {
6025
6291
  description: string;
6026
- authField: string;
6027
6292
  label: string;
6293
+ authField: string;
6028
6294
  optional?: boolean | undefined;
6029
6295
  sensitive?: boolean | undefined;
6030
6296
  }>, "many">>;
@@ -6042,8 +6308,8 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6042
6308
  icon?: string | undefined;
6043
6309
  authConfig?: {
6044
6310
  description: string;
6045
- authField: string;
6046
6311
  label: string;
6312
+ authField: string;
6047
6313
  optional?: boolean | undefined;
6048
6314
  sensitive?: boolean | undefined;
6049
6315
  }[] | undefined;
@@ -6059,8 +6325,8 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6059
6325
  icon?: string | undefined;
6060
6326
  authConfig?: {
6061
6327
  description: string;
6062
- authField: string;
6063
6328
  label: string;
6329
+ authField: string;
6064
6330
  optional?: boolean | undefined;
6065
6331
  sensitive?: boolean | undefined;
6066
6332
  }[] | undefined;
@@ -6109,19 +6375,19 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6109
6375
  content: string;
6110
6376
  }>;
6111
6377
  }, "strip", z.ZodTypeAny, {
6112
- input: {
6113
- content: string;
6114
- };
6115
6378
  output: {
6116
6379
  content: string;
6117
6380
  };
6118
- }, {
6119
6381
  input: {
6120
6382
  content: string;
6121
6383
  };
6384
+ }, {
6122
6385
  output: {
6123
6386
  content: string;
6124
6387
  };
6388
+ input: {
6389
+ content: string;
6390
+ };
6125
6391
  }>, "many">>;
6126
6392
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6127
6393
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6191,7 +6457,9 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6191
6457
  resendImages: z.ZodOptional<z.ZodBoolean>;
6192
6458
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6193
6459
  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, {
6460
+ }, "greeting" | "artifacts" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "examples" | "chatProjectId" | "resendFiles" | "web_search" | "url_context" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6461
+ greeting?: string | undefined;
6462
+ artifacts?: string | undefined;
6195
6463
  model?: string | null | undefined;
6196
6464
  modelLabel?: string | null | undefined;
6197
6465
  promptPrefix?: string | null | undefined;
@@ -6203,12 +6471,11 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6203
6471
  thinking?: boolean | undefined;
6204
6472
  thinkingBudget?: number | undefined;
6205
6473
  thinkingLevel?: ThinkingLevel | undefined;
6206
- artifacts?: string | undefined;
6207
6474
  examples?: {
6208
- input: {
6475
+ output: {
6209
6476
  content: string;
6210
6477
  };
6211
- output: {
6478
+ input: {
6212
6479
  content: string;
6213
6480
  };
6214
6481
  }[] | undefined;
@@ -6216,11 +6483,12 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6216
6483
  resendFiles?: boolean | undefined;
6217
6484
  web_search?: boolean | undefined;
6218
6485
  url_context?: boolean | undefined;
6219
- greeting?: string | undefined;
6220
6486
  spec?: string | null | undefined;
6221
6487
  iconURL?: string | null | undefined;
6222
6488
  fileTokenLimit?: number | undefined;
6223
6489
  }, {
6490
+ greeting?: string | undefined;
6491
+ artifacts?: string | undefined;
6224
6492
  model?: string | null | undefined;
6225
6493
  modelLabel?: string | null | undefined;
6226
6494
  promptPrefix?: string | null | undefined;
@@ -6232,12 +6500,11 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6232
6500
  thinking?: boolean | undefined;
6233
6501
  thinkingBudget?: string | number | undefined;
6234
6502
  thinkingLevel?: ThinkingLevel | undefined;
6235
- artifacts?: string | undefined;
6236
6503
  examples?: {
6237
- input: {
6504
+ output: {
6238
6505
  content: string;
6239
6506
  };
6240
- output: {
6507
+ input: {
6241
6508
  content: string;
6242
6509
  };
6243
6510
  }[] | undefined;
@@ -6245,11 +6512,12 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6245
6512
  resendFiles?: boolean | undefined;
6246
6513
  web_search?: boolean | undefined;
6247
6514
  url_context?: boolean | undefined;
6248
- greeting?: string | undefined;
6249
6515
  spec?: string | null | undefined;
6250
6516
  iconURL?: string | null | undefined;
6251
6517
  fileTokenLimit?: string | number | undefined;
6252
6518
  }>, Partial<Partial<TConversation>>, {
6519
+ greeting?: string | undefined;
6520
+ artifacts?: string | undefined;
6253
6521
  model?: string | null | undefined;
6254
6522
  modelLabel?: string | null | undefined;
6255
6523
  promptPrefix?: string | null | undefined;
@@ -6261,12 +6529,11 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6261
6529
  thinking?: boolean | undefined;
6262
6530
  thinkingBudget?: string | number | undefined;
6263
6531
  thinkingLevel?: ThinkingLevel | undefined;
6264
- artifacts?: string | undefined;
6265
6532
  examples?: {
6266
- input: {
6533
+ output: {
6267
6534
  content: string;
6268
6535
  };
6269
- output: {
6536
+ input: {
6270
6537
  content: string;
6271
6538
  };
6272
6539
  }[] | undefined;
@@ -6274,7 +6541,6 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6274
6541
  resendFiles?: boolean | undefined;
6275
6542
  web_search?: boolean | undefined;
6276
6543
  url_context?: boolean | undefined;
6277
- greeting?: string | undefined;
6278
6544
  spec?: string | null | undefined;
6279
6545
  iconURL?: string | null | undefined;
6280
6546
  fileTokenLimit?: string | number | undefined;
@@ -6289,6 +6555,18 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6289
6555
  pinned: z.ZodOptional<z.ZodBoolean>;
6290
6556
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6291
6557
  isShared: z.ZodOptional<z.ZodBoolean>;
6558
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6559
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6560
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6561
+ environmentId: z.ZodString;
6562
+ workspaceId: z.ZodString;
6563
+ }, "strict", z.ZodTypeAny, {
6564
+ environmentId: string;
6565
+ workspaceId: string;
6566
+ }, {
6567
+ environmentId: string;
6568
+ workspaceId: string;
6569
+ }>, "many">>;
6292
6570
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6293
6571
  user: z.ZodOptional<z.ZodString>;
6294
6572
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6306,14 +6584,14 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6306
6584
  sensitive: z.ZodOptional<z.ZodBoolean>;
6307
6585
  }, "strip", z.ZodTypeAny, {
6308
6586
  description: string;
6309
- authField: string;
6310
6587
  label: string;
6588
+ authField: string;
6311
6589
  optional?: boolean | undefined;
6312
6590
  sensitive?: boolean | undefined;
6313
6591
  }, {
6314
6592
  description: string;
6315
- authField: string;
6316
6593
  label: string;
6594
+ authField: string;
6317
6595
  optional?: boolean | undefined;
6318
6596
  sensitive?: boolean | undefined;
6319
6597
  }>, "many">>;
@@ -6331,8 +6609,8 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6331
6609
  icon?: string | undefined;
6332
6610
  authConfig?: {
6333
6611
  description: string;
6334
- authField: string;
6335
6612
  label: string;
6613
+ authField: string;
6336
6614
  optional?: boolean | undefined;
6337
6615
  sensitive?: boolean | undefined;
6338
6616
  }[] | undefined;
@@ -6348,8 +6626,8 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6348
6626
  icon?: string | undefined;
6349
6627
  authConfig?: {
6350
6628
  description: string;
6351
- authField: string;
6352
6629
  label: string;
6630
+ authField: string;
6353
6631
  optional?: boolean | undefined;
6354
6632
  sensitive?: boolean | undefined;
6355
6633
  }[] | undefined;
@@ -6398,19 +6676,19 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6398
6676
  content: string;
6399
6677
  }>;
6400
6678
  }, "strip", z.ZodTypeAny, {
6401
- input: {
6402
- content: string;
6403
- };
6404
6679
  output: {
6405
6680
  content: string;
6406
6681
  };
6407
- }, {
6408
6682
  input: {
6409
6683
  content: string;
6410
6684
  };
6685
+ }, {
6411
6686
  output: {
6412
6687
  content: string;
6413
6688
  };
6689
+ input: {
6690
+ content: string;
6691
+ };
6414
6692
  }>, "many">>;
6415
6693
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6416
6694
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6480,7 +6758,10 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6480
6758
  resendImages: z.ZodOptional<z.ZodBoolean>;
6481
6759
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6482
6760
  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, {
6761
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "web_search" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
6762
+ greeting?: string | undefined;
6763
+ artifacts?: string | undefined;
6764
+ stop?: string[] | undefined;
6484
6765
  model?: string | null | undefined;
6485
6766
  modelLabel?: string | null | undefined;
6486
6767
  promptPrefix?: string | null | undefined;
@@ -6494,18 +6775,18 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6494
6775
  thinking?: boolean | undefined;
6495
6776
  thinkingBudget?: number | undefined;
6496
6777
  stream?: boolean | undefined;
6497
- artifacts?: string | undefined;
6498
6778
  chatProjectId?: string | null | undefined;
6499
6779
  resendFiles?: boolean | undefined;
6500
6780
  effort?: AnthropicEffort | null | undefined;
6501
6781
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6502
6782
  web_search?: boolean | undefined;
6503
- stop?: string[] | undefined;
6504
- greeting?: string | undefined;
6505
6783
  spec?: string | null | undefined;
6506
6784
  iconURL?: string | null | undefined;
6507
6785
  fileTokenLimit?: number | undefined;
6508
6786
  }, {
6787
+ greeting?: string | undefined;
6788
+ artifacts?: string | undefined;
6789
+ stop?: string[] | undefined;
6509
6790
  model?: string | null | undefined;
6510
6791
  modelLabel?: string | null | undefined;
6511
6792
  promptPrefix?: string | null | undefined;
@@ -6519,14 +6800,11 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
6519
6800
  thinking?: boolean | undefined;
6520
6801
  thinkingBudget?: string | number | undefined;
6521
6802
  stream?: boolean | undefined;
6522
- artifacts?: string | undefined;
6523
6803
  chatProjectId?: string | null | undefined;
6524
6804
  resendFiles?: boolean | undefined;
6525
6805
  effort?: AnthropicEffort | null | undefined;
6526
6806
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6527
6807
  web_search?: boolean | undefined;
6528
- stop?: string[] | undefined;
6529
- greeting?: string | undefined;
6530
6808
  spec?: string | null | undefined;
6531
6809
  iconURL?: string | null | undefined;
6532
6810
  fileTokenLimit?: string | number | undefined;
@@ -6541,6 +6819,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6541
6819
  pinned: z.ZodOptional<z.ZodBoolean>;
6542
6820
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6543
6821
  isShared: z.ZodOptional<z.ZodBoolean>;
6822
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
6823
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
6824
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
6825
+ environmentId: z.ZodString;
6826
+ workspaceId: z.ZodString;
6827
+ }, "strict", z.ZodTypeAny, {
6828
+ environmentId: string;
6829
+ workspaceId: string;
6830
+ }, {
6831
+ environmentId: string;
6832
+ workspaceId: string;
6833
+ }>, "many">>;
6544
6834
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6545
6835
  user: z.ZodOptional<z.ZodString>;
6546
6836
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6558,14 +6848,14 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6558
6848
  sensitive: z.ZodOptional<z.ZodBoolean>;
6559
6849
  }, "strip", z.ZodTypeAny, {
6560
6850
  description: string;
6561
- authField: string;
6562
6851
  label: string;
6852
+ authField: string;
6563
6853
  optional?: boolean | undefined;
6564
6854
  sensitive?: boolean | undefined;
6565
6855
  }, {
6566
6856
  description: string;
6567
- authField: string;
6568
6857
  label: string;
6858
+ authField: string;
6569
6859
  optional?: boolean | undefined;
6570
6860
  sensitive?: boolean | undefined;
6571
6861
  }>, "many">>;
@@ -6583,8 +6873,8 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6583
6873
  icon?: string | undefined;
6584
6874
  authConfig?: {
6585
6875
  description: string;
6586
- authField: string;
6587
6876
  label: string;
6877
+ authField: string;
6588
6878
  optional?: boolean | undefined;
6589
6879
  sensitive?: boolean | undefined;
6590
6880
  }[] | undefined;
@@ -6600,8 +6890,8 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6600
6890
  icon?: string | undefined;
6601
6891
  authConfig?: {
6602
6892
  description: string;
6603
- authField: string;
6604
6893
  label: string;
6894
+ authField: string;
6605
6895
  optional?: boolean | undefined;
6606
6896
  sensitive?: boolean | undefined;
6607
6897
  }[] | undefined;
@@ -6650,19 +6940,19 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6650
6940
  content: string;
6651
6941
  }>;
6652
6942
  }, "strip", z.ZodTypeAny, {
6653
- input: {
6654
- content: string;
6655
- };
6656
6943
  output: {
6657
6944
  content: string;
6658
6945
  };
6659
- }, {
6660
6946
  input: {
6661
6947
  content: string;
6662
6948
  };
6949
+ }, {
6663
6950
  output: {
6664
6951
  content: string;
6665
6952
  };
6953
+ input: {
6954
+ content: string;
6955
+ };
6666
6956
  }>, "many">>;
6667
6957
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6668
6958
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6732,7 +7022,10 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6732
7022
  resendImages: z.ZodOptional<z.ZodBoolean>;
6733
7023
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
6734
7024
  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, {
7025
+ }, "greeting" | "artifacts" | "stop" | "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "promptCacheTtl" | "thinking" | "thinkingBudget" | "stream" | "chatProjectId" | "resendFiles" | "effort" | "thinkingDisplay" | "web_search" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
7026
+ greeting?: string | undefined;
7027
+ artifacts?: string | undefined;
7028
+ stop?: string[] | undefined;
6736
7029
  model?: string | null | undefined;
6737
7030
  modelLabel?: string | null | undefined;
6738
7031
  promptPrefix?: string | null | undefined;
@@ -6746,18 +7039,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6746
7039
  thinking?: boolean | undefined;
6747
7040
  thinkingBudget?: number | undefined;
6748
7041
  stream?: boolean | undefined;
6749
- artifacts?: string | undefined;
6750
7042
  chatProjectId?: string | null | undefined;
6751
7043
  resendFiles?: boolean | undefined;
6752
7044
  effort?: AnthropicEffort | null | undefined;
6753
7045
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6754
7046
  web_search?: boolean | undefined;
6755
- stop?: string[] | undefined;
6756
- greeting?: string | undefined;
6757
7047
  spec?: string | null | undefined;
6758
7048
  iconURL?: string | null | undefined;
6759
7049
  fileTokenLimit?: number | undefined;
6760
7050
  }, {
7051
+ greeting?: string | undefined;
7052
+ artifacts?: string | undefined;
7053
+ stop?: string[] | undefined;
6761
7054
  model?: string | null | undefined;
6762
7055
  modelLabel?: string | null | undefined;
6763
7056
  promptPrefix?: string | null | undefined;
@@ -6771,18 +7064,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6771
7064
  thinking?: boolean | undefined;
6772
7065
  thinkingBudget?: string | number | undefined;
6773
7066
  stream?: boolean | undefined;
6774
- artifacts?: string | undefined;
6775
7067
  chatProjectId?: string | null | undefined;
6776
7068
  resendFiles?: boolean | undefined;
6777
7069
  effort?: AnthropicEffort | null | undefined;
6778
7070
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6779
7071
  web_search?: boolean | undefined;
6780
- stop?: string[] | undefined;
6781
- greeting?: string | undefined;
6782
7072
  spec?: string | null | undefined;
6783
7073
  iconURL?: string | null | undefined;
6784
7074
  fileTokenLimit?: string | number | undefined;
6785
7075
  }>, Partial<{
7076
+ greeting?: string | undefined;
7077
+ artifacts?: string | undefined;
7078
+ stop?: string[] | undefined;
6786
7079
  model?: string | null | undefined;
6787
7080
  modelLabel?: string | null | undefined;
6788
7081
  promptPrefix?: string | null | undefined;
@@ -6796,18 +7089,18 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6796
7089
  thinking?: boolean | undefined;
6797
7090
  thinkingBudget?: number | undefined;
6798
7091
  stream?: boolean | undefined;
6799
- artifacts?: string | undefined;
6800
7092
  chatProjectId?: string | null | undefined;
6801
7093
  resendFiles?: boolean | undefined;
6802
7094
  effort?: AnthropicEffort | null | undefined;
6803
7095
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6804
7096
  web_search?: boolean | undefined;
6805
- stop?: string[] | undefined;
6806
- greeting?: string | undefined;
6807
7097
  spec?: string | null | undefined;
6808
7098
  iconURL?: string | null | undefined;
6809
7099
  fileTokenLimit?: number | undefined;
6810
7100
  }>, {
7101
+ greeting?: string | undefined;
7102
+ artifacts?: string | undefined;
7103
+ stop?: string[] | undefined;
6811
7104
  model?: string | null | undefined;
6812
7105
  modelLabel?: string | null | undefined;
6813
7106
  promptPrefix?: string | null | undefined;
@@ -6821,14 +7114,11 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
6821
7114
  thinking?: boolean | undefined;
6822
7115
  thinkingBudget?: string | number | undefined;
6823
7116
  stream?: boolean | undefined;
6824
- artifacts?: string | undefined;
6825
7117
  chatProjectId?: string | null | undefined;
6826
7118
  resendFiles?: boolean | undefined;
6827
7119
  effort?: AnthropicEffort | null | undefined;
6828
7120
  thinkingDisplay?: ThinkingDisplay | null | undefined;
6829
7121
  web_search?: boolean | undefined;
6830
- stop?: string[] | undefined;
6831
- greeting?: string | undefined;
6832
7122
  spec?: string | null | undefined;
6833
7123
  iconURL?: string | null | undefined;
6834
7124
  fileTokenLimit?: string | number | undefined;
@@ -6872,6 +7162,18 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6872
7162
  pinned: z.ZodOptional<z.ZodBoolean>;
6873
7163
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
6874
7164
  isShared: z.ZodOptional<z.ZodBoolean>;
7165
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
7166
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
7167
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
7168
+ environmentId: z.ZodString;
7169
+ workspaceId: z.ZodString;
7170
+ }, "strict", z.ZodTypeAny, {
7171
+ environmentId: string;
7172
+ workspaceId: string;
7173
+ }, {
7174
+ environmentId: string;
7175
+ workspaceId: string;
7176
+ }>, "many">>;
6875
7177
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
6876
7178
  user: z.ZodOptional<z.ZodString>;
6877
7179
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -6889,14 +7191,14 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6889
7191
  sensitive: z.ZodOptional<z.ZodBoolean>;
6890
7192
  }, "strip", z.ZodTypeAny, {
6891
7193
  description: string;
6892
- authField: string;
6893
7194
  label: string;
7195
+ authField: string;
6894
7196
  optional?: boolean | undefined;
6895
7197
  sensitive?: boolean | undefined;
6896
7198
  }, {
6897
7199
  description: string;
6898
- authField: string;
6899
7200
  label: string;
7201
+ authField: string;
6900
7202
  optional?: boolean | undefined;
6901
7203
  sensitive?: boolean | undefined;
6902
7204
  }>, "many">>;
@@ -6914,8 +7216,8 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6914
7216
  icon?: string | undefined;
6915
7217
  authConfig?: {
6916
7218
  description: string;
6917
- authField: string;
6918
7219
  label: string;
7220
+ authField: string;
6919
7221
  optional?: boolean | undefined;
6920
7222
  sensitive?: boolean | undefined;
6921
7223
  }[] | undefined;
@@ -6931,8 +7233,8 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6931
7233
  icon?: string | undefined;
6932
7234
  authConfig?: {
6933
7235
  description: string;
6934
- authField: string;
6935
7236
  label: string;
7237
+ authField: string;
6936
7238
  optional?: boolean | undefined;
6937
7239
  sensitive?: boolean | undefined;
6938
7240
  }[] | undefined;
@@ -6981,19 +7283,19 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
6981
7283
  content: string;
6982
7284
  }>;
6983
7285
  }, "strip", z.ZodTypeAny, {
6984
- input: {
6985
- content: string;
6986
- };
6987
7286
  output: {
6988
7287
  content: string;
6989
7288
  };
6990
- }, {
6991
7289
  input: {
6992
7290
  content: string;
6993
7291
  };
7292
+ }, {
6994
7293
  output: {
6995
7294
  content: string;
6996
7295
  };
7296
+ input: {
7297
+ content: string;
7298
+ };
6997
7299
  }>, "many">>;
6998
7300
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6999
7301
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7063,20 +7365,20 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
7063
7365
  resendImages: z.ZodOptional<z.ZodBoolean>;
7064
7366
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
7065
7367
  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;
7368
+ }, "instructions" | "additional_instructions" | "greeting" | "chatProjectId" | "agent_id" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7069
7369
  instructions?: string | undefined;
7070
7370
  additional_instructions?: string | undefined;
7071
7371
  greeting?: string | undefined;
7372
+ chatProjectId?: string | null | undefined;
7373
+ agent_id?: string | undefined;
7072
7374
  spec?: string | null | undefined;
7073
7375
  iconURL?: string | null | undefined;
7074
7376
  }, {
7075
- chatProjectId?: string | null | undefined;
7076
- agent_id?: string | undefined;
7077
7377
  instructions?: string | undefined;
7078
7378
  additional_instructions?: string | undefined;
7079
7379
  greeting?: string | undefined;
7380
+ chatProjectId?: string | null | undefined;
7381
+ agent_id?: string | undefined;
7080
7382
  spec?: string | null | undefined;
7081
7383
  iconURL?: string | null | undefined;
7082
7384
  }>;
@@ -7090,6 +7392,18 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7090
7392
  pinned: z.ZodOptional<z.ZodBoolean>;
7091
7393
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
7092
7394
  isShared: z.ZodOptional<z.ZodBoolean>;
7395
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
7396
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
7397
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
7398
+ environmentId: z.ZodString;
7399
+ workspaceId: z.ZodString;
7400
+ }, "strict", z.ZodTypeAny, {
7401
+ environmentId: string;
7402
+ workspaceId: string;
7403
+ }, {
7404
+ environmentId: string;
7405
+ workspaceId: string;
7406
+ }>, "many">>;
7093
7407
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
7094
7408
  user: z.ZodOptional<z.ZodString>;
7095
7409
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -7107,14 +7421,14 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7107
7421
  sensitive: z.ZodOptional<z.ZodBoolean>;
7108
7422
  }, "strip", z.ZodTypeAny, {
7109
7423
  description: string;
7110
- authField: string;
7111
7424
  label: string;
7425
+ authField: string;
7112
7426
  optional?: boolean | undefined;
7113
7427
  sensitive?: boolean | undefined;
7114
7428
  }, {
7115
7429
  description: string;
7116
- authField: string;
7117
7430
  label: string;
7431
+ authField: string;
7118
7432
  optional?: boolean | undefined;
7119
7433
  sensitive?: boolean | undefined;
7120
7434
  }>, "many">>;
@@ -7132,8 +7446,8 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7132
7446
  icon?: string | undefined;
7133
7447
  authConfig?: {
7134
7448
  description: string;
7135
- authField: string;
7136
7449
  label: string;
7450
+ authField: string;
7137
7451
  optional?: boolean | undefined;
7138
7452
  sensitive?: boolean | undefined;
7139
7453
  }[] | undefined;
@@ -7149,8 +7463,8 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7149
7463
  icon?: string | undefined;
7150
7464
  authConfig?: {
7151
7465
  description: string;
7152
- authField: string;
7153
7466
  label: string;
7467
+ authField: string;
7154
7468
  optional?: boolean | undefined;
7155
7469
  sensitive?: boolean | undefined;
7156
7470
  }[] | undefined;
@@ -7199,19 +7513,19 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7199
7513
  content: string;
7200
7514
  }>;
7201
7515
  }, "strip", z.ZodTypeAny, {
7202
- input: {
7203
- content: string;
7204
- };
7205
7516
  output: {
7206
7517
  content: string;
7207
7518
  };
7208
- }, {
7209
7519
  input: {
7210
7520
  content: string;
7211
7521
  };
7522
+ }, {
7212
7523
  output: {
7213
7524
  content: string;
7214
7525
  };
7526
+ input: {
7527
+ content: string;
7528
+ };
7215
7529
  }>, "many">>;
7216
7530
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7217
7531
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7281,36 +7595,36 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
7281
7595
  resendImages: z.ZodOptional<z.ZodBoolean>;
7282
7596
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
7283
7597
  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;
7598
+ }, "instructions" | "additional_instructions" | "greeting" | "chatProjectId" | "agent_id" | "spec" | "iconURL">, "strip", z.ZodTypeAny, {
7287
7599
  instructions?: string | undefined;
7288
7600
  additional_instructions?: string | undefined;
7289
7601
  greeting?: string | undefined;
7602
+ chatProjectId?: string | null | undefined;
7603
+ agent_id?: string | undefined;
7290
7604
  spec?: string | null | undefined;
7291
7605
  iconURL?: string | null | undefined;
7292
7606
  }, {
7293
- chatProjectId?: string | null | undefined;
7294
- agent_id?: string | undefined;
7295
7607
  instructions?: string | undefined;
7296
7608
  additional_instructions?: string | undefined;
7297
7609
  greeting?: string | undefined;
7610
+ chatProjectId?: string | null | undefined;
7611
+ agent_id?: string | undefined;
7298
7612
  spec?: string | null | undefined;
7299
7613
  iconURL?: string | null | undefined;
7300
7614
  }>, Partial<{
7301
- chatProjectId?: string | null | undefined;
7302
- agent_id?: string | undefined;
7303
7615
  instructions?: string | undefined;
7304
7616
  additional_instructions?: string | undefined;
7305
7617
  greeting?: string | undefined;
7618
+ chatProjectId?: string | null | undefined;
7619
+ agent_id?: string | undefined;
7306
7620
  spec?: string | null | undefined;
7307
7621
  iconURL?: string | null | undefined;
7308
7622
  }>, {
7309
- chatProjectId?: string | null | undefined;
7310
- agent_id?: string | undefined;
7311
7623
  instructions?: string | undefined;
7312
7624
  additional_instructions?: string | undefined;
7313
7625
  greeting?: string | undefined;
7626
+ chatProjectId?: string | null | undefined;
7627
+ agent_id?: string | undefined;
7314
7628
  spec?: string | null | undefined;
7315
7629
  iconURL?: string | null | undefined;
7316
7630
  }>>;