@orq-ai/node 4.15.13 → 4.15.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +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/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 +3 -3
- package/packages/orq-rc/src/funcs/apiKeysCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackSubmit.ts +162 -0
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelFusionsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelFusionsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsList.ts +173 -0
- package/packages/orq-rc/src/funcs/modelFusionsSetEnabled.ts +174 -0
- package/packages/orq-rc/src/funcs/modelFusionsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/tracesGetConversation.ts +174 -0
- package/packages/orq-rc/src/funcs/tracesListFilters.ts +170 -0
- package/packages/orq-rc/src/funcs/tracesQuery.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/alert.ts +7 -7
- package/packages/orq-rc/src/models/components/alerttrigger.ts +5 -4
- package/packages/orq-rc/src/models/components/allprojectsscope.ts +25 -0
- package/packages/orq-rc/src/models/components/annotationfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetlimitsrestresponse.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetrestresponse.ts +11 -12
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/createdatasetrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createmodelfusionrequest.ts +95 -0
- package/packages/orq-rc/src/models/components/createmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +3 -5
- package/packages/orq-rc/src/models/components/deletemodelfusionresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +29 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +24 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +29 -0
- package/packages/orq-rc/src/models/components/fieldinfo.ts +2 -0
- package/packages/orq-rc/src/models/components/getmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/gettraceconversationresponse.ts +63 -0
- package/packages/orq-rc/src/models/components/identity.ts +11 -12
- package/packages/orq-rc/src/models/components/index.ts +24 -2
- package/packages/orq-rc/src/models/components/knowledgesettings.ts +5 -5
- package/packages/orq-rc/src/models/components/listmodelfusionsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listtracefiltersresponse.ts +47 -0
- package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/metadatafilter.ts +33 -0
- package/packages/orq-rc/src/models/components/modelbudgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/modelbudgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/modelfusion.ts +110 -0
- package/packages/orq-rc/src/models/components/modelfusionconfig.ts +104 -0
- package/packages/orq-rc/src/models/components/modelfusionpreset.ts +25 -0
- package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +26 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +16 -0
- package/packages/orq-rc/src/models/components/pricing.ts +8 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +8 -0
- package/packages/orq-rc/src/models/components/project.ts +1 -4
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +14 -0
- package/packages/orq-rc/src/models/components/ratelimit.ts +2 -2
- package/packages/orq-rc/src/models/components/ratelimitrestresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/requestprojectscope.ts +71 -0
- package/packages/orq-rc/src/models/components/responsemeta.ts +3 -3
- package/packages/orq-rc/src/models/components/{internalretrievalconfig.ts → retrievalconfig.ts} +7 -7
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +4 -4
- package/packages/orq-rc/src/models/components/searchlogsresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/searchrerankconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/servertoolusedetails.ts +3 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/sharing.ts +2 -3
- package/packages/orq-rc/src/models/components/singleprojectscope.ts +36 -0
- package/packages/orq-rc/src/models/components/submitfeedbackrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/submitfeedbackresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionrequest.ts +77 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/operations/apikeycreate.ts +6 -26
- package/packages/orq-rc/src/models/operations/apikeyupdate.ts +6 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +15 -29
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +5 -5
- package/packages/orq-rc/src/models/operations/createcompletion.ts +4 -4
- package/packages/orq-rc/src/models/operations/createimage.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +30 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +7 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +30 -1
- package/packages/orq-rc/src/models/operations/modelfusiondelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionget.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionlist.ts +53 -0
- package/packages/orq-rc/src/models/operations/modelfusionsetenabled.ts +45 -0
- package/packages/orq-rc/src/models/operations/modelfusionupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/parse.ts +3 -3
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +31 -30
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/skilllist.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/tracesgetconversation.ts +45 -0
- package/packages/orq-rc/src/models/operations/traceslistfilters.ts +39 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +60 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/apikeys.ts +1 -1
- package/packages/orq-rc/src/sdk/evals.ts +1 -1
- package/packages/orq-rc/src/sdk/feedback.ts +29 -4
- package/packages/orq-rc/src/sdk/knowledge.ts +5 -5
- package/packages/orq-rc/src/sdk/modelfusions.ts +118 -0
- package/packages/orq-rc/src/sdk/models.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/traces.ts +37 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.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/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/packages/orq-rc/src/models/components/projectscope.ts +0 -35
|
@@ -51,7 +51,7 @@ export type LateChunkerStrategy = {
|
|
|
51
51
|
*/
|
|
52
52
|
minCharactersPerChunk?: number | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* Embedding model used to generate context-aware chunk embeddings. [Available embedding models](/
|
|
54
|
+
* Embedding model used to generate context-aware chunk embeddings. [Available embedding models](/ai-gateway/supported-models#embedding-models)
|
|
55
55
|
*/
|
|
56
56
|
embeddingModel: string;
|
|
57
57
|
/**
|
|
@@ -154,7 +154,7 @@ export type AgenticChunkerStrategy = {
|
|
|
154
154
|
returnType?: ParseChunkingRequestChunkingRequestReturnType | undefined;
|
|
155
155
|
strategy: "agentic";
|
|
156
156
|
/**
|
|
157
|
-
* Model to use for chunking. [Available models](/
|
|
157
|
+
* Model to use for chunking. [Available models](/ai-gateway/supported-models#chat-models)
|
|
158
158
|
*/
|
|
159
159
|
model: string;
|
|
160
160
|
/**
|
|
@@ -237,7 +237,7 @@ export type SemanticChunkerStrategy = {
|
|
|
237
237
|
*/
|
|
238
238
|
threshold?: number | Threshold2 | undefined;
|
|
239
239
|
/**
|
|
240
|
-
* Embedding model to use for semantic similarity. [Available embedding models](/
|
|
240
|
+
* Embedding model to use for semantic similarity. [Available embedding models](/ai-gateway/supported-models#embedding-models)
|
|
241
241
|
*/
|
|
242
242
|
embeddingModel: string;
|
|
243
243
|
/**
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-
|
|
321
|
+
"2026-10-02T06:39:53.322Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-
|
|
367
|
+
"2026-10-02T06:39:53.322Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -12,9 +12,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
14
14
|
*/
|
|
15
|
-
export type
|
|
15
|
+
export type PostV2FeedbackValue = string | number | Array<string>;
|
|
16
16
|
|
|
17
|
-
export const
|
|
17
|
+
export const Product = {
|
|
18
18
|
Remoteconfigs: "remoteconfigs",
|
|
19
19
|
Deployments: "deployments",
|
|
20
20
|
Experiments: "experiments",
|
|
@@ -34,7 +34,7 @@ export const PostV2FeedbackProduct = {
|
|
|
34
34
|
AiChat: "ai-chat",
|
|
35
35
|
McpGateway: "mcp_gateway",
|
|
36
36
|
} as const;
|
|
37
|
-
export type
|
|
37
|
+
export type Product = ClosedEnum<typeof Product>;
|
|
38
38
|
|
|
39
39
|
export type PostV2FeedbackRequestBody = {
|
|
40
40
|
/**
|
|
@@ -53,15 +53,15 @@ export type PostV2FeedbackRequestBody = {
|
|
|
53
53
|
* The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
|
|
54
54
|
*/
|
|
55
55
|
traceId: string;
|
|
56
|
-
product?:
|
|
56
|
+
product?: Product | undefined;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
61
61
|
*/
|
|
62
|
-
export type
|
|
62
|
+
export type PostV2FeedbackFeedbackValue = string | number | Array<string>;
|
|
63
63
|
|
|
64
|
-
export const
|
|
64
|
+
export const PostV2FeedbackProduct = {
|
|
65
65
|
Remoteconfigs: "remoteconfigs",
|
|
66
66
|
Deployments: "deployments",
|
|
67
67
|
Experiments: "experiments",
|
|
@@ -81,9 +81,7 @@ export const PostV2FeedbackFeedbackProduct = {
|
|
|
81
81
|
AiChat: "ai-chat",
|
|
82
82
|
McpGateway: "mcp_gateway",
|
|
83
83
|
} as const;
|
|
84
|
-
export type
|
|
85
|
-
typeof PostV2FeedbackFeedbackProduct
|
|
86
|
-
>;
|
|
84
|
+
export type PostV2FeedbackProduct = ClosedEnum<typeof PostV2FeedbackProduct>;
|
|
87
85
|
|
|
88
86
|
/**
|
|
89
87
|
* Feedback submitted successfully
|
|
@@ -105,27 +103,30 @@ export type PostV2FeedbackResponseBody = {
|
|
|
105
103
|
* The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
|
|
106
104
|
*/
|
|
107
105
|
traceId: string;
|
|
108
|
-
product:
|
|
106
|
+
product: PostV2FeedbackProduct;
|
|
109
107
|
};
|
|
110
108
|
|
|
111
109
|
/** @internal */
|
|
112
|
-
export type
|
|
110
|
+
export type PostV2FeedbackValue$Outbound = string | number | Array<string>;
|
|
113
111
|
|
|
114
112
|
/** @internal */
|
|
115
|
-
export const
|
|
116
|
-
|
|
113
|
+
export const PostV2FeedbackValue$outboundSchema: z.ZodType<
|
|
114
|
+
PostV2FeedbackValue$Outbound,
|
|
117
115
|
z.ZodTypeDef,
|
|
118
|
-
|
|
116
|
+
PostV2FeedbackValue
|
|
119
117
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
120
118
|
|
|
121
|
-
export function
|
|
122
|
-
|
|
119
|
+
export function postV2FeedbackValueToJSON(
|
|
120
|
+
postV2FeedbackValue: PostV2FeedbackValue,
|
|
121
|
+
): string {
|
|
122
|
+
return JSON.stringify(
|
|
123
|
+
PostV2FeedbackValue$outboundSchema.parse(postV2FeedbackValue),
|
|
124
|
+
);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
/** @internal */
|
|
126
|
-
export const
|
|
127
|
-
|
|
128
|
-
> = z.nativeEnum(PostV2FeedbackProduct);
|
|
128
|
+
export const Product$outboundSchema: z.ZodNativeEnum<typeof Product> = z
|
|
129
|
+
.nativeEnum(Product);
|
|
129
130
|
|
|
130
131
|
/** @internal */
|
|
131
132
|
export type PostV2FeedbackRequestBody$Outbound = {
|
|
@@ -146,7 +147,7 @@ export const PostV2FeedbackRequestBody$outboundSchema: z.ZodType<
|
|
|
146
147
|
field: z.string(),
|
|
147
148
|
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
148
149
|
traceId: z.string(),
|
|
149
|
-
product:
|
|
150
|
+
product: Product$outboundSchema.default("deployments"),
|
|
150
151
|
}).transform((v) => {
|
|
151
152
|
return remap$(v, {
|
|
152
153
|
field: "property",
|
|
@@ -163,26 +164,26 @@ export function postV2FeedbackRequestBodyToJSON(
|
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
/** @internal */
|
|
166
|
-
export const
|
|
167
|
-
|
|
167
|
+
export const PostV2FeedbackFeedbackValue$inboundSchema: z.ZodType<
|
|
168
|
+
PostV2FeedbackFeedbackValue,
|
|
168
169
|
z.ZodTypeDef,
|
|
169
170
|
unknown
|
|
170
171
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
171
172
|
|
|
172
|
-
export function
|
|
173
|
+
export function postV2FeedbackFeedbackValueFromJSON(
|
|
173
174
|
jsonString: string,
|
|
174
|
-
): SafeParseResult<
|
|
175
|
+
): SafeParseResult<PostV2FeedbackFeedbackValue, SDKValidationError> {
|
|
175
176
|
return safeParse(
|
|
176
177
|
jsonString,
|
|
177
|
-
(x) =>
|
|
178
|
-
`Failed to parse '
|
|
178
|
+
(x) => PostV2FeedbackFeedbackValue$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
+
`Failed to parse 'PostV2FeedbackFeedbackValue' from JSON`,
|
|
179
180
|
);
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
/** @internal */
|
|
183
|
-
export const
|
|
184
|
-
typeof
|
|
185
|
-
> = z.nativeEnum(
|
|
184
|
+
export const PostV2FeedbackProduct$inboundSchema: z.ZodNativeEnum<
|
|
185
|
+
typeof PostV2FeedbackProduct
|
|
186
|
+
> = z.nativeEnum(PostV2FeedbackProduct);
|
|
186
187
|
|
|
187
188
|
/** @internal */
|
|
188
189
|
export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
|
|
@@ -194,7 +195,7 @@ export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
|
|
|
194
195
|
property: z.string(),
|
|
195
196
|
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
196
197
|
trace_id: z.string(),
|
|
197
|
-
product:
|
|
198
|
+
product: PostV2FeedbackProduct$inboundSchema.default("deployments"),
|
|
198
199
|
}).transform((v) => {
|
|
199
200
|
return remap$(v, {
|
|
200
201
|
"trace_id": "traceId",
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-10-02T06:39:58.368Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-10-02T06:39:58.368Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-10-02T06:39:58.368Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-10-02T06:39:58.367Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const PostV2FeedbackRemoveProduct = {
|
|
13
13
|
Remoteconfigs: "remoteconfigs",
|
|
14
14
|
Deployments: "deployments",
|
|
15
15
|
Experiments: "experiments",
|
|
@@ -29,15 +29,17 @@ export const Product = {
|
|
|
29
29
|
AiChat: "ai-chat",
|
|
30
30
|
McpGateway: "mcp_gateway",
|
|
31
31
|
} as const;
|
|
32
|
-
export type
|
|
32
|
+
export type PostV2FeedbackRemoveProduct = ClosedEnum<
|
|
33
|
+
typeof PostV2FeedbackRemoveProduct
|
|
34
|
+
>;
|
|
33
35
|
|
|
34
36
|
export type PostV2FeedbackRemoveRequestBody = {
|
|
35
37
|
id: string;
|
|
36
38
|
traceId: string;
|
|
37
|
-
product:
|
|
39
|
+
product: PostV2FeedbackRemoveProduct;
|
|
38
40
|
};
|
|
39
41
|
|
|
40
|
-
export const
|
|
42
|
+
export const PostV2FeedbackRemoveFeedbackProduct = {
|
|
41
43
|
Remoteconfigs: "remoteconfigs",
|
|
42
44
|
Deployments: "deployments",
|
|
43
45
|
Experiments: "experiments",
|
|
@@ -57,8 +59,8 @@ export const PostV2FeedbackRemoveProduct = {
|
|
|
57
59
|
AiChat: "ai-chat",
|
|
58
60
|
McpGateway: "mcp_gateway",
|
|
59
61
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
62
|
+
export type PostV2FeedbackRemoveFeedbackProduct = ClosedEnum<
|
|
63
|
+
typeof PostV2FeedbackRemoveFeedbackProduct
|
|
62
64
|
>;
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -67,12 +69,13 @@ export type PostV2FeedbackRemoveProduct = ClosedEnum<
|
|
|
67
69
|
export type PostV2FeedbackRemoveResponseBody = {
|
|
68
70
|
id: string;
|
|
69
71
|
traceId: string;
|
|
70
|
-
product:
|
|
72
|
+
product: PostV2FeedbackRemoveFeedbackProduct;
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
/** @internal */
|
|
74
|
-
export const
|
|
75
|
-
|
|
76
|
+
export const PostV2FeedbackRemoveProduct$outboundSchema: z.ZodNativeEnum<
|
|
77
|
+
typeof PostV2FeedbackRemoveProduct
|
|
78
|
+
> = z.nativeEnum(PostV2FeedbackRemoveProduct);
|
|
76
79
|
|
|
77
80
|
/** @internal */
|
|
78
81
|
export type PostV2FeedbackRemoveRequestBody$Outbound = {
|
|
@@ -89,7 +92,7 @@ export const PostV2FeedbackRemoveRequestBody$outboundSchema: z.ZodType<
|
|
|
89
92
|
> = z.object({
|
|
90
93
|
id: z.string(),
|
|
91
94
|
traceId: z.string(),
|
|
92
|
-
product:
|
|
95
|
+
product: PostV2FeedbackRemoveProduct$outboundSchema,
|
|
93
96
|
}).transform((v) => {
|
|
94
97
|
return remap$(v, {
|
|
95
98
|
traceId: "trace_id",
|
|
@@ -107,9 +110,9 @@ export function postV2FeedbackRemoveRequestBodyToJSON(
|
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
/** @internal */
|
|
110
|
-
export const
|
|
111
|
-
typeof
|
|
112
|
-
> = z.nativeEnum(
|
|
113
|
+
export const PostV2FeedbackRemoveFeedbackProduct$inboundSchema: z.ZodNativeEnum<
|
|
114
|
+
typeof PostV2FeedbackRemoveFeedbackProduct
|
|
115
|
+
> = z.nativeEnum(PostV2FeedbackRemoveFeedbackProduct);
|
|
113
116
|
|
|
114
117
|
/** @internal */
|
|
115
118
|
export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
|
|
@@ -119,7 +122,7 @@ export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
|
|
|
119
122
|
> = z.object({
|
|
120
123
|
id: z.string(),
|
|
121
124
|
trace_id: z.string(),
|
|
122
|
-
product:
|
|
125
|
+
product: PostV2FeedbackRemoveFeedbackProduct$inboundSchema,
|
|
123
126
|
}).transform((v) => {
|
|
124
127
|
return remap$(v, {
|
|
125
128
|
"trace_id": "traceId",
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-
|
|
274
|
+
"2026-10-02T06:39:53.322Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-
|
|
319
|
+
"2026-10-02T06:39:53.322Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -44,6 +44,11 @@ export type RetrieveAgentRequestTeamOfAgents = {
|
|
|
44
44
|
role?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
export type RetrieveAgentRequestAgentPlugins = {
|
|
48
|
+
id: string;
|
|
49
|
+
version: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
47
52
|
export type RetrieveAgentRequestMetrics = {
|
|
48
53
|
totalCost: number;
|
|
49
54
|
};
|
|
@@ -1232,7 +1237,7 @@ export type RetrieveAgentRequestFallbackModelConfiguration =
|
|
|
1232
1237
|
|
|
1233
1238
|
export type RetrieveAgentRequestModel = {
|
|
1234
1239
|
/**
|
|
1235
|
-
*
|
|
1240
|
+
* ID of the primary model, in provider/model-id format (for example `openai/gpt-5.6-sol`)
|
|
1236
1241
|
*/
|
|
1237
1242
|
id: string;
|
|
1238
1243
|
/**
|
|
@@ -1301,6 +1306,7 @@ export type RetrieveAgentRequestResponseBody = {
|
|
|
1301
1306
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
1302
1307
|
*/
|
|
1303
1308
|
skills?: Array<string> | undefined;
|
|
1309
|
+
agentPlugins?: Array<RetrieveAgentRequestAgentPlugins> | undefined;
|
|
1304
1310
|
metrics?: RetrieveAgentRequestMetrics | undefined;
|
|
1305
1311
|
/**
|
|
1306
1312
|
* Extracted variables from agent instructions
|
|
@@ -1377,6 +1383,26 @@ export function retrieveAgentRequestTeamOfAgentsFromJSON(
|
|
|
1377
1383
|
);
|
|
1378
1384
|
}
|
|
1379
1385
|
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export const RetrieveAgentRequestAgentPlugins$inboundSchema: z.ZodType<
|
|
1388
|
+
RetrieveAgentRequestAgentPlugins,
|
|
1389
|
+
z.ZodTypeDef,
|
|
1390
|
+
unknown
|
|
1391
|
+
> = z.object({
|
|
1392
|
+
id: z.string(),
|
|
1393
|
+
version: z.string(),
|
|
1394
|
+
});
|
|
1395
|
+
|
|
1396
|
+
export function retrieveAgentRequestAgentPluginsFromJSON(
|
|
1397
|
+
jsonString: string,
|
|
1398
|
+
): SafeParseResult<RetrieveAgentRequestAgentPlugins, SDKValidationError> {
|
|
1399
|
+
return safeParse(
|
|
1400
|
+
jsonString,
|
|
1401
|
+
(x) => RetrieveAgentRequestAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1402
|
+
`Failed to parse 'RetrieveAgentRequestAgentPlugins' from JSON`,
|
|
1403
|
+
);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1380
1406
|
/** @internal */
|
|
1381
1407
|
export const RetrieveAgentRequestMetrics$inboundSchema: z.ZodType<
|
|
1382
1408
|
RetrieveAgentRequestMetrics,
|
|
@@ -3064,6 +3090,9 @@ export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
3064
3090
|
z.lazy(() => RetrieveAgentRequestTeamOfAgents$inboundSchema),
|
|
3065
3091
|
).optional(),
|
|
3066
3092
|
skills: z.array(z.string()).optional(),
|
|
3093
|
+
agent_plugins: z.array(
|
|
3094
|
+
z.lazy(() => RetrieveAgentRequestAgentPlugins$inboundSchema),
|
|
3095
|
+
).optional(),
|
|
3067
3096
|
metrics: z.lazy(() => RetrieveAgentRequestMetrics$inboundSchema).optional(),
|
|
3068
3097
|
variables: z.record(z.any()).optional(),
|
|
3069
3098
|
knowledge_bases: z.array(
|
|
@@ -3087,6 +3116,7 @@ export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3116
|
"updated_by_id": "updatedById",
|
|
3088
3117
|
"memory_stores": "memoryStores",
|
|
3089
3118
|
"team_of_agents": "teamOfAgents",
|
|
3119
|
+
"agent_plugins": "agentPlugins",
|
|
3090
3120
|
"knowledge_bases": "knowledgeBases",
|
|
3091
3121
|
"system_prompt": "systemPrompt",
|
|
3092
3122
|
});
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M3XNEKW94YPX5TZRCA4AVNE6"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M3XNEKW9W85TEXG8PN7YBJPK"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M3XNEKW8GE0B0DWF3R31HJE2"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M3XNEKW8FNQJPHWPHK9AEZ12"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M3XNEKTQA6C2BN30NFSN4Q77"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -7,10 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
|
|
8
8
|
export type SkillListRequest = {
|
|
9
9
|
/**
|
|
10
|
-
* Page size, 1–200. Unset uses the server default (25)
|
|
10
|
+
* Page size, 1–200. Unset uses the server default (25). Values outside
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* the range, including 0, are rejected.
|
|
14
14
|
*/
|
|
15
15
|
limit?: number | undefined;
|
|
16
16
|
/**
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M3XNEKV3GB9TR3VWRATJGF9H"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -0,0 +1,45 @@
|
|
|
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 TracesGetConversationRequest = {
|
|
9
|
+
traceId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Read the conversation from this span instead of the automatically selected one.
|
|
12
|
+
*/
|
|
13
|
+
spanId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type TracesGetConversationRequest$Outbound = {
|
|
18
|
+
trace_id: string;
|
|
19
|
+
span_id?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const TracesGetConversationRequest$outboundSchema: z.ZodType<
|
|
24
|
+
TracesGetConversationRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
TracesGetConversationRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
traceId: z.string(),
|
|
29
|
+
spanId: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
traceId: "trace_id",
|
|
33
|
+
spanId: "span_id",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function tracesGetConversationRequestToJSON(
|
|
38
|
+
tracesGetConversationRequest: TracesGetConversationRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
TracesGetConversationRequest$outboundSchema.parse(
|
|
42
|
+
tracesGetConversationRequest,
|
|
43
|
+
),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type TracesListFiltersRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Every evaluator and human review in the workspace, not only recent ones.
|
|
11
|
+
*/
|
|
12
|
+
includeAll?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type TracesListFiltersRequest$Outbound = {
|
|
17
|
+
include_all?: boolean | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const TracesListFiltersRequest$outboundSchema: z.ZodType<
|
|
22
|
+
TracesListFiltersRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
TracesListFiltersRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
includeAll: z.boolean().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
includeAll: "include_all",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function tracesListFiltersRequestToJSON(
|
|
34
|
+
tracesListFiltersRequest: TracesListFiltersRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
TracesListFiltersRequest$outboundSchema.parse(tracesListFiltersRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|