@orq-ai/node 3.10.16 → 3.10.17
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 +608 -378
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- 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/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +163 -69
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +196 -96
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +82 -35
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +106 -57
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +82 -35
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +99 -49
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +81 -34
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +99 -49
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +81 -34
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +99 -49
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +81 -34
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +100 -50
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.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/listpromptversions.d.ts +81 -34
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +99 -50
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.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/updatecontact.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/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +162 -68
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +197 -97
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- 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/datasetsCreateDatapoint.ts +5 -4
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/packages/orq-rc/src/lib/config.ts +3 -3
- 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/createchunk.ts +54 -44
- 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 +46 -63
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- 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/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- 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/retrievecontact.ts +2 -2
- 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/updatecontact.ts +2 -2
- 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/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/datasets.ts +1 -1
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +347 -141
- package/src/models/operations/deploymentgetconfig.ts +173 -72
- package/src/models/operations/deployments.ts +168 -72
- 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/getallprompts.ts +169 -71
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +169 -71
- package/src/models/operations/getpromptversion.ts +168 -70
- package/src/models/operations/listcontacts.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/listpromptversions.ts +170 -71
- package/src/models/operations/retrievecontact.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/updatecontact.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/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +347 -141
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type CreateChunkMetadata = string | number | boolean;
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type CreateChunkRequestBody = {
|
|
15
15
|
/**
|
|
16
16
|
* The text content of the chunk
|
|
17
17
|
*/
|
|
@@ -35,7 +35,7 @@ export type CreateChunkRequest = {
|
|
|
35
35
|
* Unique identifier of the datasource
|
|
36
36
|
*/
|
|
37
37
|
datasourceId: string;
|
|
38
|
-
requestBody?: Array<
|
|
38
|
+
requestBody?: Array<CreateChunkRequestBody> | undefined;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export type CreateChunkKnowledgeMetadata = string | number | boolean;
|
|
@@ -55,7 +55,7 @@ export const CreateChunkStatus = {
|
|
|
55
55
|
*/
|
|
56
56
|
export type CreateChunkStatus = ClosedEnum<typeof CreateChunkStatus>;
|
|
57
57
|
|
|
58
|
-
export type
|
|
58
|
+
export type CreateChunkResponseBody = {
|
|
59
59
|
/**
|
|
60
60
|
* The unique identifier of the chunk
|
|
61
61
|
*/
|
|
@@ -143,8 +143,8 @@ export function createChunkMetadataFromJSON(
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/** @internal */
|
|
146
|
-
export const
|
|
147
|
-
|
|
146
|
+
export const CreateChunkRequestBody$inboundSchema: z.ZodType<
|
|
147
|
+
CreateChunkRequestBody,
|
|
148
148
|
z.ZodTypeDef,
|
|
149
149
|
unknown
|
|
150
150
|
> = z.object({
|
|
@@ -154,17 +154,17 @@ export const RequestBody$inboundSchema: z.ZodType<
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
/** @internal */
|
|
157
|
-
export type
|
|
157
|
+
export type CreateChunkRequestBody$Outbound = {
|
|
158
158
|
text: string;
|
|
159
159
|
embedding?: Array<number> | undefined;
|
|
160
160
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
/** @internal */
|
|
164
|
-
export const
|
|
165
|
-
|
|
164
|
+
export const CreateChunkRequestBody$outboundSchema: z.ZodType<
|
|
165
|
+
CreateChunkRequestBody$Outbound,
|
|
166
166
|
z.ZodTypeDef,
|
|
167
|
-
|
|
167
|
+
CreateChunkRequestBody
|
|
168
168
|
> = z.object({
|
|
169
169
|
text: z.string(),
|
|
170
170
|
embedding: z.array(z.number()).optional(),
|
|
@@ -175,26 +175,30 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
175
175
|
* @internal
|
|
176
176
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
177
|
*/
|
|
178
|
-
export namespace
|
|
179
|
-
/** @deprecated use `
|
|
180
|
-
export const inboundSchema =
|
|
181
|
-
/** @deprecated use `
|
|
182
|
-
export const outboundSchema =
|
|
183
|
-
/** @deprecated use `
|
|
184
|
-
export type Outbound =
|
|
178
|
+
export namespace CreateChunkRequestBody$ {
|
|
179
|
+
/** @deprecated use `CreateChunkRequestBody$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = CreateChunkRequestBody$inboundSchema;
|
|
181
|
+
/** @deprecated use `CreateChunkRequestBody$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = CreateChunkRequestBody$outboundSchema;
|
|
183
|
+
/** @deprecated use `CreateChunkRequestBody$Outbound` instead. */
|
|
184
|
+
export type Outbound = CreateChunkRequestBody$Outbound;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export function
|
|
188
|
-
|
|
187
|
+
export function createChunkRequestBodyToJSON(
|
|
188
|
+
createChunkRequestBody: CreateChunkRequestBody,
|
|
189
|
+
): string {
|
|
190
|
+
return JSON.stringify(
|
|
191
|
+
CreateChunkRequestBody$outboundSchema.parse(createChunkRequestBody),
|
|
192
|
+
);
|
|
189
193
|
}
|
|
190
194
|
|
|
191
|
-
export function
|
|
195
|
+
export function createChunkRequestBodyFromJSON(
|
|
192
196
|
jsonString: string,
|
|
193
|
-
): SafeParseResult<
|
|
197
|
+
): SafeParseResult<CreateChunkRequestBody, SDKValidationError> {
|
|
194
198
|
return safeParse(
|
|
195
199
|
jsonString,
|
|
196
|
-
(x) =>
|
|
197
|
-
`Failed to parse '
|
|
200
|
+
(x) => CreateChunkRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
201
|
+
`Failed to parse 'CreateChunkRequestBody' from JSON`,
|
|
198
202
|
);
|
|
199
203
|
}
|
|
200
204
|
|
|
@@ -206,7 +210,8 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
|
|
|
206
210
|
> = z.object({
|
|
207
211
|
knowledge_id: z.string(),
|
|
208
212
|
datasource_id: z.string(),
|
|
209
|
-
RequestBody: z.array(z.lazy(() =>
|
|
213
|
+
RequestBody: z.array(z.lazy(() => CreateChunkRequestBody$inboundSchema))
|
|
214
|
+
.optional(),
|
|
210
215
|
}).transform((v) => {
|
|
211
216
|
return remap$(v, {
|
|
212
217
|
"knowledge_id": "knowledgeId",
|
|
@@ -219,7 +224,7 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
|
|
|
219
224
|
export type CreateChunkRequest$Outbound = {
|
|
220
225
|
knowledge_id: string;
|
|
221
226
|
datasource_id: string;
|
|
222
|
-
RequestBody?: Array<
|
|
227
|
+
RequestBody?: Array<CreateChunkRequestBody$Outbound> | undefined;
|
|
223
228
|
};
|
|
224
229
|
|
|
225
230
|
/** @internal */
|
|
@@ -230,7 +235,8 @@ export const CreateChunkRequest$outboundSchema: z.ZodType<
|
|
|
230
235
|
> = z.object({
|
|
231
236
|
knowledgeId: z.string(),
|
|
232
237
|
datasourceId: z.string(),
|
|
233
|
-
requestBody: z.array(z.lazy(() =>
|
|
238
|
+
requestBody: z.array(z.lazy(() => CreateChunkRequestBody$outboundSchema))
|
|
239
|
+
.optional(),
|
|
234
240
|
}).transform((v) => {
|
|
235
241
|
return remap$(v, {
|
|
236
242
|
knowledgeId: "knowledge_id",
|
|
@@ -342,8 +348,8 @@ export namespace CreateChunkStatus$ {
|
|
|
342
348
|
}
|
|
343
349
|
|
|
344
350
|
/** @internal */
|
|
345
|
-
export const
|
|
346
|
-
|
|
351
|
+
export const CreateChunkResponseBody$inboundSchema: z.ZodType<
|
|
352
|
+
CreateChunkResponseBody,
|
|
347
353
|
z.ZodTypeDef,
|
|
348
354
|
unknown
|
|
349
355
|
> = z.object({
|
|
@@ -365,7 +371,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
365
371
|
});
|
|
366
372
|
|
|
367
373
|
/** @internal */
|
|
368
|
-
export type
|
|
374
|
+
export type CreateChunkResponseBody$Outbound = {
|
|
369
375
|
_id: string;
|
|
370
376
|
text: string;
|
|
371
377
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
@@ -378,10 +384,10 @@ export type ResponseBody$Outbound = {
|
|
|
378
384
|
};
|
|
379
385
|
|
|
380
386
|
/** @internal */
|
|
381
|
-
export const
|
|
382
|
-
|
|
387
|
+
export const CreateChunkResponseBody$outboundSchema: z.ZodType<
|
|
388
|
+
CreateChunkResponseBody$Outbound,
|
|
383
389
|
z.ZodTypeDef,
|
|
384
|
-
|
|
390
|
+
CreateChunkResponseBody
|
|
385
391
|
> = z.object({
|
|
386
392
|
id: z.string(),
|
|
387
393
|
text: z.string(),
|
|
@@ -404,25 +410,29 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
404
410
|
* @internal
|
|
405
411
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
406
412
|
*/
|
|
407
|
-
export namespace
|
|
408
|
-
/** @deprecated use `
|
|
409
|
-
export const inboundSchema =
|
|
410
|
-
/** @deprecated use `
|
|
411
|
-
export const outboundSchema =
|
|
412
|
-
/** @deprecated use `
|
|
413
|
-
export type Outbound =
|
|
413
|
+
export namespace CreateChunkResponseBody$ {
|
|
414
|
+
/** @deprecated use `CreateChunkResponseBody$inboundSchema` instead. */
|
|
415
|
+
export const inboundSchema = CreateChunkResponseBody$inboundSchema;
|
|
416
|
+
/** @deprecated use `CreateChunkResponseBody$outboundSchema` instead. */
|
|
417
|
+
export const outboundSchema = CreateChunkResponseBody$outboundSchema;
|
|
418
|
+
/** @deprecated use `CreateChunkResponseBody$Outbound` instead. */
|
|
419
|
+
export type Outbound = CreateChunkResponseBody$Outbound;
|
|
414
420
|
}
|
|
415
421
|
|
|
416
|
-
export function
|
|
417
|
-
|
|
422
|
+
export function createChunkResponseBodyToJSON(
|
|
423
|
+
createChunkResponseBody: CreateChunkResponseBody,
|
|
424
|
+
): string {
|
|
425
|
+
return JSON.stringify(
|
|
426
|
+
CreateChunkResponseBody$outboundSchema.parse(createChunkResponseBody),
|
|
427
|
+
);
|
|
418
428
|
}
|
|
419
429
|
|
|
420
|
-
export function
|
|
430
|
+
export function createChunkResponseBodyFromJSON(
|
|
421
431
|
jsonString: string,
|
|
422
|
-
): SafeParseResult<
|
|
432
|
+
): SafeParseResult<CreateChunkResponseBody, SDKValidationError> {
|
|
423
433
|
return safeParse(
|
|
424
434
|
jsonString,
|
|
425
|
-
(x) =>
|
|
426
|
-
`Failed to parse '
|
|
435
|
+
(x) => CreateChunkResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
436
|
+
`Failed to parse 'CreateChunkResponseBody' from JSON`,
|
|
427
437
|
);
|
|
428
438
|
}
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-08-
|
|
185
|
+
"2025-08-12T08:36:02.813Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-08-12T08:36:02.813Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
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-08-
|
|
214
|
+
"2025-08-12T08:36:02.813Z",
|
|
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-08-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-08-12T08:36:02.813Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -438,7 +438,7 @@ export type CreateDatasetItemMessages =
|
|
|
438
438
|
| CreateDatasetItemMessagesUserMessage
|
|
439
439
|
| CreateDatasetItemMessagesAssistantMessage;
|
|
440
440
|
|
|
441
|
-
export type
|
|
441
|
+
export type RequestBody = {
|
|
442
442
|
/**
|
|
443
443
|
* The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
|
|
444
444
|
*/
|
|
@@ -460,7 +460,7 @@ export type CreateDatasetItemRequestBody = {
|
|
|
460
460
|
|
|
461
461
|
export type CreateDatasetItemRequest = {
|
|
462
462
|
datasetId: string;
|
|
463
|
-
requestBody?:
|
|
463
|
+
requestBody?: Array<RequestBody> | undefined;
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
/**
|
|
@@ -914,10 +914,7 @@ export type CreateDatasetItemDatasetsMessages =
|
|
|
914
914
|
| CreateDatasetItemMessagesDatasetsUserMessage
|
|
915
915
|
| CreateDatasetItemMessagesDatasetsAssistantMessage;
|
|
916
916
|
|
|
917
|
-
|
|
918
|
-
* Datapoint created successfully. Returns the newly created datapoint object.
|
|
919
|
-
*/
|
|
920
|
-
export type CreateDatasetItemResponseBody = {
|
|
917
|
+
export type ResponseBody = {
|
|
921
918
|
/**
|
|
922
919
|
* The unique identifier of the dataset item
|
|
923
920
|
*/
|
|
@@ -2849,8 +2846,8 @@ export function createDatasetItemMessagesFromJSON(
|
|
|
2849
2846
|
}
|
|
2850
2847
|
|
|
2851
2848
|
/** @internal */
|
|
2852
|
-
export const
|
|
2853
|
-
|
|
2849
|
+
export const RequestBody$inboundSchema: z.ZodType<
|
|
2850
|
+
RequestBody,
|
|
2854
2851
|
z.ZodTypeDef,
|
|
2855
2852
|
unknown
|
|
2856
2853
|
> = z.object({
|
|
@@ -2872,7 +2869,7 @@ export const CreateDatasetItemRequestBody$inboundSchema: z.ZodType<
|
|
|
2872
2869
|
});
|
|
2873
2870
|
|
|
2874
2871
|
/** @internal */
|
|
2875
|
-
export type
|
|
2872
|
+
export type RequestBody$Outbound = {
|
|
2876
2873
|
inputs?: { [k: string]: any } | undefined;
|
|
2877
2874
|
messages?:
|
|
2878
2875
|
| Array<
|
|
@@ -2887,10 +2884,10 @@ export type CreateDatasetItemRequestBody$Outbound = {
|
|
|
2887
2884
|
};
|
|
2888
2885
|
|
|
2889
2886
|
/** @internal */
|
|
2890
|
-
export const
|
|
2891
|
-
|
|
2887
|
+
export const RequestBody$outboundSchema: z.ZodType<
|
|
2888
|
+
RequestBody$Outbound,
|
|
2892
2889
|
z.ZodTypeDef,
|
|
2893
|
-
|
|
2890
|
+
RequestBody
|
|
2894
2891
|
> = z.object({
|
|
2895
2892
|
inputs: z.record(z.any()).optional(),
|
|
2896
2893
|
messages: z.array(
|
|
@@ -2913,32 +2910,26 @@ export const CreateDatasetItemRequestBody$outboundSchema: z.ZodType<
|
|
|
2913
2910
|
* @internal
|
|
2914
2911
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2915
2912
|
*/
|
|
2916
|
-
export namespace
|
|
2917
|
-
/** @deprecated use `
|
|
2918
|
-
export const inboundSchema =
|
|
2919
|
-
/** @deprecated use `
|
|
2920
|
-
export const outboundSchema =
|
|
2921
|
-
/** @deprecated use `
|
|
2922
|
-
export type Outbound =
|
|
2913
|
+
export namespace RequestBody$ {
|
|
2914
|
+
/** @deprecated use `RequestBody$inboundSchema` instead. */
|
|
2915
|
+
export const inboundSchema = RequestBody$inboundSchema;
|
|
2916
|
+
/** @deprecated use `RequestBody$outboundSchema` instead. */
|
|
2917
|
+
export const outboundSchema = RequestBody$outboundSchema;
|
|
2918
|
+
/** @deprecated use `RequestBody$Outbound` instead. */
|
|
2919
|
+
export type Outbound = RequestBody$Outbound;
|
|
2923
2920
|
}
|
|
2924
2921
|
|
|
2925
|
-
export function
|
|
2926
|
-
|
|
2927
|
-
): string {
|
|
2928
|
-
return JSON.stringify(
|
|
2929
|
-
CreateDatasetItemRequestBody$outboundSchema.parse(
|
|
2930
|
-
createDatasetItemRequestBody,
|
|
2931
|
-
),
|
|
2932
|
-
);
|
|
2922
|
+
export function requestBodyToJSON(requestBody: RequestBody): string {
|
|
2923
|
+
return JSON.stringify(RequestBody$outboundSchema.parse(requestBody));
|
|
2933
2924
|
}
|
|
2934
2925
|
|
|
2935
|
-
export function
|
|
2926
|
+
export function requestBodyFromJSON(
|
|
2936
2927
|
jsonString: string,
|
|
2937
|
-
): SafeParseResult<
|
|
2928
|
+
): SafeParseResult<RequestBody, SDKValidationError> {
|
|
2938
2929
|
return safeParse(
|
|
2939
2930
|
jsonString,
|
|
2940
|
-
(x) =>
|
|
2941
|
-
`Failed to parse '
|
|
2931
|
+
(x) => RequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2932
|
+
`Failed to parse 'RequestBody' from JSON`,
|
|
2942
2933
|
);
|
|
2943
2934
|
}
|
|
2944
2935
|
|
|
@@ -2949,8 +2940,7 @@ export const CreateDatasetItemRequest$inboundSchema: z.ZodType<
|
|
|
2949
2940
|
unknown
|
|
2950
2941
|
> = z.object({
|
|
2951
2942
|
dataset_id: z.string(),
|
|
2952
|
-
RequestBody: z.lazy(() =>
|
|
2953
|
-
.optional(),
|
|
2943
|
+
RequestBody: z.array(z.lazy(() => RequestBody$inboundSchema)).optional(),
|
|
2954
2944
|
}).transform((v) => {
|
|
2955
2945
|
return remap$(v, {
|
|
2956
2946
|
"dataset_id": "datasetId",
|
|
@@ -2961,7 +2951,7 @@ export const CreateDatasetItemRequest$inboundSchema: z.ZodType<
|
|
|
2961
2951
|
/** @internal */
|
|
2962
2952
|
export type CreateDatasetItemRequest$Outbound = {
|
|
2963
2953
|
dataset_id: string;
|
|
2964
|
-
RequestBody?:
|
|
2954
|
+
RequestBody?: Array<RequestBody$Outbound> | undefined;
|
|
2965
2955
|
};
|
|
2966
2956
|
|
|
2967
2957
|
/** @internal */
|
|
@@ -2971,8 +2961,7 @@ export const CreateDatasetItemRequest$outboundSchema: z.ZodType<
|
|
|
2971
2961
|
CreateDatasetItemRequest
|
|
2972
2962
|
> = z.object({
|
|
2973
2963
|
datasetId: z.string(),
|
|
2974
|
-
requestBody: z.lazy(() =>
|
|
2975
|
-
.optional(),
|
|
2964
|
+
requestBody: z.array(z.lazy(() => RequestBody$outboundSchema)).optional(),
|
|
2976
2965
|
}).transform((v) => {
|
|
2977
2966
|
return remap$(v, {
|
|
2978
2967
|
datasetId: "dataset_id",
|
|
@@ -5081,8 +5070,8 @@ export function createDatasetItemDatasetsMessagesFromJSON(
|
|
|
5081
5070
|
}
|
|
5082
5071
|
|
|
5083
5072
|
/** @internal */
|
|
5084
|
-
export const
|
|
5085
|
-
|
|
5073
|
+
export const ResponseBody$inboundSchema: z.ZodType<
|
|
5074
|
+
ResponseBody,
|
|
5086
5075
|
z.ZodTypeDef,
|
|
5087
5076
|
unknown
|
|
5088
5077
|
> = z.object({
|
|
@@ -5111,7 +5100,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5111
5100
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5112
5101
|
.optional(),
|
|
5113
5102
|
updated: z.string().datetime({ offset: true }).default(
|
|
5114
|
-
"2025-08-
|
|
5103
|
+
"2025-08-12T08:36:02.813Z",
|
|
5115
5104
|
).transform(v => new Date(v)),
|
|
5116
5105
|
}).transform((v) => {
|
|
5117
5106
|
return remap$(v, {
|
|
@@ -5125,7 +5114,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5125
5114
|
});
|
|
5126
5115
|
|
|
5127
5116
|
/** @internal */
|
|
5128
|
-
export type
|
|
5117
|
+
export type ResponseBody$Outbound = {
|
|
5129
5118
|
_id: string;
|
|
5130
5119
|
workspace_id: string;
|
|
5131
5120
|
inputs?: { [k: string]: any } | undefined;
|
|
@@ -5147,10 +5136,10 @@ export type CreateDatasetItemResponseBody$Outbound = {
|
|
|
5147
5136
|
};
|
|
5148
5137
|
|
|
5149
5138
|
/** @internal */
|
|
5150
|
-
export const
|
|
5151
|
-
|
|
5139
|
+
export const ResponseBody$outboundSchema: z.ZodType<
|
|
5140
|
+
ResponseBody$Outbound,
|
|
5152
5141
|
z.ZodTypeDef,
|
|
5153
|
-
|
|
5142
|
+
ResponseBody
|
|
5154
5143
|
> = z.object({
|
|
5155
5144
|
id: z.string(),
|
|
5156
5145
|
workspaceId: z.string(),
|
|
@@ -5175,7 +5164,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5175
5164
|
createdById: z.string().optional(),
|
|
5176
5165
|
updatedById: z.string().optional(),
|
|
5177
5166
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5178
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
5167
|
+
updated: z.date().default(() => new Date("2025-08-12T08:36:02.813Z"))
|
|
5179
5168
|
.transform(v => v.toISOString()),
|
|
5180
5169
|
}).transform((v) => {
|
|
5181
5170
|
return remap$(v, {
|
|
@@ -5192,31 +5181,25 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5192
5181
|
* @internal
|
|
5193
5182
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5194
5183
|
*/
|
|
5195
|
-
export namespace
|
|
5196
|
-
/** @deprecated use `
|
|
5197
|
-
export const inboundSchema =
|
|
5198
|
-
/** @deprecated use `
|
|
5199
|
-
export const outboundSchema =
|
|
5200
|
-
/** @deprecated use `
|
|
5201
|
-
export type Outbound =
|
|
5184
|
+
export namespace ResponseBody$ {
|
|
5185
|
+
/** @deprecated use `ResponseBody$inboundSchema` instead. */
|
|
5186
|
+
export const inboundSchema = ResponseBody$inboundSchema;
|
|
5187
|
+
/** @deprecated use `ResponseBody$outboundSchema` instead. */
|
|
5188
|
+
export const outboundSchema = ResponseBody$outboundSchema;
|
|
5189
|
+
/** @deprecated use `ResponseBody$Outbound` instead. */
|
|
5190
|
+
export type Outbound = ResponseBody$Outbound;
|
|
5202
5191
|
}
|
|
5203
5192
|
|
|
5204
|
-
export function
|
|
5205
|
-
|
|
5206
|
-
): string {
|
|
5207
|
-
return JSON.stringify(
|
|
5208
|
-
CreateDatasetItemResponseBody$outboundSchema.parse(
|
|
5209
|
-
createDatasetItemResponseBody,
|
|
5210
|
-
),
|
|
5211
|
-
);
|
|
5193
|
+
export function responseBodyToJSON(responseBody: ResponseBody): string {
|
|
5194
|
+
return JSON.stringify(ResponseBody$outboundSchema.parse(responseBody));
|
|
5212
5195
|
}
|
|
5213
5196
|
|
|
5214
|
-
export function
|
|
5197
|
+
export function responseBodyFromJSON(
|
|
5215
5198
|
jsonString: string,
|
|
5216
|
-
): SafeParseResult<
|
|
5199
|
+
): SafeParseResult<ResponseBody, SDKValidationError> {
|
|
5217
5200
|
return safeParse(
|
|
5218
5201
|
jsonString,
|
|
5219
|
-
(x) =>
|
|
5220
|
-
`Failed to parse '
|
|
5202
|
+
(x) => ResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
5203
|
+
`Failed to parse 'ResponseBody' from JSON`,
|
|
5221
5204
|
);
|
|
5222
5205
|
}
|
|
@@ -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("01K2EPRDBCD8GQGF7B88FPB0GS"),
|
|
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("01K2EPRDBCD8GQGF7B88FPB0GS"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2399
2399
|
> = z.object({
|
|
2400
2400
|
_id: z.string(),
|
|
2401
2401
|
description: z.string(),
|
|
2402
|
-
created: z.string().default("2025-08-
|
|
2403
|
-
updated: z.string().default("2025-08-
|
|
2402
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2403
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2404
2404
|
guardrail_config: z.union([
|
|
2405
2405
|
z.lazy(() =>
|
|
2406
2406
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2442
2442
|
> = z.object({
|
|
2443
2443
|
id: z.string(),
|
|
2444
2444
|
description: z.string(),
|
|
2445
|
-
created: z.string().default("2025-08-
|
|
2446
|
-
updated: z.string().default("2025-08-
|
|
2445
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2446
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2447
2447
|
guardrailConfig: z.union([
|
|
2448
2448
|
z.lazy(() =>
|
|
2449
2449
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2856
2856
|
> = z.object({
|
|
2857
2857
|
_id: z.string(),
|
|
2858
2858
|
description: z.string(),
|
|
2859
|
-
created: z.string().default("2025-08-
|
|
2860
|
-
updated: z.string().default("2025-08-
|
|
2859
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2860
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2861
2861
|
guardrail_config: z.union([
|
|
2862
2862
|
z.lazy(() =>
|
|
2863
2863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2905
2905
|
> = z.object({
|
|
2906
2906
|
id: z.string(),
|
|
2907
2907
|
description: z.string(),
|
|
2908
|
-
created: z.string().default("2025-08-
|
|
2909
|
-
updated: z.string().default("2025-08-
|
|
2908
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2909
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
2910
2910
|
guardrailConfig: z.union([
|
|
2911
2911
|
z.lazy(() =>
|
|
2912
2912
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3283
3283
|
> = z.object({
|
|
3284
3284
|
_id: z.string(),
|
|
3285
3285
|
description: z.string(),
|
|
3286
|
-
created: z.string().default("2025-08-
|
|
3287
|
-
updated: z.string().default("2025-08-
|
|
3286
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3287
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3288
3288
|
guardrail_config: z.union([
|
|
3289
3289
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3290
3290
|
z.lazy(() =>
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-08-
|
|
3328
|
-
updated: z.string().default("2025-08-
|
|
3327
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3328
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3329
3329
|
guardrailConfig: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3680
3680
|
> = z.object({
|
|
3681
3681
|
_id: z.string(),
|
|
3682
3682
|
description: z.string(),
|
|
3683
|
-
created: z.string().default("2025-08-
|
|
3684
|
-
updated: z.string().default("2025-08-
|
|
3683
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3684
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3685
3685
|
guardrail_config: z.union([
|
|
3686
3686
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3687
3687
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
3721
3721
|
> = z.object({
|
|
3722
3722
|
id: z.string(),
|
|
3723
3723
|
description: z.string(),
|
|
3724
|
-
created: z.string().default("2025-08-
|
|
3725
|
-
updated: z.string().default("2025-08-
|
|
3724
|
+
created: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3725
|
+
updated: z.string().default("2025-08-12T08:36:05.078Z"),
|
|
3726
3726
|
guardrailConfig: z.union([
|
|
3727
3727
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
3728
3728
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -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-08-
|
|
149
|
+
"2025-08-12T08:36:05.902Z",
|
|
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-08-
|
|
183
|
+
created: z.date().default(() => new Date("2025-08-12T08:36:05.902Z"))
|
|
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-08-
|
|
199
|
+
"2025-08-12T08:36:05.902Z",
|
|
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-08-
|
|
233
|
+
created: z.date().default(() => new Date("2025-08-12T08:36:05.902Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-08-
|
|
253
|
+
"2025-08-12T08:36:05.902Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-08-
|
|
287
|
+
created: z.date().default(() => new Date("2025-08-12T08:36:05.902Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|