@orq-ai/node 4.16.0-rc.19 → 4.16.0-rc.20
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 +53 -40
- package/funcs/environmentsCreate.d.ts +17 -0
- package/funcs/environmentsCreate.d.ts.map +1 -0
- package/funcs/environmentsCreate.js +115 -0
- package/funcs/environmentsCreate.js.map +1 -0
- package/funcs/environmentsDelete.d.ts +18 -0
- package/funcs/environmentsDelete.d.ts.map +1 -0
- package/funcs/environmentsDelete.js +121 -0
- package/funcs/environmentsDelete.js.map +1 -0
- package/funcs/environmentsGet.d.ts +18 -0
- package/funcs/environmentsGet.d.ts.map +1 -0
- package/funcs/environmentsGet.js +121 -0
- package/funcs/environmentsGet.js.map +1 -0
- package/funcs/environmentsList.d.ts +18 -0
- package/funcs/environmentsList.d.ts.map +1 -0
- package/funcs/environmentsList.js +123 -0
- package/funcs/environmentsList.js.map +1 -0
- package/funcs/environmentsUpdate.d.ts +18 -0
- package/funcs/environmentsUpdate.d.ts.map +1 -0
- package/funcs/environmentsUpdate.js +124 -0
- package/funcs/environmentsUpdate.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/createenvironmentrequest.d.ts +27 -0
- package/models/components/createenvironmentrequest.d.ts.map +1 -0
- package/models/components/createenvironmentrequest.js +60 -0
- package/models/components/createenvironmentrequest.js.map +1 -0
- package/models/components/createenvironmentresponse.d.ts +11 -0
- package/models/components/createenvironmentresponse.d.ts.map +1 -0
- package/models/components/createenvironmentresponse.js +51 -0
- package/models/components/createenvironmentresponse.js.map +1 -0
- package/models/components/deleteenvironmentresponse.d.ts +8 -0
- package/models/components/deleteenvironmentresponse.d.ts.map +1 -0
- package/models/components/deleteenvironmentresponse.js +48 -0
- package/models/components/deleteenvironmentresponse.js.map +1 -0
- package/models/components/environment.d.ts +38 -0
- package/models/components/environment.d.ts.map +1 -0
- package/models/components/environment.js +70 -0
- package/models/components/environment.js.map +1 -0
- package/models/components/getenvironmentresponse.d.ts +11 -0
- package/models/components/getenvironmentresponse.d.ts.map +1 -0
- package/models/components/getenvironmentresponse.js +51 -0
- package/models/components/getenvironmentresponse.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/listenvironmentsresponse.d.ts +13 -0
- package/models/components/listenvironmentsresponse.d.ts.map +1 -0
- package/models/components/listenvironmentsresponse.js +58 -0
- package/models/components/listenvironmentsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/updateenvironmentrequest.d.ts +23 -0
- package/models/components/updateenvironmentrequest.d.ts.map +1 -0
- package/models/components/updateenvironmentrequest.js +57 -0
- package/models/components/updateenvironmentrequest.js.map +1 -0
- package/models/components/updateenvironmentresponse.d.ts +11 -0
- package/models/components/updateenvironmentresponse.d.ts.map +1 -0
- package/models/components/updateenvironmentresponse.js +51 -0
- package/models/components/updateenvironmentresponse.js.map +1 -0
- package/models/operations/createtool.js +4 -4
- package/models/operations/environmentdelete.d.ts +12 -0
- package/models/operations/environmentdelete.d.ts.map +1 -0
- package/models/operations/environmentdelete.js +54 -0
- package/models/operations/environmentdelete.js.map +1 -0
- package/models/operations/environmentget.d.ts +12 -0
- package/models/operations/environmentget.d.ts.map +1 -0
- package/models/operations/environmentget.js +54 -0
- package/models/operations/environmentget.js.map +1 -0
- package/models/operations/environmentlist.d.ts +20 -0
- package/models/operations/environmentlist.d.ts.map +1 -0
- package/models/operations/environmentlist.js +60 -0
- package/models/operations/environmentlist.js.map +1 -0
- package/models/operations/environmentupdate.d.ts +15 -0
- package/models/operations/environmentupdate.d.ts.map +1 -0
- package/models/operations/environmentupdate.js +57 -0
- package/models/operations/environmentupdate.js.map +1 -0
- 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 +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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/sdk/environments.d.ts +41 -0
- package/sdk/environments.d.ts.map +1 -0
- package/sdk/environments.js +62 -0
- package/sdk/environments.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/environmentsCreate.ts +162 -0
- package/src/funcs/environmentsDelete.ts +168 -0
- package/src/funcs/environmentsGet.ts +168 -0
- package/src/funcs/environmentsList.ts +172 -0
- package/src/funcs/environmentsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createenvironmentrequest.ts +60 -0
- package/src/models/components/createenvironmentresponse.ts +32 -0
- package/src/models/components/deleteenvironmentresponse.ts +27 -0
- package/src/models/components/environment.ts +78 -0
- package/src/models/components/getenvironmentresponse.ts +32 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/listenvironmentsresponse.ts +41 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/updateenvironmentrequest.ts +53 -0
- package/src/models/components/updateenvironmentresponse.ts +32 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/environmentdelete.ts +36 -0
- package/src/models/operations/environmentget.ts +36 -0
- package/src/models/operations/environmentlist.ts +50 -0
- package/src/models/operations/environmentupdate.ts +41 -0
- 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 +4 -0
- 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/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/environments.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import { Sharing, Sharing$inboundSchema } from "./sharing.js";
|
|
11
|
+
|
|
12
|
+
export type Environment = {
|
|
13
|
+
/**
|
|
14
|
+
* Unique environment ID in env_<ulid> form.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Immutable workspace-unique environment slug.
|
|
19
|
+
*/
|
|
20
|
+
slug: string;
|
|
21
|
+
/**
|
|
22
|
+
* Workspace-unique display name.
|
|
23
|
+
*/
|
|
24
|
+
displayName: string;
|
|
25
|
+
description: string;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
createdById: string;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
updatedById: string;
|
|
30
|
+
/**
|
|
31
|
+
* Project that owns this environment.
|
|
32
|
+
*/
|
|
33
|
+
projectId?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Sharing controls which projects in the workspace may use this entity and
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* what they may do with it.
|
|
39
|
+
*/
|
|
40
|
+
sharing?: Sharing | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const Environment$inboundSchema: z.ZodType<
|
|
45
|
+
Environment,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
id: z.string(),
|
|
50
|
+
slug: z.string(),
|
|
51
|
+
display_name: z.string(),
|
|
52
|
+
description: z.string(),
|
|
53
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
54
|
+
created_by_id: z.string(),
|
|
55
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
56
|
+
updated_by_id: z.string(),
|
|
57
|
+
project_id: z.string().optional(),
|
|
58
|
+
sharing: Sharing$inboundSchema.optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"display_name": "displayName",
|
|
62
|
+
"created_at": "createdAt",
|
|
63
|
+
"created_by_id": "createdById",
|
|
64
|
+
"updated_at": "updatedAt",
|
|
65
|
+
"updated_by_id": "updatedById",
|
|
66
|
+
"project_id": "projectId",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function environmentFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<Environment, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => Environment$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'Environment' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Environment, Environment$inboundSchema } from "./environment.js";
|
|
10
|
+
|
|
11
|
+
export type GetEnvironmentResponse = {
|
|
12
|
+
environment: Environment;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GetEnvironmentResponse$inboundSchema: z.ZodType<
|
|
17
|
+
GetEnvironmentResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
environment: Environment$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function getEnvironmentResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<GetEnvironmentResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => GetEnvironmentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'GetEnvironmentResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -100,6 +100,8 @@ export * from "./createbudgetresponse.js";
|
|
|
100
100
|
export * from "./createdatasetrequest.js";
|
|
101
101
|
export * from "./createdomainrequest.js";
|
|
102
102
|
export * from "./createdomainresponse.js";
|
|
103
|
+
export * from "./createenvironmentrequest.js";
|
|
104
|
+
export * from "./createenvironmentresponse.js";
|
|
103
105
|
export * from "./createfilerequest.js";
|
|
104
106
|
export * from "./createfileresponse.js";
|
|
105
107
|
export * from "./createfilesystemfolderrequest.js";
|
|
@@ -151,6 +153,7 @@ export * from "./datasourcesserviceupdaterequest.js";
|
|
|
151
153
|
export * from "./deletealertresponse.js";
|
|
152
154
|
export * from "./deletebudgetresponse.js";
|
|
153
155
|
export * from "./deletedatapointsrequest.js";
|
|
156
|
+
export * from "./deleteenvironmentresponse.js";
|
|
154
157
|
export * from "./deletefileresponse.js";
|
|
155
158
|
export * from "./deletefilesystemfileresponse.js";
|
|
156
159
|
export * from "./deletefilesystemresponse.js";
|
|
@@ -182,6 +185,7 @@ export * from "./embeddingsconfig.js";
|
|
|
182
185
|
export * from "./embeddingsmodelparameters.js";
|
|
183
186
|
export * from "./embeddingtimeoutconfig.js";
|
|
184
187
|
export * from "./entitylist.js";
|
|
188
|
+
export * from "./environment.js";
|
|
185
189
|
export * from "./errorpart.js";
|
|
186
190
|
export * from "./errorstreamingevent.js";
|
|
187
191
|
export * from "./evaluationcontext.js";
|
|
@@ -220,6 +224,7 @@ export * from "./generatewebhooksecretresponse.js";
|
|
|
220
224
|
export * from "./getagentresponse.js";
|
|
221
225
|
export * from "./getalertresponse.js";
|
|
222
226
|
export * from "./getbudgetresponse.js";
|
|
227
|
+
export * from "./getenvironmentresponse.js";
|
|
223
228
|
export * from "./getfilecontentresponse.js";
|
|
224
229
|
export * from "./getfileresponse.js";
|
|
225
230
|
export * from "./getguardrailruleresponse.js";
|
|
@@ -289,6 +294,7 @@ export * from "./listbudgetsresponse.js";
|
|
|
289
294
|
export * from "./listdatapointsresponse.js";
|
|
290
295
|
export * from "./listdatasetsresponse.js";
|
|
291
296
|
export * from "./listdomainsresponse.js";
|
|
297
|
+
export * from "./listenvironmentsresponse.js";
|
|
292
298
|
export * from "./listevaluatorversionsresponse.js";
|
|
293
299
|
export * from "./listfilesresponse.js";
|
|
294
300
|
export * from "./listfilesystemfilesresponse.js";
|
|
@@ -629,6 +635,8 @@ export * from "./updatebudgetrequest.js";
|
|
|
629
635
|
export * from "./updatebudgetresponse.js";
|
|
630
636
|
export * from "./updatedatapointrequest.js";
|
|
631
637
|
export * from "./updatedatasetrequest.js";
|
|
638
|
+
export * from "./updateenvironmentrequest.js";
|
|
639
|
+
export * from "./updateenvironmentresponse.js";
|
|
632
640
|
export * from "./updatefilerequest.js";
|
|
633
641
|
export * from "./updatefileresponse.js";
|
|
634
642
|
export * from "./updatefilesystemrequest.js";
|
|
@@ -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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Environment, Environment$inboundSchema } from "./environment.js";
|
|
11
|
+
|
|
12
|
+
export type ListEnvironmentsResponse = {
|
|
13
|
+
object: string;
|
|
14
|
+
data: Array<Environment>;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListEnvironmentsResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListEnvironmentsResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string(),
|
|
25
|
+
data: z.array(Environment$inboundSchema),
|
|
26
|
+
has_more: z.boolean(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listEnvironmentsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListEnvironmentsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListEnvironmentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListEnvironmentsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -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_01m3cfsbrdsksyhachyty6tg9c"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,53 @@
|
|
|
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 {
|
|
8
|
+
Sharing,
|
|
9
|
+
Sharing$Outbound,
|
|
10
|
+
Sharing$outboundSchema,
|
|
11
|
+
} from "./sharing.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateEnvironmentRequest = {
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Sharing controls which projects in the workspace may use this entity and
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* what they may do with it.
|
|
21
|
+
*/
|
|
22
|
+
sharing?: Sharing | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type UpdateEnvironmentRequest$Outbound = {
|
|
27
|
+
display_name?: string | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
sharing?: Sharing$Outbound | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const UpdateEnvironmentRequest$outboundSchema: z.ZodType<
|
|
34
|
+
UpdateEnvironmentRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
UpdateEnvironmentRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
displayName: z.string().optional(),
|
|
39
|
+
description: z.string().optional(),
|
|
40
|
+
sharing: Sharing$outboundSchema.optional(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
displayName: "display_name",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function updateEnvironmentRequestToJSON(
|
|
48
|
+
updateEnvironmentRequest: UpdateEnvironmentRequest,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
UpdateEnvironmentRequest$outboundSchema.parse(updateEnvironmentRequest),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Environment, Environment$inboundSchema } from "./environment.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateEnvironmentResponse = {
|
|
12
|
+
environment: Environment;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateEnvironmentResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateEnvironmentResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
environment: Environment$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateEnvironmentResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateEnvironmentResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateEnvironmentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateEnvironmentResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M3CFSBXRW4RZVG6YMNTNFA66"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M3CFSBXQ2H8YEHKXXQQDVS3X"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M3CFSBXPG06H5933EH5C2E78"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M3CFSBXN70XAT8R9Z8YAGDX1"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,36 @@
|
|
|
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 EnvironmentDeleteRequest = {
|
|
9
|
+
environmentId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type EnvironmentDeleteRequest$Outbound = {
|
|
14
|
+
environment_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const EnvironmentDeleteRequest$outboundSchema: z.ZodType<
|
|
19
|
+
EnvironmentDeleteRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
EnvironmentDeleteRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
environmentId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
environmentId: "environment_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function environmentDeleteRequestToJSON(
|
|
31
|
+
environmentDeleteRequest: EnvironmentDeleteRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
EnvironmentDeleteRequest$outboundSchema.parse(environmentDeleteRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 EnvironmentGetRequest = {
|
|
9
|
+
environmentId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type EnvironmentGetRequest$Outbound = {
|
|
14
|
+
environment_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const EnvironmentGetRequest$outboundSchema: z.ZodType<
|
|
19
|
+
EnvironmentGetRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
EnvironmentGetRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
environmentId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
environmentId: "environment_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function environmentGetRequestToJSON(
|
|
31
|
+
environmentGetRequest: EnvironmentGetRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
EnvironmentGetRequest$outboundSchema.parse(environmentGetRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 EnvironmentListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
projectId?: string | undefined;
|
|
13
|
+
search?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type EnvironmentListRequest$Outbound = {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
starting_after?: string | undefined;
|
|
20
|
+
ending_before?: string | undefined;
|
|
21
|
+
project_id?: string | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const EnvironmentListRequest$outboundSchema: z.ZodType<
|
|
27
|
+
EnvironmentListRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
EnvironmentListRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
limit: z.number().int().optional(),
|
|
32
|
+
startingAfter: z.string().optional(),
|
|
33
|
+
endingBefore: z.string().optional(),
|
|
34
|
+
projectId: z.string().optional(),
|
|
35
|
+
search: z.string().optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
startingAfter: "starting_after",
|
|
39
|
+
endingBefore: "ending_before",
|
|
40
|
+
projectId: "project_id",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function environmentListRequestToJSON(
|
|
45
|
+
environmentListRequest: EnvironmentListRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
EnvironmentListRequest$outboundSchema.parse(environmentListRequest),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -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 EnvironmentUpdateRequest = {
|
|
10
|
+
environmentId: string;
|
|
11
|
+
updateEnvironmentRequest: components.UpdateEnvironmentRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type EnvironmentUpdateRequest$Outbound = {
|
|
16
|
+
environment_id: string;
|
|
17
|
+
UpdateEnvironmentRequest: components.UpdateEnvironmentRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const EnvironmentUpdateRequest$outboundSchema: z.ZodType<
|
|
22
|
+
EnvironmentUpdateRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
EnvironmentUpdateRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
environmentId: z.string(),
|
|
27
|
+
updateEnvironmentRequest: components.UpdateEnvironmentRequest$outboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
environmentId: "environment_id",
|
|
31
|
+
updateEnvironmentRequest: "UpdateEnvironmentRequest",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function environmentUpdateRequestToJSON(
|
|
36
|
+
environmentUpdateRequest: EnvironmentUpdateRequest,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
EnvironmentUpdateRequest$outboundSchema.parse(environmentUpdateRequest),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -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_01M3CFSBXH1AB8WZ1E4BJSVAAC"),
|
|
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_01M3CFSBXGYXRWJ7EA8VJJ2KSV"),
|
|
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_01M3CFSBXF54MKT1P7RJGW335Y"),
|
|
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_01M3CFSBXEF4ZFR32YD0XSMFD9"),
|
|
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-09-
|
|
143
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
188
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
144
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
189
|
+
"2026-09-25T14:33:45.161Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -78,6 +78,10 @@ export * from "./deploymentgetconfig.js";
|
|
|
78
78
|
export * from "./deploymentinvoke.js";
|
|
79
79
|
export * from "./deployments.js";
|
|
80
80
|
export * from "./deploymentstream.js";
|
|
81
|
+
export * from "./environmentdelete.js";
|
|
82
|
+
export * from "./environmentget.js";
|
|
83
|
+
export * from "./environmentlist.js";
|
|
84
|
+
export * from "./environmentupdate.js";
|
|
81
85
|
export * from "./filecontent.js";
|
|
82
86
|
export * from "./filedelete.js";
|
|
83
87
|
export * from "./fileget.js";
|
|
@@ -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-09-
|
|
321
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
367
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-25T14:33:53.921Z"))
|
|
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-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-25T14:33:53.921Z"))
|
|
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-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-25T14:33:53.921Z"))
|
|
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-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-25T14:33:53.921Z"))
|
|
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-09-
|
|
274
|
+
"2026-09-25T14:33:45.161Z",
|
|
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-09-
|
|
319
|
+
"2026-09-25T14:33:45.161Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|