@orq-ai/node 4.14.4 → 4.14.7
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +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/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +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/retrieveannotationqueue.js +1 -1
- 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/updateannotationqueue.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 +6 -6
- package/packages/orq-rc/src/funcs/auditLogsQuery.ts +162 -0
- package/packages/orq-rc/src/funcs/knowledgePreviewChunks.ts +179 -0
- package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
- package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
- package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
- package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
- package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -7
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -21
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +0 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -17
- package/packages/orq-rc/src/models/components/chunkingconfiguration.ts +432 -4
- package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
- package/packages/orq-rc/src/models/components/getuploadfileurlresponse.ts +5 -0
- package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +20 -3
- package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/piiredactionconfig.ts +7 -9
- package/packages/orq-rc/src/models/components/previewchunk.ts +38 -0
- package/packages/orq-rc/src/models/components/previewchunksmetadata.ts +51 -0
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +81 -0
- package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +0 -9
- package/packages/orq-rc/src/models/components/upsertchunk.ts +11 -0
- package/packages/orq-rc/src/models/components/value.ts +24 -0
- package/packages/orq-rc/src/models/components/workspace.ts +116 -0
- package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
- package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
- package/packages/orq-rc/src/models/components/workspacesettings.ts +0 -3
- package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +4 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/previewdatasourcechunks.ts +47 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
- package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
- package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
- package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +18 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- 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/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- 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/retrieveannotationqueue.ts +1 -1
- 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/updateannotationqueue.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/packages/orq-rc/src/models/components/factorybudgetscope.ts +0 -66
- package/packages/orq-rc/src/models/components/factorybudgetscoperestresponse.ts +0 -37
- package/packages/orq-rc/src/models/components/policyprofileidlist.ts +0 -31
|
@@ -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, {
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M1DS3XQ0Z98D7KDKME4KKSM6"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M1DS3XPZYXNYYMPFY5VE5F7J"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M1DS3XPYS70B7VA7WPWAB5SG"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M1DS3XPX72M8B9TMB82T2XSJ"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type WorkspaceGetRequest = {
|
|
8
|
+
key: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type WorkspaceGetRequest$Outbound = {
|
|
13
|
+
key: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WorkspaceGetRequest$outboundSchema: z.ZodType<
|
|
18
|
+
WorkspaceGetRequest$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
WorkspaceGetRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
key: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function workspaceGetRequestToJSON(
|
|
26
|
+
workspaceGetRequest: WorkspaceGetRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
WorkspaceGetRequest$outboundSchema.parse(workspaceGetRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
|
|
8
|
+
export type WorkspaceListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type WorkspaceListRequest$Outbound = {
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
starting_after?: string | undefined;
|
|
18
|
+
ending_before?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WorkspaceListRequest$outboundSchema: z.ZodType<
|
|
23
|
+
WorkspaceListRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
WorkspaceListRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
limit: z.number().int().optional(),
|
|
28
|
+
startingAfter: z.string().optional(),
|
|
29
|
+
endingBefore: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
startingAfter: "starting_after",
|
|
33
|
+
endingBefore: "ending_before",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function workspaceListRequestToJSON(
|
|
38
|
+
workspaceListRequest: WorkspaceListRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
WorkspaceListRequest$outboundSchema.parse(workspaceListRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 WorkspaceUpdateRequest = {
|
|
10
|
+
key: string;
|
|
11
|
+
updateWorkspaceRequest: components.UpdateWorkspaceRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type WorkspaceUpdateRequest$Outbound = {
|
|
16
|
+
key: string;
|
|
17
|
+
UpdateWorkspaceRequest: components.UpdateWorkspaceRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const WorkspaceUpdateRequest$outboundSchema: z.ZodType<
|
|
22
|
+
WorkspaceUpdateRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
WorkspaceUpdateRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
key: z.string(),
|
|
27
|
+
updateWorkspaceRequest: components.UpdateWorkspaceRequest$outboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
updateWorkspaceRequest: "UpdateWorkspaceRequest",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function workspaceUpdateRequestToJSON(
|
|
35
|
+
workspaceUpdateRequest: WorkspaceUpdateRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
WorkspaceUpdateRequest$outboundSchema.parse(workspaceUpdateRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { auditLogsQuery } from "../funcs/auditLogsQuery.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as components from "../models/components/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class AuditLogs extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Query audit logs
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Queries audit logs from your workspace with filters, sorting, and cursor pagination.
|
|
16
|
+
*/
|
|
17
|
+
async query(
|
|
18
|
+
request: components.QueryAuditLogsRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<components.QueryAuditLogsResponse> {
|
|
21
|
+
return unwrapAsync(auditLogsQuery(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -14,6 +14,7 @@ import { knowledgeList } from "../funcs/knowledgeList.js";
|
|
|
14
14
|
import { knowledgeListChunks } from "../funcs/knowledgeListChunks.js";
|
|
15
15
|
import { knowledgeListChunksPaginated } from "../funcs/knowledgeListChunksPaginated.js";
|
|
16
16
|
import { knowledgeListDatasources } from "../funcs/knowledgeListDatasources.js";
|
|
17
|
+
import { knowledgePreviewChunks } from "../funcs/knowledgePreviewChunks.js";
|
|
17
18
|
import { knowledgeRetrieve } from "../funcs/knowledgeRetrieve.js";
|
|
18
19
|
import { knowledgeRetrieveChunk } from "../funcs/knowledgeRetrieveChunk.js";
|
|
19
20
|
import { knowledgeRetrieveDatasource } from "../funcs/knowledgeRetrieveDatasource.js";
|
|
@@ -149,6 +150,23 @@ export class Knowledge extends ClientSDK {
|
|
|
149
150
|
));
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Preview datasource chunks
|
|
155
|
+
*
|
|
156
|
+
* @remarks
|
|
157
|
+
* Parses an uploaded file and returns the chunks it would produce for the given chunking options without creating a datasource.
|
|
158
|
+
*/
|
|
159
|
+
async previewChunks(
|
|
160
|
+
request: operations.PreviewDatasourceChunksRequest,
|
|
161
|
+
options?: RequestOptions,
|
|
162
|
+
): Promise<components.DatasourcesServicePreviewChunksResponse> {
|
|
163
|
+
return unwrapAsync(knowledgePreviewChunks(
|
|
164
|
+
this,
|
|
165
|
+
request,
|
|
166
|
+
options,
|
|
167
|
+
));
|
|
168
|
+
}
|
|
169
|
+
|
|
152
170
|
/**
|
|
153
171
|
* Retrieve a datasource
|
|
154
172
|
*
|
|
@@ -8,6 +8,7 @@ import { Alerts } from "./alerts.js";
|
|
|
8
8
|
import { AnnotationQueues } from "./annotationqueues.js";
|
|
9
9
|
import { Annotations } from "./annotations.js";
|
|
10
10
|
import { ApiKeys } from "./apikeys.js";
|
|
11
|
+
import { AuditLogs } from "./auditlogs.js";
|
|
11
12
|
import { Budgets } from "./budgets.js";
|
|
12
13
|
import { Chunking } from "./chunking.js";
|
|
13
14
|
import { Datasets } from "./datasets.js";
|
|
@@ -42,6 +43,7 @@ import { SmartRouters } from "./smartrouters.js";
|
|
|
42
43
|
import { Tools } from "./tools.js";
|
|
43
44
|
import { Traces } from "./traces.js";
|
|
44
45
|
import { Webhooks } from "./webhooks.js";
|
|
46
|
+
import { Workspaces } from "./workspaces.js";
|
|
45
47
|
import { WorkspaceSecurity } from "./workspacesecurity.js";
|
|
46
48
|
import { WorkspaceSettings } from "./workspacesettings.js";
|
|
47
49
|
|
|
@@ -146,6 +148,11 @@ export class Orq extends ClientSDK {
|
|
|
146
148
|
return (this._apiKeys ??= new ApiKeys(this._options));
|
|
147
149
|
}
|
|
148
150
|
|
|
151
|
+
private _auditLogs?: AuditLogs;
|
|
152
|
+
get auditLogs(): AuditLogs {
|
|
153
|
+
return (this._auditLogs ??= new AuditLogs(this._options));
|
|
154
|
+
}
|
|
155
|
+
|
|
149
156
|
private _budgets?: Budgets;
|
|
150
157
|
get budgets(): Budgets {
|
|
151
158
|
return (this._budgets ??= new Budgets(this._options));
|
|
@@ -216,6 +223,11 @@ export class Orq extends ClientSDK {
|
|
|
216
223
|
return (this._webhooks ??= new Webhooks(this._options));
|
|
217
224
|
}
|
|
218
225
|
|
|
226
|
+
private _workspaces?: Workspaces;
|
|
227
|
+
get workspaces(): Workspaces {
|
|
228
|
+
return (this._workspaces ??= new Workspaces(this._options));
|
|
229
|
+
}
|
|
230
|
+
|
|
219
231
|
private _workspaceSecurity?: WorkspaceSecurity;
|
|
220
232
|
get workspaceSecurity(): WorkspaceSecurity {
|
|
221
233
|
return (this._workspaceSecurity ??= new WorkspaceSecurity(this._options));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { workspacesGet } from "../funcs/workspacesGet.js";
|
|
6
|
+
import { workspacesList } from "../funcs/workspacesList.js";
|
|
7
|
+
import { workspacesUpdate } from "../funcs/workspacesUpdate.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as components from "../models/components/index.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Workspaces extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List workspaces
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Returns workspaces the caller can access. A user session lists every membership. A management key lists only the workspace bound to the key. Project keys are rejected.
|
|
19
|
+
*/
|
|
20
|
+
async list(
|
|
21
|
+
request?: operations.WorkspaceListRequest | undefined,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<components.ListWorkspacesResponse> {
|
|
24
|
+
return unwrapAsync(workspacesList(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve a workspace
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Retrieves a workspace by its key. A user session must be a member and does not need a workspace-scoped token. A management key may only retrieve the workspace bound to the key.
|
|
36
|
+
*/
|
|
37
|
+
async get(
|
|
38
|
+
request: operations.WorkspaceGetRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<components.GetWorkspaceResponse> {
|
|
41
|
+
return unwrapAsync(workspacesGet(
|
|
42
|
+
this,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Update a workspace
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Partially updates a workspace. Omit a field to leave it unchanged. Set `archived` to true to archive, false to restore. The workspace key cannot be changed.
|
|
53
|
+
*/
|
|
54
|
+
async update(
|
|
55
|
+
request: operations.WorkspaceUpdateRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<components.UpdateWorkspaceResponse> {
|
|
58
|
+
return unwrapAsync(workspacesUpdate(
|
|
59
|
+
this,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.14.
|
|
61
|
+
sdkVersion: "4.14.7",
|
|
62
62
|
genVersion: "2.933.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.14.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.14.7 2.933.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -860,8 +860,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
860
860
|
> = z.object({
|
|
861
861
|
_id: z.string(),
|
|
862
862
|
description: z.string(),
|
|
863
|
-
created: z.string().default("2026-
|
|
864
|
-
updated: z.string().default("2026-
|
|
863
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
864
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
865
865
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
866
866
|
project_id: z.string().optional(),
|
|
867
867
|
guardrail_config: z.any().optional(),
|
|
@@ -46,8 +46,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
46
46
|
> = z.object({
|
|
47
47
|
_id: z.string(),
|
|
48
48
|
description: z.string(),
|
|
49
|
-
created: z.string().default("2026-
|
|
50
|
-
updated: z.string().default("2026-
|
|
49
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
50
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
51
51
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
52
52
|
project_id: z.string().optional(),
|
|
53
53
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-
|
|
36
|
-
updated: z.string().default("2026-
|
|
35
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
36
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -271,8 +271,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
271
271
|
> = z.object({
|
|
272
272
|
_id: z.string(),
|
|
273
273
|
description: z.string(),
|
|
274
|
-
created: z.string().default("2026-
|
|
275
|
-
updated: z.string().default("2026-
|
|
274
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
275
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
276
276
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
277
277
|
project_id: z.string().optional(),
|
|
278
278
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-
|
|
36
|
-
updated: z.string().default("2026-
|
|
35
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
36
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -54,8 +54,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
54
54
|
> = z.object({
|
|
55
55
|
_id: z.string(),
|
|
56
56
|
description: z.string(),
|
|
57
|
-
created: z.string().default("2026-
|
|
58
|
-
updated: z.string().default("2026-
|
|
57
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
58
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
59
59
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
60
60
|
project_id: z.string().optional(),
|
|
61
61
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-
|
|
36
|
-
updated: z.string().default("2026-
|
|
35
|
+
created: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
36
|
+
updated: z.string().default("2026-09-01T07:51:07.405Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -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_01m1dz6w2gvmhnjwj13v3scyz4"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -151,7 +151,7 @@ export const CreateAnnotationQueueResponseBody$inboundSchema: z.ZodType<
|
|
|
151
151
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
152
|
.optional(),
|
|
153
153
|
updated: z.string().datetime({ offset: true }).default(
|
|
154
|
-
"2026-
|
|
154
|
+
"2026-09-01T07:51:05.805Z",
|
|
155
155
|
).transform(v => new Date(v)),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return remap$(v, {
|
|
@@ -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-01T07:51:05.805Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|