@orq-ai/node 3.13.2 → 3.13.4

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 (178) hide show
  1. package/bin/mcp-server.js +216 -246
  2. package/bin/mcp-server.js.map +42 -42
  3. package/docs/sdks/agents/README.md +3 -3
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsRetrieveTask.js +2 -2
  6. package/funcs/agentsRetrieveTask.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +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 +28 -28
  18. package/models/operations/createtool.js +14 -14
  19. package/models/operations/duplicatetool.js +10 -10
  20. package/models/operations/fileget.js +2 -2
  21. package/models/operations/filelist.js +2 -2
  22. package/models/operations/fileupload.js +2 -2
  23. package/models/operations/getagent.d.ts +5 -2
  24. package/models/operations/getagent.d.ts.map +1 -1
  25. package/models/operations/getagent.js +4 -12
  26. package/models/operations/getagent.js.map +1 -1
  27. package/models/operations/getagenttask.d.ts +2 -2
  28. package/models/operations/getagenttask.d.ts.map +1 -1
  29. package/models/operations/getagenttask.js +4 -2
  30. package/models/operations/getagenttask.js.map +1 -1
  31. package/models/operations/getalltools.js +10 -10
  32. package/models/operations/getbudget.js +2 -2
  33. package/models/operations/getevals.js +28 -28
  34. package/models/operations/listagents.d.ts +5 -2
  35. package/models/operations/listagents.d.ts.map +1 -1
  36. package/models/operations/listagents.js +4 -12
  37. package/models/operations/listagents.js.map +1 -1
  38. package/models/operations/listbudgets.js +2 -2
  39. package/models/operations/listcontacts.js +2 -2
  40. package/models/operations/listdatasetdatapoints.js +2 -2
  41. package/models/operations/listdatasets.js +2 -2
  42. package/models/operations/listdatasources.js +2 -2
  43. package/models/operations/retrievecontact.js +2 -2
  44. package/models/operations/retrievedatapoint.js +2 -2
  45. package/models/operations/retrievedataset.js +2 -2
  46. package/models/operations/retrievedatasource.js +2 -2
  47. package/models/operations/retrievetool.js +10 -10
  48. package/models/operations/runagent.d.ts +5 -2
  49. package/models/operations/runagent.d.ts.map +1 -1
  50. package/models/operations/runagent.js +4 -12
  51. package/models/operations/runagent.js.map +1 -1
  52. package/models/operations/streamrunagent.d.ts +5 -2
  53. package/models/operations/streamrunagent.d.ts.map +1 -1
  54. package/models/operations/streamrunagent.js +4 -12
  55. package/models/operations/streamrunagent.js.map +1 -1
  56. package/models/operations/updatebudget.js +2 -2
  57. package/models/operations/updatecontact.js +2 -2
  58. package/models/operations/updatedatapoint.js +2 -2
  59. package/models/operations/updatedataset.js +2 -2
  60. package/models/operations/updatedatasource.js +2 -2
  61. package/models/operations/updateeval.js +28 -28
  62. package/models/operations/updatetool.js +14 -14
  63. package/package.json +1 -1
  64. package/packages/orq-rc/README.md +97 -91
  65. package/packages/orq-rc/docs/sdks/agents/README.md +3 -3
  66. package/packages/orq-rc/docs/sdks/knowledge/README.md +228 -0
  67. package/packages/orq-rc/docs/sdks/tools/README.md +14 -16
  68. package/packages/orq-rc/examples/package-lock.json +1 -1
  69. package/packages/orq-rc/jsr.json +1 -1
  70. package/packages/orq-rc/package-lock.json +2 -2
  71. package/packages/orq-rc/package.json +1 -1
  72. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +2 -2
  73. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  74. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  75. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  76. package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
  77. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
  78. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
  79. package/packages/orq-rc/src/funcs/toolsUpdate.ts +2 -2
  80. package/packages/orq-rc/src/lib/config.ts +3 -3
  81. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  82. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  83. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  84. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  85. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  86. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  94. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
  95. package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
  96. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  97. package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
  98. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
  99. package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
  100. package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
  101. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getagent.ts +9 -14
  105. package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
  106. package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
  107. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  108. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  110. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  111. package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
  112. package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
  113. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  114. package/packages/orq-rc/src/models/operations/listagents.ts +9 -14
  115. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  117. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  118. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -0
  122. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/retrievetool.ts +16 -16
  127. package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
  128. package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
  129. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  135. package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
  136. package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
  137. package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
  138. package/packages/orq-rc/src/sdk/tools.ts +2 -2
  139. package/src/funcs/agentsRetrieveTask.ts +2 -2
  140. package/src/lib/config.ts +3 -3
  141. package/src/mcp-server/mcp-server.ts +1 -1
  142. package/src/mcp-server/server.ts +1 -1
  143. package/src/models/operations/createbudget.ts +2 -2
  144. package/src/models/operations/createcontact.ts +2 -2
  145. package/src/models/operations/createdataset.ts +2 -2
  146. package/src/models/operations/createdatasetitem.ts +2 -2
  147. package/src/models/operations/createdatasource.ts +2 -2
  148. package/src/models/operations/createeval.ts +28 -28
  149. package/src/models/operations/createtool.ts +14 -14
  150. package/src/models/operations/duplicatetool.ts +10 -10
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getagent.ts +9 -14
  155. package/src/models/operations/getagenttask.ts +6 -4
  156. package/src/models/operations/getalltools.ts +10 -10
  157. package/src/models/operations/getbudget.ts +2 -2
  158. package/src/models/operations/getevals.ts +28 -28
  159. package/src/models/operations/listagents.ts +9 -14
  160. package/src/models/operations/listbudgets.ts +2 -2
  161. package/src/models/operations/listcontacts.ts +2 -2
  162. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  163. package/src/models/operations/listdatasets.ts +2 -2
  164. package/src/models/operations/listdatasources.ts +2 -2
  165. package/src/models/operations/retrievecontact.ts +2 -2
  166. package/src/models/operations/retrievedatapoint.ts +2 -2
  167. package/src/models/operations/retrievedataset.ts +2 -2
  168. package/src/models/operations/retrievedatasource.ts +2 -2
  169. package/src/models/operations/retrievetool.ts +10 -10
  170. package/src/models/operations/runagent.ts +9 -14
  171. package/src/models/operations/streamrunagent.ts +9 -14
  172. package/src/models/operations/updatebudget.ts +2 -2
  173. package/src/models/operations/updatecontact.ts +2 -2
  174. package/src/models/operations/updatedatapoint.ts +2 -2
  175. package/src/models/operations/updatedataset.ts +2 -2
  176. package/src/models/operations/updatedatasource.ts +2 -2
  177. package/src/models/operations/updateeval.ts +28 -28
  178. package/src/models/operations/updatetool.ts +14 -14
