@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,507 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListChunksPaginatedRequestBody = {
13
+ /**
14
+ * Search query to find chunks by text content
15
+ */
16
+ q?: string | undefined;
17
+ /**
18
+ * Filter chunks by enabled status
19
+ */
20
+ enabled?: boolean | undefined;
21
+ /**
22
+ * Filter chunks by processing status
23
+ */
24
+ status?: string | undefined;
25
+ limit?: number | undefined;
26
+ page?: number | undefined;
27
+ };
28
+
29
+ export type ListChunksPaginatedRequest = {
30
+ /**
31
+ * The unique identifier of the knowledge base
32
+ */
33
+ knowledgeId: string;
34
+ /**
35
+ * The unique identifier of the datasource.
36
+ */
37
+ datasourceId: string;
38
+ requestBody?: ListChunksPaginatedRequestBody | undefined;
39
+ };
40
+
41
+ export const ListChunksPaginatedObject = {
42
+ List: "list",
43
+ } as const;
44
+ export type ListChunksPaginatedObject = ClosedEnum<
45
+ typeof ListChunksPaginatedObject
46
+ >;
47
+
48
+ export type ListChunksPaginatedMetadata = string | number | boolean;
49
+
50
+ /**
51
+ * The status of the chunk
52
+ */
53
+ export const ListChunksPaginatedStatus = {
54
+ Pending: "pending",
55
+ Processing: "processing",
56
+ Completed: "completed",
57
+ Failed: "failed",
58
+ Queued: "queued",
59
+ } as const;
60
+ /**
61
+ * The status of the chunk
62
+ */
63
+ export type ListChunksPaginatedStatus = ClosedEnum<
64
+ typeof ListChunksPaginatedStatus
65
+ >;
66
+
67
+ export type ListChunksPaginatedData = {
68
+ /**
69
+ * The unique identifier of the chunk
70
+ */
71
+ id: string;
72
+ /**
73
+ * The text content of the chunk
74
+ */
75
+ text: string;
76
+ /**
77
+ * Metadata of the chunk. Can include `page_number` or any other key-value pairs
78
+ */
79
+ metadata?: { [k: string]: string | number | boolean } | undefined;
80
+ /**
81
+ * Whether the chunk is enabled
82
+ */
83
+ enabled: boolean;
84
+ /**
85
+ * The status of the chunk
86
+ */
87
+ status: ListChunksPaginatedStatus;
88
+ /**
89
+ * The date and time the chunk was created
90
+ */
91
+ created: string;
92
+ /**
93
+ * The date and time the chunk was updated
94
+ */
95
+ updated: string;
96
+ /**
97
+ * The unique identifier of the user who created the chunk
98
+ */
99
+ createdById?: string | null | undefined;
100
+ /**
101
+ * The unique identifier of the user who updated the chunk
102
+ */
103
+ updateById?: string | null | undefined;
104
+ };
105
+
106
+ /**
107
+ * Chunks successfully retrieved
108
+ */
109
+ export type ListChunksPaginatedResponseBody = {
110
+ object: ListChunksPaginatedObject;
111
+ data: Array<ListChunksPaginatedData>;
112
+ hasMore: boolean;
113
+ };
114
+
115
+ /** @internal */
116
+ export const ListChunksPaginatedRequestBody$inboundSchema: z.ZodType<
117
+ ListChunksPaginatedRequestBody,
118
+ z.ZodTypeDef,
119
+ unknown
120
+ > = z.object({
121
+ q: z.string().default(""),
122
+ enabled: z.boolean().optional(),
123
+ status: z.string().optional(),
124
+ limit: z.number().int().default(100),
125
+ page: z.number().int().default(1),
126
+ });
127
+
128
+ /** @internal */
129
+ export type ListChunksPaginatedRequestBody$Outbound = {
130
+ q: string;
131
+ enabled?: boolean | undefined;
132
+ status?: string | undefined;
133
+ limit: number;
134
+ page: number;
135
+ };
136
+
137
+ /** @internal */
138
+ export const ListChunksPaginatedRequestBody$outboundSchema: z.ZodType<
139
+ ListChunksPaginatedRequestBody$Outbound,
140
+ z.ZodTypeDef,
141
+ ListChunksPaginatedRequestBody
142
+ > = z.object({
143
+ q: z.string().default(""),
144
+ enabled: z.boolean().optional(),
145
+ status: z.string().optional(),
146
+ limit: z.number().int().default(100),
147
+ page: z.number().int().default(1),
148
+ });
149
+
150
+ /**
151
+ * @internal
152
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
153
+ */
154
+ export namespace ListChunksPaginatedRequestBody$ {
155
+ /** @deprecated use `ListChunksPaginatedRequestBody$inboundSchema` instead. */
156
+ export const inboundSchema = ListChunksPaginatedRequestBody$inboundSchema;
157
+ /** @deprecated use `ListChunksPaginatedRequestBody$outboundSchema` instead. */
158
+ export const outboundSchema = ListChunksPaginatedRequestBody$outboundSchema;
159
+ /** @deprecated use `ListChunksPaginatedRequestBody$Outbound` instead. */
160
+ export type Outbound = ListChunksPaginatedRequestBody$Outbound;
161
+ }
162
+
163
+ export function listChunksPaginatedRequestBodyToJSON(
164
+ listChunksPaginatedRequestBody: ListChunksPaginatedRequestBody,
165
+ ): string {
166
+ return JSON.stringify(
167
+ ListChunksPaginatedRequestBody$outboundSchema.parse(
168
+ listChunksPaginatedRequestBody,
169
+ ),
170
+ );
171
+ }
172
+
173
+ export function listChunksPaginatedRequestBodyFromJSON(
174
+ jsonString: string,
175
+ ): SafeParseResult<ListChunksPaginatedRequestBody, SDKValidationError> {
176
+ return safeParse(
177
+ jsonString,
178
+ (x) => ListChunksPaginatedRequestBody$inboundSchema.parse(JSON.parse(x)),
179
+ `Failed to parse 'ListChunksPaginatedRequestBody' from JSON`,
180
+ );
181
+ }
182
+
183
+ /** @internal */
184
+ export const ListChunksPaginatedRequest$inboundSchema: z.ZodType<
185
+ ListChunksPaginatedRequest,
186
+ z.ZodTypeDef,
187
+ unknown
188
+ > = z.object({
189
+ knowledge_id: z.string(),
190
+ datasource_id: z.string(),
191
+ RequestBody: z.lazy(() => ListChunksPaginatedRequestBody$inboundSchema)
192
+ .optional(),
193
+ }).transform((v) => {
194
+ return remap$(v, {
195
+ "knowledge_id": "knowledgeId",
196
+ "datasource_id": "datasourceId",
197
+ "RequestBody": "requestBody",
198
+ });
199
+ });
200
+
201
+ /** @internal */
202
+ export type ListChunksPaginatedRequest$Outbound = {
203
+ knowledge_id: string;
204
+ datasource_id: string;
205
+ RequestBody?: ListChunksPaginatedRequestBody$Outbound | undefined;
206
+ };
207
+
208
+ /** @internal */
209
+ export const ListChunksPaginatedRequest$outboundSchema: z.ZodType<
210
+ ListChunksPaginatedRequest$Outbound,
211
+ z.ZodTypeDef,
212
+ ListChunksPaginatedRequest
213
+ > = z.object({
214
+ knowledgeId: z.string(),
215
+ datasourceId: z.string(),
216
+ requestBody: z.lazy(() => ListChunksPaginatedRequestBody$outboundSchema)
217
+ .optional(),
218
+ }).transform((v) => {
219
+ return remap$(v, {
220
+ knowledgeId: "knowledge_id",
221
+ datasourceId: "datasource_id",
222
+ requestBody: "RequestBody",
223
+ });
224
+ });
225
+
226
+ /**
227
+ * @internal
228
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
229
+ */
230
+ export namespace ListChunksPaginatedRequest$ {
231
+ /** @deprecated use `ListChunksPaginatedRequest$inboundSchema` instead. */
232
+ export const inboundSchema = ListChunksPaginatedRequest$inboundSchema;
233
+ /** @deprecated use `ListChunksPaginatedRequest$outboundSchema` instead. */
234
+ export const outboundSchema = ListChunksPaginatedRequest$outboundSchema;
235
+ /** @deprecated use `ListChunksPaginatedRequest$Outbound` instead. */
236
+ export type Outbound = ListChunksPaginatedRequest$Outbound;
237
+ }
238
+
239
+ export function listChunksPaginatedRequestToJSON(
240
+ listChunksPaginatedRequest: ListChunksPaginatedRequest,
241
+ ): string {
242
+ return JSON.stringify(
243
+ ListChunksPaginatedRequest$outboundSchema.parse(listChunksPaginatedRequest),
244
+ );
245
+ }
246
+
247
+ export function listChunksPaginatedRequestFromJSON(
248
+ jsonString: string,
249
+ ): SafeParseResult<ListChunksPaginatedRequest, SDKValidationError> {
250
+ return safeParse(
251
+ jsonString,
252
+ (x) => ListChunksPaginatedRequest$inboundSchema.parse(JSON.parse(x)),
253
+ `Failed to parse 'ListChunksPaginatedRequest' from JSON`,
254
+ );
255
+ }
256
+
257
+ /** @internal */
258
+ export const ListChunksPaginatedObject$inboundSchema: z.ZodNativeEnum<
259
+ typeof ListChunksPaginatedObject
260
+ > = z.nativeEnum(ListChunksPaginatedObject);
261
+
262
+ /** @internal */
263
+ export const ListChunksPaginatedObject$outboundSchema: z.ZodNativeEnum<
264
+ typeof ListChunksPaginatedObject
265
+ > = ListChunksPaginatedObject$inboundSchema;
266
+
267
+ /**
268
+ * @internal
269
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
+ */
271
+ export namespace ListChunksPaginatedObject$ {
272
+ /** @deprecated use `ListChunksPaginatedObject$inboundSchema` instead. */
273
+ export const inboundSchema = ListChunksPaginatedObject$inboundSchema;
274
+ /** @deprecated use `ListChunksPaginatedObject$outboundSchema` instead. */
275
+ export const outboundSchema = ListChunksPaginatedObject$outboundSchema;
276
+ }
277
+
278
+ /** @internal */
279
+ export const ListChunksPaginatedMetadata$inboundSchema: z.ZodType<
280
+ ListChunksPaginatedMetadata,
281
+ z.ZodTypeDef,
282
+ unknown
283
+ > = z.union([z.string(), z.number(), z.boolean()]);
284
+
285
+ /** @internal */
286
+ export type ListChunksPaginatedMetadata$Outbound = string | number | boolean;
287
+
288
+ /** @internal */
289
+ export const ListChunksPaginatedMetadata$outboundSchema: z.ZodType<
290
+ ListChunksPaginatedMetadata$Outbound,
291
+ z.ZodTypeDef,
292
+ ListChunksPaginatedMetadata
293
+ > = z.union([z.string(), z.number(), z.boolean()]);
294
+
295
+ /**
296
+ * @internal
297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
298
+ */
299
+ export namespace ListChunksPaginatedMetadata$ {
300
+ /** @deprecated use `ListChunksPaginatedMetadata$inboundSchema` instead. */
301
+ export const inboundSchema = ListChunksPaginatedMetadata$inboundSchema;
302
+ /** @deprecated use `ListChunksPaginatedMetadata$outboundSchema` instead. */
303
+ export const outboundSchema = ListChunksPaginatedMetadata$outboundSchema;
304
+ /** @deprecated use `ListChunksPaginatedMetadata$Outbound` instead. */
305
+ export type Outbound = ListChunksPaginatedMetadata$Outbound;
306
+ }
307
+
308
+ export function listChunksPaginatedMetadataToJSON(
309
+ listChunksPaginatedMetadata: ListChunksPaginatedMetadata,
310
+ ): string {
311
+ return JSON.stringify(
312
+ ListChunksPaginatedMetadata$outboundSchema.parse(
313
+ listChunksPaginatedMetadata,
314
+ ),
315
+ );
316
+ }
317
+
318
+ export function listChunksPaginatedMetadataFromJSON(
319
+ jsonString: string,
320
+ ): SafeParseResult<ListChunksPaginatedMetadata, SDKValidationError> {
321
+ return safeParse(
322
+ jsonString,
323
+ (x) => ListChunksPaginatedMetadata$inboundSchema.parse(JSON.parse(x)),
324
+ `Failed to parse 'ListChunksPaginatedMetadata' from JSON`,
325
+ );
326
+ }
327
+
328
+ /** @internal */
329
+ export const ListChunksPaginatedStatus$inboundSchema: z.ZodNativeEnum<
330
+ typeof ListChunksPaginatedStatus
331
+ > = z.nativeEnum(ListChunksPaginatedStatus);
332
+
333
+ /** @internal */
334
+ export const ListChunksPaginatedStatus$outboundSchema: z.ZodNativeEnum<
335
+ typeof ListChunksPaginatedStatus
336
+ > = ListChunksPaginatedStatus$inboundSchema;
337
+
338
+ /**
339
+ * @internal
340
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
341
+ */
342
+ export namespace ListChunksPaginatedStatus$ {
343
+ /** @deprecated use `ListChunksPaginatedStatus$inboundSchema` instead. */
344
+ export const inboundSchema = ListChunksPaginatedStatus$inboundSchema;
345
+ /** @deprecated use `ListChunksPaginatedStatus$outboundSchema` instead. */
346
+ export const outboundSchema = ListChunksPaginatedStatus$outboundSchema;
347
+ }
348
+
349
+ /** @internal */
350
+ export const ListChunksPaginatedData$inboundSchema: z.ZodType<
351
+ ListChunksPaginatedData,
352
+ z.ZodTypeDef,
353
+ unknown
354
+ > = z.object({
355
+ _id: z.string(),
356
+ text: z.string(),
357
+ metadata: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
358
+ enabled: z.boolean(),
359
+ status: ListChunksPaginatedStatus$inboundSchema,
360
+ created: z.string(),
361
+ updated: z.string(),
362
+ created_by_id: z.nullable(z.string()).optional(),
363
+ update_by_id: z.nullable(z.string()).optional(),
364
+ }).transform((v) => {
365
+ return remap$(v, {
366
+ "_id": "id",
367
+ "created_by_id": "createdById",
368
+ "update_by_id": "updateById",
369
+ });
370
+ });
371
+
372
+ /** @internal */
373
+ export type ListChunksPaginatedData$Outbound = {
374
+ _id: string;
375
+ text: string;
376
+ metadata?: { [k: string]: string | number | boolean } | undefined;
377
+ enabled: boolean;
378
+ status: string;
379
+ created: string;
380
+ updated: string;
381
+ created_by_id?: string | null | undefined;
382
+ update_by_id?: string | null | undefined;
383
+ };
384
+
385
+ /** @internal */
386
+ export const ListChunksPaginatedData$outboundSchema: z.ZodType<
387
+ ListChunksPaginatedData$Outbound,
388
+ z.ZodTypeDef,
389
+ ListChunksPaginatedData
390
+ > = z.object({
391
+ id: z.string(),
392
+ text: z.string(),
393
+ metadata: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
394
+ enabled: z.boolean(),
395
+ status: ListChunksPaginatedStatus$outboundSchema,
396
+ created: z.string(),
397
+ updated: z.string(),
398
+ createdById: z.nullable(z.string()).optional(),
399
+ updateById: z.nullable(z.string()).optional(),
400
+ }).transform((v) => {
401
+ return remap$(v, {
402
+ id: "_id",
403
+ createdById: "created_by_id",
404
+ updateById: "update_by_id",
405
+ });
406
+ });
407
+
408
+ /**
409
+ * @internal
410
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
411
+ */
412
+ export namespace ListChunksPaginatedData$ {
413
+ /** @deprecated use `ListChunksPaginatedData$inboundSchema` instead. */
414
+ export const inboundSchema = ListChunksPaginatedData$inboundSchema;
415
+ /** @deprecated use `ListChunksPaginatedData$outboundSchema` instead. */
416
+ export const outboundSchema = ListChunksPaginatedData$outboundSchema;
417
+ /** @deprecated use `ListChunksPaginatedData$Outbound` instead. */
418
+ export type Outbound = ListChunksPaginatedData$Outbound;
419
+ }
420
+
421
+ export function listChunksPaginatedDataToJSON(
422
+ listChunksPaginatedData: ListChunksPaginatedData,
423
+ ): string {
424
+ return JSON.stringify(
425
+ ListChunksPaginatedData$outboundSchema.parse(listChunksPaginatedData),
426
+ );
427
+ }
428
+
429
+ export function listChunksPaginatedDataFromJSON(
430
+ jsonString: string,
431
+ ): SafeParseResult<ListChunksPaginatedData, SDKValidationError> {
432
+ return safeParse(
433
+ jsonString,
434
+ (x) => ListChunksPaginatedData$inboundSchema.parse(JSON.parse(x)),
435
+ `Failed to parse 'ListChunksPaginatedData' from JSON`,
436
+ );
437
+ }
438
+
439
+ /** @internal */
440
+ export const ListChunksPaginatedResponseBody$inboundSchema: z.ZodType<
441
+ ListChunksPaginatedResponseBody,
442
+ z.ZodTypeDef,
443
+ unknown
444
+ > = z.object({
445
+ object: ListChunksPaginatedObject$inboundSchema,
446
+ data: z.array(z.lazy(() => ListChunksPaginatedData$inboundSchema)),
447
+ has_more: z.boolean(),
448
+ }).transform((v) => {
449
+ return remap$(v, {
450
+ "has_more": "hasMore",
451
+ });
452
+ });
453
+
454
+ /** @internal */
455
+ export type ListChunksPaginatedResponseBody$Outbound = {
456
+ object: string;
457
+ data: Array<ListChunksPaginatedData$Outbound>;
458
+ has_more: boolean;
459
+ };
460
+
461
+ /** @internal */
462
+ export const ListChunksPaginatedResponseBody$outboundSchema: z.ZodType<
463
+ ListChunksPaginatedResponseBody$Outbound,
464
+ z.ZodTypeDef,
465
+ ListChunksPaginatedResponseBody
466
+ > = z.object({
467
+ object: ListChunksPaginatedObject$outboundSchema,
468
+ data: z.array(z.lazy(() => ListChunksPaginatedData$outboundSchema)),
469
+ hasMore: z.boolean(),
470
+ }).transform((v) => {
471
+ return remap$(v, {
472
+ hasMore: "has_more",
473
+ });
474
+ });
475
+
476
+ /**
477
+ * @internal
478
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
479
+ */
480
+ export namespace ListChunksPaginatedResponseBody$ {
481
+ /** @deprecated use `ListChunksPaginatedResponseBody$inboundSchema` instead. */
482
+ export const inboundSchema = ListChunksPaginatedResponseBody$inboundSchema;
483
+ /** @deprecated use `ListChunksPaginatedResponseBody$outboundSchema` instead. */
484
+ export const outboundSchema = ListChunksPaginatedResponseBody$outboundSchema;
485
+ /** @deprecated use `ListChunksPaginatedResponseBody$Outbound` instead. */
486
+ export type Outbound = ListChunksPaginatedResponseBody$Outbound;
487
+ }
488
+
489
+ export function listChunksPaginatedResponseBodyToJSON(
490
+ listChunksPaginatedResponseBody: ListChunksPaginatedResponseBody,
491
+ ): string {
492
+ return JSON.stringify(
493
+ ListChunksPaginatedResponseBody$outboundSchema.parse(
494
+ listChunksPaginatedResponseBody,
495
+ ),
496
+ );
497
+ }
498
+
499
+ export function listChunksPaginatedResponseBodyFromJSON(
500
+ jsonString: string,
501
+ ): SafeParseResult<ListChunksPaginatedResponseBody, SDKValidationError> {
502
+ return safeParse(
503
+ jsonString,
504
+ (x) => ListChunksPaginatedResponseBody$inboundSchema.parse(JSON.parse(x)),
505
+ `Failed to parse 'ListChunksPaginatedResponseBody' from JSON`,
506
+ );
507
+ }
@@ -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-10-02T08:26:54.292Z",
355
+ "2025-10-03T06:58:46.742Z",
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-10-02T08:26:54.292Z"))
392
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
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-10-02T08:26:54.292Z",
3104
+ "2025-10-03T06:58:46.742Z",
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-10-02T08:26:54.292Z"))
3168
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
3169
3169
  .transform(v => v.toISOString()),
