@orq-ai/node 4.0.0-rc.31 → 4.0.0-rc.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/mcp-server.js +539 -527
- package/bin/mcp-server.js.map +53 -53
- package/docs/sdks/deployments/README.md +43 -43
- package/examples/package-lock.json +2 -10
- package/funcs/deploymentsInvoke.d.ts +1 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsInvoke.d.ts +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/{deployments.d.ts → invokedeploymentrequest.d.ts} +280 -266
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/{deployments.js → invokedeploymentrequest.js} +377 -363
- package/models/components/invokedeploymentrequest.js.map +1 -0
- 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/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +42 -32
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +42 -42
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -15
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -17
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +41 -32
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +42 -41
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- 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/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- 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.js +10 -10
- package/models/operations/searchknowledge.d.ts +41 -32
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +40 -40
- package/models/operations/searchknowledge.js.map +1 -1
- package/models/operations/syncmcptool.js +10 -10
- 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/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +3 -6
- package/sdk/deployments.d.ts +7 -7
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +9 -9
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/models/components/index.ts +1 -1
- package/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- 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/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +78 -66
- package/src/models/operations/deploymentinvoke.ts +35 -35
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +80 -78
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- 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/listpromptversions.ts +1 -0
- 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 +10 -10
- package/src/models/operations/searchknowledge.ts +79 -70
- package/src/models/operations/syncmcptool.ts +10 -10
- 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/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/deployments.ts +17 -17
- package/models/components/deployments.d.ts.map +0 -1
- package/models/components/deployments.js.map +0 -1
|
@@ -1041,7 +1041,10 @@ export type OrGte = {
|
|
|
1041
1041
|
gte: number;
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
|
-
|
|
1044
|
+
/**
|
|
1045
|
+
* Greater than
|
|
1046
|
+
*/
|
|
1047
|
+
export type OrGt = {
|
|
1045
1048
|
gt: number;
|
|
1046
1049
|
};
|
|
1047
1050
|
|
|
@@ -1066,7 +1069,7 @@ export type OrEq = {
|
|
|
1066
1069
|
export type KnowledgeFilterOr =
|
|
1067
1070
|
| OrEq
|
|
1068
1071
|
| OrNe
|
|
1069
|
-
|
|
|
1072
|
+
| OrGt
|
|
1070
1073
|
| OrGte
|
|
1071
1074
|
| OrLt
|
|
1072
1075
|
| OrLte
|
|
@@ -1083,7 +1086,7 @@ export type Or = {
|
|
|
1083
1086
|
[k: string]:
|
|
1084
1087
|
| OrEq
|
|
1085
1088
|
| OrNe
|
|
1086
|
-
|
|
|
1089
|
+
| OrGt
|
|
1087
1090
|
| OrGte
|
|
1088
1091
|
| OrLt
|
|
1089
1092
|
| OrLte
|
|
@@ -1140,7 +1143,10 @@ export type AndGte = {
|
|
|
1140
1143
|
gte: number;
|
|
1141
1144
|
};
|
|
1142
1145
|
|
|
1143
|
-
|
|
1146
|
+
/**
|
|
1147
|
+
* Greater than
|
|
1148
|
+
*/
|
|
1149
|
+
export type AndGt = {
|
|
1144
1150
|
gt: number;
|
|
1145
1151
|
};
|
|
1146
1152
|
|
|
@@ -1165,7 +1171,7 @@ export type AndEq = {
|
|
|
1165
1171
|
export type KnowledgeFilterAnd =
|
|
1166
1172
|
| AndEq
|
|
1167
1173
|
| AndNe
|
|
1168
|
-
|
|
|
1174
|
+
| AndGt
|
|
1169
1175
|
| AndGte
|
|
1170
1176
|
| AndLt
|
|
1171
1177
|
| AndLte
|
|
@@ -1182,7 +1188,7 @@ export type And = {
|
|
|
1182
1188
|
[k: string]:
|
|
1183
1189
|
| AndEq
|
|
1184
1190
|
| AndNe
|
|
1185
|
-
|
|
|
1191
|
+
| AndGt
|
|
1186
1192
|
| AndGte
|
|
1187
1193
|
| AndLt
|
|
1188
1194
|
| AndLte
|
|
@@ -1239,7 +1245,10 @@ export type Gte = {
|
|
|
1239
1245
|
gte: number;
|
|
1240
1246
|
};
|
|
1241
1247
|
|
|
1242
|
-
|
|
1248
|
+
/**
|
|
1249
|
+
* Greater than
|
|
1250
|
+
*/
|
|
1251
|
+
export type Gt = {
|
|
1243
1252
|
gt: number;
|
|
1244
1253
|
};
|
|
1245
1254
|
|
|
@@ -1264,7 +1273,7 @@ export type Eq = {
|
|
|
1264
1273
|
export type KnowledgeFilter1 =
|
|
1265
1274
|
| Eq
|
|
1266
1275
|
| Ne
|
|
1267
|
-
|
|
|
1276
|
+
| Gt
|
|
1268
1277
|
| Gte
|
|
1269
1278
|
| Lt
|
|
1270
1279
|
| Lte
|
|
@@ -1276,7 +1285,7 @@ export type KnowledgeFilter1 =
|
|
|
1276
1285
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1277
1286
|
*/
|
|
1278
1287
|
export type KnowledgeFilter = And | Or | {
|
|
1279
|
-
[k: string]: Eq | Ne |
|
|
1288
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1280
1289
|
};
|
|
1281
1290
|
|
|
1282
1291
|
export type DeploymentGetConfigRequestBody = {
|
|
@@ -1338,7 +1347,7 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1338
1347
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1339
1348
|
*/
|
|
1340
1349
|
knowledgeFilter?: And | Or | {
|
|
1341
|
-
[k: string]: Eq | Ne |
|
|
1350
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1342
1351
|
} | undefined;
|
|
1343
1352
|
};
|
|
1344
1353
|
|
|
@@ -1666,6 +1675,7 @@ export type DeploymentGetConfigEncodingFormat = ClosedEnum<
|
|
|
1666
1675
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1667
1676
|
*/
|
|
1668
1677
|
export const DeploymentGetConfigReasoningEffort = {
|
|
1678
|
+
None: "none",
|
|
1669
1679
|
Disable: "disable",
|
|
1670
1680
|
Minimal: "minimal",
|
|
1671
1681
|
Low: "low",
|
|
@@ -5257,31 +5267,31 @@ export function orGteFromJSON(
|
|
|
5257
5267
|
}
|
|
5258
5268
|
|
|
5259
5269
|
/** @internal */
|
|
5260
|
-
export const
|
|
5270
|
+
export const OrGt$inboundSchema: z.ZodType<OrGt, z.ZodTypeDef, unknown> = z
|
|
5261
5271
|
.object({
|
|
5262
5272
|
gt: z.number(),
|
|
5263
5273
|
});
|
|
5264
5274
|
/** @internal */
|
|
5265
|
-
export type
|
|
5275
|
+
export type OrGt$Outbound = {
|
|
5266
5276
|
gt: number;
|
|
5267
5277
|
};
|
|
5268
5278
|
|
|
5269
5279
|
/** @internal */
|
|
5270
|
-
export const
|
|
5271
|
-
.object({
|
|
5280
|
+
export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
|
|
5281
|
+
z.object({
|
|
5272
5282
|
gt: z.number(),
|
|
5273
5283
|
});
|
|
5274
5284
|
|
|
5275
|
-
export function
|
|
5276
|
-
return JSON.stringify(
|
|
5285
|
+
export function orGtToJSON(orGt: OrGt): string {
|
|
5286
|
+
return JSON.stringify(OrGt$outboundSchema.parse(orGt));
|
|
5277
5287
|
}
|
|
5278
|
-
export function
|
|
5288
|
+
export function orGtFromJSON(
|
|
5279
5289
|
jsonString: string,
|
|
5280
|
-
): SafeParseResult<
|
|
5290
|
+
): SafeParseResult<OrGt, SDKValidationError> {
|
|
5281
5291
|
return safeParse(
|
|
5282
5292
|
jsonString,
|
|
5283
|
-
(x) =>
|
|
5284
|
-
`Failed to parse '
|
|
5293
|
+
(x) => OrGt$inboundSchema.parse(JSON.parse(x)),
|
|
5294
|
+
`Failed to parse 'OrGt' from JSON`,
|
|
5285
5295
|
);
|
|
5286
5296
|
}
|
|
5287
5297
|
|
|
@@ -5417,7 +5427,7 @@ export const KnowledgeFilterOr$inboundSchema: z.ZodType<
|
|
|
5417
5427
|
> = z.union([
|
|
5418
5428
|
z.lazy(() => OrEq$inboundSchema),
|
|
5419
5429
|
z.lazy(() => OrNe$inboundSchema),
|
|
5420
|
-
z.lazy(() =>
|
|
5430
|
+
z.lazy(() => OrGt$inboundSchema),
|
|
5421
5431
|
z.lazy(() => OrGte$inboundSchema),
|
|
5422
5432
|
z.lazy(() => OrLt$inboundSchema),
|
|
5423
5433
|
z.lazy(() => OrLte$inboundSchema),
|
|
@@ -5429,7 +5439,7 @@ export const KnowledgeFilterOr$inboundSchema: z.ZodType<
|
|
|
5429
5439
|
export type KnowledgeFilterOr$Outbound =
|
|
5430
5440
|
| OrEq$Outbound
|
|
5431
5441
|
| OrNe$Outbound
|
|
5432
|
-
|
|
|
5442
|
+
| OrGt$Outbound
|
|
5433
5443
|
| OrGte$Outbound
|
|
5434
5444
|
| OrLt$Outbound
|
|
5435
5445
|
| OrLte$Outbound
|
|
@@ -5445,7 +5455,7 @@ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
|
|
|
5445
5455
|
> = z.union([
|
|
5446
5456
|
z.lazy(() => OrEq$outboundSchema),
|
|
5447
5457
|
z.lazy(() => OrNe$outboundSchema),
|
|
5448
|
-
z.lazy(() =>
|
|
5458
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
5449
5459
|
z.lazy(() => OrGte$outboundSchema),
|
|
5450
5460
|
z.lazy(() => OrLt$outboundSchema),
|
|
5451
5461
|
z.lazy(() => OrLte$outboundSchema),
|
|
@@ -5479,7 +5489,7 @@ export const Or$inboundSchema: z.ZodType<Or, z.ZodTypeDef, unknown> = z.object({
|
|
|
5479
5489
|
z.lazy(() =>
|
|
5480
5490
|
OrNe$inboundSchema
|
|
5481
5491
|
),
|
|
5482
|
-
z.lazy(() =>
|
|
5492
|
+
z.lazy(() => OrGt$inboundSchema),
|
|
5483
5493
|
z.lazy(() => OrGte$inboundSchema),
|
|
5484
5494
|
z.lazy(() => OrLt$inboundSchema),
|
|
5485
5495
|
z.lazy(() => OrLte$inboundSchema),
|
|
@@ -5496,7 +5506,7 @@ export type Or$Outbound = {
|
|
|
5496
5506
|
[k: string]:
|
|
5497
5507
|
| OrEq$Outbound
|
|
5498
5508
|
| OrNe$Outbound
|
|
5499
|
-
|
|
|
5509
|
+
| OrGt$Outbound
|
|
5500
5510
|
| OrGte$Outbound
|
|
5501
5511
|
| OrLt$Outbound
|
|
5502
5512
|
| OrLte$Outbound
|
|
@@ -5516,7 +5526,7 @@ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
|
|
|
5516
5526
|
z.lazy(() =>
|
|
5517
5527
|
OrNe$outboundSchema
|
|
5518
5528
|
),
|
|
5519
|
-
z.lazy(() =>
|
|
5529
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
5520
5530
|
z.lazy(() => OrGte$outboundSchema),
|
|
5521
5531
|
z.lazy(() => OrLt$outboundSchema),
|
|
5522
5532
|
z.lazy(() => OrLte$outboundSchema),
|
|
@@ -5802,31 +5812,34 @@ export function andGteFromJSON(
|
|
|
5802
5812
|
}
|
|
5803
5813
|
|
|
5804
5814
|
/** @internal */
|
|
5805
|
-
export const
|
|
5815
|
+
export const AndGt$inboundSchema: z.ZodType<AndGt, z.ZodTypeDef, unknown> = z
|
|
5806
5816
|
.object({
|
|
5807
5817
|
gt: z.number(),
|
|
5808
5818
|
});
|
|
5809
5819
|
/** @internal */
|
|
5810
|
-
export type
|
|
5820
|
+
export type AndGt$Outbound = {
|
|
5811
5821
|
gt: number;
|
|
5812
5822
|
};
|
|
5813
5823
|
|
|
5814
5824
|
/** @internal */
|
|
5815
|
-
export const
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5825
|
+
export const AndGt$outboundSchema: z.ZodType<
|
|
5826
|
+
AndGt$Outbound,
|
|
5827
|
+
z.ZodTypeDef,
|
|
5828
|
+
AndGt
|
|
5829
|
+
> = z.object({
|
|
5830
|
+
gt: z.number(),
|
|
5831
|
+
});
|
|
5819
5832
|
|
|
5820
|
-
export function
|
|
5821
|
-
return JSON.stringify(
|
|
5833
|
+
export function andGtToJSON(andGt: AndGt): string {
|
|
5834
|
+
return JSON.stringify(AndGt$outboundSchema.parse(andGt));
|
|
5822
5835
|
}
|
|
5823
|
-
export function
|
|
5836
|
+
export function andGtFromJSON(
|
|
5824
5837
|
jsonString: string,
|
|
5825
|
-
): SafeParseResult<
|
|
5838
|
+
): SafeParseResult<AndGt, SDKValidationError> {
|
|
5826
5839
|
return safeParse(
|
|
5827
5840
|
jsonString,
|
|
5828
|
-
(x) =>
|
|
5829
|
-
`Failed to parse '
|
|
5841
|
+
(x) => AndGt$inboundSchema.parse(JSON.parse(x)),
|
|
5842
|
+
`Failed to parse 'AndGt' from JSON`,
|
|
5830
5843
|
);
|
|
5831
5844
|
}
|
|
5832
5845
|
|
|
@@ -5968,7 +5981,7 @@ export const KnowledgeFilterAnd$inboundSchema: z.ZodType<
|
|
|
5968
5981
|
> = z.union([
|
|
5969
5982
|
z.lazy(() => AndEq$inboundSchema),
|
|
5970
5983
|
z.lazy(() => AndNe$inboundSchema),
|
|
5971
|
-
z.lazy(() =>
|
|
5984
|
+
z.lazy(() => AndGt$inboundSchema),
|
|
5972
5985
|
z.lazy(() => AndGte$inboundSchema),
|
|
5973
5986
|
z.lazy(() => AndLt$inboundSchema),
|
|
5974
5987
|
z.lazy(() => AndLte$inboundSchema),
|
|
@@ -5980,7 +5993,7 @@ export const KnowledgeFilterAnd$inboundSchema: z.ZodType<
|
|
|
5980
5993
|
export type KnowledgeFilterAnd$Outbound =
|
|
5981
5994
|
| AndEq$Outbound
|
|
5982
5995
|
| AndNe$Outbound
|
|
5983
|
-
|
|
|
5996
|
+
| AndGt$Outbound
|
|
5984
5997
|
| AndGte$Outbound
|
|
5985
5998
|
| AndLt$Outbound
|
|
5986
5999
|
| AndLte$Outbound
|
|
@@ -5996,7 +6009,7 @@ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
|
|
|
5996
6009
|
> = z.union([
|
|
5997
6010
|
z.lazy(() => AndEq$outboundSchema),
|
|
5998
6011
|
z.lazy(() => AndNe$outboundSchema),
|
|
5999
|
-
z.lazy(() =>
|
|
6012
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
6000
6013
|
z.lazy(() => AndGte$outboundSchema),
|
|
6001
6014
|
z.lazy(() => AndLt$outboundSchema),
|
|
6002
6015
|
z.lazy(() => AndLte$outboundSchema),
|
|
@@ -6031,7 +6044,7 @@ export const And$inboundSchema: z.ZodType<And, z.ZodTypeDef, unknown> = z
|
|
|
6031
6044
|
z.lazy(() =>
|
|
6032
6045
|
AndNe$inboundSchema
|
|
6033
6046
|
),
|
|
6034
|
-
z.lazy(() =>
|
|
6047
|
+
z.lazy(() => AndGt$inboundSchema),
|
|
6035
6048
|
z.lazy(() => AndGte$inboundSchema),
|
|
6036
6049
|
z.lazy(() => AndLt$inboundSchema),
|
|
6037
6050
|
z.lazy(() => AndLte$inboundSchema),
|
|
@@ -6048,7 +6061,7 @@ export type And$Outbound = {
|
|
|
6048
6061
|
[k: string]:
|
|
6049
6062
|
| AndEq$Outbound
|
|
6050
6063
|
| AndNe$Outbound
|
|
6051
|
-
|
|
|
6064
|
+
| AndGt$Outbound
|
|
6052
6065
|
| AndGte$Outbound
|
|
6053
6066
|
| AndLt$Outbound
|
|
6054
6067
|
| AndLte$Outbound
|
|
@@ -6068,7 +6081,7 @@ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
|
|
|
6068
6081
|
z.lazy(() =>
|
|
6069
6082
|
AndNe$outboundSchema
|
|
6070
6083
|
),
|
|
6071
|
-
z.lazy(() =>
|
|
6084
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
6072
6085
|
z.lazy(() => AndGte$outboundSchema),
|
|
6073
6086
|
z.lazy(() => AndLt$outboundSchema),
|
|
6074
6087
|
z.lazy(() => AndLte$outboundSchema),
|
|
@@ -6320,31 +6333,30 @@ export function gteFromJSON(
|
|
|
6320
6333
|
}
|
|
6321
6334
|
|
|
6322
6335
|
/** @internal */
|
|
6323
|
-
export const
|
|
6324
|
-
.
|
|
6325
|
-
|
|
6326
|
-
});
|
|
6336
|
+
export const Gt$inboundSchema: z.ZodType<Gt, z.ZodTypeDef, unknown> = z.object({
|
|
6337
|
+
gt: z.number(),
|
|
6338
|
+
});
|
|
6327
6339
|
/** @internal */
|
|
6328
|
-
export type
|
|
6340
|
+
export type Gt$Outbound = {
|
|
6329
6341
|
gt: number;
|
|
6330
6342
|
};
|
|
6331
6343
|
|
|
6332
6344
|
/** @internal */
|
|
6333
|
-
export const
|
|
6334
|
-
|
|
6345
|
+
export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
|
|
6346
|
+
.object({
|
|
6335
6347
|
gt: z.number(),
|
|
6336
6348
|
});
|
|
6337
6349
|
|
|
6338
|
-
export function
|
|
6339
|
-
return JSON.stringify(
|
|
6350
|
+
export function gtToJSON(gt: Gt): string {
|
|
6351
|
+
return JSON.stringify(Gt$outboundSchema.parse(gt));
|
|
6340
6352
|
}
|
|
6341
|
-
export function
|
|
6353
|
+
export function gtFromJSON(
|
|
6342
6354
|
jsonString: string,
|
|
6343
|
-
): SafeParseResult<
|
|
6355
|
+
): SafeParseResult<Gt, SDKValidationError> {
|
|
6344
6356
|
return safeParse(
|
|
6345
6357
|
jsonString,
|
|
6346
|
-
(x) =>
|
|
6347
|
-
`Failed to parse '
|
|
6358
|
+
(x) => Gt$inboundSchema.parse(JSON.parse(x)),
|
|
6359
|
+
`Failed to parse 'Gt' from JSON`,
|
|
6348
6360
|
);
|
|
6349
6361
|
}
|
|
6350
6362
|
|
|
@@ -6464,7 +6476,7 @@ export const KnowledgeFilter1$inboundSchema: z.ZodType<
|
|
|
6464
6476
|
> = z.union([
|
|
6465
6477
|
z.lazy(() => Eq$inboundSchema),
|
|
6466
6478
|
z.lazy(() => Ne$inboundSchema),
|
|
6467
|
-
z.lazy(() =>
|
|
6479
|
+
z.lazy(() => Gt$inboundSchema),
|
|
6468
6480
|
z.lazy(() => Gte$inboundSchema),
|
|
6469
6481
|
z.lazy(() => Lt$inboundSchema),
|
|
6470
6482
|
z.lazy(() => Lte$inboundSchema),
|
|
@@ -6476,7 +6488,7 @@ export const KnowledgeFilter1$inboundSchema: z.ZodType<
|
|
|
6476
6488
|
export type KnowledgeFilter1$Outbound =
|
|
6477
6489
|
| Eq$Outbound
|
|
6478
6490
|
| Ne$Outbound
|
|
6479
|
-
|
|
|
6491
|
+
| Gt$Outbound
|
|
6480
6492
|
| Gte$Outbound
|
|
6481
6493
|
| Lt$Outbound
|
|
6482
6494
|
| Lte$Outbound
|
|
@@ -6492,7 +6504,7 @@ export const KnowledgeFilter1$outboundSchema: z.ZodType<
|
|
|
6492
6504
|
> = z.union([
|
|
6493
6505
|
z.lazy(() => Eq$outboundSchema),
|
|
6494
6506
|
z.lazy(() => Ne$outboundSchema),
|
|
6495
|
-
z.lazy(() =>
|
|
6507
|
+
z.lazy(() => Gt$outboundSchema),
|
|
6496
6508
|
z.lazy(() => Gte$outboundSchema),
|
|
6497
6509
|
z.lazy(() => Lt$outboundSchema),
|
|
6498
6510
|
z.lazy(() => Lte$outboundSchema),
|
|
@@ -6529,7 +6541,7 @@ export const KnowledgeFilter$inboundSchema: z.ZodType<
|
|
|
6529
6541
|
z.record(z.union([
|
|
6530
6542
|
z.lazy(() => Eq$inboundSchema),
|
|
6531
6543
|
z.lazy(() => Ne$inboundSchema),
|
|
6532
|
-
z.lazy(() =>
|
|
6544
|
+
z.lazy(() => Gt$inboundSchema),
|
|
6533
6545
|
z.lazy(() => Gte$inboundSchema),
|
|
6534
6546
|
z.lazy(() => Lt$inboundSchema),
|
|
6535
6547
|
z.lazy(() => Lte$inboundSchema),
|
|
@@ -6543,7 +6555,7 @@ export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
|
|
|
6543
6555
|
[k: string]:
|
|
6544
6556
|
| Eq$Outbound
|
|
6545
6557
|
| Ne$Outbound
|
|
6546
|
-
|
|
|
6558
|
+
| Gt$Outbound
|
|
6547
6559
|
| Gte$Outbound
|
|
6548
6560
|
| Lt$Outbound
|
|
6549
6561
|
| Lte$Outbound
|
|
@@ -6563,7 +6575,7 @@ export const KnowledgeFilter$outboundSchema: z.ZodType<
|
|
|
6563
6575
|
z.record(z.union([
|
|
6564
6576
|
z.lazy(() => Eq$outboundSchema),
|
|
6565
6577
|
z.lazy(() => Ne$outboundSchema),
|
|
6566
|
-
z.lazy(() =>
|
|
6578
|
+
z.lazy(() => Gt$outboundSchema),
|
|
6567
6579
|
z.lazy(() => Gte$outboundSchema),
|
|
6568
6580
|
z.lazy(() => Lt$outboundSchema),
|
|
6569
6581
|
z.lazy(() => Lte$outboundSchema),
|
|
@@ -6627,7 +6639,7 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
6627
6639
|
z.record(z.union([
|
|
6628
6640
|
z.lazy(() => Eq$inboundSchema),
|
|
6629
6641
|
z.lazy(() => Ne$inboundSchema),
|
|
6630
|
-
z.lazy(() =>
|
|
6642
|
+
z.lazy(() => Gt$inboundSchema),
|
|
6631
6643
|
z.lazy(() => Gte$inboundSchema),
|
|
6632
6644
|
z.lazy(() => Lt$inboundSchema),
|
|
6633
6645
|
z.lazy(() => Lte$inboundSchema),
|
|
@@ -6678,7 +6690,7 @@ export type DeploymentGetConfigRequestBody$Outbound = {
|
|
|
6678
6690
|
[k: string]:
|
|
6679
6691
|
| Eq$Outbound
|
|
6680
6692
|
| Ne$Outbound
|
|
6681
|
-
|
|
|
6693
|
+
| Gt$Outbound
|
|
6682
6694
|
| Gte$Outbound
|
|
6683
6695
|
| Lt$Outbound
|
|
6684
6696
|
| Lte$Outbound
|
|
@@ -6727,7 +6739,7 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
6727
6739
|
z.record(z.union([
|
|
6728
6740
|
z.lazy(() => Eq$outboundSchema),
|
|
6729
6741
|
z.lazy(() => Ne$outboundSchema),
|
|
6730
|
-
z.lazy(() =>
|
|
6742
|
+
z.lazy(() => Gt$outboundSchema),
|
|
6731
6743
|
z.lazy(() => Gte$outboundSchema),
|
|
6732
6744
|
z.lazy(() => Lt$outboundSchema),
|
|
6733
6745
|
z.lazy(() => Lte$outboundSchema),
|
|
@@ -109,7 +109,7 @@ export type DeploymentInvokeMessageDeploymentsType = ClosedEnum<
|
|
|
109
109
|
/**
|
|
110
110
|
* The role of the prompt message
|
|
111
111
|
*/
|
|
112
|
-
export const
|
|
112
|
+
export const DeploymentInvokeMessageRole = {
|
|
113
113
|
System: "system",
|
|
114
114
|
Assistant: "assistant",
|
|
115
115
|
User: "user",
|
|
@@ -122,8 +122,8 @@ export const DeploymentInvokeMessageDeploymentsRole = {
|
|
|
122
122
|
/**
|
|
123
123
|
* The role of the prompt message
|
|
124
124
|
*/
|
|
125
|
-
export type
|
|
126
|
-
typeof
|
|
125
|
+
export type DeploymentInvokeMessageRole = ClosedEnum<
|
|
126
|
+
typeof DeploymentInvokeMessageRole
|
|
127
127
|
>;
|
|
128
128
|
|
|
129
129
|
export type Message3 = {
|
|
@@ -131,7 +131,7 @@ export type Message3 = {
|
|
|
131
131
|
/**
|
|
132
132
|
* The role of the prompt message
|
|
133
133
|
*/
|
|
134
|
-
role:
|
|
134
|
+
role: DeploymentInvokeMessageRole;
|
|
135
135
|
url: string;
|
|
136
136
|
};
|
|
137
137
|
|
|
@@ -145,7 +145,7 @@ export type DeploymentInvokeMessageType = ClosedEnum<
|
|
|
145
145
|
/**
|
|
146
146
|
* The role of the prompt message
|
|
147
147
|
*/
|
|
148
|
-
export const
|
|
148
|
+
export const MessageRole = {
|
|
149
149
|
System: "system",
|
|
150
150
|
Assistant: "assistant",
|
|
151
151
|
User: "user",
|
|
@@ -158,16 +158,14 @@ export const DeploymentInvokeMessageRole = {
|
|
|
158
158
|
/**
|
|
159
159
|
* The role of the prompt message
|
|
160
160
|
*/
|
|
161
|
-
export type
|
|
162
|
-
typeof DeploymentInvokeMessageRole
|
|
163
|
-
>;
|
|
161
|
+
export type MessageRole = ClosedEnum<typeof MessageRole>;
|
|
164
162
|
|
|
165
163
|
export type Message2 = {
|
|
166
164
|
type: DeploymentInvokeMessageType;
|
|
167
165
|
/**
|
|
168
166
|
* The role of the prompt message
|
|
169
167
|
*/
|
|
170
|
-
role:
|
|
168
|
+
role: MessageRole;
|
|
171
169
|
content: string | null;
|
|
172
170
|
/**
|
|
173
171
|
* Internal thought process of the model
|
|
@@ -191,7 +189,7 @@ export type MessageType = ClosedEnum<typeof MessageType>;
|
|
|
191
189
|
/**
|
|
192
190
|
* The role of the prompt message
|
|
193
191
|
*/
|
|
194
|
-
export const
|
|
192
|
+
export const DeploymentInvokeMessageDeploymentsRole = {
|
|
195
193
|
System: "system",
|
|
196
194
|
Assistant: "assistant",
|
|
197
195
|
User: "user",
|
|
@@ -204,7 +202,9 @@ export const MessageRole = {
|
|
|
204
202
|
/**
|
|
205
203
|
* The role of the prompt message
|
|
206
204
|
*/
|
|
207
|
-
export type
|
|
205
|
+
export type DeploymentInvokeMessageDeploymentsRole = ClosedEnum<
|
|
206
|
+
typeof DeploymentInvokeMessageDeploymentsRole
|
|
207
|
+
>;
|
|
208
208
|
|
|
209
209
|
export const DeploymentInvokeMessageDeploymentsResponseType = {
|
|
210
210
|
Function: "function",
|
|
@@ -233,7 +233,7 @@ export type Message1 = {
|
|
|
233
233
|
/**
|
|
234
234
|
* The role of the prompt message
|
|
235
235
|
*/
|
|
236
|
-
role:
|
|
236
|
+
role: DeploymentInvokeMessageDeploymentsRole;
|
|
237
237
|
content?: string | null | undefined;
|
|
238
238
|
toolCalls: Array<MessageToolCalls>;
|
|
239
239
|
/**
|
|
@@ -488,14 +488,13 @@ export const DeploymentInvokeMessageDeploymentsType$outboundSchema:
|
|
|
488
488
|
DeploymentInvokeMessageDeploymentsType$inboundSchema;
|
|
489
489
|
|
|
490
490
|
/** @internal */
|
|
491
|
-
export const
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
);
|
|
491
|
+
export const DeploymentInvokeMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
492
|
+
typeof DeploymentInvokeMessageRole
|
|
493
|
+
> = z.nativeEnum(DeploymentInvokeMessageRole);
|
|
495
494
|
/** @internal */
|
|
496
|
-
export const
|
|
497
|
-
|
|
498
|
-
|
|
495
|
+
export const DeploymentInvokeMessageRole$outboundSchema: z.ZodNativeEnum<
|
|
496
|
+
typeof DeploymentInvokeMessageRole
|
|
497
|
+
> = DeploymentInvokeMessageRole$inboundSchema;
|
|
499
498
|
|
|
500
499
|
/** @internal */
|
|
501
500
|
export const Message3$inboundSchema: z.ZodType<
|
|
@@ -504,7 +503,7 @@ export const Message3$inboundSchema: z.ZodType<
|
|
|
504
503
|
unknown
|
|
505
504
|
> = z.object({
|
|
506
505
|
type: DeploymentInvokeMessageDeploymentsType$inboundSchema,
|
|
507
|
-
role:
|
|
506
|
+
role: DeploymentInvokeMessageRole$inboundSchema,
|
|
508
507
|
url: z.string(),
|
|
509
508
|
});
|
|
510
509
|
/** @internal */
|
|
@@ -521,7 +520,7 @@ export const Message3$outboundSchema: z.ZodType<
|
|
|
521
520
|
Message3
|
|
522
521
|
> = z.object({
|
|
523
522
|
type: DeploymentInvokeMessageDeploymentsType$outboundSchema,
|
|
524
|
-
role:
|
|
523
|
+
role: DeploymentInvokeMessageRole$outboundSchema,
|
|
525
524
|
url: z.string(),
|
|
526
525
|
});
|
|
527
526
|
|
|
@@ -548,13 +547,11 @@ export const DeploymentInvokeMessageType$outboundSchema: z.ZodNativeEnum<
|
|
|
548
547
|
> = DeploymentInvokeMessageType$inboundSchema;
|
|
549
548
|
|
|
550
549
|
/** @internal */
|
|
551
|
-
export const
|
|
552
|
-
|
|
553
|
-
> = z.nativeEnum(DeploymentInvokeMessageRole);
|
|
550
|
+
export const MessageRole$inboundSchema: z.ZodNativeEnum<typeof MessageRole> = z
|
|
551
|
+
.nativeEnum(MessageRole);
|
|
554
552
|
/** @internal */
|
|
555
|
-
export const
|
|
556
|
-
|
|
557
|
-
> = DeploymentInvokeMessageRole$inboundSchema;
|
|
553
|
+
export const MessageRole$outboundSchema: z.ZodNativeEnum<typeof MessageRole> =
|
|
554
|
+
MessageRole$inboundSchema;
|
|
558
555
|
|
|
559
556
|
/** @internal */
|
|
560
557
|
export const Message2$inboundSchema: z.ZodType<
|
|
@@ -563,7 +560,7 @@ export const Message2$inboundSchema: z.ZodType<
|
|
|
563
560
|
unknown
|
|
564
561
|
> = z.object({
|
|
565
562
|
type: DeploymentInvokeMessageType$inboundSchema,
|
|
566
|
-
role:
|
|
563
|
+
role: MessageRole$inboundSchema,
|
|
567
564
|
content: z.nullable(z.string()),
|
|
568
565
|
reasoning: z.string().optional(),
|
|
569
566
|
reasoning_signature: z.string().optional(),
|
|
@@ -591,7 +588,7 @@ export const Message2$outboundSchema: z.ZodType<
|
|
|
591
588
|
Message2
|
|
592
589
|
> = z.object({
|
|
593
590
|
type: DeploymentInvokeMessageType$outboundSchema,
|
|
594
|
-
role:
|
|
591
|
+
role: MessageRole$outboundSchema,
|
|
595
592
|
content: z.nullable(z.string()),
|
|
596
593
|
reasoning: z.string().optional(),
|
|
597
594
|
reasoningSignature: z.string().optional(),
|
|
@@ -624,11 +621,14 @@ export const MessageType$outboundSchema: z.ZodNativeEnum<typeof MessageType> =
|
|
|
624
621
|
MessageType$inboundSchema;
|
|
625
622
|
|
|
626
623
|
/** @internal */
|
|
627
|
-
export const
|
|
628
|
-
.nativeEnum(
|
|
624
|
+
export const DeploymentInvokeMessageDeploymentsRole$inboundSchema:
|
|
625
|
+
z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> = z.nativeEnum(
|
|
626
|
+
DeploymentInvokeMessageDeploymentsRole,
|
|
627
|
+
);
|
|
629
628
|
/** @internal */
|
|
630
|
-
export const
|
|
631
|
-
|
|
629
|
+
export const DeploymentInvokeMessageDeploymentsRole$outboundSchema:
|
|
630
|
+
z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> =
|
|
631
|
+
DeploymentInvokeMessageDeploymentsRole$inboundSchema;
|
|
632
632
|
|
|
633
633
|
/** @internal */
|
|
634
634
|
export const DeploymentInvokeMessageDeploymentsResponseType$inboundSchema:
|
|
@@ -734,7 +734,7 @@ export const Message1$inboundSchema: z.ZodType<
|
|
|
734
734
|
unknown
|
|
735
735
|
> = z.object({
|
|
736
736
|
type: MessageType$inboundSchema,
|
|
737
|
-
role:
|
|
737
|
+
role: DeploymentInvokeMessageDeploymentsRole$inboundSchema,
|
|
738
738
|
content: z.nullable(z.string()).optional(),
|
|
739
739
|
tool_calls: z.array(z.lazy(() => MessageToolCalls$inboundSchema)),
|
|
740
740
|
reasoning: z.string().optional(),
|
|
@@ -765,7 +765,7 @@ export const Message1$outboundSchema: z.ZodType<
|
|
|
765
765
|
Message1
|
|
766
766
|
> = z.object({
|
|
767
767
|
type: MessageType$outboundSchema,
|
|
768
|
-
role:
|
|
768
|
+
role: DeploymentInvokeMessageDeploymentsRole$outboundSchema,
|
|
769
769
|
content: z.nullable(z.string()).optional(),
|
|
770
770
|
toolCalls: z.array(z.lazy(() => MessageToolCalls$outboundSchema)),
|
|
771
771
|
reasoning: z.string().optional(),
|
|
@@ -248,6 +248,7 @@ export type DeploymentsEncodingFormat = ClosedEnum<
|
|
|
248
248
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
249
249
|
*/
|
|
250
250
|
export const DeploymentsReasoningEffort = {
|
|
251
|
+
None: "none",
|
|
251
252
|
Disable: "disable",
|
|
252
253
|
Minimal: "minimal",
|
|
253
254
|
Low: "low",
|