@orq-ai/node 4.10.0-rc.7 → 4.10.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -53
- package/funcs/projectsCreate.d.ts +1 -1
- package/funcs/projectsCreate.js +1 -1
- package/funcs/projectsDelete.d.ts +3 -0
- package/funcs/projectsDelete.d.ts.map +1 -1
- package/funcs/projectsDelete.js +3 -0
- package/funcs/projectsDelete.js.map +1 -1
- package/funcs/projectsList.d.ts +1 -1
- package/funcs/projectsList.js +1 -1
- package/funcs/reportingQuery.d.ts +17 -0
- package/funcs/reportingQuery.d.ts.map +1 -0
- package/funcs/{contactsCreate.js → reportingQuery.js} +10 -10
- package/funcs/reportingQuery.js.map +1 -0
- package/funcs/skillsCreate.d.ts +1 -1
- package/funcs/skillsCreate.js +1 -1
- package/funcs/skillsDelete.d.ts +3 -0
- package/funcs/skillsDelete.d.ts.map +1 -1
- package/funcs/skillsDelete.js +3 -0
- package/funcs/skillsDelete.js.map +1 -1
- package/funcs/skillsGet.d.ts +1 -1
- package/funcs/skillsGet.js +1 -1
- package/funcs/skillsList.d.ts +1 -1
- package/funcs/skillsList.js +1 -1
- package/funcs/skillsUpdate.d.ts +1 -1
- package/funcs/skillsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createprojectrequest.d.ts +6 -0
- package/models/components/createprojectrequest.d.ts.map +1 -1
- package/models/components/createprojectrequest.js.map +1 -1
- package/models/components/createprojectresponse.d.ts +3 -0
- package/models/components/createprojectresponse.d.ts.map +1 -1
- package/models/components/createprojectresponse.js.map +1 -1
- package/models/components/createskillrequest.d.ts +18 -0
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/createskillresponse.d.ts +3 -0
- package/models/components/createskillresponse.d.ts.map +1 -1
- package/models/components/createskillresponse.js.map +1 -1
- package/models/components/datapoint.d.ts +40 -0
- package/models/components/datapoint.d.ts.map +1 -0
- package/models/components/datapoint.js +53 -0
- package/models/components/datapoint.js.map +1 -0
- package/models/components/file.d.ts +0 -1
- package/models/components/file.d.ts.map +1 -1
- package/models/components/file.js +0 -2
- package/models/components/file.js.map +1 -1
- package/models/components/filter.d.ts +99 -0
- package/models/components/filter.d.ts.map +1 -0
- package/models/components/filter.js +120 -0
- package/models/components/filter.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +3 -0
- package/models/components/getprojectresponse.d.ts.map +1 -1
- package/models/components/getprojectresponse.js.map +1 -1
- package/models/components/getskillresponse.d.ts +3 -0
- package/models/components/getskillresponse.d.ts.map +1 -1
- package/models/components/getskillresponse.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listprojectsresponse.d.ts +12 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -1
- package/models/components/listprojectsresponse.js.map +1 -1
- package/models/components/listskillsresponse.d.ts +12 -0
- package/models/components/listskillsresponse.d.ts.map +1 -1
- package/models/components/listskillsresponse.js.map +1 -1
- package/models/components/project.d.ts +42 -1
- package/models/components/project.d.ts.map +1 -1
- package/models/components/project.js +0 -2
- package/models/components/project.js.map +1 -1
- package/models/components/queryreportrequest.d.ts +156 -0
- package/models/components/queryreportrequest.d.ts.map +1 -0
- package/models/components/queryreportrequest.js +166 -0
- package/models/components/queryreportrequest.js.map +1 -0
- package/models/components/queryreportresponse.d.ts +59 -0
- package/models/components/queryreportresponse.d.ts.map +1 -0
- package/models/components/queryreportresponse.js +73 -0
- package/models/components/queryreportresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsemeta.d.ts +63 -0
- package/models/components/responsemeta.d.ts.map +1 -0
- package/models/{operations/remoteconfigsgetconfig.js → components/responsemeta.js} +31 -27
- package/models/components/responsemeta.js.map +1 -0
- package/models/components/skill.d.ts +37 -1
- package/models/components/skill.d.ts.map +1 -1
- package/models/components/skill.js +0 -2
- package/models/components/skill.js.map +1 -1
- package/models/components/totals.d.ts +18 -0
- package/models/components/totals.d.ts.map +1 -0
- package/models/components/totals.js +51 -0
- package/models/components/totals.js.map +1 -0
- package/models/components/updateprojectrequest.d.ts +12 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -1
- package/models/components/updateprojectrequest.js.map +1 -1
- package/models/components/updateprojectresponse.d.ts +3 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -1
- package/models/components/updateprojectresponse.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +21 -0
- package/models/components/updateskillrequest.d.ts.map +1 -1
- package/models/components/updateskillrequest.js.map +1 -1
- package/models/components/updateskillresponse.d.ts +3 -0
- package/models/components/updateskillresponse.d.ts.map +1 -1
- package/models/components/updateskillresponse.js.map +1 -1
- package/models/operations/createannotation.d.ts +4 -4
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +5 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +28 -28
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +40 -40
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedback.d.ts +15 -15
- package/models/operations/postv2feedback.d.ts.map +1 -1
- package/models/operations/postv2feedback.js +15 -16
- package/models/operations/postv2feedback.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2feedbackremove.d.ts +8 -8
- package/models/operations/postv2feedbackremove.d.ts.map +1 -1
- package/models/operations/postv2feedbackremove.js +8 -7
- package/models/operations/postv2feedbackremove.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +3 -0
- package/models/operations/projectdelete.d.ts.map +1 -1
- package/models/operations/projectdelete.js.map +1 -1
- package/models/operations/projectget.d.ts +3 -0
- package/models/operations/projectget.d.ts.map +1 -1
- package/models/operations/projectget.js.map +1 -1
- package/models/operations/projectlist.d.ts +15 -0
- package/models/operations/projectlist.d.ts.map +1 -1
- package/models/operations/projectlist.js.map +1 -1
- package/models/operations/projectupdate.d.ts +3 -0
- package/models/operations/projectupdate.d.ts.map +1 -1
- package/models/operations/projectupdate.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/skilldelete.d.ts +3 -0
- package/models/operations/skilldelete.d.ts.map +1 -1
- package/models/operations/skilldelete.js.map +1 -1
- package/models/operations/skilllist.d.ts +12 -0
- package/models/operations/skilllist.d.ts.map +1 -1
- package/models/operations/skilllist.js.map +1 -1
- package/models/operations/skillupdate.d.ts +3 -0
- package/models/operations/skillupdate.d.ts.map +1 -1
- package/models/operations/skillupdate.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/sdk/feedback.d.ts +1 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +3 -3
- package/sdk/feedback.js.map +1 -1
- package/sdk/projects.d.ts +5 -2
- package/sdk/projects.d.ts.map +1 -1
- package/sdk/projects.js +5 -2
- package/sdk/projects.js.map +1 -1
- package/sdk/reporting.d.ts +12 -0
- package/sdk/reporting.d.ts.map +1 -0
- package/sdk/reporting.js +22 -0
- package/sdk/reporting.js.map +1 -0
- package/sdk/sdk.d.ts +5 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -11
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +7 -4
- package/sdk/skills.d.ts.map +1 -1
- package/sdk/skills.js +7 -4
- package/sdk/skills.js.map +1 -1
- package/src/funcs/projectsCreate.ts +1 -1
- package/src/funcs/projectsDelete.ts +3 -0
- package/src/funcs/projectsList.ts +1 -1
- package/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/src/funcs/skillsCreate.ts +1 -1
- package/src/funcs/skillsDelete.ts +3 -0
- package/src/funcs/skillsGet.ts +1 -1
- package/src/funcs/skillsList.ts +1 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createprojectrequest.ts +6 -0
- package/src/models/components/createprojectresponse.ts +3 -0
- package/src/models/components/createskillrequest.ts +18 -0
- package/src/models/components/createskillresponse.ts +3 -0
- package/src/models/components/datapoint.ts +60 -0
- package/src/models/components/file.ts +0 -3
- package/src/models/components/filter.ts +137 -0
- package/src/models/components/getprojectresponse.ts +3 -0
- package/src/models/components/getskillresponse.ts +3 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listprojectsresponse.ts +12 -0
- package/src/models/components/listskillsresponse.ts +12 -0
- package/src/models/components/project.ts +42 -3
- package/src/models/components/queryreportrequest.ts +237 -0
- package/src/models/components/queryreportresponse.ts +96 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsemeta.ts +103 -0
- package/src/models/components/skill.ts +37 -3
- package/src/models/components/totals.ts +34 -0
- package/src/models/components/updateprojectrequest.ts +12 -0
- package/src/models/components/updateprojectresponse.ts +3 -0
- package/src/models/components/updateskillrequest.ts +21 -0
- package/src/models/components/updateskillresponse.ts +3 -0
- package/src/models/operations/createannotation.ts +7 -11
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/invokeeval.ts +83 -80
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedback.ts +34 -27
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2feedbackremove.ts +14 -17
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +3 -0
- package/src/models/operations/projectget.ts +3 -0
- package/src/models/operations/projectlist.ts +15 -0
- package/src/models/operations/projectupdate.ts +3 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/skilldelete.ts +3 -0
- package/src/models/operations/skilllist.ts +12 -0
- package/src/models/operations/skillupdate.ts +3 -0
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +8 -8
- package/src/sdk/projects.ts +5 -2
- package/src/sdk/reporting.ts +27 -0
- package/src/sdk/sdk.ts +11 -17
- package/src/sdk/skills.ts +7 -4
- package/funcs/contactsCreate.d.ts +0 -17
- package/funcs/contactsCreate.d.ts.map +0 -1
- package/funcs/contactsCreate.js.map +0 -1
- package/funcs/remoteconfigsRetrieve.d.ts +0 -14
- package/funcs/remoteconfigsRetrieve.d.ts.map +0 -1
- package/funcs/remoteconfigsRetrieve.js +0 -115
- package/funcs/remoteconfigsRetrieve.js.map +0 -1
- package/models/operations/createcontact.d.ts +0 -95
- package/models/operations/createcontact.d.ts.map +0 -1
- package/models/operations/createcontact.js +0 -86
- package/models/operations/createcontact.js.map +0 -1
- package/models/operations/remoteconfigsgetconfig.d.ts +0 -67
- package/models/operations/remoteconfigsgetconfig.d.ts.map +0 -1
- package/models/operations/remoteconfigsgetconfig.js.map +0 -1
- package/sdk/contacts.d.ts +0 -12
- package/sdk/contacts.d.ts.map +0 -1
- package/sdk/contacts.js +0 -22
- package/sdk/contacts.js.map +0 -1
- package/sdk/remoteconfigs.d.ts +0 -9
- package/sdk/remoteconfigs.d.ts.map +0 -1
- package/sdk/remoteconfigs.js +0 -19
- package/sdk/remoteconfigs.js.map +0 -1
- package/src/funcs/remoteconfigsRetrieve.ts +0 -163
- package/src/models/operations/createcontact.ts +0 -156
- package/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/src/sdk/contacts.ts +0 -27
- package/src/sdk/remoteconfigs.ts +0 -24
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Filter,
|
|
13
|
+
Filter$inboundSchema,
|
|
14
|
+
Filter$Outbound,
|
|
15
|
+
Filter$outboundSchema,
|
|
16
|
+
} from "./filter.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Catalogue metric to query.
|
|
20
|
+
*/
|
|
21
|
+
export const Metric = {
|
|
22
|
+
GenaiRequests: "genai.requests",
|
|
23
|
+
GenaiTokens: "genai.tokens",
|
|
24
|
+
GenaiCost: "genai.cost",
|
|
25
|
+
GenaiErrors: "genai.errors",
|
|
26
|
+
GenaiLatencyP50: "genai.latency.p50",
|
|
27
|
+
GenaiLatencyP95: "genai.latency.p95",
|
|
28
|
+
GenaiLatencyP99: "genai.latency.p99",
|
|
29
|
+
GenaiEvaluatorRuns: "genai.evaluator.runs",
|
|
30
|
+
GenaiEvaluatorPassRate: "genai.evaluator.pass_rate",
|
|
31
|
+
GenaiEvaluatorScoreAvg: "genai.evaluator.score.avg",
|
|
32
|
+
GenaiGuardrailRuns: "genai.guardrail.runs",
|
|
33
|
+
GenaiGuardrailBlockRate: "genai.guardrail.block_rate",
|
|
34
|
+
GenaiGuardrailTriggered: "genai.guardrail.triggered",
|
|
35
|
+
GenaiUsage: "genai.usage",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* Catalogue metric to query.
|
|
39
|
+
*/
|
|
40
|
+
export type Metric = ClosedEnum<typeof Metric>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
44
|
+
*/
|
|
45
|
+
export const Grain = {
|
|
46
|
+
Auto: "auto",
|
|
47
|
+
Minute: "minute",
|
|
48
|
+
Hour: "hour",
|
|
49
|
+
Day: "day",
|
|
50
|
+
} as const;
|
|
51
|
+
/**
|
|
52
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
53
|
+
*/
|
|
54
|
+
export type Grain = ClosedEnum<typeof Grain>;
|
|
55
|
+
|
|
56
|
+
export const GroupBy = {
|
|
57
|
+
Project: "project",
|
|
58
|
+
Identity: "identity",
|
|
59
|
+
Provider: "provider",
|
|
60
|
+
Model: "model",
|
|
61
|
+
Product: "product",
|
|
62
|
+
ApiKey: "api_key",
|
|
63
|
+
StatusCode: "status_code",
|
|
64
|
+
HttpStatusCode: "http_status_code",
|
|
65
|
+
CredentialType: "credential_type",
|
|
66
|
+
Dimension: "dimension",
|
|
67
|
+
DimensionType: "dimension_type",
|
|
68
|
+
Tag: "tag",
|
|
69
|
+
Agent: "agent",
|
|
70
|
+
Tool: "tool",
|
|
71
|
+
Deployment: "deployment",
|
|
72
|
+
Evaluator: "evaluator",
|
|
73
|
+
Dataset: "dataset",
|
|
74
|
+
Prompt: "prompt",
|
|
75
|
+
Policy: "policy",
|
|
76
|
+
Conversation: "conversation",
|
|
77
|
+
Thread: "thread",
|
|
78
|
+
MemoryStore: "memory_store",
|
|
79
|
+
Knowledge: "knowledge",
|
|
80
|
+
Sheet: "sheet",
|
|
81
|
+
GuardrailOrigin: "guardrail_origin",
|
|
82
|
+
EvaluatorName: "evaluator_name",
|
|
83
|
+
EvaluatorType: "evaluator_type",
|
|
84
|
+
EvaluatorVersion: "evaluator_version",
|
|
85
|
+
ResultType: "result_type",
|
|
86
|
+
EvaluationStage: "evaluation_stage",
|
|
87
|
+
GuardrailStage: "guardrail_stage",
|
|
88
|
+
EvaluatorStage: "evaluator_stage",
|
|
89
|
+
GuardrailAction: "guardrail_action",
|
|
90
|
+
ResultLabel: "result_label",
|
|
91
|
+
} as const;
|
|
92
|
+
export type GroupBy = ClosedEnum<typeof GroupBy>;
|
|
93
|
+
|
|
94
|
+
export type QueryReportRequest = {
|
|
95
|
+
/**
|
|
96
|
+
* Catalogue metric to query.
|
|
97
|
+
*/
|
|
98
|
+
metric: Metric;
|
|
99
|
+
/**
|
|
100
|
+
* Inclusive lower bound for the report window (RFC 3339, UTC).
|
|
101
|
+
*/
|
|
102
|
+
from: Date;
|
|
103
|
+
/**
|
|
104
|
+
* Exclusive upper bound for the report window (RFC 3339, UTC).
|
|
105
|
+
*/
|
|
106
|
+
to: Date;
|
|
107
|
+
/**
|
|
108
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
109
|
+
*/
|
|
110
|
+
grain?: Grain | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Reporting dimensions to break down by. Valid dimensions depend on the selected metric.
|
|
113
|
+
*/
|
|
114
|
+
groupBy?: Array<GroupBy> | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Up to 20 allowlisted predicates combined with AND.
|
|
117
|
+
*/
|
|
118
|
+
filters?: Array<Filter> | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Maximum bucket rows returned. Defaults to 1000 and is capped at
|
|
121
|
+
*
|
|
122
|
+
* @remarks
|
|
123
|
+
* 5000.
|
|
124
|
+
*/
|
|
125
|
+
limit?: number | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* IANA time zone applied to bucket boundaries, for example
|
|
128
|
+
*
|
|
129
|
+
* @remarks
|
|
130
|
+
* `America/New_York`. Response timestamps remain UTC. Empty means UTC.
|
|
131
|
+
*/
|
|
132
|
+
timeZone?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* When true, include a `totals` block aggregated across the full
|
|
135
|
+
*
|
|
136
|
+
* @remarks
|
|
137
|
+
* report window.
|
|
138
|
+
*/
|
|
139
|
+
includeTotals?: boolean | undefined;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const Metric$inboundSchema: z.ZodNativeEnum<typeof Metric> = z
|
|
144
|
+
.nativeEnum(Metric);
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const Metric$outboundSchema: z.ZodNativeEnum<typeof Metric> =
|
|
147
|
+
Metric$inboundSchema;
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const Grain$inboundSchema: z.ZodNativeEnum<typeof Grain> = z.nativeEnum(
|
|
151
|
+
Grain,
|
|
152
|
+
);
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const Grain$outboundSchema: z.ZodNativeEnum<typeof Grain> =
|
|
155
|
+
Grain$inboundSchema;
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const GroupBy$inboundSchema: z.ZodNativeEnum<typeof GroupBy> = z
|
|
159
|
+
.nativeEnum(GroupBy);
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const GroupBy$outboundSchema: z.ZodNativeEnum<typeof GroupBy> =
|
|
162
|
+
GroupBy$inboundSchema;
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const QueryReportRequest$inboundSchema: z.ZodType<
|
|
166
|
+
QueryReportRequest,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
unknown
|
|
169
|
+
> = z.object({
|
|
170
|
+
metric: Metric$inboundSchema,
|
|
171
|
+
from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
172
|
+
to: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
173
|
+
grain: Grain$inboundSchema.optional(),
|
|
174
|
+
group_by: z.array(GroupBy$inboundSchema).optional(),
|
|
175
|
+
filters: z.array(Filter$inboundSchema).optional(),
|
|
176
|
+
limit: z.number().int().optional(),
|
|
177
|
+
time_zone: z.string().optional(),
|
|
178
|
+
include_totals: z.boolean().optional(),
|
|
179
|
+
}).transform((v) => {
|
|
180
|
+
return remap$(v, {
|
|
181
|
+
"group_by": "groupBy",
|
|
182
|
+
"time_zone": "timeZone",
|
|
183
|
+
"include_totals": "includeTotals",
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
/** @internal */
|
|
187
|
+
export type QueryReportRequest$Outbound = {
|
|
188
|
+
metric: string;
|
|
189
|
+
from: string;
|
|
190
|
+
to: string;
|
|
191
|
+
grain?: string | undefined;
|
|
192
|
+
group_by?: Array<string> | undefined;
|
|
193
|
+
filters?: Array<Filter$Outbound> | undefined;
|
|
194
|
+
limit?: number | undefined;
|
|
195
|
+
time_zone?: string | undefined;
|
|
196
|
+
include_totals?: boolean | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const QueryReportRequest$outboundSchema: z.ZodType<
|
|
201
|
+
QueryReportRequest$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
QueryReportRequest
|
|
204
|
+
> = z.object({
|
|
205
|
+
metric: Metric$outboundSchema,
|
|
206
|
+
from: z.date().transform(v => v.toISOString()),
|
|
207
|
+
to: z.date().transform(v => v.toISOString()),
|
|
208
|
+
grain: Grain$outboundSchema.optional(),
|
|
209
|
+
groupBy: z.array(GroupBy$outboundSchema).optional(),
|
|
210
|
+
filters: z.array(Filter$outboundSchema).optional(),
|
|
211
|
+
limit: z.number().int().optional(),
|
|
212
|
+
timeZone: z.string().optional(),
|
|
213
|
+
includeTotals: z.boolean().optional(),
|
|
214
|
+
}).transform((v) => {
|
|
215
|
+
return remap$(v, {
|
|
216
|
+
groupBy: "group_by",
|
|
217
|
+
timeZone: "time_zone",
|
|
218
|
+
includeTotals: "include_totals",
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
export function queryReportRequestToJSON(
|
|
223
|
+
queryReportRequest: QueryReportRequest,
|
|
224
|
+
): string {
|
|
225
|
+
return JSON.stringify(
|
|
226
|
+
QueryReportRequest$outboundSchema.parse(queryReportRequest),
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
export function queryReportRequestFromJSON(
|
|
230
|
+
jsonString: string,
|
|
231
|
+
): SafeParseResult<QueryReportRequest, SDKValidationError> {
|
|
232
|
+
return safeParse(
|
|
233
|
+
jsonString,
|
|
234
|
+
(x) => QueryReportRequest$inboundSchema.parse(JSON.parse(x)),
|
|
235
|
+
`Failed to parse 'QueryReportRequest' from JSON`,
|
|
236
|
+
);
|
|
237
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import { DataPoint, DataPoint$inboundSchema } from "./datapoint.js";
|
|
12
|
+
import {
|
|
13
|
+
QueryReportRequest,
|
|
14
|
+
QueryReportRequest$inboundSchema,
|
|
15
|
+
} from "./queryreportrequest.js";
|
|
16
|
+
import { ResponseMeta, ResponseMeta$inboundSchema } from "./responsemeta.js";
|
|
17
|
+
import { Totals, Totals$inboundSchema } from "./totals.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
21
|
+
*/
|
|
22
|
+
export const ObjectT = {
|
|
23
|
+
Report: "report",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
27
|
+
*/
|
|
28
|
+
export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
29
|
+
|
|
30
|
+
export type QueryReportResponse = {
|
|
31
|
+
/**
|
|
32
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
33
|
+
*/
|
|
34
|
+
object?: ObjectT | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The request that produced this response, parroted back so caller
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* code never has to remember its own payload to interpret the result.
|
|
40
|
+
*/
|
|
41
|
+
request?: QueryReportRequest | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Time-ordered buckets.
|
|
44
|
+
*/
|
|
45
|
+
data?: Array<DataPoint> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Totals across the whole window. Present only when
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* `include_totals=true` on the request.
|
|
51
|
+
*/
|
|
52
|
+
totals?: Totals | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Pagination contract. Always populated; currently false because the
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* server caps the response at `limit` instead of issuing cursors.
|
|
58
|
+
*/
|
|
59
|
+
hasMore?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Diagnostic metadata.
|
|
62
|
+
*/
|
|
63
|
+
meta?: ResponseMeta | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
|
|
68
|
+
.nativeEnum(ObjectT);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const QueryReportResponse$inboundSchema: z.ZodType<
|
|
72
|
+
QueryReportResponse,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
object: ObjectT$inboundSchema.optional(),
|
|
77
|
+
request: QueryReportRequest$inboundSchema.optional(),
|
|
78
|
+
data: z.array(DataPoint$inboundSchema).optional(),
|
|
79
|
+
totals: Totals$inboundSchema.optional(),
|
|
80
|
+
has_more: z.boolean().optional(),
|
|
81
|
+
meta: ResponseMeta$inboundSchema.optional(),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
"has_more": "hasMore",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function queryReportResponseFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<QueryReportResponse, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => QueryReportResponse$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'QueryReportResponse' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01krrb9gr3fr8qzfx75hac8fd5"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Bucket grain actually applied by the planner.
|
|
14
|
+
*/
|
|
15
|
+
export const EffectiveGrain = {
|
|
16
|
+
Minute: "minute",
|
|
17
|
+
Hour: "hour",
|
|
18
|
+
Day: "day",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Bucket grain actually applied by the planner.
|
|
22
|
+
*/
|
|
23
|
+
export type EffectiveGrain = ClosedEnum<typeof EffectiveGrain>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ISO 4217 currency code for cost fields. Always `USD` today.
|
|
27
|
+
*/
|
|
28
|
+
export const ResponseMetaCurrency = {
|
|
29
|
+
Usd: "USD",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* ISO 4217 currency code for cost fields. Always `USD` today.
|
|
33
|
+
*/
|
|
34
|
+
export type ResponseMetaCurrency = ClosedEnum<typeof ResponseMetaCurrency>;
|
|
35
|
+
|
|
36
|
+
export type ResponseMeta = {
|
|
37
|
+
/**
|
|
38
|
+
* Bucket grain actually applied by the planner.
|
|
39
|
+
*/
|
|
40
|
+
effectiveGrain?: EffectiveGrain | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Number of rows in `data`. Cheap hint for clients that paginate
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* client-side; mirrors `len(data)`.
|
|
46
|
+
*/
|
|
47
|
+
rowCount?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Stable identifier for this query. Forward in support tickets so
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* server logs can be correlated. Also returned in the
|
|
53
|
+
* `X-Request-Id` response header.
|
|
54
|
+
*/
|
|
55
|
+
requestId?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* ISO 4217 currency code for cost fields. Always `USD` today.
|
|
58
|
+
*/
|
|
59
|
+
currency?: ResponseMetaCurrency | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Non-fatal warnings about the response. May contain `totals_unavailable` when totals were requested but failed.
|
|
62
|
+
*/
|
|
63
|
+
warnings?: Array<string> | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const EffectiveGrain$inboundSchema: z.ZodNativeEnum<
|
|
68
|
+
typeof EffectiveGrain
|
|
69
|
+
> = z.nativeEnum(EffectiveGrain);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ResponseMetaCurrency$inboundSchema: z.ZodNativeEnum<
|
|
73
|
+
typeof ResponseMetaCurrency
|
|
74
|
+
> = z.nativeEnum(ResponseMetaCurrency);
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const ResponseMeta$inboundSchema: z.ZodType<
|
|
78
|
+
ResponseMeta,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
effective_grain: EffectiveGrain$inboundSchema.optional(),
|
|
83
|
+
row_count: z.number().int().optional(),
|
|
84
|
+
request_id: z.string().optional(),
|
|
85
|
+
currency: ResponseMetaCurrency$inboundSchema.optional(),
|
|
86
|
+
warnings: z.array(z.string()).optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
"effective_grain": "effectiveGrain",
|
|
90
|
+
"row_count": "rowCount",
|
|
91
|
+
"request_id": "requestId",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function responseMetaFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<ResponseMeta, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => ResponseMeta$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'ResponseMeta' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -9,17 +9,53 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type Skill = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique skill identifier assigned by ORQ, for example
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* `skill_01H...`. Use this value in retrieve, update, and delete
|
|
17
|
+
* requests.
|
|
18
|
+
*/
|
|
12
19
|
skillId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, underscores, and hyphens.
|
|
22
|
+
*/
|
|
13
23
|
displayName?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Short human-readable summary of what the skill is for.
|
|
26
|
+
*/
|
|
14
27
|
description?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Free-form labels used for organization and filtering in clients.
|
|
30
|
+
*/
|
|
15
31
|
tags?: Array<string> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Project that owns or contains the skill.
|
|
34
|
+
*/
|
|
16
35
|
projectId?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Project path where the skill is stored in the workspace.
|
|
38
|
+
*/
|
|
17
39
|
path?: string | undefined;
|
|
18
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Time when the skill was created.
|
|
42
|
+
*/
|
|
19
43
|
createdAt?: Date | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Time when the skill was last updated.
|
|
46
|
+
*/
|
|
20
47
|
updatedAt?: Date | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* User ID that created the skill.
|
|
50
|
+
*/
|
|
21
51
|
createdById?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* User ID that last updated the skill.
|
|
54
|
+
*/
|
|
22
55
|
updatedById?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Instruction body executed or reused by clients that load this skill.
|
|
58
|
+
*/
|
|
23
59
|
instructions?: string | undefined;
|
|
24
60
|
/**
|
|
25
61
|
* Latest semver assigned by the activity log. Stamped on the document
|
|
@@ -40,7 +76,6 @@ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
|
|
|
40
76
|
tags: z.array(z.string()).optional(),
|
|
41
77
|
project_id: z.string().optional(),
|
|
42
78
|
path: z.string().optional(),
|
|
43
|
-
workspace_id: z.string().optional(),
|
|
44
79
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
45
80
|
new Date(v)
|
|
46
81
|
).optional(),
|
|
@@ -56,7 +91,6 @@ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
|
|
|
56
91
|
"skill_id": "skillId",
|
|
57
92
|
"display_name": "displayName",
|
|
58
93
|
"project_id": "projectId",
|
|
59
|
-
"workspace_id": "workspaceId",
|
|
60
94
|
"created_at": "createdAt",
|
|
61
95
|
"updated_at": "updatedAt",
|
|
62
96
|
"created_by_id": "createdById",
|
|
@@ -0,0 +1,34 @@
|
|
|
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 Totals = {
|
|
11
|
+
/**
|
|
12
|
+
* Same shape and rules as `DataPoint.metrics`, aggregated across the
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* whole window.
|
|
16
|
+
*/
|
|
17
|
+
metrics?: { [k: string]: number } | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Totals$inboundSchema: z.ZodType<Totals, z.ZodTypeDef, unknown> = z
|
|
22
|
+
.object({
|
|
23
|
+
metrics: z.record(z.number()).optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function totalsFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<Totals, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => Totals$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'Totals' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -6,8 +6,20 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
export type UpdateProjectRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Project ID to update.
|
|
11
|
+
*/
|
|
9
12
|
projectId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* New project name. Omit to keep the current name.
|
|
15
|
+
*/
|
|
10
16
|
name?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Replacement list of team identifiers associated with the project.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Leave empty to remove all team associations.
|
|
22
|
+
*/
|
|
11
23
|
teams?: Array<string> | undefined;
|
|
12
24
|
};
|
|
13
25
|
|
|
@@ -6,12 +6,33 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
export type UpdateSkillRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Skill ID to update.
|
|
11
|
+
*/
|
|
9
12
|
skillId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* New workspace-unique display name. Omit to keep the current name.
|
|
15
|
+
*/
|
|
10
16
|
displayName?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* New description. Omit to keep the current description.
|
|
19
|
+
*/
|
|
11
20
|
description?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Replacement tag list. Leave empty to clear tags.
|
|
23
|
+
*/
|
|
12
24
|
tags?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* New project path. Omit to keep the current path.
|
|
27
|
+
*/
|
|
13
28
|
path?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* New instruction body. Omit to keep the current instructions.
|
|
31
|
+
*/
|
|
14
32
|
instructions?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* New containing project. Omit to keep the current project.
|
|
35
|
+
*/
|
|
15
36
|
projectId?: string | undefined;
|
|
16
37
|
};
|
|
17
38
|
|
|
@@ -8,7 +8,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For text/correction, provide a string.
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type Value = string | number | Array<string>;
|
|
12
12
|
|
|
13
13
|
export type Annotations = {
|
|
14
14
|
/**
|
|
@@ -43,21 +43,17 @@ export type CreateAnnotationRequest = {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
|
-
export type
|
|
46
|
+
export type Value$Outbound = string | number | Array<string>;
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
|
-
export const
|
|
50
|
-
|
|
49
|
+
export const Value$outboundSchema: z.ZodType<
|
|
50
|
+
Value$Outbound,
|
|
51
51
|
z.ZodTypeDef,
|
|
52
|
-
|
|
52
|
+
Value
|
|
53
53
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
54
54
|
|
|
55
|
-
export function
|
|
56
|
-
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
CreateAnnotationValue$outboundSchema.parse(createAnnotationValue),
|
|
60
|
-
);
|
|
55
|
+
export function valueToJSON(value: Value): string {
|
|
56
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
/** @internal */
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-05-
|
|
141
|
+
"2026-05-16T12:13:19.225Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|