@orq-ai/node 4.15.0-rc.7 → 4.15.0-rc.9
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/README.md +30 -28
- package/funcs/knowledgePreviewChunks.d.ts +18 -0
- package/funcs/knowledgePreviewChunks.d.ts.map +1 -0
- package/funcs/knowledgePreviewChunks.js +122 -0
- package/funcs/knowledgePreviewChunks.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/chunkingconfiguration.d.ts +263 -4
- package/models/components/chunkingconfiguration.d.ts.map +1 -1
- package/models/components/chunkingconfiguration.js +144 -1
- package/models/components/chunkingconfiguration.js.map +1 -1
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts +15 -0
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts.map +1 -0
- package/models/components/datasourcesservicepreviewchunksrequest.js +57 -0
- package/models/components/datasourcesservicepreviewchunksrequest.js.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts +13 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js +53 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js.map +1 -0
- package/models/components/getuploadfileurlresponse.d.ts +4 -0
- package/models/components/getuploadfileurlresponse.d.ts.map +1 -1
- package/models/components/getuploadfileurlresponse.js +1 -0
- package/models/components/getuploadfileurlresponse.js.map +1 -1
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionconfig.d.ts +7 -9
- package/models/components/piiredactionconfig.d.ts.map +1 -1
- package/models/components/piiredactionconfig.js.map +1 -1
- package/models/components/previewchunk.d.ts +11 -0
- package/models/components/previewchunk.d.ts.map +1 -0
- package/models/components/previewchunk.js +56 -0
- package/models/components/previewchunk.js.map +1 -0
- package/models/components/previewchunksmetadata.d.ts +15 -0
- package/models/components/previewchunksmetadata.d.ts.map +1 -0
- package/models/components/previewchunksmetadata.js +65 -0
- package/models/components/previewchunksmetadata.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/upsertchunk.d.ts +5 -0
- package/models/components/upsertchunk.d.ts.map +1 -1
- package/models/components/upsertchunk.js +6 -0
- package/models/components/upsertchunk.js.map +1 -1
- package/models/components/value.d.ts +4 -0
- package/models/components/value.d.ts.map +1 -1
- package/models/components/value.js +4 -0
- package/models/components/value.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/previewdatasourcechunks.d.ts +15 -0
- package/models/operations/previewdatasourcechunks.d.ts.map +1 -0
- package/models/operations/previewdatasourcechunks.js +57 -0
- package/models/operations/previewdatasourcechunks.js.map +1 -0
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/sdk/knowledge.d.ts +7 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +10 -0
- package/sdk/knowledge.js.map +1 -1
- package/src/funcs/knowledgePreviewChunks.ts +179 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/chunkingconfiguration.ts +432 -4
- package/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
- package/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
- package/src/models/components/getuploadfileurlresponse.ts +5 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/piiredactionconfig.ts +7 -9
- package/src/models/components/previewchunk.ts +38 -0
- package/src/models/components/previewchunksmetadata.ts +51 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/upsertchunk.ts +11 -0
- package/src/models/components/value.ts +4 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/previewdatasourcechunks.ts +47 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/knowledge.ts +18 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PreviewChunksMetadata = {
|
|
12
|
+
wordsCount: number;
|
|
13
|
+
sentencesCount: number;
|
|
14
|
+
paragraphsCount: number;
|
|
15
|
+
tokensCount: number;
|
|
16
|
+
charactersCount: number;
|
|
17
|
+
chunksCount: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PreviewChunksMetadata$inboundSchema: z.ZodType<
|
|
22
|
+
PreviewChunksMetadata,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
words_count: z.number().int(),
|
|
27
|
+
sentences_count: z.number().int(),
|
|
28
|
+
paragraphs_count: z.number().int(),
|
|
29
|
+
tokens_count: z.number().int(),
|
|
30
|
+
characters_count: z.number().int(),
|
|
31
|
+
chunks_count: z.number().int(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"words_count": "wordsCount",
|
|
35
|
+
"sentences_count": "sentencesCount",
|
|
36
|
+
"paragraphs_count": "paragraphsCount",
|
|
37
|
+
"tokens_count": "tokensCount",
|
|
38
|
+
"characters_count": "charactersCount",
|
|
39
|
+
"chunks_count": "chunksCount",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function previewChunksMetadataFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<PreviewChunksMetadata, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => PreviewChunksMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'PreviewChunksMetadata' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m1ds3xj0xdcax8xkkg8wpsdp"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
|
|
7
8
|
export type UpsertChunkMetadata = string | number | boolean;
|
|
8
9
|
|
|
@@ -16,6 +17,10 @@ export type UpsertChunk = {
|
|
|
16
17
|
* Metadata of the chunk
|
|
17
18
|
*/
|
|
18
19
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Optional client-supplied chunk id. Reusing the same _id makes creation idempotent: an existing chunk with that _id in this datasource is replaced instead of duplicated.
|
|
22
|
+
*/
|
|
23
|
+
id?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
/** @internal */
|
|
@@ -41,6 +46,7 @@ export type UpsertChunk$Outbound = {
|
|
|
41
46
|
text: string;
|
|
42
47
|
embedding?: Array<number> | undefined;
|
|
43
48
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
49
|
+
_id?: string | undefined;
|
|
44
50
|
};
|
|
45
51
|
|
|
46
52
|
/** @internal */
|
|
@@ -52,6 +58,11 @@ export const UpsertChunk$outboundSchema: z.ZodType<
|
|
|
52
58
|
text: z.string(),
|
|
53
59
|
embedding: z.array(z.number()).optional(),
|
|
54
60
|
metadata: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
61
|
+
id: z.string().optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
id: "_id",
|
|
65
|
+
});
|
|
55
66
|
});
|
|
56
67
|
|
|
57
68
|
export function upsertChunkToJSON(upsertChunk: UpsertChunk): string {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-
|
|
141
|
+
"2026-09-01T06:04:38.639Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2739
|
explanation: z.string().optional(),
|
|
2740
2740
|
reviewed_by_id: z.string(),
|
|
2741
2741
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-
|
|
2742
|
+
"2026-09-01T06:04:47.744Z",
|
|
2743
2743
|
).transform(v => new Date(v)),
|
|
2744
2744
|
type: z.literal("string_array"),
|
|
2745
2745
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2829
|
explanation: z.string().optional(),
|
|
2830
2830
|
reviewed_by_id: z.string(),
|
|
2831
2831
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-
|
|
2832
|
+
"2026-09-01T06:04:47.743Z",
|
|
2833
2833
|
).transform(v => new Date(v)),
|
|
2834
2834
|
type: z.literal("boolean"),
|
|
2835
2835
|
value: z.boolean(),
|
|
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
2914
|
explanation: z.string().optional(),
|
|
2915
2915
|
reviewed_by_id: z.string(),
|
|
2916
2916
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-
|
|
2917
|
+
"2026-09-01T06:04:47.743Z",
|
|
2918
2918
|
).transform(v => new Date(v)),
|
|
2919
2919
|
type: z.literal("number"),
|
|
2920
2920
|
value: z.number(),
|
|
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3000
|
explanation: z.string().optional(),
|
|
3001
3001
|
reviewed_by_id: z.string(),
|
|
3002
3002
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-
|
|
3003
|
+
"2026-09-01T06:04:47.743Z",
|
|
3004
3004
|
).transform(v => new Date(v)),
|
|
3005
3005
|
type: z.literal("string"),
|
|
3006
3006
|
value: z.string(),
|
|
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
3089
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-
|
|
3090
|
+
"2026-09-01T06:04:38.639Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|
|
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1573
1573
|
z.ZodTypeDef,
|
|
1574
1574
|
unknown
|
|
1575
1575
|
> = z.object({
|
|
1576
|
-
_id: z.string().default("
|
|
1576
|
+
_id: z.string().default("tool_01M1DS3XPTDD4VF3GC3TPE1AW3"),
|
|
1577
1577
|
path: z.string(),
|
|
1578
1578
|
key: z.string(),
|
|
1579
1579
|
display_name: z.string().optional(),
|
|
@@ -1759,7 +1759,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1759
1759
|
z.ZodTypeDef,
|
|
1760
1760
|
unknown
|
|
1761
1761
|
> = z.object({
|
|
1762
|
-
_id: z.string().default("
|
|
1762
|
+
_id: z.string().default("tool_01M1DS3XPQRQDYR06KEGCNE20Z"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
display_name: z.string().optional(),
|
|
@@ -1852,7 +1852,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1852
1852
|
z.ZodTypeDef,
|
|
1853
1853
|
unknown
|
|
1854
1854
|
> = z.object({
|
|
1855
|
-
_id: z.string().default("
|
|
1855
|
+
_id: z.string().default("tool_01M1DS3XPPFJ7K52J7ERM1DEF2"),
|
|
1856
1856
|
path: z.string(),
|
|
1857
1857
|
key: z.string(),
|
|
1858
1858
|
display_name: z.string().optional(),
|
|
@@ -1953,7 +1953,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1953
1953
|
z.ZodTypeDef,
|
|
1954
1954
|
unknown
|
|
1955
1955
|
> = z.object({
|
|
1956
|
-
_id: z.string().default("
|
|
1956
|
+
_id: z.string().default("tool_01M1DS3XPP7N9NXE1H64012M2Z"),
|
|
1957
1957
|
path: z.string(),
|
|
1958
1958
|
key: z.string(),
|
|
1959
1959
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M1DS3XPHP5WJKYRWNS6W6D95"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M1DS3XPGHHVA70NKK1PNM0V9"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M1DS3XPFGRTK6N74KSC5R25B"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M1DS3XPF29CM7RFNW494D8CD"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-
|
|
143
|
+
"2026-09-01T06:04:38.639Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-
|
|
188
|
+
"2026-09-01T06:04:38.639Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-
|
|
144
|
+
"2026-09-01T06:04:38.639Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-
|
|
189
|
+
"2026-09-01T06:04:38.639Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -171,6 +171,7 @@ export * from "./postv2feedbackevaluationremove.js";
|
|
|
171
171
|
export * from "./postv2feedbackremove.js";
|
|
172
172
|
export * from "./postv2humanevalsets.js";
|
|
173
173
|
export * from "./postv2routerocr.js";
|
|
174
|
+
export * from "./previewdatasourcechunks.js";
|
|
174
175
|
export * from "./projectdelete.js";
|
|
175
176
|
export * from "./projectget.js";
|
|
176
177
|
export * from "./projectlist.js";
|
|
@@ -1653,7 +1653,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
|
|
|
1653
1653
|
explanation: z.string().optional(),
|
|
1654
1654
|
reviewed_by_id: z.string(),
|
|
1655
1655
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1656
|
-
"2026-
|
|
1656
|
+
"2026-09-01T06:04:47.734Z",
|
|
1657
1657
|
).transform(v => new Date(v)),
|
|
1658
1658
|
type: z.literal("string_array"),
|
|
1659
1659
|
values: z.array(z.string()),
|
|
@@ -1749,7 +1749,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
explanation: z.string().optional(),
|
|
1750
1750
|
reviewed_by_id: z.string(),
|
|
1751
1751
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1752
|
-
"2026-
|
|
1752
|
+
"2026-09-01T06:04:47.734Z",
|
|
1753
1753
|
).transform(v => new Date(v)),
|
|
1754
1754
|
type: z.literal("boolean"),
|
|
1755
1755
|
value: z.boolean(),
|
|
@@ -1853,7 +1853,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1853
1853
|
explanation: z.string().optional(),
|
|
1854
1854
|
reviewed_by_id: z.string(),
|
|
1855
1855
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1856
|
-
"2026-
|
|
1856
|
+
"2026-09-01T06:04:47.734Z",
|
|
1857
1857
|
).transform(v => new Date(v)),
|
|
1858
1858
|
type: z.literal("number"),
|
|
1859
1859
|
value: z.number(),
|
|
@@ -1959,7 +1959,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
explanation: z.string().optional(),
|
|
1960
1960
|
reviewed_by_id: z.string(),
|
|
1961
1961
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1962
|
-
"2026-
|
|
1962
|
+
"2026-09-01T06:04:47.733Z",
|
|
1963
1963
|
).transform(v => new Date(v)),
|
|
1964
1964
|
type: z.literal("string"),
|
|
1965
1965
|
value: z.string(),
|
|
@@ -2042,7 +2042,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2042
2042
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2043
2043
|
.optional(),
|
|
2044
2044
|
updated: z.string().datetime({ offset: true }).default(
|
|
2045
|
-
"2026-
|
|
2045
|
+
"2026-09-01T06:04:38.639Z",
|
|
2046
2046
|
).transform(v => new Date(v)),
|
|
2047
2047
|
}).transform((v) => {
|
|
2048
2048
|
return remap$(v, {
|
|
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
169
169
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
170
|
.optional(),
|
|
171
171
|
updated: z.string().datetime({ offset: true }).default(
|
|
172
|
-
"2026-
|
|
172
|
+
"2026-09-01T06:04:38.639Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-
|
|
321
|
+
"2026-09-01T06:04:38.639Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-
|
|
367
|
+
"2026-09-01T06:04:38.639Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-01T06:04:47.806Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-01T06:04:47.806Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-01T06:04:47.806Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-01T06:04:47.806Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-
|
|
274
|
+
"2026-09-01T06:04:38.639Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-
|
|
319
|
+
"2026-09-01T06:04:38.639Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type PreviewDatasourceChunksRequest = {
|
|
10
|
+
knowledgeId: string;
|
|
11
|
+
datasourcesServicePreviewChunksRequest:
|
|
12
|
+
components.DatasourcesServicePreviewChunksRequest;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type PreviewDatasourceChunksRequest$Outbound = {
|
|
17
|
+
knowledge_id: string;
|
|
18
|
+
DatasourcesServicePreviewChunksRequest:
|
|
19
|
+
components.DatasourcesServicePreviewChunksRequest$Outbound;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const PreviewDatasourceChunksRequest$outboundSchema: z.ZodType<
|
|
24
|
+
PreviewDatasourceChunksRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
PreviewDatasourceChunksRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
knowledgeId: z.string(),
|
|
29
|
+
datasourcesServicePreviewChunksRequest:
|
|
30
|
+
components.DatasourcesServicePreviewChunksRequest$outboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
knowledgeId: "knowledge_id",
|
|
34
|
+
datasourcesServicePreviewChunksRequest:
|
|
35
|
+
"DatasourcesServicePreviewChunksRequest",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function previewDatasourceChunksRequestToJSON(
|
|
40
|
+
previewDatasourceChunksRequest: PreviewDatasourceChunksRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
PreviewDatasourceChunksRequest$outboundSchema.parse(
|
|
44
|
+
previewDatasourceChunksRequest,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -1585,7 +1585,7 @@ export const RetrieveDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
1585
1585
|
explanation: z.string().optional(),
|
|
1586
1586
|
reviewed_by_id: z.string(),
|
|
1587
1587
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1588
|
-
"2026-
|
|
1588
|
+
"2026-09-01T06:04:47.740Z",
|
|
1589
1589
|
).transform(v => new Date(v)),
|
|
1590
1590
|
type: z.literal("string_array"),
|
|
1591
1591
|
values: z.array(z.string()),
|
|
@@ -1685,7 +1685,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
1685
1685
|
explanation: z.string().optional(),
|
|
1686
1686
|
reviewed_by_id: z.string(),
|
|
1687
1687
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1688
|
-
"2026-
|
|
1688
|
+
"2026-09-01T06:04:47.740Z",
|
|
1689
1689
|
).transform(v => new Date(v)),
|
|
1690
1690
|
type: z.literal("boolean"),
|
|
1691
1691
|
value: z.boolean(),
|
|
@@ -1783,7 +1783,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1783
1783
|
explanation: z.string().optional(),
|
|
1784
1784
|
reviewed_by_id: z.string(),
|
|
1785
1785
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1786
|
-
"2026-
|
|
1786
|
+
"2026-09-01T06:04:47.739Z",
|
|
1787
1787
|
).transform(v => new Date(v)),
|
|
1788
1788
|
type: z.literal("number"),
|
|
1789
1789
|
value: z.number(),
|
|
@@ -1871,7 +1871,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1871
1871
|
explanation: z.string().optional(),
|
|
1872
1872
|
reviewed_by_id: z.string(),
|
|
1873
1873
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1874
|
-
"2026-
|
|
1874
|
+
"2026-09-01T06:04:47.739Z",
|
|
1875
1875
|
).transform(v => new Date(v)),
|
|
1876
1876
|
type: z.literal("string"),
|
|
1877
1877
|
value: z.string(),
|
|
@@ -1952,7 +1952,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1952
1952
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1953
1953
|
.optional(),
|
|
1954
1954
|
updated: z.string().datetime({ offset: true }).default(
|
|
1955
|
-
"2026-
|
|
1955
|
+
"2026-09-01T06:04:38.639Z",
|
|
1956
1956
|
).transform(v => new Date(v)),
|
|
1957
1957
|
}).transform((v) => {
|
|
1958
1958
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-
|
|
129
|
+
"2026-09-01T06:04:38.639Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M1DS3XQ9HDRWX33ECCR51GYA"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M1DS3XQ8SBJ671XFJDREKWVF"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M1DS3XQ7Y2Q5PMNBEW186TYP"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M1DS3XQ7E0N1BQPKX3MXJN14"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3898,7 +3898,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3898
3898
|
z.ZodTypeDef,
|
|
3899
3899
|
Tools
|
|
3900
3900
|
> = z.object({
|
|
3901
|
-
id: z.string().default("
|
|
3901
|
+
id: z.string().default("01M1DS3XKZ334F6K69Q18F7MBR"),
|
|
3902
3902
|
name: z.string(),
|
|
3903
3903
|
description: z.string().optional(),
|
|
3904
3904
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3957,7 +3957,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3957
3957
|
z.ZodTypeDef,
|
|
3958
3958
|
AgentToolInputRunTools
|
|
3959
3959
|
> = z.object({
|
|
3960
|
-
id: z.string().default("
|
|
3960
|
+
id: z.string().default("01M1DS3XMQY7CRW47TCJ7F45DC"),
|
|
3961
3961
|
name: z.string(),
|
|
3962
3962
|
description: z.string().optional(),
|
|
3963
3963
|
schema: z.lazy(() =>
|
|
@@ -2760,7 +2760,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2760
2760
|
explanation: z.string().optional(),
|
|
2761
2761
|
reviewed_by_id: z.string(),
|
|
2762
2762
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2763
|
-
"2026-
|
|
2763
|
+
"2026-09-01T06:04:47.756Z",
|
|
2764
2764
|
).transform(v => new Date(v)),
|
|
2765
2765
|
type: z.literal("string_array"),
|
|
2766
2766
|
values: z.array(z.string()),
|
|
@@ -2860,7 +2860,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2860
2860
|
explanation: z.string().optional(),
|
|
2861
2861
|
reviewed_by_id: z.string(),
|
|
2862
2862
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2863
|
-
"2026-
|
|
2863
|
+
"2026-09-01T06:04:47.756Z",
|
|
2864
2864
|
).transform(v => new Date(v)),
|
|
2865
2865
|
type: z.literal("boolean"),
|
|
2866
2866
|
value: z.boolean(),
|
|
@@ -2957,7 +2957,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2957
2957
|
explanation: z.string().optional(),
|
|
2958
2958
|
reviewed_by_id: z.string(),
|
|
2959
2959
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2026-
|
|
2960
|
+
"2026-09-01T06:04:47.755Z",
|
|
2961
2961
|
).transform(v => new Date(v)),
|
|
2962
2962
|
type: z.literal("number"),
|
|
2963
2963
|
value: z.number(),
|
|
@@ -3046,7 +3046,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3046
3046
|
explanation: z.string().optional(),
|
|
3047
3047
|
reviewed_by_id: z.string(),
|
|
3048
3048
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3049
|
-
"2026-
|
|
3049
|
+
"2026-09-01T06:04:47.755Z",
|
|
3050
3050
|
).transform(v => new Date(v)),
|
|
3051
3051
|
type: z.literal("string"),
|
|
3052
3052
|
value: z.string(),
|
|
@@ -3131,7 +3131,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3131
3131
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3132
3132
|
.optional(),
|
|
3133
3133
|
updated: z.string().datetime({ offset: true }).default(
|
|
3134
|
-
"2026-
|
|
3134
|
+
"2026-09-01T06:04:38.639Z",
|
|
3135
3135
|
).transform(v => new Date(v)),
|
|
3136
3136
|
}).transform((v) => {
|
|
3137
3137
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$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
|
-
"2026-
|
|
185
|
+
"2026-09-01T06:04:38.639Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|