@orq-ai/node 4.15.0-rc.42 → 4.15.0-rc.44
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/funcs/budgetsList.d.ts +1 -1
- package/funcs/budgetsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/aggregatelogsrequest.d.ts +3 -3
- package/models/components/evaluationcontext.d.ts +1 -1
- package/models/components/evaluationresult.d.ts +5 -9
- package/models/components/evaluationresult.d.ts.map +1 -1
- package/models/components/evaluationresult.js.map +1 -1
- package/models/components/invokeevaluatorrequest.d.ts +3 -3
- package/models/components/memorystoreembeddingconfig.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchknowledgematch.d.ts +1 -4
- package/models/components/searchknowledgematch.d.ts.map +1 -1
- package/models/components/searchknowledgematch.js.map +1 -1
- package/models/components/searchknowledgerequest.d.ts +4 -4
- package/models/components/searchretrievalconfig.d.ts +1 -1
- package/models/components/skill.d.ts +2 -3
- package/models/components/skill.d.ts.map +1 -1
- package/models/components/skill.js.map +1 -1
- package/models/components/spansummary.d.ts +12 -0
- package/models/components/spansummary.d.ts.map +1 -1
- package/models/components/spansummary.js +9 -0
- package/models/components/spansummary.js.map +1 -1
- package/models/operations/budgetlist.d.ts +2 -3
- package/models/operations/budgetlist.d.ts.map +1 -1
- package/models/operations/budgetlist.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/parse.d.ts +3 -3
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/budgets.d.ts +1 -1
- package/sdk/budgets.js +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/aggregatelogsrequest.ts +3 -3
- package/src/models/components/evaluationcontext.ts +1 -1
- package/src/models/components/evaluationresult.ts +5 -9
- package/src/models/components/invokeevaluatorrequest.ts +3 -3
- package/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchknowledgematch.ts +1 -4
- package/src/models/components/searchknowledgerequest.ts +4 -4
- package/src/models/components/searchretrievalconfig.ts +1 -1
- package/src/models/components/skill.ts +2 -3
- package/src/models/components/spansummary.ts +21 -0
- package/src/models/operations/budgetlist.ts +2 -3
- package/src/models/operations/createchatcompletion.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/parse.ts +3 -3
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/budgets.ts +1 -1
|
@@ -90,7 +90,7 @@ exports.ListDatasetsData$inboundSchema = z.object({
|
|
|
90
90
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
91
91
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
92
92
|
.optional(),
|
|
93
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
93
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
94
94
|
}).transform((v) => {
|
|
95
95
|
return (0, primitives_js_1.remap)(v, {
|
|
96
96
|
"_id": "id",
|
|
@@ -41,7 +41,7 @@ export type LateChunkerStrategy = {
|
|
|
41
41
|
*/
|
|
42
42
|
minCharactersPerChunk?: number | undefined;
|
|
43
43
|
/**
|
|
44
|
-
* Embedding model used to generate context-aware chunk embeddings.
|
|
44
|
+
* Embedding model used to generate context-aware chunk embeddings. [Available embedding models](/docs/ai-gateway/supported-models#embedding-models)
|
|
45
45
|
*/
|
|
46
46
|
embeddingModel: string;
|
|
47
47
|
/**
|
|
@@ -135,7 +135,7 @@ export type AgenticChunkerStrategy = {
|
|
|
135
135
|
returnType?: ParseChunkingRequestChunkingRequestReturnType | undefined;
|
|
136
136
|
strategy: "agentic";
|
|
137
137
|
/**
|
|
138
|
-
* Model to use for chunking.
|
|
138
|
+
* Model to use for chunking. [Available models](/docs/ai-gateway/supported-models#chat-models)
|
|
139
139
|
*/
|
|
140
140
|
model: string;
|
|
141
141
|
/**
|
|
@@ -211,7 +211,7 @@ export type SemanticChunkerStrategy = {
|
|
|
211
211
|
*/
|
|
212
212
|
threshold?: number | Threshold2 | undefined;
|
|
213
213
|
/**
|
|
214
|
-
* Embedding model to use for semantic similarity.
|
|
214
|
+
* Embedding model to use for semantic similarity. [Available embedding models](/docs/ai-gateway/supported-models#embedding-models)
|
|
215
215
|
*/
|
|
216
216
|
embeddingModel: string;
|
|
217
217
|
/**
|
|
@@ -122,7 +122,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
|
|
|
122
122
|
updated_by_id: z.string().optional(),
|
|
123
123
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
124
124
|
.optional(),
|
|
125
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
125
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
126
126
|
filter_type: z.literal("name"),
|
|
127
127
|
filter_value: z.string(),
|
|
128
128
|
}).transform((v) => {
|
|
@@ -153,7 +153,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
|
|
|
153
153
|
updated_by_id: z.string().optional(),
|
|
154
154
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
155
155
|
.optional(),
|
|
156
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
156
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
157
157
|
filter_type: z.literal("span_type"),
|
|
158
158
|
filter_values: z.array(z.string()),
|
|
159
159
|
}).transform((v) => {
|
|
@@ -96,7 +96,7 @@ exports.RequestBody4$outboundSchema = z.object({
|
|
|
96
96
|
source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
97
97
|
.default("orq"),
|
|
98
98
|
explanation: z.string().optional(),
|
|
99
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
99
|
+
reviewedAt: z.date().default(() => new Date("2026-09-14T10:10:29.487Z"))
|
|
100
100
|
.transform(v => v.toISOString()),
|
|
101
101
|
type: z.literal("string_array"),
|
|
102
102
|
values: z.array(z.string()),
|
|
@@ -126,7 +126,7 @@ exports.Three$outboundSchema = z.object({
|
|
|
126
126
|
source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
127
127
|
.default("orq"),
|
|
128
128
|
explanation: z.string().optional(),
|
|
129
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
129
|
+
reviewedAt: z.date().default(() => new Date("2026-09-14T10:10:29.486Z"))
|
|
130
130
|
.transform(v => v.toISOString()),
|
|
131
131
|
type: z.literal("boolean"),
|
|
132
132
|
value: z.boolean(),
|
|
@@ -154,7 +154,7 @@ exports.RequestBody2$outboundSchema = z.object({
|
|
|
154
154
|
humanReviewId: z.string().optional(),
|
|
155
155
|
source: exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default("orq"),
|
|
156
156
|
explanation: z.string().optional(),
|
|
157
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
157
|
+
reviewedAt: z.date().default(() => new Date("2026-09-14T10:10:29.486Z"))
|
|
158
158
|
.transform(v => v.toISOString()),
|
|
159
159
|
type: z.literal("number"),
|
|
160
160
|
value: z.number(),
|
|
@@ -181,7 +181,7 @@ exports.RequestBody1$outboundSchema = z.object({
|
|
|
181
181
|
humanReviewId: z.string().optional(),
|
|
182
182
|
source: exports.RequestBodySource$outboundSchema.default("orq"),
|
|
183
183
|
explanation: z.string().optional(),
|
|
184
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
184
|
+
reviewedAt: z.date().default(() => new Date("2026-09-14T10:10:29.486Z"))
|
|
185
185
|
.transform(v => v.toISOString()),
|
|
186
186
|
type: z.literal("string"),
|
|
187
187
|
value: z.string(),
|
|
@@ -106,7 +106,7 @@ exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
|
|
|
106
106
|
updated_by_id: z.string().optional(),
|
|
107
107
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
108
108
|
.optional(),
|
|
109
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
109
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
110
110
|
filter_type: z.literal("name"),
|
|
111
111
|
filter_value: z.string(),
|
|
112
112
|
}).transform((v) => {
|
|
@@ -137,7 +137,7 @@ exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
|
|
|
137
137
|
updated_by_id: z.string().optional(),
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
140
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
141
141
|
filter_type: z.literal("span_type"),
|
|
142
142
|
filter_values: z.array(z.string()),
|
|
143
143
|
}).transform((v) => {
|
|
@@ -520,7 +520,7 @@ exports.RetrieveDatapointEvaluations4$inboundSchema = z.object({
|
|
|
520
520
|
parent_annotation_id: z.string().optional(),
|
|
521
521
|
explanation: z.string().optional(),
|
|
522
522
|
reviewed_by_id: z.string(),
|
|
523
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
523
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.418Z").transform(v => new Date(v)),
|
|
524
524
|
type: z.literal("string_array"),
|
|
525
525
|
values: z.array(z.string()),
|
|
526
526
|
}).transform((v) => {
|
|
@@ -571,7 +571,7 @@ exports.Evaluations3$inboundSchema = z.object({
|
|
|
571
571
|
parent_annotation_id: z.string().optional(),
|
|
572
572
|
explanation: z.string().optional(),
|
|
573
573
|
reviewed_by_id: z.string(),
|
|
574
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
574
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.418Z").transform(v => new Date(v)),
|
|
575
575
|
type: z.literal("boolean"),
|
|
576
576
|
value: z.boolean(),
|
|
577
577
|
}).transform((v) => {
|
|
@@ -623,7 +623,7 @@ exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
|
|
|
623
623
|
parent_annotation_id: z.string().optional(),
|
|
624
624
|
explanation: z.string().optional(),
|
|
625
625
|
reviewed_by_id: z.string(),
|
|
626
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
626
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.418Z").transform(v => new Date(v)),
|
|
627
627
|
type: z.literal("number"),
|
|
628
628
|
value: z.number(),
|
|
629
629
|
}).transform((v) => {
|
|
@@ -674,7 +674,7 @@ exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
|
|
|
674
674
|
parent_annotation_id: z.string().optional(),
|
|
675
675
|
explanation: z.string().optional(),
|
|
676
676
|
reviewed_by_id: z.string(),
|
|
677
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
677
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.417Z").transform(v => new Date(v)),
|
|
678
678
|
type: z.literal("string"),
|
|
679
679
|
value: z.string(),
|
|
680
680
|
}).transform((v) => {
|
|
@@ -725,7 +725,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
725
725
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
726
726
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
727
727
|
.optional(),
|
|
728
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
728
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
729
729
|
}).transform((v) => {
|
|
730
730
|
return (0, primitives_js_1.remap)(v, {
|
|
731
731
|
"_id": "id",
|
|
@@ -78,7 +78,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
78
78
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
79
79
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
80
|
.optional(),
|
|
81
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
81
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
82
82
|
}).transform((v) => {
|
|
83
83
|
return (0, primitives_js_1.remap)(v, {
|
|
84
84
|
"_id": "id",
|
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M2FPB4WQ0K91GZPGDTMYHZEZ"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M2FPB4WPHMF3XYKJD8X2FR5A"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M2FPB4WNQS5VEDNYW7GTBH6Q"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M2FPB4WN6KR93MTHZYRB8D19"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1098,7 +1098,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
/** @internal */
|
|
1100
1100
|
exports.Tools$outboundSchema = z.object({
|
|
1101
|
-
id: z.string().default("
|
|
1101
|
+
id: z.string().default("01M2FPB4SBRKBMMNZWDK0YQ3Y4"),
|
|
1102
1102
|
name: z.string(),
|
|
1103
1103
|
description: z.string().optional(),
|
|
1104
1104
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1064,7 +1064,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1064
1064
|
}
|
|
1065
1065
|
/** @internal */
|
|
1066
1066
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1067
|
-
id: z.string().default("
|
|
1067
|
+
id: z.string().default("01M2FPB4T3HPPF3HSPZHDK1BYD"),
|
|
1068
1068
|
name: z.string(),
|
|
1069
1069
|
description: z.string().optional(),
|
|
1070
1070
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -866,7 +866,7 @@ exports.UpdateDatapointEvaluations4$inboundSchema = z.object({
|
|
|
866
866
|
parent_annotation_id: z.string().optional(),
|
|
867
867
|
explanation: z.string().optional(),
|
|
868
868
|
reviewed_by_id: z.string(),
|
|
869
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
869
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.435Z").transform(v => new Date(v)),
|
|
870
870
|
type: z.literal("string_array"),
|
|
871
871
|
values: z.array(z.string()),
|
|
872
872
|
}).transform((v) => {
|
|
@@ -917,7 +917,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
917
917
|
parent_annotation_id: z.string().optional(),
|
|
918
918
|
explanation: z.string().optional(),
|
|
919
919
|
reviewed_by_id: z.string(),
|
|
920
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
920
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.434Z").transform(v => new Date(v)),
|
|
921
921
|
type: z.literal("boolean"),
|
|
922
922
|
value: z.boolean(),
|
|
923
923
|
}).transform((v) => {
|
|
@@ -968,7 +968,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
968
968
|
parent_annotation_id: z.string().optional(),
|
|
969
969
|
explanation: z.string().optional(),
|
|
970
970
|
reviewed_by_id: z.string(),
|
|
971
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
971
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.434Z").transform(v => new Date(v)),
|
|
972
972
|
type: z.literal("number"),
|
|
973
973
|
value: z.number(),
|
|
974
974
|
}).transform((v) => {
|
|
@@ -1018,7 +1018,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
1018
1018
|
parent_annotation_id: z.string().optional(),
|
|
1019
1019
|
explanation: z.string().optional(),
|
|
1020
1020
|
reviewed_by_id: z.string(),
|
|
1021
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
1021
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-14T10:10:29.433Z").transform(v => new Date(v)),
|
|
1022
1022
|
type: z.literal("string"),
|
|
1023
1023
|
value: z.string(),
|
|
1024
1024
|
}).transform((v) => {
|
|
@@ -1069,7 +1069,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
1069
1069
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1070
1070
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1071
1071
|
.optional(),
|
|
1072
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
1072
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
1073
1073
|
}).transform((v) => {
|
|
1074
1074
|
return (0, primitives_js_1.remap)(v, {
|
|
1075
1075
|
"_id": "id",
|
|
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
95
95
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
97
|
.optional(),
|
|
98
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-14T10:10:20.455Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M2FPB4WDXGAPNF4DYA1DJPX8"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M2FPB4WC5ZC733BX2SMT02ZF"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M2FPB4WCWREQX4NAQECSRF9Z"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M2FPB4WBF1BNZ6SX8263G8Y5"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.15.0-rc.
|
|
3
|
+
"version": "4.15.0-rc.44",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
|
+
"./*": "./*",
|
|
7
|
+
"./langchain": {
|
|
8
|
+
"import": "./langchain/index.mjs",
|
|
9
|
+
"require": "./langchain/index.js",
|
|
10
|
+
"types": "./langchain/index.d.mts"
|
|
11
|
+
},
|
|
6
12
|
".": {
|
|
7
13
|
"import": "./index.js",
|
|
8
14
|
"require": "./index.js",
|
|
9
15
|
"types": "./index.d.ts"
|
|
10
|
-
},
|
|
11
|
-
"./*": "./*",
|
|
12
|
-
"./langchain": {
|
|
13
|
-
"types": "./langchain/index.d.mts",
|
|
14
|
-
"import": "./langchain/index.mjs",
|
|
15
|
-
"require": "./langchain/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
package/sdk/budgets.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class Budgets extends ClientSDK {
|
|
|
6
6
|
* List budgets
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Returns budgets visible to the current workspace, ordered by
|
|
9
|
+
* Returns budgets visible to the current workspace, ordered by most recently updated with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that matches scope target names and ids. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
|
|
10
10
|
*/
|
|
11
11
|
list(request?: operations.BudgetListRequest | undefined, options?: RequestOptions): Promise<components.ListBudgetsResponse>;
|
|
12
12
|
/**
|
package/sdk/budgets.js
CHANGED
|
@@ -17,7 +17,7 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
17
17
|
* List budgets
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Returns budgets visible to the current workspace, ordered by
|
|
20
|
+
* Returns budgets visible to the current workspace, ordered by most recently updated with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that matches scope target names and ids. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
|
|
21
21
|
*/
|
|
22
22
|
async list(request, options) {
|
|
23
23
|
return (0, fp_js_1.unwrapAsync)((0, budgetsList_js_1.budgetsList)(this, request, options));
|
package/src/funcs/budgetsList.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List budgets
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns budgets visible to the current workspace, ordered by
|
|
33
|
+
* Returns budgets visible to the current workspace, ordered by most recently updated with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that matches scope target names and ids. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
|
|
34
34
|
*/
|
|
35
35
|
export function budgetsList(
|
|
36
36
|
client: OrqCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.15.0-rc.
|
|
61
|
+
sdkVersion: "4.15.0-rc.44",
|
|
62
62
|
genVersion: "2.935.1",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.44 2.935.1 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -13,11 +13,11 @@ export type AggregateLogsRequest = {
|
|
|
13
13
|
from?: Date | undefined;
|
|
14
14
|
to?: Date | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* Time bucket grain: "auto" | "minute" | "hour" | "day"
|
|
16
|
+
* Time bucket grain: "auto" | "minute" | "hour" | "day". "auto" picks the
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* grain from the requested time range. Empty returns rows without time
|
|
20
|
+
* buckets.
|
|
21
21
|
*/
|
|
22
22
|
grain?: string | undefined;
|
|
23
23
|
filters?: Array<TraceFilter> | undefined;
|
|
@@ -21,7 +21,7 @@ export type Messages = {};
|
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
23
|
* `input.user_query` is ignored; `output.response` is appended only when the
|
|
24
|
-
* conversation carries no assistant turn.
|
|
24
|
+
* conversation carries no assistant turn.
|
|
25
25
|
*/
|
|
26
26
|
export type EvaluationContext = {
|
|
27
27
|
messages?: Array<Messages> | undefined;
|
|
@@ -9,14 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* The verdict.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* TypeScript route returned, so existing consumers read the same JSON.
|
|
12
|
+
* The verdict. Its shape is fixed so existing consumers read the same JSON.
|
|
16
13
|
*/
|
|
17
14
|
export type EvaluationResult = {
|
|
18
15
|
/**
|
|
19
|
-
* Discriminator
|
|
16
|
+
* Discriminator for the verdict shape: "string", "number", "boolean",
|
|
20
17
|
*
|
|
21
18
|
* @remarks
|
|
22
19
|
* "string_array", "rouge_n", "bert_score", "llm_evaluator", "http_eval".
|
|
@@ -34,8 +31,7 @@ export type EvaluationResult = {
|
|
|
34
31
|
* Trace reference of the evaluator's own span. Optional so an absent
|
|
35
32
|
*
|
|
36
33
|
* @remarks
|
|
37
|
-
* reference is omitted rather than emitted as an empty string
|
|
38
|
-
* legacy body.
|
|
34
|
+
* reference is omitted rather than emitted as an empty string.
|
|
39
35
|
*/
|
|
40
36
|
traceId?: string | undefined;
|
|
41
37
|
spanId?: string | undefined;
|
|
@@ -52,8 +48,8 @@ export type EvaluationResult = {
|
|
|
52
48
|
* The guardrail's decision when the evaluator has one, the grader's own
|
|
53
49
|
*
|
|
54
50
|
* @remarks
|
|
55
|
-
* judgement otherwise. Always present
|
|
56
|
-
*
|
|
51
|
+
* judgement otherwise. Always present, so read `guardrail_config` to detect
|
|
52
|
+
* a guardrail, not this.
|
|
57
53
|
*/
|
|
58
54
|
passed?: boolean | undefined;
|
|
59
55
|
explanation?: string | undefined;
|
|
@@ -15,8 +15,8 @@ export type InvokeEvaluatorRequestMessages = {};
|
|
|
15
15
|
* Accepts two shapes. `context` names its fields after the template variables
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* they feed and is the one to use; the flat fields below are
|
|
19
|
-
*
|
|
18
|
+
* they feed and is the one to use; the flat fields below are folded into
|
|
19
|
+
* `context` when it is absent. Setting `context` wins.
|
|
20
20
|
*/
|
|
21
21
|
export type InvokeEvaluatorRequest = {
|
|
22
22
|
/**
|
|
@@ -24,7 +24,7 @@ export type InvokeEvaluatorRequest = {
|
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
26
|
* `input.user_query` is ignored; `output.response` is appended only when the
|
|
27
|
-
* conversation carries no assistant turn.
|
|
27
|
+
* conversation carries no assistant turn.
|
|
28
28
|
*/
|
|
29
29
|
context?: EvaluationContext | undefined;
|
|
30
30
|
/**
|
|
@@ -9,7 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type MemoryStoreEmbeddingConfig = {
|
|
11
11
|
/**
|
|
12
|
-
* The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the
|
|
12
|
+
* The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
|
|
13
13
|
*/
|
|
14
14
|
model: string;
|
|
15
15
|
};
|
|
@@ -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_01m2fpb4q6t3ynw6wbnsxfssf1"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -20,10 +20,7 @@ export type SearchKnowledgeMatch = {
|
|
|
20
20
|
id: string;
|
|
21
21
|
text: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* repeated fields are omitted by proto JSON, preserving optional vectors.
|
|
23
|
+
* Embedding vector of the chunk, returned only when requested.
|
|
27
24
|
*/
|
|
28
25
|
vector?: Array<number> | undefined;
|
|
29
26
|
/**
|
|
@@ -311,7 +311,7 @@ export type Two = {
|
|
|
311
311
|
*/
|
|
312
312
|
model?: string | undefined;
|
|
313
313
|
/**
|
|
314
|
-
*
|
|
314
|
+
* Identifier of the stored model configuration to use.
|
|
315
315
|
*/
|
|
316
316
|
modelDbId: string;
|
|
317
317
|
/**
|
|
@@ -330,7 +330,7 @@ export type AgenticRagConfig1 = {
|
|
|
330
330
|
*/
|
|
331
331
|
model: string;
|
|
332
332
|
/**
|
|
333
|
-
*
|
|
333
|
+
* Identifier of the stored model configuration to use.
|
|
334
334
|
*/
|
|
335
335
|
modelDbId?: string | undefined;
|
|
336
336
|
/**
|
|
@@ -349,10 +349,10 @@ export type AgenticRagConfig1 = {
|
|
|
349
349
|
export type SearchKnowledgeRequestAgenticRagConfig = Two | AgenticRagConfig1;
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
352
|
+
* Search request. Sets the knowledge base and query, plus optional retrieval
|
|
353
353
|
*
|
|
354
354
|
* @remarks
|
|
355
|
-
*
|
|
355
|
+
* settings.
|
|
356
356
|
*/
|
|
357
357
|
export type SearchKnowledgeRequest = {
|
|
358
358
|
/**
|
|
@@ -31,7 +31,7 @@ export type SearchRetrievalConfigRerankConfig = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* SearchRetrievalConfig
|
|
34
|
+
* SearchRetrievalConfig is the retrieval strategy configuration. Type remains
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* optional because external knowledge bases use the same base configuration
|
|
@@ -58,11 +58,10 @@ export type Skill = {
|
|
|
58
58
|
*/
|
|
59
59
|
instructions: string;
|
|
60
60
|
/**
|
|
61
|
-
* Latest semver
|
|
61
|
+
* Latest semver for the skill. It advances when the skill's definition
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
*
|
|
65
|
-
* workspaces.activities.
|
|
64
|
+
* changes and is returned on every read.
|
|
66
65
|
*/
|
|
67
66
|
version: string;
|
|
68
67
|
};
|
|
@@ -27,6 +27,18 @@ export type SpanSummary = {
|
|
|
27
27
|
usage?: TraceUsage | undefined;
|
|
28
28
|
cost?: TraceCost | undefined;
|
|
29
29
|
hasDetail?: boolean | undefined;
|
|
30
|
+
level?: number | undefined;
|
|
31
|
+
hasChildren?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Row badge inputs, so the tree does not need a detail fetch per span:
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* trace_framework is set on the trace root, leading_span_type where the
|
|
37
|
+
* ingest marked one, guardrail_enabled on evaluator spans run as guardrails.
|
|
38
|
+
*/
|
|
39
|
+
traceFramework?: string | undefined;
|
|
40
|
+
leadingSpanType?: string | undefined;
|
|
41
|
+
guardrailEnabled?: boolean | undefined;
|
|
30
42
|
};
|
|
31
43
|
|
|
32
44
|
/** @internal */
|
|
@@ -53,6 +65,11 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
53
65
|
usage: TraceUsage$inboundSchema.optional(),
|
|
54
66
|
cost: TraceCost$inboundSchema.optional(),
|
|
55
67
|
has_detail: z.boolean().optional(),
|
|
68
|
+
level: z.number().int().optional(),
|
|
69
|
+
has_children: z.boolean().optional(),
|
|
70
|
+
trace_framework: z.string().optional(),
|
|
71
|
+
leading_span_type: z.string().optional(),
|
|
72
|
+
guardrail_enabled: z.boolean().optional(),
|
|
56
73
|
}).transform((v) => {
|
|
57
74
|
return remap$(v, {
|
|
58
75
|
"trace_id": "traceId",
|
|
@@ -62,6 +79,10 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
62
79
|
"ended_at": "endedAt",
|
|
63
80
|
"duration_ms": "durationMs",
|
|
64
81
|
"has_detail": "hasDetail",
|
|
82
|
+
"has_children": "hasChildren",
|
|
83
|
+
"trace_framework": "traceFramework",
|
|
84
|
+
"leading_span_type": "leadingSpanType",
|
|
85
|
+
"guardrail_enabled": "guardrailEnabled",
|
|
65
86
|
});
|
|
66
87
|
});
|
|
67
88
|
|
|
@@ -48,11 +48,10 @@ export type BudgetListRequest = {
|
|
|
48
48
|
*/
|
|
49
49
|
period?: Array<components.BudgetPeriod> | undefined;
|
|
50
50
|
/**
|
|
51
|
-
* Optional free-text query
|
|
51
|
+
* Optional free-text query matched against a budget's scope target
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
55
|
-
* the per-workspace `{workspace_id}_budgets` collection.
|
|
54
|
+
* name and id.
|
|
56
55
|
*/
|
|
57
56
|
query?: string | undefined;
|
|
58
57
|
/**
|
|
@@ -1449,7 +1449,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1449
1449
|
| CreateChatCompletionMessagesToolMessage
|
|
1450
1450
|
>;
|
|
1451
1451
|
/**
|
|
1452
|
-
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the
|
|
1452
|
+
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
|
|
1453
1453
|
*/
|
|
1454
1454
|
model: string;
|
|
1455
1455
|
/**
|