@orq-ai/node 3.12.19 → 3.12.21
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/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +39 -44
- package/packages/orq-rc/src/models/components/index.ts +0 -13
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +56 -60
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +18 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +34 -30
- package/packages/orq-rc/src/models/operations/createtool.ts +42 -68
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +27 -36
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +203 -141
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listagents.ts +202 -141
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +22 -29
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +2292 -1130
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +2590 -1252
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +17 -21
- package/packages/orq-rc/src/models/operations/updatetool.ts +43 -69
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +0 -109
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +0 -293
- package/packages/orq-rc/src/models/components/currentdatetool.ts +0 -107
- package/packages/orq-rc/src/models/components/functiontool.ts +0 -195
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +0 -108
- package/packages/orq-rc/src/models/components/httptool.ts +0 -532
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +0 -111
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +0 -109
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +0 -111
- package/packages/orq-rc/src/models/components/webscrapertool.ts +0 -105
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +0 -111
|
@@ -93,11 +93,14 @@ export type ListAgentsTools = {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export type ListAgentsSettings = {
|
|
96
|
+
/**
|
|
97
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
98
|
+
*/
|
|
96
99
|
maxIterations?: number | undefined;
|
|
97
100
|
/**
|
|
98
|
-
*
|
|
101
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
99
102
|
*/
|
|
100
|
-
maxExecutionTime
|
|
103
|
+
maxExecutionTime?: number | undefined;
|
|
101
104
|
/**
|
|
102
105
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
103
106
|
*/
|
|
@@ -140,35 +143,41 @@ export type ListAgentsMetrics = {
|
|
|
140
143
|
totalCost?: number | undefined;
|
|
141
144
|
};
|
|
142
145
|
|
|
143
|
-
export const
|
|
146
|
+
export const ListAgentsKnowledgeBaseConfigurationType = {
|
|
144
147
|
Query: "query",
|
|
145
148
|
} as const;
|
|
146
|
-
export type
|
|
147
|
-
typeof
|
|
149
|
+
export type ListAgentsKnowledgeBaseConfigurationType = ClosedEnum<
|
|
150
|
+
typeof ListAgentsKnowledgeBaseConfigurationType
|
|
148
151
|
>;
|
|
149
152
|
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
/**
|
|
154
|
+
* Defines the configuration settings for a static query.
|
|
155
|
+
*/
|
|
156
|
+
export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
|
|
157
|
+
type: ListAgentsKnowledgeBaseConfigurationType;
|
|
152
158
|
query: string;
|
|
153
159
|
};
|
|
154
160
|
|
|
155
|
-
export const
|
|
161
|
+
export const ListAgentsKnowledgeBaseConfigurationAgentsType = {
|
|
156
162
|
LastUserMessage: "last_user_message",
|
|
157
163
|
} as const;
|
|
158
|
-
export type
|
|
159
|
-
typeof
|
|
164
|
+
export type ListAgentsKnowledgeBaseConfigurationAgentsType = ClosedEnum<
|
|
165
|
+
typeof ListAgentsKnowledgeBaseConfigurationAgentsType
|
|
160
166
|
>;
|
|
161
167
|
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Defines the configuration settings for a last user message type retrieval.
|
|
170
|
+
*/
|
|
171
|
+
export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
|
|
172
|
+
type: ListAgentsKnowledgeBaseConfigurationAgentsType;
|
|
164
173
|
};
|
|
165
174
|
|
|
166
175
|
/**
|
|
167
176
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
168
177
|
*/
|
|
169
|
-
export type
|
|
170
|
-
|
|
|
171
|
-
|
|
|
178
|
+
export type ListAgentsKnowledgeBaseConfiguration =
|
|
179
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
180
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
172
181
|
|
|
173
182
|
export type ListAgentsKnowledgeBases = {
|
|
174
183
|
/**
|
|
@@ -182,7 +191,9 @@ export type ListAgentsKnowledgeBases = {
|
|
|
182
191
|
/**
|
|
183
192
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
184
193
|
*/
|
|
185
|
-
configuration:
|
|
194
|
+
configuration:
|
|
195
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
196
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
186
197
|
};
|
|
187
198
|
|
|
188
199
|
export const ListAgentsHiddenPanels = {
|
|
@@ -530,8 +541,8 @@ export const ListAgentsSettings$inboundSchema: z.ZodType<
|
|
|
530
541
|
z.ZodTypeDef,
|
|
531
542
|
unknown
|
|
532
543
|
> = z.object({
|
|
533
|
-
max_iterations: z.number().int().default(
|
|
534
|
-
max_execution_time: z.number().int(),
|
|
544
|
+
max_iterations: z.number().int().default(15),
|
|
545
|
+
max_execution_time: z.number().int().default(300),
|
|
535
546
|
tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
|
|
536
547
|
"respect_tool",
|
|
537
548
|
),
|
|
@@ -558,8 +569,8 @@ export const ListAgentsSettings$outboundSchema: z.ZodType<
|
|
|
558
569
|
z.ZodTypeDef,
|
|
559
570
|
ListAgentsSettings
|
|
560
571
|
> = z.object({
|
|
561
|
-
maxIterations: z.number().int().default(
|
|
562
|
-
maxExecutionTime: z.number().int(),
|
|
572
|
+
maxIterations: z.number().int().default(15),
|
|
573
|
+
maxExecutionTime: z.number().int().default(300),
|
|
563
574
|
toolApprovalRequired: ListAgentsToolApprovalRequired$outboundSchema.default(
|
|
564
575
|
"respect_tool",
|
|
565
576
|
),
|
|
@@ -807,212 +818,254 @@ export function listAgentsMetricsFromJSON(
|
|
|
807
818
|
}
|
|
808
819
|
|
|
809
820
|
/** @internal */
|
|
810
|
-
export const
|
|
811
|
-
typeof
|
|
812
|
-
|
|
821
|
+
export const ListAgentsKnowledgeBaseConfigurationType$inboundSchema:
|
|
822
|
+
z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationType> = z
|
|
823
|
+
.nativeEnum(ListAgentsKnowledgeBaseConfigurationType);
|
|
813
824
|
|
|
814
825
|
/** @internal */
|
|
815
|
-
export const
|
|
816
|
-
typeof
|
|
817
|
-
|
|
826
|
+
export const ListAgentsKnowledgeBaseConfigurationType$outboundSchema:
|
|
827
|
+
z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationType> =
|
|
828
|
+
ListAgentsKnowledgeBaseConfigurationType$inboundSchema;
|
|
818
829
|
|
|
819
830
|
/**
|
|
820
831
|
* @internal
|
|
821
832
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
822
833
|
*/
|
|
823
|
-
export namespace
|
|
824
|
-
/** @deprecated use `
|
|
825
|
-
export const inboundSchema =
|
|
826
|
-
|
|
827
|
-
|
|
834
|
+
export namespace ListAgentsKnowledgeBaseConfigurationType$ {
|
|
835
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
836
|
+
export const inboundSchema =
|
|
837
|
+
ListAgentsKnowledgeBaseConfigurationType$inboundSchema;
|
|
838
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
839
|
+
export const outboundSchema =
|
|
840
|
+
ListAgentsKnowledgeBaseConfigurationType$outboundSchema;
|
|
828
841
|
}
|
|
829
842
|
|
|
830
843
|
/** @internal */
|
|
831
|
-
export const
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
844
|
+
export const ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
|
|
845
|
+
z.ZodType<
|
|
846
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
847
|
+
z.ZodTypeDef,
|
|
848
|
+
unknown
|
|
849
|
+
> = z.object({
|
|
850
|
+
type: ListAgentsKnowledgeBaseConfigurationType$inboundSchema,
|
|
851
|
+
query: z.string(),
|
|
852
|
+
});
|
|
839
853
|
|
|
840
854
|
/** @internal */
|
|
841
|
-
export type
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
855
|
+
export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound =
|
|
856
|
+
{
|
|
857
|
+
type: string;
|
|
858
|
+
query: string;
|
|
859
|
+
};
|
|
845
860
|
|
|
846
861
|
/** @internal */
|
|
847
|
-
export const
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
862
|
+
export const ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
|
|
863
|
+
z.ZodType<
|
|
864
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
|
|
865
|
+
z.ZodTypeDef,
|
|
866
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
867
|
+
> = z.object({
|
|
868
|
+
type: ListAgentsKnowledgeBaseConfigurationType$outboundSchema,
|
|
869
|
+
query: z.string(),
|
|
870
|
+
});
|
|
855
871
|
|
|
856
872
|
/**
|
|
857
873
|
* @internal
|
|
858
874
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
859
875
|
*/
|
|
860
|
-
export namespace
|
|
861
|
-
/** @deprecated use `
|
|
862
|
-
export const inboundSchema =
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
876
|
+
export namespace ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
|
|
877
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
878
|
+
export const inboundSchema =
|
|
879
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
|
|
880
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
881
|
+
export const outboundSchema =
|
|
882
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
|
|
883
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
|
|
884
|
+
export type Outbound =
|
|
885
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
|
|
867
886
|
}
|
|
868
887
|
|
|
869
|
-
export function
|
|
870
|
-
|
|
888
|
+
export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(
|
|
889
|
+
listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery:
|
|
890
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
871
891
|
): string {
|
|
872
892
|
return JSON.stringify(
|
|
873
|
-
|
|
893
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
894
|
+
.parse(listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery),
|
|
874
895
|
);
|
|
875
896
|
}
|
|
876
897
|
|
|
877
|
-
export function
|
|
898
|
+
export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
|
|
878
899
|
jsonString: string,
|
|
879
|
-
): SafeParseResult<
|
|
900
|
+
): SafeParseResult<
|
|
901
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
902
|
+
SDKValidationError
|
|
903
|
+
> {
|
|
880
904
|
return safeParse(
|
|
881
905
|
jsonString,
|
|
882
|
-
(x) =>
|
|
883
|
-
|
|
906
|
+
(x) =>
|
|
907
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
908
|
+
.parse(JSON.parse(x)),
|
|
909
|
+
`Failed to parse 'ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
|
|
884
910
|
);
|
|
885
911
|
}
|
|
886
912
|
|
|
887
913
|
/** @internal */
|
|
888
|
-
export const
|
|
889
|
-
typeof
|
|
890
|
-
|
|
914
|
+
export const ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema:
|
|
915
|
+
z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationAgentsType> = z
|
|
916
|
+
.nativeEnum(ListAgentsKnowledgeBaseConfigurationAgentsType);
|
|
891
917
|
|
|
892
918
|
/** @internal */
|
|
893
|
-
export const
|
|
894
|
-
typeof
|
|
895
|
-
|
|
919
|
+
export const ListAgentsKnowledgeBaseConfigurationAgentsType$outboundSchema:
|
|
920
|
+
z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationAgentsType> =
|
|
921
|
+
ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
896
922
|
|
|
897
923
|
/**
|
|
898
924
|
* @internal
|
|
899
925
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
900
926
|
*/
|
|
901
|
-
export namespace
|
|
902
|
-
/** @deprecated use `
|
|
903
|
-
export const inboundSchema =
|
|
904
|
-
|
|
927
|
+
export namespace ListAgentsKnowledgeBaseConfigurationAgentsType$ {
|
|
928
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
|
|
929
|
+
export const inboundSchema =
|
|
930
|
+
ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
931
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
|
|
905
932
|
export const outboundSchema =
|
|
906
|
-
|
|
933
|
+
ListAgentsKnowledgeBaseConfigurationAgentsType$outboundSchema;
|
|
907
934
|
}
|
|
908
935
|
|
|
909
936
|
/** @internal */
|
|
910
|
-
export const
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
937
|
+
export const ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
|
|
938
|
+
z.ZodType<
|
|
939
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
940
|
+
z.ZodTypeDef,
|
|
941
|
+
unknown
|
|
942
|
+
> = z.object({
|
|
943
|
+
type: ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema,
|
|
944
|
+
});
|
|
917
945
|
|
|
918
946
|
/** @internal */
|
|
919
|
-
export type
|
|
920
|
-
|
|
921
|
-
|
|
947
|
+
export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound =
|
|
948
|
+
{
|
|
949
|
+
type: string;
|
|
950
|
+
};
|
|
922
951
|
|
|
923
952
|
/** @internal */
|
|
924
|
-
export const
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
953
|
+
export const ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
|
|
954
|
+
z.ZodType<
|
|
955
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
|
|
956
|
+
z.ZodTypeDef,
|
|
957
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
|
|
958
|
+
> = z.object({
|
|
959
|
+
type: ListAgentsKnowledgeBaseConfigurationAgentsType$outboundSchema,
|
|
960
|
+
});
|
|
931
961
|
|
|
932
962
|
/**
|
|
933
963
|
* @internal
|
|
934
964
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
935
965
|
*/
|
|
936
|
-
export namespace
|
|
937
|
-
/** @deprecated use `
|
|
938
|
-
export const inboundSchema =
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
966
|
+
export namespace ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
|
|
967
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
968
|
+
export const inboundSchema =
|
|
969
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
|
|
970
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
971
|
+
export const outboundSchema =
|
|
972
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
|
|
973
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
974
|
+
export type Outbound =
|
|
975
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
943
976
|
}
|
|
944
977
|
|
|
945
|
-
export function
|
|
946
|
-
|
|
978
|
+
export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
|
|
979
|
+
listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
|
|
980
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
947
981
|
): string {
|
|
948
982
|
return JSON.stringify(
|
|
949
|
-
|
|
983
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
984
|
+
.parse(listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage),
|
|
950
985
|
);
|
|
951
986
|
}
|
|
952
987
|
|
|
953
|
-
export function
|
|
988
|
+
export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
|
|
954
989
|
jsonString: string,
|
|
955
|
-
): SafeParseResult<
|
|
990
|
+
): SafeParseResult<
|
|
991
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
992
|
+
SDKValidationError
|
|
993
|
+
> {
|
|
956
994
|
return safeParse(
|
|
957
995
|
jsonString,
|
|
958
|
-
(x) =>
|
|
959
|
-
|
|
996
|
+
(x) =>
|
|
997
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
998
|
+
.parse(JSON.parse(x)),
|
|
999
|
+
`Failed to parse 'ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
|
|
960
1000
|
);
|
|
961
1001
|
}
|
|
962
1002
|
|
|
963
1003
|
/** @internal */
|
|
964
|
-
export const
|
|
965
|
-
|
|
1004
|
+
export const ListAgentsKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
1005
|
+
ListAgentsKnowledgeBaseConfiguration,
|
|
966
1006
|
z.ZodTypeDef,
|
|
967
1007
|
unknown
|
|
968
1008
|
> = z.union([
|
|
969
|
-
z.lazy(() =>
|
|
970
|
-
|
|
1009
|
+
z.lazy(() =>
|
|
1010
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1011
|
+
),
|
|
1012
|
+
z.lazy(() =>
|
|
1013
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1014
|
+
),
|
|
971
1015
|
]);
|
|
972
1016
|
|
|
973
1017
|
/** @internal */
|
|
974
|
-
export type
|
|
975
|
-
|
|
|
976
|
-
|
|
|
1018
|
+
export type ListAgentsKnowledgeBaseConfiguration$Outbound =
|
|
1019
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1020
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
977
1021
|
|
|
978
1022
|
/** @internal */
|
|
979
|
-
export const
|
|
980
|
-
|
|
1023
|
+
export const ListAgentsKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1024
|
+
ListAgentsKnowledgeBaseConfiguration$Outbound,
|
|
981
1025
|
z.ZodTypeDef,
|
|
982
|
-
|
|
1026
|
+
ListAgentsKnowledgeBaseConfiguration
|
|
983
1027
|
> = z.union([
|
|
984
|
-
z.lazy(() =>
|
|
985
|
-
|
|
1028
|
+
z.lazy(() =>
|
|
1029
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1030
|
+
),
|
|
1031
|
+
z.lazy(() =>
|
|
1032
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1033
|
+
),
|
|
986
1034
|
]);
|
|
987
1035
|
|
|
988
1036
|
/**
|
|
989
1037
|
* @internal
|
|
990
1038
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
991
1039
|
*/
|
|
992
|
-
export namespace
|
|
993
|
-
/** @deprecated use `
|
|
994
|
-
export const inboundSchema =
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1040
|
+
export namespace ListAgentsKnowledgeBaseConfiguration$ {
|
|
1041
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1042
|
+
export const inboundSchema =
|
|
1043
|
+
ListAgentsKnowledgeBaseConfiguration$inboundSchema;
|
|
1044
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1045
|
+
export const outboundSchema =
|
|
1046
|
+
ListAgentsKnowledgeBaseConfiguration$outboundSchema;
|
|
1047
|
+
/** @deprecated use `ListAgentsKnowledgeBaseConfiguration$Outbound` instead. */
|
|
1048
|
+
export type Outbound = ListAgentsKnowledgeBaseConfiguration$Outbound;
|
|
999
1049
|
}
|
|
1000
1050
|
|
|
1001
|
-
export function
|
|
1002
|
-
|
|
1051
|
+
export function listAgentsKnowledgeBaseConfigurationToJSON(
|
|
1052
|
+
listAgentsKnowledgeBaseConfiguration: ListAgentsKnowledgeBaseConfiguration,
|
|
1003
1053
|
): string {
|
|
1004
1054
|
return JSON.stringify(
|
|
1005
|
-
|
|
1055
|
+
ListAgentsKnowledgeBaseConfiguration$outboundSchema.parse(
|
|
1056
|
+
listAgentsKnowledgeBaseConfiguration,
|
|
1057
|
+
),
|
|
1006
1058
|
);
|
|
1007
1059
|
}
|
|
1008
1060
|
|
|
1009
|
-
export function
|
|
1061
|
+
export function listAgentsKnowledgeBaseConfigurationFromJSON(
|
|
1010
1062
|
jsonString: string,
|
|
1011
|
-
): SafeParseResult<
|
|
1063
|
+
): SafeParseResult<ListAgentsKnowledgeBaseConfiguration, SDKValidationError> {
|
|
1012
1064
|
return safeParse(
|
|
1013
1065
|
jsonString,
|
|
1014
|
-
(x) =>
|
|
1015
|
-
|
|
1066
|
+
(x) =>
|
|
1067
|
+
ListAgentsKnowledgeBaseConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1068
|
+
`Failed to parse 'ListAgentsKnowledgeBaseConfiguration' from JSON`,
|
|
1016
1069
|
);
|
|
1017
1070
|
}
|
|
1018
1071
|
|
|
@@ -1022,11 +1075,15 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1022
1075
|
z.ZodTypeDef,
|
|
1023
1076
|
unknown
|
|
1024
1077
|
> = z.object({
|
|
1025
|
-
id: z.string().default("
|
|
1078
|
+
id: z.string().default("01K6B3TVW2B7MYQDP7BF0RD33X"),
|
|
1026
1079
|
knowledge_id: z.string(),
|
|
1027
1080
|
configuration: z.union([
|
|
1028
|
-
z.lazy(() =>
|
|
1029
|
-
|
|
1081
|
+
z.lazy(() =>
|
|
1082
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1083
|
+
),
|
|
1084
|
+
z.lazy(() =>
|
|
1085
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1086
|
+
),
|
|
1030
1087
|
]),
|
|
1031
1088
|
}).transform((v) => {
|
|
1032
1089
|
return remap$(v, {
|
|
@@ -1039,8 +1096,8 @@ export type ListAgentsKnowledgeBases$Outbound = {
|
|
|
1039
1096
|
id: string;
|
|
1040
1097
|
knowledge_id: string;
|
|
1041
1098
|
configuration:
|
|
1042
|
-
|
|
|
1043
|
-
|
|
|
1099
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1100
|
+
| ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1044
1101
|
};
|
|
1045
1102
|
|
|
1046
1103
|
/** @internal */
|
|
@@ -1049,11 +1106,15 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1049
1106
|
z.ZodTypeDef,
|
|
1050
1107
|
ListAgentsKnowledgeBases
|
|
1051
1108
|
> = z.object({
|
|
1052
|
-
id: z.string().default("
|
|
1109
|
+
id: z.string().default("01K6B3TVW2B7MYQDP7BF0RD33X"),
|
|
1053
1110
|
knowledgeId: z.string(),
|
|
1054
1111
|
configuration: z.union([
|
|
1055
|
-
z.lazy(() =>
|
|
1056
|
-
|
|
1112
|
+
z.lazy(() =>
|
|
1113
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1114
|
+
),
|
|
1115
|
+
z.lazy(() =>
|
|
1116
|
+
ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1117
|
+
),
|
|
1057
1118
|
]),
|
|
1058
1119
|
}).transform((v) => {
|
|
1059
1120
|
return remap$(v, {
|
|
@@ -464,7 +464,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
464
464
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
465
465
|
.optional(),
|
|
466
466
|
updated: z.string().datetime({ offset: true }).default(
|
|
467
|
-
"2025-09-
|
|
467
|
+
"2025-09-29T16:10:23.816Z",
|
|
468
468
|
).transform(v => new Date(v)),
|
|
469
469
|
}).transform((v) => {
|
|
470
470
|
return remap$(v, {
|
|
@@ -499,7 +499,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
499
499
|
isActive: z.boolean(),
|
|
500
500
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
501
501
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
502
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
502
|
+
updated: z.date().default(() => new Date("2025-09-29T16:10:23.816Z"))
|
|
503
503
|
.transform(v => v.toISOString()),
|
|
504
504
|
}).transform((v) => {
|
|
505
505
|
return remap$(v, {
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Filter datasources by status.
|
|
14
14
|
*/
|
|
15
|
-
export type
|
|
15
|
+
export type QueryParamStatus = Array<string> | string;
|
|
16
16
|
|
|
17
17
|
export type ListChunksRequest = {
|
|
18
18
|
/**
|
|
@@ -116,50 +116,50 @@ export type ListChunksResponseBody = {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/** @internal */
|
|
119
|
-
export const
|
|
120
|
-
|
|
119
|
+
export const QueryParamStatus$inboundSchema: z.ZodType<
|
|
120
|
+
QueryParamStatus,
|
|
121
121
|
z.ZodTypeDef,
|
|
122
122
|
unknown
|
|
123
123
|
> = z.union([z.array(z.string()), z.string()]);
|
|
124
124
|
|
|
125
125
|
/** @internal */
|
|
126
|
-
export type
|
|
126
|
+
export type QueryParamStatus$Outbound = Array<string> | string;
|
|
127
127
|
|
|
128
128
|
/** @internal */
|
|
129
|
-
export const
|
|
130
|
-
|
|
129
|
+
export const QueryParamStatus$outboundSchema: z.ZodType<
|
|
130
|
+
QueryParamStatus$Outbound,
|
|
131
131
|
z.ZodTypeDef,
|
|
132
|
-
|
|
132
|
+
QueryParamStatus
|
|
133
133
|
> = z.union([z.array(z.string()), z.string()]);
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* @internal
|
|
137
137
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
138
|
*/
|
|
139
|
-
export namespace
|
|
140
|
-
/** @deprecated use `
|
|
141
|
-
export const inboundSchema =
|
|
142
|
-
/** @deprecated use `
|
|
143
|
-
export const outboundSchema =
|
|
144
|
-
/** @deprecated use `
|
|
145
|
-
export type Outbound =
|
|
139
|
+
export namespace QueryParamStatus$ {
|
|
140
|
+
/** @deprecated use `QueryParamStatus$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema = QueryParamStatus$inboundSchema;
|
|
142
|
+
/** @deprecated use `QueryParamStatus$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema = QueryParamStatus$outboundSchema;
|
|
144
|
+
/** @deprecated use `QueryParamStatus$Outbound` instead. */
|
|
145
|
+
export type Outbound = QueryParamStatus$Outbound;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export function
|
|
149
|
-
|
|
148
|
+
export function queryParamStatusToJSON(
|
|
149
|
+
queryParamStatus: QueryParamStatus,
|
|
150
150
|
): string {
|
|
151
151
|
return JSON.stringify(
|
|
152
|
-
|
|
152
|
+
QueryParamStatus$outboundSchema.parse(queryParamStatus),
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export function
|
|
156
|
+
export function queryParamStatusFromJSON(
|
|
157
157
|
jsonString: string,
|
|
158
|
-
): SafeParseResult<
|
|
158
|
+
): SafeParseResult<QueryParamStatus, SDKValidationError> {
|
|
159
159
|
return safeParse(
|
|
160
160
|
jsonString,
|
|
161
|
-
(x) =>
|
|
162
|
-
`Failed to parse '
|
|
161
|
+
(x) => QueryParamStatus$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'QueryParamStatus' from JSON`,
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -352,7 +352,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
352
352
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
353
353
|
.optional(),
|
|
354
354
|
updated: z.string().datetime({ offset: true }).default(
|
|
355
|
-
"2025-09-
|
|
355
|
+
"2025-09-29T16:10:23.816Z",
|
|
356
356
|
).transform(v => new Date(v)),
|
|
357
357
|
metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
|
|
358
358
|
}).transform((v) => {
|
|
@@ -389,7 +389,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
389
389
|
tags: z.array(z.string()).optional(),
|
|
390
390
|
metadata: z.record(z.any()).optional(),
|
|
391
391
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
392
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
392
|
+
updated: z.date().default(() => new Date("2025-09-29T16:10:23.816Z"))
|
|
393
393
|
.transform(v => v.toISOString()),
|
|
394
394
|
metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
|
|
395
395
|
}).transform((v) => {
|
|
@@ -3101,7 +3101,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3101
3101
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3102
3102
|
.optional(),
|
|
3103
3103
|
updated: z.string().datetime({ offset: true }).default(
|
|
3104
|
-
"2025-09-
|
|
3104
|
+
"2025-09-29T16:10:23.816Z",
|
|
3105
3105
|
).transform(v => new Date(v)),
|
|
3106
3106
|
}).transform((v) => {
|
|
3107
3107
|
return remap$(v, {
|
|
@@ -3165,7 +3165,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3165
3165
|
createdById: z.string().optional(),
|
|
3166
3166
|
updatedById: z.string().optional(),
|
|
3167
3167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3168
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3168
|
+
updated: z.date().default(() => new Date("2025-09-29T16:10:23.816Z"))
|
|
3169
3169
|
.transform(v => v.toISOString()),
|
|
3170
3170
|
}).transform((v) => {
|
|
3171
3171
|
return remap$(v, {
|