@orq-ai/node 3.3.14 → 3.3.15

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 (91) hide show
  1. package/bin/mcp-server.js +51 -43
  2. package/bin/mcp-server.js.map +24 -24
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/matchers.d.ts +3 -1
  7. package/lib/matchers.d.ts.map +1 -1
  8. package/lib/matchers.js +12 -0
  9. package/lib/matchers.js.map +1 -1
  10. package/lib/sdks.js +7 -2
  11. package/lib/sdks.js.map +1 -1
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/models/operations/bulkcreatedatapoints.js +2 -2
  15. package/models/operations/createcontact.js +2 -2
  16. package/models/operations/createdataset.js +2 -2
  17. package/models/operations/createdatasetitem.js +2 -2
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/fileget.js +2 -2
  20. package/models/operations/filelist.js +2 -2
  21. package/models/operations/fileupload.js +2 -2
  22. package/models/operations/listdatasetdatapoints.js +2 -2
  23. package/models/operations/listdatasets.js +2 -2
  24. package/models/operations/listdatasources.js +2 -2
  25. package/models/operations/retrievedatapoint.js +2 -2
  26. package/models/operations/retrievedataset.js +2 -2
  27. package/models/operations/retrievedatasource.js +2 -2
  28. package/models/operations/updatedatapoint.js +2 -2
  29. package/models/operations/updatedataset.js +2 -2
  30. package/models/operations/updatedatasource.js +2 -2
  31. package/package.json +1 -1
  32. package/packages/orq-rc/docs/sdks/knowledge/README.md +22 -0
  33. package/packages/orq-rc/jsr.json +1 -1
  34. package/packages/orq-rc/package-lock.json +2 -2
  35. package/packages/orq-rc/package.json +1 -1
  36. package/packages/orq-rc/src/funcs/sessionsCreate.ts +2 -2
  37. package/packages/orq-rc/src/lib/config.ts +3 -3
  38. package/packages/orq-rc/src/lib/matchers.ts +20 -0
  39. package/packages/orq-rc/src/lib/sdks.ts +8 -2
  40. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  41. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  42. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/createchunk.ts +31 -89
  44. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  45. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  46. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  47. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  48. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -8
  49. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  50. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -4
  54. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  55. package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -4
  56. package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -4
  57. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -4
  61. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  65. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -8
  69. package/packages/orq-rc/src/models/operations/updatetool.ts +6 -6
  70. package/src/lib/config.ts +3 -3
  71. package/src/lib/matchers.ts +20 -0
  72. package/src/lib/sdks.ts +8 -2
  73. package/src/mcp-server/mcp-server.ts +1 -1
  74. package/src/mcp-server/server.ts +1 -1
  75. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  76. package/src/models/operations/createcontact.ts +2 -2
  77. package/src/models/operations/createdataset.ts +2 -2
  78. package/src/models/operations/createdatasetitem.ts +2 -2
  79. package/src/models/operations/createdatasource.ts +2 -2
  80. package/src/models/operations/fileget.ts +2 -2
  81. package/src/models/operations/filelist.ts +2 -2
  82. package/src/models/operations/fileupload.ts +2 -2
  83. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  84. package/src/models/operations/listdatasets.ts +2 -2
  85. package/src/models/operations/listdatasources.ts +2 -2
  86. package/src/models/operations/retrievedatapoint.ts +2 -2
  87. package/src/models/operations/retrievedataset.ts +2 -2
  88. package/src/models/operations/retrievedatasource.ts +2 -2
  89. package/src/models/operations/updatedatapoint.ts +2 -2
  90. package/src/models/operations/updatedataset.ts +2 -2
  91. package/src/models/operations/updatedatasource.ts +2 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "3.4.0-rc.21",
