librechat-data-provider 0.8.509 → 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 (61) hide show
  1. package/dist/{data-service-BsdHkdKS.mjs → data-service-CaB7saTP.mjs} +2175 -113
  2. package/dist/data-service-CaB7saTP.mjs.map +1 -0
  3. package/dist/{data-service-XTxx76uB.js → data-service-D5kHzBt-.js} +2806 -150
  4. package/dist/data-service-D5kHzBt-.js.map +1 -0
  5. package/dist/index.js +1403 -92
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +1248 -93
  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 +3 -3
  15. package/dist/types/agentToolOptions.d.ts +11 -0
  16. package/dist/types/api-endpoints.d.ts +28 -2
  17. package/dist/types/bedrock.d.ts +220 -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 +13457 -1573
  21. package/dist/types/data-service.d.ts +65 -14
  22. package/dist/types/feedback.d.ts +9 -1
  23. package/dist/types/file-config.d.ts +42 -5
  24. package/dist/types/filters.d.ts +1422 -0
  25. package/dist/types/generate.d.ts +85 -1
  26. package/dist/types/index.d.ts +10 -0
  27. package/dist/types/keys.d.ts +29 -4
  28. package/dist/types/langchain.d.ts +4 -0
  29. package/dist/types/limits.d.ts +13 -0
  30. package/dist/types/mcp.d.ts +338 -228
  31. package/dist/types/messages.d.ts +13 -0
  32. package/dist/types/models.d.ts +840 -68
  33. package/dist/types/parameterSettings.d.ts +7 -3
  34. package/dist/types/parsers.d.ts +13 -1
  35. package/dist/types/permissions.d.ts +42 -1
  36. package/dist/types/providers.d.ts +36 -0
  37. package/dist/types/react-query/react-query-service.d.ts +2 -7
  38. package/dist/types/request.d.ts +4 -2
  39. package/dist/types/roles.d.ts +34 -0
  40. package/dist/types/runSteps.d.ts +59 -0
  41. package/dist/types/schemas.d.ts +1358 -34
  42. package/dist/types/stateful-code.d.ts +7 -0
  43. package/dist/types/types/agents.d.ts +303 -8
  44. package/dist/types/types/assistants.d.ts +170 -7
  45. package/dist/types/types/files.d.ts +29 -8
  46. package/dist/types/types/index.d.ts +2 -0
  47. package/dist/types/types/insights.d.ts +62 -0
  48. package/dist/types/types/mcpServers.d.ts +25 -0
  49. package/dist/types/types/mutations.d.ts +2 -0
  50. package/dist/types/types/queries.d.ts +47 -5
  51. package/dist/types/types/queuedTurns.d.ts +870 -0
  52. package/dist/types/types/runs.d.ts +206 -26
  53. package/dist/types/types/schedules.d.ts +306 -0
  54. package/dist/types/types/skills.d.ts +34 -6
  55. package/dist/types/types/subagents.d.ts +159 -0
  56. package/dist/types/types/web.d.ts +12 -2
  57. package/dist/types/types.d.ts +175 -2
  58. package/dist/types/upload.d.ts +2 -0
  59. package/package.json +7 -5
  60. package/dist/data-service-BsdHkdKS.mjs.map +0 -1
  61. package/dist/data-service-XTxx76uB.js.map +0 -1
@@ -22,14 +22,61 @@ export declare function supportsAdaptiveThinking(model: string): boolean;
22
22
  */
23
23
  export declare function omitsThinkingByDefault(model: string): boolean;
24
24
  export declare function omitsSamplingParameters(model: string): boolean;
