@orq-ai/node 4.15.12 → 4.15.13
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 +39 -37
- package/funcs/feedbackSubmit.d.ts +17 -0
- package/funcs/feedbackSubmit.d.ts.map +1 -0
- package/funcs/feedbackSubmit.js +115 -0
- package/funcs/feedbackSubmit.js.map +1 -0
- package/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/classifyanswer.d.ts +1 -1
- package/models/components/classifyusage.d.ts +2 -2
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/submitfeedbackrequest.d.ts +21 -0
- package/models/components/submitfeedbackrequest.d.ts.map +1 -0
- package/models/components/submitfeedbackrequest.js +57 -0
- package/models/components/submitfeedbackrequest.js.map +1 -0
- package/models/components/submitfeedbackresponse.d.ts +13 -0
- package/models/components/submitfeedbackresponse.d.ts.map +1 -0
- package/models/components/submitfeedbackresponse.js +55 -0
- package/models/components/submitfeedbackresponse.js.map +1 -0
- package/models/operations/createclassify.d.ts +3 -2
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +1 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/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/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/environmentsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/environmentsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/environmentsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/environmentsList.ts +172 -0
- package/packages/orq-rc/src/funcs/environmentsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/responsesCompact.ts +183 -0
- package/packages/orq-rc/src/funcs/workspaceSecurityAddIPRange.ts +3 -3
- package/packages/orq-rc/src/funcs/workspaceSecurityCreateDomain.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityDeleteDomain.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityDeleteIPRange.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityGetIPAllowlist.ts +3 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityListDomains.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +3 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityVerifyDomain.ts +3 -3
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createenvironmentrequest.ts +60 -0
- package/packages/orq-rc/src/models/components/createenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteenvironmentresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/environment.ts +78 -0
- package/packages/orq-rc/src/models/components/getenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +9 -0
- package/packages/orq-rc/src/models/components/listenvironmentsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/publiccompactionitem.ts +79 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +12 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateenvironmentrequest.ts +53 -0
- package/packages/orq-rc/src/models/components/updateenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/errors/compactresponse.ts +155 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/compactresponse.ts +244 -0
- package/packages/orq-rc/src/models/operations/createannotation.ts +32 -19
- package/packages/orq-rc/src/models/operations/createembedding.ts +11 -7
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +18 -12
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +3 -4
- package/packages/orq-rc/src/models/operations/environmentdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/environmentget.ts +36 -0
- package/packages/orq-rc/src/models/operations/environmentlist.ts +50 -0
- package/packages/orq-rc/src/models/operations/environmentupdate.ts +41 -0
- 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 +5 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +14 -18
- 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/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/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/environments.ts +100 -0
- package/packages/orq-rc/src/sdk/responses.ts +18 -0
- package/packages/orq-rc/src/sdk/sdk.ts +16 -10
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/feedback.d.ts +8 -0
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +10 -0
- package/sdk/feedback.js.map +1 -1
- package/src/funcs/feedbackSubmit.ts +162 -0
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifyanswer.ts +1 -1
- package/src/models/components/classifyusage.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/submitfeedbackrequest.ts +48 -0
- package/src/models/components/submitfeedbackresponse.ts +39 -0
- package/src/models/operations/createclassify.ts +4 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/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/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/feedback.ts +19 -0
|
@@ -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 CreateEnvironmentResponse = {
|
|
12
|
+
environment: Environment;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateEnvironmentResponse$inboundSchema: z.ZodType<
|
|
17
|
+
CreateEnvironmentResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
environment: Environment$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function createEnvironmentResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<CreateEnvironmentResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => CreateEnvironmentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'CreateEnvironmentResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
10
|
+
export type DeleteEnvironmentResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteEnvironmentResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteEnvironmentResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteEnvironmentResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteEnvironmentResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteEnvironmentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteEnvironmentResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -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";
|
|
@@ -415,6 +421,7 @@ export * from "./projectbudgetscoperestresponse.js";
|
|
|
415
421
|
export * from "./projectscope.js";
|
|
416
422
|
export * from "./providerbudgetscope.js";
|
|
417
423
|
export * from "./providertoolinput.js";
|
|
424
|
+
export * from "./publiccompactionitem.js";
|
|
418
425
|
export * from "./publiccontact.js";
|
|
419
426
|
export * from "./publicembeddingdata.js";
|
|
420
427
|
export * from "./publicembeddingusage.js";
|
|
@@ -628,6 +635,8 @@ export * from "./updatebudgetrequest.js";
|
|
|
628
635
|
export * from "./updatebudgetresponse.js";
|
|
629
636
|
export * from "./updatedatapointrequest.js";
|
|
630
637
|
export * from "./updatedatasetrequest.js";
|
|
638
|
+
export * from "./updateenvironmentrequest.js";
|
|
639
|
+
export * from "./updateenvironmentresponse.js";
|
|
631
640
|
export * from "./updatefilerequest.js";
|
|
632
641
|
export * from "./updatefileresponse.js";
|
|
633
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
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Always "compaction".
|
|
14
|
+
*/
|
|
15
|
+
export const PublicCompactionItemType = {
|
|
16
|
+
Compaction: "compaction",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Always "compaction".
|
|
20
|
+
*/
|
|
21
|
+
export type PublicCompactionItemType = ClosedEnum<
|
|
22
|
+
typeof PublicCompactionItemType
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
export type PublicCompactionItem = {
|
|
26
|
+
/**
|
|
27
|
+
* Not populated by this endpoint.
|
|
28
|
+
*/
|
|
29
|
+
content?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The model that created this summary.
|
|
32
|
+
*/
|
|
33
|
+
createdBy?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The summary content generated by the model.
|
|
36
|
+
*/
|
|
37
|
+
encryptedContent?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the compaction item.
|
|
40
|
+
*/
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Always "compaction".
|
|
44
|
+
*/
|
|
45
|
+
type: PublicCompactionItemType;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const PublicCompactionItemType$inboundSchema: z.ZodNativeEnum<
|
|
50
|
+
typeof PublicCompactionItemType
|
|
51
|
+
> = z.nativeEnum(PublicCompactionItemType);
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PublicCompactionItem$inboundSchema: z.ZodType<
|
|
55
|
+
PublicCompactionItem,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
unknown
|
|
58
|
+
> = z.object({
|
|
59
|
+
content: z.string().optional(),
|
|
60
|
+
created_by: z.string().optional(),
|
|
61
|
+
encrypted_content: z.string().optional(),
|
|
62
|
+
id: z.string().optional(),
|
|
63
|
+
type: PublicCompactionItemType$inboundSchema,
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
"created_by": "createdBy",
|
|
67
|
+
"encrypted_content": "encryptedContent",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function publicCompactionItemFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<PublicCompactionItem, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => PublicCompactionItem$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'PublicCompactionItem' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -91,6 +91,13 @@ export type QueryTelemetryRequest = {
|
|
|
91
91
|
* The span originally selected, before live extended [from, to). `grain:"auto"` resolves bucket width from this span, independent of how far [from, to) has since grown.
|
|
92
92
|
*/
|
|
93
93
|
selectedRangeSeconds?: number | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Pins the read to one project the caller can reach. Omit to keep the
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* caller's token scope.
|
|
99
|
+
*/
|
|
100
|
+
projectId?: string | undefined;
|
|
94
101
|
};
|
|
95
102
|
|
|
96
103
|
/** @internal */
|
|
@@ -134,6 +141,7 @@ export const QueryTelemetryRequest$inboundSchema: z.ZodType<
|
|
|
134
141
|
sort: QueryTelemetryRequestSort$inboundSchema.optional(),
|
|
135
142
|
interval_seconds: z.number().int().optional(),
|
|
136
143
|
selected_range_seconds: z.number().int().optional(),
|
|
144
|
+
project_id: z.string().optional(),
|
|
137
145
|
}).transform((v) => {
|
|
138
146
|
return remap$(v, {
|
|
139
147
|
"group_by": "groupBy",
|
|
@@ -142,6 +150,7 @@ export const QueryTelemetryRequest$inboundSchema: z.ZodType<
|
|
|
142
150
|
"include_totals": "includeTotals",
|
|
143
151
|
"interval_seconds": "intervalSeconds",
|
|
144
152
|
"selected_range_seconds": "selectedRangeSeconds",
|
|
153
|
+
"project_id": "projectId",
|
|
145
154
|
});
|
|
146
155
|
});
|
|
147
156
|
/** @internal */
|
|
@@ -161,6 +170,7 @@ export type QueryTelemetryRequest$Outbound = {
|
|
|
161
170
|
sort?: string | undefined;
|
|
162
171
|
interval_seconds?: number | undefined;
|
|
163
172
|
selected_range_seconds?: number | undefined;
|
|
173
|
+
project_id?: string | undefined;
|
|
164
174
|
};
|
|
165
175
|
|
|
166
176
|
/** @internal */
|
|
@@ -184,6 +194,7 @@ export const QueryTelemetryRequest$outboundSchema: z.ZodType<
|
|
|
184
194
|
sort: QueryTelemetryRequestSort$outboundSchema.optional(),
|
|
185
195
|
intervalSeconds: z.number().int().optional(),
|
|
186
196
|
selectedRangeSeconds: z.number().int().optional(),
|
|
197
|
+
projectId: z.string().optional(),
|
|
187
198
|
}).transform((v) => {
|
|
188
199
|
return remap$(v, {
|
|
189
200
|
groupBy: "group_by",
|
|
@@ -192,6 +203,7 @@ export const QueryTelemetryRequest$outboundSchema: z.ZodType<
|
|
|
192
203
|
includeTotals: "include_totals",
|
|
193
204
|
intervalSeconds: "interval_seconds",
|
|
194
205
|
selectedRangeSeconds: "selected_range_seconds",
|
|
206
|
+
projectId: "project_id",
|
|
195
207
|
});
|
|
196
208
|
});
|
|
197
209
|
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import { OrqError } from "./orqerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Failed to compact conversation.
|
|
11
|
+
*/
|
|
12
|
+
export type CompactResponseResponsesResponseResponseBodyData = {
|
|
13
|
+
error: components.APIError;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Failed to compact conversation.
|
|
18
|
+
*/
|
|
19
|
+
export class CompactResponseResponsesResponseResponseBody extends OrqError {
|
|
20
|
+
error: components.APIError;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: CompactResponseResponsesResponseResponseBodyData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: CompactResponseResponsesResponseResponseBodyData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = err.error?.message
|
|
30
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
31
|
+
super(message, httpMeta);
|
|
32
|
+
this.data$ = err;
|
|
33
|
+
this.error = err.error;
|
|
34
|
+
|
|
35
|
+
this.name = "CompactResponseResponsesResponseResponseBody";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Unauthorized.
|
|
41
|
+
*/
|
|
42
|
+
export type CompactResponseResponsesResponseBodyData = {
|
|
43
|
+
error: components.APIError;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Unauthorized.
|
|
48
|
+
*/
|
|
49
|
+
export class CompactResponseResponsesResponseBody extends OrqError {
|
|
50
|
+
error: components.APIError;
|
|
51
|
+
|
|
52
|
+
/** The original data that was passed to this error instance. */
|
|
53
|
+
data$: CompactResponseResponsesResponseBodyData;
|
|
54
|
+
|
|
55
|
+
constructor(
|
|
56
|
+
err: CompactResponseResponsesResponseBodyData,
|
|
57
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
58
|
+
) {
|
|
59
|
+
const message = err.error?.message
|
|
60
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
61
|
+
super(message, httpMeta);
|
|
62
|
+
this.data$ = err;
|
|
63
|
+
this.error = err.error;
|
|
64
|
+
|
|
65
|
+
this.name = "CompactResponseResponsesResponseBody";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Model is required or request is invalid.
|
|
71
|
+
*/
|
|
72
|
+
export type CompactResponseResponseBodyData = {
|
|
73
|
+
error: components.APIError;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Model is required or request is invalid.
|
|
78
|
+
*/
|
|
79
|
+
export class CompactResponseResponseBody extends OrqError {
|
|
80
|
+
error: components.APIError;
|
|
81
|
+
|
|
82
|
+
/** The original data that was passed to this error instance. */
|
|
83
|
+
data$: CompactResponseResponseBodyData;
|
|
84
|
+
|
|
85
|
+
constructor(
|
|
86
|
+
err: CompactResponseResponseBodyData,
|
|
87
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
88
|
+
) {
|
|
89
|
+
const message = err.error?.message
|
|
90
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
91
|
+
super(message, httpMeta);
|
|
92
|
+
this.data$ = err;
|
|
93
|
+
this.error = err.error;
|
|
94
|
+
|
|
95
|
+
this.name = "CompactResponseResponseBody";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const CompactResponseResponsesResponseResponseBody$inboundSchema:
|
|
101
|
+
z.ZodType<
|
|
102
|
+
CompactResponseResponsesResponseResponseBody,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
error: components.APIError$inboundSchema,
|
|
107
|
+
request$: z.instanceof(Request),
|
|
108
|
+
response$: z.instanceof(Response),
|
|
109
|
+
body$: z.string(),
|
|
110
|
+
})
|
|
111
|
+
.transform((v) => {
|
|
112
|
+
return new CompactResponseResponsesResponseResponseBody(v, {
|
|
113
|
+
request: v.request$,
|
|
114
|
+
response: v.response$,
|
|
115
|
+
body: v.body$,
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const CompactResponseResponsesResponseBody$inboundSchema: z.ZodType<
|
|
121
|
+
CompactResponseResponsesResponseBody,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
unknown
|
|
124
|
+
> = z.object({
|
|
125
|
+
error: components.APIError$inboundSchema,
|
|
126
|
+
request$: z.instanceof(Request),
|
|
127
|
+
response$: z.instanceof(Response),
|
|
128
|
+
body$: z.string(),
|
|
129
|
+
})
|
|
130
|
+
.transform((v) => {
|
|
131
|
+
return new CompactResponseResponsesResponseBody(v, {
|
|
132
|
+
request: v.request$,
|
|
133
|
+
response: v.response$,
|
|
134
|
+
body: v.body$,
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const CompactResponseResponseBody$inboundSchema: z.ZodType<
|
|
140
|
+
CompactResponseResponseBody,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
error: components.APIError$inboundSchema,
|
|
145
|
+
request$: z.instanceof(Request),
|
|
146
|
+
response$: z.instanceof(Response),
|
|
147
|
+
body$: z.string(),
|
|
148
|
+
})
|
|
149
|
+
.transform((v) => {
|
|
150
|
+
return new CompactResponseResponseBody(v, {
|
|
151
|
+
request: v.request$,
|
|
152
|
+
response: v.response$,
|
|
153
|
+
body: v.body$,
|
|
154
|
+
});
|
|
155
|
+
});
|