@orq-ai/node 4.17.20 → 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.
Files changed (174) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createtool.js +4 -4
  6. package/models/operations/getalltools.js +4 -4
  7. package/models/operations/getv2humanevalsets.js +2 -2
  8. package/models/operations/getv2humanevalsetsid.js +2 -2
  9. package/models/operations/listdeploymentversions.js +1 -1
  10. package/models/operations/patchv2humanevalsetsid.js +2 -2
  11. package/models/operations/postv2humanevalsets.js +2 -2
  12. package/models/operations/retrievetool.js +4 -4
  13. package/models/operations/runagent.js +1 -1
  14. package/models/operations/streamrunagent.js +1 -1
  15. package/models/operations/updatetool.js +4 -4
  16. package/package.json +9 -9
  17. package/packages/orq-rc/src/funcs/experimentsCancelRun.ts +187 -0
  18. package/packages/orq-rc/src/funcs/experimentsCreate.ts +171 -0
  19. package/packages/orq-rc/src/funcs/experimentsCreateEval.ts +187 -0
  20. package/packages/orq-rc/src/funcs/experimentsCreateReview.ts +184 -0
  21. package/packages/orq-rc/src/funcs/experimentsCreateRun.ts +179 -0
  22. package/packages/orq-rc/src/funcs/experimentsCreateTask.ts +187 -0
  23. package/packages/orq-rc/src/funcs/experimentsDelete.ts +177 -0
  24. package/packages/orq-rc/src/funcs/experimentsDeleteEval.ts +185 -0
  25. package/packages/orq-rc/src/funcs/experimentsDeleteReview.ts +185 -0
  26. package/packages/orq-rc/src/funcs/experimentsDeleteRows.ts +185 -0
  27. package/packages/orq-rc/src/funcs/experimentsDeleteRun.ts +184 -0
  28. package/packages/orq-rc/src/funcs/experimentsDeleteTask.ts +185 -0
  29. package/packages/orq-rc/src/funcs/experimentsDuplicateRow.ts +191 -0
  30. package/packages/orq-rc/src/funcs/experimentsExecuteRun.ts +185 -0
  31. package/packages/orq-rc/src/funcs/experimentsExportRun.ts +203 -0
  32. package/packages/orq-rc/src/funcs/experimentsGet.ts +177 -0
  33. package/packages/orq-rc/src/funcs/experimentsGetRun.ts +183 -0
  34. package/packages/orq-rc/src/funcs/experimentsGetRunMetrics.ts +189 -0
  35. package/packages/orq-rc/src/funcs/experimentsList.ts +180 -0
  36. package/packages/orq-rc/src/funcs/experimentsListEvals.ts +180 -0
  37. package/packages/orq-rc/src/funcs/experimentsListReviews.ts +181 -0
  38. package/packages/orq-rc/src/funcs/experimentsListRuns.ts +185 -0
  39. package/packages/orq-rc/src/funcs/experimentsListTasks.ts +180 -0
  40. package/packages/orq-rc/src/funcs/experimentsPatchEvalCell.ts +195 -0
  41. package/packages/orq-rc/src/funcs/experimentsPatchReviewCell.ts +192 -0
  42. package/packages/orq-rc/src/funcs/experimentsPatchTaskCell.ts +195 -0
  43. package/packages/orq-rc/src/funcs/experimentsQueryRun.ts +184 -0
  44. package/packages/orq-rc/src/funcs/experimentsUpdate.ts +180 -0
  45. package/packages/orq-rc/src/funcs/experimentsUpdateReview.ts +191 -0
  46. package/packages/orq-rc/src/funcs/experimentsUpdateRun.ts +185 -0
  47. package/packages/orq-rc/src/funcs/experimentsUpdateRunCell.ts +195 -0
  48. package/packages/orq-rc/src/funcs/experimentsUpdateRunColumnLayout.ts +189 -0
  49. package/packages/orq-rc/src/funcs/experimentsUpdateTask.ts +191 -0
  50. package/packages/orq-rc/src/funcs/filesList.ts +2 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +34 -30
  53. package/packages/orq-rc/src/models/components/agenttaskconfig.ts +126 -0
  54. package/packages/orq-rc/src/models/components/artifactrefs.ts +86 -0
  55. package/packages/orq-rc/src/models/components/booleanmetricsummary.ts +38 -0
  56. package/packages/orq-rc/src/models/components/cancelexperimentrunrequest.ts +36 -0
  57. package/packages/orq-rc/src/models/components/categoricalmetricsummary.ts +33 -0
  58. package/packages/orq-rc/src/models/components/cell.ts +108 -0
  59. package/packages/orq-rc/src/models/components/cellprogress.ts +40 -0
  60. package/packages/orq-rc/src/models/components/cellstatus.ts +21 -0
  61. package/packages/orq-rc/src/models/components/cellstatuscounts.ts +46 -0
  62. package/packages/orq-rc/src/models/components/celltype.ts +25 -0
  63. package/packages/orq-rc/src/models/components/column.ts +92 -0
  64. package/packages/orq-rc/src/models/components/columnlayout.ts +41 -0
  65. package/packages/orq-rc/src/models/components/createevalcolumnrequest.ts +39 -0
  66. package/packages/orq-rc/src/models/components/createexperimentrequest.ts +62 -0
  67. package/packages/orq-rc/src/models/components/createreviewcolumnrequest.ts +47 -0
  68. package/packages/orq-rc/src/models/components/createrunrequest.ts +39 -0
  69. package/packages/orq-rc/src/models/components/createtaskcolumnrequest.ts +71 -0
  70. package/packages/orq-rc/src/models/components/datasetcolumnconfig.ts +36 -0
  71. package/packages/orq-rc/src/models/components/deleterowsrequest.ts +36 -0
  72. package/packages/orq-rc/src/models/components/duplicaterowrequest.ts +25 -0
  73. package/packages/orq-rc/src/models/components/evalcolumnconfig.ts +45 -0
  74. package/packages/orq-rc/src/models/components/executeconstraints.ts +44 -0
  75. package/packages/orq-rc/src/models/components/executerunrequest.ts +56 -0
  76. package/packages/orq-rc/src/models/components/executescope.ts +20 -0
  77. package/packages/orq-rc/src/models/components/executetarget.ts +44 -0
  78. package/packages/orq-rc/src/models/components/experiment.ts +77 -0
  79. package/packages/orq-rc/src/models/components/getrunmetricsresponse.ts +35 -0
  80. package/packages/orq-rc/src/models/components/harnessconstraints.ts +55 -0
  81. package/packages/orq-rc/src/models/components/harnesstaskconfig.ts +60 -0
  82. package/packages/orq-rc/src/models/components/index.ts +63 -0
  83. package/packages/orq-rc/src/models/components/listevalcolumnsresponse.ts +32 -0
  84. package/packages/orq-rc/src/models/components/listexperimentrunsresponse.ts +39 -0
  85. package/packages/orq-rc/src/models/components/listexperimentsresponse.ts +39 -0
  86. package/packages/orq-rc/src/models/components/listreviewcolumnsresponse.ts +32 -0
  87. package/packages/orq-rc/src/models/components/listtaskcolumnsresponse.ts +32 -0
  88. package/packages/orq-rc/src/models/components/llmconstraints.ts +38 -0
  89. package/packages/orq-rc/src/models/components/messagessource.ts +23 -0
  90. package/packages/orq-rc/src/models/components/metricbaseline.ts +45 -0
  91. package/packages/orq-rc/src/models/components/metriccolumnconfig.ts +36 -0
  92. package/packages/orq-rc/src/models/components/metricsummary.ts +53 -0
  93. package/packages/orq-rc/src/models/components/numbermetricsummary.ts +50 -0
  94. package/packages/orq-rc/src/models/components/openresponsetaskconfig.ts +43 -0
  95. package/packages/orq-rc/src/models/components/patchevalcellrequest.ts +47 -0
  96. package/packages/orq-rc/src/models/components/patchreviewcellrequest.ts +53 -0
  97. package/packages/orq-rc/src/models/components/patchtaskcellrequest.ts +67 -0
  98. package/packages/orq-rc/src/models/components/prompttaskconfig.ts +259 -0
  99. package/packages/orq-rc/src/models/components/queryrow.ts +53 -0
  100. package/packages/orq-rc/src/models/components/queryrunrequest.ts +65 -0
  101. package/packages/orq-rc/src/models/components/queryrunresponse.ts +47 -0
  102. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  103. package/packages/orq-rc/src/models/components/reviewcolumnconfig.ts +42 -0
  104. package/packages/orq-rc/src/models/components/rowstatus.ts +21 -0
  105. package/packages/orq-rc/src/models/components/run.ts +97 -0
  106. package/packages/orq-rc/src/models/components/runref.ts +36 -0
  107. package/packages/orq-rc/src/models/components/runsettings.ts +70 -0
  108. package/packages/orq-rc/src/models/components/runstats.ts +45 -0
  109. package/packages/orq-rc/src/models/components/runstatus.ts +21 -0
  110. package/packages/orq-rc/src/models/components/uniqueevaluator.ts +45 -0
  111. package/packages/orq-rc/src/models/components/updateexperimentrequest.ts +48 -0
  112. package/packages/orq-rc/src/models/components/updatereviewcolumnrequest.ts +36 -0
  113. package/packages/orq-rc/src/models/components/updateruncellrequest.ts +51 -0
  114. package/packages/orq-rc/src/models/components/updateruncolumnlayoutrequest.ts +38 -0
  115. package/packages/orq-rc/src/models/components/updaterunrequest.ts +39 -0
  116. package/packages/orq-rc/src/models/components/updatetaskcolumnrequest.ts +60 -0
  117. package/packages/orq-rc/src/models/components/wallclockunit.ts +18 -0
  118. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  119. package/packages/orq-rc/src/models/operations/experimentdelete.ts +36 -0
  120. package/packages/orq-rc/src/models/operations/experimentevalcellpatch.ts +55 -0
  121. package/packages/orq-rc/src/models/operations/experimentevalcreate.ts +47 -0
  122. package/packages/orq-rc/src/models/operations/experimentevaldelete.ts +46 -0
  123. package/packages/orq-rc/src/models/operations/experimentevallist.ts +40 -0
  124. package/packages/orq-rc/src/models/operations/experimentget.ts +36 -0
  125. package/packages/orq-rc/src/models/operations/experimentlist.ts +47 -0
  126. package/packages/orq-rc/src/models/operations/experimentreviewcellpatch.ts +55 -0
  127. package/packages/orq-rc/src/models/operations/experimentreviewcreate.ts +48 -0
  128. package/packages/orq-rc/src/models/operations/experimentreviewdelete.ts +46 -0
  129. package/packages/orq-rc/src/models/operations/experimentreviewlist.ts +42 -0
  130. package/packages/orq-rc/src/models/operations/experimentreviewupdate.ts +52 -0
  131. package/packages/orq-rc/src/models/operations/experimentruncancel.ts +46 -0
  132. package/packages/orq-rc/src/models/operations/experimentruncellupdate.ts +55 -0
  133. package/packages/orq-rc/src/models/operations/experimentruncolumnlayoutupdate.ts +50 -0
  134. package/packages/orq-rc/src/models/operations/experimentruncreate.ts +41 -0
  135. package/packages/orq-rc/src/models/operations/experimentrundelete.ts +40 -0
  136. package/packages/orq-rc/src/models/operations/experimentrunexecute.ts +47 -0
  137. package/packages/orq-rc/src/models/operations/experimentrunexport.ts +85 -0
  138. package/packages/orq-rc/src/models/operations/experimentrunget.ts +40 -0
  139. package/packages/orq-rc/src/models/operations/experimentrunlist.ts +51 -0
  140. package/packages/orq-rc/src/models/operations/experimentrunmetricsget.ts +46 -0
  141. package/packages/orq-rc/src/models/operations/experimentrunquery.ts +45 -0
  142. package/packages/orq-rc/src/models/operations/experimentrunrowduplicate.ts +51 -0
  143. package/packages/orq-rc/src/models/operations/experimentrunrowsdelete.ts +47 -0
  144. package/packages/orq-rc/src/models/operations/experimentrunupdate.ts +45 -0
  145. package/packages/orq-rc/src/models/operations/experimenttaskcellpatch.ts +55 -0
  146. package/packages/orq-rc/src/models/operations/experimenttaskcreate.ts +47 -0
  147. package/packages/orq-rc/src/models/operations/experimenttaskdelete.ts +46 -0
  148. package/packages/orq-rc/src/models/operations/experimenttasklist.ts +40 -0
  149. package/packages/orq-rc/src/models/operations/experimenttaskupdate.ts +51 -0
  150. package/packages/orq-rc/src/models/operations/experimentupdate.ts +41 -0
  151. package/packages/orq-rc/src/models/operations/filelist.ts +6 -0
  152. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  153. package/packages/orq-rc/src/models/operations/index.ts +32 -0
  154. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  155. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  156. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  157. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  158. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  159. package/packages/orq-rc/src/sdk/experiments.ts +585 -0
  160. package/packages/orq-rc/src/sdk/files.ts +1 -1
  161. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  162. package/src/lib/config.ts +2 -2
  163. package/src/models/components/reasoningpart.ts +1 -1
  164. package/src/models/operations/createtool.ts +4 -4
  165. package/src/models/operations/getalltools.ts +4 -4
  166. package/src/models/operations/getv2humanevalsets.ts +2 -2
  167. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  168. package/src/models/operations/listdeploymentversions.ts +1 -1
  169. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  170. package/src/models/operations/postv2humanevalsets.ts +2 -2
  171. package/src/models/operations/retrievetool.ts +4 -4
  172. package/src/models/operations/runagent.ts +1 -1
  173. package/src/models/operations/streamrunagent.ts +1 -1
  174. package/src/models/operations/updatetool.ts +4 -4