@@ -0,0 +1,230 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GetChunksCountRequestBody = {
12
+ /**
13
+ * Search query to find chunks by text content
14
+ */
15
+ q?: string | undefined;
16
+ /**
17
+ * Filter chunks by enabled status
18
+ */
19
+ enabled?: boolean | undefined;
20
+ /**
21
+ * Filter chunks by processing status
22
+ */
23
+ status?: string | undefined;
24
+ };
25
+
26
+ export type GetChunksCountRequest = {
27
+ /**
28
+ * The unique identifier of the knowledge base
29
+ */
30
+ knowledgeId: string;
31
+ /**
32
+ * The unique identifier of the datasource.
33
+ */
34
+ datasourceId: string;
35
+ requestBody?: GetChunksCountRequestBody | undefined;
36
+ };
37
+
38
+ /**
39
+ * Chunks count
40
+ */
41
+ export type GetChunksCountResponseBody = {
42
+ count: number;
43
+ };
44
+
45
+ /** @internal */
46
+ export const GetChunksCountRequestBody$inboundSchema: z.ZodType<
47
+ GetChunksCountRequestBody,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = z.object({
51
+ q: z.string().default(""),
52
+ enabled: z.boolean().optional(),
53
+ status: z.string().optional(),
54
+ });
55
+
56
+ /** @internal */
57
+ export type GetChunksCountRequestBody$Outbound = {
58
+ q: string;
59
+ enabled?: boolean | undefined;
60
+ status?: string | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const GetChunksCountRequestBody$outboundSchema: z.ZodType<
65
+ GetChunksCountRequestBody$Outbound,
66
+ z.ZodTypeDef,
67
+ GetChunksCountRequestBody
68
+ > = z.object({
69
+ q: z.string().default(""),
70
+ enabled: z.boolean().optional(),
71
+ status: z.string().optional(),
72
+ });
73
+
74
+ /**
75
+ * @internal
76
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
+ */
78
+ export namespace GetChunksCountRequestBody$ {
79
+ /** @deprecated use `GetChunksCountRequestBody$inboundSchema` instead. */
80
+ export const inboundSchema = GetChunksCountRequestBody$inboundSchema;
81
+ /** @deprecated use `GetChunksCountRequestBody$outboundSchema` instead. */
82
+ export const outboundSchema = GetChunksCountRequestBody$outboundSchema;
83
+ /** @deprecated use `GetChunksCountRequestBody$Outbound` instead. */
84
+ export type Outbound = GetChunksCountRequestBody$Outbound;
85
+ }
86
+
87
+ export function getChunksCountRequestBodyToJSON(
88
+ getChunksCountRequestBody: GetChunksCountRequestBody,
89
+ ): string {
90
+ return JSON.stringify(
91
+ GetChunksCountRequestBody$outboundSchema.parse(getChunksCountRequestBody),
92
+ );
93
+ }
94
+
95
+ export function getChunksCountRequestBodyFromJSON(
96
+ jsonString: string,
97
+ ): SafeParseResult<GetChunksCountRequestBody, SDKValidationError> {
98
+ return safeParse(
99
+ jsonString,
100
+ (x) => GetChunksCountRequestBody$inboundSchema.parse(JSON.parse(x)),
101
+ `Failed to parse 'GetChunksCountRequestBody' from JSON`,
102
+ );
103
+ }
104
+
105
+ /** @internal */
106
+ export const GetChunksCountRequest$inboundSchema: z.ZodType<
107
+ GetChunksCountRequest,
108
+ z.ZodTypeDef,
109
+ unknown
110
+ > = z.object({
111
+ knowledge_id: z.string(),
112
+ datasource_id: z.string(),
113
+ RequestBody: z.lazy(() => GetChunksCountRequestBody$inboundSchema).optional(),
114
+ }).transform((v) => {
115
+ return remap$(v, {
116
+ "knowledge_id": "knowledgeId",
117
+ "datasource_id": "datasourceId",
118
+ "RequestBody": "requestBody",
119
+ });
120
+ });
121
+
122
+ /** @internal */
123
+ export type GetChunksCountRequest$Outbound = {
124
+ knowledge_id: string;
125
+ datasource_id: string;
126
+ RequestBody?: GetChunksCountRequestBody$Outbound | undefined;
127
+ };
128
+
129
+ /** @internal */
130
+ export const GetChunksCountRequest$outboundSchema: z.ZodType<
131
+ GetChunksCountRequest$Outbound,
132
+ z.ZodTypeDef,
133
+ GetChunksCountRequest
134
+ > = z.object({
135
+ knowledgeId: z.string(),
136
+ datasourceId: z.string(),
137
+ requestBody: z.lazy(() => GetChunksCountRequestBody$outboundSchema)
138
+ .optional(),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ knowledgeId: "knowledge_id",
142
+ datasourceId: "datasource_id",
143
+ requestBody: "RequestBody",
144
+ });
145
+ });
146
+
147
+ /**
148
+ * @internal
149
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
150
+ */
151
+ export namespace GetChunksCountRequest$ {
152
+ /** @deprecated use `GetChunksCountRequest$inboundSchema` instead. */
153
+ export const inboundSchema = GetChunksCountRequest$inboundSchema;
154
+ /** @deprecated use `GetChunksCountRequest$outboundSchema` instead. */
155
+ export const outboundSchema = GetChunksCountRequest$outboundSchema;
156
+ /** @deprecated use `GetChunksCountRequest$Outbound` instead. */
157
+ export type Outbound = GetChunksCountRequest$Outbound;
158
+ }
159
+
160
+ export function getChunksCountRequestToJSON(
161
+ getChunksCountRequest: GetChunksCountRequest,
162
+ ): string {
163
+ return JSON.stringify(
164
+ GetChunksCountRequest$outboundSchema.parse(getChunksCountRequest),
165
+ );
166
+ }
167
+
168
+ export function getChunksCountRequestFromJSON(
169
+ jsonString: string,
170
+ ): SafeParseResult<GetChunksCountRequest, SDKValidationError> {
171
+ return safeParse(
172
+ jsonString,
173
+ (x) => GetChunksCountRequest$inboundSchema.parse(JSON.parse(x)),
174
+ `Failed to parse 'GetChunksCountRequest' from JSON`,
175
+ );
176
+ }
177
+
178
+ /** @internal */
179
+ export const GetChunksCountResponseBody$inboundSchema: z.ZodType<
180
+ GetChunksCountResponseBody,
181
+ z.ZodTypeDef,
182
+ unknown
183
+ > = z.object({
184
+ count: z.number(),
185
+ });
186
+
187
+ /** @internal */
188
+ export type GetChunksCountResponseBody$Outbound = {
189
+ count: number;
190
+ };
191
+
192
+ /** @internal */
193
+ export const GetChunksCountResponseBody$outboundSchema: z.ZodType<
194
+ GetChunksCountResponseBody$Outbound,
195
+ z.ZodTypeDef,
196
+ GetChunksCountResponseBody
197
+ > = z.object({
198
+ count: z.number(),
199
+ });
200
+
201
+ /**
202
+ * @internal
203
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
204
+ */
205
+ export namespace GetChunksCountResponseBody$ {
206
+ /** @deprecated use `GetChunksCountResponseBody$inboundSchema` instead. */
207
+ export const inboundSchema = GetChunksCountResponseBody$inboundSchema;
208
+ /** @deprecated use `GetChunksCountResponseBody$outboundSchema` instead. */
209
+ export const outboundSchema = GetChunksCountResponseBody$outboundSchema;
210
+ /** @deprecated use `GetChunksCountResponseBody$Outbound` instead. */
211
+ export type Outbound = GetChunksCountResponseBody$Outbound;
212
+ }
213
+
214
+ export function getChunksCountResponseBodyToJSON(
215
+ getChunksCountResponseBody: GetChunksCountResponseBody,
216
+ ): string {
217
+ return JSON.stringify(
218
+ GetChunksCountResponseBody$outboundSchema.parse(getChunksCountResponseBody),
219
+ );
220
+ }
221
+
222
+ export function getChunksCountResponseBodyFromJSON(
223
+ jsonString: string,
224
+ ): SafeParseResult<GetChunksCountResponseBody, SDKValidationError> {
225
+ return safeParse(
226
+ jsonString,
227
+ (x) => GetChunksCountResponseBody$inboundSchema.parse(JSON.parse(x)),
228
+ `Failed to parse 'GetChunksCountResponseBody' from JSON`,
229
+ );
230
+ }
@@ -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-10-02T08:26:56.871Z"),
1560
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
1559
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
1560
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
1604
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
1603
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
1604
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
2006
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
2005
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
2006
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
2048
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
2047
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
2048
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
5516
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
5515
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
5516
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
5627
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
5626
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
5627
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6010
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6009
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6010
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6049
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6048
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6049
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6396
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6395
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6396
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6441
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6440
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6441
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6807
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6806
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6807
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
6850
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
6849
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
6850
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
7233
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
7232
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
7233
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
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-10-02T08:26:56.871Z"),
7278
- updated: z.string().default("2025-10-02T08:26:56.871Z"),
7277
+ created: z.string().default("2025-10-03T06:58:49.026Z"),
7278
+ updated: z.string().default("2025-10-03T06:58:49.026Z"),
7279
7279
  guardrailConfig: z.union([
7280
7280
  z.lazy(() =>
7281
7281
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -114,6 +114,7 @@ export type GetOnePrompt1Type = ClosedEnum<typeof GetOnePrompt1Type>;
114
114
 
115
115
  export type GetOnePrompt1JsonSchema = {
116
116
  name: string;
117
+ description?: string | undefined;
117
118
  strict?: boolean | undefined;
118
119
  schema: { [k: string]: any };
119
120
  };
@@ -921,6 +922,7 @@ export const GetOnePrompt1JsonSchema$inboundSchema: z.ZodType<
921
922
  unknown
922
923
  > = z.object({
923
924
  name: z.string(),
925
+ description: z.string().optional(),
924
926
  strict: z.boolean().optional(),
925
927
  schema: z.record(z.any()),
926
928
  });
@@ -928,6 +930,7 @@ export const GetOnePrompt1JsonSchema$inboundSchema: z.ZodType<
928
930
  /** @internal */
929
931
  export type GetOnePrompt1JsonSchema$Outbound = {
930
932
  name: string;
933
+ description?: string | undefined;
931
934
  strict?: boolean | undefined;
932
935
  schema: { [k: string]: any };
933
936
  };
@@ -939,6 +942,7 @@ export const GetOnePrompt1JsonSchema$outboundSchema: z.ZodType<
939
942
  GetOnePrompt1JsonSchema
940
943
  > = z.object({
941
944
  name: z.string(),
945
+ description: z.string().optional(),
942
946
  strict: z.boolean().optional(),
943
947
  schema: z.record(z.any()),
944
948
  });
@@ -115,6 +115,7 @@ export type GetPromptVersion1Type = ClosedEnum<typeof GetPromptVersion1Type>;
115
115
 
116
116
  export type GetPromptVersion1JsonSchema = {
117
117
  name: string;
118
+ description?: string | undefined;
118
119
  strict?: boolean | undefined;
119
120
  schema: { [k: string]: any };
120
121
  };
@@ -925,6 +926,7 @@ export const GetPromptVersion1JsonSchema$inboundSchema: z.ZodType<
925
926
  unknown
926
927
  > = z.object({
927
928
  name: z.string(),
929
+ description: z.string().optional(),
928
930
  strict: z.boolean().optional(),
929
931
  schema: z.record(z.any()),
930
932
  });
@@ -932,6 +934,7 @@ export const GetPromptVersion1JsonSchema$inboundSchema: z.ZodType<
932
934
  /** @internal */
933
935
  export type GetPromptVersion1JsonSchema$Outbound = {
934
936
  name: string;
937
+ description?: string | undefined;
935
938
  strict?: boolean | undefined;
936
939
  schema: { [k: string]: any };
937
940
  };
@@ -943,6 +946,7 @@ export const GetPromptVersion1JsonSchema$outboundSchema: z.ZodType<
943
946
  GetPromptVersion1JsonSchema
944
947
  > = z.object({
945
948
  name: z.string(),
949
+ description: z.string().optional(),
946
950
  strict: z.boolean().optional(),
947
951
  schema: z.record(z.any()),
948
952
  });
@@ -19,6 +19,7 @@ export * from "./createprompt.js";
19
19
  export * from "./createtool.js";
20
20
  export * from "./deletebudget.js";
21
21
  export * from "./deletechunk.js";
22
+ export * from "./deletechunks.js";
22
23
  export * from "./deletecontact.js";
23
24
  export * from "./deletedatapoint.js";
24
25
  export * from "./deletedataset.js";
@@ -85,6 +86,7 @@ export * from "./getallmemorystores.js";
85
86
  export * from "./getallprompts.js";
86
87
  export * from "./getalltools.js";
87
88
  export * from "./getbudget.js";
89
+ export * from "./getchunkscount.js";
88
90
  export * from "./getevals.js";
89
91
  export * from "./getonechunk.js";
90
92
  export * from "./getoneknowledge.js";
@@ -95,6 +97,7 @@ export * from "./listactions.js";
95
97
  export * from "./listagents.js";
96
98
  export * from "./listbudgets.js";
97
99
  export * from "./listchunks.js";
100
+ export * from "./listchunkspaginated.js";
98
101
  export * from "./listcontacts.js";
99
102
  export * from "./listdatasetdatapoints.js";
100
103
  export * from "./listdatasets.js";
@@ -132,7 +132,10 @@ export type ListAgentsModel = {
132
132
  };
133
133
 
134
134
  export type ListAgentsTeamOfAgents = {
135
- id: string;
135
+ /**
136
+ * The unique key of the agent within the workspace
137
+ */
138
+ key: string;
136
139
  /**
137
140
  * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
138
141
  */
@@ -696,17 +699,13 @@ export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
696
699
  z.ZodTypeDef,
697
700
  unknown
698
701
  > = z.object({
699
- _id: z.string(),
702
+ key: z.string(),
700
703
  role: z.string().optional(),
701
- }).transform((v) => {
702
- return remap$(v, {
703
- "_id": "id",
704
- });
705
704
  });
706
705
 
707
706
  /** @internal */
708
707
  export type ListAgentsTeamOfAgents$Outbound = {
709
- _id: string;
708
+ key: string;
710
709
  role?: string | undefined;
711
710
  };
712
711
 
@@ -716,12 +715,8 @@ export const ListAgentsTeamOfAgents$outboundSchema: z.ZodType<
716
715
  z.ZodTypeDef,
717
716
  ListAgentsTeamOfAgents
718
717
  > = z.object({
719
- id: z.string(),
718
+ key: z.string(),
720
719
  role: z.string().optional(),
721
- }).transform((v) => {
722
- return remap$(v, {
723
- id: "_id",
724
- });
725
720
  });
726
721
 
727
722
  /**
@@ -1075,7 +1070,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
1075
1070
  z.ZodTypeDef,
1076
1071
  unknown
1077
1072
  > = z.object({
1078
- id: z.string().default("01K6J0GBXAB1S65S1A2Z5J4DAS"),
1073
+ id: z.string().default("01K6MDVPK2362GQEATB1Z015K9"),
1079
1074
  knowledge_id: z.string(),
1080
1075
  configuration: z.union([
1081
1076
  z.lazy(() =>
@@ -1106,7 +1101,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
1106
1101
  z.ZodTypeDef,
1107
1102
  ListAgentsKnowledgeBases
1108
1103
  > = z.object({
1109
- id: z.string().default("01K6J0GBXAB1S65S1A2Z5J4DAS"),
1104
+ id: z.string().default("01K6MDVPK2362GQEATB1Z015K9"),
1110
1105
  knowledgeId: z.string(),
1111
1106
  configuration: z.union([
1112
1107
  z.lazy(() =>
@@ -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-10-02T08:26:54.292Z",
467
+ "2025-10-03T06:58:46.742Z",
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-10-02T08:26:54.292Z"))
502
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
503
503
  .transform(v => v.toISOString()),
504
504
  }).transform((v) => {
505
505
  return remap$(v, {