@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.
Files changed (127) 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/server.js +1 -1
  10. package/models/operations/createbudget.js +2 -2
  11. package/models/operations/createcontact.js +2 -2
  12. package/models/operations/createdataset.js +2 -2
  13. package/models/operations/createdatasetitem.js +2 -2
  14. package/models/operations/createdatasource.js +2 -2
  15. package/models/operations/createeval.js +16 -16
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getbudget.js +2 -2
  20. package/models/operations/getevals.js +28 -28
  21. package/models/operations/listbudgets.js +2 -2
  22. package/models/operations/listcontacts.js +2 -2
  23. package/models/operations/listdatasetdatapoints.js +2 -2
  24. package/models/operations/listdatasets.js +2 -2
  25. package/models/operations/listdatasources.js +2 -2
  26. package/models/operations/retrievecontact.js +2 -2
  27. package/models/operations/retrievedatapoint.js +2 -2
  28. package/models/operations/retrievedataset.js +2 -2
  29. package/models/operations/retrievedatasource.js +2 -2
  30. package/models/operations/updatebudget.js +2 -2
  31. package/models/operations/updatecontact.js +2 -2
  32. package/models/operations/updatedatapoint.js +2 -2
  33. package/models/operations/updatedataset.js +2 -2
  34. package/models/operations/updatedatasource.js +2 -2
  35. package/models/operations/updateeval.js +16 -16
  36. package/package.json +1 -1
  37. package/packages/orq-rc/examples/package-lock.json +1 -1
  38. package/packages/orq-rc/jsr.json +1 -1
  39. package/packages/orq-rc/package-lock.json +2 -2
  40. package/packages/orq-rc/package.json +1 -1
  41. package/packages/orq-rc/src/lib/config.ts +3 -3
  42. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  43. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  44. package/packages/orq-rc/src/models/components/deployments.ts +39 -44
  45. package/packages/orq-rc/src/models/components/index.ts +0 -13
  46. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  47. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  48. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  49. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createeval.ts +56 -60
  52. package/packages/orq-rc/src/models/operations/creatememorystore.ts +18 -17
  53. package/packages/orq-rc/src/models/operations/createprompt.ts +34 -30
  54. package/packages/orq-rc/src/models/operations/createtool.ts +42 -68
  55. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +27 -36
  56. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  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 +203 -141
  61. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  62. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  64. package/packages/orq-rc/src/models/operations/listagents.ts +202 -141
  65. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
  67. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/listdatasources.ts +22 -29
  71. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  76. package/packages/orq-rc/src/models/operations/runagent.ts +2292 -1130
  77. package/packages/orq-rc/src/models/operations/streamrunagent.ts +2590 -1252
  78. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
  84. package/packages/orq-rc/src/models/operations/updatememorystore.ts +17 -21
  85. package/packages/orq-rc/src/models/operations/updatetool.ts +43 -69
  86. package/src/lib/config.ts +3 -3
  87. package/src/mcp-server/mcp-server.ts +1 -1
  88. package/src/mcp-server/server.ts +1 -1
  89. package/src/models/operations/createbudget.ts +2 -2
  90. package/src/models/operations/createcontact.ts +2 -2
  91. package/src/models/operations/createdataset.ts +2 -2
  92. package/src/models/operations/createdatasetitem.ts +2 -2
  93. package/src/models/operations/createdatasource.ts +2 -2
  94. package/src/models/operations/createeval.ts +16 -16
  95. package/src/models/operations/fileget.ts +2 -2
  96. package/src/models/operations/filelist.ts +2 -2
  97. package/src/models/operations/fileupload.ts +2 -2
  98. package/src/models/operations/getbudget.ts +2 -2
  99. package/src/models/operations/getevals.ts +28 -28
  100. package/src/models/operations/listbudgets.ts +2 -2
  101. package/src/models/operations/listcontacts.ts +2 -2
  102. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  103. package/src/models/operations/listdatasets.ts +2 -2
  104. package/src/models/operations/listdatasources.ts +2 -2
  105. package/src/models/operations/retrievecontact.ts +2 -2
  106. package/src/models/operations/retrievedatapoint.ts +2 -2
  107. package/src/models/operations/retrievedataset.ts +2 -2
  108. package/src/models/operations/retrievedatasource.ts +2 -2
  109. package/src/models/operations/updatebudget.ts +2 -2
  110. package/src/models/operations/updatecontact.ts +2 -2
  111. package/src/models/operations/updatedatapoint.ts +2 -2
  112. package/src/models/operations/updatedataset.ts +2 -2
  113. package/src/models/operations/updatedatasource.ts +2 -2
  114. package/src/models/operations/updateeval.ts +16 -16
  115. package/packages/orq-rc/src/models/components/callsubagenttool.ts +0 -109
  116. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +0 -293
  117. package/packages/orq-rc/src/models/components/currentdatetool.ts +0 -107
  118. package/packages/orq-rc/src/models/components/functiontool.ts +0 -195
  119. package/packages/orq-rc/src/models/components/googlesearchtool.ts +0 -108
  120. package/packages/orq-rc/src/models/components/httptool.ts +0 -532
  121. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +0 -111
  122. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +0 -111
  123. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +0 -109
  124. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +0 -111
  125. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +0 -111
  126. package/packages/orq-rc/src/models/components/webscrapertool.ts +0 -105
  127. 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