25
+ /**
26
+ * Whether disabling thinking requires sending an explicit `{ type: 'disabled' }`
27
+ * config rather than simply omitting the `thinking` field.
28
+ *
29
+ * Sonnet 5 and Opus 5 treat an omitted `thinking` field as adaptive thinking ON
30
+ * by default, so honoring a user who turns thinking off means sending the
31
+ * disabled config explicitly. Opus 4.7/4.8 run without thinking when the field
32
+ * is omitted, and Fable/Mythos reject an explicit disabled config (400,
33
+ * thinking always on), so both are excluded.
34
+ *
35
+ * See https://platform.claude.com/docs/en/about-claude/models/migration-guide#migrating-to-claude-sonnet-5
36
+ */
37
+ export declare function requiresExplicitThinkingDisabled(model: string): boolean;
38
+ /**
39
+ * Whether the model caps `output_config.effort` while thinking is disabled.
40
+ *
41
+ * Opus 5 rejects `xhigh`/`max` in that combination with a 400: "output_config
42
+ * .effort 'xhigh' is not supported when thinking is disabled on this model. Use
43
+ * effort 'high' or below, or enable thinking." Opus 4.7/4.8, Sonnet 5, and
44
+ * Sonnet 4.6 accept every effort level they otherwise support with thinking
45
+ * off, so the cap is Opus 5+ only.
46
+ */
47
+ export declare function capsEffortWhenThinkingDisabled(model: string): boolean;
48
+ /**
49
+ * Lowers an effort level the model would reject while thinking is disabled to
50
+ * the highest accepted value (`high`, which is also the API default). Returns
51
+ * the effort unchanged when the combination is valid.
52
+ */
53
+ export declare function clampEffortForDisabledThinking(model: string, effort: string): string;
54
+ /**
55
+ * Clamps an `output_config.effort` in place when the model would reject it
56
+ * while thinking is disabled. No-op when the container carries no string
57
+ * effort, so callers can pass a possibly-absent config directly.
58
+ */
59
+ export declare function clampOutputConfigEffort(model: string, outputConfig: unknown): void;
60
+ /** Whether a resolved thinking config is an explicit `{ type: 'disabled' }`. */
61
+ export declare function isThinkingDisabled(thinking: unknown): boolean;
25
62
  /** Checks if a model has a 1M context window (Sonnet 4.6+, Opus 4.6+, Opus 5+, Fable/Mythos) */
26
63
  export declare function supportsContext1m(model: string): boolean;
64
+ /**
65
+ * Checks whether a native Anthropic Claude model supports prompt caching.
66
+ *
67
+ * This uses the configured model ID directly. Resolving it through a token
68
+ * map first can collapse a newly released Claude model to the generic
69
+ * `claude-` fallback and incorrectly disable cache control.
70
+ */
71
+ export declare function supportsPromptCache(model: string): boolean;
27
72
  export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
28
73
  conversationId: z.ZodNullable<z.ZodString>;
29
74
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
30
75
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
31
76
  isArchived: z.ZodOptional<z.ZodBoolean>;
77
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
78
  pinned: z.ZodOptional<z.ZodBoolean>;
79
+ isShared: z.ZodOptional<z.ZodBoolean>;
33
80
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
34
81
  user: z.ZodOptional<z.ZodString>;
35
82
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -61,6 +108,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
61
108
  chatMenu: z.ZodOptional<z.ZodBoolean>;
62
109
  isButton: z.ZodOptional<z.ZodBoolean>;
63
110
  toolkit: z.ZodOptional<z.ZodBoolean>;
