@orq-ai/node 4.17.20 → 4.17.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- 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/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- 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 +1 -1
- package/packages/orq-rc/src/funcs/experimentsCancelRun.ts +187 -0
- package/packages/orq-rc/src/funcs/experimentsCreate.ts +171 -0
- package/packages/orq-rc/src/funcs/experimentsCreateEval.ts +187 -0
- package/packages/orq-rc/src/funcs/experimentsCreateReview.ts +184 -0
- package/packages/orq-rc/src/funcs/experimentsCreateRun.ts +179 -0
- package/packages/orq-rc/src/funcs/experimentsCreateTask.ts +187 -0
- package/packages/orq-rc/src/funcs/experimentsDelete.ts +177 -0
- package/packages/orq-rc/src/funcs/experimentsDeleteEval.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsDeleteReview.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsDeleteRows.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsDeleteRun.ts +184 -0
- package/packages/orq-rc/src/funcs/experimentsDeleteTask.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsDuplicateRow.ts +191 -0
- package/packages/orq-rc/src/funcs/experimentsExecuteRun.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsExportRun.ts +203 -0
- package/packages/orq-rc/src/funcs/experimentsGet.ts +177 -0
- package/packages/orq-rc/src/funcs/experimentsGetRun.ts +183 -0
- package/packages/orq-rc/src/funcs/experimentsGetRunMetrics.ts +189 -0
- package/packages/orq-rc/src/funcs/experimentsList.ts +180 -0
- package/packages/orq-rc/src/funcs/experimentsListEvals.ts +180 -0
- package/packages/orq-rc/src/funcs/experimentsListReviews.ts +181 -0
- package/packages/orq-rc/src/funcs/experimentsListRuns.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsListTasks.ts +180 -0
- package/packages/orq-rc/src/funcs/experimentsPatchEvalCell.ts +195 -0
- package/packages/orq-rc/src/funcs/experimentsPatchReviewCell.ts +192 -0
- package/packages/orq-rc/src/funcs/experimentsPatchTaskCell.ts +195 -0
- package/packages/orq-rc/src/funcs/experimentsQueryRun.ts +184 -0
- package/packages/orq-rc/src/funcs/experimentsUpdate.ts +180 -0
- package/packages/orq-rc/src/funcs/experimentsUpdateReview.ts +191 -0
- package/packages/orq-rc/src/funcs/experimentsUpdateRun.ts +185 -0
- package/packages/orq-rc/src/funcs/experimentsUpdateRunCell.ts +195 -0
- package/packages/orq-rc/src/funcs/experimentsUpdateRunColumnLayout.ts +189 -0
- package/packages/orq-rc/src/funcs/experimentsUpdateTask.ts +191 -0
- package/packages/orq-rc/src/funcs/filesList.ts +2 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +34 -30
- package/packages/orq-rc/src/models/components/agenttaskconfig.ts +126 -0
- package/packages/orq-rc/src/models/components/artifactrefs.ts +86 -0
- package/packages/orq-rc/src/models/components/booleanmetricsummary.ts +38 -0
- package/packages/orq-rc/src/models/components/cancelexperimentrunrequest.ts +36 -0
- package/packages/orq-rc/src/models/components/categoricalmetricsummary.ts +33 -0
- package/packages/orq-rc/src/models/components/cell.ts +108 -0
- package/packages/orq-rc/src/models/components/cellprogress.ts +40 -0
- package/packages/orq-rc/src/models/components/cellstatus.ts +21 -0
- package/packages/orq-rc/src/models/components/cellstatuscounts.ts +46 -0
- package/packages/orq-rc/src/models/components/celltype.ts +25 -0
- package/packages/orq-rc/src/models/components/column.ts +102 -0
- package/packages/orq-rc/src/models/components/columnlayout.ts +41 -0
- package/packages/orq-rc/src/models/components/createevalcolumnrequest.ts +39 -0
- package/packages/orq-rc/src/models/components/createexperimentrequest.ts +62 -0
- package/packages/orq-rc/src/models/components/createreviewcolumnrequest.ts +47 -0
- package/packages/orq-rc/src/models/components/createrunrequest.ts +39 -0
- package/packages/orq-rc/src/models/components/createtaskcolumnrequest.ts +71 -0
- package/packages/orq-rc/src/models/components/datasetcolumnconfig.ts +36 -0
- package/packages/orq-rc/src/models/components/deleterowsrequest.ts +36 -0
- package/packages/orq-rc/src/models/components/duplicaterowrequest.ts +25 -0
- package/packages/orq-rc/src/models/components/evalcolumnconfig.ts +45 -0
- package/packages/orq-rc/src/models/components/executeconstraints.ts +44 -0
- package/packages/orq-rc/src/models/components/executerunrequest.ts +56 -0
- package/packages/orq-rc/src/models/components/executescope.ts +20 -0
- package/packages/orq-rc/src/models/components/executetarget.ts +44 -0
- package/packages/orq-rc/src/models/components/experiment.ts +77 -0
- package/packages/orq-rc/src/models/components/getrunmetricsresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/harnessconstraints.ts +55 -0
- package/packages/orq-rc/src/models/components/harnesstaskconfig.ts +60 -0
- package/packages/orq-rc/src/models/components/index.ts +64 -0
- package/packages/orq-rc/src/models/components/joboutputcolumnconfig.ts +39 -0
- package/packages/orq-rc/src/models/components/listevalcolumnsresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/listexperimentrunsresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/listexperimentsresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/listreviewcolumnsresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/listtaskcolumnsresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/llmconstraints.ts +38 -0
- package/packages/orq-rc/src/models/components/messagessource.ts +23 -0
- package/packages/orq-rc/src/models/components/metricbaseline.ts +45 -0
- package/packages/orq-rc/src/models/components/metriccolumnconfig.ts +36 -0
- package/packages/orq-rc/src/models/components/metricsummary.ts +53 -0
- package/packages/orq-rc/src/models/components/numbermetricsummary.ts +50 -0
- package/packages/orq-rc/src/models/components/openresponsetaskconfig.ts +43 -0
- package/packages/orq-rc/src/models/components/patchevalcellrequest.ts +47 -0
- package/packages/orq-rc/src/models/components/patchreviewcellrequest.ts +53 -0
- package/packages/orq-rc/src/models/components/patchtaskcellrequest.ts +67 -0
- package/packages/orq-rc/src/models/components/prompttaskconfig.ts +259 -0
- package/packages/orq-rc/src/models/components/queryrow.ts +53 -0
- package/packages/orq-rc/src/models/components/queryrunrequest.ts +65 -0
- package/packages/orq-rc/src/models/components/queryrunresponse.ts +47 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/reviewcolumnconfig.ts +42 -0
- package/packages/orq-rc/src/models/components/rowstatus.ts +21 -0
- package/packages/orq-rc/src/models/components/run.ts +97 -0
- package/packages/orq-rc/src/models/components/runref.ts +36 -0
- package/packages/orq-rc/src/models/components/runsettings.ts +70 -0
- package/packages/orq-rc/src/models/components/runstats.ts +45 -0
- package/packages/orq-rc/src/models/components/runstatus.ts +21 -0
- package/packages/orq-rc/src/models/components/uniqueevaluator.ts +45 -0
- package/packages/orq-rc/src/models/components/updateexperimentrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/updatereviewcolumnrequest.ts +36 -0
- package/packages/orq-rc/src/models/components/updateruncellrequest.ts +51 -0
- package/packages/orq-rc/src/models/components/updateruncolumnlayoutrequest.ts +38 -0
- package/packages/orq-rc/src/models/components/updaterunrequest.ts +39 -0
- package/packages/orq-rc/src/models/components/updatetaskcolumnrequest.ts +60 -0
- package/packages/orq-rc/src/models/components/wallclockunit.ts +18 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/experimentdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/experimentevalcellpatch.ts +55 -0
- package/packages/orq-rc/src/models/operations/experimentevalcreate.ts +47 -0
- package/packages/orq-rc/src/models/operations/experimentevaldelete.ts +46 -0
- package/packages/orq-rc/src/models/operations/experimentevallist.ts +40 -0
- package/packages/orq-rc/src/models/operations/experimentget.ts +36 -0
- package/packages/orq-rc/src/models/operations/experimentlist.ts +47 -0
- package/packages/orq-rc/src/models/operations/experimentreviewcellpatch.ts +55 -0
- package/packages/orq-rc/src/models/operations/experimentreviewcreate.ts +48 -0
- package/packages/orq-rc/src/models/operations/experimentreviewdelete.ts +46 -0
- package/packages/orq-rc/src/models/operations/experimentreviewlist.ts +42 -0
- package/packages/orq-rc/src/models/operations/experimentreviewupdate.ts +52 -0
- package/packages/orq-rc/src/models/operations/experimentruncancel.ts +46 -0
- package/packages/orq-rc/src/models/operations/experimentruncellupdate.ts +55 -0
- package/packages/orq-rc/src/models/operations/experimentruncolumnlayoutupdate.ts +50 -0
- package/packages/orq-rc/src/models/operations/experimentruncreate.ts +41 -0
- package/packages/orq-rc/src/models/operations/experimentrundelete.ts +40 -0
- package/packages/orq-rc/src/models/operations/experimentrunexecute.ts +47 -0
- package/packages/orq-rc/src/models/operations/experimentrunexport.ts +85 -0
- package/packages/orq-rc/src/models/operations/experimentrunget.ts +40 -0
- package/packages/orq-rc/src/models/operations/experimentrunlist.ts +51 -0
- package/packages/orq-rc/src/models/operations/experimentrunmetricsget.ts +46 -0
- package/packages/orq-rc/src/models/operations/experimentrunquery.ts +45 -0
- package/packages/orq-rc/src/models/operations/experimentrunrowduplicate.ts +51 -0
- package/packages/orq-rc/src/models/operations/experimentrunrowsdelete.ts +47 -0
- package/packages/orq-rc/src/models/operations/experimentrunupdate.ts +45 -0
- package/packages/orq-rc/src/models/operations/experimenttaskcellpatch.ts +55 -0
- package/packages/orq-rc/src/models/operations/experimenttaskcreate.ts +47 -0
- package/packages/orq-rc/src/models/operations/experimenttaskdelete.ts +46 -0
- package/packages/orq-rc/src/models/operations/experimenttasklist.ts +40 -0
- package/packages/orq-rc/src/models/operations/experimenttaskupdate.ts +51 -0
- package/packages/orq-rc/src/models/operations/experimentupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +6 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/index.ts +32 -0
- package/packages/orq-rc/src/models/operations/listdeploymentversions.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/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/experiments.ts +585 -0
- package/packages/orq-rc/src/sdk/files.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- 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/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- 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
|
@@ -0,0 +1,108 @@
|
|
|
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 { ArtifactRefs, ArtifactRefs$inboundSchema } from "./artifactrefs.js";
|
|
11
|
+
import { CellProgress, CellProgress$inboundSchema } from "./cellprogress.js";
|
|
12
|
+
import { CellStatus, CellStatus$inboundSchema } from "./cellstatus.js";
|
|
13
|
+
import { CellType, CellType$inboundSchema } from "./celltype.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Stored documents are returned as-is; strings are wrapped as {"text"},
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
20
|
+
* scalars as {"value"}.
|
|
21
|
+
*/
|
|
22
|
+
export type CellValue = {};
|
|
23
|
+
|
|
24
|
+
export type Cell = {
|
|
25
|
+
cellId?: string | undefined;
|
|
26
|
+
rowId?: string | undefined;
|
|
27
|
+
columnId?: string | undefined;
|
|
28
|
+
repeatIndex?: number | undefined;
|
|
29
|
+
status?: CellStatus | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Stored documents are returned as-is; strings are wrapped as {"text"},
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
35
|
+
* scalars as {"value"}.
|
|
36
|
+
*/
|
|
37
|
+
value?: CellValue | undefined;
|
|
38
|
+
artifacts?: ArtifactRefs | undefined;
|
|
39
|
+
progress?: CellProgress | undefined;
|
|
40
|
+
errorMessage?: string | undefined;
|
|
41
|
+
type?: CellType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Task column an evaluator, metric or review cell belongs to.
|
|
44
|
+
*/
|
|
45
|
+
taskColumnId?: string | undefined;
|
|
46
|
+
createdAt?: Date | undefined;
|
|
47
|
+
updatedAt?: Date | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CellValue$inboundSchema: z.ZodType<
|
|
52
|
+
CellValue,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({});
|
|
56
|
+
|
|
57
|
+
export function cellValueFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<CellValue, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => CellValue$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'CellValue' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
69
|
+
.object({
|
|
70
|
+
cell_id: z.string().optional(),
|
|
71
|
+
row_id: z.string().optional(),
|
|
72
|
+
column_id: z.string().optional(),
|
|
73
|
+
repeat_index: z.number().int().optional(),
|
|
74
|
+
status: CellStatus$inboundSchema.optional(),
|
|
75
|
+
value: z.lazy(() => CellValue$inboundSchema).optional(),
|
|
76
|
+
artifacts: ArtifactRefs$inboundSchema.optional(),
|
|
77
|
+
progress: CellProgress$inboundSchema.optional(),
|
|
78
|
+
error_message: z.string().optional(),
|
|
79
|
+
type: CellType$inboundSchema.optional(),
|
|
80
|
+
task_column_id: z.string().optional(),
|
|
81
|
+
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
82
|
+
new Date(v)
|
|
83
|
+
).optional(),
|
|
84
|
+
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
85
|
+
new Date(v)
|
|
86
|
+
).optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
"cell_id": "cellId",
|
|
90
|
+
"row_id": "rowId",
|
|
91
|
+
"column_id": "columnId",
|
|
92
|
+
"repeat_index": "repeatIndex",
|
|
93
|
+
"error_message": "errorMessage",
|
|
94
|
+
"task_column_id": "taskColumnId",
|
|
95
|
+
"created_at": "createdAt",
|
|
96
|
+
"updated_at": "updatedAt",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export function cellFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<Cell, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => Cell$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'Cell' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { 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 CellProgress = {
|
|
12
|
+
elapsed?: string | undefined;
|
|
13
|
+
spendUsd?: number | undefined;
|
|
14
|
+
activity?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CellProgress$inboundSchema: z.ZodType<
|
|
19
|
+
CellProgress,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
elapsed: z.string().optional(),
|
|
24
|
+
spend_usd: z.number().optional(),
|
|
25
|
+
activity: z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"spend_usd": "spendUsd",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function cellProgressFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<CellProgress, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => CellProgress$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'CellProgress' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 CellStatus = {
|
|
9
|
+
CellStatusUnspecified: "CELL_STATUS_UNSPECIFIED",
|
|
10
|
+
CellStatusNotRun: "CELL_STATUS_NOT_RUN",
|
|
11
|
+
CellStatusQueued: "CELL_STATUS_QUEUED",
|
|
12
|
+
CellStatusRunning: "CELL_STATUS_RUNNING",
|
|
13
|
+
CellStatusCompleted: "CELL_STATUS_COMPLETED",
|
|
14
|
+
CellStatusFailed: "CELL_STATUS_FAILED",
|
|
15
|
+
CellStatusCanceled: "CELL_STATUS_CANCELED",
|
|
16
|
+
} as const;
|
|
17
|
+
export type CellStatus = ClosedEnum<typeof CellStatus>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CellStatus$inboundSchema: z.ZodNativeEnum<typeof CellStatus> = z
|
|
21
|
+
.nativeEnum(CellStatus);
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CellStatusCounts = {
|
|
12
|
+
notRun?: number | undefined;
|
|
13
|
+
queued?: number | undefined;
|
|
14
|
+
running?: number | undefined;
|
|
15
|
+
completed?: number | undefined;
|
|
16
|
+
failed?: number | undefined;
|
|
17
|
+
canceled?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CellStatusCounts$inboundSchema: z.ZodType<
|
|
22
|
+
CellStatusCounts,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
not_run: z.number().int().optional(),
|
|
27
|
+
queued: z.number().int().optional(),
|
|
28
|
+
running: z.number().int().optional(),
|
|
29
|
+
completed: z.number().int().optional(),
|
|
30
|
+
failed: z.number().int().optional(),
|
|
31
|
+
canceled: z.number().int().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"not_run": "notRun",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function cellStatusCountsFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<CellStatusCounts, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => CellStatusCounts$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'CellStatusCounts' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 CellType = {
|
|
9
|
+
CellTypeUnspecified: "CELL_TYPE_UNSPECIFIED",
|
|
10
|
+
CellTypeText: "CELL_TYPE_TEXT",
|
|
11
|
+
CellTypeNumber: "CELL_TYPE_NUMBER",
|
|
12
|
+
CellTypeInputs: "CELL_TYPE_INPUTS",
|
|
13
|
+
CellTypeMessages: "CELL_TYPE_MESSAGES",
|
|
14
|
+
CellTypeResponse: "CELL_TYPE_RESPONSE",
|
|
15
|
+
CellTypeAgentResponse: "CELL_TYPE_AGENT_RESPONSE",
|
|
16
|
+
CellTypeEvaluator: "CELL_TYPE_EVALUATOR",
|
|
17
|
+
CellTypeMetric: "CELL_TYPE_METRIC",
|
|
18
|
+
CellTypeHumanEval: "CELL_TYPE_HUMAN_EVAL",
|
|
19
|
+
CellTypeOpenresponse: "CELL_TYPE_OPENRESPONSE",
|
|
20
|
+
} as const;
|
|
21
|
+
export type CellType = ClosedEnum<typeof CellType>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CellType$inboundSchema: z.ZodNativeEnum<typeof CellType> = z
|
|
25
|
+
.nativeEnum(CellType);
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
AgentTaskConfig,
|
|
12
|
+
AgentTaskConfig$inboundSchema,
|
|
13
|
+
} from "./agenttaskconfig.js";
|
|
14
|
+
import {
|
|
15
|
+
DatasetColumnConfig,
|
|
16
|
+
DatasetColumnConfig$inboundSchema,
|
|
17
|
+
} from "./datasetcolumnconfig.js";
|
|
18
|
+
import {
|
|
19
|
+
EvalColumnConfig,
|
|
20
|
+
EvalColumnConfig$inboundSchema,
|
|
21
|
+
} from "./evalcolumnconfig.js";
|
|
22
|
+
import {
|
|
23
|
+
HarnessTaskConfig,
|
|
24
|
+
HarnessTaskConfig$inboundSchema,
|
|
25
|
+
} from "./harnesstaskconfig.js";
|
|
26
|
+
import {
|
|
27
|
+
JobOutputColumnConfig,
|
|
28
|
+
JobOutputColumnConfig$inboundSchema,
|
|
29
|
+
} from "./joboutputcolumnconfig.js";
|
|
30
|
+
import {
|
|
31
|
+
MetricColumnConfig,
|
|
32
|
+
MetricColumnConfig$inboundSchema,
|
|
33
|
+
} from "./metriccolumnconfig.js";
|
|
34
|
+
import {
|
|
35
|
+
OpenResponseTaskConfig,
|
|
36
|
+
OpenResponseTaskConfig$inboundSchema,
|
|
37
|
+
} from "./openresponsetaskconfig.js";
|
|
38
|
+
import {
|
|
39
|
+
PromptTaskConfig,
|
|
40
|
+
PromptTaskConfig$inboundSchema,
|
|
41
|
+
} from "./prompttaskconfig.js";
|
|
42
|
+
import {
|
|
43
|
+
ReviewColumnConfig,
|
|
44
|
+
ReviewColumnConfig$inboundSchema,
|
|
45
|
+
} from "./reviewcolumnconfig.js";
|
|
46
|
+
|
|
47
|
+
export type Column = {
|
|
48
|
+
columnId?: string | undefined;
|
|
49
|
+
key?: string | undefined;
|
|
50
|
+
displayName?: string | undefined;
|
|
51
|
+
position?: number | undefined;
|
|
52
|
+
active?: boolean | undefined;
|
|
53
|
+
prompt?: PromptTaskConfig | undefined;
|
|
54
|
+
agent?: AgentTaskConfig | undefined;
|
|
55
|
+
harness?: HarnessTaskConfig | undefined;
|
|
56
|
+
openresponse?: OpenResponseTaskConfig | undefined;
|
|
57
|
+
evaluator?: EvalColumnConfig | undefined;
|
|
58
|
+
review?: ReviewColumnConfig | undefined;
|
|
59
|
+
dataset?: DatasetColumnConfig | undefined;
|
|
60
|
+
metric?: MetricColumnConfig | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Output of one evaluatorq job; the column holds the text each job produced.
|
|
63
|
+
*/
|
|
64
|
+
jobOutput?: JobOutputColumnConfig | undefined;
|
|
65
|
+
width?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const Column$inboundSchema: z.ZodType<Column, z.ZodTypeDef, unknown> = z
|
|
70
|
+
.object({
|
|
71
|
+
column_id: z.string().optional(),
|
|
72
|
+
key: z.string().optional(),
|
|
73
|
+
display_name: z.string().optional(),
|
|
74
|
+
position: z.number().int().optional(),
|
|
75
|
+
active: z.boolean().optional(),
|
|
76
|
+
prompt: PromptTaskConfig$inboundSchema.optional(),
|
|
77
|
+
agent: AgentTaskConfig$inboundSchema.optional(),
|
|
78
|
+
harness: HarnessTaskConfig$inboundSchema.optional(),
|
|
79
|
+
openresponse: OpenResponseTaskConfig$inboundSchema.optional(),
|
|
80
|
+
evaluator: EvalColumnConfig$inboundSchema.optional(),
|
|
81
|
+
review: ReviewColumnConfig$inboundSchema.optional(),
|
|
82
|
+
dataset: DatasetColumnConfig$inboundSchema.optional(),
|
|
83
|
+
metric: MetricColumnConfig$inboundSchema.optional(),
|
|
84
|
+
job_output: JobOutputColumnConfig$inboundSchema.optional(),
|
|
85
|
+
width: z.number().int().optional(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return remap$(v, {
|
|
88
|
+
"column_id": "columnId",
|
|
89
|
+
"display_name": "displayName",
|
|
90
|
+
"job_output": "jobOutput",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export function columnFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<Column, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => Column$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'Column' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -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
|
+
|
|
8
|
+
export type ColumnLayout = {
|
|
9
|
+
columnId?: string | undefined;
|
|
10
|
+
position?: number | undefined;
|
|
11
|
+
width?: number | undefined;
|
|
12
|
+
active?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ColumnLayout$Outbound = {
|
|
17
|
+
column_id?: string | undefined;
|
|
18
|
+
position?: number | undefined;
|
|
19
|
+
width?: number | undefined;
|
|
20
|
+
active?: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ColumnLayout$outboundSchema: z.ZodType<
|
|
25
|
+
ColumnLayout$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
ColumnLayout
|
|
28
|
+
> = z.object({
|
|
29
|
+
columnId: z.string().optional(),
|
|
30
|
+
position: z.number().int().optional(),
|
|
31
|
+
width: z.number().int().optional(),
|
|
32
|
+
active: z.boolean().optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
columnId: "column_id",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function columnLayoutToJSON(columnLayout: ColumnLayout): string {
|
|
40
|
+
return JSON.stringify(ColumnLayout$outboundSchema.parse(columnLayout));
|
|
41
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 CreateEvalColumnRequest = {
|
|
9
|
+
evaluatorId?: string | undefined;
|
|
10
|
+
position?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type CreateEvalColumnRequest$Outbound = {
|
|
15
|
+
evaluator_id?: string | undefined;
|
|
16
|
+
position?: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CreateEvalColumnRequest$outboundSchema: z.ZodType<
|
|
21
|
+
CreateEvalColumnRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
CreateEvalColumnRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
evaluatorId: z.string().optional(),
|
|
26
|
+
position: z.number().int().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
evaluatorId: "evaluator_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function createEvalColumnRequestToJSON(
|
|
34
|
+
createEvalColumnRequest: CreateEvalColumnRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
CreateEvalColumnRequest$outboundSchema.parse(createEvalColumnRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { RunRef, RunRef$Outbound, RunRef$outboundSchema } from "./runref.js";
|
|
8
|
+
|
|
9
|
+
export type CreateExperimentRequest = {
|
|
10
|
+
displayName?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Project the experiment is created in; defaults to the API key's project when omitted.
|
|
13
|
+
*/
|
|
14
|
+
projectId?: string | undefined;
|
|
15
|
+
datasetId?: string | undefined;
|
|
16
|
+
datasetVersionId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Copies the task, evaluator and review columns of an existing run into the
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* new experiment's first run (fork).
|
|
22
|
+
*/
|
|
23
|
+
sourceRun?: RunRef | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type CreateExperimentRequest$Outbound = {
|
|
28
|
+
display_name?: string | undefined;
|
|
29
|
+
project_id?: string | undefined;
|
|
30
|
+
dataset_id?: string | undefined;
|
|
31
|
+
dataset_version_id?: string | undefined;
|
|
32
|
+
source_run?: RunRef$Outbound | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const CreateExperimentRequest$outboundSchema: z.ZodType<
|
|
37
|
+
CreateExperimentRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
CreateExperimentRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
displayName: z.string().optional(),
|
|
42
|
+
projectId: z.string().optional(),
|
|
43
|
+
datasetId: z.string().optional(),
|
|
44
|
+
datasetVersionId: z.string().optional(),
|
|
45
|
+
sourceRun: RunRef$outboundSchema.optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
displayName: "display_name",
|
|
49
|
+
projectId: "project_id",
|
|
50
|
+
datasetId: "dataset_id",
|
|
51
|
+
datasetVersionId: "dataset_version_id",
|
|
52
|
+
sourceRun: "source_run",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function createExperimentRequestToJSON(
|
|
57
|
+
createExperimentRequest: CreateExperimentRequest,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
CreateExperimentRequest$outboundSchema.parse(createExperimentRequest),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type CreateReviewColumnRequest = {
|
|
9
|
+
humanEvalId?: string | undefined;
|
|
10
|
+
displayName?: string | undefined;
|
|
11
|
+
humanEvalType?: string | undefined;
|
|
12
|
+
position?: number | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type CreateReviewColumnRequest$Outbound = {
|
|
17
|
+
human_eval_id?: string | undefined;
|
|
18
|
+
display_name?: string | undefined;
|
|
19
|
+
human_eval_type?: string | undefined;
|
|
20
|
+
position?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CreateReviewColumnRequest$outboundSchema: z.ZodType<
|
|
25
|
+
CreateReviewColumnRequest$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
CreateReviewColumnRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
humanEvalId: z.string().optional(),
|
|
30
|
+
displayName: z.string().optional(),
|
|
31
|
+
humanEvalType: z.string().optional(),
|
|
32
|
+
position: z.number().int().optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
humanEvalId: "human_eval_id",
|
|
36
|
+
displayName: "display_name",
|
|
37
|
+
humanEvalType: "human_eval_type",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function createReviewColumnRequestToJSON(
|
|
42
|
+
createReviewColumnRequest: CreateReviewColumnRequest,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
CreateReviewColumnRequest$outboundSchema.parse(createReviewColumnRequest),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
RunSettings,
|
|
8
|
+
RunSettings$Outbound,
|
|
9
|
+
RunSettings$outboundSchema,
|
|
10
|
+
} from "./runsettings.js";
|
|
11
|
+
|
|
12
|
+
export type CreateRunRequest = {
|
|
13
|
+
key?: string | undefined;
|
|
14
|
+
settings?: RunSettings | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type CreateRunRequest$Outbound = {
|
|
19
|
+
key?: string | undefined;
|
|
20
|
+
settings?: RunSettings$Outbound | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CreateRunRequest$outboundSchema: z.ZodType<
|
|
25
|
+
CreateRunRequest$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
CreateRunRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
key: z.string().optional(),
|
|
30
|
+
settings: RunSettings$outboundSchema.optional(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function createRunRequestToJSON(
|
|
34
|
+
createRunRequest: CreateRunRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
CreateRunRequest$outboundSchema.parse(createRunRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
AgentTaskConfig,
|
|
9
|
+
AgentTaskConfig$Outbound,
|
|
10
|
+
AgentTaskConfig$outboundSchema,
|
|
11
|
+
} from "./agenttaskconfig.js";
|
|
12
|
+
import {
|
|
13
|
+
HarnessTaskConfig,
|
|
14
|
+
HarnessTaskConfig$Outbound,
|
|
15
|
+
HarnessTaskConfig$outboundSchema,
|
|
16
|
+
} from "./harnesstaskconfig.js";
|
|
17
|
+
import {
|
|
18
|
+
OpenResponseTaskConfig,
|
|
19
|
+
OpenResponseTaskConfig$Outbound,
|
|
20
|
+
OpenResponseTaskConfig$outboundSchema,
|
|
21
|
+
} from "./openresponsetaskconfig.js";
|
|
22
|
+
import {
|
|
23
|
+
PromptTaskConfig,
|
|
24
|
+
PromptTaskConfig$Outbound,
|
|
25
|
+
PromptTaskConfig$outboundSchema,
|
|
26
|
+
} from "./prompttaskconfig.js";
|
|
27
|
+
|
|
28
|
+
export type CreateTaskColumnRequest = {
|
|
29
|
+
displayName?: string | undefined;
|
|
30
|
+
prompt?: PromptTaskConfig | undefined;
|
|
31
|
+
agent?: AgentTaskConfig | undefined;
|
|
32
|
+
harness?: HarnessTaskConfig | undefined;
|
|
33
|
+
openresponse?: OpenResponseTaskConfig | undefined;
|
|
34
|
+
position?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type CreateTaskColumnRequest$Outbound = {
|
|
39
|
+
display_name?: string | undefined;
|
|
40
|
+
prompt?: PromptTaskConfig$Outbound | undefined;
|
|
41
|
+
agent?: AgentTaskConfig$Outbound | undefined;
|
|
42
|
+
harness?: HarnessTaskConfig$Outbound | undefined;
|
|
43
|
+
openresponse?: OpenResponseTaskConfig$Outbound | undefined;
|
|
44
|
+
position?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CreateTaskColumnRequest$outboundSchema: z.ZodType<
|
|
49
|
+
CreateTaskColumnRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
CreateTaskColumnRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
displayName: z.string().optional(),
|
|
54
|
+
prompt: PromptTaskConfig$outboundSchema.optional(),
|
|
55
|
+
agent: AgentTaskConfig$outboundSchema.optional(),
|
|
56
|
+
harness: HarnessTaskConfig$outboundSchema.optional(),
|
|
57
|
+
openresponse: OpenResponseTaskConfig$outboundSchema.optional(),
|
|
58
|
+
position: z.number().int().optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
displayName: "display_name",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function createTaskColumnRequestToJSON(
|
|
66
|
+
createTaskColumnRequest: CreateTaskColumnRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
CreateTaskColumnRequest$outboundSchema.parse(createTaskColumnRequest),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -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
|
+
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 DatasetColumnConfig = {
|
|
12
|
+
columnType?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DatasetColumnConfig$inboundSchema: z.ZodType<
|
|
17
|
+
DatasetColumnConfig,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
column_type: z.string().optional(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"column_type": "columnType",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function datasetColumnConfigFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<DatasetColumnConfig, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) => DatasetColumnConfig$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'DatasetColumnConfig' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|