@orq-ai/node 4.0.0-rc.57 → 4.0.0-rc.59
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/bin/mcp-server.js +316 -316
- package/bin/mcp-server.js.map +38 -38
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createknowledge.d.ts +14 -14
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +21 -21
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +47 -32
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +64 -64
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.d.ts +49 -34
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +74 -74
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +47 -32
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +64 -64
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.d.ts +47 -32
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +66 -66
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createknowledge.ts +33 -47
- package/src/models/operations/createtool.ts +134 -97
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +135 -128
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +168 -132
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +138 -104
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.0.0-rc.
|
|
71
|
+
sdkVersion: "4.0.0-rc.59",
|
|
72
72
|
genVersion: "2.755.9",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.59 2.755.9 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
516
516
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
517
517
|
.optional(),
|
|
518
518
|
updated: z.string().datetime({ offset: true }).default(
|
|
519
|
-
"2025-11-
|
|
519
|
+
"2025-11-20T14:28:39.426Z",
|
|
520
520
|
).transform(v => new Date(v)),
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
553
553
|
isActive: z.boolean(),
|
|
554
554
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
555
555
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
556
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
556
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.426Z"))
|
|
557
557
|
.transform(v => v.toISOString()),
|
|
558
558
|
}).transform((v) => {
|
|
559
559
|
return remap$(v, {
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2025-11-
|
|
170
|
+
"2025-11-20T14:28:39.096Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
210
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.096Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2025-11-
|
|
190
|
+
"2025-11-20T14:28:39.096Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
229
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.096Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|
|
@@ -4929,7 +4929,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
4929
4929
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
4930
4930
|
reviewed_by_id: z.string(),
|
|
4931
4931
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
4932
|
-
"2025-11-
|
|
4932
|
+
"2025-11-20T14:28:52.016Z",
|
|
4933
4933
|
).transform(v => new Date(v)),
|
|
4934
4934
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
4935
4935
|
values: z.array(z.string()),
|
|
@@ -4964,7 +4964,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
4964
4964
|
humanReviewId: z.string(),
|
|
4965
4965
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
4966
4966
|
reviewedById: z.string(),
|
|
4967
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
4967
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T14:28:52.016Z"))
|
|
4968
4968
|
.transform(v => v.toISOString()),
|
|
4969
4969
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
4970
4970
|
values: z.array(z.string()),
|
|
@@ -5029,7 +5029,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
5029
5029
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
5030
5030
|
reviewed_by_id: z.string(),
|
|
5031
5031
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5032
|
-
"2025-11-
|
|
5032
|
+
"2025-11-20T14:28:52.016Z",
|
|
5033
5033
|
).transform(v => new Date(v)),
|
|
5034
5034
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
5035
5035
|
value: z.number(),
|
|
@@ -5064,7 +5064,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
5064
5064
|
humanReviewId: z.string(),
|
|
5065
5065
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
5066
5066
|
reviewedById: z.string(),
|
|
5067
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5067
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T14:28:52.016Z"))
|
|
5068
5068
|
.transform(v => v.toISOString()),
|
|
5069
5069
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
5070
5070
|
value: z.number(),
|
|
@@ -5127,7 +5127,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
5127
5127
|
source: Source$inboundSchema.default("orq"),
|
|
5128
5128
|
reviewed_by_id: z.string(),
|
|
5129
5129
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5130
|
-
"2025-11-
|
|
5130
|
+
"2025-11-20T14:28:52.016Z",
|
|
5131
5131
|
).transform(v => new Date(v)),
|
|
5132
5132
|
type: EvaluationsType$inboundSchema,
|
|
5133
5133
|
value: z.string(),
|
|
@@ -5162,7 +5162,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
5162
5162
|
humanReviewId: z.string(),
|
|
5163
5163
|
source: Source$outboundSchema.default("orq"),
|
|
5164
5164
|
reviewedById: z.string(),
|
|
5165
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5165
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T14:28:52.016Z"))
|
|
5166
5166
|
.transform(v => v.toISOString()),
|
|
5167
5167
|
type: EvaluationsType$outboundSchema,
|
|
5168
5168
|
value: z.string(),
|
|
@@ -5267,7 +5267,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5267
5267
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5268
5268
|
.optional(),
|
|
5269
5269
|
updated: z.string().datetime({ offset: true }).default(
|
|
5270
|
-
"2025-11-
|
|
5270
|
+
"2025-11-20T14:28:39.096Z",
|
|
5271
5271
|
).transform(v => new Date(v)),
|
|
5272
5272
|
}).transform((v) => {
|
|
5273
5273
|
return remap$(v, {
|
|
@@ -5345,7 +5345,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5345
5345
|
createdById: z.string().optional(),
|
|
5346
5346
|
updatedById: z.string().optional(),
|
|
5347
5347
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5348
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
5348
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.096Z"))
|
|
5349
5349
|
.transform(v => v.toISOString()),
|
|
5350
5350
|
}).transform((v) => {
|
|
5351
5351
|
return remap$(v, {
|
|
@@ -608,7 +608,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
608
608
|
z.ZodTypeDef,
|
|
609
609
|
unknown
|
|
610
610
|
> = z.object({
|
|
611
|
-
_id: z.string().default("
|
|
611
|
+
_id: z.string().default("01KAGTP22P3VTQYW7V8NJAAVAP"),
|
|
612
612
|
display_name: z.string(),
|
|
613
613
|
description: z.string().optional(),
|
|
614
614
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -651,7 +651,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
651
651
|
z.ZodTypeDef,
|
|
652
652
|
CreateDatasourceResponseBody
|
|
653
653
|
> = z.object({
|
|
654
|
-
id: z.string().default("
|
|
654
|
+
id: z.string().default("01KAGTP22P3VTQYW7V8NJAAVAP"),
|
|
655
655
|
displayName: z.string(),
|
|
656
656
|
description: z.string().optional(),
|
|
657
657
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -2756,8 +2756,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2756
2756
|
> = z.object({
|
|
2757
2757
|
_id: z.string(),
|
|
2758
2758
|
description: z.string(),
|
|
2759
|
-
created: z.string().default("2025-11-
|
|
2760
|
-
updated: z.string().default("2025-11-
|
|
2759
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
2760
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
2761
2761
|
guardrail_config: z.union([
|
|
2762
2762
|
z.lazy(() =>
|
|
2763
2763
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -2799,8 +2799,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
2799
2799
|
> = z.object({
|
|
2800
2800
|
id: z.string(),
|
|
2801
2801
|
description: z.string(),
|
|
2802
|
-
created: z.string().default("2025-11-
|
|
2803
|
-
updated: z.string().default("2025-11-
|
|
2802
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
2803
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
2804
2804
|
guardrailConfig: z.union([
|
|
2805
2805
|
z.lazy(() =>
|
|
2806
2806
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3081,8 +3081,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
3081
3081
|
.object({
|
|
3082
3082
|
_id: z.string(),
|
|
3083
3083
|
description: z.string(),
|
|
3084
|
-
created: z.string().default("2025-11-
|
|
3085
|
-
updated: z.string().default("2025-11-
|
|
3084
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
3085
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
3086
3086
|
guardrail_config: z.union([
|
|
3087
3087
|
z.lazy(() =>
|
|
3088
3088
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3127,8 +3127,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
3127
3127
|
> = z.object({
|
|
3128
3128
|
id: z.string(),
|
|
3129
3129
|
description: z.string(),
|
|
3130
|
-
created: z.string().default("2025-11-
|
|
3131
|
-
updated: z.string().default("2025-11-
|
|
3130
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
3131
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
3132
3132
|
guardrailConfig: z.union([
|
|
3133
3133
|
z.lazy(() =>
|
|
3134
3134
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -5389,8 +5389,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
5389
5389
|
> = z.object({
|
|
5390
5390
|
_id: z.string(),
|
|
5391
5391
|
description: z.string(),
|
|
5392
|
-
created: z.string().default("2025-11-
|
|
5393
|
-
updated: z.string().default("2025-11-
|
|
5392
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5393
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5394
5394
|
guardrail_config: z.union([
|
|
5395
5395
|
z.lazy(() =>
|
|
5396
5396
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -5503,8 +5503,8 @@ export const CreateEvalResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
5503
5503
|
> = z.object({
|
|
5504
5504
|
id: z.string(),
|
|
5505
5505
|
description: z.string(),
|
|
5506
|
-
created: z.string().default("2025-11-
|
|
5507
|
-
updated: z.string().default("2025-11-
|
|
5506
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5507
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5508
5508
|
guardrailConfig: z.union([
|
|
5509
5509
|
z.lazy(() =>
|
|
5510
5510
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -5821,8 +5821,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
5821
5821
|
> = z.object({
|
|
5822
5822
|
_id: z.string(),
|
|
5823
5823
|
description: z.string(),
|
|
5824
|
-
created: z.string().default("2025-11-
|
|
5825
|
-
updated: z.string().default("2025-11-
|
|
5824
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5825
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5826
5826
|
guardrail_config: z.union([
|
|
5827
5827
|
z.lazy(() =>
|
|
5828
5828
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -5863,8 +5863,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
5863
5863
|
> = z.object({
|
|
5864
5864
|
id: z.string(),
|
|
5865
5865
|
description: z.string(),
|
|
5866
|
-
created: z.string().default("2025-11-
|
|
5867
|
-
updated: z.string().default("2025-11-
|
|
5866
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5867
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
5868
5868
|
guardrailConfig: z.union([
|
|
5869
5869
|
z.lazy(() =>
|
|
5870
5870
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -6144,8 +6144,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
6144
6144
|
> = z.object({
|
|
6145
6145
|
_id: z.string(),
|
|
6146
6146
|
description: z.string(),
|
|
6147
|
-
created: z.string().default("2025-11-
|
|
6148
|
-
updated: z.string().default("2025-11-
|
|
6147
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6148
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6149
6149
|
guardrail_config: z.union([
|
|
6150
6150
|
z.lazy(() =>
|
|
6151
6151
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -6192,8 +6192,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
6192
6192
|
> = z.object({
|
|
6193
6193
|
id: z.string(),
|
|
6194
6194
|
description: z.string(),
|
|
6195
|
-
created: z.string().default("2025-11-
|
|
6196
|
-
updated: z.string().default("2025-11-
|
|
6195
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6196
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6197
6197
|
guardrailConfig: z.union([
|
|
6198
6198
|
z.lazy(() =>
|
|
6199
6199
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -6449,8 +6449,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
6449
6449
|
> = z.object({
|
|
6450
6450
|
_id: z.string(),
|
|
6451
6451
|
description: z.string(),
|
|
6452
|
-
created: z.string().default("2025-11-
|
|
6453
|
-
updated: z.string().default("2025-11-
|
|
6452
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6453
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6454
6454
|
guardrail_config: z.union([
|
|
6455
6455
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
6456
6456
|
z.lazy(() =>
|
|
@@ -6489,8 +6489,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
6489
6489
|
> = z.object({
|
|
6490
6490
|
id: z.string(),
|
|
6491
6491
|
description: z.string(),
|
|
6492
|
-
created: z.string().default("2025-11-
|
|
6493
|
-
updated: z.string().default("2025-11-
|
|
6492
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6493
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6494
6494
|
guardrailConfig: z.union([
|
|
6495
6495
|
z.lazy(() =>
|
|
6496
6496
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -6728,8 +6728,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
6728
6728
|
> = z.object({
|
|
6729
6729
|
_id: z.string(),
|
|
6730
6730
|
description: z.string(),
|
|
6731
|
-
created: z.string().default("2025-11-
|
|
6732
|
-
updated: z.string().default("2025-11-
|
|
6731
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6732
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6733
6733
|
guardrail_config: z.union([
|
|
6734
6734
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
6735
6735
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -6768,8 +6768,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
6768
6768
|
> = z.object({
|
|
6769
6769
|
id: z.string(),
|
|
6770
6770
|
description: z.string(),
|
|
6771
|
-
created: z.string().default("2025-11-
|
|
6772
|
-
updated: z.string().default("2025-11-
|
|
6771
|
+
created: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6772
|
+
updated: z.string().default("2025-11-20T14:28:41.059Z"),
|
|
6773
6773
|
guardrailConfig: z.union([
|
|
6774
6774
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
6775
6775
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -212,7 +212,7 @@ export type ResponseBodyExternalConfig = {
|
|
|
212
212
|
apiUrl: string;
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
export type
|
|
215
|
+
export type ResponseBody2 = {
|
|
216
216
|
/**
|
|
217
217
|
* The unique identifier of the knowledge base.
|
|
218
218
|
*/
|
|
@@ -333,7 +333,7 @@ export type ResponseBodyRetrievalSettings = {
|
|
|
333
333
|
agenticRagConfig?: ResponseBodyAgenticRagConfig | null | undefined;
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
export type
|
|
336
|
+
export type ResponseBody1 = {
|
|
337
337
|
/**
|
|
338
338
|
* The unique identifier of the knowledge base.
|
|
339
339
|
*/
|
|
@@ -384,9 +384,7 @@ export type CreateKnowledgeResponseBody1 = {
|
|
|
384
384
|
/**
|
|
385
385
|
* Knowledge successfully created
|
|
386
386
|
*/
|
|
387
|
-
export type CreateKnowledgeResponseBody =
|
|
388
|
-
| CreateKnowledgeResponseBody1
|
|
389
|
-
| CreateKnowledgeResponseBody2;
|
|
387
|
+
export type CreateKnowledgeResponseBody = ResponseBody1 | ResponseBody2;
|
|
390
388
|
|
|
391
389
|
/** @internal */
|
|
392
390
|
export const CreateKnowledgeRequestBodyKnowledgeType$inboundSchema:
|
|
@@ -1071,8 +1069,8 @@ export function responseBodyExternalConfigFromJSON(
|
|
|
1071
1069
|
}
|
|
1072
1070
|
|
|
1073
1071
|
/** @internal */
|
|
1074
|
-
export const
|
|
1075
|
-
|
|
1072
|
+
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
1073
|
+
ResponseBody2,
|
|
1076
1074
|
z.ZodTypeDef,
|
|
1077
1075
|
unknown
|
|
1078
1076
|
> = z.object({
|
|
@@ -1103,7 +1101,7 @@ export const CreateKnowledgeResponseBody2$inboundSchema: z.ZodType<
|
|
|
1103
1101
|
});
|
|
1104
1102
|
});
|
|
1105
1103
|
/** @internal */
|
|
1106
|
-
export type
|
|
1104
|
+
export type ResponseBody2$Outbound = {
|
|
1107
1105
|
_id: string;
|
|
1108
1106
|
created: string;
|
|
1109
1107
|
description?: string | undefined;
|
|
@@ -1121,10 +1119,10 @@ export type CreateKnowledgeResponseBody2$Outbound = {
|
|
|
1121
1119
|
};
|
|
1122
1120
|
|
|
1123
1121
|
/** @internal */
|
|
1124
|
-
export const
|
|
1125
|
-
|
|
1122
|
+
export const ResponseBody2$outboundSchema: z.ZodType<
|
|
1123
|
+
ResponseBody2$Outbound,
|
|
1126
1124
|
z.ZodTypeDef,
|
|
1127
|
-
|
|
1125
|
+
ResponseBody2
|
|
1128
1126
|
> = z.object({
|
|
1129
1127
|
id: z.string(),
|
|
1130
1128
|
created: z.string(),
|
|
@@ -1153,22 +1151,16 @@ export const CreateKnowledgeResponseBody2$outboundSchema: z.ZodType<
|
|
|
1153
1151
|
});
|
|
1154
1152
|
});
|
|
1155
1153
|
|
|
1156
|
-
export function
|
|
1157
|
-
|
|
1158
|
-
): string {
|
|
1159
|
-
return JSON.stringify(
|
|
1160
|
-
CreateKnowledgeResponseBody2$outboundSchema.parse(
|
|
1161
|
-
createKnowledgeResponseBody2,
|
|
1162
|
-
),
|
|
1163
|
-
);
|
|
1154
|
+
export function responseBody2ToJSON(responseBody2: ResponseBody2): string {
|
|
1155
|
+
return JSON.stringify(ResponseBody2$outboundSchema.parse(responseBody2));
|
|
1164
1156
|
}
|
|
1165
|
-
export function
|
|
1157
|
+
export function responseBody2FromJSON(
|
|
1166
1158
|
jsonString: string,
|
|
1167
|
-
): SafeParseResult<
|
|
1159
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
1168
1160
|
return safeParse(
|
|
1169
1161
|
jsonString,
|
|
1170
|
-
(x) =>
|
|
1171
|
-
`Failed to parse '
|
|
1162
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1163
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
1172
1164
|
);
|
|
1173
1165
|
}
|
|
1174
1166
|
|
|
@@ -1368,8 +1360,8 @@ export function responseBodyRetrievalSettingsFromJSON(
|
|
|
1368
1360
|
}
|
|
1369
1361
|
|
|
1370
1362
|
/** @internal */
|
|
1371
|
-
export const
|
|
1372
|
-
|
|
1363
|
+
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
1364
|
+
ResponseBody1,
|
|
1373
1365
|
z.ZodTypeDef,
|
|
1374
1366
|
unknown
|
|
1375
1367
|
> = z.object({
|
|
@@ -1396,7 +1388,7 @@ export const CreateKnowledgeResponseBody1$inboundSchema: z.ZodType<
|
|
|
1396
1388
|
});
|
|
1397
1389
|
});
|
|
1398
1390
|
/** @internal */
|
|
1399
|
-
export type
|
|
1391
|
+
export type ResponseBody1$Outbound = {
|
|
1400
1392
|
_id: string;
|
|
1401
1393
|
created: string;
|
|
1402
1394
|
description?: string | undefined;
|
|
@@ -1412,10 +1404,10 @@ export type CreateKnowledgeResponseBody1$Outbound = {
|
|
|
1412
1404
|
};
|
|
1413
1405
|
|
|
1414
1406
|
/** @internal */
|
|
1415
|
-
export const
|
|
1416
|
-
|
|
1407
|
+
export const ResponseBody1$outboundSchema: z.ZodType<
|
|
1408
|
+
ResponseBody1$Outbound,
|
|
1417
1409
|
z.ZodTypeDef,
|
|
1418
|
-
|
|
1410
|
+
ResponseBody1
|
|
1419
1411
|
> = z.object({
|
|
1420
1412
|
id: z.string(),
|
|
1421
1413
|
created: z.string(),
|
|
@@ -1440,22 +1432,16 @@ export const CreateKnowledgeResponseBody1$outboundSchema: z.ZodType<
|
|
|
1440
1432
|
});
|
|
1441
1433
|
});
|
|
1442
1434
|
|
|
1443
|
-
export function
|
|
1444
|
-
|
|
1445
|
-
): string {
|
|
1446
|
-
return JSON.stringify(
|
|
1447
|
-
CreateKnowledgeResponseBody1$outboundSchema.parse(
|
|
1448
|
-
createKnowledgeResponseBody1,
|
|
1449
|
-
),
|
|
1450
|
-
);
|
|
1435
|
+
export function responseBody1ToJSON(responseBody1: ResponseBody1): string {
|
|
1436
|
+
return JSON.stringify(ResponseBody1$outboundSchema.parse(responseBody1));
|
|
1451
1437
|
}
|
|
1452
|
-
export function
|
|
1438
|
+
export function responseBody1FromJSON(
|
|
1453
1439
|
jsonString: string,
|
|
1454
|
-
): SafeParseResult<
|
|
1440
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
1455
1441
|
return safeParse(
|
|
1456
1442
|
jsonString,
|
|
1457
|
-
(x) =>
|
|
1458
|
-
`Failed to parse '
|
|
1443
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
1444
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
1459
1445
|
);
|
|
1460
1446
|
}
|
|
1461
1447
|
|
|
@@ -1465,13 +1451,13 @@ export const CreateKnowledgeResponseBody$inboundSchema: z.ZodType<
|
|
|
1465
1451
|
z.ZodTypeDef,
|
|
1466
1452
|
unknown
|
|
1467
1453
|
> = z.union([
|
|
1468
|
-
z.lazy(() =>
|
|
1469
|
-
z.lazy(() =>
|
|
1454
|
+
z.lazy(() => ResponseBody1$inboundSchema),
|
|
1455
|
+
z.lazy(() => ResponseBody2$inboundSchema),
|
|
1470
1456
|
]);
|
|
1471
1457
|
/** @internal */
|
|
1472
1458
|
export type CreateKnowledgeResponseBody$Outbound =
|
|
1473
|
-
|
|
|
1474
|
-
|
|
|
1459
|
+
| ResponseBody1$Outbound
|
|
1460
|
+
| ResponseBody2$Outbound;
|
|
1475
1461
|
|
|
1476
1462
|
/** @internal */
|
|
1477
1463
|
export const CreateKnowledgeResponseBody$outboundSchema: z.ZodType<
|
|
@@ -1479,8 +1465,8 @@ export const CreateKnowledgeResponseBody$outboundSchema: z.ZodType<
|
|
|
1479
1465
|
z.ZodTypeDef,
|
|
1480
1466
|
CreateKnowledgeResponseBody
|
|
1481
1467
|
> = z.union([
|
|
1482
|
-
z.lazy(() =>
|
|
1483
|
-
z.lazy(() =>
|
|
1468
|
+
z.lazy(() => ResponseBody1$outboundSchema),
|
|
1469
|
+
z.lazy(() => ResponseBody2$outboundSchema),
|
|
1484
1470
|
]);
|
|
1485
1471
|
|
|
1486
1472
|
export function createKnowledgeResponseBodyToJSON(
|