@orq-ai/node 4.14.3 → 4.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/packages/orq-rc/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -13
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesList.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/packages/orq-rc/src/funcs/auditLogsQuery.ts +162 -0
- package/packages/orq-rc/src/funcs/evalsAll.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsCreate.ts +10 -35
- package/packages/orq-rc/src/funcs/evalsDelete.ts +6 -19
- package/packages/orq-rc/src/funcs/evalsGet.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsGetVersion.ts +174 -0
- package/packages/orq-rc/src/funcs/evalsListVersions.ts +11 -20
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +6 -14
- package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
- package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
- package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +58 -23
- package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +17 -10
- package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
- package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
- package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
- package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
- package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
- package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
- package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -7
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -5
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -5
- package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +63 -6
- package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +35 -8
- package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listevaluatorsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +10 -11
- package/packages/orq-rc/src/models/components/piiredactionconfig.ts +7 -9
- package/packages/orq-rc/src/models/components/pricing.ts +12 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +37 -58
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +19 -23
- package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +81 -0
- package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/value.ts +20 -0
- package/packages/orq-rc/src/models/components/workspace.ts +116 -0
- package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
- package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
- package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -6
- package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +7 -139
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +20 -31
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createeval.ts +3 -644
- package/packages/orq-rc/src/models/operations/createprompt.ts +19 -22
- package/packages/orq-rc/src/models/operations/createtool.ts +55 -56
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +16 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +43 -46
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.ts +0 -2770
- package/packages/orq-rc/src/models/operations/getevals.ts +5 -119
- package/packages/orq-rc/src/models/operations/getevalversion.ts +39 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- 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 -2
- package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +5 -183
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +7 -173
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/parse.ts +7 -7
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +31 -40
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +7 -182
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +6 -404
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
- package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
- package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
- package/packages/orq-rc/src/sdk/annotationqueues.ts +31 -31
- package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
- package/packages/orq-rc/src/sdk/evals.ts +41 -23
- package/packages/orq-rc/src/sdk/sdk.ts +22 -10
- package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +0 -310
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +0 -84
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/packages/orq-rc/src/models/components/publicspan.ts +0 -135
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -96
- package/packages/orq-rc/src/models/errors/geteval.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +0 -176
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
WorkspaceSettingsFields,
|
|
9
|
+
WorkspaceSettingsFields$Outbound,
|
|
10
|
+
WorkspaceSettingsFields$outboundSchema,
|
|
11
|
+
} from "./workspacesettingsfields.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateWorkspaceRequestMetadata = {};
|
|
14
|
+
|
|
15
|
+
export type UpdateWorkspaceRequest = {
|
|
16
|
+
displayName?: string | undefined;
|
|
17
|
+
logoUrl?: string | undefined;
|
|
18
|
+
archived?: boolean | undefined;
|
|
19
|
+
settings?: WorkspaceSettingsFields | undefined;
|
|
20
|
+
metadata?: UpdateWorkspaceRequestMetadata | undefined;
|
|
21
|
+
enforceEnabledModels?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type UpdateWorkspaceRequestMetadata$Outbound = {};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const UpdateWorkspaceRequestMetadata$outboundSchema: z.ZodType<
|
|
29
|
+
UpdateWorkspaceRequestMetadata$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
UpdateWorkspaceRequestMetadata
|
|
32
|
+
> = z.object({});
|
|
33
|
+
|
|
34
|
+
export function updateWorkspaceRequestMetadataToJSON(
|
|
35
|
+
updateWorkspaceRequestMetadata: UpdateWorkspaceRequestMetadata,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
UpdateWorkspaceRequestMetadata$outboundSchema.parse(
|
|
39
|
+
updateWorkspaceRequestMetadata,
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type UpdateWorkspaceRequest$Outbound = {
|
|
46
|
+
display_name?: string | undefined;
|
|
47
|
+
logo_url?: string | undefined;
|
|
48
|
+
archived?: boolean | undefined;
|
|
49
|
+
settings?: WorkspaceSettingsFields$Outbound | undefined;
|
|
50
|
+
metadata?: UpdateWorkspaceRequestMetadata$Outbound | undefined;
|
|
51
|
+
enforce_enabled_models?: boolean | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
|
|
56
|
+
UpdateWorkspaceRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
UpdateWorkspaceRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
displayName: z.string().optional(),
|
|
61
|
+
logoUrl: z.string().optional(),
|
|
62
|
+
archived: z.boolean().optional(),
|
|
63
|
+
settings: WorkspaceSettingsFields$outboundSchema.optional(),
|
|
64
|
+
metadata: z.lazy(() => UpdateWorkspaceRequestMetadata$outboundSchema)
|
|
65
|
+
.optional(),
|
|
66
|
+
enforceEnabledModels: z.boolean().optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
displayName: "display_name",
|
|
70
|
+
logoUrl: "logo_url",
|
|
71
|
+
enforceEnabledModels: "enforce_enabled_models",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function updateWorkspaceRequestToJSON(
|
|
76
|
+
updateWorkspaceRequest: UpdateWorkspaceRequest,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
UpdateWorkspaceRequest$outboundSchema.parse(updateWorkspaceRequest),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateWorkspaceResponse = {
|
|
12
|
+
workspace: Workspace;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateWorkspaceResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateWorkspaceResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
workspace: Workspace$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateWorkspaceResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateWorkspaceResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateWorkspaceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateWorkspaceResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const Value = {
|
|
9
|
+
OriginUnspecified: "ORIGIN_UNSPECIFIED",
|
|
10
|
+
Ui: "ui",
|
|
11
|
+
Api: "api",
|
|
12
|
+
Scim: "scim",
|
|
13
|
+
System: "system",
|
|
14
|
+
} as const;
|
|
15
|
+
export type Value = ClosedEnum<typeof Value>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
|
|
19
|
+
Value,
|
|
20
|
+
);
|
|
@@ -0,0 +1,116 @@
|
|
|
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 {
|
|
11
|
+
WorkspaceCapabilities,
|
|
12
|
+
WorkspaceCapabilities$inboundSchema,
|
|
13
|
+
} from "./workspacecapabilities.js";
|
|
14
|
+
import {
|
|
15
|
+
WorkspaceOrganization,
|
|
16
|
+
WorkspaceOrganization$inboundSchema,
|
|
17
|
+
} from "./workspaceorganization.js";
|
|
18
|
+
import {
|
|
19
|
+
WorkspaceSettingsFields,
|
|
20
|
+
WorkspaceSettingsFields$inboundSchema,
|
|
21
|
+
} from "./workspacesettingsfields.js";
|
|
22
|
+
|
|
23
|
+
export type Features = {};
|
|
24
|
+
|
|
25
|
+
export type WorkspaceMetadata = {};
|
|
26
|
+
|
|
27
|
+
export type Workspace = {
|
|
28
|
+
id: string;
|
|
29
|
+
key: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
logoUrl?: string | undefined;
|
|
32
|
+
archivedOn?: Date | undefined;
|
|
33
|
+
archivedById?: string | undefined;
|
|
34
|
+
organization?: WorkspaceOrganization | undefined;
|
|
35
|
+
settings?: WorkspaceSettingsFields | undefined;
|
|
36
|
+
sidebarVersion?: string | undefined;
|
|
37
|
+
features?: Features | undefined;
|
|
38
|
+
totalMembers?: number | undefined;
|
|
39
|
+
metadata?: WorkspaceMetadata | undefined;
|
|
40
|
+
capabilities?: WorkspaceCapabilities | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const Features$inboundSchema: z.ZodType<
|
|
45
|
+
Features,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({});
|
|
49
|
+
|
|
50
|
+
export function featuresFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<Features, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => Features$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'Features' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const WorkspaceMetadata$inboundSchema: z.ZodType<
|
|
62
|
+
WorkspaceMetadata,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({});
|
|
66
|
+
|
|
67
|
+
export function workspaceMetadataFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<WorkspaceMetadata, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => WorkspaceMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'WorkspaceMetadata' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const Workspace$inboundSchema: z.ZodType<
|
|
79
|
+
Workspace,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.object({
|
|
83
|
+
id: z.string(),
|
|
84
|
+
key: z.string(),
|
|
85
|
+
display_name: z.string(),
|
|
86
|
+
logo_url: z.string().optional(),
|
|
87
|
+
archived_on: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
88
|
+
.optional(),
|
|
89
|
+
archived_by_id: z.string().optional(),
|
|
90
|
+
organization: WorkspaceOrganization$inboundSchema.optional(),
|
|
91
|
+
settings: WorkspaceSettingsFields$inboundSchema.optional(),
|
|
92
|
+
sidebar_version: z.string().optional(),
|
|
93
|
+
features: z.lazy(() => Features$inboundSchema).optional(),
|
|
94
|
+
total_members: z.number().int().optional(),
|
|
95
|
+
metadata: z.lazy(() => WorkspaceMetadata$inboundSchema).optional(),
|
|
96
|
+
capabilities: WorkspaceCapabilities$inboundSchema.optional(),
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
"display_name": "displayName",
|
|
100
|
+
"logo_url": "logoUrl",
|
|
101
|
+
"archived_on": "archivedOn",
|
|
102
|
+
"archived_by_id": "archivedById",
|
|
103
|
+
"sidebar_version": "sidebarVersion",
|
|
104
|
+
"total_members": "totalMembers",
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function workspaceFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<Workspace, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => Workspace$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'Workspace' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 WorkspaceCapabilities = {
|
|
11
|
+
roles?: Array<string> | undefined;
|
|
12
|
+
projects?: Array<string> | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WorkspaceCapabilities$inboundSchema: z.ZodType<
|
|
17
|
+
WorkspaceCapabilities,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
roles: z.array(z.string()).optional(),
|
|
22
|
+
projects: z.array(z.string()).optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function workspaceCapabilitiesFromJSON(
|
|
26
|
+
jsonString: string,
|
|
27
|
+
): SafeParseResult<WorkspaceCapabilities, SDKValidationError> {
|
|
28
|
+
return safeParse(
|
|
29
|
+
jsonString,
|
|
30
|
+
(x) => WorkspaceCapabilities$inboundSchema.parse(JSON.parse(x)),
|
|
31
|
+
`Failed to parse 'WorkspaceCapabilities' from JSON`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 WorkspaceOrganization = {
|
|
11
|
+
id?: string | undefined;
|
|
12
|
+
key?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WorkspaceOrganization$inboundSchema: z.ZodType<
|
|
17
|
+
WorkspaceOrganization,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
id: z.string().optional(),
|
|
22
|
+
key: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function workspaceOrganizationFromJSON(
|
|
26
|
+
jsonString: string,
|
|
27
|
+
): SafeParseResult<WorkspaceOrganization, SDKValidationError> {
|
|
28
|
+
return safeParse(
|
|
29
|
+
jsonString,
|
|
30
|
+
(x) => WorkspaceOrganization$inboundSchema.parse(JSON.parse(x)),
|
|
31
|
+
`Failed to parse 'WorkspaceOrganization' from JSON`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ModelGardenSettings = {};
|
|
12
|
+
|
|
13
|
+
export type Plugins = {};
|
|
14
|
+
|
|
15
|
+
export type WorkspaceSettingsFields = {
|
|
16
|
+
sameProjectEntitiesEnabled?: boolean | undefined;
|
|
17
|
+
modelGardenSettings?: ModelGardenSettings | undefined;
|
|
18
|
+
plugins?: Plugins | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ModelGardenSettings$inboundSchema: z.ZodType<
|
|
23
|
+
ModelGardenSettings,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({});
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type ModelGardenSettings$Outbound = {};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ModelGardenSettings$outboundSchema: z.ZodType<
|
|
32
|
+
ModelGardenSettings$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
ModelGardenSettings
|
|
35
|
+
> = z.object({});
|
|
36
|
+
|
|
37
|
+
export function modelGardenSettingsToJSON(
|
|
38
|
+
modelGardenSettings: ModelGardenSettings,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
ModelGardenSettings$outboundSchema.parse(modelGardenSettings),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export function modelGardenSettingsFromJSON(
|
|
45
|
+
jsonString: string,
|
|
46
|
+
): SafeParseResult<ModelGardenSettings, SDKValidationError> {
|
|
47
|
+
return safeParse(
|
|
48
|
+
jsonString,
|
|
49
|
+
(x) => ModelGardenSettings$inboundSchema.parse(JSON.parse(x)),
|
|
50
|
+
`Failed to parse 'ModelGardenSettings' from JSON`,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Plugins$inboundSchema: z.ZodType<Plugins, z.ZodTypeDef, unknown> =
|
|
56
|
+
z.object({});
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type Plugins$Outbound = {};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const Plugins$outboundSchema: z.ZodType<
|
|
62
|
+
Plugins$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
Plugins
|
|
65
|
+
> = z.object({});
|
|
66
|
+
|
|
67
|
+
export function pluginsToJSON(plugins: Plugins): string {
|
|
68
|
+
return JSON.stringify(Plugins$outboundSchema.parse(plugins));
|
|
69
|
+
}
|
|
70
|
+
export function pluginsFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<Plugins, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => Plugins$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'Plugins' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const WorkspaceSettingsFields$inboundSchema: z.ZodType<
|
|
82
|
+
WorkspaceSettingsFields,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
same_project_entities_enabled: z.boolean().optional(),
|
|
87
|
+
model_garden_settings: z.lazy(() => ModelGardenSettings$inboundSchema)
|
|
88
|
+
.optional(),
|
|
89
|
+
plugins: z.lazy(() => Plugins$inboundSchema).optional(),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
"same_project_entities_enabled": "sameProjectEntitiesEnabled",
|
|
93
|
+
"model_garden_settings": "modelGardenSettings",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type WorkspaceSettingsFields$Outbound = {
|
|
98
|
+
same_project_entities_enabled?: boolean | undefined;
|
|
99
|
+
model_garden_settings?: ModelGardenSettings$Outbound | undefined;
|
|
100
|
+
plugins?: Plugins$Outbound | undefined;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const WorkspaceSettingsFields$outboundSchema: z.ZodType<
|
|
105
|
+
WorkspaceSettingsFields$Outbound,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
WorkspaceSettingsFields
|
|
108
|
+
> = z.object({
|
|
109
|
+
sameProjectEntitiesEnabled: z.boolean().optional(),
|
|
110
|
+
modelGardenSettings: z.lazy(() => ModelGardenSettings$outboundSchema)
|
|
111
|
+
.optional(),
|
|
112
|
+
plugins: z.lazy(() => Plugins$outboundSchema).optional(),
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
sameProjectEntitiesEnabled: "same_project_entities_enabled",
|
|
116
|
+
modelGardenSettings: "model_garden_settings",
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export function workspaceSettingsFieldsToJSON(
|
|
121
|
+
workspaceSettingsFields: WorkspaceSettingsFields,
|
|
122
|
+
): string {
|
|
123
|
+
return JSON.stringify(
|
|
124
|
+
WorkspaceSettingsFields$outboundSchema.parse(workspaceSettingsFields),
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
export function workspaceSettingsFieldsFromJSON(
|
|
128
|
+
jsonString: string,
|
|
129
|
+
): SafeParseResult<WorkspaceSettingsFields, SDKValidationError> {
|
|
130
|
+
return safeParse(
|
|
131
|
+
jsonString,
|
|
132
|
+
(x) => WorkspaceSettingsFields$inboundSchema.parse(JSON.parse(x)),
|
|
133
|
+
`Failed to parse 'WorkspaceSettingsFields' from JSON`,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./apierror.js";
|
|
6
6
|
export * from "./createagentschedule.js";
|
|
7
|
-
export * from "./createeval.js";
|
|
8
7
|
export * from "./createmoderation.js";
|
|
9
8
|
export * from "./createtranscription.js";
|
|
10
9
|
export * from "./createtranslation.js";
|
|
11
10
|
export * from "./deleteagent.js";
|
|
12
11
|
export * from "./deleteagentschedule.js";
|
|
13
|
-
export * from "./deleteeval.js";
|
|
14
12
|
export * from "./deleteprompt.js";
|
|
15
|
-
export * from "./geteval.js";
|
|
16
|
-
export * from "./getevals.js";
|
|
17
13
|
export * from "./getpromptversion.js";
|
|
18
|
-
export * from "./getv2evaluatorsidversions.js";
|
|
19
14
|
export * from "./getv2toolstoolidversions.js";
|
|
20
15
|
export * from "./getv2toolstoolidversionsversionid.js";
|
|
21
16
|
export * from "./honoapierror.js";
|
|
@@ -34,6 +29,5 @@ export * from "./streamrunagent.js";
|
|
|
34
29
|
export * from "./triggeragentschedule.js";
|
|
35
30
|
export * from "./updateagent.js";
|
|
36
31
|
export * from "./updateagentschedule.js";
|
|
37
|
-
export * from "./updateeval.js";
|
|
38
32
|
export * from "./updateprompt.js";
|
|
39
33
|
export * from "./updatetool.js";
|
|
@@ -4,110 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
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
|
-
export type Items = {
|
|
13
|
-
spanId: string;
|
|
14
|
-
traceId: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type AddAnnotationQueueItemsRequestBody = {
|
|
18
|
-
/**
|
|
19
|
-
* The spans to add to the annotation queue
|
|
20
|
-
*/
|
|
21
|
-
items: Array<Items>;
|
|
22
|
-
};
|
|
7
|
+
import * as components from "../components/index.js";
|
|
23
8
|
|
|
24
9
|
export type AddAnnotationQueueItemsRequest = {
|
|
25
10
|
annotationQueueId: string;
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const AddAnnotationQueueItemsType = {
|
|
30
|
-
Span: "span",
|
|
31
|
-
} as const;
|
|
32
|
-
export type AddAnnotationQueueItemsType = ClosedEnum<
|
|
33
|
-
typeof AddAnnotationQueueItemsType
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
export type AddAnnotationQueueItemsResponseBody = {
|
|
37
|
-
id: string;
|
|
38
|
-
/**
|
|
39
|
-
* The unique identifier of the annotation queue
|
|
40
|
-
*/
|
|
41
|
-
annotationQueueId: string;
|
|
42
|
-
/**
|
|
43
|
-
* The unique identifier of the workspace it belongs to
|
|
44
|
-
*/
|
|
45
|
-
workspaceId: string;
|
|
46
|
-
/**
|
|
47
|
-
* The unique identifiers of the human reviews that have been used to annotate the item
|
|
48
|
-
*/
|
|
49
|
-
usedHumanReviewIds?: Array<string> | undefined;
|
|
50
|
-
spanId: string;
|
|
51
|
-
/**
|
|
52
|
-
* The trace identifier this span belongs to
|
|
53
|
-
*/
|
|
54
|
-
traceId?: string | undefined;
|
|
55
|
-
type: AddAnnotationQueueItemsType;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type Items$Outbound = {
|
|
60
|
-
span_id: string;
|
|
61
|
-
trace_id: string;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const Items$outboundSchema: z.ZodType<
|
|
66
|
-
Items$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
Items
|
|
69
|
-
> = z.object({
|
|
70
|
-
spanId: z.string(),
|
|
71
|
-
traceId: z.string(),
|
|
72
|
-
}).transform((v) => {
|
|
73
|
-
return remap$(v, {
|
|
74
|
-
spanId: "span_id",
|
|
75
|
-
traceId: "trace_id",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export function itemsToJSON(items: Items): string {
|
|
80
|
-
return JSON.stringify(Items$outboundSchema.parse(items));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type AddAnnotationQueueItemsRequestBody$Outbound = {
|
|
85
|
-
items: Array<Items$Outbound>;
|
|
11
|
+
addAnnotationQueueItemsRequest: components.AddAnnotationQueueItemsRequest;
|
|
86
12
|
};
|
|
87
13
|
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const AddAnnotationQueueItemsRequestBody$outboundSchema: z.ZodType<
|
|
90
|
-
AddAnnotationQueueItemsRequestBody$Outbound,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
AddAnnotationQueueItemsRequestBody
|
|
93
|
-
> = z.object({
|
|
94
|
-
items: z.array(z.lazy(() => Items$outboundSchema)),
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
export function addAnnotationQueueItemsRequestBodyToJSON(
|
|
98
|
-
addAnnotationQueueItemsRequestBody: AddAnnotationQueueItemsRequestBody,
|
|
99
|
-
): string {
|
|
100
|
-
return JSON.stringify(
|
|
101
|
-
AddAnnotationQueueItemsRequestBody$outboundSchema.parse(
|
|
102
|
-
addAnnotationQueueItemsRequestBody,
|
|
103
|
-
),
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
14
|
/** @internal */
|
|
108
15
|
export type AddAnnotationQueueItemsRequest$Outbound = {
|
|
109
16
|
annotation_queue_id: string;
|
|
110
|
-
|
|
17
|
+
AddAnnotationQueueItemsRequest:
|
|
18
|
+
components.AddAnnotationQueueItemsRequest$Outbound;
|
|
111
19
|
};
|
|
112
20
|
|
|
113
21
|
/** @internal */
|
|
@@ -117,12 +25,12 @@ export const AddAnnotationQueueItemsRequest$outboundSchema: z.ZodType<
|
|
|
117
25
|
AddAnnotationQueueItemsRequest
|
|
118
26
|
> = z.object({
|
|
119
27
|
annotationQueueId: z.string(),
|
|
120
|
-
|
|
121
|
-
.
|
|
28
|
+
addAnnotationQueueItemsRequest:
|
|
29
|
+
components.AddAnnotationQueueItemsRequest$outboundSchema,
|
|
122
30
|
}).transform((v) => {
|
|
123
31
|
return remap$(v, {
|
|
124
32
|
annotationQueueId: "annotation_queue_id",
|
|
125
|
-
|
|
33
|
+
addAnnotationQueueItemsRequest: "AddAnnotationQueueItemsRequest",
|
|
126
34
|
});
|
|
127
35
|
});
|
|
128
36
|
|
|
@@ -135,43 +43,3 @@ export function addAnnotationQueueItemsRequestToJSON(
|
|
|
135
43
|
),
|
|
136
44
|
);
|
|
137
45
|
}
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const AddAnnotationQueueItemsType$inboundSchema: z.ZodNativeEnum<
|
|
141
|
-
typeof AddAnnotationQueueItemsType
|
|
142
|
-
> = z.nativeEnum(AddAnnotationQueueItemsType);
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const AddAnnotationQueueItemsResponseBody$inboundSchema: z.ZodType<
|
|
146
|
-
AddAnnotationQueueItemsResponseBody,
|
|
147
|
-
z.ZodTypeDef,
|
|
148
|
-
unknown
|
|
149
|
-
> = z.object({
|
|
150
|
-
_id: z.string(),
|
|
151
|
-
annotation_queue_id: z.string(),
|
|
152
|
-
workspace_id: z.string(),
|
|
153
|
-
used_human_review_ids: z.array(z.string()).optional(),
|
|
154
|
-
span_id: z.string(),
|
|
155
|
-
trace_id: z.string().optional(),
|
|
156
|
-
type: AddAnnotationQueueItemsType$inboundSchema,
|
|
157
|
-
}).transform((v) => {
|
|
158
|
-
return remap$(v, {
|
|
159
|
-
"_id": "id",
|
|
160
|
-
"annotation_queue_id": "annotationQueueId",
|
|
161
|
-
"workspace_id": "workspaceId",
|
|
162
|
-
"used_human_review_ids": "usedHumanReviewIds",
|
|
163
|
-
"span_id": "spanId",
|
|
164
|
-
"trace_id": "traceId",
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
export function addAnnotationQueueItemsResponseBodyFromJSON(
|
|
169
|
-
jsonString: string,
|
|
170
|
-
): SafeParseResult<AddAnnotationQueueItemsResponseBody, SDKValidationError> {
|
|
171
|
-
return safeParse(
|
|
172
|
-
jsonString,
|
|
173
|
-
(x) =>
|
|
174
|
-
AddAnnotationQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
-
`Failed to parse 'AddAnnotationQueueItemsResponseBody' from JSON`,
|
|
176
|
-
);
|
|
177
|
-
}
|