111
+ serverToolName: z.ZodOptional<z.ZodString>;
64
112
  }, "strip", z.ZodTypeAny, {
65
113
  name: string;
66
114
  pluginKey: string;
@@ -77,6 +125,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
77
125
  chatMenu?: boolean | undefined;
78
126
  isButton?: boolean | undefined;
79
127
  toolkit?: boolean | undefined;
128
+ serverToolName?: string | undefined;
80
129
  }, {
81
130
  name: string;
82
131
  pluginKey: string;
@@ -93,6 +142,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
93
142
  chatMenu?: boolean | undefined;
94
143
  isButton?: boolean | undefined;
95
144
  toolkit?: boolean | undefined;
145
+ serverToolName?: string | undefined;
96
146
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
97
147
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
148
  userLabel: z.ZodOptional<z.ZodString>;
@@ -156,6 +206,8 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
156
206
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof s.ImageDetail>>;
157
207
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningEffort>>>;
158
208
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningSummary>>>;
209
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningMode>>>;
210
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningContext>>>;
159
211
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.Verbosity>>>;
160
212
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
161
213
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.AnthropicEffort>>>;
@@ -165,6 +217,34 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
165
217
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
166
218
  assistant_id: z.ZodOptional<z.ZodString>;
167
219
  agent_id: z.ZodOptional<z.ZodString>;
220
+ subagentThread: z.ZodOptional<z.ZodObject<{
221
+ rootConversationId: z.ZodString;
222
+ parentConversationId: z.ZodString;
223
+ parentMessageId: z.ZodString;
224
+ parentToolCallId: z.ZodString;
225
+ parentAgentId: z.ZodOptional<z.ZodString>;
226
+ subagentType: z.ZodString;
227
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
228
+ depth: z.ZodNumber;
229
+ }, "strip", z.ZodTypeAny, {
230
+ parentMessageId: string;
231
+ rootConversationId: string;
232
+ parentConversationId: string;
233
+ parentToolCallId: string;
234
+ subagentType: string;
235
+ subagentKind: "agent" | "graph";
236
+ depth: number;
237
+ parentAgentId?: string | undefined;
238
+ }, {
239
+ parentMessageId: string;
240
+ rootConversationId: string;
241
+ parentConversationId: string;
242
+ parentToolCallId: string;
243
+ subagentType: string;
244
+ subagentKind: "agent" | "graph";
245
+ depth: number;
246
+ parentAgentId?: string | undefined;
247
+ }>>;
168
248
  region: z.ZodOptional<z.ZodString>;
169
249
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
170
250
  additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
@@ -440,7 +520,9 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
440
520
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
441
521
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
442
522
  isArchived: z.ZodOptional<z.ZodBoolean>;
523
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
524
  pinned: z.ZodOptional<z.ZodBoolean>;
525
+ isShared: z.ZodOptional<z.ZodBoolean>;
444
526
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
445
527
  user: z.ZodOptional<z.ZodString>;
446
528
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -472,6 +554,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
472
554
  chatMenu: z.ZodOptional<z.ZodBoolean>;
473
555
  isButton: z.ZodOptional<z.ZodBoolean>;
474
556
  toolkit: z.ZodOptional<z.ZodBoolean>;
557
+ serverToolName: z.ZodOptional<z.ZodString>;
475
558
  }, "strip", z.ZodTypeAny, {
476
559
  name: string;
477
560
  pluginKey: string;
@@ -488,6 +571,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
488
571
  chatMenu?: boolean | undefined;
489
572
  isButton?: boolean | undefined;
490
573
  toolkit?: boolean | undefined;
574
+ serverToolName?: string | undefined;
491
575
  }, {
492
576
  name: string;
493
577
  pluginKey: string;
@@ -504,6 +588,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
504
588
  chatMenu?: boolean | undefined;
505
589
  isButton?: boolean | undefined;
506
590
  toolkit?: boolean | undefined;
591
+ serverToolName?: string | undefined;
507
592
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
508
593
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
594
  userLabel: z.ZodOptional<z.ZodString>;
@@ -567,6 +652,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
567
652
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof s.ImageDetail>>;
568
653
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningEffort>>>;
569
654
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningSummary>>>;
655
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningMode>>>;
656
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningContext>>>;
570
657
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.Verbosity>>>;
571
658
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
572
659
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.AnthropicEffort>>>;
@@ -576,6 +663,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
576
663
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
577
664
  assistant_id: z.ZodOptional<z.ZodString>;
578
665
  agent_id: z.ZodOptional<z.ZodString>;
666
+ subagentThread: z.ZodOptional<z.ZodObject<{
667
+ rootConversationId: z.ZodString;
668
+ parentConversationId: z.ZodString;
669
+ parentMessageId: z.ZodString;
670
+ parentToolCallId: z.ZodString;
671
+ parentAgentId: z.ZodOptional<z.ZodString>;
672
+ subagentType: z.ZodString;
673
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
674
+ depth: z.ZodNumber;
675
+ }, "strip", z.ZodTypeAny, {
676
+ parentMessageId: string;
677
+ rootConversationId: string;
678
+ parentConversationId: string;
679
+ parentToolCallId: string;
680
+ subagentType: string;
681
+ subagentKind: "agent" | "graph";
682
+ depth: number;
683
+ parentAgentId?: string | undefined;
684
+ }, {
685
+ parentMessageId: string;
686
+ rootConversationId: string;
687
+ parentConversationId: string;
688
+ parentToolCallId: string;
689
+ subagentType: string;
690
+ subagentKind: "agent" | "graph";
691
+ depth: number;
692
+ parentAgentId?: string | undefined;
693
+ }>>;
579
694
  region: z.ZodOptional<z.ZodString>;
580
695
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
581
696
  additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
@@ -645,7 +760,9 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
645
760
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
646
761
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
647
762
  isArchived: z.ZodOptional<z.ZodBoolean>;
763
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
764
  pinned: z.ZodOptional<z.ZodBoolean>;
765
+ isShared: z.ZodOptional<z.ZodBoolean>;
649
766
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
650
767
  user: z.ZodOptional<z.ZodString>;
651
768
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -677,6 +794,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
677
794
  chatMenu: z.ZodOptional<z.ZodBoolean>;
678
795
  isButton: z.ZodOptional<z.ZodBoolean>;
679
796
  toolkit: z.ZodOptional<z.ZodBoolean>;
797
+ serverToolName: z.ZodOptional<z.ZodString>;
680
798
  }, "strip", z.ZodTypeAny, {
681
799
  name: string;
682
800
  pluginKey: string;
@@ -693,6 +811,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
693
811
  chatMenu?: boolean | undefined;
694
812
  isButton?: boolean | undefined;
695
813
  toolkit?: boolean | undefined;
814
+ serverToolName?: string | undefined;
696
815
  }, {
697
816
  name: string;
698
817
  pluginKey: string;
@@ -709,6 +828,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
709
828
  chatMenu?: boolean | undefined;
710
829
  isButton?: boolean | undefined;
711
830
  toolkit?: boolean | undefined;
831
+ serverToolName?: string | undefined;
712
832
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
713
833
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
834
  userLabel: z.ZodOptional<z.ZodString>;
@@ -772,6 +892,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
772
892
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof s.ImageDetail>>;
773
893
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningEffort>>>;
774
894
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningSummary>>>;
895
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningMode>>>;
896
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningContext>>>;
775
897
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.Verbosity>>>;
776
898
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
777
899
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.AnthropicEffort>>>;
@@ -781,6 +903,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
781
903
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
782
904
  assistant_id: z.ZodOptional<z.ZodString>;
783
905
  agent_id: z.ZodOptional<z.ZodString>;
906
+ subagentThread: z.ZodOptional<z.ZodObject<{
907
+ rootConversationId: z.ZodString;
908
+ parentConversationId: z.ZodString;
909
+ parentMessageId: z.ZodString;
910
+ parentToolCallId: z.ZodString;
911
+ parentAgentId: z.ZodOptional<z.ZodString>;
912
+ subagentType: z.ZodString;
913
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
914
+ depth: z.ZodNumber;
915
+ }, "strip", z.ZodTypeAny, {
916
+ parentMessageId: string;
917
+ rootConversationId: string;
918
+ parentConversationId: string;
919
+ parentToolCallId: string;
920
+ subagentType: string;
921
+ subagentKind: "agent" | "graph";
922
+ depth: number;
923
+ parentAgentId?: string | undefined;
924
+ }, {
925
+ parentMessageId: string;
926
+ rootConversationId: string;
927
+ parentConversationId: string;
928
+ parentToolCallId: string;
929
+ subagentType: string;
930
+ subagentKind: "agent" | "graph";
931
+ depth: number;
932
+ parentAgentId?: string | undefined;
933
+ }>>;
784
934
  region: z.ZodOptional<z.ZodString>;
785
935
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
786
936
  additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
@@ -850,7 +1000,9 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
850
1000
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
851
1001
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
852
1002
  isArchived: z.ZodOptional<z.ZodBoolean>;
1003
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
1004
  pinned: z.ZodOptional<z.ZodBoolean>;
1005
+ isShared: z.ZodOptional<z.ZodBoolean>;
854
1006
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
855
1007
  user: z.ZodOptional<z.ZodString>;
856
1008
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -882,6 +1034,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
882
1034
  chatMenu: z.ZodOptional<z.ZodBoolean>;
883
1035
  isButton: z.ZodOptional<z.ZodBoolean>;
884
1036
  toolkit: z.ZodOptional<z.ZodBoolean>;
1037
+ serverToolName: z.ZodOptional<z.ZodString>;
885
1038
  }, "strip", z.ZodTypeAny, {
886
1039
  name: string;
887
1040
  pluginKey: string;
@@ -898,6 +1051,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
898
1051
  chatMenu?: boolean | undefined;
899
1052
  isButton?: boolean | undefined;
900
1053
  toolkit?: boolean | undefined;
1054
+ serverToolName?: string | undefined;
901
1055
  }, {
902
1056
  name: string;
903
1057
  pluginKey: string;
@@ -914,6 +1068,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
914
1068
  chatMenu?: boolean | undefined;
915
1069
  isButton?: boolean | undefined;
916
1070
  toolkit?: boolean | undefined;
1071
+ serverToolName?: string | undefined;
917
1072
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
918
1073
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
1074
  userLabel: z.ZodOptional<z.ZodString>;
@@ -977,6 +1132,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
977
1132
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof s.ImageDetail>>;
978
1133
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningEffort>>>;
979
1134
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningSummary>>>;
1135
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningMode>>>;
1136
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningContext>>>;
980
1137
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.Verbosity>>>;
981
1138
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
982
1139
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.AnthropicEffort>>>;
@@ -986,6 +1143,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
986
1143
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
987
1144
  assistant_id: z.ZodOptional<z.ZodString>;
988
1145
  agent_id: z.ZodOptional<z.ZodString>;
1146
+ subagentThread: z.ZodOptional<z.ZodObject<{
1147
+ rootConversationId: z.ZodString;
1148
+ parentConversationId: z.ZodString;
1149
+ parentMessageId: z.ZodString;
1150
+ parentToolCallId: z.ZodString;
1151
+ parentAgentId: z.ZodOptional<z.ZodString>;
1152
+ subagentType: z.ZodString;
1153
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
1154
+ depth: z.ZodNumber;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ parentMessageId: string;
1157
+ rootConversationId: string;
1158
+ parentConversationId: string;
1159
+ parentToolCallId: string;
1160
+ subagentType: string;
1161
+ subagentKind: "agent" | "graph";
1162
+ depth: number;
1163
+ parentAgentId?: string | undefined;
1164
+ }, {
1165
+ parentMessageId: string;
1166
+ rootConversationId: string;
1167
+ parentConversationId: string;
1168
+ parentToolCallId: string;
1169
+ subagentType: string;
1170
+ subagentKind: "agent" | "graph";
1171
+ depth: number;
1172
+ parentAgentId?: string | undefined;
1173
+ }>>;
989
1174
  region: z.ZodOptional<z.ZodString>;
990
1175
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
991
1176
  additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
@@ -1106,7 +1291,9 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1106
1291
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
1107
1292
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
1108
1293
  isArchived: z.ZodOptional<z.ZodBoolean>;
1294
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1109
1295
  pinned: z.ZodOptional<z.ZodBoolean>;
1296
+ isShared: z.ZodOptional<z.ZodBoolean>;
1110
1297
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1111
1298
  user: z.ZodOptional<z.ZodString>;
1112
1299
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1138,6 +1325,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1138
1325
  chatMenu: z.ZodOptional<z.ZodBoolean>;
1139
1326
  isButton: z.ZodOptional<z.ZodBoolean>;
1140
1327
  toolkit: z.ZodOptional<z.ZodBoolean>;
1328
+ serverToolName: z.ZodOptional<z.ZodString>;
1141
1329
  }, "strip", z.ZodTypeAny, {
1142
1330
  name: string;
1143
1331
  pluginKey: string;
@@ -1154,6 +1342,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1154
1342
  chatMenu?: boolean | undefined;
1155
1343
  isButton?: boolean | undefined;
1156
1344
  toolkit?: boolean | undefined;
1345
+ serverToolName?: string | undefined;
1157
1346
  }, {
1158
1347
  name: string;
1159
1348
  pluginKey: string;
@@ -1170,6 +1359,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1170
1359
  chatMenu?: boolean | undefined;
1171
1360
  isButton?: boolean | undefined;
1172
1361
  toolkit?: boolean | undefined;
1362
+ serverToolName?: string | undefined;
1173
1363
  }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1174
