@orq-ai/node 3.12.8 → 3.12.10
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/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +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/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- 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 -3
- 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 +28 -28
- 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 +139 -117
- 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/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- 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 +2 -2
- 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/runagent.ts +300 -12
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +335 -12
- 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 +28 -28
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- 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/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -67,7 +67,7 @@ export type GetAgentTools = {
|
|
|
67
67
|
id: string;
|
|
68
68
|
actionType: string;
|
|
69
69
|
displayName?: string | undefined;
|
|
70
|
-
requiresApproval
|
|
70
|
+
requiresApproval?: boolean | undefined;
|
|
71
71
|
conditions?: Array<Conditions> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* The id of the resource
|
|
@@ -134,26 +134,30 @@ export type GetAgentConfigurationType = ClosedEnum<
|
|
|
134
134
|
typeof GetAgentConfigurationType
|
|
135
135
|
>;
|
|
136
136
|
|
|
137
|
-
export type
|
|
137
|
+
export type GetAgentConfiguration2 = {
|
|
138
138
|
type: GetAgentConfigurationType;
|
|
139
139
|
query: string;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
export const
|
|
142
|
+
export const GetAgentConfigurationAgentsType = {
|
|
143
143
|
LastUserMessage: "last_user_message",
|
|
144
144
|
} as const;
|
|
145
|
-
export type
|
|
145
|
+
export type GetAgentConfigurationAgentsType = ClosedEnum<
|
|
146
|
+
typeof GetAgentConfigurationAgentsType
|
|
147
|
+
>;
|
|
146
148
|
|
|
147
|
-
export type
|
|
148
|
-
type:
|
|
149
|
+
export type GetAgentConfiguration1 = {
|
|
150
|
+
type: GetAgentConfigurationAgentsType;
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
/**
|
|
152
154
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
153
155
|
*/
|
|
154
|
-
export type
|
|
156
|
+
export type GetAgentConfiguration =
|
|
157
|
+
| GetAgentConfiguration2
|
|
158
|
+
| GetAgentConfiguration1;
|
|
155
159
|
|
|
156
|
-
export type
|
|
160
|
+
export type GetAgentKnowledgeBases = {
|
|
157
161
|
/**
|
|
158
162
|
* The id of the resource
|
|
159
163
|
*/
|
|
@@ -165,7 +169,7 @@ export type KnowledgeBases = {
|
|
|
165
169
|
/**
|
|
166
170
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
167
171
|
*/
|
|
168
|
-
configuration:
|
|
172
|
+
configuration: GetAgentConfiguration2 | GetAgentConfiguration1;
|
|
169
173
|
};
|
|
170
174
|
|
|
171
175
|
export const HiddenPanels = {
|
|
@@ -221,7 +225,7 @@ export type GetAgentResponseBody = {
|
|
|
221
225
|
/**
|
|
222
226
|
* Agent knowledge bases reference
|
|
223
227
|
*/
|
|
224
|
-
knowledgeBases?: Array<
|
|
228
|
+
knowledgeBases?: Array<GetAgentKnowledgeBases> | undefined;
|
|
225
229
|
/**
|
|
226
230
|
* List of hidden collapsed panels in configuration. Duplicates are not allowed.
|
|
227
231
|
*/
|
|
@@ -387,7 +391,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
387
391
|
id: z.string(),
|
|
388
392
|
action_type: z.string(),
|
|
389
393
|
display_name: z.string().optional(),
|
|
390
|
-
requires_approval: z.boolean(),
|
|
394
|
+
requires_approval: z.boolean().default(false),
|
|
391
395
|
conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
|
|
392
396
|
mcpServer: z.string().optional(),
|
|
393
397
|
timeout: z.number().default(120),
|
|
@@ -419,7 +423,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
419
423
|
id: z.string(),
|
|
420
424
|
actionType: z.string(),
|
|
421
425
|
displayName: z.string().optional(),
|
|
422
|
-
requiresApproval: z.boolean(),
|
|
426
|
+
requiresApproval: z.boolean().default(false),
|
|
423
427
|
conditions: z.array(z.lazy(() => Conditions$outboundSchema)).optional(),
|
|
424
428
|
mcpServer: z.string().optional(),
|
|
425
429
|
timeout: z.number().default(120),
|
|
@@ -753,8 +757,8 @@ export namespace GetAgentConfigurationType$ {
|
|
|
753
757
|
}
|
|
754
758
|
|
|
755
759
|
/** @internal */
|
|
756
|
-
export const
|
|
757
|
-
|
|
760
|
+
export const GetAgentConfiguration2$inboundSchema: z.ZodType<
|
|
761
|
+
GetAgentConfiguration2,
|
|
758
762
|
z.ZodTypeDef,
|
|
759
763
|
unknown
|
|
760
764
|
> = z.object({
|
|
@@ -763,16 +767,16 @@ export const Configuration2$inboundSchema: z.ZodType<
|
|
|
763
767
|
});
|
|
764
768
|
|
|
765
769
|
/** @internal */
|
|
766
|
-
export type
|
|
770
|
+
export type GetAgentConfiguration2$Outbound = {
|
|
767
771
|
type: string;
|
|
768
772
|
query: string;
|
|
769
773
|
};
|
|
770
774
|
|
|
771
775
|
/** @internal */
|
|
772
|
-
export const
|
|
773
|
-
|
|
776
|
+
export const GetAgentConfiguration2$outboundSchema: z.ZodType<
|
|
777
|
+
GetAgentConfiguration2$Outbound,
|
|
774
778
|
z.ZodTypeDef,
|
|
775
|
-
|
|
779
|
+
GetAgentConfiguration2
|
|
776
780
|
> = z.object({
|
|
777
781
|
type: GetAgentConfigurationType$outboundSchema,
|
|
778
782
|
query: z.string(),
|
|
@@ -782,163 +786,175 @@ export const Configuration2$outboundSchema: z.ZodType<
|
|
|
782
786
|
* @internal
|
|
783
787
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
784
788
|
*/
|
|
785
|
-
export namespace
|
|
786
|
-
/** @deprecated use `
|
|
787
|
-
export const inboundSchema =
|
|
788
|
-
/** @deprecated use `
|
|
789
|
-
export const outboundSchema =
|
|
790
|
-
/** @deprecated use `
|
|
791
|
-
export type Outbound =
|
|
789
|
+
export namespace GetAgentConfiguration2$ {
|
|
790
|
+
/** @deprecated use `GetAgentConfiguration2$inboundSchema` instead. */
|
|
791
|
+
export const inboundSchema = GetAgentConfiguration2$inboundSchema;
|
|
792
|
+
/** @deprecated use `GetAgentConfiguration2$outboundSchema` instead. */
|
|
793
|
+
export const outboundSchema = GetAgentConfiguration2$outboundSchema;
|
|
794
|
+
/** @deprecated use `GetAgentConfiguration2$Outbound` instead. */
|
|
795
|
+
export type Outbound = GetAgentConfiguration2$Outbound;
|
|
792
796
|
}
|
|
793
797
|
|
|
794
|
-
export function
|
|
795
|
-
|
|
798
|
+
export function getAgentConfiguration2ToJSON(
|
|
799
|
+
getAgentConfiguration2: GetAgentConfiguration2,
|
|
800
|
+
): string {
|
|
801
|
+
return JSON.stringify(
|
|
802
|
+
GetAgentConfiguration2$outboundSchema.parse(getAgentConfiguration2),
|
|
803
|
+
);
|
|
796
804
|
}
|
|
797
805
|
|
|
798
|
-
export function
|
|
806
|
+
export function getAgentConfiguration2FromJSON(
|
|
799
807
|
jsonString: string,
|
|
800
|
-
): SafeParseResult<
|
|
808
|
+
): SafeParseResult<GetAgentConfiguration2, SDKValidationError> {
|
|
801
809
|
return safeParse(
|
|
802
810
|
jsonString,
|
|
803
|
-
(x) =>
|
|
804
|
-
`Failed to parse '
|
|
811
|
+
(x) => GetAgentConfiguration2$inboundSchema.parse(JSON.parse(x)),
|
|
812
|
+
`Failed to parse 'GetAgentConfiguration2' from JSON`,
|
|
805
813
|
);
|
|
806
814
|
}
|
|
807
815
|
|
|
808
816
|
/** @internal */
|
|
809
|
-
export const
|
|
810
|
-
typeof
|
|
811
|
-
> = z.nativeEnum(
|
|
817
|
+
export const GetAgentConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
818
|
+
typeof GetAgentConfigurationAgentsType
|
|
819
|
+
> = z.nativeEnum(GetAgentConfigurationAgentsType);
|
|
812
820
|
|
|
813
821
|
/** @internal */
|
|
814
|
-
export const
|
|
815
|
-
typeof
|
|
816
|
-
> =
|
|
822
|
+
export const GetAgentConfigurationAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
823
|
+
typeof GetAgentConfigurationAgentsType
|
|
824
|
+
> = GetAgentConfigurationAgentsType$inboundSchema;
|
|
817
825
|
|
|
818
826
|
/**
|
|
819
827
|
* @internal
|
|
820
828
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
821
829
|
*/
|
|
822
|
-
export namespace
|
|
823
|
-
/** @deprecated use `
|
|
824
|
-
export const inboundSchema =
|
|
825
|
-
/** @deprecated use `
|
|
826
|
-
export const outboundSchema =
|
|
830
|
+
export namespace GetAgentConfigurationAgentsType$ {
|
|
831
|
+
/** @deprecated use `GetAgentConfigurationAgentsType$inboundSchema` instead. */
|
|
832
|
+
export const inboundSchema = GetAgentConfigurationAgentsType$inboundSchema;
|
|
833
|
+
/** @deprecated use `GetAgentConfigurationAgentsType$outboundSchema` instead. */
|
|
834
|
+
export const outboundSchema = GetAgentConfigurationAgentsType$outboundSchema;
|
|
827
835
|
}
|
|
828
836
|
|
|
829
837
|
/** @internal */
|
|
830
|
-
export const
|
|
831
|
-
|
|
838
|
+
export const GetAgentConfiguration1$inboundSchema: z.ZodType<
|
|
839
|
+
GetAgentConfiguration1,
|
|
832
840
|
z.ZodTypeDef,
|
|
833
841
|
unknown
|
|
834
842
|
> = z.object({
|
|
835
|
-
type:
|
|
843
|
+
type: GetAgentConfigurationAgentsType$inboundSchema,
|
|
836
844
|
});
|
|
837
845
|
|
|
838
846
|
/** @internal */
|
|
839
|
-
export type
|
|
847
|
+
export type GetAgentConfiguration1$Outbound = {
|
|
840
848
|
type: string;
|
|
841
849
|
};
|
|
842
850
|
|
|
843
851
|
/** @internal */
|
|
844
|
-
export const
|
|
845
|
-
|
|
852
|
+
export const GetAgentConfiguration1$outboundSchema: z.ZodType<
|
|
853
|
+
GetAgentConfiguration1$Outbound,
|
|
846
854
|
z.ZodTypeDef,
|
|
847
|
-
|
|
855
|
+
GetAgentConfiguration1
|
|
848
856
|
> = z.object({
|
|
849
|
-
type:
|
|
857
|
+
type: GetAgentConfigurationAgentsType$outboundSchema,
|
|
850
858
|
});
|
|
851
859
|
|
|
852
860
|
/**
|
|
853
861
|
* @internal
|
|
854
862
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
863
|
*/
|
|
856
|
-
export namespace
|
|
857
|
-
/** @deprecated use `
|
|
858
|
-
export const inboundSchema =
|
|
859
|
-
/** @deprecated use `
|
|
860
|
-
export const outboundSchema =
|
|
861
|
-
/** @deprecated use `
|
|
862
|
-
export type Outbound =
|
|
864
|
+
export namespace GetAgentConfiguration1$ {
|
|
865
|
+
/** @deprecated use `GetAgentConfiguration1$inboundSchema` instead. */
|
|
866
|
+
export const inboundSchema = GetAgentConfiguration1$inboundSchema;
|
|
867
|
+
/** @deprecated use `GetAgentConfiguration1$outboundSchema` instead. */
|
|
868
|
+
export const outboundSchema = GetAgentConfiguration1$outboundSchema;
|
|
869
|
+
/** @deprecated use `GetAgentConfiguration1$Outbound` instead. */
|
|
870
|
+
export type Outbound = GetAgentConfiguration1$Outbound;
|
|
863
871
|
}
|
|
864
872
|
|
|
865
|
-
export function
|
|
866
|
-
|
|
873
|
+
export function getAgentConfiguration1ToJSON(
|
|
874
|
+
getAgentConfiguration1: GetAgentConfiguration1,
|
|
875
|
+
): string {
|
|
876
|
+
return JSON.stringify(
|
|
877
|
+
GetAgentConfiguration1$outboundSchema.parse(getAgentConfiguration1),
|
|
878
|
+
);
|
|
867
879
|
}
|
|
868
880
|
|
|
869
|
-
export function
|
|
881
|
+
export function getAgentConfiguration1FromJSON(
|
|
870
882
|
jsonString: string,
|
|
871
|
-
): SafeParseResult<
|
|
883
|
+
): SafeParseResult<GetAgentConfiguration1, SDKValidationError> {
|
|
872
884
|
return safeParse(
|
|
873
885
|
jsonString,
|
|
874
|
-
(x) =>
|
|
875
|
-
`Failed to parse '
|
|
886
|
+
(x) => GetAgentConfiguration1$inboundSchema.parse(JSON.parse(x)),
|
|
887
|
+
`Failed to parse 'GetAgentConfiguration1' from JSON`,
|
|
876
888
|
);
|
|
877
889
|
}
|
|
878
890
|
|
|
879
891
|
/** @internal */
|
|
880
|
-
export const
|
|
881
|
-
|
|
892
|
+
export const GetAgentConfiguration$inboundSchema: z.ZodType<
|
|
893
|
+
GetAgentConfiguration,
|
|
882
894
|
z.ZodTypeDef,
|
|
883
895
|
unknown
|
|
884
896
|
> = z.union([
|
|
885
|
-
z.lazy(() =>
|
|
886
|
-
z.lazy(() =>
|
|
897
|
+
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
898
|
+
z.lazy(() => GetAgentConfiguration1$inboundSchema),
|
|
887
899
|
]);
|
|
888
900
|
|
|
889
901
|
/** @internal */
|
|
890
|
-
export type
|
|
891
|
-
|
|
|
892
|
-
|
|
|
902
|
+
export type GetAgentConfiguration$Outbound =
|
|
903
|
+
| GetAgentConfiguration2$Outbound
|
|
904
|
+
| GetAgentConfiguration1$Outbound;
|
|
893
905
|
|
|
894
906
|
/** @internal */
|
|
895
|
-
export const
|
|
896
|
-
|
|
907
|
+
export const GetAgentConfiguration$outboundSchema: z.ZodType<
|
|
908
|
+
GetAgentConfiguration$Outbound,
|
|
897
909
|
z.ZodTypeDef,
|
|
898
|
-
|
|
910
|
+
GetAgentConfiguration
|
|
899
911
|
> = z.union([
|
|
900
|
-
z.lazy(() =>
|
|
901
|
-
z.lazy(() =>
|
|
912
|
+
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
913
|
+
z.lazy(() => GetAgentConfiguration1$outboundSchema),
|
|
902
914
|
]);
|
|
903
915
|
|
|
904
916
|
/**
|
|
905
917
|
* @internal
|
|
906
918
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
907
919
|
*/
|
|
908
|
-
export namespace
|
|
909
|
-
/** @deprecated use `
|
|
910
|
-
export const inboundSchema =
|
|
911
|
-
/** @deprecated use `
|
|
912
|
-
export const outboundSchema =
|
|
913
|
-
/** @deprecated use `
|
|
914
|
-
export type Outbound =
|
|
920
|
+
export namespace GetAgentConfiguration$ {
|
|
921
|
+
/** @deprecated use `GetAgentConfiguration$inboundSchema` instead. */
|
|
922
|
+
export const inboundSchema = GetAgentConfiguration$inboundSchema;
|
|
923
|
+
/** @deprecated use `GetAgentConfiguration$outboundSchema` instead. */
|
|
924
|
+
export const outboundSchema = GetAgentConfiguration$outboundSchema;
|
|
925
|
+
/** @deprecated use `GetAgentConfiguration$Outbound` instead. */
|
|
926
|
+
export type Outbound = GetAgentConfiguration$Outbound;
|
|
915
927
|
}
|
|
916
928
|
|
|
917
|
-
export function
|
|
918
|
-
|
|
929
|
+
export function getAgentConfigurationToJSON(
|
|
930
|
+
getAgentConfiguration: GetAgentConfiguration,
|
|
931
|
+
): string {
|
|
932
|
+
return JSON.stringify(
|
|
933
|
+
GetAgentConfiguration$outboundSchema.parse(getAgentConfiguration),
|
|
934
|
+
);
|
|
919
935
|
}
|
|
920
936
|
|
|
921
|
-
export function
|
|
937
|
+
export function getAgentConfigurationFromJSON(
|
|
922
938
|
jsonString: string,
|
|
923
|
-
): SafeParseResult<
|
|
939
|
+
): SafeParseResult<GetAgentConfiguration, SDKValidationError> {
|
|
924
940
|
return safeParse(
|
|
925
941
|
jsonString,
|
|
926
|
-
(x) =>
|
|
927
|
-
`Failed to parse '
|
|
942
|
+
(x) => GetAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
943
|
+
`Failed to parse 'GetAgentConfiguration' from JSON`,
|
|
928
944
|
);
|
|
929
945
|
}
|
|
930
946
|
|
|
931
947
|
/** @internal */
|
|
932
|
-
export const
|
|
933
|
-
|
|
948
|
+
export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
949
|
+
GetAgentKnowledgeBases,
|
|
934
950
|
z.ZodTypeDef,
|
|
935
951
|
unknown
|
|
936
952
|
> = z.object({
|
|
937
|
-
id: z.string().default("
|
|
953
|
+
id: z.string().default("01K5E8A6S0QYXQBKAVKD0103F8"),
|
|
938
954
|
knowledge_id: z.string(),
|
|
939
955
|
configuration: z.union([
|
|
940
|
-
z.lazy(() =>
|
|
941
|
-
z.lazy(() =>
|
|
956
|
+
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
957
|
+
z.lazy(() => GetAgentConfiguration1$inboundSchema),
|
|
942
958
|
]),
|
|
943
959
|
}).transform((v) => {
|
|
944
960
|
return remap$(v, {
|
|
@@ -947,23 +963,25 @@ export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
|
947
963
|
});
|
|
948
964
|
|
|
949
965
|
/** @internal */
|
|
950
|
-
export type
|
|
966
|
+
export type GetAgentKnowledgeBases$Outbound = {
|
|
951
967
|
id: string;
|
|
952
968
|
knowledge_id: string;
|
|
953
|
-
configuration:
|
|
969
|
+
configuration:
|
|
970
|
+
| GetAgentConfiguration2$Outbound
|
|
971
|
+
| GetAgentConfiguration1$Outbound;
|
|
954
972
|
};
|
|
955
973
|
|
|
956
974
|
/** @internal */
|
|
957
|
-
export const
|
|
958
|
-
|
|
975
|
+
export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
976
|
+
GetAgentKnowledgeBases$Outbound,
|
|
959
977
|
z.ZodTypeDef,
|
|
960
|
-
|
|
978
|
+
GetAgentKnowledgeBases
|
|
961
979
|
> = z.object({
|
|
962
|
-
id: z.string().default("
|
|
980
|
+
id: z.string().default("01K5E8A6S0QYXQBKAVKD0103F8"),
|
|
963
981
|
knowledgeId: z.string(),
|
|
964
982
|
configuration: z.union([
|
|
965
|
-
z.lazy(() =>
|
|
966
|
-
z.lazy(() =>
|
|
983
|
+
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
984
|
+
z.lazy(() => GetAgentConfiguration1$outboundSchema),
|
|
967
985
|
]),
|
|
968
986
|
}).transform((v) => {
|
|
969
987
|
return remap$(v, {
|
|
@@ -975,26 +993,30 @@ export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
|
975
993
|
* @internal
|
|
976
994
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
977
995
|
*/
|
|
978
|
-
export namespace
|
|
979
|
-
/** @deprecated use `
|
|
980
|
-
export const inboundSchema =
|
|
981
|
-
/** @deprecated use `
|
|
982
|
-
export const outboundSchema =
|
|
983
|
-
/** @deprecated use `
|
|
984
|
-
export type Outbound =
|
|
996
|
+
export namespace GetAgentKnowledgeBases$ {
|
|
997
|
+
/** @deprecated use `GetAgentKnowledgeBases$inboundSchema` instead. */
|
|
998
|
+
export const inboundSchema = GetAgentKnowledgeBases$inboundSchema;
|
|
999
|
+
/** @deprecated use `GetAgentKnowledgeBases$outboundSchema` instead. */
|
|
1000
|
+
export const outboundSchema = GetAgentKnowledgeBases$outboundSchema;
|
|
1001
|
+
/** @deprecated use `GetAgentKnowledgeBases$Outbound` instead. */
|
|
1002
|
+
export type Outbound = GetAgentKnowledgeBases$Outbound;
|
|
985
1003
|
}
|
|
986
1004
|
|
|
987
|
-
export function
|
|
988
|
-
|
|
1005
|
+
export function getAgentKnowledgeBasesToJSON(
|
|
1006
|
+
getAgentKnowledgeBases: GetAgentKnowledgeBases,
|
|
1007
|
+
): string {
|
|
1008
|
+
return JSON.stringify(
|
|
1009
|
+
GetAgentKnowledgeBases$outboundSchema.parse(getAgentKnowledgeBases),
|
|
1010
|
+
);
|
|
989
1011
|
}
|
|
990
1012
|
|
|
991
|
-
export function
|
|
1013
|
+
export function getAgentKnowledgeBasesFromJSON(
|
|
992
1014
|
jsonString: string,
|
|
993
|
-
): SafeParseResult<
|
|
1015
|
+
): SafeParseResult<GetAgentKnowledgeBases, SDKValidationError> {
|
|
994
1016
|
return safeParse(
|
|
995
1017
|
jsonString,
|
|
996
|
-
(x) =>
|
|
997
|
-
`Failed to parse '
|
|
1018
|
+
(x) => GetAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1019
|
+
`Failed to parse 'GetAgentKnowledgeBases' from JSON`,
|
|
998
1020
|
);
|
|
999
1021
|
}
|
|
1000
1022
|
|
|
@@ -1045,7 +1067,7 @@ export const GetAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
1045
1067
|
team_of_agents: z.array(z.lazy(() => GetAgentTeamOfAgents$inboundSchema)),
|
|
1046
1068
|
metrics: z.lazy(() => Metrics$inboundSchema).optional(),
|
|
1047
1069
|
variables: z.record(z.any()).optional(),
|
|
1048
|
-
knowledge_bases: z.array(z.lazy(() =>
|
|
1070
|
+
knowledge_bases: z.array(z.lazy(() => GetAgentKnowledgeBases$inboundSchema))
|
|
1049
1071
|
.optional(),
|
|
1050
1072
|
hidden_panels: z.array(HiddenPanels$inboundSchema).optional(),
|
|
1051
1073
|
}).transform((v) => {
|
|
@@ -1088,7 +1110,7 @@ export type GetAgentResponseBody$Outbound = {
|
|
|
1088
1110
|
team_of_agents: Array<GetAgentTeamOfAgents$Outbound>;
|
|
1089
1111
|
metrics?: Metrics$Outbound | undefined;
|
|
1090
1112
|
variables?: { [k: string]: any } | undefined;
|
|
1091
|
-
knowledge_bases?: Array<
|
|
1113
|
+
knowledge_bases?: Array<GetAgentKnowledgeBases$Outbound> | undefined;
|
|
1092
1114
|
hidden_panels?: Array<string> | undefined;
|
|
1093
1115
|
};
|
|
1094
1116
|
|
|
@@ -1120,7 +1142,7 @@ export const GetAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
1120
1142
|
teamOfAgents: z.array(z.lazy(() => GetAgentTeamOfAgents$outboundSchema)),
|
|
1121
1143
|
metrics: z.lazy(() => Metrics$outboundSchema).optional(),
|
|
1122
1144
|
variables: z.record(z.any()).optional(),
|
|
1123
|
-
knowledgeBases: z.array(z.lazy(() =>
|
|
1145
|
+
knowledgeBases: z.array(z.lazy(() => GetAgentKnowledgeBases$outboundSchema))
|
|
1124
1146
|
.optional(),
|
|
1125
1147
|
hiddenPanels: z.array(HiddenPanels$outboundSchema).optional(),
|
|
1126
1148
|
}).transform((v) => {
|
|
@@ -351,7 +351,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
351
351
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
352
352
|
.optional(),
|
|
353
353
|
updated: z.string().datetime({ offset: true }).default(
|
|
354
|
-
"2025-09-
|
|
354
|
+
"2025-09-18T11:10:42.158Z",
|
|
355
355
|
).transform(v => new Date(v)),
|
|
356
356
|
}).transform((v) => {
|
|
357
357
|
return remap$(v, {
|
|
@@ -386,7 +386,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
386
386
|
isActive: z.boolean(),
|
|
387
387
|
consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
|
|
388
388
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
389
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
389
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
390
390
|
.transform(v => v.toISOString()),
|
|
391
391
|
}).transform((v) => {
|
|
392
392
|
return remap$(v, {
|
|
@@ -1556,8 +1556,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1556
1556
|
> = z.object({
|
|
1557
1557
|
_id: z.string(),
|
|
1558
1558
|
description: z.string(),
|
|
1559
|
-
created: z.string().default("2025-09-
|
|
1560
|
-
updated: z.string().default("2025-09-
|
|
1559
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
1560
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
1561
1561
|
guardrail_config: z.union([
|
|
1562
1562
|
z.lazy(() =>
|
|
1563
1563
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -1600,8 +1600,8 @@ export const DataTypescript$outboundSchema: z.ZodType<
|
|
|
1600
1600
|
> = z.object({
|
|
1601
1601
|
id: z.string(),
|
|
1602
1602
|
description: z.string(),
|
|
1603
|
-
created: z.string().default("2025-09-
|
|
1604
|
-
updated: z.string().default("2025-09-
|
|
1603
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
1604
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
1605
1605
|
guardrailConfig: z.union([
|
|
1606
1606
|
z.lazy(() =>
|
|
1607
1607
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -2002,8 +2002,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
2002
2002
|
> = z.object({
|
|
2003
2003
|
_id: z.string(),
|
|
2004
2004
|
description: z.string(),
|
|
2005
|
-
created: z.string().default("2025-09-
|
|
2006
|
-
updated: z.string().default("2025-09-
|
|
2005
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
2006
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
2007
2007
|
guardrail_config: z.union([
|
|
2008
2008
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
2009
2009
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -2044,8 +2044,8 @@ export const DataRagas$outboundSchema: z.ZodType<
|
|
|
2044
2044
|
> = z.object({
|
|
2045
2045
|
id: z.string(),
|
|
2046
2046
|
description: z.string(),
|
|
2047
|
-
created: z.string().default("2025-09-
|
|
2048
|
-
updated: z.string().default("2025-09-
|
|
2047
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
2048
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
2049
2049
|
guardrailConfig: z.union([
|
|
2050
2050
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2051
2051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -5512,8 +5512,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
5512
5512
|
> = z.object({
|
|
5513
5513
|
_id: z.string(),
|
|
5514
5514
|
description: z.string(),
|
|
5515
|
-
created: z.string().default("2025-09-
|
|
5516
|
-
updated: z.string().default("2025-09-
|
|
5515
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
5516
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
5517
5517
|
guardrail_config: z.union([
|
|
5518
5518
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
5519
5519
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -5623,8 +5623,8 @@ export const DataFunction$outboundSchema: z.ZodType<
|
|
|
5623
5623
|
> = z.object({
|
|
5624
5624
|
id: z.string(),
|
|
5625
5625
|
description: z.string(),
|
|
5626
|
-
created: z.string().default("2025-09-
|
|
5627
|
-
updated: z.string().default("2025-09-
|
|
5626
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
5627
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
5628
5628
|
guardrailConfig: z.union([
|
|
5629
5629
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
5630
5630
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -6006,8 +6006,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
6006
6006
|
> = z.object({
|
|
6007
6007
|
_id: z.string(),
|
|
6008
6008
|
description: z.string(),
|
|
6009
|
-
created: z.string().default("2025-09-
|
|
6010
|
-
updated: z.string().default("2025-09-
|
|
6009
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6010
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6011
6011
|
guardrail_config: z.union([
|
|
6012
6012
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
6013
6013
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -6045,8 +6045,8 @@ export const DataPython$outboundSchema: z.ZodType<
|
|
|
6045
6045
|
> = z.object({
|
|
6046
6046
|
id: z.string(),
|
|
6047
6047
|
description: z.string(),
|
|
6048
|
-
created: z.string().default("2025-09-
|
|
6049
|
-
updated: z.string().default("2025-09-
|
|
6048
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6049
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6050
6050
|
guardrailConfig: z.union([
|
|
6051
6051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
6052
6052
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
|
|
@@ -6392,8 +6392,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
6392
6392
|
> = z.object({
|
|
6393
6393
|
_id: z.string(),
|
|
6394
6394
|
description: z.string(),
|
|
6395
|
-
created: z.string().default("2025-09-
|
|
6396
|
-
updated: z.string().default("2025-09-
|
|
6395
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6396
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6397
6397
|
guardrail_config: z.union([
|
|
6398
6398
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
6399
6399
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -6437,8 +6437,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
|
|
|
6437
6437
|
> = z.object({
|
|
6438
6438
|
id: z.string(),
|
|
6439
6439
|
description: z.string(),
|
|
6440
|
-
created: z.string().default("2025-09-
|
|
6441
|
-
updated: z.string().default("2025-09-
|
|
6440
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6441
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6442
6442
|
guardrailConfig: z.union([
|
|
6443
6443
|
z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
6444
6444
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
|
|
@@ -6803,8 +6803,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
6803
6803
|
> = z.object({
|
|
6804
6804
|
_id: z.string(),
|
|
6805
6805
|
description: z.string(),
|
|
6806
|
-
created: z.string().default("2025-09-
|
|
6807
|
-
updated: z.string().default("2025-09-
|
|
6806
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6807
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6808
6808
|
guardrail_config: z.union([
|
|
6809
6809
|
z.lazy(() =>
|
|
6810
6810
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
|
|
@@ -6846,8 +6846,8 @@ export const DataJSON$outboundSchema: z.ZodType<
|
|
|
6846
6846
|
> = z.object({
|
|
6847
6847
|
id: z.string(),
|
|
6848
6848
|
description: z.string(),
|
|
6849
|
-
created: z.string().default("2025-09-
|
|
6850
|
-
updated: z.string().default("2025-09-
|
|
6849
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6850
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
6851
6851
|
guardrailConfig: z.union([
|
|
6852
6852
|
z.lazy(() =>
|
|
6853
6853
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
|
|
@@ -7229,8 +7229,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
7229
7229
|
z.object({
|
|
7230
7230
|
_id: z.string(),
|
|
7231
7231
|
description: z.string(),
|
|
7232
|
-
created: z.string().default("2025-09-
|
|
7233
|
-
updated: z.string().default("2025-09-
|
|
7232
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
7233
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
7234
7234
|
guardrail_config: z.union([
|
|
7235
7235
|
z.lazy(() =>
|
|
7236
7236
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7274,8 +7274,8 @@ export const DataLLM$outboundSchema: z.ZodType<
|
|
|
7274
7274
|
> = z.object({
|
|
7275
7275
|
id: z.string(),
|
|
7276
7276
|
description: z.string(),
|
|
7277
|
-
created: z.string().default("2025-09-
|
|
7278
|
-
updated: z.string().default("2025-09-
|
|
7277
|
+
created: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
7278
|
+
updated: z.string().default("2025-09-18T11:10:44.471Z"),
|
|
7279
7279
|
guardrailConfig: z.union([
|
|
7280
7280
|
z.lazy(() =>
|
|
7281
7281
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -99,7 +99,6 @@ export * from "./listknowledgebases.js";
|
|
|
99
99
|
export * from "./listmodels.js";
|
|
100
100
|
export * from "./listpromptversions.js";
|
|
101
101
|
export * from "./parse.js";
|
|
102
|
-
export * from "./postv2agentsinternal.js";
|
|
103
102
|
export * from "./remoteconfigsgetconfig.js";
|
|
104
103
|
export * from "./retrieveaction.js";
|
|
105
104
|
export * from "./retrievecontact.js";
|