@orq-ai/node 4.9.23 → 4.9.28
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/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +5 -13
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -9
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +3 -0
- package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
- package/packages/orq-rc/src/funcs/{agentsPostV2AgentsA2a.ts → modelsImportLitellm.ts} +16 -30
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
- package/packages/orq-rc/src/funcs/{deploymentsMetricsCreate.ts → modelsUpdate.ts} +14 -17
- package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
- package/packages/orq-rc/src/lib/config.ts +3 -13
- package/packages/orq-rc/src/lib/env.ts +0 -32
- package/packages/orq-rc/src/lib/sdks.ts +2 -2
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/packages/orq-rc/src/models/components/autorouterconfig.ts +78 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +44 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
- package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/domain.ts +14 -21
- package/packages/orq-rc/src/models/components/index.ts +21 -3
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +1 -2
- package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
- package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
- package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
- package/packages/orq-rc/src/models/components/modeldocument.ts +112 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +720 -0
- package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
- package/packages/orq-rc/src/models/components/price.ts +56 -0
- package/packages/orq-rc/src/models/components/pricing.ts +93 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
- package/packages/orq-rc/src/models/components/project.ts +5 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
- package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
- package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
- package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
- package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
- package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +14 -101
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +668 -1296
- package/packages/orq-rc/src/models/operations/createtool.ts +24 -28
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1606 -1156
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3761 -320
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +285 -249
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- 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 +15 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -87
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
- package/packages/orq-rc/src/models/operations/modelcreate.ts +184 -0
- package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +151 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +218 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +202 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +144 -0
- package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
- package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
- package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +198 -0
- package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +189 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +248 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +236 -0
- package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
- package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +57 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -91
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +20 -29
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -171
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +41 -43
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +17 -35
- package/packages/orq-rc/src/sdk/annotations.ts +6 -0
- package/packages/orq-rc/src/sdk/deployments.ts +1 -8
- package/packages/orq-rc/src/sdk/knowledge.ts +3 -0
- package/packages/orq-rc/src/sdk/models.ts +305 -0
- package/packages/orq-rc/src/sdk/sdk.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/components/domaingroup.ts +0 -18
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
- package/packages/orq-rc/src/models/components/scopemode.ts +0 -17
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -249
- package/packages/orq-rc/src/sdk/metrics.ts +0 -29
|
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
767
|
z.ZodTypeDef,
|
|
768
768
|
unknown
|
|
769
769
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
770
|
+
_id: z.string().default("tool_01KSSXNHXX9SF7GHQGP9V21H79"),
|
|
771
771
|
path: z.string(),
|
|
772
772
|
key: z.string(),
|
|
773
773
|
display_name: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
864
|
z.ZodTypeDef,
|
|
865
865
|
unknown
|
|
866
866
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
867
|
+
id: z.string().default("01KSSXNHXXWW6TQQZ8NQQ0DJ4H"),
|
|
868
868
|
name: z.string(),
|
|
869
869
|
description: z.string().optional(),
|
|
870
870
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KSSXNHXWG73XCTF0YTKKZW57"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.ZodTypeDef,
|
|
1103
1103
|
unknown
|
|
1104
1104
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1105
|
+
_id: z.string().default("tool_01KSSXNHXT94Z2562M698PWCCX"),
|
|
1106
1106
|
path: z.string(),
|
|
1107
1107
|
key: z.string(),
|
|
1108
1108
|
display_name: z.string().optional(),
|
|
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1195
|
z.ZodTypeDef,
|
|
1196
1196
|
unknown
|
|
1197
1197
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1198
|
+
_id: z.string().default("tool_01KSSXNHXSTAYB0M0FVM52V5MY"),
|
|
1199
1199
|
path: z.string(),
|
|
1200
1200
|
key: z.string(),
|
|
1201
1201
|
display_name: z.string().optional(),
|
|
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1297
|
z.ZodTypeDef,
|
|
1298
1298
|
unknown
|
|
1299
1299
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1300
|
+
_id: z.string().default("tool_01KSSXNHXRQM460KMM481VVW19"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|
|
@@ -1042,8 +1042,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1042
1042
|
> = z.object({
|
|
1043
1043
|
_id: z.string(),
|
|
1044
1044
|
description: z.string(),
|
|
1045
|
-
created: z.string().default("2026-05-
|
|
1046
|
-
updated: z.string().default("2026-05-
|
|
1045
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
1046
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
1047
1047
|
guardrail_config: z.nullable(
|
|
1048
1048
|
z.union([
|
|
1049
1049
|
z.lazy(() =>
|
|
@@ -1222,8 +1222,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1222
1222
|
> = z.object({
|
|
1223
1223
|
_id: z.string(),
|
|
1224
1224
|
description: z.string(),
|
|
1225
|
-
created: z.string().default("2026-05-
|
|
1226
|
-
updated: z.string().default("2026-05-
|
|
1225
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
1226
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
1227
1227
|
guardrail_config: z.nullable(
|
|
1228
1228
|
z.union([
|
|
1229
1229
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2052,8 +2052,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
2052
2052
|
> = z.object({
|
|
2053
2053
|
_id: z.string(),
|
|
2054
2054
|
description: z.string(),
|
|
2055
|
-
created: z.string().default("2026-05-
|
|
2056
|
-
updated: z.string().default("2026-05-
|
|
2055
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2056
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2057
2057
|
guardrail_config: z.nullable(
|
|
2058
2058
|
z.union([
|
|
2059
2059
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -2234,8 +2234,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
2234
2234
|
> = z.object({
|
|
2235
2235
|
_id: z.string(),
|
|
2236
2236
|
description: z.string(),
|
|
2237
|
-
created: z.string().default("2026-05-
|
|
2238
|
-
updated: z.string().default("2026-05-
|
|
2237
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2238
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2239
2239
|
guardrail_config: z.nullable(
|
|
2240
2240
|
z.union([
|
|
2241
2241
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -2412,8 +2412,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2412
2412
|
> = z.object({
|
|
2413
2413
|
_id: z.string(),
|
|
2414
2414
|
description: z.string(),
|
|
2415
|
-
created: z.string().default("2026-05-
|
|
2416
|
-
updated: z.string().default("2026-05-
|
|
2415
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2416
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2417
2417
|
guardrail_config: z.nullable(
|
|
2418
2418
|
z.union([
|
|
2419
2419
|
z.lazy(() =>
|
|
@@ -2602,8 +2602,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2602
2602
|
> = z.object({
|
|
2603
2603
|
_id: z.string(),
|
|
2604
2604
|
description: z.string(),
|
|
2605
|
-
created: z.string().default("2026-05-
|
|
2606
|
-
updated: z.string().default("2026-05-
|
|
2605
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2606
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2607
2607
|
guardrail_config: z.nullable(
|
|
2608
2608
|
z.union([
|
|
2609
2609
|
z.lazy(() =>
|
|
@@ -2968,8 +2968,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
2968
2968
|
> = z.object({
|
|
2969
2969
|
_id: z.string(),
|
|
2970
2970
|
description: z.string(),
|
|
2971
|
-
created: z.string().default("2026-05-
|
|
2972
|
-
updated: z.string().default("2026-05-
|
|
2971
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2972
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2973
2973
|
guardrail_config: z.nullable(
|
|
2974
2974
|
z.union([
|
|
2975
2975
|
z.lazy(() =>
|
|
@@ -3179,8 +3179,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
3179
3179
|
> = z.object({
|
|
3180
3180
|
_id: z.string(),
|
|
3181
3181
|
description: z.string(),
|
|
3182
|
-
created: z.string().default("2026-05-
|
|
3183
|
-
updated: z.string().default("2026-05-
|
|
3182
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3183
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3184
3184
|
guardrail_config: z.nullable(
|
|
3185
3185
|
z.union([
|
|
3186
3186
|
z.lazy(() =>
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-05-
|
|
143
|
+
"2026-05-29T13:09:23.492Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-05-
|
|
188
|
+
"2026-05-29T13:09:23.492Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-05-
|
|
144
|
+
"2026-05-29T13:09:23.492Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-05-
|
|
189
|
+
"2026-05-29T13:09:23.492Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -51,7 +51,6 @@ export * from "./deletememorystore.js";
|
|
|
51
51
|
export * from "./deleteprompt.js";
|
|
52
52
|
export * from "./deletetool.js";
|
|
53
53
|
export * from "./deletev2humanevalsetsid.js";
|
|
54
|
-
export * from "./deploymentcreatemetric.js";
|
|
55
54
|
export * from "./deploymentgetconfig.js";
|
|
56
55
|
export * from "./deploymentinvoke.js";
|
|
57
56
|
export * from "./deployments.js";
|
|
@@ -96,6 +95,21 @@ export * from "./listidentities.js";
|
|
|
96
95
|
export * from "./listknowledgebases.js";
|
|
97
96
|
export * from "./listmodels.js";
|
|
98
97
|
export * from "./listpromptversions.js";
|
|
98
|
+
export * from "./modelazurefoundrydeployments.js";
|
|
99
|
+
export * from "./modelcreate.js";
|
|
100
|
+
export * from "./modelcreateautorouter.js";
|
|
101
|
+
export * from "./modelcreateawsbedrock.js";
|
|
102
|
+
export * from "./modelcreateopenailike.js";
|
|
103
|
+
export * from "./modelcreatevertex.js";
|
|
104
|
+
export * from "./modeldelete.js";
|
|
105
|
+
export * from "./modeldisable.js";
|
|
106
|
+
export * from "./modelenable.js";
|
|
107
|
+
export * from "./modelupdate.js";
|
|
108
|
+
export * from "./modelupdateautorouter.js";
|
|
109
|
+
export * from "./modelupdateawsbedrock.js";
|
|
110
|
+
export * from "./modelupdateopenailike.js";
|
|
111
|
+
export * from "./modelvalidate.js";
|
|
112
|
+
export * from "./modelvalidateawsbedrock.js";
|
|
99
113
|
export * from "./parse.js";
|
|
100
114
|
export * from "./patchv2humanevalsetsid.js";
|
|
101
115
|
export * from "./policycreate.js";
|
|
@@ -103,7 +117,6 @@ export * from "./policydelete.js";
|
|
|
103
117
|
export * from "./policyget.js";
|
|
104
118
|
export * from "./policylist.js";
|
|
105
119
|
export * from "./policyupdate.js";
|
|
106
|
-
export * from "./postv2agentsa2a.js";
|
|
107
120
|
export * from "./postv2agentskeycardrefresh.js";
|
|
108
121
|
export * from "./postv2feedback.js";
|
|
109
122
|
export * from "./postv2feedbackevaluation.js";
|
|
@@ -11,14 +11,13 @@ import * as components from "../components/index.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Filter agents by type
|
|
14
|
+
* Filter agents by type
|
|
15
15
|
*/
|
|
16
16
|
export const QueryParamType = {
|
|
17
17
|
Internal: "internal",
|
|
18
|
-
A2a: "a2a",
|
|
19
18
|
} as const;
|
|
20
19
|
/**
|
|
21
|
-
* Filter agents by type
|
|
20
|
+
* Filter agents by type
|
|
22
21
|
*/
|
|
23
22
|
export type QueryParamType = ClosedEnum<typeof QueryParamType>;
|
|
24
23
|
|
|
@@ -36,7 +35,7 @@ export type ListAgentsRequest = {
|
|
|
36
35
|
*/
|
|
37
36
|
endingBefore?: string | undefined;
|
|
38
37
|
/**
|
|
39
|
-
* Filter agents by type
|
|
38
|
+
* Filter agents by type
|
|
40
39
|
*/
|
|
41
40
|
type?: QueryParamType | undefined;
|
|
42
41
|
};
|
|
@@ -1065,36 +1064,6 @@ export type ListAgentsModel = {
|
|
|
1065
1064
|
| undefined;
|
|
1066
1065
|
};
|
|
1067
1066
|
|
|
1068
|
-
export type ListAgentsHeaders = {
|
|
1069
|
-
/**
|
|
1070
|
-
* Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
|
|
1071
|
-
*/
|
|
1072
|
-
value: string;
|
|
1073
|
-
encrypted: boolean;
|
|
1074
|
-
};
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1078
|
-
*/
|
|
1079
|
-
export type ListAgentsA2AAgentConfiguration = {
|
|
1080
|
-
/**
|
|
1081
|
-
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1082
|
-
*/
|
|
1083
|
-
agentUrl: string;
|
|
1084
|
-
/**
|
|
1085
|
-
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1086
|
-
*/
|
|
1087
|
-
cardUrl?: string | undefined;
|
|
1088
|
-
/**
|
|
1089
|
-
* HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
|
|
1090
|
-
*/
|
|
1091
|
-
headers?: { [k: string]: ListAgentsHeaders } | undefined;
|
|
1092
|
-
/**
|
|
1093
|
-
* Cached agent card from discovery. Refreshed periodically.
|
|
1094
|
-
*/
|
|
1095
|
-
cachedCard?: any | undefined;
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
1067
|
export type ListAgentsData = {
|
|
1099
1068
|
id: string;
|
|
1100
1069
|
/**
|
|
@@ -1157,10 +1126,6 @@ export type ListAgentsData = {
|
|
|
1157
1126
|
instructions: string;
|
|
1158
1127
|
settings?: ListAgentsSettings | undefined;
|
|
1159
1128
|
model: ListAgentsModel;
|
|
1160
|
-
/**
|
|
1161
|
-
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
1162
|
-
*/
|
|
1163
|
-
a2a?: ListAgentsA2AAgentConfiguration | undefined;
|
|
1164
1129
|
};
|
|
1165
1130
|
|
|
1166
1131
|
/**
|
|
@@ -2652,54 +2617,6 @@ export function listAgentsModelFromJSON(
|
|
|
2652
2617
|
);
|
|
2653
2618
|
}
|
|
2654
2619
|
|
|
2655
|
-
/** @internal */
|
|
2656
|
-
export const ListAgentsHeaders$inboundSchema: z.ZodType<
|
|
2657
|
-
ListAgentsHeaders,
|
|
2658
|
-
z.ZodTypeDef,
|
|
2659
|
-
unknown
|
|
2660
|
-
> = z.object({
|
|
2661
|
-
value: z.string(),
|
|
2662
|
-
encrypted: z.boolean().default(false),
|
|
2663
|
-
});
|
|
2664
|
-
|
|
2665
|
-
export function listAgentsHeadersFromJSON(
|
|
2666
|
-
jsonString: string,
|
|
2667
|
-
): SafeParseResult<ListAgentsHeaders, SDKValidationError> {
|
|
2668
|
-
return safeParse(
|
|
2669
|
-
jsonString,
|
|
2670
|
-
(x) => ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
2671
|
-
`Failed to parse 'ListAgentsHeaders' from JSON`,
|
|
2672
|
-
);
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
/** @internal */
|
|
2676
|
-
export const ListAgentsA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
2677
|
-
ListAgentsA2AAgentConfiguration,
|
|
2678
|
-
z.ZodTypeDef,
|
|
2679
|
-
unknown
|
|
2680
|
-
> = z.object({
|
|
2681
|
-
agent_url: z.string(),
|
|
2682
|
-
card_url: z.string().optional(),
|
|
2683
|
-
headers: z.record(z.lazy(() => ListAgentsHeaders$inboundSchema)).optional(),
|
|
2684
|
-
cached_card: z.any().optional(),
|
|
2685
|
-
}).transform((v) => {
|
|
2686
|
-
return remap$(v, {
|
|
2687
|
-
"agent_url": "agentUrl",
|
|
2688
|
-
"card_url": "cardUrl",
|
|
2689
|
-
"cached_card": "cachedCard",
|
|
2690
|
-
});
|
|
2691
|
-
});
|
|
2692
|
-
|
|
2693
|
-
export function listAgentsA2AAgentConfigurationFromJSON(
|
|
2694
|
-
jsonString: string,
|
|
2695
|
-
): SafeParseResult<ListAgentsA2AAgentConfiguration, SDKValidationError> {
|
|
2696
|
-
return safeParse(
|
|
2697
|
-
jsonString,
|
|
2698
|
-
(x) => ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
2699
|
-
`Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`,
|
|
2700
|
-
);
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
2620
|
/** @internal */
|
|
2704
2621
|
export const ListAgentsData$inboundSchema: z.ZodType<
|
|
2705
2622
|
ListAgentsData,
|
|
@@ -2733,7 +2650,6 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2733
2650
|
instructions: z.string(),
|
|
2734
2651
|
settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
|
|
2735
2652
|
model: z.lazy(() => ListAgentsModel$inboundSchema),
|
|
2736
|
-
a2a: z.lazy(() => ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
|
|
2737
2653
|
}).transform((v) => {
|
|
2738
2654
|
return remap$(v, {
|
|
2739
2655
|
"_id": "id",
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-05-
|
|
1273
|
+
"2026-05-29T13:09:38.560Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-05-
|
|
1323
|
+
"2026-05-29T13:09:38.560Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-05-
|
|
1372
|
+
"2026-05-29T13:09:38.559Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-05-
|
|
1451
|
+
"2026-05-29T13:09:23.492Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-05-
|
|
159
|
+
"2026-05-29T13:09:23.492Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KSSXNJ2J7XS66G8PTYD17Y09"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ModelAzureFoundryDeploymentsRequestBody = {
|
|
13
|
+
apiKey: string;
|
|
14
|
+
apiVersion?: string | undefined;
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
provider: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Azure Foundry deployments listed
|
|
21
|
+
*/
|
|
22
|
+
export type ModelAzureFoundryDeploymentsResponseBody = {
|
|
23
|
+
deployments: Array<components.AzureFoundryDeployment> | null;
|
|
24
|
+
region: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type ModelAzureFoundryDeploymentsRequestBody$Outbound = {
|
|
29
|
+
api_key: string;
|
|
30
|
+
api_version?: string | undefined;
|
|
31
|
+
base_url: string;
|
|
32
|
+
provider: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ModelAzureFoundryDeploymentsRequestBody$outboundSchema: z.ZodType<
|
|
37
|
+
ModelAzureFoundryDeploymentsRequestBody$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
ModelAzureFoundryDeploymentsRequestBody
|
|
40
|
+
> = z.object({
|
|
41
|
+
apiKey: z.string(),
|
|
42
|
+
apiVersion: z.string().optional(),
|
|
43
|
+
baseUrl: z.string(),
|
|
44
|
+
provider: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
apiKey: "api_key",
|
|
48
|
+
apiVersion: "api_version",
|
|
49
|
+
baseUrl: "base_url",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function modelAzureFoundryDeploymentsRequestBodyToJSON(
|
|
54
|
+
modelAzureFoundryDeploymentsRequestBody:
|
|
55
|
+
ModelAzureFoundryDeploymentsRequestBody,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
ModelAzureFoundryDeploymentsRequestBody$outboundSchema.parse(
|
|
59
|
+
modelAzureFoundryDeploymentsRequestBody,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const ModelAzureFoundryDeploymentsResponseBody$inboundSchema: z.ZodType<
|
|
66
|
+
ModelAzureFoundryDeploymentsResponseBody,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
70
|
+
deployments: z.nullable(
|
|
71
|
+
z.array(components.AzureFoundryDeployment$inboundSchema),
|
|
72
|
+
),
|
|
73
|
+
region: z.string(),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function modelAzureFoundryDeploymentsResponseBodyFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<
|
|
79
|
+
ModelAzureFoundryDeploymentsResponseBody,
|
|
80
|
+
SDKValidationError
|
|
81
|
+
> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) =>
|
|
85
|
+
ModelAzureFoundryDeploymentsResponseBody$inboundSchema.parse(
|
|
86
|
+
JSON.parse(x),
|
|
87
|
+
),
|
|
88
|
+
`Failed to parse 'ModelAzureFoundryDeploymentsResponseBody' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ModelCreateRequestBody = {
|
|
13
|
+
configuration: { [k: string]: any };
|
|
14
|
+
displayName: string;
|
|
15
|
+
hasFunctions: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
inputCost: number;
|
|
18
|
+
metadata: components.ModelMetadata;
|
|
19
|
+
modelDeveloper: string;
|
|
20
|
+
modelFamily: string;
|
|
21
|
+
modelId: string;
|
|
22
|
+
modelType: string;
|
|
23
|
+
outputCost: number;
|
|
24
|
+
parameters: Array<components.CreateModelParameter> | null;
|
|
25
|
+
provider: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Model created successfully
|
|
30
|
+
*/
|
|
31
|
+
export type ModelCreateResponseBody = {
|
|
32
|
+
configuration: components.ModelConfigurationResponse;
|
|
33
|
+
created: Date;
|
|
34
|
+
description: string | null;
|
|
35
|
+
displayName: string;
|
|
36
|
+
docsUrl: string | null;
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
enabledForEndpoints: boolean;
|
|
39
|
+
enabledForPlayground: boolean;
|
|
40
|
+
hasCpuPricing: boolean;
|
|
41
|
+
hasFunctions: boolean;
|
|
42
|
+
id: string;
|
|
43
|
+
inputCost: number | null;
|
|
44
|
+
inputCurrency: string;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
metadata: components.ModelMetadata;
|
|
47
|
+
modelDeveloper?: string | undefined;
|
|
48
|
+
modelFamily?: string | undefined;
|
|
49
|
+
modelId: string;
|
|
50
|
+
modelType: string;
|
|
51
|
+
outputCost: number | null;
|
|
52
|
+
outputCurrency: string;
|
|
53
|
+
owner: string;
|
|
54
|
+
parameters: Array<components.ModelParameterDocument> | null;
|
|
55
|
+
pricingUrl: string | null;
|
|
56
|
+
provider: string;
|
|
57
|
+
refId: string;
|
|
58
|
+
updated: Date;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type ModelCreateRequestBody$Outbound = {
|
|
63
|
+
configuration: { [k: string]: any };
|
|
64
|
+
display_name: string;
|
|
65
|
+
has_functions: boolean;
|
|
66
|
+
id: string;
|
|
67
|
+
input_cost: number;
|
|
68
|
+
metadata: components.ModelMetadata$Outbound;
|
|
69
|
+
model_developer: string;
|
|
70
|
+
model_family: string;
|
|
71
|
+
model_id: string;
|
|
72
|
+
model_type: string;
|
|
73
|
+
output_cost: number;
|
|
74
|
+
parameters: Array<components.CreateModelParameter$Outbound> | null;
|
|
75
|
+
provider: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ModelCreateRequestBody$outboundSchema: z.ZodType<
|
|
80
|
+
ModelCreateRequestBody$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
ModelCreateRequestBody
|
|
83
|
+
> = z.object({
|
|
84
|
+
configuration: z.record(z.any()),
|
|
85
|
+
displayName: z.string(),
|
|
86
|
+
hasFunctions: z.boolean(),
|
|
87
|
+
id: z.string(),
|
|
88
|
+
inputCost: z.number(),
|
|
89
|
+
metadata: components.ModelMetadata$outboundSchema,
|
|
90
|
+
modelDeveloper: z.string(),
|
|
91
|
+
modelFamily: z.string(),
|
|
92
|
+
modelId: z.string(),
|
|
93
|
+
modelType: z.string(),
|
|
94
|
+
outputCost: z.number(),
|
|
95
|
+
parameters: z.nullable(
|
|
96
|
+
z.array(components.CreateModelParameter$outboundSchema),
|
|
97
|
+
),
|
|
98
|
+
provider: z.string(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
displayName: "display_name",
|
|
102
|
+
hasFunctions: "has_functions",
|
|
103
|
+
inputCost: "input_cost",
|
|
104
|
+
modelDeveloper: "model_developer",
|
|
105
|
+
modelFamily: "model_family",
|
|
106
|
+
modelId: "model_id",
|
|
107
|
+
modelType: "model_type",
|
|
108
|
+
outputCost: "output_cost",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export function modelCreateRequestBodyToJSON(
|
|
113
|
+
modelCreateRequestBody: ModelCreateRequestBody,
|
|
114
|
+
): string {
|
|
115
|
+
return JSON.stringify(
|
|
116
|
+
ModelCreateRequestBody$outboundSchema.parse(modelCreateRequestBody),
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const ModelCreateResponseBody$inboundSchema: z.ZodType<
|
|
122
|
+
ModelCreateResponseBody,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
configuration: components.ModelConfigurationResponse$inboundSchema,
|
|
127
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
128
|
+
description: z.nullable(z.string()),
|
|
129
|
+
display_name: z.string(),
|
|
130
|
+
docs_url: z.nullable(z.string()),
|
|
131
|
+
enabled: z.boolean(),
|
|
132
|
+
enabled_for_endpoints: z.boolean(),
|
|
133
|
+
enabled_for_playground: z.boolean(),
|
|
134
|
+
has_cpu_pricing: z.boolean(),
|
|
135
|
+
has_functions: z.boolean(),
|
|
136
|
+
id: z.string(),
|
|
137
|
+
input_cost: z.nullable(z.number()),
|
|
138
|
+
input_currency: z.string(),
|
|
139
|
+
is_active: z.boolean(),
|
|
140
|
+
metadata: components.ModelMetadata$inboundSchema,
|
|
141
|
+
model_developer: z.string().optional(),
|
|
142
|
+
model_family: z.string().optional(),
|
|
143
|
+
model_id: z.string(),
|
|
144
|
+
model_type: z.string(),
|
|
145
|
+
output_cost: z.nullable(z.number()),
|
|
146
|
+
output_currency: z.string(),
|
|
147
|
+
owner: z.string(),
|
|
148
|
+
parameters: z.nullable(
|
|
149
|
+
z.array(components.ModelParameterDocument$inboundSchema),
|
|
150
|
+
),
|
|
151
|
+
pricing_url: z.nullable(z.string()),
|
|
152
|
+
provider: z.string(),
|
|
153
|
+
refId: z.string(),
|
|
154
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
155
|
+
}).transform((v) => {
|
|
156
|
+
return remap$(v, {
|
|
157
|
+
"display_name": "displayName",
|
|
158
|
+
"docs_url": "docsUrl",
|
|
159
|
+
"enabled_for_endpoints": "enabledForEndpoints",
|
|
160
|
+
"enabled_for_playground": "enabledForPlayground",
|
|
161
|
+
"has_cpu_pricing": "hasCpuPricing",
|
|
162
|
+
"has_functions": "hasFunctions",
|
|
163
|
+
"input_cost": "inputCost",
|
|
164
|
+
"input_currency": "inputCurrency",
|
|
165
|
+
"is_active": "isActive",
|
|
166
|
+
"model_developer": "modelDeveloper",
|
|
167
|
+
"model_family": "modelFamily",
|
|
168
|
+
"model_id": "modelId",
|
|
169
|
+
"model_type": "modelType",
|
|
170
|
+
"output_cost": "outputCost",
|
|
171
|
+
"output_currency": "outputCurrency",
|
|
172
|
+
"pricing_url": "pricingUrl",
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
export function modelCreateResponseBodyFromJSON(
|
|
177
|
+
jsonString: string,
|
|
178
|
+
): SafeParseResult<ModelCreateResponseBody, SDKValidationError> {
|
|
179
|
+
return safeParse(
|
|
180
|
+
jsonString,
|
|
181
|
+
(x) => ModelCreateResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
+
`Failed to parse 'ModelCreateResponseBody' from JSON`,
|
|
183
|
+
);
|
|
184
|
+
}
|