1364
  modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
1365
  userLabel: z.ZodOptional<z.ZodString>;
@@ -1233,6 +1423,8 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1233
1423
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof s.ImageDetail>>;
1234
1424
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningEffort>>>;
1235
1425
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningSummary>>>;
1426
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningMode>>>;
1427
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.ReasoningContext>>>;
1236
1428
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.Verbosity>>>;
1237
1429
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
1238
1430
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof s.AnthropicEffort>>>;
@@ -1242,6 +1434,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
1242
1434
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
1243
1435
  assistant_id: z.ZodOptional<z.ZodString>;
1244
1436
  agent_id: z.ZodOptional<z.ZodString>;
1437
+ subagentThread: z.ZodOptional<z.ZodObject<{
1438
+ rootConversationId: z.ZodString;
1439
+ parentConversationId: z.ZodString;
1440
+ parentMessageId: z.ZodString;
1441
+ parentToolCallId: z.ZodString;
1442
+ parentAgentId: z.ZodOptional<z.ZodString>;
1443
+ subagentType: z.ZodString;
1444
+ subagentKind: z.ZodEnum<["agent", "graph"]>;
1445
+ depth: z.ZodNumber;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ parentMessageId: string;
1448
+ rootConversationId: string;
1449
+ parentConversationId: string;
1450
+ parentToolCallId: string;
1451
+ subagentType: string;
1452
+ subagentKind: "agent" | "graph";
1453
+ depth: number;
1454
+ parentAgentId?: string | undefined;
1455
+ }, {
1456
+ parentMessageId: string;
1457
+ rootConversationId: string;
1458
+ parentConversationId: string;
1459
+ parentToolCallId: string;
1460
+ subagentType: string;
1461
+ subagentKind: "agent" | "graph";
1462
+ depth: number;
1463
+ parentAgentId?: string | undefined;
1464
+ }>>;
1245
1465
  region: z.ZodOptional<z.ZodString>;