5
+ "version": "3.4.0-rc.36",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "3.4.0-rc.21",
3
+ "version": "3.4.0-rc.36",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@orq-ai/node",
9
- "version": "3.4.0-rc.21",
9
+ "version": "3.4.0-rc.36",
10
10
  "bin": {
11
11
  "mcp": "bin/mcp-server.js"
12
12
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "3.4.0-rc.21",
3
+ "version": "3.4.0-rc.36",
4
4
  "author": "Orq",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -128,7 +128,7 @@ async function $do(
128
128
 
129
129
  const doResult = await client._do(req, {
130
130
  context,
131
- errorCodes: ["4XX", "5XX"],
131
+ errorCodes: ["409", "4XX", "5XX"],
132
132
  retryConfig: context.retryConfig,
133
133
  retryCodes: context.retryCodes,
134
134
  });
@@ -148,7 +148,7 @@ async function $do(
148
148
  | ConnectionError
149
149
  >(
150
150
  M.json(200, operations.CreateSessionResponseBody$inboundSchema),
151
- M.fail("4XX"),
151
+ M.fail([409, "4XX"]),
152
152
  M.fail("5XX"),
153
153
  )(response);
154
154
  if (!result.ok) {
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "2.0",
67
- sdkVersion: "3.4.0-rc.21",
68
- genVersion: "2.570.4",
69
- userAgent: "speakeasy-sdk/typescript 3.4.0-rc.21 2.570.4 2.0 @orq-ai/node",
67
+ sdkVersion: "3.4.0-rc.36",
68
+ genVersion: "2.578.0",
69
+ userAgent: "speakeasy-sdk/typescript 3.4.0-rc.36 2.578.0 2.0 @orq-ai/node",
70
70
  } as const;
@@ -11,6 +11,7 @@ import { isPlainObject } from "./is-plain-object.js";
11
11
  import { safeParse } from "./schemas.js";
12
12
 
13
13
  export type Encoding =
14
+ | "jsonl"
14
15
  | "json"
15
16
  | "text"
16
17
  | "bytes"
@@ -20,6 +21,7 @@ export type Encoding =
20
21
  | "fail";
21
22
 
22
23
  const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
24
+ jsonl: "application/jsonl",
23
25
  json: "application/json",
24
26
  text: "text/plain",
25
27
  bytes: "application/octet-stream",
@@ -73,6 +75,21 @@ export function json<T>(
73
75
  return { ...options, enc: "json", codes, schema };
74
76
  }
75
77
 
78
+ export function jsonl<T>(
79
+ codes: StatusCodePredicate,
80
+ schema: Schema<T>,
81
+ options?: MatchOptions,
82
+ ): ValueMatcher<T> {
83
+ return { ...options, enc: "jsonl", codes, schema };
84
+ }
85
+
86
+ export function jsonlErr<E>(
87
+ codes: StatusCodePredicate,
88
+ schema: Schema<E>,
89
+ options?: MatchOptions,
90
+ ): ErrorMatcher<E> {
91
+ return { ...options, err: true, enc: "jsonl", codes, schema };
92
+ }
76
93
  export function textErr<E>(
77
94
  codes: StatusCodePredicate,
78
95
  schema: Schema<E>,
@@ -205,6 +222,9 @@ export function match<T, E>(
205
222
  case "json":
206
223
  raw = await response.json();
207
224
  break;
225
+ case "jsonl":
226
+ raw = response.body;
227
+ break;
208
228
  case "bytes":
209
229
  raw = new Uint8Array(await response.arrayBuffer());
210
230
  break;
@@ -302,7 +302,9 @@ export class ClientSDK {
302
302
  }
303
303
  }
304
304
 
305
- const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
305
+ const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
306
+ const jsonlLikeContentTypeRE =
307
+ /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
306
308
  async function logRequest(logger: Logger | undefined, req: Request) {
307
309
  if (!logger) {
308
310
  return;
@@ -368,9 +370,13 @@ async function logResponse(
368
370
  logger.group("Body:");
369
371
  switch (true) {
370
372
  case matchContentType(res, "application/json")
371
- || jsonLikeContentTypeRE.test(ct):
373
+ || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
372
374
  logger.log(await res.clone().json());
373
375
  break;
376
+ case matchContentType(res, "application/jsonl")
377
+ || jsonlLikeContentTypeRE.test(ct):
378
+ logger.log(await res.clone().text());
379
+ break;
374
380
  case matchContentType(res, "text/event-stream"):
375
381
  logger.log(`<${contentType}>`);
376
382
  break;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "3.4.0-rc.21",
22
+ currentVersion: "3.4.0-rc.36",
23
23
  },
24
24
  });
25
25
 
@@ -98,7 +98,7 @@ export function createMCPServer(deps: {
98
98
  }) {
99
99
  const server = new McpServer({
100
100
  name: "Orq",
101
- version: "3.4.0-rc.21",
101
+ version: "3.4.0-rc.36",
102
102
  });
103
103
 
104
104
  const client = new OrqCore({
@@ -1731,7 +1731,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
1731
1731
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1732
1732
  .optional(),
1733
1733
  updated: z.string().datetime({ offset: true }).default(
1734
- "2025-04-14T11:15:16.490Z",
1734
+ "2025-04-17T14:26:40.965Z",
1735
1735
  ).transform(v => new Date(v)),
1736
1736
  }).transform((v) => {
1737
1737
  return remap$(v, {
@@ -1775,7 +1775,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
1775
1775
  createdById: z.string().optional(),
1776
1776
  updatedById: z.string().optional(),
1777
1777
  created: z.date().transform(v => v.toISOString()).optional(),
1778
- updated: z.date().default(() => new Date("2025-04-14T11:15:16.490Z"))
1778
+ updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
1779
1779
  .transform(v => v.toISOString()),
1780
1780
  }).transform((v) => {
1781
1781
  return remap$(v, {
@@ -19,7 +19,7 @@ export type CreateChunkMetadata = {
19
19
  pageNumber?: number | undefined;
20
20
  };
21
21
 
22
- export type Chunks = {
22
+ export type RequestBody = {
23
23
  /**
24
24
  * The text content of the chunk
25
25
  */
@@ -34,13 +34,6 @@ export type Chunks = {
34
34
  metadata?: CreateChunkMetadata | undefined;
35
35
  };
36
36
 
37
- export type CreateChunkRequestBody = {
38
- /**
39
- * Array of chunks to create. Maximum of 100 chunks per request.
40
- */
41
- chunks: Array<Chunks>;
42
- };
43
-
44
37
  export type CreateChunkRequest = {
45
38
  /**
46
39
  * Unique identifier of the knowledge
@@ -50,7 +43,7 @@ export type CreateChunkRequest = {
50
43
  * Unique identifier of the datasource
51
44
  */
52
45
  datasourceId: string;
53
- requestBody?: CreateChunkRequestBody | undefined;
46
+ requestBody: Array<RequestBody>;
54
47
  };
55
48
 
56
49
  /**
@@ -170,25 +163,28 @@ export function createChunkMetadataFromJSON(
170
163
  }
171
164
 
172
165
  /** @internal */
173
- export const Chunks$inboundSchema: z.ZodType<Chunks, z.ZodTypeDef, unknown> = z
174
- .object({
175
- text: z.string(),
176
- embedding: z.array(z.number()).optional(),
177
- metadata: z.lazy(() => CreateChunkMetadata$inboundSchema).optional(),
178
- });
166
+ export const RequestBody$inboundSchema: z.ZodType<
167
+ RequestBody,
168
+ z.ZodTypeDef,
169
+ unknown
170
+ > = z.object({
171
+ text: z.string(),
172
+ embedding: z.array(z.number()).optional(),
173
+ metadata: z.lazy(() => CreateChunkMetadata$inboundSchema).optional(),
174
+ });
179
175
 
180
176
  /** @internal */
181
- export type Chunks$Outbound = {
177
+ export type RequestBody$Outbound = {
182
178
  text: string;
183
179
  embedding?: Array<number> | undefined;
184
180
  metadata?: CreateChunkMetadata$Outbound | undefined;
185
181
  };
186
182
 
187
183
  /** @internal */
188
- export const Chunks$outboundSchema: z.ZodType<
189
- Chunks$Outbound,
184
+ export const RequestBody$outboundSchema: z.ZodType<
185
+ RequestBody$Outbound,
190
186
  z.ZodTypeDef,
191
- Chunks
187
+ RequestBody
192
188
  > = z.object({
193
189
  text: z.string(),
194
190
  embedding: z.array(z.number()).optional(),
@@ -199,80 +195,26 @@ export const Chunks$outboundSchema: z.ZodType<
199
195
  * @internal
200
196
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
197
  */
202
- export namespace Chunks$ {
203
- /** @deprecated use `Chunks$inboundSchema` instead. */
204
- export const inboundSchema = Chunks$inboundSchema;
205
- /** @deprecated use `Chunks$outboundSchema` instead. */
206
- export const outboundSchema = Chunks$outboundSchema;
207
- /** @deprecated use `Chunks$Outbound` instead. */
208
- export type Outbound = Chunks$Outbound;
209
- }
210
-
211
- export function chunksToJSON(chunks: Chunks): string {
212
- return JSON.stringify(Chunks$outboundSchema.parse(chunks));
213
- }
214
-
215
- export function chunksFromJSON(
216
- jsonString: string,
217
- ): SafeParseResult<Chunks, SDKValidationError> {
218
- return safeParse(
219
- jsonString,
220
- (x) => Chunks$inboundSchema.parse(JSON.parse(x)),
221
- `Failed to parse 'Chunks' from JSON`,
222
- );
223
- }
224
-
225
- /** @internal */
226
- export const CreateChunkRequestBody$inboundSchema: z.ZodType<
227
- CreateChunkRequestBody,
228
- z.ZodTypeDef,
229
- unknown
230
- > = z.object({
231
- chunks: z.array(z.lazy(() => Chunks$inboundSchema)),
232
- });
233
-
234
- /** @internal */
235
- export type CreateChunkRequestBody$Outbound = {
236
- chunks: Array<Chunks$Outbound>;
237
- };
238
-
239
- /** @internal */
240
- export const CreateChunkRequestBody$outboundSchema: z.ZodType<
241
- CreateChunkRequestBody$Outbound,
242
- z.ZodTypeDef,
243
- CreateChunkRequestBody
244
- > = z.object({
245
- chunks: z.array(z.lazy(() => Chunks$outboundSchema)),
246
- });
247
-
248
- /**
249
- * @internal
250
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
251
- */
252
- export namespace CreateChunkRequestBody$ {
253
- /** @deprecated use `CreateChunkRequestBody$inboundSchema` instead. */
254
- export const inboundSchema = CreateChunkRequestBody$inboundSchema;
255
- /** @deprecated use `CreateChunkRequestBody$outboundSchema` instead. */
256
- export const outboundSchema = CreateChunkRequestBody$outboundSchema;
257
- /** @deprecated use `CreateChunkRequestBody$Outbound` instead. */
258
- export type Outbound = CreateChunkRequestBody$Outbound;
198
+ export namespace RequestBody$ {
199
+ /** @deprecated use `RequestBody$inboundSchema` instead. */
200
+ export const inboundSchema = RequestBody$inboundSchema;
201
+ /** @deprecated use `RequestBody$outboundSchema` instead. */
202
+ export const outboundSchema = RequestBody$outboundSchema;
203
+ /** @deprecated use `RequestBody$Outbound` instead. */
204
+ export type Outbound = RequestBody$Outbound;
259
205
  }
260
206
 
261
- export function createChunkRequestBodyToJSON(
262
- createChunkRequestBody: CreateChunkRequestBody,
263
- ): string {
264
- return JSON.stringify(
265
- CreateChunkRequestBody$outboundSchema.parse(createChunkRequestBody),
266
- );
207
+ export function requestBodyToJSON(requestBody: RequestBody): string {
208
+ return JSON.stringify(RequestBody$outboundSchema.parse(requestBody));
267
209
  }
268
210
 
269
- export function createChunkRequestBodyFromJSON(
211
+ export function requestBodyFromJSON(
270
212
  jsonString: string,
271
- ): SafeParseResult<CreateChunkRequestBody, SDKValidationError> {
213
+ ): SafeParseResult<RequestBody, SDKValidationError> {
272
214
  return safeParse(
273
215
  jsonString,
274
- (x) => CreateChunkRequestBody$inboundSchema.parse(JSON.parse(x)),
275
- `Failed to parse 'CreateChunkRequestBody' from JSON`,
216
+ (x) => RequestBody$inboundSchema.parse(JSON.parse(x)),
217
+ `Failed to parse 'RequestBody' from JSON`,
276
218
  );
277
219
  }
278
220
 
@@ -284,7 +226,7 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
284
226
  > = z.object({
285
227
  knowledge_id: z.string(),
286
228
  datasource_id: z.string(),
287
- RequestBody: z.lazy(() => CreateChunkRequestBody$inboundSchema).optional(),
229
+ RequestBody: z.array(z.lazy(() => RequestBody$inboundSchema)),
288
230
  }).transform((v) => {
289
231
  return remap$(v, {
290
232
  "knowledge_id": "knowledgeId",
@@ -297,7 +239,7 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
297
239
  export type CreateChunkRequest$Outbound = {
298
240
  knowledge_id: string;
299
241
  datasource_id: string;
300
- RequestBody?: CreateChunkRequestBody$Outbound | undefined;
242
+ RequestBody: Array<RequestBody$Outbound>;
301
243
  };
302
244
 
303
245
  /** @internal */
@@ -308,7 +250,7 @@ export const CreateChunkRequest$outboundSchema: z.ZodType<
308
250
  > = z.object({
309
251
  knowledgeId: z.string(),
310
252
  datasourceId: z.string(),
311
- requestBody: z.lazy(() => CreateChunkRequestBody$outboundSchema).optional(),
253
+ requestBody: z.array(z.lazy(() => RequestBody$outboundSchema)),
312
254
  }).transform((v) => {
313
255
  return remap$(v, {
314
256
  knowledgeId: "knowledge_id",
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
177
177
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
178
  .optional(),
179
179
  updated: z.string().datetime({ offset: true }).default(
180
- "2025-04-14T11:15:16.490Z",
180
+ "2025-04-17T14:26:40.965Z",
181
181
  ).transform(v => new Date(v)),
182
182
  }).transform((v) => {
183
183
  return remap$(v, {
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
214
214
  tags: z.array(z.string()).optional(),
215
215
  metadata: z.record(z.any()).optional(),
216
216
  created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-04-14T11:15:16.490Z"))
217
+ updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
218
218
  .transform(v => v.toISOString()),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-04-14T11:15:16.490Z",
214
+ "2025-04-17T14:26:40.965Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-04-14T11:15:16.490Z"))
254
+ updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -1649,7 +1649,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
1649
1649
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1650
1650
  .optional(),
1651
1651
  updated: z.string().datetime({ offset: true }).default(
1652
- "2025-04-14T11:15:16.490Z",
1652
+ "2025-04-17T14:26:40.965Z",
1653
1653
  ).transform(v => new Date(v)),
1654
1654
  }).transform((v) => {
1655
1655
  return remap$(v, {
@@ -1693,7 +1693,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
1693
1693
  createdById: z.string().optional(),
1694
1694
  updatedById: z.string().optional(),
1695
1695
  created: z.date().transform(v => v.toISOString()).optional(),
1696
- updated: z.date().default(() => new Date("2025-04-14T11:15:16.490Z"))
1696
+ updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
1697
1697
  .transform(v => v.toISOString()),
1698
1698
  }).transform((v) => {
1699
1699
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01JRT05N46M2364S5Q24V1CN0Q"),
754
+ _id: z.string().default("01JS22A9HSS0Y2YT3PHPPQZ1EC"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01JRT05N46M2364S5Q24V1CN0Q"),
798
+ id: z.string().default("01JS22A9HSS0Y2YT3PHPPQZ1EC"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -401,7 +401,7 @@ export type CreatePromptMetadata = {
401
401
  /**
402
402
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
403
403
  */
404
- language?: Language | undefined;
404
+ language?: Language | null | undefined;
405
405
  };
406
406
 
407
407
  export type CreatePromptRequestBody = {
@@ -859,7 +859,7 @@ export type CreatePromptPromptsMetadata = {
859
859
  /**
860
860
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
861
861
  */
862
- language?: CreatePromptLanguage | undefined;
862
+ language?: CreatePromptLanguage | null | undefined;
863
863
  };
864
864
 
865
865
  /**
@@ -2115,7 +2115,7 @@ export const CreatePromptMetadata$inboundSchema: z.ZodType<
2115
2115
  unknown
2116
2116
  > = z.object({
2117
2117
  use_cases: z.array(UseCases$inboundSchema).optional(),
2118
- language: Language$inboundSchema.optional(),
2118
+ language: z.nullable(Language$inboundSchema).optional(),
2119
2119
  }).transform((v) => {
2120
2120
  return remap$(v, {
2121
2121
  "use_cases": "useCases",
@@ -2125,7 +2125,7 @@ export const CreatePromptMetadata$inboundSchema: z.ZodType<
2125
2125
  /** @internal */
2126
2126
  export type CreatePromptMetadata$Outbound = {
2127
2127
  use_cases?: Array<string> | undefined;
2128
- language?: string | undefined;
2128
+ language?: string | null | undefined;
2129
2129
  };
2130
2130
 
2131
2131
  /** @internal */
@@ -2135,7 +2135,7 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
2135
2135
  CreatePromptMetadata
2136
2136
  > = z.object({
2137
2137
  useCases: z.array(UseCases$outboundSchema).optional(),
2138
- language: Language$outboundSchema.optional(),
2138
+ language: z.nullable(Language$outboundSchema).optional(),
2139
2139
  }).transform((v) => {
2140
2140
  return remap$(v, {
2141
2141
  useCases: "use_cases",
@@ -3577,7 +3577,7 @@ export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3577
3577
  unknown
3578
3578
  > = z.object({
3579
3579
  use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
3580
- language: CreatePromptLanguage$inboundSchema.optional(),
3580
+ language: z.nullable(CreatePromptLanguage$inboundSchema).optional(),
3581
3581
  }).transform((v) => {
3582
3582
  return remap$(v, {
3583
3583
  "use_cases": "useCases",
@@ -3587,7 +3587,7 @@ export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3587
3587
  /** @internal */
3588
3588
  export type CreatePromptPromptsMetadata$Outbound = {
3589
3589
  use_cases?: Array<string> | undefined;
3590
- language?: string | undefined;
3590
+ language?: string | null | undefined;
3591
3591
  };
3592
3592
 
3593
3593
  /** @internal */
@@ -3597,7 +3597,7 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
3597
3597
  CreatePromptPromptsMetadata
3598
3598
  > = z.object({
3599
3599
  useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
3600
- language: CreatePromptLanguage$outboundSchema.optional(),
3600
+ language: z.nullable(CreatePromptLanguage$outboundSchema).optional(),
3601
3601
  }).transform((v) => {
3602
3602
  return remap$(v, {
3603
3603
  useCases: "use_cases",
@@ -1710,7 +1710,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
1710
1710
  z.ZodTypeDef,
1711
1711
  unknown
1712
1712
  > = z.object({
1713
- _id: z.string().default("tool_01JRT05N2Q6FQPDR4AZNFN5H68"),
1713
+ _id: z.string().default("tool_01JS22A9GDPHTR39MQKQRC9F47"),
1714
1714
  path: z.string(),
1715
1715
  key: z.string(),
1716
1716
  description: z.string(),
@@ -1759,7 +1759,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
1759
1759
  z.ZodTypeDef,
1760
1760
  ResponseBody3
1761
1761
  > = z.object({
1762
- id: z.string().default("tool_01JRT05N2Q6FQPDR4AZNFN5H68"),
1762
+ id: z.string().default("tool_01JS22A9GDPHTR39MQKQRC9F47"),
1763
1763
  path: z.string(),
1764
1764
  key: z.string(),
1765
1765
  description: z.string(),
@@ -1922,7 +1922,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
1922
1922
  z.ZodTypeDef,
1923
1923
  unknown
1924
1924
  > = z.object({
1925
- _id: z.string().default("tool_01JRT05N2PG6D7AFJE7GAXWZ27"),
1925
+ _id: z.string().default("tool_01JS22A9GC9HT66X0GZBRQ2TE1"),
1926
1926
  path: z.string(),
1927
1927
  key: z.string(),
1928
1928
  description: z.string(),
@@ -1972,7 +1972,7 @@ export const ResponseBody2$outboundSchema: z.ZodType<
1972
1972
  z.ZodTypeDef,
1973
1973
  ResponseBody2
1974
1974
  > = z.object({
1975
- id: z.string().default("tool_01JRT05N2PG6D7AFJE7GAXWZ27"),
1975
+ id: z.string().default("tool_01JS22A9GC9HT66X0GZBRQ2TE1"),
1976
1976
  path: z.string(),
1977
1977
  key: z.string(),
1978
1978
  description: z.string(),
@@ -2136,7 +2136,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
2136
2136
  z.ZodTypeDef,
2137
2137
  unknown
2138
2138
  > = z.object({
2139
- _id: z.string().default("tool_01JRT05N2N0YN3RZYVERE05GWC"),
2139
+ _id: z.string().default("tool_01JS22A9GC6S6H4ZW8Z5V9STKW"),
2140
2140
  path: z.string(),
2141
2141
  key: z.string(),
2142
2142
  description: z.string(),
@@ -2185,7 +2185,7 @@ export const ResponseBody1$outboundSchema: z.ZodType<
2185
2185
  z.ZodTypeDef,
2186
2186
  ResponseBody1
2187
2187
  > = z.object({
2188
- id: z.string().default("tool_01JRT05N2N0YN3RZYVERE05GWC"),
2188
+ id: z.string().default("tool_01JS22A9GC6S6H4ZW8Z5V9STKW"),
2189
2189
  path: z.string(),
2190
2190
  key: z.string(),
2191
2191
  description: z.string(),
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-04-14T11:15:19.068Z",
149
+ "2025-04-17T14:26:43.658Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-04-14T11:15:19.068Z"))
183
+ created: z.date().default(() => new Date("2025-04-17T14:26:43.658Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-04-14T11:15:19.068Z",
199
+ "2025-04-17T14:26:43.658Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
230
230
  bytes: z.number(),
231
231
  fileName: z.string(),
232
232
  workspaceId: z.string(),
233
- created: z.date().default(() => new Date("2025-04-14T11:15:19.068Z"))
233
+ created: z.date().default(() => new Date("2025-04-17T14:26:43.658Z"))
234
234
  .transform(v => v.toISOString()),
235
235
  }).transform((v) => {
236
236
  return remap$(v, {
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
247
247
  file_name: z.string(),
248
248
  workspace_id: z.string(),
249
249
  created: z.string().datetime({ offset: true }).default(
250
- "2025-04-14T11:15:19.068Z",
250
+ "2025-04-17T14:26:43.658Z",
251
251
  ).transform(v => new Date(v)),
252
252
  }).transform((v) => {
253
253
  return remap$(v, {
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
281
281
  bytes: z.number(),
282
282
  fileName: z.string(),
283
283
  workspaceId: z.string(),
284
- created: z.date().default(() => new Date("2025-04-14T11:15:19.068Z"))
284
+ created: z.date().default(() => new Date("2025-04-17T14:26:43.658Z"))
285
285
  .transform(v => v.toISOString()),
286
286
  }).transform((v) => {
287
287
  return remap$(v, {
@@ -454,7 +454,7 @@ export type GetAllPromptsMetadata = {
454
454
  /**
455
455
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
456
456
  */
457
- language?: GetAllPromptsLanguage | undefined;
457
+ language?: GetAllPromptsLanguage | null | undefined;
458
458
  };
459
459
 
460
460
  export type GetAllPromptsData = {
@@ -1895,7 +1895,7 @@ export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
1895
1895
  unknown
1896
1896
  > = z.object({
1897
1897
  use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
1898
- language: GetAllPromptsLanguage$inboundSchema.optional(),
1898
+ language: z.nullable(GetAllPromptsLanguage$inboundSchema).optional(),
1899
1899
  }).transform((v) => {
1900
1900
  return remap$(v, {
1901
1901
  "use_cases": "useCases",
@@ -1905,7 +1905,7 @@ export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
1905
1905
  /** @internal */
1906
1906
  export type GetAllPromptsMetadata$Outbound = {
1907
1907
  use_cases?: Array<string> | undefined;
1908
- language?: string | undefined;
1908
+ language?: string | null | undefined;
1909
1909
  };
1910
1910
 
1911
1911
  /** @internal */
@@ -1915,7 +1915,7 @@ export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
1915
1915
  GetAllPromptsMetadata
1916
1916
  > = z.object({
1917
1917
  useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
1918
- language: GetAllPromptsLanguage$outboundSchema.optional(),
1918
+ language: z.nullable(GetAllPromptsLanguage$outboundSchema).optional(),
1919
1919
  }).transform((v) => {
1920
1920
  return remap$(v, {
1921
1921
  useCases: "use_cases",