@orq-ai/node 3.3.13 → 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.
- package/bin/mcp-server.js +51 -43
- package/bin/mcp-server.js.map +24 -24
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.js +7 -2
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/knowledge/README.md +22 -0
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/sessionsCreate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/matchers.ts +20 -0
- package/packages/orq-rc/src/lib/sdks.ts +8 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +31 -89
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +8 -8
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatetool.ts +6 -6
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "3.4.0-rc.
|
|
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.
|
|
9
|
+
"version": "3.4.0-rc.36",
|
|
10
10
|
"bin": {
|
|
11
11
|
"mcp": "bin/mcp-server.js"
|
|
12
12
|
},
|
|
@@ -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.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.4.0-rc.
|
|
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 =
|
|
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;
|
|
@@ -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-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
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
|
|
189
|
-
|
|
184
|
+
export const RequestBody$outboundSchema: z.ZodType<
|
|
185
|
+
RequestBody$Outbound,
|
|
190
186
|
z.ZodTypeDef,
|
|
191
|
-
|
|
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
|
|
203
|
-
/** @deprecated use `
|
|
204
|
-
export const inboundSchema =
|
|
205
|
-
/** @deprecated use `
|
|
206
|
-
export const outboundSchema =
|
|
207
|
-
/** @deprecated use `
|
|
208
|
-
export type 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
|
|
262
|
-
|
|
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
|
|
211
|
+
export function requestBodyFromJSON(
|
|
270
212
|
jsonString: string,
|
|
271
|
-
): SafeParseResult<
|
|
213
|
+
): SafeParseResult<RequestBody, SDKValidationError> {
|
|
272
214
|
return safeParse(
|
|
273
215
|
jsonString,
|
|
274
|
-
(x) =>
|
|
275
|
-
`Failed to parse '
|
|
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(() =>
|
|
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
|
|
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(() =>
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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",
|