- * Max execution time in seconds
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: number;
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 ListAgentsConfigurationType = {
146
+ export const ListAgentsKnowledgeBaseConfigurationType = {
144
147
  Query: "query",
145
148
  } as const;
146
- export type ListAgentsConfigurationType = ClosedEnum<
147
- typeof ListAgentsConfigurationType
149
+ export type ListAgentsKnowledgeBaseConfigurationType = ClosedEnum<
150
+ typeof ListAgentsKnowledgeBaseConfigurationType
148
151
  >;
149
152
 
150
- export type ListAgentsConfiguration2 = {
151
- type: ListAgentsConfigurationType;
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 ListAgentsConfigurationAgentsType = {
161
+ export const ListAgentsKnowledgeBaseConfigurationAgentsType = {
156
162
  LastUserMessage: "last_user_message",
157
163
  } as const;
158
- export type ListAgentsConfigurationAgentsType = ClosedEnum<
159
- typeof ListAgentsConfigurationAgentsType
164
+ export type ListAgentsKnowledgeBaseConfigurationAgentsType = ClosedEnum<
165
+ typeof ListAgentsKnowledgeBaseConfigurationAgentsType
160
166
  >;
161
167
 
162
- export type ListAgentsConfiguration1 = {
163
- type: ListAgentsConfigurationAgentsType;
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 ListAgentsConfiguration =
170
- | ListAgentsConfiguration2
171
- | ListAgentsConfiguration1;
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: ListAgentsConfiguration2 | ListAgentsConfiguration1;
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(10),
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(10),
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 ListAgentsConfigurationType$inboundSchema: z.ZodNativeEnum<
811
- typeof ListAgentsConfigurationType
812
- > = z.nativeEnum(ListAgentsConfigurationType);
821
+ export const ListAgentsKnowledgeBaseConfigurationType$inboundSchema:
822
+ z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationType> = z
823
+ .nativeEnum(ListAgentsKnowledgeBaseConfigurationType);
813
824
 
814
825
  /** @internal */
815
- export const ListAgentsConfigurationType$outboundSchema: z.ZodNativeEnum<
816
- typeof ListAgentsConfigurationType
817
- > = ListAgentsConfigurationType$inboundSchema;
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 ListAgentsConfigurationType$ {
824
- /** @deprecated use `ListAgentsConfigurationType$inboundSchema` instead. */
825
- export const inboundSchema = ListAgentsConfigurationType$inboundSchema;
826
- /** @deprecated use `ListAgentsConfigurationType$outboundSchema` instead. */
827
- export const outboundSchema = ListAgentsConfigurationType$outboundSchema;
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 ListAgentsConfiguration2$inboundSchema: z.ZodType<
832
- ListAgentsConfiguration2,
833
- z.ZodTypeDef,
834
- unknown
835
- > = z.object({
836
- type: ListAgentsConfigurationType$inboundSchema,
837
- query: z.string(),
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 ListAgentsConfiguration2$Outbound = {
842
- type: string;
843
- query: string;
844
- };
855
+ export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound =
856
+ {
857
+ type: string;
858
+ query: string;
859
+ };
845
860
 
846
861
  /** @internal */
847
- export const ListAgentsConfiguration2$outboundSchema: z.ZodType<
848
- ListAgentsConfiguration2$Outbound,
849
- z.ZodTypeDef,
850
- ListAgentsConfiguration2
851
- > = z.object({
852
- type: ListAgentsConfigurationType$outboundSchema,
853
- query: z.string(),
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 ListAgentsConfiguration2$ {
861
- /** @deprecated use `ListAgentsConfiguration2$inboundSchema` instead. */
862
- export const inboundSchema = ListAgentsConfiguration2$inboundSchema;
863
- /** @deprecated use `ListAgentsConfiguration2$outboundSchema` instead. */
864
- export const outboundSchema = ListAgentsConfiguration2$outboundSchema;
865
- /** @deprecated use `ListAgentsConfiguration2$Outbound` instead. */
866
- export type Outbound = ListAgentsConfiguration2$Outbound;
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 listAgentsConfiguration2ToJSON(
870
- listAgentsConfiguration2: ListAgentsConfiguration2,
888
+ export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(
889
+ listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery:
890
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
871
891
  ): string {
872
892
  return JSON.stringify(
873
- ListAgentsConfiguration2$outboundSchema.parse(listAgentsConfiguration2),
893
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
894
+ .parse(listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery),
874
895
  );
875
896
  }
876
897
 
877
- export function listAgentsConfiguration2FromJSON(
898
+ export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
878
899
  jsonString: string,
879
- ): SafeParseResult<ListAgentsConfiguration2, SDKValidationError> {
900
+ ): SafeParseResult<
901
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
902
+ SDKValidationError
903
+ > {
880
904
  return safeParse(
881
905
  jsonString,
882
- (x) => ListAgentsConfiguration2$inboundSchema.parse(JSON.parse(x)),
883
- `Failed to parse 'ListAgentsConfiguration2' from JSON`,
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 ListAgentsConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<
889
- typeof ListAgentsConfigurationAgentsType
890
- > = z.nativeEnum(ListAgentsConfigurationAgentsType);
914
+ export const ListAgentsKnowledgeBaseConfigurationAgentsType$inboundSchema:
915
+ z.ZodNativeEnum<typeof ListAgentsKnowledgeBaseConfigurationAgentsType> = z
916
+ .nativeEnum(ListAgentsKnowledgeBaseConfigurationAgentsType);
891
917
 
892
918
  /** @internal */
893
- export const ListAgentsConfigurationAgentsType$outboundSchema: z.ZodNativeEnum<
894
- typeof ListAgentsConfigurationAgentsType
895
- > = ListAgentsConfigurationAgentsType$inboundSchema;
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 ListAgentsConfigurationAgentsType$ {
902
- /** @deprecated use `ListAgentsConfigurationAgentsType$inboundSchema` instead. */
903
- export const inboundSchema = ListAgentsConfigurationAgentsType$inboundSchema;
904
- /** @deprecated use `ListAgentsConfigurationAgentsType$outboundSchema` instead. */
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
- ListAgentsConfigurationAgentsType$outboundSchema;
933
+ ListAgentsKnowledgeBaseConfigurationAgentsType$outboundSchema;
907
934
  }
908
935
 
909
936
  /** @internal */
910
- export const ListAgentsConfiguration1$inboundSchema: z.ZodType<
911
- ListAgentsConfiguration1,
912
- z.ZodTypeDef,
913
- unknown
914
- > = z.object({
915
- type: ListAgentsConfigurationAgentsType$inboundSchema,
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 ListAgentsConfiguration1$Outbound = {
920
- type: string;
921
- };
947
+ export type ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound =
948
+ {
949
+ type: string;
950
+ };
922
951
 
923
952
  /** @internal */
924
- export const ListAgentsConfiguration1$outboundSchema: z.ZodType<
925
- ListAgentsConfiguration1$Outbound,
926
- z.ZodTypeDef,
927
- ListAgentsConfiguration1
928
- > = z.object({
929
- type: ListAgentsConfigurationAgentsType$outboundSchema,
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 ListAgentsConfiguration1$ {
937
- /** @deprecated use `ListAgentsConfiguration1$inboundSchema` instead. */
938
- export const inboundSchema = ListAgentsConfiguration1$inboundSchema;
939
- /** @deprecated use `ListAgentsConfiguration1$outboundSchema` instead. */
940
- export const outboundSchema = ListAgentsConfiguration1$outboundSchema;
941
- /** @deprecated use `ListAgentsConfiguration1$Outbound` instead. */
942
- export type Outbound = ListAgentsConfiguration1$Outbound;
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 listAgentsConfiguration1ToJSON(
946
- listAgentsConfiguration1: ListAgentsConfiguration1,
978
+ export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
979
+ listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
980
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
947
981
  ): string {
948
982
  return JSON.stringify(
949
- ListAgentsConfiguration1$outboundSchema.parse(listAgentsConfiguration1),
983
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
984
+ .parse(listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage),
950
985
  );
951
986
  }
952
987
 
953
- export function listAgentsConfiguration1FromJSON(
988
+ export function listAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
954
989
  jsonString: string,
955
- ): SafeParseResult<ListAgentsConfiguration1, SDKValidationError> {
990
+ ): SafeParseResult<
991
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
992
+ SDKValidationError
993
+ > {
956
994
  return safeParse(
957
995
  jsonString,
958
- (x) => ListAgentsConfiguration1$inboundSchema.parse(JSON.parse(x)),
959
- `Failed to parse 'ListAgentsConfiguration1' from JSON`,
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 ListAgentsConfiguration$inboundSchema: z.ZodType<
965
- ListAgentsConfiguration,
1004
+ export const ListAgentsKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
1005
+ ListAgentsKnowledgeBaseConfiguration,
966
1006
  z.ZodTypeDef,
967
1007
  unknown
968
1008
  > = z.union([
969
- z.lazy(() => ListAgentsConfiguration2$inboundSchema),
970
- z.lazy(() => ListAgentsConfiguration1$inboundSchema),
1009
+ z.lazy(() =>
1010
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
1011
+ ),
1012
+ z.lazy(() =>
1013
+ ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1014
+ ),
971
1015
  ]);
972
1016
 
973
1017
  /** @internal */
974
- export type ListAgentsConfiguration$Outbound =
975
- | ListAgentsConfiguration2$Outbound
976
- | ListAgentsConfiguration1$Outbound;
1018
+ export type ListAgentsKnowledgeBaseConfiguration$Outbound =
1019
+ | ListAgentsKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
1020
+ | ListAgentsKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
977
1021
 
978
1022
  /** @internal */
979
- export const ListAgentsConfiguration$outboundSchema: z.ZodType<
980
- ListAgentsConfiguration$Outbound,
1023
+ export const ListAgentsKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
1024
+ ListAgentsKnowledgeBaseConfiguration$Outbound,
981
1025
  z.ZodTypeDef,
982
- ListAgentsConfiguration
1026
+ ListAgentsKnowledgeBaseConfiguration
983
1027
  > = z.union([
984
- z.lazy(() => ListAgentsConfiguration2$outboundSchema),
985
- z.lazy(() => ListAgentsConfiguration1$outboundSchema),
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 ListAgentsConfiguration$ {
993
- /** @deprecated use `ListAgentsConfiguration$inboundSchema` instead. */
994
- export const inboundSchema = ListAgentsConfiguration$inboundSchema;
995
- /** @deprecated use `ListAgentsConfiguration$outboundSchema` instead. */
996
- export const outboundSchema = ListAgentsConfiguration$outboundSchema;
997
- /** @deprecated use `ListAgentsConfiguration$Outbound` instead. */
998
- export type Outbound = ListAgentsConfiguration$Outbound;
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 listAgentsConfigurationToJSON(
1002
- listAgentsConfiguration: ListAgentsConfiguration,
1051
+ export function listAgentsKnowledgeBaseConfigurationToJSON(
1052
+ listAgentsKnowledgeBaseConfiguration: ListAgentsKnowledgeBaseConfiguration,
1003
1053
  ): string {
1004
1054
  return JSON.stringify(
1005
- ListAgentsConfiguration$outboundSchema.parse(listAgentsConfiguration),
1055
+ ListAgentsKnowledgeBaseConfiguration$outboundSchema.parse(
1056
+ listAgentsKnowledgeBaseConfiguration,
1057
+ ),
1006
1058
  );
1007
1059
  }
1008
1060
 
1009
- export function listAgentsConfigurationFromJSON(
1061
+ export function listAgentsKnowledgeBaseConfigurationFromJSON(
1010
1062
  jsonString: string,
1011
- ): SafeParseResult<ListAgentsConfiguration, SDKValidationError> {
1063
+ ): SafeParseResult<ListAgentsKnowledgeBaseConfiguration, SDKValidationError> {
1012
1064
  return safeParse(
1013
1065
  jsonString,
1014
- (x) => ListAgentsConfiguration$inboundSchema.parse(JSON.parse(x)),
1015
- `Failed to parse 'ListAgentsConfiguration' from JSON`,
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("01K60CGQ250M2GXK4GC08ZSGV1"),
1078
+ id: z.string().default("01K6B3TVW2B7MYQDP7BF0RD33X"),
1026
1079
  knowledge_id: z.string(),
1027
1080
  configuration: z.union([
1028
- z.lazy(() => ListAgentsConfiguration2$inboundSchema),
1029
- z.lazy(() => ListAgentsConfiguration1$inboundSchema),
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
- | ListAgentsConfiguration2$Outbound
1043
- | ListAgentsConfiguration1$Outbound;
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("01K60CGQ250M2GXK4GC08ZSGV1"),
1109
+ id: z.string().default("01K6B3TVW2B7MYQDP7BF0RD33X"),
1053
1110
  knowledgeId: z.string(),
1054
1111
  configuration: z.union([
1055
- z.lazy(() => ListAgentsConfiguration2$outboundSchema),
1056
- z.lazy(() => ListAgentsConfiguration1$outboundSchema),
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-25T12:10:29.955Z",
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-25T12:10:29.955Z"))
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 ListChunksQueryParamStatus = Array<string> | string;
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 ListChunksQueryParamStatus$inboundSchema: z.ZodType<
120
- ListChunksQueryParamStatus,
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 ListChunksQueryParamStatus$Outbound = Array<string> | string;
126
+ export type QueryParamStatus$Outbound = Array<string> | string;
127
127
 
128
128
  /** @internal */
129
- export const ListChunksQueryParamStatus$outboundSchema: z.ZodType<
130
- ListChunksQueryParamStatus$Outbound,
129
+ export const QueryParamStatus$outboundSchema: z.ZodType<
130
+ QueryParamStatus$Outbound,
131
131
  z.ZodTypeDef,
132
- ListChunksQueryParamStatus
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 ListChunksQueryParamStatus$ {
140
- /** @deprecated use `ListChunksQueryParamStatus$inboundSchema` instead. */
141
- export const inboundSchema = ListChunksQueryParamStatus$inboundSchema;
142
- /** @deprecated use `ListChunksQueryParamStatus$outboundSchema` instead. */
143
- export const outboundSchema = ListChunksQueryParamStatus$outboundSchema;
144
- /** @deprecated use `ListChunksQueryParamStatus$Outbound` instead. */
145
- export type Outbound = ListChunksQueryParamStatus$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 listChunksQueryParamStatusToJSON(
149
- listChunksQueryParamStatus: ListChunksQueryParamStatus,
148
+ export function queryParamStatusToJSON(
149
+ queryParamStatus: QueryParamStatus,
150
150
  ): string {
151
151
  return JSON.stringify(
152
- ListChunksQueryParamStatus$outboundSchema.parse(listChunksQueryParamStatus),
152
+ QueryParamStatus$outboundSchema.parse(queryParamStatus),
153
153
  );
154
154
  }
155
155
 
156
- export function listChunksQueryParamStatusFromJSON(
156
+ export function queryParamStatusFromJSON(
157
157
  jsonString: string,
158
- ): SafeParseResult<ListChunksQueryParamStatus, SDKValidationError> {
158
+ ): SafeParseResult<QueryParamStatus, SDKValidationError> {
159
159
  return safeParse(
160
160
  jsonString,
161
- (x) => ListChunksQueryParamStatus$inboundSchema.parse(JSON.parse(x)),
162
- `Failed to parse 'ListChunksQueryParamStatus' from JSON`,
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-25T12:10:29.955Z",
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-25T12:10:29.955Z"))
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-25T12:10:29.955Z",
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-25T12:10:29.955Z"))
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, {