@orq-ai/node 4.9.24 → 4.9.29
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/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +3 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -1
- package/models/operations/createcompletion.js.map +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/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +3 -1
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +3 -1
- package/models/operations/deploymentstream.js.map +1 -1
- 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/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +3 -1
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -2
- package/models/operations/streamrunagent.js.map +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/identitiesCreate.ts +1 -1
- 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/funcs/piiDetect.ts +162 -0
- package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
- package/packages/orq-rc/src/funcs/piiRestore.ts +162 -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/apikey.ts +3 -12
- 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/detectrequest.ts +56 -0
- package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/domain.ts +14 -21
- package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
- package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
- package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
- package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
- package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
- package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
- package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
- package/packages/orq-rc/src/models/components/evaluatorref.ts +4 -0
- package/packages/orq-rc/src/models/components/guardrailref.ts +4 -0
- package/packages/orq-rc/src/models/components/index.ts +36 -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/publicembeddingdata.ts +60 -0
- package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
- package/packages/orq-rc/src/models/components/publicmodelentry.ts +7 -6
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
- package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
- 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/createagentresponserequest.ts +2 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +2 -1
- package/packages/orq-rc/src/models/operations/createcompletion.ts +2 -1
- 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/createembedding.ts +82 -810
- package/packages/orq-rc/src/models/operations/createeval.ts +630 -1333
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +33 -15
- 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 +287 -250
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -64
- 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/listchunks.ts +35 -6
- 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/streamagent.ts +2 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -2
- 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 -100
- 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/pii.ts +63 -0
- package/packages/orq-rc/src/sdk/router.ts +5 -5
- package/packages/orq-rc/src/sdk/sdk.ts +11 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -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/createrouterresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentstream.ts +2 -1
- 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/streamagent.ts +2 -1
- package/src/models/operations/streamrunagent.ts +3 -2
- 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
|
@@ -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",
|
|
@@ -9,10 +9,28 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
export const QueryParam2 = {
|
|
13
|
+
Pending: "pending",
|
|
14
|
+
Processing: "processing",
|
|
15
|
+
Completed: "completed",
|
|
16
|
+
Failed: "failed",
|
|
17
|
+
Queued: "queued",
|
|
18
|
+
} as const;
|
|
19
|
+
export type QueryParam2 = ClosedEnum<typeof QueryParam2>;
|
|
20
|
+
|
|
21
|
+
export const QueryParam1 = {
|
|
22
|
+
Pending: "pending",
|
|
23
|
+
Processing: "processing",
|
|
24
|
+
Completed: "completed",
|
|
25
|
+
Failed: "failed",
|
|
26
|
+
Queued: "queued",
|
|
27
|
+
} as const;
|
|
28
|
+
export type QueryParam1 = ClosedEnum<typeof QueryParam1>;
|
|
29
|
+
|
|
12
30
|
/**
|
|
13
|
-
* Filter
|
|
31
|
+
* Filter chunks by status.
|
|
14
32
|
*/
|
|
15
|
-
export type QueryParamStatus = Array<
|
|
33
|
+
export type QueryParamStatus = Array<QueryParam1> | QueryParam2;
|
|
16
34
|
|
|
17
35
|
export type ListChunksRequest = {
|
|
18
36
|
/**
|
|
@@ -40,9 +58,9 @@ export type ListChunksRequest = {
|
|
|
40
58
|
*/
|
|
41
59
|
q?: string | undefined;
|
|
42
60
|
/**
|
|
43
|
-
* Filter
|
|
61
|
+
* Filter chunks by status.
|
|
44
62
|
*/
|
|
45
|
-
status?: Array<
|
|
63
|
+
status?: Array<QueryParam1> | QueryParam2 | undefined;
|
|
46
64
|
};
|
|
47
65
|
|
|
48
66
|
export const ListChunksObject = {
|
|
@@ -115,6 +133,14 @@ export type ListChunksResponseBody = {
|
|
|
115
133
|
hasMore: boolean;
|
|
116
134
|
};
|
|
117
135
|
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const QueryParam2$outboundSchema: z.ZodNativeEnum<typeof QueryParam2> = z
|
|
138
|
+
.nativeEnum(QueryParam2);
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const QueryParam1$outboundSchema: z.ZodNativeEnum<typeof QueryParam1> = z
|
|
142
|
+
.nativeEnum(QueryParam1);
|
|
143
|
+
|
|
118
144
|
/** @internal */
|
|
119
145
|
export type QueryParamStatus$Outbound = Array<string> | string;
|
|
120
146
|
|
|
@@ -123,7 +149,7 @@ export const QueryParamStatus$outboundSchema: z.ZodType<
|
|
|
123
149
|
QueryParamStatus$Outbound,
|
|
124
150
|
z.ZodTypeDef,
|
|
125
151
|
QueryParamStatus
|
|
126
|
-
> = z.union([z.array(
|
|
152
|
+
> = z.union([z.array(QueryParam1$outboundSchema), QueryParam2$outboundSchema]);
|
|
127
153
|
|
|
128
154
|
export function queryParamStatusToJSON(
|
|
129
155
|
queryParamStatus: QueryParamStatus,
|
|
@@ -156,7 +182,10 @@ export const ListChunksRequest$outboundSchema: z.ZodType<
|
|
|
156
182
|
startingAfter: z.string().optional(),
|
|
157
183
|
endingBefore: z.string().optional(),
|
|
158
184
|
q: z.string().optional(),
|
|
159
|
-
status: z.union([
|
|
185
|
+
status: z.union([
|
|
186
|
+
z.array(QueryParam1$outboundSchema),
|
|
187
|
+
QueryParam2$outboundSchema,
|
|
188
|
+
]).optional(),
|
|
160
189
|
}).transform((v) => {
|
|
161
190
|
return remap$(v, {
|
|
162
191
|
knowledgeId: "knowledge_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-
|
|
1273
|
+
"2026-06-02T03:49:25.037Z",
|
|
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-
|
|
1323
|
+
"2026-06-02T03:49:25.037Z",
|
|
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-
|
|
1372
|
+
"2026-06-02T03:49:25.036Z",
|
|
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-
|
|
1451
|
+
"2026-06-02T03:49:02.542Z",
|
|
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-
|
|
159
|
+
"2026-06-02T03:49:02.542Z",
|
|
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("01KT376MBFQKW3FASKXZVT6ZXX"),
|
|
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
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 ModelCreateAutorouterRequestBody = {
|
|
13
|
+
economicalModel: string;
|
|
14
|
+
key: string;
|
|
15
|
+
profile?: string | undefined;
|
|
16
|
+
strongModel: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Autorouter model created successfully
|
|
21
|
+
*/
|
|
22
|
+
export type ModelCreateAutorouterResponseBody = {
|
|
23
|
+
configuration: components.ModelConfigurationResponse;
|
|
24
|
+
created: Date;
|
|
25
|
+
description: string | null;
|
|
26
|
+
displayName: string;
|
|
27
|
+
docsUrl: string | null;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
enabledForEndpoints: boolean;
|
|
30
|
+
enabledForPlayground: boolean;
|
|
31
|
+
hasCpuPricing: boolean;
|
|
32
|
+
hasFunctions: boolean;
|
|
33
|
+
id: string;
|
|
34
|
+
inputCost: number | null;
|
|
35
|
+
inputCurrency: string;
|
|
36
|
+
isActive: boolean;
|
|
37
|
+
metadata: components.ModelMetadata;
|
|
38
|
+
modelDeveloper?: string | undefined;
|
|
39
|
+
modelFamily?: string | undefined;
|
|
40
|
+
modelId: string;
|
|
41
|
+
modelType: string;
|
|
42
|
+
outputCost: number | null;
|
|
43
|
+
outputCurrency: string;
|
|
44
|
+
owner: string;
|
|
45
|
+
parameters: Array<components.ModelParameterDocument> | null;
|
|
46
|
+
pricingUrl: string | null;
|
|
47
|
+
provider: string;
|
|
48
|
+
refId: string;
|
|
49
|
+
updated: Date;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type ModelCreateAutorouterRequestBody$Outbound = {
|
|
54
|
+
economical_model: string;
|
|
55
|
+
key: string;
|
|
56
|
+
profile?: string | undefined;
|
|
57
|
+
strong_model: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ModelCreateAutorouterRequestBody$outboundSchema: z.ZodType<
|
|
62
|
+
ModelCreateAutorouterRequestBody$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
ModelCreateAutorouterRequestBody
|
|
65
|
+
> = z.object({
|
|
66
|
+
economicalModel: z.string(),
|
|
67
|
+
key: z.string(),
|
|
68
|
+
profile: z.string().optional(),
|
|
69
|
+
strongModel: z.string(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
economicalModel: "economical_model",
|
|
73
|
+
strongModel: "strong_model",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function modelCreateAutorouterRequestBodyToJSON(
|
|
78
|
+
modelCreateAutorouterRequestBody: ModelCreateAutorouterRequestBody,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
ModelCreateAutorouterRequestBody$outboundSchema.parse(
|
|
82
|
+
modelCreateAutorouterRequestBody,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const ModelCreateAutorouterResponseBody$inboundSchema: z.ZodType<
|
|
89
|
+
ModelCreateAutorouterResponseBody,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
unknown
|
|
92
|
+
> = z.object({
|
|
93
|
+
configuration: components.ModelConfigurationResponse$inboundSchema,
|
|
94
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
95
|
+
description: z.nullable(z.string()),
|
|
96
|
+
display_name: z.string(),
|
|
97
|
+
docs_url: z.nullable(z.string()),
|
|
98
|
+
enabled: z.boolean(),
|
|
99
|
+
enabled_for_endpoints: z.boolean(),
|
|
100
|
+
enabled_for_playground: z.boolean(),
|
|
101
|
+
has_cpu_pricing: z.boolean(),
|
|
102
|
+
has_functions: z.boolean(),
|
|
103
|
+
id: z.string(),
|
|
104
|
+
input_cost: z.nullable(z.number()),
|
|
105
|
+
input_currency: z.string(),
|
|
106
|
+
is_active: z.boolean(),
|
|
107
|
+
metadata: components.ModelMetadata$inboundSchema,
|
|
108
|
+
model_developer: z.string().optional(),
|
|
109
|
+
model_family: z.string().optional(),
|
|
110
|
+
model_id: z.string(),
|
|
111
|
+
model_type: z.string(),
|
|
112
|
+
output_cost: z.nullable(z.number()),
|
|
113
|
+
output_currency: z.string(),
|
|
114
|
+
owner: z.string(),
|
|
115
|
+
parameters: z.nullable(
|
|
116
|
+
z.array(components.ModelParameterDocument$inboundSchema),
|
|
117
|
+
),
|
|
118
|
+
pricing_url: z.nullable(z.string()),
|
|
119
|
+
provider: z.string(),
|
|
120
|
+
refId: z.string(),
|
|
121
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
122
|
+
}).transform((v) => {
|
|
123
|
+
return remap$(v, {
|
|
124
|
+
"display_name": "displayName",
|
|
125
|
+
"docs_url": "docsUrl",
|
|
126
|
+
"enabled_for_endpoints": "enabledForEndpoints",
|
|
127
|
+
"enabled_for_playground": "enabledForPlayground",
|
|
128
|
+
"has_cpu_pricing": "hasCpuPricing",
|
|
129
|
+
"has_functions": "hasFunctions",
|
|
130
|
+
"input_cost": "inputCost",
|
|
131
|
+
"input_currency": "inputCurrency",
|
|
132
|
+
"is_active": "isActive",
|
|
133
|
+
"model_developer": "modelDeveloper",
|
|
134
|
+
"model_family": "modelFamily",
|
|
135
|
+
"model_id": "modelId",
|
|
136
|
+
"model_type": "modelType",
|
|
137
|
+
"output_cost": "outputCost",
|
|
138
|
+
"output_currency": "outputCurrency",
|
|
139
|
+
"pricing_url": "pricingUrl",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function modelCreateAutorouterResponseBodyFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<ModelCreateAutorouterResponseBody, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => ModelCreateAutorouterResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'ModelCreateAutorouterResponseBody' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|