@@ -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
+ }
@@ -0,0 +1,65 @@
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 QueryRunRequest = {
9
+ rows?: Array<string> | undefined;
10
+ columns?: Array<string> | undefined;
11
+ repeatIndex?: number | undefined;
12
+ limit?: number | undefined;
13
+ startingAfter?: string | undefined;
14
+ /**
15
+ * Incremental refresh: returns running rows plus completed or failed rows
16
+ *
17
+ * @remarks
18
+ * updated after this instant.
19
+ */
20
+ updatedAfter?: Date | undefined;
21
+ partialRows?: boolean | undefined;
22
+ excludeStaticCells?: boolean | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export type QueryRunRequest$Outbound = {
27
+ rows?: Array<string> | undefined;
28
+ columns?: Array<string> | undefined;
29
+ repeat_index?: number | undefined;
30
+ limit?: number | undefined;
31
+ starting_after?: string | undefined;
32
+ updated_after?: string | undefined;
33
+ partial_rows?: boolean | undefined;
34
+ exclude_static_cells?: boolean | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const QueryRunRequest$outboundSchema: z.ZodType<
39
+ QueryRunRequest$Outbound,
40
+ z.ZodTypeDef,
41
+ QueryRunRequest
42
+ > = z.object({
43
+ rows: z.array(z.string()).optional(),
44
+ columns: z.array(z.string()).optional(),
45
+ repeatIndex: z.number().int().optional(),
46
+ limit: z.number().int().optional(),
47
+ startingAfter: z.string().optional(),
48
+ updatedAfter: z.date().transform(v => v.toISOString()).optional(),
49
+ partialRows: z.boolean().optional(),
50
+ excludeStaticCells: z.boolean().optional(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ repeatIndex: "repeat_index",
54
+ startingAfter: "starting_after",
55
+ updatedAfter: "updated_after",
56
+ partialRows: "partial_rows",
57
+ excludeStaticCells: "exclude_static_cells",
58
+ });
59
+ });
60
+
61
+ export function queryRunRequestToJSON(
62
+ queryRunRequest: QueryRunRequest,
63
+ ): string {
64
+ return JSON.stringify(QueryRunRequest$outboundSchema.parse(queryRunRequest));
65
+ }