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.
- package/dist/{data-service-pwrlWjJs.mjs → data-service-CaB7saTP.mjs} +1145 -37
- package/dist/data-service-CaB7saTP.mjs.map +1 -0
- package/dist/{data-service-DOIF4BkW.js → data-service-D5kHzBt-.js} +1588 -36
- package/dist/data-service-D5kHzBt-.js.map +1 -0
- package/dist/index.js +947 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +825 -37
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/accessPermissions.d.ts +4 -0
- package/dist/types/actions.d.ts +2 -2
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +18 -0
- package/dist/types/bedrock.d.ts +168 -0
- package/dist/types/cadence.d.ts +33 -0
- package/dist/types/codeEnvRef.d.ts +21 -0
- package/dist/types/config.d.ts +9060 -1135
- package/dist/types/data-service.d.ts +40 -2
- package/dist/types/file-config.d.ts +1 -0
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +79 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/keys.d.ts +23 -2
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +299 -210
- package/dist/types/messages.d.ts +5 -0
- package/dist/types/models.d.ts +732 -68
- package/dist/types/parameterSettings.d.ts +5 -1
- package/dist/types/parsers.d.ts +10 -0
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +36 -0
- package/dist/types/request.d.ts +2 -2
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1191 -26
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/types/agents.d.ts +92 -7
- package/dist/types/types/assistants.d.ts +96 -5
- package/dist/types/types/files.d.ts +12 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +62 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +30 -2
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +95 -4
- package/dist/types/types/schedules.d.ts +306 -0
- package/dist/types/types/skills.d.ts +9 -0
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +61 -1
- package/package.json +4 -2
- package/dist/data-service-DOIF4BkW.js.map +0 -1
- package/dist/data-service-pwrlWjJs.mjs.map +0 -1
package/dist/types/bedrock.d.ts
CHANGED
|
@@ -61,11 +61,20 @@ export declare function clampOutputConfigEffort(model: string, outputConfig: unk
|
|
|
61
61
|
export declare function isThinkingDisabled(thinking: unknown): boolean;
|
|
62
62
|
/** Checks if a model has a 1M context window (Sonnet 4.6+, Opus 4.6+, Opus 5+, Fable/Mythos) */
|
|
63
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;
|
|
64
72
|
export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
65
73
|
conversationId: z.ZodNullable<z.ZodString>;
|
|
66
74
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
|
|
67
75
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
|
|
68
76
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
78
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
70
79
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
71
80
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -99,6 +108,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
99
108
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
100
109
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
101
110
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
102
112
|
}, "strip", z.ZodTypeAny, {
|
|
103
113
|
name: string;
|
|
104
114
|
pluginKey: string;
|
|
@@ -115,6 +125,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
115
125
|
chatMenu?: boolean | undefined;
|
|
116
126
|
isButton?: boolean | undefined;
|
|
117
127
|
toolkit?: boolean | undefined;
|
|
128
|
+
serverToolName?: string | undefined;
|
|
118
129
|
}, {
|
|
119
130
|
name: string;
|
|
120
131
|
pluginKey: string;
|
|
@@ -131,6 +142,7 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
131
142
|
chatMenu?: boolean | undefined;
|
|
132
143
|
isButton?: boolean | undefined;
|
|
133
144
|
toolkit?: boolean | undefined;
|
|
145
|
+
serverToolName?: string | undefined;
|
|
134
146
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
135
147
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
148
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -205,6 +217,34 @@ export declare const bedrockInputSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
205
217
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
206
218
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
207
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
|
+
}>>;
|
|
208
248
|
region: z.ZodOptional<z.ZodString>;
|
|
209
249
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
210
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 | {
|
|
@@ -480,6 +520,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
480
520
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
|
|
481
521
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
|
|
482
522
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
524
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
484
525
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
485
526
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -513,6 +554,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
513
554
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
514
555
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
515
556
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
516
558
|
}, "strip", z.ZodTypeAny, {
|
|
517
559
|
name: string;
|
|
518
560
|
pluginKey: string;
|
|
@@ -529,6 +571,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
529
571
|
chatMenu?: boolean | undefined;
|
|
530
572
|
isButton?: boolean | undefined;
|
|
531
573
|
toolkit?: boolean | undefined;
|
|
574
|
+
serverToolName?: string | undefined;
|
|
532
575
|
}, {
|
|
533
576
|
name: string;
|
|
534
577
|
pluginKey: string;
|
|
@@ -545,6 +588,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
545
588
|
chatMenu?: boolean | undefined;
|
|
546
589
|
isButton?: boolean | undefined;
|
|
547
590
|
toolkit?: boolean | undefined;
|
|
591
|
+
serverToolName?: string | undefined;
|
|
548
592
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
549
593
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
594
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -619,6 +663,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
619
663
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
620
664
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
621
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
|
+
}>>;
|
|
622
694
|
region: z.ZodOptional<z.ZodString>;
|
|
623
695
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
624
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 | {
|
|
@@ -688,6 +760,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
688
760
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
|
|
689
761
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
|
|
690
762
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
691
764
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
692
765
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
693
766
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -721,6 +794,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
721
794
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
722
795
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
723
796
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
724
798
|
}, "strip", z.ZodTypeAny, {
|
|
725
799
|
name: string;
|
|
726
800
|
pluginKey: string;
|
|
@@ -737,6 +811,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
737
811
|
chatMenu?: boolean | undefined;
|
|
738
812
|
isButton?: boolean | undefined;
|
|
739
813
|
toolkit?: boolean | undefined;
|
|
814
|
+
serverToolName?: string | undefined;
|
|
740
815
|
}, {
|
|
741
816
|
name: string;
|
|
742
817
|
pluginKey: string;
|
|
@@ -753,6 +828,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
753
828
|
chatMenu?: boolean | undefined;
|
|
754
829
|
isButton?: boolean | undefined;
|
|
755
830
|
toolkit?: boolean | undefined;
|
|
831
|
+
serverToolName?: string | undefined;
|
|
756
832
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
757
833
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
758
834
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -827,6 +903,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
827
903
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
828
904
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
829
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
|
+
}>>;
|
|
830
934
|
region: z.ZodOptional<z.ZodString>;
|
|
831
935
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
832
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 | {
|
|
@@ -896,6 +1000,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
896
1000
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
|
|
897
1001
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
|
|
898
1002
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
1003
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
899
1004
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
900
1005
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
901
1006
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -929,6 +1034,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
929
1034
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
930
1035
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
931
1036
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
1037
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
932
1038
|
}, "strip", z.ZodTypeAny, {
|
|
933
1039
|
name: string;
|
|
934
1040
|
pluginKey: string;
|
|
@@ -945,6 +1051,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
945
1051
|
chatMenu?: boolean | undefined;
|
|
946
1052
|
isButton?: boolean | undefined;
|
|
947
1053
|
toolkit?: boolean | undefined;
|
|
1054
|
+
serverToolName?: string | undefined;
|
|
948
1055
|
}, {
|
|
949
1056
|
name: string;
|
|
950
1057
|
pluginKey: string;
|
|
@@ -961,6 +1068,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
961
1068
|
chatMenu?: boolean | undefined;
|
|
962
1069
|
isButton?: boolean | undefined;
|
|
963
1070
|
toolkit?: boolean | undefined;
|
|
1071
|
+
serverToolName?: string | undefined;
|
|
964
1072
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
965
1073
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
1074
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1035,6 +1143,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1035
1143
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
1036
1144
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
1037
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
|
+
}>>;
|
|
1038
1174
|
region: z.ZodOptional<z.ZodString>;
|
|
1039
1175
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1040
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 | {
|
|
@@ -1155,6 +1291,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1155
1291
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>;
|
|
1156
1292
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof s.EModelEndpoint>>>;
|
|
1157
1293
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
1294
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1158
1295
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1159
1296
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
1160
1297
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -1188,6 +1325,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1188
1325
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
1189
1326
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
1190
1327
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
1328
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
1191
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1192
1330
|
name: string;
|
|
1193
1331
|
pluginKey: string;
|
|
@@ -1204,6 +1342,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1204
1342
|
chatMenu?: boolean | undefined;
|
|
1205
1343
|
isButton?: boolean | undefined;
|
|
1206
1344
|
toolkit?: boolean | undefined;
|
|
1345
|
+
serverToolName?: string | undefined;
|
|
1207
1346
|
}, {
|
|
1208
1347
|
name: string;
|
|
1209
1348
|
pluginKey: string;
|
|
@@ -1220,6 +1359,7 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1220
1359
|
chatMenu?: boolean | undefined;
|
|
1221
1360
|
isButton?: boolean | undefined;
|
|
1222
1361
|
toolkit?: boolean | undefined;
|
|
1362
|
+
serverToolName?: string | undefined;
|
|
1223
1363
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
1224
1364
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1225
1365
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1294,6 +1434,34 @@ export declare const bedrockInputParser: z.ZodCatch<z.ZodEffects<z.ZodObject<Pic
|
|
|
1294
1434
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
1295
1435
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
1296
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
|
+
}>>;
|
|
1297
1465
|
region: z.ZodOptional<z.ZodString>;
|
|
1298
1466
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1299
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 {};
|