3170
3170
  }).transform((v) => {
3171
3171
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-10-02T08:26:54.292Z",
256
+ "2025-10-03T06:58:46.742Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
296
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01K6J0GC1C7PFPJZ88ZY8B0W98"),
281
+ _id: z.string().default("01K6MDVPQ4F667RAQF10WFDATE"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01K6J0GC1C7PFPJZ88ZY8B0W98"),
325
+ id: z.string().default("01K6MDVPQ4F667RAQF10WFDATE"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -131,6 +131,7 @@ export type ListPromptVersions1Type = ClosedEnum<
131
131
 
132
132
  export type ListPromptVersions1JsonSchema = {
133
133
  name: string;
134
+ description?: string | undefined;
134
135
  strict?: boolean | undefined;
135
136
  schema: { [k: string]: any };
136
137
  };
@@ -981,6 +982,7 @@ export const ListPromptVersions1JsonSchema$inboundSchema: z.ZodType<
981
982
  unknown
982
983
  > = z.object({
983
984
  name: z.string(),
985
+ description: z.string().optional(),
984
986
  strict: z.boolean().optional(),
985
987
  schema: z.record(z.any()),
986
988
  });
@@ -988,6 +990,7 @@ export const ListPromptVersions1JsonSchema$inboundSchema: z.ZodType<
988
990
  /** @internal */
989
991
  export type ListPromptVersions1JsonSchema$Outbound = {
990
992
  name: string;
993
+ description?: string | undefined;
991
994
  strict?: boolean | undefined;
992
995
  schema: { [k: string]: any };
993
996
  };
@@ -999,6 +1002,7 @@ export const ListPromptVersions1JsonSchema$outboundSchema: z.ZodType<
999
1002
  ListPromptVersions1JsonSchema
1000
1003
  > = z.object({
1001
1004
  name: z.string(),
1005
+ description: z.string().optional(),
1002
1006
  strict: z.boolean().optional(),
1003
1007
  schema: z.record(z.any()),
1004
1008
  });
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-10-02T08:26:54.292Z",
130
+ "2025-10-03T06:58:46.742Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
168
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {
@@ -2958,7 +2958,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2958
2958
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2959
2959
  .optional(),
2960
2960
  updated: z.string().datetime({ offset: true }).default(
2961
- "2025-10-02T08:26:54.292Z",
2961
+ "2025-10-03T06:58:46.742Z",
2962
2962
  ).transform(v => new Date(v)),
2963
2963
  }).transform((v) => {
2964
2964
  return remap$(v, {
@@ -3016,7 +3016,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
3016
3016
  createdById: z.string().optional(),
3017
3017
  updatedById: z.string().optional(),
3018
3018
  created: z.date().transform(v => v.toISOString()).optional(),
3019
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
3019
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
3020
3020
  .transform(v => v.toISOString()),
3021
3021
  }).transform((v) => {
3022
3022
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-10-02T08:26:54.292Z",
204
+ "2025-10-03T06:58:46.742Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
244
+ updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01K6J0GC1D0AJ5SZJNRZ4RAXZ4"),
175
+ _id: z.string().default("01K6MDVPQ5E1Y7YC7MB3GE5RJW"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01K6J0GC1D0AJ5SZJNRZ4RAXZ4"),
219
+ id: z.string().default("01K6MDVPQ5E1Y7YC7MB3GE5RJW"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,