1246
1466
  maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1247
1467
  additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
@@ -0,0 +1,33 @@
1
+ import type { TScheduleCadence } from './types/schedules';
2
+ /**
3
+ * Compiles a cadence to the cron expression the engine fires from. Shared rather
4
+ * than server-owned because the dialog previews the next runs, validates the
5
+ * interval floor, and disables its own submit from these same functions: a second
6
+ * client-side implementation would drift and either show run times the schedule
7
+ * does not keep or accept a cadence the server then rejects.
8
+ */
9
+ export declare function cadenceToCron(cadence: TScheduleCadence): string;
10
+ /**
11
+ * Everything `cronCadenceSchema` will accept: exactly five fields, within the length
12
+ * the schema stores, and actually matching at some point. croner accepts syntactically
13
+ * valid patterns that can never match (`0 0 30 2 *`), and those would arm a schedule
14
+ * that never fires. Validated with croner rather than a regex, because a regex would
15
+ * accept patterns croner then rejects at fire time.
16
+ *
17
+ * A five-field expression that matches at all matches forever, which is what lets every
18
+ * caller keep reading "no next occurrence" as "this cadence is unreadable".
19
+ */
20
+ export declare function isValidCronExpression(expression: string, timezone?: string): boolean;
21
+ /**
22
+ * The next occurrences the engine would fire. Server-side jitter (up to two
23
+ * minutes) is deliberately not modelled: it is keyed off a schedule id that does
24
+ * not exist yet at create time, and showing 9:01 for a 9:00 schedule reads as a bug.
25
+ */
26
+ export declare function nextRunInstants(cadence: TScheduleCadence, timezone: string, count: number): Date[];
27
+ /**
28
+ * Minimum minutes between occurrences, for the admin interval floor. `timezone` is
29
+ * the schedule's own; passing it lets the cron branch measure a DST-compressed gap
30
+ * instead of estimating one. The structured branches are zone-independent: their
31
+ * formulas already carry the worst-case allowance.
32
+ */
33
+ export declare function cadenceIntervalMinutes(cadence: TScheduleCadence, timezone?: string): number;
@@ -50,7 +50,15 @@ interface CodeEnvRefBase {
50
50
  id: string;
51
51
  storage_session_id: string;
52
52
  file_id: string;
53
+ /** Code API deployment that owns this storage pointer. Legacy refs omit
54
+ * the field and are treated as `default`; new writes always persist it. */
55
+ executionProfile?: CodeExecutionProfile;
56
+ /** Deployment-specific namespace. Configured stateful environments share
57
+ * the same wire profile, so this key prevents their file IDs from being
58
+ * reused against a different Code API server. */
59
+ executionRouteKey?: string;
53
60
  }
