@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.
Files changed (116) hide show
  1. package/bin/mcp-server.js +112 -112
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/mcp-server.js.map +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/mcp-server/server.js.map +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/FUNCTIONS.md +19 -9
  40. package/packages/orq-rc/README.md +179 -123
  41. package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
  42. package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
  43. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  44. package/packages/orq-rc/examples/package-lock.json +1 -1
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/lib/config.ts +3 -3
  49. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  50. package/packages/orq-rc/src/mcp-server/server.ts +1 -3
  51. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  57. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
  61. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  63. package/packages/orq-rc/src/models/operations/index.ts +0 -1
  64. package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
  65. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/runagent.ts +300 -12
  75. package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
  76. package/packages/orq-rc/src/models/operations/streamrunagent.ts +335 -12
  77. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  83. package/packages/orq-rc/src/sdk/sdk.ts +1 -15
  84. package/src/lib/config.ts +3 -3
  85. package/src/mcp-server/mcp-server.ts +1 -1
  86. package/src/mcp-server/server.ts +1 -1
  87. package/src/models/operations/createbudget.ts +2 -2
  88. package/src/models/operations/createcontact.ts +2 -2
  89. package/src/models/operations/createdataset.ts +2 -2
  90. package/src/models/operations/createdatasetitem.ts +2 -2
  91. package/src/models/operations/createdatasource.ts +2 -2
  92. package/src/models/operations/createeval.ts +16 -16
  93. package/src/models/operations/fileget.ts +2 -2
  94. package/src/models/operations/filelist.ts +2 -2
  95. package/src/models/operations/fileupload.ts +2 -2
  96. package/src/models/operations/getbudget.ts +2 -2
  97. package/src/models/operations/getevals.ts +28 -28
  98. package/src/models/operations/listbudgets.ts +2 -2
  99. package/src/models/operations/listcontacts.ts +2 -2
  100. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  101. package/src/models/operations/listdatasets.ts +2 -2
  102. package/src/models/operations/listdatasources.ts +2 -2
  103. package/src/models/operations/retrievecontact.ts +2 -2
  104. package/src/models/operations/retrievedatapoint.ts +2 -2
  105. package/src/models/operations/retrievedataset.ts +2 -2
  106. package/src/models/operations/retrievedatasource.ts +2 -2
  107. package/src/models/operations/updatebudget.ts +2 -2
  108. package/src/models/operations/updatecontact.ts +2 -2
  109. package/src/models/operations/updatedatapoint.ts +2 -2
  110. package/src/models/operations/updatedataset.ts +2 -2
  111. package/src/models/operations/updatedatasource.ts +2 -2
  112. package/src/models/operations/updateeval.ts +16 -16
  113. package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
  114. package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
  115. package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
  116. 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: boolean;
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 Configuration2 = {
137
+ export type GetAgentConfiguration2 = {
138
138
  type: GetAgentConfigurationType;
139
139
  query: string;
140
140
  };
141
141
 
142
- export const ConfigurationType = {
142
+ export const GetAgentConfigurationAgentsType = {
143
143
  LastUserMessage: "last_user_message",
144
144
  } as const;
145
- export type ConfigurationType = ClosedEnum<typeof ConfigurationType>;
145
+ export type GetAgentConfigurationAgentsType = ClosedEnum<
146
+ typeof GetAgentConfigurationAgentsType
147
+ >;
146
148
 
147
- export type Configuration1 = {
148
- type: ConfigurationType;
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 Configuration = Configuration2 | Configuration1;
156
+ export type GetAgentConfiguration =
157
+ | GetAgentConfiguration2
158
+ | GetAgentConfiguration1;
155
159
 
156
- export type KnowledgeBases = {
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: Configuration2 | Configuration1;
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<KnowledgeBases> | undefined;
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 Configuration2$inboundSchema: z.ZodType<
757
- Configuration2,
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 Configuration2$Outbound = {
770
+ export type GetAgentConfiguration2$Outbound = {
767
771
  type: string;
768
772
  query: string;
769
773
  };
770
774
 
771
775
  /** @internal */
772
- export const Configuration2$outboundSchema: z.ZodType<
773
- Configuration2$Outbound,
776
+ export const GetAgentConfiguration2$outboundSchema: z.ZodType<
777
+ GetAgentConfiguration2$Outbound,
774
778
  z.ZodTypeDef,
775
- Configuration2
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 Configuration2$ {
786
- /** @deprecated use `Configuration2$inboundSchema` instead. */
787
- export const inboundSchema = Configuration2$inboundSchema;
788
- /** @deprecated use `Configuration2$outboundSchema` instead. */
789
- export const outboundSchema = Configuration2$outboundSchema;
790
- /** @deprecated use `Configuration2$Outbound` instead. */
791
- export type Outbound = Configuration2$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 configuration2ToJSON(configuration2: Configuration2): string {
795
- return JSON.stringify(Configuration2$outboundSchema.parse(configuration2));
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 configuration2FromJSON(
806
+ export function getAgentConfiguration2FromJSON(
799
807
  jsonString: string,
800
- ): SafeParseResult<Configuration2, SDKValidationError> {
808
+ ): SafeParseResult<GetAgentConfiguration2, SDKValidationError> {
801
809
  return safeParse(
802
810
  jsonString,
803
- (x) => Configuration2$inboundSchema.parse(JSON.parse(x)),
804
- `Failed to parse 'Configuration2' from JSON`,
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 ConfigurationType$inboundSchema: z.ZodNativeEnum<
810
- typeof ConfigurationType
811
- > = z.nativeEnum(ConfigurationType);
817
+ export const GetAgentConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<
818
+ typeof GetAgentConfigurationAgentsType
819
+ > = z.nativeEnum(GetAgentConfigurationAgentsType);
812
820
 
813
821
  /** @internal */
814
- export const ConfigurationType$outboundSchema: z.ZodNativeEnum<
815
- typeof ConfigurationType
816
- > = ConfigurationType$inboundSchema;
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 ConfigurationType$ {
823
- /** @deprecated use `ConfigurationType$inboundSchema` instead. */
824
- export const inboundSchema = ConfigurationType$inboundSchema;
825
- /** @deprecated use `ConfigurationType$outboundSchema` instead. */
826
- export const outboundSchema = ConfigurationType$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 Configuration1$inboundSchema: z.ZodType<
831
- Configuration1,
838
+ export const GetAgentConfiguration1$inboundSchema: z.ZodType<
839
+ GetAgentConfiguration1,
832
840
  z.ZodTypeDef,
833
841
  unknown
834
842
  > = z.object({
835
- type: ConfigurationType$inboundSchema,
843
+ type: GetAgentConfigurationAgentsType$inboundSchema,
836
844
  });
837
845
 
838
846
  /** @internal */
839
- export type Configuration1$Outbound = {
847
+ export type GetAgentConfiguration1$Outbound = {
840
848
  type: string;
841
849
  };
842
850
 
843
851
  /** @internal */
844
- export const Configuration1$outboundSchema: z.ZodType<
845
- Configuration1$Outbound,
852
+ export const GetAgentConfiguration1$outboundSchema: z.ZodType<
853
+ GetAgentConfiguration1$Outbound,
846
854
  z.ZodTypeDef,
847
- Configuration1
855
+ GetAgentConfiguration1
848
856
  > = z.object({
849
- type: ConfigurationType$outboundSchema,
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 Configuration1$ {
857
- /** @deprecated use `Configuration1$inboundSchema` instead. */
858
- export const inboundSchema = Configuration1$inboundSchema;
859
- /** @deprecated use `Configuration1$outboundSchema` instead. */
860
- export const outboundSchema = Configuration1$outboundSchema;
861
- /** @deprecated use `Configuration1$Outbound` instead. */
862
- export type Outbound = Configuration1$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 configuration1ToJSON(configuration1: Configuration1): string {
866
- return JSON.stringify(Configuration1$outboundSchema.parse(configuration1));
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 configuration1FromJSON(
881
+ export function getAgentConfiguration1FromJSON(
870
882
  jsonString: string,
871
- ): SafeParseResult<Configuration1, SDKValidationError> {
883
+ ): SafeParseResult<GetAgentConfiguration1, SDKValidationError> {
872
884
  return safeParse(
873
885
  jsonString,
874
- (x) => Configuration1$inboundSchema.parse(JSON.parse(x)),
875
- `Failed to parse 'Configuration1' from JSON`,
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 Configuration$inboundSchema: z.ZodType<
881
- Configuration,
892
+ export const GetAgentConfiguration$inboundSchema: z.ZodType<
893
+ GetAgentConfiguration,
882
894
  z.ZodTypeDef,
883
895
  unknown
884
896
  > = z.union([
885
- z.lazy(() => Configuration2$inboundSchema),
886
- z.lazy(() => Configuration1$inboundSchema),
897
+ z.lazy(() => GetAgentConfiguration2$inboundSchema),
898
+ z.lazy(() => GetAgentConfiguration1$inboundSchema),
887
899
  ]);
888
900
 
889
901
  /** @internal */
890
- export type Configuration$Outbound =
891
- | Configuration2$Outbound
892
- | Configuration1$Outbound;
902
+ export type GetAgentConfiguration$Outbound =
903
+ | GetAgentConfiguration2$Outbound
904
+ | GetAgentConfiguration1$Outbound;
893
905
 
894
906
  /** @internal */
895
- export const Configuration$outboundSchema: z.ZodType<
896
- Configuration$Outbound,
907
+ export const GetAgentConfiguration$outboundSchema: z.ZodType<
908
+ GetAgentConfiguration$Outbound,
897
909
  z.ZodTypeDef,
898
- Configuration
910
+ GetAgentConfiguration
899
911
  > = z.union([
900
- z.lazy(() => Configuration2$outboundSchema),
901
- z.lazy(() => Configuration1$outboundSchema),
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 Configuration$ {
909
- /** @deprecated use `Configuration$inboundSchema` instead. */
910
- export const inboundSchema = Configuration$inboundSchema;
911
- /** @deprecated use `Configuration$outboundSchema` instead. */
912
- export const outboundSchema = Configuration$outboundSchema;
913
- /** @deprecated use `Configuration$Outbound` instead. */
914
- export type Outbound = Configuration$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 configurationToJSON(configuration: Configuration): string {
918
- return JSON.stringify(Configuration$outboundSchema.parse(configuration));
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 configurationFromJSON(
937
+ export function getAgentConfigurationFromJSON(
922
938
  jsonString: string,
923
- ): SafeParseResult<Configuration, SDKValidationError> {
939
+ ): SafeParseResult<GetAgentConfiguration, SDKValidationError> {
924
940
  return safeParse(
925
941
  jsonString,
926
- (x) => Configuration$inboundSchema.parse(JSON.parse(x)),
927
- `Failed to parse 'Configuration' from JSON`,
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 KnowledgeBases$inboundSchema: z.ZodType<
933
- KnowledgeBases,
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("01K4Y3HQH9NPKRAS2BCJYGPEDN"),
953
+ id: z.string().default("01K5E8A6S0QYXQBKAVKD0103F8"),
938
954
  knowledge_id: z.string(),
939
955
  configuration: z.union([
940
- z.lazy(() => Configuration2$inboundSchema),
941
- z.lazy(() => Configuration1$inboundSchema),
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 KnowledgeBases$Outbound = {
966
+ export type GetAgentKnowledgeBases$Outbound = {
951
967
  id: string;
952
968
  knowledge_id: string;
953
- configuration: Configuration2$Outbound | Configuration1$Outbound;
969
+ configuration:
970
+ | GetAgentConfiguration2$Outbound
971
+ | GetAgentConfiguration1$Outbound;
954
972
  };
955
973
 
956
974
  /** @internal */
957
- export const KnowledgeBases$outboundSchema: z.ZodType<
958
- KnowledgeBases$Outbound,
975
+ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
976
+ GetAgentKnowledgeBases$Outbound,
959
977
  z.ZodTypeDef,
960
- KnowledgeBases
978
+ GetAgentKnowledgeBases
961
979
  > = z.object({
962
- id: z.string().default("01K4Y3HQH9NPKRAS2BCJYGPEDN"),
980
+ id: z.string().default("01K5E8A6S0QYXQBKAVKD0103F8"),
963
981
  knowledgeId: z.string(),
964
982
  configuration: z.union([
965
- z.lazy(() => Configuration2$outboundSchema),
966
- z.lazy(() => Configuration1$outboundSchema),
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 KnowledgeBases$ {
979
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
980
- export const inboundSchema = KnowledgeBases$inboundSchema;
981
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
982
- export const outboundSchema = KnowledgeBases$outboundSchema;
983
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
984
- export type Outbound = KnowledgeBases$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 knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
988
- return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
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 knowledgeBasesFromJSON(
1013
+ export function getAgentKnowledgeBasesFromJSON(
992
1014
  jsonString: string,
993
- ): SafeParseResult<KnowledgeBases, SDKValidationError> {
1015
+ ): SafeParseResult<GetAgentKnowledgeBases, SDKValidationError> {
994
1016
  return safeParse(
995
1017
  jsonString,
996
- (x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
997
- `Failed to parse 'KnowledgeBases' from JSON`,
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(() => KnowledgeBases$inboundSchema))
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<KnowledgeBases$Outbound> | undefined;
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(() => KnowledgeBases$outboundSchema))
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-12T04:39:34.577Z",
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-12T04:39:34.577Z"))
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-12T04:39:37.055Z"),
1560
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
1604
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
2006
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
2048
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
5516
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
5627
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6010
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6049
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6396
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6441
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6807
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
6850
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7233
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7278
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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";