@orq-ai/node 4.9.0-rc.21 → 4.9.0-rc.24
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 +55 -42
- package/funcs/projectsCreate.d.ts +17 -0
- package/funcs/projectsCreate.d.ts.map +1 -0
- package/funcs/projectsCreate.js +115 -0
- package/funcs/projectsCreate.js.map +1 -0
- package/funcs/projectsDelete.d.ts +15 -0
- package/funcs/projectsDelete.d.ts.map +1 -0
- package/funcs/projectsDelete.js +118 -0
- package/funcs/projectsDelete.js.map +1 -0
- package/funcs/projectsGet.d.ts +18 -0
- package/funcs/projectsGet.d.ts.map +1 -0
- package/funcs/projectsGet.js +121 -0
- package/funcs/projectsGet.js.map +1 -0
- package/funcs/projectsList.d.ts +18 -0
- package/funcs/projectsList.d.ts.map +1 -0
- package/funcs/projectsList.js +121 -0
- package/funcs/projectsList.js.map +1 -0
- package/funcs/projectsUpdate.d.ts +18 -0
- package/funcs/projectsUpdate.d.ts.map +1 -0
- package/funcs/projectsUpdate.js +124 -0
- package/funcs/projectsUpdate.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/createprojectrequest.d.ts +14 -0
- package/models/components/createprojectrequest.d.ts.map +1 -0
- package/models/components/createprojectrequest.js +50 -0
- package/models/components/createprojectrequest.js.map +1 -0
- package/models/components/createprojectresponse.d.ts +11 -0
- package/models/components/createprojectresponse.d.ts.map +1 -0
- package/models/components/createprojectresponse.js +51 -0
- package/models/components/createprojectresponse.js.map +1 -0
- package/models/components/deleteprojectresponse.d.ts +8 -0
- package/models/components/deleteprojectresponse.d.ts.map +1 -0
- package/models/components/deleteprojectresponse.js +48 -0
- package/models/components/deleteprojectresponse.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +11 -0
- package/models/components/getprojectresponse.d.ts.map +1 -0
- package/models/components/getprojectresponse.js +51 -0
- package/models/components/getprojectresponse.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listprojectsresponse.d.ts +13 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -0
- package/models/components/listprojectsresponse.js +58 -0
- package/models/components/listprojectsresponse.js.map +1 -0
- package/models/components/project.d.ts +20 -0
- package/models/components/project.d.ts.map +1 -0
- package/models/components/project.js +72 -0
- package/models/components/project.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/updateprojectrequest.d.ts +16 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -0
- package/models/components/updateprojectrequest.js +56 -0
- package/models/components/updateprojectrequest.js.map +1 -0
- package/models/components/updateprojectresponse.d.ts +11 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -0
- package/models/components/updateprojectresponse.js +51 -0
- package/models/components/updateprojectresponse.js.map +1 -0
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +12 -0
- package/models/operations/projectdelete.d.ts.map +1 -0
- package/models/operations/projectdelete.js +54 -0
- package/models/operations/projectdelete.js.map +1 -0
- package/models/operations/projectget.d.ts +12 -0
- package/models/operations/projectget.d.ts.map +1 -0
- package/models/operations/projectget.js +54 -0
- package/models/operations/projectget.js.map +1 -0
- package/models/operations/projectlist.d.ts +16 -0
- package/models/operations/projectlist.d.ts.map +1 -0
- package/models/operations/projectlist.js +57 -0
- package/models/operations/projectlist.js.map +1 -0
- package/models/operations/projectupdate.d.ts +15 -0
- package/models/operations/projectupdate.d.ts.map +1 -0
- package/models/operations/projectupdate.js +57 -0
- package/models/operations/projectupdate.js.map +1 -0
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/projects.d.ts +38 -0
- package/sdk/projects.d.ts.map +1 -0
- package/sdk/projects.js +59 -0
- package/sdk/projects.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/projectsCreate.ts +162 -0
- package/src/funcs/projectsDelete.ts +165 -0
- package/src/funcs/projectsGet.ts +168 -0
- package/src/funcs/projectsList.ts +170 -0
- package/src/funcs/projectsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createprojectrequest.ts +34 -0
- package/src/models/components/createprojectresponse.ts +32 -0
- package/src/models/components/deleteprojectresponse.ts +27 -0
- package/src/models/components/getprojectresponse.ts +32 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/listprojectsresponse.ts +41 -0
- package/src/models/components/project.ts +64 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/updateprojectrequest.ts +42 -0
- package/src/models/components/updateprojectresponse.ts +32 -0
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +36 -0
- package/src/models/operations/projectget.ts +36 -0
- package/src/models/operations/projectlist.ts +43 -0
- package/src/models/operations/projectupdate.ts +41 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/projects.ts +97 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -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 ProjectListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ProjectListRequest$Outbound = {
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
starting_after?: string | undefined;
|
|
18
|
+
ending_before?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ProjectListRequest$outboundSchema: z.ZodType<
|
|
23
|
+
ProjectListRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
ProjectListRequest
|
|
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 projectListRequestToJSON(
|
|
38
|
+
projectListRequest: ProjectListRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
ProjectListRequest$outboundSchema.parse(projectListRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ProjectUpdateRequest = {
|
|
10
|
+
projectId: string;
|
|
11
|
+
updateProjectRequest: components.UpdateProjectRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ProjectUpdateRequest$Outbound = {
|
|
16
|
+
project_id: string;
|
|
17
|
+
UpdateProjectRequest: components.UpdateProjectRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ProjectUpdateRequest$outboundSchema: z.ZodType<
|
|
22
|
+
ProjectUpdateRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
ProjectUpdateRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
projectId: z.string(),
|
|
27
|
+
updateProjectRequest: components.UpdateProjectRequest$outboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
projectId: "project_id",
|
|
31
|
+
updateProjectRequest: "UpdateProjectRequest",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function projectUpdateRequestToJSON(
|
|
36
|
+
projectUpdateRequest: ProjectUpdateRequest,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
ProjectUpdateRequest$outboundSchema.parse(projectUpdateRequest),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-05-
|
|
1210
|
+
"2026-05-05T08:17:30.494Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-05-
|
|
1258
|
+
"2026-05-05T08:17:30.493Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-05-
|
|
1303
|
+
"2026-05-05T08:17:30.493Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-05-
|
|
1380
|
+
"2026-05-05T08:17:15.795Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
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-05-
|
|
129
|
+
"2026-05-05T08:17:15.795Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KQVKDCKSKTVB45F5VE2CYJW3"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -151,7 +151,7 @@ export const RetrieveIdentityResponseBody$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-05-
|
|
154
|
+
"2026-05-05T08:17:15.795Z",
|
|
155
155
|
).transform(v => new Date(v)),
|
|
156
156
|
metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
|
|
157
157
|
}).transform((v) => {
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KQVKDCAFTBDGFA26FF3NKEQC"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KQVKDCAE1YKHGSHAE6YZ8SCF"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KQVKDCADBNHBA5WCRSR4DQ31"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KQVKDCABZBF413EDKTKKKQWF"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KQVKDCAAY3WJ21FJVAZS2K73"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KQVKDCA316FDJ8CZV6K4GWY5"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -3628,7 +3628,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3628
3628
|
z.ZodTypeDef,
|
|
3629
3629
|
Tools
|
|
3630
3630
|
> = z.object({
|
|
3631
|
-
id: z.string().default("
|
|
3631
|
+
id: z.string().default("01KQVKDBY5K1SXXX1D4GFBKZK7"),
|
|
3632
3632
|
name: z.string(),
|
|
3633
3633
|
description: z.string().optional(),
|
|
3634
3634
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3675
3675
|
z.ZodTypeDef,
|
|
3676
3676
|
AgentToolInputRunTools
|
|
3677
3677
|
> = z.object({
|
|
3678
|
-
id: z.string().default("
|
|
3678
|
+
id: z.string().default("01KQVKDBZWSK7EGPQP78V75TB4"),
|
|
3679
3679
|
name: z.string(),
|
|
3680
3680
|
description: z.string().optional(),
|
|
3681
3681
|
schema: z.lazy(() =>
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-05-
|
|
2361
|
+
"2026-05-05T08:17:30.528Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-05-
|
|
2407
|
+
"2026-05-05T08:17:30.527Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-05-
|
|
2452
|
+
"2026-05-05T08:17:30.526Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-05-
|
|
2533
|
+
"2026-05-05T08:17:15.795Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
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-05-
|
|
185
|
+
"2026-05-05T08:17:15.795Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KQVKDCMGA3TE6MA46HBTPE76"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -1541,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1541
1541
|
> = z.object({
|
|
1542
1542
|
_id: z.string(),
|
|
1543
1543
|
description: z.string(),
|
|
1544
|
-
created: z.string().default("2026-05-
|
|
1545
|
-
updated: z.string().default("2026-05-
|
|
1544
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
1545
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
1546
1546
|
guardrail_config: z.nullable(
|
|
1547
1547
|
z.union([
|
|
1548
1548
|
z.lazy(() =>
|
|
@@ -1735,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1735
1735
|
> = z.object({
|
|
1736
1736
|
_id: z.string(),
|
|
1737
1737
|
description: z.string(),
|
|
1738
|
-
created: z.string().default("2026-05-
|
|
1739
|
-
updated: z.string().default("2026-05-
|
|
1738
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
1739
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
1740
1740
|
guardrail_config: z.nullable(
|
|
1741
1741
|
z.union([
|
|
1742
1742
|
z.lazy(() =>
|
|
@@ -2592,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2592
2592
|
> = z.object({
|
|
2593
2593
|
_id: z.string(),
|
|
2594
2594
|
description: z.string(),
|
|
2595
|
-
created: z.string().default("2026-05-
|
|
2596
|
-
updated: z.string().default("2026-05-
|
|
2595
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2596
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2597
2597
|
guardrail_config: z.nullable(
|
|
2598
2598
|
z.union([
|
|
2599
2599
|
z.lazy(() =>
|
|
@@ -2809,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2809
2809
|
> = z.object({
|
|
2810
2810
|
_id: z.string(),
|
|
2811
2811
|
description: z.string(),
|
|
2812
|
-
created: z.string().default("2026-05-
|
|
2813
|
-
updated: z.string().default("2026-05-
|
|
2812
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2813
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2814
2814
|
guardrail_config: z.nullable(
|
|
2815
2815
|
z.union([
|
|
2816
2816
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2976,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2976
2976
|
> = z.object({
|
|
2977
2977
|
_id: z.string(),
|
|
2978
2978
|
description: z.string(),
|
|
2979
|
-
created: z.string().default("2026-05-
|
|
2980
|
-
updated: z.string().default("2026-05-
|
|
2979
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2980
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
2981
2981
|
guardrail_config: z.nullable(
|
|
2982
2982
|
z.union([
|
|
2983
2983
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -3128,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3128
3128
|
> = z.object({
|
|
3129
3129
|
_id: z.string(),
|
|
3130
3130
|
description: z.string(),
|
|
3131
|
-
created: z.string().default("2026-05-
|
|
3132
|
-
updated: z.string().default("2026-05-
|
|
3131
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3132
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3133
3133
|
guardrail_config: z.nullable(
|
|
3134
3134
|
z.union([
|
|
3135
3135
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -3489,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3489
3489
|
> = z.object({
|
|
3490
3490
|
_id: z.string(),
|
|
3491
3491
|
description: z.string(),
|
|
3492
|
-
created: z.string().default("2026-05-
|
|
3493
|
-
updated: z.string().default("2026-05-
|
|
3492
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3493
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3494
3494
|
guardrail_config: z.nullable(
|
|
3495
3495
|
z.union([
|
|
3496
3496
|
z.lazy(() =>
|
|
@@ -3698,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3698
3698
|
> = z.object({
|
|
3699
3699
|
_id: z.string(),
|
|
3700
3700
|
description: z.string(),
|
|
3701
|
-
created: z.string().default("2026-05-
|
|
3702
|
-
updated: z.string().default("2026-05-
|
|
3701
|
+
created: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3702
|
+
updated: z.string().default("2026-05-05T08:17:17.883Z"),
|
|
3703
3703
|
guardrail_config: z.nullable(
|
|
3704
3704
|
z.union([
|
|
3705
3705
|
z.lazy(() =>
|
|
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-05-
|
|
170
|
+
"2026-05-05T08:17:15.795Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KQVKDC9RWGHVF6X7P80SM1T5"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KQVKDC9J1Z37DC1Z9T4ZDKDB"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KQVKDC9JPPE27R0ZCC47JD2F"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KQVKDC9GMNC68JJY8KXTFP3Q"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KQVKDC9F1Q9P6J19FC4FN544"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KQVKDC9DVQBAGNZ27VE47HEG"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KQVKDC9C4BB1YC0VJBGRWA78"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { projectsCreate } from "../funcs/projectsCreate.js";
|
|
6
|
+
import { projectsDelete } from "../funcs/projectsDelete.js";
|
|
7
|
+
import { projectsGet } from "../funcs/projectsGet.js";
|
|
8
|
+
import { projectsList } from "../funcs/projectsList.js";
|
|
9
|
+
import { projectsUpdate } from "../funcs/projectsUpdate.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class Projects extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List all projects
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Returns a list of projects. Projects are sorted by creation date, with the most recently created projects appearing first.
|
|
21
|
+
*/
|
|
22
|
+
async list(
|
|
23
|
+
request?: operations.ProjectListRequest | undefined,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<components.ListProjectsResponse> {
|
|
26
|
+
return unwrapAsync(projectsList(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a new project
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
|
|
38
|
+
*/
|
|
39
|
+
async create(
|
|
40
|
+
request: components.CreateProjectRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<components.CreateProjectResponse> {
|
|
43
|
+
return unwrapAsync(projectsCreate(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve a project
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retrieves the details of an existing project by its unique project ID.
|
|
55
|
+
*/
|
|
56
|
+
async get(
|
|
57
|
+
request: operations.ProjectGetRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<components.GetProjectResponse> {
|
|
60
|
+
return unwrapAsync(projectsGet(
|
|
61
|
+
this,
|
|
62
|
+
request,
|
|
63
|
+
options,
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Delete a project
|
|
69
|
+
*/
|
|
70
|
+
async delete(
|
|
71
|
+
request: operations.ProjectDeleteRequest,
|
|
72
|
+
options?: RequestOptions,
|
|
73
|
+
): Promise<components.DeleteProjectResponse> {
|
|
74
|
+
return unwrapAsync(projectsDelete(
|
|
75
|
+
this,
|
|
76
|
+
request,
|
|
77
|
+
options,
|
|
78
|
+
));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Update a project
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* Updates the specified project by setting the values of the parameters passed.
|
|
86
|
+
*/
|
|
87
|
+
async update(
|
|
88
|
+
request: operations.ProjectUpdateRequest,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<components.UpdateProjectResponse> {
|
|
91
|
+
return unwrapAsync(projectsUpdate(
|
|
92
|
+
this,
|
|
93
|
+
request,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { Identities } from "./identities.js";
|
|
|
22
22
|
import { Knowledge } from "./knowledge.js";
|
|
23
23
|
import { MemoryStores } from "./memorystores.js";
|
|
24
24
|
import { Policies } from "./policies.js";
|
|
25
|
+
import { Projects } from "./projects.js";
|
|
25
26
|
import { Prompts } from "./prompts.js";
|
|
26
27
|
import { Remoteconfigs } from "./remoteconfigs.js";
|
|
27
28
|
import { Responses } from "./responses.js";
|
|
@@ -132,6 +133,11 @@ export class Orq extends ClientSDK {
|
|
|
132
133
|
return (this._files ??= new Files(this._options));
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
private _projects?: Projects;
|
|
137
|
+
get projects(): Projects {
|
|
138
|
+
return (this._projects ??= new Projects(this._options));
|
|
139
|
+
}
|
|
140
|
+
|
|
135
141
|
private _skills?: Skills;
|
|
136
142
|
get skills(): Skills {
|
|
137
143
|
return (this._skills ??= new Skills(this._options));
|