@orq-ai/node 4.17.19 → 4.17.21
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 +3 -3
- 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 +92 -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 +63 -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/mcptool.ts +52 -0
- package/packages/orq-rc/src/models/components/mcptoolannotations.ts +7 -2
- 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/updatedatasetrequest.ts +6 -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,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 MetricColumnConfig = {
|
|
12
|
+
metricKey?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const MetricColumnConfig$inboundSchema: z.ZodType<
|
|
17
|
+
MetricColumnConfig,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
metric_key: z.string().optional(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"metric_key": "metricKey",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function metricColumnConfigFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<MetricColumnConfig, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) => MetricColumnConfig$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'MetricColumnConfig' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -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 { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BooleanMetricSummary,
|
|
11
|
+
BooleanMetricSummary$inboundSchema,
|
|
12
|
+
} from "./booleanmetricsummary.js";
|
|
13
|
+
import {
|
|
14
|
+
CategoricalMetricSummary,
|
|
15
|
+
CategoricalMetricSummary$inboundSchema,
|
|
16
|
+
} from "./categoricalmetricsummary.js";
|
|
17
|
+
import {
|
|
18
|
+
MetricBaseline,
|
|
19
|
+
MetricBaseline$inboundSchema,
|
|
20
|
+
} from "./metricbaseline.js";
|
|
21
|
+
import {
|
|
22
|
+
NumberMetricSummary,
|
|
23
|
+
NumberMetricSummary$inboundSchema,
|
|
24
|
+
} from "./numbermetricsummary.js";
|
|
25
|
+
|
|
26
|
+
export type MetricSummary = {
|
|
27
|
+
number?: NumberMetricSummary | undefined;
|
|
28
|
+
boolean?: BooleanMetricSummary | undefined;
|
|
29
|
+
categorical?: CategoricalMetricSummary | undefined;
|
|
30
|
+
baseline?: MetricBaseline | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const MetricSummary$inboundSchema: z.ZodType<
|
|
35
|
+
MetricSummary,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
number: NumberMetricSummary$inboundSchema.optional(),
|
|
40
|
+
boolean: BooleanMetricSummary$inboundSchema.optional(),
|
|
41
|
+
categorical: CategoricalMetricSummary$inboundSchema.optional(),
|
|
42
|
+
baseline: MetricBaseline$inboundSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function metricSummaryFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<MetricSummary, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => MetricSummary$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'MetricSummary' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
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 NumberMetricSummary = {
|
|
12
|
+
min?: number | undefined;
|
|
13
|
+
max?: number | undefined;
|
|
14
|
+
avg?: number | undefined;
|
|
15
|
+
sum?: number | undefined;
|
|
16
|
+
median?: number | undefined;
|
|
17
|
+
range?: number | undefined;
|
|
18
|
+
stdDev?: number | undefined;
|
|
19
|
+
count?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const NumberMetricSummary$inboundSchema: z.ZodType<
|
|
24
|
+
NumberMetricSummary,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
min: z.number().optional(),
|
|
29
|
+
max: z.number().optional(),
|
|
30
|
+
avg: z.number().optional(),
|
|
31
|
+
sum: z.number().optional(),
|
|
32
|
+
median: z.number().optional(),
|
|
33
|
+
range: z.number().optional(),
|
|
34
|
+
std_dev: z.number().optional(),
|
|
35
|
+
count: z.number().int().optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"std_dev": "stdDev",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function numberMetricSummaryFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<NumberMetricSummary, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => NumberMetricSummary$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'NumberMetricSummary' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { 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 OpenResponseTaskConfig = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const OpenResponseTaskConfig$inboundSchema: z.ZodType<
|
|
14
|
+
OpenResponseTaskConfig,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type OpenResponseTaskConfig$Outbound = {};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const OpenResponseTaskConfig$outboundSchema: z.ZodType<
|
|
23
|
+
OpenResponseTaskConfig$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
OpenResponseTaskConfig
|
|
26
|
+
> = z.object({});
|
|
27
|
+
|
|
28
|
+
export function openResponseTaskConfigToJSON(
|
|
29
|
+
openResponseTaskConfig: OpenResponseTaskConfig,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
OpenResponseTaskConfig$outboundSchema.parse(openResponseTaskConfig),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export function openResponseTaskConfigFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<OpenResponseTaskConfig, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) => OpenResponseTaskConfig$inboundSchema.parse(JSON.parse(x)),
|
|
41
|
+
`Failed to parse 'OpenResponseTaskConfig' from JSON`,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -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
|
+
|
|
7
|
+
export type Value = {};
|
|
8
|
+
|
|
9
|
+
export type PatchEvalCellRequest = {
|
|
10
|
+
value?: Value | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type Value$Outbound = {};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Value$outboundSchema: z.ZodType<
|
|
18
|
+
Value$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
Value
|
|
21
|
+
> = z.object({});
|
|
22
|
+
|
|
23
|
+
export function valueToJSON(value: Value): string {
|
|
24
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type PatchEvalCellRequest$Outbound = {
|
|
29
|
+
value?: Value$Outbound | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const PatchEvalCellRequest$outboundSchema: z.ZodType<
|
|
34
|
+
PatchEvalCellRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
PatchEvalCellRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
value: z.lazy(() => Value$outboundSchema).optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function patchEvalCellRequestToJSON(
|
|
42
|
+
patchEvalCellRequest: PatchEvalCellRequest,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
PatchEvalCellRequest$outboundSchema.parse(patchEvalCellRequest),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -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
|
+
|
|
7
|
+
export type PatchReviewCellRequestValue = {};
|
|
8
|
+
|
|
9
|
+
export type PatchReviewCellRequest = {
|
|
10
|
+
value?: PatchReviewCellRequestValue | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type PatchReviewCellRequestValue$Outbound = {};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PatchReviewCellRequestValue$outboundSchema: z.ZodType<
|
|
18
|
+
PatchReviewCellRequestValue$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
PatchReviewCellRequestValue
|
|
21
|
+
> = z.object({});
|
|
22
|
+
|
|
23
|
+
export function patchReviewCellRequestValueToJSON(
|
|
24
|
+
patchReviewCellRequestValue: PatchReviewCellRequestValue,
|
|
25
|
+
): string {
|
|
26
|
+
return JSON.stringify(
|
|
27
|
+
PatchReviewCellRequestValue$outboundSchema.parse(
|
|
28
|
+
patchReviewCellRequestValue,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type PatchReviewCellRequest$Outbound = {
|
|
35
|
+
value?: PatchReviewCellRequestValue$Outbound | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const PatchReviewCellRequest$outboundSchema: z.ZodType<
|
|
40
|
+
PatchReviewCellRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
PatchReviewCellRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
value: z.lazy(() => PatchReviewCellRequestValue$outboundSchema).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function patchReviewCellRequestToJSON(
|
|
48
|
+
patchReviewCellRequest: PatchReviewCellRequest,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
PatchReviewCellRequest$outboundSchema.parse(patchReviewCellRequest),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
ArtifactRefs,
|
|
9
|
+
ArtifactRefs$Outbound,
|
|
10
|
+
ArtifactRefs$outboundSchema,
|
|
11
|
+
} from "./artifactrefs.js";
|
|
12
|
+
|
|
13
|
+
export type PatchTaskCellRequestValue = {};
|
|
14
|
+
|
|
15
|
+
export type PatchTaskCellRequest = {
|
|
16
|
+
repeatIndex?: number | undefined;
|
|
17
|
+
value?: PatchTaskCellRequestValue | undefined;
|
|
18
|
+
artifacts?: ArtifactRefs | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type PatchTaskCellRequestValue$Outbound = {};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const PatchTaskCellRequestValue$outboundSchema: z.ZodType<
|
|
26
|
+
PatchTaskCellRequestValue$Outbound,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
PatchTaskCellRequestValue
|
|
29
|
+
> = z.object({});
|
|
30
|
+
|
|
31
|
+
export function patchTaskCellRequestValueToJSON(
|
|
32
|
+
patchTaskCellRequestValue: PatchTaskCellRequestValue,
|
|
33
|
+
): string {
|
|
34
|
+
return JSON.stringify(
|
|
35
|
+
PatchTaskCellRequestValue$outboundSchema.parse(patchTaskCellRequestValue),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type PatchTaskCellRequest$Outbound = {
|
|
41
|
+
repeat_index?: number | undefined;
|
|
42
|
+
value?: PatchTaskCellRequestValue$Outbound | undefined;
|
|
43
|
+
artifacts?: ArtifactRefs$Outbound | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const PatchTaskCellRequest$outboundSchema: z.ZodType<
|
|
48
|
+
PatchTaskCellRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
PatchTaskCellRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
repeatIndex: z.number().int().optional(),
|
|
53
|
+
value: z.lazy(() => PatchTaskCellRequestValue$outboundSchema).optional(),
|
|
54
|
+
artifacts: ArtifactRefs$outboundSchema.optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
repeatIndex: "repeat_index",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function patchTaskCellRequestToJSON(
|
|
62
|
+
patchTaskCellRequest: PatchTaskCellRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
PatchTaskCellRequest$outboundSchema.parse(patchTaskCellRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
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
|
+
MessagesSource,
|
|
12
|
+
MessagesSource$inboundSchema,
|
|
13
|
+
MessagesSource$outboundSchema,
|
|
14
|
+
} from "./messagessource.js";
|
|
15
|
+
|
|
16
|
+
export type PromptConfig = {};
|
|
17
|
+
|
|
18
|
+
export type Tools = {};
|
|
19
|
+
|
|
20
|
+
export type KnowledgeBases = {};
|
|
21
|
+
|
|
22
|
+
export type PromptTaskConfigMetadata = {};
|
|
23
|
+
|
|
24
|
+
export type EntityConfiguration = {};
|
|
25
|
+
|
|
26
|
+
export type PromptTaskConfig = {
|
|
27
|
+
promptConfig?: PromptConfig | undefined;
|
|
28
|
+
messagesSource?: MessagesSource | undefined;
|
|
29
|
+
engine?: string | undefined;
|
|
30
|
+
tools?: Array<Tools> | undefined;
|
|
31
|
+
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
32
|
+
metadata?: PromptTaskConfigMetadata | undefined;
|
|
33
|
+
entityConfiguration?: EntityConfiguration | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PromptConfig$inboundSchema: z.ZodType<
|
|
38
|
+
PromptConfig,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({});
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type PromptConfig$Outbound = {};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PromptConfig$outboundSchema: z.ZodType<
|
|
47
|
+
PromptConfig$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PromptConfig
|
|
50
|
+
> = z.object({});
|
|
51
|
+
|
|
52
|
+
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
53
|
+
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
54
|
+
}
|
|
55
|
+
export function promptConfigFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'PromptConfig' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
67
|
+
.object({});
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type Tools$Outbound = {};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const Tools$outboundSchema: z.ZodType<
|
|
73
|
+
Tools$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
Tools
|
|
76
|
+
> = z.object({});
|
|
77
|
+
|
|
78
|
+
export function toolsToJSON(tools: Tools): string {
|
|
79
|
+
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
80
|
+
}
|
|
81
|
+
export function toolsFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<Tools, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'Tools' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
93
|
+
KnowledgeBases,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({});
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type KnowledgeBases$Outbound = {};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
102
|
+
KnowledgeBases$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
KnowledgeBases
|
|
105
|
+
> = z.object({});
|
|
106
|
+
|
|
107
|
+
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
108
|
+
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
109
|
+
}
|
|
110
|
+
export function knowledgeBasesFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const PromptTaskConfigMetadata$inboundSchema: z.ZodType<
|
|
122
|
+
PromptTaskConfigMetadata,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({});
|
|
126
|
+
/** @internal */
|
|
127
|
+
export type PromptTaskConfigMetadata$Outbound = {};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const PromptTaskConfigMetadata$outboundSchema: z.ZodType<
|
|
131
|
+
PromptTaskConfigMetadata$Outbound,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
PromptTaskConfigMetadata
|
|
134
|
+
> = z.object({});
|
|
135
|
+
|
|
136
|
+
export function promptTaskConfigMetadataToJSON(
|
|
137
|
+
promptTaskConfigMetadata: PromptTaskConfigMetadata,
|
|
138
|
+
): string {
|
|
139
|
+
return JSON.stringify(
|
|
140
|
+
PromptTaskConfigMetadata$outboundSchema.parse(promptTaskConfigMetadata),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
export function promptTaskConfigMetadataFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<PromptTaskConfigMetadata, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => PromptTaskConfigMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'PromptTaskConfigMetadata' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const EntityConfiguration$inboundSchema: z.ZodType<
|
|
155
|
+
EntityConfiguration,
|
|
156
|
+
z.ZodTypeDef,
|
|
157
|
+
unknown
|
|
158
|
+
> = z.object({});
|
|
159
|
+
/** @internal */
|
|
160
|
+
export type EntityConfiguration$Outbound = {};
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const EntityConfiguration$outboundSchema: z.ZodType<
|
|
164
|
+
EntityConfiguration$Outbound,
|
|
165
|
+
z.ZodTypeDef,
|
|
166
|
+
EntityConfiguration
|
|
167
|
+
> = z.object({});
|
|
168
|
+
|
|
169
|
+
export function entityConfigurationToJSON(
|
|
170
|
+
entityConfiguration: EntityConfiguration,
|
|
171
|
+
): string {
|
|
172
|
+
return JSON.stringify(
|
|
173
|
+
EntityConfiguration$outboundSchema.parse(entityConfiguration),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
export function entityConfigurationFromJSON(
|
|
177
|
+
jsonString: string,
|
|
178
|
+
): SafeParseResult<EntityConfiguration, SDKValidationError> {
|
|
179
|
+
return safeParse(
|
|
180
|
+
jsonString,
|
|
181
|
+
(x) => EntityConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
+
`Failed to parse 'EntityConfiguration' from JSON`,
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** @internal */
|
|
187
|
+
export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
188
|
+
PromptTaskConfig,
|
|
189
|
+
z.ZodTypeDef,
|
|
190
|
+
unknown
|
|
191
|
+
> = z.object({
|
|
192
|
+
prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
|
|
193
|
+
messages_source: MessagesSource$inboundSchema.optional(),
|
|
194
|
+
engine: z.string().optional(),
|
|
195
|
+
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
196
|
+
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
197
|
+
.optional(),
|
|
198
|
+
metadata: z.lazy(() => PromptTaskConfigMetadata$inboundSchema).optional(),
|
|
199
|
+
entity_configuration: z.lazy(() => EntityConfiguration$inboundSchema)
|
|
200
|
+
.optional(),
|
|
201
|
+
}).transform((v) => {
|
|
202
|
+
return remap$(v, {
|
|
203
|
+
"prompt_config": "promptConfig",
|
|
204
|
+
"messages_source": "messagesSource",
|
|
205
|
+
"knowledge_bases": "knowledgeBases",
|
|
206
|
+
"entity_configuration": "entityConfiguration",
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type PromptTaskConfig$Outbound = {
|
|
211
|
+
prompt_config?: PromptConfig$Outbound | undefined;
|
|
212
|
+
messages_source?: string | undefined;
|
|
213
|
+
engine?: string | undefined;
|
|
214
|
+
tools?: Array<Tools$Outbound> | undefined;
|
|
215
|
+
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
216
|
+
metadata?: PromptTaskConfigMetadata$Outbound | undefined;
|
|
217
|
+
entity_configuration?: EntityConfiguration$Outbound | undefined;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const PromptTaskConfig$outboundSchema: z.ZodType<
|
|
222
|
+
PromptTaskConfig$Outbound,
|
|
223
|
+
z.ZodTypeDef,
|
|
224
|
+
PromptTaskConfig
|
|
225
|
+
> = z.object({
|
|
226
|
+
promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
|
|
227
|
+
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
228
|
+
engine: z.string().optional(),
|
|
229
|
+
tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
|
|
230
|
+
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
231
|
+
.optional(),
|
|
232
|
+
metadata: z.lazy(() => PromptTaskConfigMetadata$outboundSchema).optional(),
|
|
233
|
+
entityConfiguration: z.lazy(() => EntityConfiguration$outboundSchema)
|
|
234
|
+
.optional(),
|
|
235
|
+
}).transform((v) => {
|
|
236
|
+
return remap$(v, {
|
|
237
|
+
promptConfig: "prompt_config",
|
|
238
|
+
messagesSource: "messages_source",
|
|
239
|
+
knowledgeBases: "knowledge_bases",
|
|
240
|
+
entityConfiguration: "entity_configuration",
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
export function promptTaskConfigToJSON(
|
|
245
|
+
promptTaskConfig: PromptTaskConfig,
|
|
246
|
+
): string {
|
|
247
|
+
return JSON.stringify(
|
|
248
|
+
PromptTaskConfig$outboundSchema.parse(promptTaskConfig),
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
export function promptTaskConfigFromJSON(
|
|
252
|
+
jsonString: string,
|
|
253
|
+
): SafeParseResult<PromptTaskConfig, SDKValidationError> {
|
|
254
|
+
return safeParse(
|
|
255
|
+
jsonString,
|
|
256
|
+
(x) => PromptTaskConfig$inboundSchema.parse(JSON.parse(x)),
|
|
257
|
+
`Failed to parse 'PromptTaskConfig' from JSON`,
|
|
258
|
+
);
|
|
259
|
+
}
|
|
@@ -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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Cell, Cell$inboundSchema } from "./cell.js";
|
|
11
|
+
import { RowStatus, RowStatus$inboundSchema } from "./rowstatus.js";
|
|
12
|
+
|
|
13
|
+
export type QueryRow = {
|
|
14
|
+
rowId?: string | undefined;
|
|
15
|
+
displayName?: string | undefined;
|
|
16
|
+
cells?: Array<Cell> | undefined;
|
|
17
|
+
status?: RowStatus | undefined;
|
|
18
|
+
createdAt?: Date | undefined;
|
|
19
|
+
updatedAt?: Date | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const QueryRow$inboundSchema: z.ZodType<
|
|
24
|
+
QueryRow,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
row_id: z.string().optional(),
|
|
29
|
+
display_name: z.string().optional(),
|
|
30
|
+
cells: z.array(Cell$inboundSchema).optional(),
|
|
31
|
+
status: RowStatus$inboundSchema.optional(),
|
|
32
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
33
|
+
.optional(),
|
|
34
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
35
|
+
.optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"row_id": "rowId",
|
|
39
|
+
"display_name": "displayName",
|
|
40
|
+
"created_at": "createdAt",
|
|
41
|
+
"updated_at": "updatedAt",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function queryRowFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<QueryRow, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => QueryRow$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'QueryRow' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|