61
+ export type CodeExecutionProfile = 'default' | 'stateful';
54
62
  export type CodeEnvRef = (CodeEnvRefBase & {
55
63
  kind: 'skill';
56
64
  version: number;
@@ -59,4 +67,17 @@ export type CodeEnvRef = (CodeEnvRefBase & {
59
67
  }) | (CodeEnvRefBase & {
60
68
  kind: 'user';
61
69
  });
70
+ /** Deployment-local pointers for a resource that may be used by both Code API profiles. */
71
+ export type CodeEnvRefMap = Partial<Record<string, CodeEnvRef>>;
72
+ export interface CodeEnvReferenceSet {
73
+ /** Compatibility pointer for readers that have not adopted profile-aware refs yet. */
74
+ codeEnvRef?: CodeEnvRef;
75
+ /** Canonical deployment-local pointers, keyed by trusted execution profile. */
76
+ codeEnvRefs?: CodeEnvRefMap;
77
+ }
78
+ export declare function getCodeEnvRefForProfile(refs: CodeEnvReferenceSet | null | undefined, routeKey: string): CodeEnvRef | undefined;
79
+ /** Adds one profile pointer without discarding the other profile's storage object. */
80
+ export declare function mergeCodeEnvRef(refs: CodeEnvReferenceSet | null | undefined, ref: CodeEnvRef): Required<Pick<CodeEnvReferenceSet, 'codeEnvRef' | 'codeEnvRefs'>>;
81
+ /** Enumerates every deployment-local pointer, including legacy single-pointer records. */
82
+ export declare function getCodeEnvRefs(refs: CodeEnvReferenceSet | null | undefined): Array<[string, CodeEnvRef]>;
62
83
  export {};