librechat-data-provider 0.8.521 → 0.8.522

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-pwrlWjJs.mjs → data-service-CaB7saTP.mjs} +1145 -37
  2. package/dist/data-service-CaB7saTP.mjs.map +1 -0
  3. package/dist/{data-service-DOIF4BkW.js → data-service-D5kHzBt-.js} +1588 -36
  4. package/dist/data-service-D5kHzBt-.js.map +1 -0
  5. package/dist/index.js +947 -36
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +825 -37
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +2 -1
  10. package/dist/react-query/index.js.map +1 -1
  11. package/dist/react-query/index.mjs +2 -1
  12. package/dist/react-query/index.mjs.map +1 -1
  13. package/dist/types/accessPermissions.d.ts +4 -0
  14. package/dist/types/actions.d.ts +2 -2
  15. package/dist/types/agentToolOptions.d.ts +11 -0
  16. package/dist/types/api-endpoints.d.ts +18 -0
  17. package/dist/types/bedrock.d.ts +168 -0
  18. package/dist/types/cadence.d.ts +33 -0
  19. package/dist/types/codeEnvRef.d.ts +21 -0
  20. package/dist/types/config.d.ts +9060 -1135
  21. package/dist/types/data-service.d.ts +40 -2
  22. package/dist/types/file-config.d.ts +1 -0
  23. package/dist/types/filters.d.ts +1422 -0
  24. package/dist/types/generate.d.ts +79 -1
  25. package/dist/types/index.d.ts +10 -0
  26. package/dist/types/keys.d.ts +23 -2
  27. package/dist/types/langchain.d.ts +4 -0
  28. package/dist/types/limits.d.ts +13 -0
  29. package/dist/types/mcp.d.ts +299 -210
  30. package/dist/types/messages.d.ts +5 -0
  31. package/dist/types/models.d.ts +732 -68
  32. package/dist/types/parameterSettings.d.ts +5 -1
  33. package/dist/types/parsers.d.ts +10 -0
  34. package/dist/types/permissions.d.ts +42 -1
  35. package/dist/types/providers.d.ts +36 -0
  36. package/dist/types/request.d.ts +2 -2
  37. package/dist/types/roles.d.ts +34 -0
  38. package/dist/types/runSteps.d.ts +59 -0
  39. package/dist/types/schemas.d.ts +1191 -26
  40. package/dist/types/stateful-code.d.ts +7 -0
  41. package/dist/types/types/agents.d.ts +92 -7
  42. package/dist/types/types/assistants.d.ts +96 -5
  43. package/dist/types/types/files.d.ts +12 -2
  44. package/dist/types/types/index.d.ts +2 -0
  45. package/dist/types/types/insights.d.ts +62 -0
  46. package/dist/types/types/mutations.d.ts +1 -0
  47. package/dist/types/types/queries.d.ts +30 -2
  48. package/dist/types/types/queuedTurns.d.ts +870 -0
  49. package/dist/types/types/runs.d.ts +95 -4
  50. package/dist/types/types/schedules.d.ts +306 -0
  51. package/dist/types/types/skills.d.ts +9 -0
  52. package/dist/types/types/subagents.d.ts +159 -0
  53. package/dist/types/types/web.d.ts +12 -2
  54. package/dist/types/types.d.ts +61 -1
  55. package/package.json +4 -2
  56. package/dist/data-service-DOIF4BkW.js.map +0 -1
  57. package/dist/data-service-pwrlWjJs.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { TMessageContentParts, FunctionTool, FunctionToolCall } from './types/assistants';
2
+ import type { TMessageContentParts, AgentSubagentGraph, FunctionTool } from './types/assistants';
3
3
  import type { SearchResultData } from './types/web';
4
4
  import type { TFile } from './types/files';
5
5
  import { TFeedback } from './feedback';
@@ -220,6 +220,8 @@ export declare const defaultAgentFormValues: {
220
220
  file_search: boolean;
221
221
  web_search: boolean;
222
222
  memory: boolean;
223
+ stateful_code_environment: "user";
224
+ code_environment_id: string | null | undefined;
223
225
  category: string;
224
226
  support_contact: {
225
227
  name: string;
@@ -231,17 +233,29 @@ export declare const defaultAgentFormValues: {
231
233
  /** Master toggle for skill use on this agent. `true` activates skills
232
234
  * (full catalog unless `skills` narrows it). Anything else = inactive. */
233
235
  skills_enabled: boolean | undefined;
236
+ /** Enables runtime skill creation without exposing an existing skill catalog. */
237
+ skill_authoring_enabled: boolean | undefined;
238
+ /** Explicit catalog scope. Missing preserves the legacy enabled + empty = all behavior. */
239
+ skills_scope: SkillsScope | undefined;
234
240
  /** `undefined` = feature disabled by default (no subagent tool injected). */
235
241
  subagents: {
236
242
  enabled?: boolean;
237
243
  allowSelf?: boolean;
238
244
  agent_ids?: string[];
245
+ graphs?: AgentSubagentGraph[];
239
246
  } | undefined;
240
247
  /** Memory partition: 'agent' isolates memories per (user, agent); default shared pool */
241
248
  memory_scope: MemoryScope | undefined;
242
249
  };
243
250
  export declare const ImageVisionTool: FunctionTool;
244
- export declare const isImageVisionTool: (tool: FunctionTool | FunctionToolCall) => boolean;
251
+ /** Structural on purpose: accepts assistants tools/tool calls and agents function tool
252
+ * calls alike — the check only ever reads `type` and `function.name`. */
253
+ export declare const isImageVisionTool: (tool: {
254
+ type?: string;
255
+ function?: {
256
+ name?: string;
257
+ };
258
+ }) => boolean;
245
259
  export declare const openAISettings: {
246
260
  model: {
247
261
  default: "gpt-4o-mini";
@@ -286,10 +300,21 @@ export declare const openAISettings: {
286
300
  step: 1;
287
301
  };
288
302
  };
303
+ export type GoogleThinkingBudgetBounds = {
304
+ min: number;
305
+ max: number;
306
+ };
307
+ export declare const getGoogleThinkingBudgetBounds: (modelName: string) => GoogleThinkingBudgetBounds | undefined;
308
+ export declare const getGoogleThinkingBudgetMax: (modelName: string) => number | undefined;
289
309
  export declare const googleSettings: {
290
310
  model: {
291
311
  default: "gemini-1.5-flash-latest";
292
312
  };
313
+ maxContextTokens: {
314
+ min: 10;
315
+ max: 2000000;
316
+ step: 1000;
317
+ };
293
318
  maxOutputTokens: {
294
319
  min: 1;
295
320
  max: 65535;
@@ -508,6 +533,11 @@ export declare const endpointSettings: {
508
533
  model: {
509
534
  default: "gemini-1.5-flash-latest";
510
535
  };
536
+ maxContextTokens: {
537
+ min: 10;
538
+ max: 2000000;
539
+ step: 1000;
540
+ };
511
541
  maxOutputTokens: {
512
542
  min: 1;
513
543
  max: 65535;
@@ -756,6 +786,9 @@ export declare const tPluginSchema: z.ZodObject<{
756
786
  chatMenu: z.ZodOptional<z.ZodBoolean>;
757
787
  isButton: z.ZodOptional<z.ZodBoolean>;
758
788
  toolkit: z.ZodOptional<z.ZodBoolean>;
789
+ /** Raw upstream tool name when the model-facing key stripped a redundant
790
+ * server-name prefix — proves upstream identity for legacy id migration. */
791
+ serverToolName: z.ZodOptional<z.ZodString>;
759
792
  }, "strip", z.ZodTypeAny, {
760
793
  name: string;
761
794
  pluginKey: string;
@@ -772,6 +805,7 @@ export declare const tPluginSchema: z.ZodObject<{
772
805
  chatMenu?: boolean | undefined;
773
806
  isButton?: boolean | undefined;
774
807
  toolkit?: boolean | undefined;
808
+ serverToolName?: string | undefined;
775
809
  }, {
776
810
  name: string;
777
811
  pluginKey: string;
@@ -788,6 +822,7 @@ export declare const tPluginSchema: z.ZodObject<{
788
822
  chatMenu?: boolean | undefined;
789
823
  isButton?: boolean | undefined;
790
824
  toolkit?: boolean | undefined;
825
+ serverToolName?: string | undefined;
791
826
  }>;
792
827
  export type TPlugin = z.infer<typeof tPluginSchema>;
793
828
  export type TInput = {
@@ -840,6 +875,21 @@ export declare const tMessageSchema: z.ZodObject<{
840
875
  /** @deprecated */
841
876
  generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
877
  isCreatedByUser: z.ZodBoolean;
878
+ /** True when the complete stored row came from outside the model. */
879
+ isUserSubmitted: z.ZodOptional<z.ZodBoolean>;
880
+ /** JSON pointers to caller-authored fields in an otherwise mixed model response. */
881
+ userSubmittedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
882
+ /** Exact HITL message-field identity for caller-authored values stored in mixed responses. */
883
+ userSubmittedMessageFieldPaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
884
+ path: z.ZodString;
885
+ field: z.ZodEnum<["answer", "decision_response", "decision_reason"]>;
886
+ }, "strict", z.ZodTypeAny, {
887
+ path: string;
888
+ field: "answer" | "decision_response" | "decision_reason";
889
+ }, {
890
+ path: string;
891
+ field: "answer" | "decision_response" | "decision_reason";
892
+ }>, "many">>;
843
893
  isTemporary: z.ZodOptional<z.ZodBoolean>;
844
894
  expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
895
  error: z.ZodOptional<z.ZodBoolean>;
@@ -880,12 +930,64 @@ export declare const tMessageSchema: z.ZodObject<{
880
930
  contextMeta: z.ZodOptional<z.ZodObject<{
881
931
  calibrationRatio: z.ZodOptional<z.ZodNumber>;
882
932
  encoding: z.ZodOptional<z.ZodString>;
933
+ fading: z.ZodOptional<z.ZodObject<{
934
+ v: z.ZodLiteral<1>;
935
+ budgetTokens: z.ZodNumber;
936
+ masked: z.ZodBoolean;
937
+ }, "strip", z.ZodTypeAny, {
938
+ v: 1;
939
+ budgetTokens: number;
940
+ masked: boolean;
941
+ }, {
942
+ v: 1;
943
+ budgetTokens: number;
944
+ masked: boolean;
945
+ }>>;
946
+ fadingTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
947
+ v: z.ZodLiteral<1>;
948
+ budgetTokens: z.ZodNumber;
949
+ masked: z.ZodBoolean;
950
+ } & {
951
+ agentId: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ v: 1;
954
+ budgetTokens: number;
955
+ masked: boolean;
956
+ agentId: string;
957
+ }, {
958
+ v: 1;
959
+ budgetTokens: number;
960
+ masked: boolean;
961
+ agentId: string;
962
+ }>, "many">>;
883
963
  }, "strip", z.ZodTypeAny, {
884
964
  calibrationRatio?: number | undefined;
885
965
  encoding?: string | undefined;
966
+ fading?: {
967
+ v: 1;
968
+ budgetTokens: number;
969
+ masked: boolean;
970
+ } | undefined;
971
+ fadingTiers?: {
972
+ v: 1;
973
+ budgetTokens: number;
974
+ masked: boolean;
975
+ agentId: string;
976
+ }[] | undefined;
886
977
  }, {
887
978
  calibrationRatio?: number | undefined;
888
979
  encoding?: string | undefined;
980
+ fading?: {
981
+ v: 1;
982
+ budgetTokens: number;
983
+ masked: boolean;
984
+ } | undefined;
985
+ fadingTiers?: {
986
+ v: 1;
987
+ budgetTokens: number;
988
+ masked: boolean;
989
+ agentId: string;
990
+ }[] | undefined;
889
991
  }>>;
890
992
  /**
891
993
  * Skill names the user invoked manually via the `$` popover on this turn.
@@ -932,6 +1034,12 @@ export declare const tMessageSchema: z.ZodObject<{
932
1034
  bg?: string | null | undefined;
933
1035
  sender?: string | undefined;
934
1036
  generation?: string | null | undefined;
1037
+ isUserSubmitted?: boolean | undefined;
1038
+ userSubmittedPaths?: string[] | undefined;
1039
+ userSubmittedMessageFieldPaths?: {
1040
+ path: string;
1041
+ field: "answer" | "decision_response" | "decision_reason";
1042
+ }[] | undefined;
935
1043
  error?: boolean | undefined;
936
1044
  clientTimestamp?: string | undefined;
937
1045
  current?: boolean | undefined;
@@ -949,6 +1057,17 @@ export declare const tMessageSchema: z.ZodObject<{
949
1057
  contextMeta?: {
950
1058
  calibrationRatio?: number | undefined;
951
1059
  encoding?: string | undefined;
1060
+ fading?: {
1061
+ v: 1;
1062
+ budgetTokens: number;
1063
+ masked: boolean;
1064
+ } | undefined;
1065
+ fadingTiers?: {
1066
+ v: 1;
1067
+ budgetTokens: number;
1068
+ masked: boolean;
1069
+ agentId: string;
1070
+ }[] | undefined;
952
1071
  } | undefined;
953
1072
  manualSkills?: string[] | undefined;
954
1073
  alwaysAppliedSkills?: string[] | undefined;
@@ -973,6 +1092,12 @@ export declare const tMessageSchema: z.ZodObject<{
973
1092
  bg?: string | null | undefined;
974
1093
  sender?: string | undefined;
975
1094
  generation?: string | null | undefined;
1095
+ isUserSubmitted?: boolean | undefined;
1096
+ userSubmittedPaths?: string[] | undefined;
1097
+ userSubmittedMessageFieldPaths?: {
1098
+ path: string;
1099
+ field: "answer" | "decision_response" | "decision_reason";
1100
+ }[] | undefined;
976
1101
  error?: boolean | undefined;
977
1102
  clientTimestamp?: string | undefined;
978
1103
  current?: boolean | undefined;
@@ -990,6 +1115,17 @@ export declare const tMessageSchema: z.ZodObject<{
990
1115
  contextMeta?: {
991
1116
  calibrationRatio?: number | undefined;
992
1117
  encoding?: string | undefined;
1118
+ fading?: {
1119
+ v: 1;
1120
+ budgetTokens: number;
1121
+ masked: boolean;
1122
+ } | undefined;
1123
+ fadingTiers?: {
1124
+ v: 1;
1125
+ budgetTokens: number;
1126
+ masked: boolean;
1127
+ agentId: string;
1128
+ }[] | undefined;
993
1129
  } | undefined;
994
1130
  manualSkills?: string[] | undefined;
995
1131
  alwaysAppliedSkills?: string[] | undefined;
@@ -1004,6 +1140,14 @@ export declare enum MemoryScope {
1004
1140
  user = "user",
1005
1141
  agent = "agent"
1006
1142
  }
1143
+ /** Catalog exposure for a persisted agent with skills enabled. */
1144
+ export declare enum SkillsScope {
1145
+ all = "all",
1146
+ selected = "selected",
1147
+ none = "none"
1148
+ }
1149
+ /** Resolves explicit and legacy persisted-agent skill catalog states. */
1150
+ export declare function resolveAgentSkillsScope(skills: readonly string[] | undefined, enabled: boolean | undefined, scope: SkillsScope | undefined): SkillsScope;
1007
1151
  export type MemoryArtifact = {
1008
1152
  key: string;
1009
1153
  value?: string;
@@ -1019,10 +1163,20 @@ export type UIResource = {
1019
1163
  text?: string;
1020
1164
  [key: string]: unknown;
1021
1165
  };
1166
+ export type WorkspaceChange = {
1167
+ profile: 'stateful';
1168
+ operation: 'created' | 'updated';
1169
+ path: string;
1170
+ };
1022
1171
  export type TAttachmentMetadata = {
1023
1172
  type?: Tools;
1024
1173
  messageId: string;
1025
1174
  toolCallId: string;
1175
+ /** Saved-agent owner when provider tool-call ids repeat across handoffs. */
1176
+ agentId?: string;
1177
+ /** Host run-step owner when one agent repeats a provider tool-call id. */
1178
+ stepId?: string;
1179
+ workspaceChange?: WorkspaceChange;
1026
1180
  [Tools.memory]?: MemoryArtifact;
1027
1181
  [Tools.ui_resources]?: UIResource[];
1028
1182
  [Tools.web_search]?: SearchResultData;
@@ -1045,11 +1199,42 @@ export declare const coerceNumber: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodSt
1045
1199
  type DocumentTypeValue = null | boolean | number | string | DocumentTypeValue[] | {
1046
1200
  [key: string]: DocumentTypeValue;
1047
1201
  };
1202
+ export declare const subagentThreadLineageSchema: z.ZodObject<{
1203
+ rootConversationId: z.ZodString;
1204
+ parentConversationId: z.ZodString;
1205
+ parentMessageId: z.ZodString;
1206
+ parentToolCallId: z.ZodString;
1207
+ parentAgentId: z.ZodOptional<z.ZodString>;
1208
+ subagentType: z.ZodString;
1209
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
1210
+ depth: z.ZodNumber;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ parentMessageId: string;
1213
+ rootConversationId: string;
1214
+ parentConversationId: string;
1215
+ parentToolCallId: string;
1216
+ subagentType: string;
1217
+ subagentKind: "agent" | "graph";
1218
+ depth: number;
1219
+ parentAgentId?: string | undefined;
1220
+ }, {
1221
+ parentMessageId: string;
1222
+ rootConversationId: string;
1223
+ parentConversationId: string;
1224
+ parentToolCallId: string;
1225
+ subagentType: string;
1226
+ subagentKind: "agent" | "graph";
1227
+ depth: number;
1228
+ parentAgentId?: string | undefined;
1229
+ }>;
1230
+ export type TSubagentThreadLineage = z.infer<typeof subagentThreadLineageSchema>;
1048
1231
  export declare const tConversationSchema: z.ZodObject<{
1049
1232
  conversationId: z.ZodNullable<z.ZodString>;
1050
1233
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1051
1234
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1052
1235
  isArchived: z.ZodOptional<z.ZodBoolean>;
1236
+ /** When the chat was archived; absent on chats archived before this was recorded. */
1237
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
1238
  pinned: z.ZodOptional<z.ZodBoolean>;
1054
1239
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
1055
1240
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -1085,6 +1270,9 @@ export declare const tConversationSchema: z.ZodObject<{
1085
1270
  chatMenu: z.ZodOptional<z.ZodBoolean>;
1086
1271
  isButton: z.ZodOptional<z.ZodBoolean>;
1087
1272
  toolkit: z.ZodOptional<z.ZodBoolean>;
1273
+ /** Raw upstream tool name when the model-facing key stripped a redundant
1274
+ * server-name prefix — proves upstream identity for legacy id migration. */
1275
+ serverToolName: z.ZodOptional<z.ZodString>;
1088
1276
  }, "strip", z.ZodTypeAny, {
1089
1277
  name: string;
1090
1278
  pluginKey: string;
@@ -1101,6 +1289,7 @@ export declare const tConversationSchema: z.ZodObject<{
1101
1289
  chatMenu?: boolean | undefined;
1102
1290
  isButton?: boolean | undefined;
1103
1291
  toolkit?: boolean | undefined;
1292
+ serverToolName?: string | undefined;
1104
1293
  }, {
1105
1294
  name: string;
1106
1295
  pluginKey: string;
@@ -1117,6 +1306,7 @@ export declare const tConversationSchema: z.ZodObject<{
1117
1306
  chatMenu?: boolean | undefined;
1118
1307
  isButton?: boolean | undefined;
1119
1308
  toolkit?: boolean | undefined;
1309
+ serverToolName?: string | undefined;
1120
1310
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1121
1311
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
1312
  userLabel: z.ZodOptional<z.ZodString>;
@@ -1191,6 +1381,35 @@ export declare const tConversationSchema: z.ZodObject<{
1191
1381
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
1192
1382
  assistant_id: z.ZodOptional<z.ZodString>;
1193
1383
  agent_id: z.ZodOptional<z.ZodString>;
1384
+ /** Durable parent/child navigation for a subagent thread. */
1385
+ subagentThread: z.ZodOptional<z.ZodObject<{
1386
+ rootConversationId: z.ZodString;
1387
+ parentConversationId: z.ZodString;
1388
+ parentMessageId: z.ZodString;
1389
+ parentToolCallId: z.ZodString;
1390
+ parentAgentId: z.ZodOptional<z.ZodString>;
1391
+ subagentType: z.ZodString;
1392
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
1393
+ depth: z.ZodNumber;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ parentMessageId: string;
1396
+ rootConversationId: string;
1397
+ parentConversationId: string;
1398
+ parentToolCallId: string;
1399
+ subagentType: string;
1400
+ subagentKind: "agent" | "graph";
1401
+ depth: number;
1402
+ parentAgentId?: string | undefined;
1403
+ }, {
1404
+ parentMessageId: string;
1405
+ rootConversationId: string;
1406
+ parentConversationId: string;
1407
+ parentToolCallId: string;
1408
+ subagentType: string;
1409
+ subagentKind: "agent" | "graph";
1410
+ depth: number;
1411
+ parentAgentId?: string | undefined;
1412
+ }>>;
1194
1413
  region: z.ZodOptional<z.ZodString>;
1195
1414
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1196
1415
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -1221,6 +1440,7 @@ export declare const tConversationSchema: z.ZodObject<{
1221
1440
  model?: string | null | undefined;
1222
1441
  endpointType?: EModelEndpoint | null | undefined;
1223
1442
  isArchived?: boolean | undefined;
1443
+ archivedAt?: string | null | undefined;
1224
1444
  pinned?: boolean | undefined;
1225
1445
  isShared?: boolean | undefined;
1226
1446
  messages?: string[] | undefined;
@@ -1240,6 +1460,7 @@ export declare const tConversationSchema: z.ZodObject<{
1240
1460
  chatMenu?: boolean | undefined;
1241
1461
  isButton?: boolean | undefined;
1242
1462
  toolkit?: boolean | undefined;
1463
+ serverToolName?: string | undefined;
1243
1464
  }[] | undefined;
1244
1465
  modelLabel?: string | null | undefined;
1245
1466
  userLabel?: string | undefined;
@@ -1288,6 +1509,16 @@ export declare const tConversationSchema: z.ZodObject<{
1288
1509
  disableStreaming?: boolean | undefined;
1289
1510
  assistant_id?: string | undefined;
1290
1511
  agent_id?: string | undefined;
1512
+ subagentThread?: {
1513
+ parentMessageId: string;
1514
+ rootConversationId: string;
1515
+ parentConversationId: string;
1516
+ parentToolCallId: string;
1517
+ subagentType: string;
1518
+ subagentKind: "agent" | "graph";
1519
+ depth: number;
1520
+ parentAgentId?: string | undefined;
1521
+ } | undefined;
1291
1522
  region?: string | undefined;
1292
1523
  maxTokens?: number | undefined;
1293
1524
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -1314,6 +1545,7 @@ export declare const tConversationSchema: z.ZodObject<{
1314
1545
  model?: string | null | undefined;
1315
1546
  endpointType?: EModelEndpoint | null | undefined;
1316
1547
  isArchived?: boolean | undefined;
1548
+ archivedAt?: string | null | undefined;
1317
1549
  pinned?: boolean | undefined;
1318
1550
  isShared?: boolean | undefined;
1319
1551
  title?: string | null | undefined;
@@ -1334,6 +1566,7 @@ export declare const tConversationSchema: z.ZodObject<{
1334
1566
  chatMenu?: boolean | undefined;
1335
1567
  isButton?: boolean | undefined;
1336
1568
  toolkit?: boolean | undefined;
1569
+ serverToolName?: string | undefined;
1337
1570
  }[] | undefined;
1338
1571
  modelLabel?: string | null | undefined;
1339
1572
  userLabel?: string | undefined;
@@ -1382,6 +1615,16 @@ export declare const tConversationSchema: z.ZodObject<{
1382
1615
  disableStreaming?: boolean | undefined;
1383
1616
  assistant_id?: string | undefined;
1384
1617
  agent_id?: string | undefined;
1618
+ subagentThread?: {
1619
+ parentMessageId: string;
1620
+ rootConversationId: string;
1621
+ parentConversationId: string;
1622
+ parentToolCallId: string;
1623
+ subagentType: string;
1624
+ subagentKind: "agent" | "graph";
1625
+ depth: number;
1626
+ parentAgentId?: string | undefined;
1627
+ } | undefined;
1385
1628
  region?: string | undefined;
1386
1629
  maxTokens?: string | number | undefined;
1387
1630
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -1405,6 +1648,7 @@ export declare const tPresetSchema: z.ZodObject<{
1405
1648
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
1649
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1407
1650
  isArchived: z.ZodOptional<z.ZodBoolean>;
1651
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1408
1652
  pinned: z.ZodOptional<z.ZodBoolean>;
1409
1653
  isShared: z.ZodOptional<z.ZodBoolean>;
1410
1654
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1437,6 +1681,9 @@ export declare const tPresetSchema: z.ZodObject<{
1437
1681
  chatMenu: z.ZodOptional<z.ZodBoolean>;
1438
1682
  isButton: z.ZodOptional<z.ZodBoolean>;
1439
1683
  toolkit: z.ZodOptional<z.ZodBoolean>;
1684
+ /** Raw upstream tool name when the model-facing key stripped a redundant
1685
+ * server-name prefix — proves upstream identity for legacy id migration. */
1686
+ serverToolName: z.ZodOptional<z.ZodString>;
1440
1687
  }, "strip", z.ZodTypeAny, {
1441
1688
  name: string;
1442
1689
  pluginKey: string;
@@ -1453,6 +1700,7 @@ export declare const tPresetSchema: z.ZodObject<{
1453
1700
  chatMenu?: boolean | undefined;
1454
1701
  isButton?: boolean | undefined;
1455
1702
  toolkit?: boolean | undefined;
1703
+ serverToolName?: string | undefined;
1456
1704
  }, {
1457
1705
  name: string;
1458
1706
  pluginKey: string;
@@ -1469,6 +1717,7 @@ export declare const tPresetSchema: z.ZodObject<{
1469
1717
  chatMenu?: boolean | undefined;
1470
1718
  isButton?: boolean | undefined;
1471
1719
  toolkit?: boolean | undefined;
1720
+ serverToolName?: string | undefined;
1472
1721
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1473
1722
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
1723
  userLabel: z.ZodOptional<z.ZodString>;
@@ -1538,6 +1787,34 @@ export declare const tPresetSchema: z.ZodObject<{
1538
1787
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
1539
1788
  assistant_id: z.ZodOptional<z.ZodString>;
1540
1789
  agent_id: z.ZodOptional<z.ZodString>;
1790
+ subagentThread: z.ZodOptional<z.ZodObject<{
1791
+ rootConversationId: z.ZodString;
1792
+ parentConversationId: z.ZodString;
1793
+ parentMessageId: z.ZodString;
1794
+ parentToolCallId: z.ZodString;
1795
+ parentAgentId: z.ZodOptional<z.ZodString>;
1796
+ subagentType: z.ZodString;
1797
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
1798
+ depth: z.ZodNumber;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ parentMessageId: string;
1801
+ rootConversationId: string;
1802
+ parentConversationId: string;
1803
+ parentToolCallId: string;
1804
+ subagentType: string;
1805
+ subagentKind: "agent" | "graph";
1806
+ depth: number;
1807
+ parentAgentId?: string | undefined;
1808
+ }, {
1809
+ parentMessageId: string;
1810
+ rootConversationId: string;
1811
+ parentConversationId: string;
1812
+ parentToolCallId: string;
1813
+ subagentType: string;
1814
+ subagentKind: "agent" | "graph";
1815
+ depth: number;
1816
+ parentAgentId?: string | undefined;
1817
+ }>>;
1541
1818
  region: z.ZodOptional<z.ZodString>;
1542
1819
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1543
1820
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -1569,6 +1846,7 @@ export declare const tPresetSchema: z.ZodObject<{
1569
1846
  conversationId?: string | null | undefined;
1570
1847
  endpointType?: EModelEndpoint | null | undefined;
1571
1848
  isArchived?: boolean | undefined;
1849
+ archivedAt?: string | null | undefined;
1572
1850
  pinned?: boolean | undefined;
1573
1851
  isShared?: boolean | undefined;
1574
1852
  title?: string | null | undefined;
@@ -1589,6 +1867,7 @@ export declare const tPresetSchema: z.ZodObject<{
1589
1867
  chatMenu?: boolean | undefined;
1590
1868
  isButton?: boolean | undefined;
1591
1869
  toolkit?: boolean | undefined;
1870
+ serverToolName?: string | undefined;
1592
1871
  }[] | undefined;
1593
1872
  modelLabel?: string | null | undefined;
1594
1873
  userLabel?: string | undefined;
@@ -1636,6 +1915,16 @@ export declare const tPresetSchema: z.ZodObject<{
1636
1915
  disableStreaming?: boolean | undefined;
1637
1916
  assistant_id?: string | undefined;
1638
1917
  agent_id?: string | undefined;
1918
+ subagentThread?: {
1919
+ parentMessageId: string;
1920
+ rootConversationId: string;
1921
+ parentConversationId: string;
1922
+ parentToolCallId: string;
1923
+ subagentType: string;
1924
+ subagentKind: "agent" | "graph";
1925
+ depth: number;
1926
+ parentAgentId?: string | undefined;
1927
+ } | undefined;
1639
1928
  region?: string | undefined;
1640
1929
  maxTokens?: number | undefined;
1641
1930
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -1663,6 +1952,7 @@ export declare const tPresetSchema: z.ZodObject<{
1663
1952
  conversationId?: string | null | undefined;
1664
1953
  endpointType?: EModelEndpoint | null | undefined;
1665
1954
  isArchived?: boolean | undefined;
1955
+ archivedAt?: string | null | undefined;
1666
1956
  pinned?: boolean | undefined;
1667
1957
  isShared?: boolean | undefined;
1668
1958
  title?: string | null | undefined;
@@ -1683,6 +1973,7 @@ export declare const tPresetSchema: z.ZodObject<{
1683
1973
  chatMenu?: boolean | undefined;
1684
1974
  isButton?: boolean | undefined;
1685
1975
  toolkit?: boolean | undefined;
1976
+ serverToolName?: string | undefined;
1686
1977
  }[] | undefined;
1687
1978
  modelLabel?: string | null | undefined;
1688
1979
  userLabel?: string | undefined;
@@ -1730,6 +2021,16 @@ export declare const tPresetSchema: z.ZodObject<{
1730
2021
  disableStreaming?: boolean | undefined;
1731
2022
  assistant_id?: string | undefined;
1732
2023
  agent_id?: string | undefined;
2024
+ subagentThread?: {
2025
+ parentMessageId: string;
2026
+ rootConversationId: string;
2027
+ parentConversationId: string;
2028
+ parentToolCallId: string;
2029
+ subagentType: string;
2030
+ subagentKind: "agent" | "graph";
2031
+ depth: number;
2032
+ parentAgentId?: string | undefined;
2033
+ } | undefined;
1733
2034
  region?: string | undefined;
1734
2035
  maxTokens?: string | number | undefined;
1735
2036
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -1754,6 +2055,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1754
2055
  conversationId: z.ZodNullable<z.ZodString>;
1755
2056
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1756
2057
  isArchived: z.ZodOptional<z.ZodBoolean>;
2058
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1757
2059
  pinned: z.ZodOptional<z.ZodBoolean>;
1758
2060
  isShared: z.ZodOptional<z.ZodBoolean>;
1759
2061
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
@@ -1788,6 +2090,9 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1788
2090
  chatMenu: z.ZodOptional<z.ZodBoolean>;
1789
2091
  isButton: z.ZodOptional<z.ZodBoolean>;
1790
2092
  toolkit: z.ZodOptional<z.ZodBoolean>;
2093
+ /** Raw upstream tool name when the model-facing key stripped a redundant
2094
+ * server-name prefix — proves upstream identity for legacy id migration. */
2095
+ serverToolName: z.ZodOptional<z.ZodString>;
1791
2096
  }, "strip", z.ZodTypeAny, {
1792
2097
  name: string;
1793
2098
  pluginKey: string;
@@ -1804,6 +2109,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1804
2109
  chatMenu?: boolean | undefined;
1805
2110
  isButton?: boolean | undefined;
1806
2111
  toolkit?: boolean | undefined;
2112
+ serverToolName?: string | undefined;
1807
2113
  }, {
1808
2114
  name: string;
1809
2115
  pluginKey: string;
@@ -1820,6 +2126,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1820
2126
  chatMenu?: boolean | undefined;
1821
2127
  isButton?: boolean | undefined;
1822
2128
  toolkit?: boolean | undefined;
2129
+ serverToolName?: string | undefined;
1823
2130
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1824
2131
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
2132
  userLabel: z.ZodOptional<z.ZodString>;
@@ -1892,6 +2199,34 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1892
2199
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
1893
2200
  assistant_id: z.ZodOptional<z.ZodString>;
1894
2201
  agent_id: z.ZodOptional<z.ZodString>;
2202
+ subagentThread: z.ZodOptional<z.ZodObject<{
2203
+ rootConversationId: z.ZodString;
2204
+ parentConversationId: z.ZodString;
2205
+ parentMessageId: z.ZodString;
2206
+ parentToolCallId: z.ZodString;
2207
+ parentAgentId: z.ZodOptional<z.ZodString>;
2208
+ subagentType: z.ZodString;
2209
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
2210
+ depth: z.ZodNumber;
2211
+ }, "strip", z.ZodTypeAny, {
2212
+ parentMessageId: string;
2213
+ rootConversationId: string;
2214
+ parentConversationId: string;
2215
+ parentToolCallId: string;
2216
+ subagentType: string;
2217
+ subagentKind: "agent" | "graph";
2218
+ depth: number;
2219
+ parentAgentId?: string | undefined;
2220
+ }, {
2221
+ parentMessageId: string;
2222
+ rootConversationId: string;
2223
+ parentConversationId: string;
2224
+ parentToolCallId: string;
2225
+ subagentType: string;
2226
+ subagentKind: "agent" | "graph";
2227
+ depth: number;
2228
+ parentAgentId?: string | undefined;
2229
+ }>>;
1895
2230
  region: z.ZodOptional<z.ZodString>;
1896
2231
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1897
2232
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -1921,6 +2256,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1921
2256
  model?: string | null | undefined;
1922
2257
  endpointType?: EModelEndpoint | null | undefined;
1923
2258
  isArchived?: boolean | undefined;
2259
+ archivedAt?: string | null | undefined;
1924
2260
  pinned?: boolean | undefined;
1925
2261
  isShared?: boolean | undefined;
1926
2262
  messages?: string[] | undefined;
@@ -1940,6 +2276,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1940
2276
  chatMenu?: boolean | undefined;
1941
2277
  isButton?: boolean | undefined;
1942
2278
  toolkit?: boolean | undefined;
2279
+ serverToolName?: string | undefined;
1943
2280
  }[] | undefined;
1944
2281
  modelLabel?: string | null | undefined;
1945
2282
  userLabel?: string | undefined;
@@ -1990,6 +2327,16 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
1990
2327
  disableStreaming?: boolean | undefined;
1991
2328
  assistant_id?: string | undefined;
1992
2329
  agent_id?: string | undefined;
2330
+ subagentThread?: {
2331
+ parentMessageId: string;
2332
+ rootConversationId: string;
2333
+ parentConversationId: string;
2334
+ parentToolCallId: string;
2335
+ subagentType: string;
2336
+ subagentKind: "agent" | "graph";
2337
+ depth: number;
2338
+ parentAgentId?: string | undefined;
2339
+ } | undefined;
1993
2340
  region?: string | undefined;
1994
2341
  maxTokens?: number | undefined;
1995
2342
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -2014,6 +2361,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2014
2361
  model?: string | null | undefined;
2015
2362
  endpointType?: EModelEndpoint | null | undefined;
2016
2363
  isArchived?: boolean | undefined;
2364
+ archivedAt?: string | null | undefined;
2017
2365
  pinned?: boolean | undefined;
2018
2366
  isShared?: boolean | undefined;
2019
2367
  title?: string | null | undefined;
@@ -2034,6 +2382,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2034
2382
  chatMenu?: boolean | undefined;
2035
2383
  isButton?: boolean | undefined;
2036
2384
  toolkit?: boolean | undefined;
2385
+ serverToolName?: string | undefined;
2037
2386
  }[] | undefined;
2038
2387
  modelLabel?: string | null | undefined;
2039
2388
  userLabel?: string | undefined;
@@ -2084,6 +2433,16 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
2084
2433
  disableStreaming?: boolean | undefined;
2085
2434
  assistant_id?: string | undefined;
2086
2435
  agent_id?: string | undefined;
2436
+ subagentThread?: {
2437
+ parentMessageId: string;
2438
+ rootConversationId: string;
2439
+ parentConversationId: string;
2440
+ parentToolCallId: string;
2441
+ subagentType: string;
2442
+ subagentKind: "agent" | "graph";
2443
+ depth: number;
2444
+ parentAgentId?: string | undefined;
2445
+ } | undefined;
2087
2446
  region?: string | undefined;
2088
2447
  maxTokens?: string | number | undefined;
2089
2448
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -2106,6 +2465,8 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2106
2465
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2107
2466
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2108
2467
  isArchived: z.ZodOptional<z.ZodBoolean>;
2468
+ /** When the chat was archived; absent on chats archived before this was recorded. */
2469
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2109
2470
  pinned: z.ZodOptional<z.ZodBoolean>;
2110
2471
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
2111
2472
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -2141,6 +2502,9 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2141
2502
  chatMenu: z.ZodOptional<z.ZodBoolean>;
2142
2503
  isButton: z.ZodOptional<z.ZodBoolean>;
2143
2504
  toolkit: z.ZodOptional<z.ZodBoolean>;
2505
+ /** Raw upstream tool name when the model-facing key stripped a redundant
2506
+ * server-name prefix — proves upstream identity for legacy id migration. */
2507
+ serverToolName: z.ZodOptional<z.ZodString>;
2144
2508
  }, "strip", z.ZodTypeAny, {
2145
2509
  name: string;
2146
2510
  pluginKey: string;
@@ -2157,6 +2521,7 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2157
2521
  chatMenu?: boolean | undefined;
2158
2522
  isButton?: boolean | undefined;
2159
2523
  toolkit?: boolean | undefined;
2524
+ serverToolName?: string | undefined;
2160
2525
  }, {
2161
2526
  name: string;
2162
2527
  pluginKey: string;
@@ -2173,6 +2538,7 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2173
2538
  chatMenu?: boolean | undefined;
2174
2539
  isButton?: boolean | undefined;
2175
2540
  toolkit?: boolean | undefined;
2541
+ serverToolName?: string | undefined;
2176
2542
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2177
2543
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2178
2544
  userLabel: z.ZodOptional<z.ZodString>;
@@ -2247,6 +2613,35 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2247
2613
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
2248
2614
  assistant_id: z.ZodOptional<z.ZodString>;
2249
2615
  agent_id: z.ZodOptional<z.ZodString>;
2616
+ /** Durable parent/child navigation for a subagent thread. */
2617
+ subagentThread: z.ZodOptional<z.ZodObject<{
2618
+ rootConversationId: z.ZodString;
2619
+ parentConversationId: z.ZodString;
2620
+ parentMessageId: z.ZodString;
2621
+ parentToolCallId: z.ZodString;
2622
+ parentAgentId: z.ZodOptional<z.ZodString>;
2623
+ subagentType: z.ZodString;
2624
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
2625
+ depth: z.ZodNumber;
2626
+ }, "strip", z.ZodTypeAny, {
2627
+ parentMessageId: string;
2628
+ rootConversationId: string;
2629
+ parentConversationId: string;
2630
+ parentToolCallId: string;
2631
+ subagentType: string;
2632
+ subagentKind: "agent" | "graph";
2633
+ depth: number;
2634
+ parentAgentId?: string | undefined;
2635
+ }, {
2636
+ parentMessageId: string;
2637
+ rootConversationId: string;
2638
+ parentConversationId: string;
2639
+ parentToolCallId: string;
2640
+ subagentType: string;
2641
+ subagentKind: "agent" | "graph";
2642
+ depth: number;
2643
+ parentAgentId?: string | undefined;
2644
+ }>>;
2250
2645
  region: z.ZodOptional<z.ZodString>;
2251
2646
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2252
2647
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -2357,15 +2752,12 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2357
2752
  * `spec` is set by the client from `modelSpec.name` via `getModelSpecPreset` and is
2358
2753
  * omitted to avoid duplicate configuration surface.
2359
2754
  */
2360
- export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2361
- user: z.ZodOptional<z.ZodString>;
2362
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2755
+ export declare const tModelSpecPresetSchema: z.ZodEffects<z.ZodObject<{
2363
2756
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2364
2757
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2365
- isArchived: z.ZodOptional<z.ZodBoolean>;
2758
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2366
2759
  pinned: z.ZodOptional<z.ZodBoolean>;
2367
2760
  isShared: z.ZodOptional<z.ZodBoolean>;
2368
- messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2369
2761
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2370
2762
  name: z.ZodString;
2371
2763
  pluginKey: z.ZodString;
@@ -2395,6 +2787,9 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2395
2787
  chatMenu: z.ZodOptional<z.ZodBoolean>;
2396
2788
  isButton: z.ZodOptional<z.ZodBoolean>;
2397
2789
  toolkit: z.ZodOptional<z.ZodBoolean>;
2790
+ /** Raw upstream tool name when the model-facing key stripped a redundant
2791
+ * server-name prefix — proves upstream identity for legacy id migration. */
2792
+ serverToolName: z.ZodOptional<z.ZodString>;
2398
2793
  }, "strip", z.ZodTypeAny, {
2399
2794
  name: string;
2400
2795
  pluginKey: string;
@@ -2411,6 +2806,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2411
2806
  chatMenu?: boolean | undefined;
2412
2807
  isButton?: boolean | undefined;
2413
2808
  toolkit?: boolean | undefined;
2809
+ serverToolName?: string | undefined;
2414
2810
  }, {
2415
2811
  name: string;
2416
2812
  pluginKey: string;
@@ -2427,6 +2823,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2427
2823
  chatMenu?: boolean | undefined;
2428
2824
  isButton?: boolean | undefined;
2429
2825
  toolkit?: boolean | undefined;
2826
+ serverToolName?: string | undefined;
2430
2827
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2431
2828
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
2829
  userLabel: z.ZodOptional<z.ZodString>;
@@ -2437,7 +2834,6 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2437
2834
  top_p: z.ZodOptional<z.ZodNumber>;
2438
2835
  frequency_penalty: z.ZodOptional<z.ZodNumber>;
2439
2836
  presence_penalty: z.ZodOptional<z.ZodNumber>;
2440
- parentMessageId: z.ZodOptional<z.ZodString>;
2441
2837
  maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
2442
2838
  maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2443
2839
  max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
@@ -2481,7 +2877,6 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2481
2877
  };
2482
2878
  }>, "many">>;
2483
2879
  resendFiles: z.ZodOptional<z.ZodBoolean>;
2484
- file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2485
2880
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
2486
2881
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
2487
2882
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
@@ -2496,33 +2891,52 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2496
2891
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
2497
2892
  assistant_id: z.ZodOptional<z.ZodString>;
2498
2893
  agent_id: z.ZodOptional<z.ZodString>;
2894
+ subagentThread: z.ZodOptional<z.ZodObject<{
2895
+ rootConversationId: z.ZodString;
2896
+ parentConversationId: z.ZodString;
2897
+ parentMessageId: z.ZodString;
2898
+ parentToolCallId: z.ZodString;
2899
+ parentAgentId: z.ZodOptional<z.ZodString>;
2900
+ subagentType: z.ZodString;
2901
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
2902
+ depth: z.ZodNumber;
2903
+ }, "strip", z.ZodTypeAny, {
2904
+ parentMessageId: string;
2905
+ rootConversationId: string;
2906
+ parentConversationId: string;
2907
+ parentToolCallId: string;
2908
+ subagentType: string;
2909
+ subagentKind: "agent" | "graph";
2910
+ depth: number;
2911
+ parentAgentId?: string | undefined;
2912
+ }, {
2913
+ parentMessageId: string;
2914
+ rootConversationId: string;
2915
+ parentConversationId: string;
2916
+ parentToolCallId: string;
2917
+ subagentType: string;
2918
+ subagentKind: "agent" | "graph";
2919
+ depth: number;
2920
+ parentAgentId?: string | undefined;
2921
+ }>>;
2499
2922
  region: z.ZodOptional<z.ZodString>;
2500
2923
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2501
2924
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2502
2925
  instructions: z.ZodOptional<z.ZodString>;
2503
2926
  additional_instructions: z.ZodOptional<z.ZodString>;
2504
2927
  append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2505
- presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2506
2928
  stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2507
2929
  greeting: z.ZodOptional<z.ZodString>;
2508
- spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2509
2930
  iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2510
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2511
2931
  isTemporary: z.ZodOptional<z.ZodBoolean>;
2512
2932
  fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2513
- resendImages: z.ZodOptional<z.ZodBoolean>;
2514
- chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2515
2933
  } & {
2516
- conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
- presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2518
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2519
- defaultPreset: z.ZodOptional<z.ZodBoolean>;
2520
- order: z.ZodOptional<z.ZodNumber>;
2521
- endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
2522
- }, "user" | "tags" | "conversationId" | "isArchived" | "title" | "messages" | "parentMessageId" | "file_ids" | "presetOverride" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
2523
- endpoint: string | null;
2934
+ endpoint: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>>;
2935
+ }, "strip", z.ZodTypeAny, {
2524
2936
  model?: string | null | undefined;
2937
+ endpoint?: string | null | undefined;
2525
2938
  endpointType?: EModelEndpoint | null | undefined;
2939
+ archivedAt?: string | null | undefined;
2526
2940
  pinned?: boolean | undefined;
2527
2941
  isShared?: boolean | undefined;
2528
2942
  tools?: string[] | {
@@ -2541,6 +2955,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2541
2955
  chatMenu?: boolean | undefined;
2542
2956
  isButton?: boolean | undefined;
2543
2957
  toolkit?: boolean | undefined;
2958
+ serverToolName?: string | undefined;
2544
2959
  }[] | undefined;
2545
2960
  modelLabel?: string | null | undefined;
2546
2961
  userLabel?: string | undefined;
@@ -2586,6 +3001,16 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2586
3001
  disableStreaming?: boolean | undefined;
2587
3002
  assistant_id?: string | undefined;
2588
3003
  agent_id?: string | undefined;
3004
+ subagentThread?: {
3005
+ parentMessageId: string;
3006
+ rootConversationId: string;
3007
+ parentConversationId: string;
3008
+ parentToolCallId: string;
3009
+ subagentType: string;
3010
+ subagentKind: "agent" | "graph";
3011
+ depth: number;
3012
+ parentAgentId?: string | undefined;
3013
+ } | undefined;
2589
3014
  region?: string | undefined;
2590
3015
  maxTokens?: number | undefined;
2591
3016
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -2598,9 +3023,10 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2598
3023
  isTemporary?: boolean | undefined;
2599
3024
  fileTokenLimit?: number | undefined;
2600
3025
  }, {
2601
- endpoint: string | null;
2602
3026
  model?: string | null | undefined;
3027
+ endpoint?: string | null | undefined;
2603
3028
  endpointType?: EModelEndpoint | null | undefined;
3029
+ archivedAt?: string | null | undefined;
2604
3030
  pinned?: boolean | undefined;
2605
3031
  isShared?: boolean | undefined;
2606
3032
  tools?: string[] | {
@@ -2619,6 +3045,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2619
3045
  chatMenu?: boolean | undefined;
2620
3046
  isButton?: boolean | undefined;
2621
3047
  toolkit?: boolean | undefined;
3048
+ serverToolName?: string | undefined;
2622
3049
  }[] | undefined;
2623
3050
  modelLabel?: string | null | undefined;
2624
3051
  userLabel?: string | undefined;
@@ -2664,6 +3091,196 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2664
3091
  disableStreaming?: boolean | undefined;
2665
3092
  assistant_id?: string | undefined;
2666
3093
  agent_id?: string | undefined;
3094
+ subagentThread?: {
3095
+ parentMessageId: string;
3096
+ rootConversationId: string;
3097
+ parentConversationId: string;
3098
+ parentToolCallId: string;
3099
+ subagentType: string;
3100
+ subagentKind: "agent" | "graph";
3101
+ depth: number;
3102
+ parentAgentId?: string | undefined;
3103
+ } | undefined;
3104
+ region?: string | undefined;
3105
+ maxTokens?: string | number | undefined;
3106
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
3107
+ instructions?: string | undefined;
3108
+ additional_instructions?: string | undefined;
3109
+ append_current_datetime?: boolean | undefined;
3110
+ stop?: string[] | undefined;
3111
+ greeting?: string | undefined;
3112
+ iconURL?: string | null | undefined;
3113
+ isTemporary?: boolean | undefined;
3114
+ fileTokenLimit?: string | number | undefined;
3115
+ }>, {
3116
+ model?: string | null | undefined;
3117
+ endpoint?: string | null | undefined;
3118
+ endpointType?: EModelEndpoint | null | undefined;
3119
+ archivedAt?: string | null | undefined;
3120
+ pinned?: boolean | undefined;
3121
+ isShared?: boolean | undefined;
3122
+ tools?: string[] | {
3123
+ name: string;
3124
+ pluginKey: string;
3125
+ description?: string | undefined;
3126
+ icon?: string | undefined;
3127
+ authConfig?: {
3128
+ description: string;
3129
+ authField: string;
3130
+ label: string;
3131
+ optional?: boolean | undefined;
3132
+ sensitive?: boolean | undefined;
3133
+ }[] | undefined;
3134
+ authenticated?: boolean | undefined;
3135
+ chatMenu?: boolean | undefined;
3136
+ isButton?: boolean | undefined;
3137
+ toolkit?: boolean | undefined;
3138
+ serverToolName?: string | undefined;
3139
+ }[] | undefined;
3140
+ modelLabel?: string | null | undefined;
3141
+ userLabel?: string | undefined;
3142
+ promptPrefix?: string | null | undefined;
3143
+ temperature?: number | null | undefined;
3144
+ topP?: number | undefined;
3145
+ topK?: number | undefined;
3146
+ top_p?: number | undefined;
3147
+ frequency_penalty?: number | undefined;
3148
+ presence_penalty?: number | undefined;
3149
+ maxOutputTokens?: number | null | undefined;
3150
+ maxContextTokens?: number | undefined;
3151
+ max_tokens?: number | undefined;
3152
+ promptCache?: boolean | undefined;
3153
+ promptCacheTtl?: "5m" | "1h" | undefined;
3154
+ system?: string | undefined;
3155
+ thinking?: boolean | undefined;
3156
+ thinkingBudget?: number | undefined;
3157
+ thinkingLevel?: ThinkingLevel | undefined;
3158
+ stream?: boolean | undefined;
3159
+ artifacts?: string | undefined;
3160
+ context?: string | null | undefined;
3161
+ examples?: {
3162
+ input: {
3163
+ content: string;
3164
+ };
3165
+ output: {
3166
+ content: string;
3167
+ };
3168
+ }[] | undefined;
3169
+ resendFiles?: boolean | undefined;
3170
+ imageDetail?: ImageDetail | undefined;
3171
+ reasoning_effort?: ReasoningEffort | null | undefined;
3172
+ reasoning_summary?: ReasoningSummary | null | undefined;
3173
+ reasoning_mode?: ReasoningMode | null | undefined;
3174
+ reasoning_context?: ReasoningContext | null | undefined;
3175
+ verbosity?: Verbosity | null | undefined;
3176
+ useResponsesApi?: boolean | undefined;
3177
+ effort?: AnthropicEffort | null | undefined;
3178
+ thinkingDisplay?: ThinkingDisplay | null | undefined;
3179
+ web_search?: boolean | undefined;
3180
+ url_context?: boolean | undefined;
3181
+ disableStreaming?: boolean | undefined;
3182
+ assistant_id?: string | undefined;
3183
+ agent_id?: string | undefined;
3184
+ subagentThread?: {
3185
+ parentMessageId: string;
3186
+ rootConversationId: string;
3187
+ parentConversationId: string;
3188
+ parentToolCallId: string;
3189
+ subagentType: string;
3190
+ subagentKind: "agent" | "graph";
3191
+ depth: number;
3192
+ parentAgentId?: string | undefined;
3193
+ } | undefined;
3194
+ region?: string | undefined;
3195
+ maxTokens?: number | undefined;
3196
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
3197
+ instructions?: string | undefined;
3198
+ additional_instructions?: string | undefined;
3199
+ append_current_datetime?: boolean | undefined;
3200
+ stop?: string[] | undefined;
3201
+ greeting?: string | undefined;
3202
+ iconURL?: string | null | undefined;
3203
+ isTemporary?: boolean | undefined;
3204
+ fileTokenLimit?: number | undefined;
3205
+ }, {
3206
+ model?: string | null | undefined;
3207
+ endpoint?: string | null | undefined;
3208
+ endpointType?: EModelEndpoint | null | undefined;
3209
+ archivedAt?: string | null | undefined;
3210
+ pinned?: boolean | undefined;
3211
+ isShared?: boolean | undefined;
3212
+ tools?: string[] | {
3213
+ name: string;
3214
+ pluginKey: string;
3215
+ description?: string | undefined;
3216
+ icon?: string | undefined;
3217
+ authConfig?: {
3218
+ description: string;
3219
+ authField: string;
3220
+ label: string;
3221
+ optional?: boolean | undefined;
3222
+ sensitive?: boolean | undefined;
3223
+ }[] | undefined;
3224
+ authenticated?: boolean | undefined;
3225
+ chatMenu?: boolean | undefined;
3226
+ isButton?: boolean | undefined;
3227
+ toolkit?: boolean | undefined;
3228
+ serverToolName?: string | undefined;
3229
+ }[] | undefined;
3230
+ modelLabel?: string | null | undefined;
3231
+ userLabel?: string | undefined;
3232
+ promptPrefix?: string | null | undefined;
3233
+ temperature?: number | null | undefined;
3234
+ topP?: number | undefined;
3235
+ topK?: number | undefined;
3236
+ top_p?: number | undefined;
3237
+ frequency_penalty?: number | undefined;
3238
+ presence_penalty?: number | undefined;
3239
+ maxOutputTokens?: string | number | null | undefined;
3240
+ maxContextTokens?: string | number | undefined;
3241
+ max_tokens?: string | number | undefined;
3242
+ promptCache?: boolean | undefined;
3243
+ promptCacheTtl?: "5m" | "1h" | undefined;
3244
+ system?: string | undefined;
3245
+ thinking?: boolean | undefined;
3246
+ thinkingBudget?: string | number | undefined;
3247
+ thinkingLevel?: ThinkingLevel | undefined;
3248
+ stream?: boolean | undefined;
3249
+ artifacts?: string | undefined;
3250
+ context?: string | null | undefined;
3251
+ examples?: {
3252
+ input: {
3253
+ content: string;
3254
+ };
3255
+ output: {
3256
+ content: string;
3257
+ };
3258
+ }[] | undefined;
3259
+ resendFiles?: boolean | undefined;
3260
+ imageDetail?: ImageDetail | undefined;
3261
+ reasoning_effort?: ReasoningEffort | null | undefined;
3262
+ reasoning_summary?: ReasoningSummary | null | undefined;
3263
+ reasoning_mode?: ReasoningMode | null | undefined;
3264
+ reasoning_context?: ReasoningContext | null | undefined;
3265
+ verbosity?: Verbosity | null | undefined;
3266
+ useResponsesApi?: boolean | undefined;
3267
+ effort?: AnthropicEffort | null | undefined;
3268
+ thinkingDisplay?: ThinkingDisplay | null | undefined;
3269
+ web_search?: boolean | undefined;
3270
+ url_context?: boolean | undefined;
3271
+ disableStreaming?: boolean | undefined;
3272
+ assistant_id?: string | undefined;
3273
+ agent_id?: string | undefined;
3274
+ subagentThread?: {
3275
+ parentMessageId: string;
3276
+ rootConversationId: string;
3277
+ parentConversationId: string;
3278
+ parentToolCallId: string;
3279
+ subagentType: string;
3280
+ subagentKind: "agent" | "graph";
3281
+ depth: number;
3282
+ parentAgentId?: string | undefined;
3283
+ } | undefined;
2667
3284
  region?: string | undefined;
2668
3285
  maxTokens?: string | number | undefined;
2669
3286
  additionalModelRequestFields?: DocumentTypeValue | undefined;
@@ -2743,6 +3360,8 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2743
3360
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2744
3361
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2745
3362
  isArchived: z.ZodOptional<z.ZodBoolean>;
3363
+ /** When the chat was archived; absent on chats archived before this was recorded. */
3364
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2746
3365
  pinned: z.ZodOptional<z.ZodBoolean>;
2747
3366
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
2748
3367
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -2778,6 +3397,9 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2778
3397
  chatMenu: z.ZodOptional<z.ZodBoolean>;
2779
3398
  isButton: z.ZodOptional<z.ZodBoolean>;
2780
3399
  toolkit: z.ZodOptional<z.ZodBoolean>;
3400
+ /** Raw upstream tool name when the model-facing key stripped a redundant
3401
+ * server-name prefix — proves upstream identity for legacy id migration. */
3402
+ serverToolName: z.ZodOptional<z.ZodString>;
2781
3403
  }, "strip", z.ZodTypeAny, {
2782
3404
  name: string;
2783
3405
  pluginKey: string;
@@ -2794,6 +3416,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2794
3416
  chatMenu?: boolean | undefined;
2795
3417
  isButton?: boolean | undefined;
2796
3418
  toolkit?: boolean | undefined;
3419
+ serverToolName?: string | undefined;
2797
3420
  }, {
2798
3421
  name: string;
2799
3422
  pluginKey: string;
@@ -2810,6 +3433,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2810
3433
  chatMenu?: boolean | undefined;
2811
3434
  isButton?: boolean | undefined;
2812
3435
  toolkit?: boolean | undefined;
3436
+ serverToolName?: string | undefined;
2813
3437
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2814
3438
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2815
3439
  userLabel: z.ZodOptional<z.ZodString>;
@@ -2884,6 +3508,35 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2884
3508
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
2885
3509
  assistant_id: z.ZodOptional<z.ZodString>;
2886
3510
  agent_id: z.ZodOptional<z.ZodString>;
3511
+ /** Durable parent/child navigation for a subagent thread. */
3512
+ subagentThread: z.ZodOptional<z.ZodObject<{
3513
+ rootConversationId: z.ZodString;
3514
+ parentConversationId: z.ZodString;
3515
+ parentMessageId: z.ZodString;
3516
+ parentToolCallId: z.ZodString;
3517
+ parentAgentId: z.ZodOptional<z.ZodString>;
3518
+ subagentType: z.ZodString;
3519
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
3520
+ depth: z.ZodNumber;
3521
+ }, "strip", z.ZodTypeAny, {
3522
+ parentMessageId: string;
3523
+ rootConversationId: string;
3524
+ parentConversationId: string;
3525
+ parentToolCallId: string;
3526
+ subagentType: string;
3527
+ subagentKind: "agent" | "graph";
3528
+ depth: number;
3529
+ parentAgentId?: string | undefined;
3530
+ }, {
3531
+ parentMessageId: string;
3532
+ rootConversationId: string;
3533
+ parentConversationId: string;
3534
+ parentToolCallId: string;
3535
+ subagentType: string;
3536
+ subagentKind: "agent" | "graph";
3537
+ depth: number;
3538
+ parentAgentId?: string | undefined;
3539
+ }>>;
2887
3540
  region: z.ZodOptional<z.ZodString>;
2888
3541
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2889
3542
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -2903,7 +3556,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2903
3556
  resendImages: z.ZodOptional<z.ZodBoolean>;
2904
3557
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2905
3558
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2906
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
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, {
2907
3560
  model?: string | null | undefined;
2908
3561
  modelLabel?: string | null | undefined;
2909
3562
  promptPrefix?: string | null | undefined;
@@ -2925,6 +3578,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2925
3578
  };
2926
3579
  }[] | undefined;
2927
3580
  chatProjectId?: string | null | undefined;
3581
+ resendFiles?: boolean | undefined;
2928
3582
  web_search?: boolean | undefined;
2929
3583
  url_context?: boolean | undefined;
2930
3584
  greeting?: string | undefined;
@@ -2953,6 +3607,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
2953
3607
  };
2954
3608
  }[] | undefined;
2955
3609
  chatProjectId?: string | null | undefined;
3610
+ resendFiles?: boolean | undefined;
2956
3611
  web_search?: boolean | undefined;
2957
3612
  url_context?: boolean | undefined;
2958
3613
  greeting?: string | undefined;
@@ -2965,6 +3620,8 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
2965
3620
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2966
3621
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2967
3622
  isArchived: z.ZodOptional<z.ZodBoolean>;
3623
+ /** When the chat was archived; absent on chats archived before this was recorded. */
3624
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2968
3625
  pinned: z.ZodOptional<z.ZodBoolean>;
2969
3626
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
2970
3627
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -3000,6 +3657,9 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3000
3657
  chatMenu: z.ZodOptional<z.ZodBoolean>;
3001
3658
  isButton: z.ZodOptional<z.ZodBoolean>;
3002
3659
  toolkit: z.ZodOptional<z.ZodBoolean>;
3660
+ /** Raw upstream tool name when the model-facing key stripped a redundant
3661
+ * server-name prefix — proves upstream identity for legacy id migration. */
3662
+ serverToolName: z.ZodOptional<z.ZodString>;
3003
3663
  }, "strip", z.ZodTypeAny, {
3004
3664
  name: string;
3005
3665
  pluginKey: string;
@@ -3016,6 +3676,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3016
3676
  chatMenu?: boolean | undefined;
3017
3677
  isButton?: boolean | undefined;
3018
3678
  toolkit?: boolean | undefined;
3679
+ serverToolName?: string | undefined;
3019
3680
  }, {
3020
3681
  name: string;
3021
3682
  pluginKey: string;
@@ -3032,6 +3693,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3032
3693
  chatMenu?: boolean | undefined;
3033
3694
  isButton?: boolean | undefined;
3034
3695
  toolkit?: boolean | undefined;
3696
+ serverToolName?: string | undefined;
3035
3697
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3036
3698
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
3699
  userLabel: z.ZodOptional<z.ZodString>;
@@ -3106,6 +3768,35 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3106
3768
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
3107
3769
  assistant_id: z.ZodOptional<z.ZodString>;
3108
3770
  agent_id: z.ZodOptional<z.ZodString>;
3771
+ /** Durable parent/child navigation for a subagent thread. */
3772
+ subagentThread: z.ZodOptional<z.ZodObject<{
3773
+ rootConversationId: z.ZodString;
3774
+ parentConversationId: z.ZodString;
3775
+ parentMessageId: z.ZodString;
3776
+ parentToolCallId: z.ZodString;
3777
+ parentAgentId: z.ZodOptional<z.ZodString>;
3778
+ subagentType: z.ZodString;
3779
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
3780
+ depth: z.ZodNumber;
3781
+ }, "strip", z.ZodTypeAny, {
3782
+ parentMessageId: string;
3783
+ rootConversationId: string;
3784
+ parentConversationId: string;
3785
+ parentToolCallId: string;
3786
+ subagentType: string;
3787
+ subagentKind: "agent" | "graph";
3788
+ depth: number;
3789
+ parentAgentId?: string | undefined;
3790
+ }, {
3791
+ parentMessageId: string;
3792
+ rootConversationId: string;
3793
+ parentConversationId: string;
3794
+ parentToolCallId: string;
3795
+ subagentType: string;
3796
+ subagentKind: "agent" | "graph";
3797
+ depth: number;
3798
+ parentAgentId?: string | undefined;
3799
+ }>>;
3109
3800
  region: z.ZodOptional<z.ZodString>;
3110
3801
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3111
3802
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -3125,7 +3816,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3125
3816
  resendImages: z.ZodOptional<z.ZodBoolean>;
3126
3817
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3127
3818
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3128
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
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, {
3129
3820
  model?: string | null | undefined;
3130
3821
  modelLabel?: string | null | undefined;
3131
3822
  promptPrefix?: string | null | undefined;
@@ -3147,6 +3838,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3147
3838
  };
3148
3839
  }[] | undefined;
3149
3840
  chatProjectId?: string | null | undefined;
3841
+ resendFiles?: boolean | undefined;
3150
3842
  web_search?: boolean | undefined;
3151
3843
  url_context?: boolean | undefined;
3152
3844
  greeting?: string | undefined;
@@ -3175,6 +3867,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3175
3867
  };
3176
3868
  }[] | undefined;
3177
3869
  chatProjectId?: string | null | undefined;
3870
+ resendFiles?: boolean | undefined;
3178
3871
  web_search?: boolean | undefined;
3179
3872
  url_context?: boolean | undefined;
3180
3873
  greeting?: string | undefined;
@@ -3203,6 +3896,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3203
3896
  };
3204
3897
  }[] | undefined;
3205
3898
  chatProjectId?: string | null | undefined;
3899
+ resendFiles?: boolean | undefined;
3206
3900
  web_search?: boolean | undefined;
3207
3901
  url_context?: boolean | undefined;
3208
3902
  greeting?: string | undefined;
@@ -3276,6 +3970,8 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3276
3970
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3277
3971
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3278
3972
  isArchived: z.ZodOptional<z.ZodBoolean>;
3973
+ /** When the chat was archived; absent on chats archived before this was recorded. */
3974
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3279
3975
  pinned: z.ZodOptional<z.ZodBoolean>;
3280
3976
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3281
3977
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -3311,6 +4007,9 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3311
4007
  chatMenu: z.ZodOptional<z.ZodBoolean>;
3312
4008
  isButton: z.ZodOptional<z.ZodBoolean>;
3313
4009
  toolkit: z.ZodOptional<z.ZodBoolean>;
4010
+ /** Raw upstream tool name when the model-facing key stripped a redundant
4011
+ * server-name prefix — proves upstream identity for legacy id migration. */
4012
+ serverToolName: z.ZodOptional<z.ZodString>;
3314
4013
  }, "strip", z.ZodTypeAny, {
3315
4014
  name: string;
3316
4015
  pluginKey: string;
@@ -3327,6 +4026,7 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3327
4026
  chatMenu?: boolean | undefined;
3328
4027
  isButton?: boolean | undefined;
3329
4028
  toolkit?: boolean | undefined;
4029
+ serverToolName?: string | undefined;
3330
4030
  }, {
3331
4031
  name: string;
3332
4032
  pluginKey: string;
@@ -3343,6 +4043,7 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3343
4043
  chatMenu?: boolean | undefined;
3344
4044
  isButton?: boolean | undefined;
3345
4045
  toolkit?: boolean | undefined;
4046
+ serverToolName?: string | undefined;
3346
4047
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3347
4048
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3348
4049
  userLabel: z.ZodOptional<z.ZodString>;
@@ -3417,6 +4118,35 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3417
4118
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
3418
4119
  assistant_id: z.ZodOptional<z.ZodString>;
3419
4120
  agent_id: z.ZodOptional<z.ZodString>;
4121
+ /** Durable parent/child navigation for a subagent thread. */
4122
+ subagentThread: z.ZodOptional<z.ZodObject<{
4123
+ rootConversationId: z.ZodString;
4124
+ parentConversationId: z.ZodString;
4125
+ parentMessageId: z.ZodString;
4126
+ parentToolCallId: z.ZodString;
4127
+ parentAgentId: z.ZodOptional<z.ZodString>;
4128
+ subagentType: z.ZodString;
4129
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
4130
+ depth: z.ZodNumber;
4131
+ }, "strip", z.ZodTypeAny, {
4132
+ parentMessageId: string;
4133
+ rootConversationId: string;
4134
+ parentConversationId: string;
4135
+ parentToolCallId: string;
4136
+ subagentType: string;
4137
+ subagentKind: "agent" | "graph";
4138
+ depth: number;
4139
+ parentAgentId?: string | undefined;
4140
+ }, {
4141
+ parentMessageId: string;
4142
+ rootConversationId: string;
4143
+ parentConversationId: string;
4144
+ parentToolCallId: string;
4145
+ subagentType: string;
4146
+ subagentKind: "agent" | "graph";
4147
+ depth: number;
4148
+ parentAgentId?: string | undefined;
4149
+ }>>;
3420
4150
  region: z.ZodOptional<z.ZodString>;
3421
4151
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3422
4152
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -3486,6 +4216,8 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
3486
4216
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3487
4217
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3488
4218
  isArchived: z.ZodOptional<z.ZodBoolean>;
4219
+ /** When the chat was archived; absent on chats archived before this was recorded. */
4220
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3489
4221
  pinned: z.ZodOptional<z.ZodBoolean>;
3490
4222
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3491
4223
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -3521,6 +4253,9 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
3521
4253
  chatMenu: z.ZodOptional<z.ZodBoolean>;
3522
4254
  isButton: z.ZodOptional<z.ZodBoolean>;
3523
4255
  toolkit: z.ZodOptional<z.ZodBoolean>;
4256
+ /** Raw upstream tool name when the model-facing key stripped a redundant
4257
+ * server-name prefix — proves upstream identity for legacy id migration. */
4258
+ serverToolName: z.ZodOptional<z.ZodString>;
3524
4259
  }, "strip", z.ZodTypeAny, {
3525
4260
  name: string;
3526
4261
  pluginKey: string;
@@ -3537,6 +4272,7 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
3537
4272
  chatMenu?: boolean | undefined;
3538
4273
  isButton?: boolean | undefined;
3539
4274
  toolkit?: boolean | undefined;
4275
+ serverToolName?: string | undefined;
3540
4276
  }, {
3541
4277
  name: string;
3542
4278
  pluginKey: string;
@@ -3553,6 +4289,7 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
3553
4289
  chatMenu?: boolean | undefined;
3554
4290
  isButton?: boolean | undefined;
3555
4291
  toolkit?: boolean | undefined;
4292
+ serverToolName?: string | undefined;
3556
4293
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3557
4294
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3558
4295
  userLabel: z.ZodOptional<z.ZodString>;
@@ -3627,6 +4364,35 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
3627
4364
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
3628
4365
  assistant_id: z.ZodOptional<z.ZodString>;
3629
4366
  agent_id: z.ZodOptional<z.ZodString>;
4367
+ /** Durable parent/child navigation for a subagent thread. */
4368
+ subagentThread: z.ZodOptional<z.ZodObject<{
4369
+ rootConversationId: z.ZodString;
4370
+ parentConversationId: z.ZodString;
4371
+ parentMessageId: z.ZodString;
4372
+ parentToolCallId: z.ZodString;
4373
+ parentAgentId: z.ZodOptional<z.ZodString>;
4374
+ subagentType: z.ZodString;
4375
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
4376
+ depth: z.ZodNumber;
4377
+ }, "strip", z.ZodTypeAny, {
4378
+ parentMessageId: string;
4379
+ rootConversationId: string;
4380
+ parentConversationId: string;
4381
+ parentToolCallId: string;
4382
+ subagentType: string;
4383
+ subagentKind: "agent" | "graph";
4384
+ depth: number;
4385
+ parentAgentId?: string | undefined;
4386
+ }, {
4387
+ parentMessageId: string;
4388
+ rootConversationId: string;
4389
+ parentConversationId: string;
4390
+ parentToolCallId: string;
4391
+ subagentType: string;
4392
+ subagentKind: "agent" | "graph";
4393
+ depth: number;
4394
+ parentAgentId?: string | undefined;
4395
+ }>>;
3630
4396
  region: z.ZodOptional<z.ZodString>;
3631
4397
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3632
4398
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -3692,6 +4458,8 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
3692
4458
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3693
4459
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3694
4460
  isArchived: z.ZodOptional<z.ZodBoolean>;
4461
+ /** When the chat was archived; absent on chats archived before this was recorded. */
4462
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3695
4463
  pinned: z.ZodOptional<z.ZodBoolean>;
3696
4464
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3697
4465
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -3727,6 +4495,9 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
3727
4495
  chatMenu: z.ZodOptional<z.ZodBoolean>;
3728
4496
  isButton: z.ZodOptional<z.ZodBoolean>;
3729
4497
  toolkit: z.ZodOptional<z.ZodBoolean>;
4498
+ /** Raw upstream tool name when the model-facing key stripped a redundant
4499
+ * server-name prefix — proves upstream identity for legacy id migration. */
4500
+ serverToolName: z.ZodOptional<z.ZodString>;
3730
4501
  }, "strip", z.ZodTypeAny, {
3731
4502
  name: string;
3732
4503
  pluginKey: string;
@@ -3743,6 +4514,7 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
3743
4514
  chatMenu?: boolean | undefined;
3744
4515
  isButton?: boolean | undefined;
3745
4516
  toolkit?: boolean | undefined;
4517
+ serverToolName?: string | undefined;
3746
4518
  }, {
3747
4519
  name: string;
3748
4520
  pluginKey: string;
@@ -3759,6 +4531,7 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
3759
4531
  chatMenu?: boolean | undefined;
3760
4532
  isButton?: boolean | undefined;
3761
4533
  toolkit?: boolean | undefined;
4534
+ serverToolName?: string | undefined;
3762
4535
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3763
4536
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3764
4537
  userLabel: z.ZodOptional<z.ZodString>;
@@ -3833,6 +4606,35 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
3833
4606
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
3834
4607
  assistant_id: z.ZodOptional<z.ZodString>;
3835
4608
  agent_id: z.ZodOptional<z.ZodString>;
4609
+ /** Durable parent/child navigation for a subagent thread. */
4610
+ subagentThread: z.ZodOptional<z.ZodObject<{
4611
+ rootConversationId: z.ZodString;
4612
+ parentConversationId: z.ZodString;
4613
+ parentMessageId: z.ZodString;
4614
+ parentToolCallId: z.ZodString;
4615
+ parentAgentId: z.ZodOptional<z.ZodString>;
4616
+ subagentType: z.ZodString;
4617
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
4618
+ depth: z.ZodNumber;
4619
+ }, "strip", z.ZodTypeAny, {
4620
+ parentMessageId: string;
4621
+ rootConversationId: string;
4622
+ parentConversationId: string;
4623
+ parentToolCallId: string;
4624
+ subagentType: string;
4625
+ subagentKind: "agent" | "graph";
4626
+ depth: number;
4627
+ parentAgentId?: string | undefined;
4628
+ }, {
4629
+ parentMessageId: string;
4630
+ rootConversationId: string;
4631
+ parentConversationId: string;
4632
+ parentToolCallId: string;
4633
+ subagentType: string;
4634
+ subagentKind: "agent" | "graph";
4635
+ depth: number;
4636
+ parentAgentId?: string | undefined;
4637
+ }>>;
3836
4638
  region: z.ZodOptional<z.ZodString>;
3837
4639
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3838
4640
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -3890,6 +4692,8 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3890
4692
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3891
4693
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3892
4694
  isArchived: z.ZodOptional<z.ZodBoolean>;
4695
+ /** When the chat was archived; absent on chats archived before this was recorded. */
4696
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3893
4697
  pinned: z.ZodOptional<z.ZodBoolean>;
3894
4698
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
3895
4699
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -3925,6 +4729,9 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3925
4729
  chatMenu: z.ZodOptional<z.ZodBoolean>;
3926
4730
  isButton: z.ZodOptional<z.ZodBoolean>;
3927
4731
  toolkit: z.ZodOptional<z.ZodBoolean>;
4732
+ /** Raw upstream tool name when the model-facing key stripped a redundant
4733
+ * server-name prefix — proves upstream identity for legacy id migration. */
4734
+ serverToolName: z.ZodOptional<z.ZodString>;
3928
4735
  }, "strip", z.ZodTypeAny, {
3929
4736
  name: string;
3930
4737
  pluginKey: string;
@@ -3941,6 +4748,7 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3941
4748
  chatMenu?: boolean | undefined;
3942
4749
  isButton?: boolean | undefined;
3943
4750
  toolkit?: boolean | undefined;
4751
+ serverToolName?: string | undefined;
3944
4752
  }, {
3945
4753
  name: string;
3946
4754
  pluginKey: string;
@@ -3957,6 +4765,7 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3957
4765
  chatMenu?: boolean | undefined;
3958
4766
  isButton?: boolean | undefined;
3959
4767
  toolkit?: boolean | undefined;
4768
+ serverToolName?: string | undefined;
3960
4769
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3961
4770
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3962
4771
  userLabel: z.ZodOptional<z.ZodString>;
@@ -4031,6 +4840,35 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4031
4840
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
4032
4841
  assistant_id: z.ZodOptional<z.ZodString>;
4033
4842
  agent_id: z.ZodOptional<z.ZodString>;
4843
+ /** Durable parent/child navigation for a subagent thread. */
4844
+ subagentThread: z.ZodOptional<z.ZodObject<{
4845
+ rootConversationId: z.ZodString;
4846
+ parentConversationId: z.ZodString;
4847
+ parentMessageId: z.ZodString;
4848
+ parentToolCallId: z.ZodString;
4849
+ parentAgentId: z.ZodOptional<z.ZodString>;
4850
+ subagentType: z.ZodString;
4851
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
4852
+ depth: z.ZodNumber;
4853
+ }, "strip", z.ZodTypeAny, {
4854
+ parentMessageId: string;
4855
+ rootConversationId: string;
4856
+ parentConversationId: string;
4857
+ parentToolCallId: string;
4858
+ subagentType: string;
4859
+ subagentKind: "agent" | "graph";
4860
+ depth: number;
4861
+ parentAgentId?: string | undefined;
4862
+ }, {
4863
+ parentMessageId: string;
4864
+ rootConversationId: string;
4865
+ parentConversationId: string;
4866
+ parentToolCallId: string;
4867
+ subagentType: string;
4868
+ subagentKind: "agent" | "graph";
4869
+ depth: number;
4870
+ parentAgentId?: string | undefined;
4871
+ }>>;
4034
4872
  region: z.ZodOptional<z.ZodString>;
4035
4873
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4036
4874
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -4120,6 +4958,8 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4120
4958
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4121
4959
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4122
4960
  isArchived: z.ZodOptional<z.ZodBoolean>;
4961
+ /** When the chat was archived; absent on chats archived before this was recorded. */
4962
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4123
4963
  pinned: z.ZodOptional<z.ZodBoolean>;
4124
4964
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4125
4965
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -4155,6 +4995,9 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4155
4995
  chatMenu: z.ZodOptional<z.ZodBoolean>;
4156
4996
  isButton: z.ZodOptional<z.ZodBoolean>;
4157
4997
  toolkit: z.ZodOptional<z.ZodBoolean>;
4998
+ /** Raw upstream tool name when the model-facing key stripped a redundant
4999
+ * server-name prefix — proves upstream identity for legacy id migration. */
5000
+ serverToolName: z.ZodOptional<z.ZodString>;
4158
5001
  }, "strip", z.ZodTypeAny, {
4159
5002
  name: string;
4160
5003
  pluginKey: string;
@@ -4171,6 +5014,7 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4171
5014
  chatMenu?: boolean | undefined;
4172
5015
  isButton?: boolean | undefined;
4173
5016
  toolkit?: boolean | undefined;
5017
+ serverToolName?: string | undefined;
4174
5018
  }, {
4175
5019
  name: string;
4176
5020
  pluginKey: string;
@@ -4187,6 +5031,7 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4187
5031
  chatMenu?: boolean | undefined;
4188
5032
  isButton?: boolean | undefined;
4189
5033
  toolkit?: boolean | undefined;
5034
+ serverToolName?: string | undefined;
4190
5035
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4191
5036
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4192
5037
  userLabel: z.ZodOptional<z.ZodString>;
@@ -4261,6 +5106,35 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
4261
5106
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
4262
5107
  assistant_id: z.ZodOptional<z.ZodString>;
4263
5108
  agent_id: z.ZodOptional<z.ZodString>;
5109
+ /** Durable parent/child navigation for a subagent thread. */
5110
+ subagentThread: z.ZodOptional<z.ZodObject<{
5111
+ rootConversationId: z.ZodString;
5112
+ parentConversationId: z.ZodString;
5113
+ parentMessageId: z.ZodString;
5114
+ parentToolCallId: z.ZodString;
5115
+ parentAgentId: z.ZodOptional<z.ZodString>;
5116
+ subagentType: z.ZodString;
5117
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
5118
+ depth: z.ZodNumber;
5119
+ }, "strip", z.ZodTypeAny, {
5120
+ parentMessageId: string;
5121
+ rootConversationId: string;
5122
+ parentConversationId: string;
5123
+ parentToolCallId: string;
5124
+ subagentType: string;
5125
+ subagentKind: "agent" | "graph";
5126
+ depth: number;
5127
+ parentAgentId?: string | undefined;
5128
+ }, {
5129
+ parentMessageId: string;
5130
+ rootConversationId: string;
5131
+ parentConversationId: string;
5132
+ parentToolCallId: string;
5133
+ subagentType: string;
5134
+ subagentKind: "agent" | "graph";
5135
+ depth: number;
5136
+ parentAgentId?: string | undefined;
5137
+ }>>;
4264
5138
  region: z.ZodOptional<z.ZodString>;
4265
5139
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4266
5140
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -4342,6 +5216,8 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4342
5216
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4343
5217
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4344
5218
  isArchived: z.ZodOptional<z.ZodBoolean>;
5219
+ /** When the chat was archived; absent on chats archived before this was recorded. */
5220
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4345
5221
  pinned: z.ZodOptional<z.ZodBoolean>;
4346
5222
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4347
5223
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -4377,6 +5253,9 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4377
5253
  chatMenu: z.ZodOptional<z.ZodBoolean>;
4378
5254
  isButton: z.ZodOptional<z.ZodBoolean>;
4379
5255
  toolkit: z.ZodOptional<z.ZodBoolean>;
5256
+ /** Raw upstream tool name when the model-facing key stripped a redundant
5257
+ * server-name prefix — proves upstream identity for legacy id migration. */
5258
+ serverToolName: z.ZodOptional<z.ZodString>;
4380
5259
  }, "strip", z.ZodTypeAny, {
4381
5260
  name: string;
4382
5261
  pluginKey: string;
@@ -4393,6 +5272,7 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4393
5272
  chatMenu?: boolean | undefined;
4394
5273
  isButton?: boolean | undefined;
4395
5274
  toolkit?: boolean | undefined;
5275
+ serverToolName?: string | undefined;
4396
5276
  }, {
4397
5277
  name: string;
4398
5278
  pluginKey: string;
@@ -4409,6 +5289,7 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4409
5289
  chatMenu?: boolean | undefined;
4410
5290
  isButton?: boolean | undefined;
4411
5291
  toolkit?: boolean | undefined;
5292
+ serverToolName?: string | undefined;
4412
5293
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4413
5294
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
5295
  userLabel: z.ZodOptional<z.ZodString>;
@@ -4483,6 +5364,35 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4483
5364
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
4484
5365
  assistant_id: z.ZodOptional<z.ZodString>;
4485
5366
  agent_id: z.ZodOptional<z.ZodString>;
5367
+ /** Durable parent/child navigation for a subagent thread. */
5368
+ subagentThread: z.ZodOptional<z.ZodObject<{
5369
+ rootConversationId: z.ZodString;
5370
+ parentConversationId: z.ZodString;
5371
+ parentMessageId: z.ZodString;
5372
+ parentToolCallId: z.ZodString;
5373
+ parentAgentId: z.ZodOptional<z.ZodString>;
5374
+ subagentType: z.ZodString;
5375
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
5376
+ depth: z.ZodNumber;
5377
+ }, "strip", z.ZodTypeAny, {
5378
+ parentMessageId: string;
5379
+ rootConversationId: string;
5380
+ parentConversationId: string;
5381
+ parentToolCallId: string;
5382
+ subagentType: string;
5383
+ subagentKind: "agent" | "graph";
5384
+ depth: number;
5385
+ parentAgentId?: string | undefined;
5386
+ }, {
5387
+ parentMessageId: string;
5388
+ rootConversationId: string;
5389
+ parentConversationId: string;
5390
+ parentToolCallId: string;
5391
+ subagentType: string;
5392
+ subagentKind: "agent" | "graph";
5393
+ depth: number;
5394
+ parentAgentId?: string | undefined;
5395
+ }>>;
4486
5396
  region: z.ZodOptional<z.ZodString>;
4487
5397
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4488
5398
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -4592,6 +5502,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4592
5502
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4593
5503
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4594
5504
  isArchived: z.ZodOptional<z.ZodBoolean>;
5505
+ /** When the chat was archived; absent on chats archived before this was recorded. */
5506
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4595
5507
  pinned: z.ZodOptional<z.ZodBoolean>;
4596
5508
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4597
5509
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -4627,6 +5539,9 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4627
5539
  chatMenu: z.ZodOptional<z.ZodBoolean>;
4628
5540
  isButton: z.ZodOptional<z.ZodBoolean>;
4629
5541
  toolkit: z.ZodOptional<z.ZodBoolean>;
5542
+ /** Raw upstream tool name when the model-facing key stripped a redundant
5543
+ * server-name prefix — proves upstream identity for legacy id migration. */
5544
+ serverToolName: z.ZodOptional<z.ZodString>;
4630
5545
  }, "strip", z.ZodTypeAny, {
4631
5546
  name: string;
4632
5547
  pluginKey: string;
@@ -4643,6 +5558,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4643
5558
  chatMenu?: boolean | undefined;
4644
5559
  isButton?: boolean | undefined;
4645
5560
  toolkit?: boolean | undefined;
5561
+ serverToolName?: string | undefined;
4646
5562
  }, {
4647
5563
  name: string;
4648
5564
  pluginKey: string;
@@ -4659,6 +5575,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4659
5575
  chatMenu?: boolean | undefined;
4660
5576
  isButton?: boolean | undefined;
4661
5577
  toolkit?: boolean | undefined;
5578
+ serverToolName?: string | undefined;
4662
5579
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4663
5580
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4664
5581
  userLabel: z.ZodOptional<z.ZodString>;
@@ -4733,6 +5650,35 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4733
5650
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
4734
5651
  assistant_id: z.ZodOptional<z.ZodString>;
4735
5652
  agent_id: z.ZodOptional<z.ZodString>;
5653
+ /** Durable parent/child navigation for a subagent thread. */
5654
+ subagentThread: z.ZodOptional<z.ZodObject<{
5655
+ rootConversationId: z.ZodString;
5656
+ parentConversationId: z.ZodString;
5657
+ parentMessageId: z.ZodString;
5658
+ parentToolCallId: z.ZodString;
5659
+ parentAgentId: z.ZodOptional<z.ZodString>;
5660
+ subagentType: z.ZodString;
5661
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
5662
+ depth: z.ZodNumber;
5663
+ }, "strip", z.ZodTypeAny, {
5664
+ parentMessageId: string;
5665
+ rootConversationId: string;
5666
+ parentConversationId: string;
5667
+ parentToolCallId: string;
5668
+ subagentType: string;
5669
+ subagentKind: "agent" | "graph";
5670
+ depth: number;
5671
+ parentAgentId?: string | undefined;
5672
+ }, {
5673
+ parentMessageId: string;
5674
+ rootConversationId: string;
5675
+ parentConversationId: string;
5676
+ parentToolCallId: string;
5677
+ subagentType: string;
5678
+ subagentKind: "agent" | "graph";
5679
+ depth: number;
5680
+ parentAgentId?: string | undefined;
5681
+ }>>;
4736
5682
  region: z.ZodOptional<z.ZodString>;
4737
5683
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4738
5684
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -4757,6 +5703,8 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4757
5703
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4758
5704
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4759
5705
  isArchived: z.ZodOptional<z.ZodBoolean>;
5706
+ /** When the chat was archived; absent on chats archived before this was recorded. */
5707
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4760
5708
  pinned: z.ZodOptional<z.ZodBoolean>;
4761
5709
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
4762
5710
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -4792,6 +5740,9 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4792
5740
  chatMenu: z.ZodOptional<z.ZodBoolean>;
4793
5741
  isButton: z.ZodOptional<z.ZodBoolean>;
4794
5742
  toolkit: z.ZodOptional<z.ZodBoolean>;
5743
+ /** Raw upstream tool name when the model-facing key stripped a redundant
5744
+ * server-name prefix — proves upstream identity for legacy id migration. */
5745
+ serverToolName: z.ZodOptional<z.ZodString>;
4795
5746
  }, "strip", z.ZodTypeAny, {
4796
5747
  name: string;
4797
5748
  pluginKey: string;
@@ -4808,6 +5759,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4808
5759
  chatMenu?: boolean | undefined;
4809
5760
  isButton?: boolean | undefined;
4810
5761
  toolkit?: boolean | undefined;
5762
+ serverToolName?: string | undefined;
4811
5763
  }, {
4812
5764
  name: string;
4813
5765
  pluginKey: string;
@@ -4824,6 +5776,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4824
5776
  chatMenu?: boolean | undefined;
4825
5777
  isButton?: boolean | undefined;
4826
5778
  toolkit?: boolean | undefined;
5779
+ serverToolName?: string | undefined;
4827
5780
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4828
5781
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4829
5782
  userLabel: z.ZodOptional<z.ZodString>;
@@ -4898,6 +5851,35 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
4898
5851
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
4899
5852
  assistant_id: z.ZodOptional<z.ZodString>;
4900
5853
  agent_id: z.ZodOptional<z.ZodString>;
5854
+ /** Durable parent/child navigation for a subagent thread. */
5855
+ subagentThread: z.ZodOptional<z.ZodObject<{
5856
+ rootConversationId: z.ZodString;
5857
+ parentConversationId: z.ZodString;
5858
+ parentMessageId: z.ZodString;
5859
+ parentToolCallId: z.ZodString;
5860
+ parentAgentId: z.ZodOptional<z.ZodString>;
5861
+ subagentType: z.ZodString;
5862
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
5863
+ depth: z.ZodNumber;
5864
+ }, "strip", z.ZodTypeAny, {
5865
+ parentMessageId: string;
5866
+ rootConversationId: string;
5867
+ parentConversationId: string;
5868
+ parentToolCallId: string;
5869
+ subagentType: string;
5870
+ subagentKind: "agent" | "graph";
5871
+ depth: number;
5872
+ parentAgentId?: string | undefined;
5873
+ }, {
5874
+ parentMessageId: string;
5875
+ rootConversationId: string;
5876
+ parentConversationId: string;
5877
+ parentToolCallId: string;
5878
+ subagentType: string;
5879
+ subagentKind: "agent" | "graph";
5880
+ depth: number;
5881
+ parentAgentId?: string | undefined;
5882
+ }>>;
4901
5883
  region: z.ZodOptional<z.ZodString>;
4902
5884
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4903
5885
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -5013,6 +5995,8 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5013
5995
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5014
5996
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
5015
5997
  isArchived: z.ZodOptional<z.ZodBoolean>;
5998
+ /** When the chat was archived; absent on chats archived before this was recorded. */
5999
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5016
6000
  pinned: z.ZodOptional<z.ZodBoolean>;
5017
6001
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5018
6002
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -5048,6 +6032,9 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5048
6032
  chatMenu: z.ZodOptional<z.ZodBoolean>;
5049
6033
  isButton: z.ZodOptional<z.ZodBoolean>;
5050
6034
  toolkit: z.ZodOptional<z.ZodBoolean>;
6035
+ /** Raw upstream tool name when the model-facing key stripped a redundant
6036
+ * server-name prefix — proves upstream identity for legacy id migration. */
6037
+ serverToolName: z.ZodOptional<z.ZodString>;
5051
6038
  }, "strip", z.ZodTypeAny, {
5052
6039
  name: string;
5053
6040
  pluginKey: string;
@@ -5064,6 +6051,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5064
6051
  chatMenu?: boolean | undefined;
5065
6052
  isButton?: boolean | undefined;
5066
6053
  toolkit?: boolean | undefined;
6054
+ serverToolName?: string | undefined;
5067
6055
  }, {
5068
6056
  name: string;
5069
6057
  pluginKey: string;
@@ -5080,6 +6068,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5080
6068
  chatMenu?: boolean | undefined;
5081
6069
  isButton?: boolean | undefined;
5082
6070
  toolkit?: boolean | undefined;
6071
+ serverToolName?: string | undefined;
5083
6072
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
5084
6073
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5085
6074
  userLabel: z.ZodOptional<z.ZodString>;
@@ -5154,6 +6143,35 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5154
6143
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
5155
6144
  assistant_id: z.ZodOptional<z.ZodString>;
5156
6145
  agent_id: z.ZodOptional<z.ZodString>;
6146
+ /** Durable parent/child navigation for a subagent thread. */
6147
+ subagentThread: z.ZodOptional<z.ZodObject<{
6148
+ rootConversationId: z.ZodString;
6149
+ parentConversationId: z.ZodString;
6150
+ parentMessageId: z.ZodString;
6151
+ parentToolCallId: z.ZodString;
6152
+ parentAgentId: z.ZodOptional<z.ZodString>;
6153
+ subagentType: z.ZodString;
6154
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
6155
+ depth: z.ZodNumber;
6156
+ }, "strip", z.ZodTypeAny, {
6157
+ parentMessageId: string;
6158
+ rootConversationId: string;
6159
+ parentConversationId: string;
6160
+ parentToolCallId: string;
6161
+ subagentType: string;
6162
+ subagentKind: "agent" | "graph";
6163
+ depth: number;
6164
+ parentAgentId?: string | undefined;
6165
+ }, {
6166
+ parentMessageId: string;
6167
+ rootConversationId: string;
6168
+ parentConversationId: string;
6169
+ parentToolCallId: string;
6170
+ subagentType: string;
6171
+ subagentKind: "agent" | "graph";
6172
+ depth: number;
6173
+ parentAgentId?: string | undefined;
6174
+ }>>;
5157
6175
  region: z.ZodOptional<z.ZodString>;
5158
6176
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
5159
6177
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -5173,7 +6191,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5173
6191
  resendImages: z.ZodOptional<z.ZodBoolean>;
5174
6192
  /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
5175
6193
  chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5176
- }, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "chatProjectId" | "web_search" | "url_context" | "greeting" | "spec" | "iconURL" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
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, {
5177
6195
  model?: string | null | undefined;
5178
6196
  modelLabel?: string | null | undefined;
5179
6197
  promptPrefix?: string | null | undefined;
@@ -5195,6 +6213,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5195
6213
  };
5196
6214
  }[] | undefined;
5197
6215
  chatProjectId?: string | null | undefined;
6216
+ resendFiles?: boolean | undefined;
5198
6217
  web_search?: boolean | undefined;
5199
6218
  url_context?: boolean | undefined;
5200
6219
  greeting?: string | undefined;
@@ -5223,6 +6242,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5223
6242
  };
5224
6243
  }[] | undefined;
5225
6244
  chatProjectId?: string | null | undefined;
6245
+ resendFiles?: boolean | undefined;
5226
6246
  web_search?: boolean | undefined;
5227
6247
  url_context?: boolean | undefined;
5228
6248
  greeting?: string | undefined;
@@ -5251,6 +6271,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5251
6271
  };
5252
6272
  }[] | undefined;
5253
6273
  chatProjectId?: string | null | undefined;
6274
+ resendFiles?: boolean | undefined;
5254
6275
  web_search?: boolean | undefined;
5255
6276
  url_context?: boolean | undefined;
5256
6277
  greeting?: string | undefined;
@@ -5263,6 +6284,8 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
5263
6284
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5264
6285
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
5265
6286
  isArchived: z.ZodOptional<z.ZodBoolean>;
6287
+ /** When the chat was archived; absent on chats archived before this was recorded. */
6288
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5266
6289
  pinned: z.ZodOptional<z.ZodBoolean>;
5267
6290
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5268
6291
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -5298,6 +6321,9 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
5298
6321
  chatMenu: z.ZodOptional<z.ZodBoolean>;
5299
6322
  isButton: z.ZodOptional<z.ZodBoolean>;
5300
6323
  toolkit: z.ZodOptional<z.ZodBoolean>;
6324
+ /** Raw upstream tool name when the model-facing key stripped a redundant
6325
+ * server-name prefix — proves upstream identity for legacy id migration. */
6326
+ serverToolName: z.ZodOptional<z.ZodString>;
5301
6327
  }, "strip", z.ZodTypeAny, {
5302
6328
  name: string;
5303
6329
  pluginKey: string;
@@ -5314,6 +6340,7 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
5314
6340
  chatMenu?: boolean | undefined;
5315
6341
  isButton?: boolean | undefined;
5316
6342
  toolkit?: boolean | undefined;
6343
+ serverToolName?: string | undefined;
5317
6344
  }, {
5318
6345
  name: string;
5319
6346
  pluginKey: string;
@@ -5330,6 +6357,7 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
5330
6357
  chatMenu?: boolean | undefined;
5331
6358
  isButton?: boolean | undefined;
5332
6359
  toolkit?: boolean | undefined;
6360
+ serverToolName?: string | undefined;
5333
6361
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
5334
6362
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5335
6363
  userLabel: z.ZodOptional<z.ZodString>;
@@ -5404,6 +6432,35 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
5404
6432
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
5405
6433
  assistant_id: z.ZodOptional<z.ZodString>;
5406
6434
  agent_id: z.ZodOptional<z.ZodString>;
6435
+ /** Durable parent/child navigation for a subagent thread. */
6436
+ subagentThread: z.ZodOptional<z.ZodObject<{
6437
+ rootConversationId: z.ZodString;
6438
+ parentConversationId: z.ZodString;
6439
+ parentMessageId: z.ZodString;
6440
+ parentToolCallId: z.ZodString;
6441
+ parentAgentId: z.ZodOptional<z.ZodString>;
6442
+ subagentType: z.ZodString;
6443
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
6444
+ depth: z.ZodNumber;
6445
+ }, "strip", z.ZodTypeAny, {
6446
+ parentMessageId: string;
6447
+ rootConversationId: string;
6448
+ parentConversationId: string;
6449
+ parentToolCallId: string;
6450
+ subagentType: string;
6451
+ subagentKind: "agent" | "graph";
6452
+ depth: number;
6453
+ parentAgentId?: string | undefined;
6454
+ }, {
6455
+ parentMessageId: string;
6456
+ rootConversationId: string;
6457
+ parentConversationId: string;
6458
+ parentToolCallId: string;
6459
+ subagentType: string;
6460
+ subagentKind: "agent" | "graph";
6461
+ depth: number;
6462
+ parentAgentId?: string | undefined;
6463
+ }>>;
5407
6464
  region: z.ZodOptional<z.ZodString>;
5408
6465
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
5409
6466
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -5479,6 +6536,8 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5479
6536
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5480
6537
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
5481
6538
  isArchived: z.ZodOptional<z.ZodBoolean>;
6539
+ /** When the chat was archived; absent on chats archived before this was recorded. */
6540
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5482
6541
  pinned: z.ZodOptional<z.ZodBoolean>;
5483
6542
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5484
6543
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -5514,6 +6573,9 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5514
6573
  chatMenu: z.ZodOptional<z.ZodBoolean>;
5515
6574
  isButton: z.ZodOptional<z.ZodBoolean>;
5516
6575
  toolkit: z.ZodOptional<z.ZodBoolean>;
6576
+ /** Raw upstream tool name when the model-facing key stripped a redundant
6577
+ * server-name prefix — proves upstream identity for legacy id migration. */
6578
+ serverToolName: z.ZodOptional<z.ZodString>;
5517
6579
  }, "strip", z.ZodTypeAny, {
5518
6580
  name: string;
5519
6581
  pluginKey: string;
@@ -5530,6 +6592,7 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5530
6592
  chatMenu?: boolean | undefined;
5531
6593
  isButton?: boolean | undefined;
5532
6594
  toolkit?: boolean | undefined;
6595
+ serverToolName?: string | undefined;
5533
6596
  }, {
5534
6597
  name: string;
5535
6598
  pluginKey: string;
@@ -5546,6 +6609,7 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5546
6609
  chatMenu?: boolean | undefined;
5547
6610
  isButton?: boolean | undefined;
5548
6611
  toolkit?: boolean | undefined;
6612
+ serverToolName?: string | undefined;
5549
6613
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
5550
6614
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5551
6615
  userLabel: z.ZodOptional<z.ZodString>;
@@ -5620,6 +6684,35 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
5620
6684
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
5621
6685
  assistant_id: z.ZodOptional<z.ZodString>;
5622
6686
  agent_id: z.ZodOptional<z.ZodString>;
6687
+ /** Durable parent/child navigation for a subagent thread. */
6688
+ subagentThread: z.ZodOptional<z.ZodObject<{
6689
+ rootConversationId: z.ZodString;
6690
+ parentConversationId: z.ZodString;
6691
+ parentMessageId: z.ZodString;
6692
+ parentToolCallId: z.ZodString;
6693
+ parentAgentId: z.ZodOptional<z.ZodString>;
6694
+ subagentType: z.ZodString;
6695
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
6696
+ depth: z.ZodNumber;
6697
+ }, "strip", z.ZodTypeAny, {
6698
+ parentMessageId: string;
6699
+ rootConversationId: string;
6700
+ parentConversationId: string;
6701
+ parentToolCallId: string;
6702
+ subagentType: string;
6703
+ subagentKind: "agent" | "graph";
6704
+ depth: number;
6705
+ parentAgentId?: string | undefined;
6706
+ }, {
6707
+ parentMessageId: string;
6708
+ rootConversationId: string;
6709
+ parentConversationId: string;
6710
+ parentToolCallId: string;
6711
+ subagentType: string;
6712
+ subagentKind: "agent" | "graph";
6713
+ depth: number;
6714
+ parentAgentId?: string | undefined;
6715
+ }>>;
5623
6716
  region: z.ZodOptional<z.ZodString>;
5624
6717
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
5625
6718
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -5774,6 +6867,8 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
5774
6867
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5775
6868
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
5776
6869
  isArchived: z.ZodOptional<z.ZodBoolean>;
6870
+ /** When the chat was archived; absent on chats archived before this was recorded. */
6871
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5777
6872
  pinned: z.ZodOptional<z.ZodBoolean>;
5778
6873
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5779
6874
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -5809,6 +6904,9 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
5809
6904
  chatMenu: z.ZodOptional<z.ZodBoolean>;
5810
6905
  isButton: z.ZodOptional<z.ZodBoolean>;
5811
6906
  toolkit: z.ZodOptional<z.ZodBoolean>;
6907
+ /** Raw upstream tool name when the model-facing key stripped a redundant
6908
+ * server-name prefix — proves upstream identity for legacy id migration. */
6909
+ serverToolName: z.ZodOptional<z.ZodString>;
5812
6910
  }, "strip", z.ZodTypeAny, {
5813
6911
  name: string;
5814
6912
  pluginKey: string;
@@ -5825,6 +6923,7 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
5825
6923
  chatMenu?: boolean | undefined;
5826
6924
  isButton?: boolean | undefined;
5827
6925
  toolkit?: boolean | undefined;
6926
+ serverToolName?: string | undefined;
5828
6927
  }, {
5829
6928
  name: string;
5830
6929
  pluginKey: string;
@@ -5841,6 +6940,7 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
5841
6940
  chatMenu?: boolean | undefined;
5842
6941
  isButton?: boolean | undefined;
5843
6942
  toolkit?: boolean | undefined;
6943
+ serverToolName?: string | undefined;
5844
6944
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
5845
6945
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5846
6946
  userLabel: z.ZodOptional<z.ZodString>;
@@ -5915,6 +7015,35 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
5915
7015
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
5916
7016
  assistant_id: z.ZodOptional<z.ZodString>;
5917
7017
  agent_id: z.ZodOptional<z.ZodString>;
7018
+ /** Durable parent/child navigation for a subagent thread. */
7019
+ subagentThread: z.ZodOptional<z.ZodObject<{
7020
+ rootConversationId: z.ZodString;
7021
+ parentConversationId: z.ZodString;
7022
+ parentMessageId: z.ZodString;
7023
+ parentToolCallId: z.ZodString;
7024
+ parentAgentId: z.ZodOptional<z.ZodString>;
7025
+ subagentType: z.ZodString;
7026
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
7027
+ depth: z.ZodNumber;
7028
+ }, "strip", z.ZodTypeAny, {
7029
+ parentMessageId: string;
7030
+ rootConversationId: string;
7031
+ parentConversationId: string;
7032
+ parentToolCallId: string;
7033
+ subagentType: string;
7034
+ subagentKind: "agent" | "graph";
7035
+ depth: number;
7036
+ parentAgentId?: string | undefined;
7037
+ }, {
7038
+ parentMessageId: string;
7039
+ rootConversationId: string;
7040
+ parentConversationId: string;
7041
+ parentToolCallId: string;
7042
+ subagentType: string;
7043
+ subagentKind: "agent" | "graph";
7044
+ depth: number;
7045
+ parentAgentId?: string | undefined;
7046
+ }>>;
5918
7047
  region: z.ZodOptional<z.ZodString>;
5919
7048
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
5920
7049
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
@@ -5956,6 +7085,8 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5956
7085
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
5957
7086
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
5958
7087
  isArchived: z.ZodOptional<z.ZodBoolean>;
7088
+ /** When the chat was archived; absent on chats archived before this was recorded. */
7089
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5959
7090
  pinned: z.ZodOptional<z.ZodBoolean>;
5960
7091
  /** Server-derived: an active shared link exists for this conversation. Not persisted. */
5961
7092
  isShared: z.ZodOptional<z.ZodBoolean>;
@@ -5991,6 +7122,9 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
5991
7122
  chatMenu: z.ZodOptional<z.ZodBoolean>;
5992
7123
  isButton: z.ZodOptional<z.ZodBoolean>;
5993
7124
  toolkit: z.ZodOptional<z.ZodBoolean>;
7125
+ /** Raw upstream tool name when the model-facing key stripped a redundant
7126
+ * server-name prefix — proves upstream identity for legacy id migration. */
7127
+ serverToolName: z.ZodOptional<z.ZodString>;
5994
7128
  }, "strip", z.ZodTypeAny, {
5995
7129
  name: string;
5996
7130
  pluginKey: string;
@@ -6007,6 +7141,7 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6007
7141
  chatMenu?: boolean | undefined;
6008
7142
  isButton?: boolean | undefined;
6009
7143
  toolkit?: boolean | undefined;
7144
+ serverToolName?: string | undefined;
6010
7145
  }, {
6011
7146
  name: string;
6012
7147
  pluginKey: string;
@@ -6023,6 +7158,7 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6023
7158
  chatMenu?: boolean | undefined;
6024
7159
  isButton?: boolean | undefined;
6025
7160
  toolkit?: boolean | undefined;
7161
+ serverToolName?: string | undefined;
6026
7162
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
6027
7163
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6028
7164
  userLabel: z.ZodOptional<z.ZodString>;
@@ -6097,6 +7233,35 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
6097
7233
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
6098
7234
  assistant_id: z.ZodOptional<z.ZodString>;
6099
7235
  agent_id: z.ZodOptional<z.ZodString>;
7236
+ /** Durable parent/child navigation for a subagent thread. */
7237
+ subagentThread: z.ZodOptional<z.ZodObject<{
7238
+ rootConversationId: z.ZodString;
7239
+ parentConversationId: z.ZodString;
7240
+ parentMessageId: z.ZodString;
7241
+ parentToolCallId: z.ZodString;
7242
+ parentAgentId: z.ZodOptional<z.ZodString>;
7243
+ subagentType: z.ZodString;
7244
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
7245
+ depth: z.ZodNumber;
7246
+ }, "strip", z.ZodTypeAny, {
7247
+ parentMessageId: string;
7248
+ rootConversationId: string;
7249
+ parentConversationId: string;
7250
+ parentToolCallId: string;
7251
+ subagentType: string;
7252
+ subagentKind: "agent" | "graph";
7253
+ depth: number;
7254
+ parentAgentId?: string | undefined;
7255
+ }, {
7256
+ parentMessageId: string;
7257
+ rootConversationId: string;
7258
+ parentConversationId: string;
7259
+ parentToolCallId: string;
7260
+ subagentType: string;
7261
+ subagentKind: "agent" | "graph";
7262
+ depth: number;
7263
+ parentAgentId?: string | undefined;
7264
+ }>>;
6100
7265
  region: z.ZodOptional<z.ZodString>;
6101
7266
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
6102
7267
  additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;