@orq-ai/node 4.9.24 → 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 +1 -1
- 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
|
@@ -0,0 +1,53 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ModelParameterDocument = {
|
|
12
|
+
config: { [k: string]: any };
|
|
13
|
+
description: string | null;
|
|
14
|
+
hints?: string | undefined;
|
|
15
|
+
id: string;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
parameter: string;
|
|
19
|
+
parameterType: string;
|
|
20
|
+
position?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ModelParameterDocument$inboundSchema: z.ZodType<
|
|
25
|
+
ModelParameterDocument,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
config: z.record(z.any()),
|
|
30
|
+
description: z.nullable(z.string()),
|
|
31
|
+
hints: z.string().optional(),
|
|
32
|
+
id: z.string(),
|
|
33
|
+
is_active: z.boolean(),
|
|
34
|
+
name: z.string(),
|
|
35
|
+
parameter: z.string(),
|
|
36
|
+
parameter_type: z.string(),
|
|
37
|
+
position: z.number().int().optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"is_active": "isActive",
|
|
41
|
+
"parameter_type": "parameterType",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function modelParameterDocumentFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<ModelParameterDocument, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => ModelParameterDocument$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'ModelParameterDocument' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Price = {
|
|
11
|
+
cost: number;
|
|
12
|
+
currency: string;
|
|
13
|
+
per: number;
|
|
14
|
+
unit: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Price$inboundSchema: z.ZodType<Price, z.ZodTypeDef, unknown> = z
|
|
19
|
+
.object({
|
|
20
|
+
cost: z.number(),
|
|
21
|
+
currency: z.string(),
|
|
22
|
+
per: z.number().int(),
|
|
23
|
+
unit: z.string(),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type Price$Outbound = {
|
|
27
|
+
cost: number;
|
|
28
|
+
currency: string;
|
|
29
|
+
per: number;
|
|
30
|
+
unit: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const Price$outboundSchema: z.ZodType<
|
|
35
|
+
Price$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
Price
|
|
38
|
+
> = z.object({
|
|
39
|
+
cost: z.number(),
|
|
40
|
+
currency: z.string(),
|
|
41
|
+
per: z.number().int(),
|
|
42
|
+
unit: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function priceToJSON(price: Price): string {
|
|
46
|
+
return JSON.stringify(Price$outboundSchema.parse(price));
|
|
47
|
+
}
|
|
48
|
+
export function priceFromJSON(
|
|
49
|
+
jsonString: string,
|
|
50
|
+
): SafeParseResult<Price, SDKValidationError> {
|
|
51
|
+
return safeParse(
|
|
52
|
+
jsonString,
|
|
53
|
+
(x) => Price$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
+
`Failed to parse 'Price' from JSON`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Price,
|
|
12
|
+
Price$inboundSchema,
|
|
13
|
+
Price$Outbound,
|
|
14
|
+
Price$outboundSchema,
|
|
15
|
+
} from "./price.js";
|
|
16
|
+
import {
|
|
17
|
+
PricingVariant,
|
|
18
|
+
PricingVariant$inboundSchema,
|
|
19
|
+
PricingVariant$Outbound,
|
|
20
|
+
PricingVariant$outboundSchema,
|
|
21
|
+
} from "./pricingvariant.js";
|
|
22
|
+
|
|
23
|
+
export type Pricing = {
|
|
24
|
+
cacheRead?: Price | undefined;
|
|
25
|
+
cacheWrite1h?: Price | undefined;
|
|
26
|
+
cacheWrite5m?: Price | undefined;
|
|
27
|
+
input?: Price | undefined;
|
|
28
|
+
output?: Price | undefined;
|
|
29
|
+
reasoning?: Price | undefined;
|
|
30
|
+
variants?: Array<PricingVariant> | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const Pricing$inboundSchema: z.ZodType<Pricing, z.ZodTypeDef, unknown> =
|
|
35
|
+
z.object({
|
|
36
|
+
cache_read: Price$inboundSchema.optional(),
|
|
37
|
+
cache_write_1h: Price$inboundSchema.optional(),
|
|
38
|
+
cache_write_5m: Price$inboundSchema.optional(),
|
|
39
|
+
input: Price$inboundSchema.optional(),
|
|
40
|
+
output: Price$inboundSchema.optional(),
|
|
41
|
+
reasoning: Price$inboundSchema.optional(),
|
|
42
|
+
variants: z.nullable(z.array(PricingVariant$inboundSchema)).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"cache_read": "cacheRead",
|
|
46
|
+
"cache_write_1h": "cacheWrite1h",
|
|
47
|
+
"cache_write_5m": "cacheWrite5m",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type Pricing$Outbound = {
|
|
52
|
+
cache_read?: Price$Outbound | undefined;
|
|
53
|
+
cache_write_1h?: Price$Outbound | undefined;
|
|
54
|
+
cache_write_5m?: Price$Outbound | undefined;
|
|
55
|
+
input?: Price$Outbound | undefined;
|
|
56
|
+
output?: Price$Outbound | undefined;
|
|
57
|
+
reasoning?: Price$Outbound | undefined;
|
|
58
|
+
variants?: Array<PricingVariant$Outbound> | null | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const Pricing$outboundSchema: z.ZodType<
|
|
63
|
+
Pricing$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
Pricing
|
|
66
|
+
> = z.object({
|
|
67
|
+
cacheRead: Price$outboundSchema.optional(),
|
|
68
|
+
cacheWrite1h: Price$outboundSchema.optional(),
|
|
69
|
+
cacheWrite5m: Price$outboundSchema.optional(),
|
|
70
|
+
input: Price$outboundSchema.optional(),
|
|
71
|
+
output: Price$outboundSchema.optional(),
|
|
72
|
+
reasoning: Price$outboundSchema.optional(),
|
|
73
|
+
variants: z.nullable(z.array(PricingVariant$outboundSchema)).optional(),
|
|
74
|
+
}).transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
cacheRead: "cache_read",
|
|
77
|
+
cacheWrite1h: "cache_write_1h",
|
|
78
|
+
cacheWrite5m: "cache_write_5m",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function pricingToJSON(pricing: Pricing): string {
|
|
83
|
+
return JSON.stringify(Pricing$outboundSchema.parse(pricing));
|
|
84
|
+
}
|
|
85
|
+
export function pricingFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<Pricing, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => Pricing$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'Pricing' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Price,
|
|
12
|
+
Price$inboundSchema,
|
|
13
|
+
Price$Outbound,
|
|
14
|
+
Price$outboundSchema,
|
|
15
|
+
} from "./price.js";
|
|
16
|
+
|
|
17
|
+
export type PricingVariant = {
|
|
18
|
+
cacheRead?: Price | undefined;
|
|
19
|
+
cacheWrite1h?: Price | undefined;
|
|
20
|
+
cacheWrite5m?: Price | undefined;
|
|
21
|
+
input?: Price | undefined;
|
|
22
|
+
output?: Price | undefined;
|
|
23
|
+
reasoning?: Price | undefined;
|
|
24
|
+
when: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PricingVariant$inboundSchema: z.ZodType<
|
|
29
|
+
PricingVariant,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
cache_read: Price$inboundSchema.optional(),
|
|
34
|
+
cache_write_1h: Price$inboundSchema.optional(),
|
|
35
|
+
cache_write_5m: Price$inboundSchema.optional(),
|
|
36
|
+
input: Price$inboundSchema.optional(),
|
|
37
|
+
output: Price$inboundSchema.optional(),
|
|
38
|
+
reasoning: Price$inboundSchema.optional(),
|
|
39
|
+
when: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"cache_read": "cacheRead",
|
|
43
|
+
"cache_write_1h": "cacheWrite1h",
|
|
44
|
+
"cache_write_5m": "cacheWrite5m",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type PricingVariant$Outbound = {
|
|
49
|
+
cache_read?: Price$Outbound | undefined;
|
|
50
|
+
cache_write_1h?: Price$Outbound | undefined;
|
|
51
|
+
cache_write_5m?: Price$Outbound | undefined;
|
|
52
|
+
input?: Price$Outbound | undefined;
|
|
53
|
+
output?: Price$Outbound | undefined;
|
|
54
|
+
reasoning?: Price$Outbound | undefined;
|
|
55
|
+
when: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const PricingVariant$outboundSchema: z.ZodType<
|
|
60
|
+
PricingVariant$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
PricingVariant
|
|
63
|
+
> = z.object({
|
|
64
|
+
cacheRead: Price$outboundSchema.optional(),
|
|
65
|
+
cacheWrite1h: Price$outboundSchema.optional(),
|
|
66
|
+
cacheWrite5m: Price$outboundSchema.optional(),
|
|
67
|
+
input: Price$outboundSchema.optional(),
|
|
68
|
+
output: Price$outboundSchema.optional(),
|
|
69
|
+
reasoning: Price$outboundSchema.optional(),
|
|
70
|
+
when: z.string(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
cacheRead: "cache_read",
|
|
74
|
+
cacheWrite1h: "cache_write_1h",
|
|
75
|
+
cacheWrite5m: "cache_write_5m",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export function pricingVariantToJSON(pricingVariant: PricingVariant): string {
|
|
80
|
+
return JSON.stringify(PricingVariant$outboundSchema.parse(pricingVariant));
|
|
81
|
+
}
|
|
82
|
+
export function pricingVariantFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<PricingVariant, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => PricingVariant$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'PricingVariant' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -61,6 +61,10 @@ export type Project = {
|
|
|
61
61
|
* User ID that last updated the project.
|
|
62
62
|
*/
|
|
63
63
|
updatedById?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Optional human-readable description of the project.
|
|
66
|
+
*/
|
|
67
|
+
description?: string | undefined;
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
/** @internal */
|
|
@@ -80,6 +84,7 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
|
80
84
|
).optional(),
|
|
81
85
|
created_by_id: z.string().optional(),
|
|
82
86
|
updated_by_id: z.string().optional(),
|
|
87
|
+
description: z.string().optional(),
|
|
83
88
|
}).transform((v) => {
|
|
84
89
|
return remap$(v, {
|
|
85
90
|
"project_id": "projectId",
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kssxnhnx1rdy9jsj26s5pk90"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type UpdateModelParameter = {
|
|
9
|
+
config?: { [k: string]: any } | undefined;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
hints?: string | undefined;
|
|
12
|
+
id: string;
|
|
13
|
+
isActive?: boolean | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
parameter?: string | undefined;
|
|
16
|
+
parameterType?: string | undefined;
|
|
17
|
+
position?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type UpdateModelParameter$Outbound = {
|
|
22
|
+
config?: { [k: string]: any } | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
hints?: string | undefined;
|
|
25
|
+
id: string;
|
|
26
|
+
is_active?: boolean | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
parameter?: string | undefined;
|
|
29
|
+
parameter_type?: string | undefined;
|
|
30
|
+
position?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const UpdateModelParameter$outboundSchema: z.ZodType<
|
|
35
|
+
UpdateModelParameter$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
UpdateModelParameter
|
|
38
|
+
> = z.object({
|
|
39
|
+
config: z.record(z.any()).optional(),
|
|
40
|
+
description: z.string().optional(),
|
|
41
|
+
hints: z.string().optional(),
|
|
42
|
+
id: z.string(),
|
|
43
|
+
isActive: z.boolean().optional(),
|
|
44
|
+
name: z.string().optional(),
|
|
45
|
+
parameter: z.string().optional(),
|
|
46
|
+
parameterType: z.string().optional(),
|
|
47
|
+
position: z.number().int().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
isActive: "is_active",
|
|
51
|
+
parameterType: "parameter_type",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function updateModelParameterToJSON(
|
|
56
|
+
updateModelParameter: UpdateModelParameter,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
UpdateModelParameter$outboundSchema.parse(updateModelParameter),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -21,6 +21,10 @@ export type UpdateProjectRequest = {
|
|
|
21
21
|
* Leave empty to remove all team associations.
|
|
22
22
|
*/
|
|
23
23
|
teams?: Array<string> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* New project description. Omit to keep the current description.
|
|
26
|
+
*/
|
|
27
|
+
description?: string | undefined;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
@@ -28,6 +32,7 @@ export type UpdateProjectRequest$Outbound = {
|
|
|
28
32
|
project_id?: string | undefined;
|
|
29
33
|
name?: string | undefined;
|
|
30
34
|
teams?: Array<string> | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
/** @internal */
|
|
@@ -39,6 +44,7 @@ export const UpdateProjectRequest$outboundSchema: z.ZodType<
|
|
|
39
44
|
projectId: z.string().optional(),
|
|
40
45
|
name: z.string().optional(),
|
|
41
46
|
teams: z.array(z.string()).optional(),
|
|
47
|
+
description: z.string().optional(),
|
|
42
48
|
}).transform((v) => {
|
|
43
49
|
return remap$(v, {
|
|
44
50
|
projectId: "project_id",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type VertexCapabilities = {
|
|
8
|
+
structuredOutput: boolean;
|
|
9
|
+
supportToolCalling: boolean;
|
|
10
|
+
vision: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type VertexCapabilities$Outbound = {
|
|
15
|
+
structuredOutput: boolean;
|
|
16
|
+
supportToolCalling: boolean;
|
|
17
|
+
vision: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const VertexCapabilities$outboundSchema: z.ZodType<
|
|
22
|
+
VertexCapabilities$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
VertexCapabilities
|
|
25
|
+
> = z.object({
|
|
26
|
+
structuredOutput: z.boolean(),
|
|
27
|
+
supportToolCalling: z.boolean(),
|
|
28
|
+
vision: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function vertexCapabilitiesToJSON(
|
|
32
|
+
vertexCapabilities: VertexCapabilities,
|
|
33
|
+
): string {
|
|
34
|
+
return JSON.stringify(
|
|
35
|
+
VertexCapabilities$outboundSchema.parse(vertexCapabilities),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
VertexModelConfiguration,
|
|
8
|
+
VertexModelConfiguration$Outbound,
|
|
9
|
+
VertexModelConfiguration$outboundSchema,
|
|
10
|
+
} from "./vertexmodelconfiguration.js";
|
|
11
|
+
|
|
12
|
+
export type VertexConfiguration = {
|
|
13
|
+
location: string;
|
|
14
|
+
modelConfiguration: VertexModelConfiguration;
|
|
15
|
+
projectId: string;
|
|
16
|
+
serviceAccount: { [k: string]: any };
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type VertexConfiguration$Outbound = {
|
|
21
|
+
location: string;
|
|
22
|
+
modelConfiguration: VertexModelConfiguration$Outbound;
|
|
23
|
+
projectId: string;
|
|
24
|
+
serviceAccount: { [k: string]: any };
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const VertexConfiguration$outboundSchema: z.ZodType<
|
|
29
|
+
VertexConfiguration$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
VertexConfiguration
|
|
32
|
+
> = z.object({
|
|
33
|
+
location: z.string(),
|
|
34
|
+
modelConfiguration: VertexModelConfiguration$outboundSchema,
|
|
35
|
+
projectId: z.string(),
|
|
36
|
+
serviceAccount: z.record(z.any()),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function vertexConfigurationToJSON(
|
|
40
|
+
vertexConfiguration: VertexConfiguration,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
VertexConfiguration$outboundSchema.parse(vertexConfiguration),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
VertexCapabilities,
|
|
8
|
+
VertexCapabilities$Outbound,
|
|
9
|
+
VertexCapabilities$outboundSchema,
|
|
10
|
+
} from "./vertexcapabilities.js";
|
|
11
|
+
import {
|
|
12
|
+
VertexParameters,
|
|
13
|
+
VertexParameters$Outbound,
|
|
14
|
+
VertexParameters$outboundSchema,
|
|
15
|
+
} from "./vertexparameters.js";
|
|
16
|
+
|
|
17
|
+
export type VertexModelConfiguration = {
|
|
18
|
+
capabilities: VertexCapabilities;
|
|
19
|
+
id: string;
|
|
20
|
+
inputCost: number;
|
|
21
|
+
outputCost: number;
|
|
22
|
+
parameters: VertexParameters;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type VertexModelConfiguration$Outbound = {
|
|
27
|
+
capabilities: VertexCapabilities$Outbound;
|
|
28
|
+
id: string;
|
|
29
|
+
inputCost: number;
|
|
30
|
+
outputCost: number;
|
|
31
|
+
parameters: VertexParameters$Outbound;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const VertexModelConfiguration$outboundSchema: z.ZodType<
|
|
36
|
+
VertexModelConfiguration$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
VertexModelConfiguration
|
|
39
|
+
> = z.object({
|
|
40
|
+
capabilities: VertexCapabilities$outboundSchema,
|
|
41
|
+
id: z.string(),
|
|
42
|
+
inputCost: z.number(),
|
|
43
|
+
outputCost: z.number(),
|
|
44
|
+
parameters: VertexParameters$outboundSchema,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function vertexModelConfigurationToJSON(
|
|
48
|
+
vertexModelConfiguration: VertexModelConfiguration,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
VertexModelConfiguration$outboundSchema.parse(vertexModelConfiguration),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
VertexParamRange,
|
|
8
|
+
VertexParamRange$Outbound,
|
|
9
|
+
VertexParamRange$outboundSchema,
|
|
10
|
+
} from "./vertexparamrange.js";
|
|
11
|
+
import {
|
|
12
|
+
VertexParamRangeInt,
|
|
13
|
+
VertexParamRangeInt$Outbound,
|
|
14
|
+
VertexParamRangeInt$outboundSchema,
|
|
15
|
+
} from "./vertexparamrangeint.js";
|
|
16
|
+
|
|
17
|
+
export type VertexParameters = {
|
|
18
|
+
maxTokens: VertexParamRangeInt;
|
|
19
|
+
temperature: VertexParamRange;
|
|
20
|
+
topP: VertexParamRange;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type VertexParameters$Outbound = {
|
|
25
|
+
maxTokens: VertexParamRangeInt$Outbound;
|
|
26
|
+
temperature: VertexParamRange$Outbound;
|
|
27
|
+
topP: VertexParamRange$Outbound;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const VertexParameters$outboundSchema: z.ZodType<
|
|
32
|
+
VertexParameters$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
VertexParameters
|
|
35
|
+
> = z.object({
|
|
36
|
+
maxTokens: VertexParamRangeInt$outboundSchema,
|
|
37
|
+
temperature: VertexParamRange$outboundSchema,
|
|
38
|
+
topP: VertexParamRange$outboundSchema,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function vertexParametersToJSON(
|
|
42
|
+
vertexParameters: VertexParameters,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
VertexParameters$outboundSchema.parse(vertexParameters),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type VertexParamRange = {
|
|
8
|
+
max: number;
|
|
9
|
+
min: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type VertexParamRange$Outbound = {
|
|
14
|
+
max: number;
|
|
15
|
+
min: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const VertexParamRange$outboundSchema: z.ZodType<
|
|
20
|
+
VertexParamRange$Outbound,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
VertexParamRange
|
|
23
|
+
> = z.object({
|
|
24
|
+
max: z.number(),
|
|
25
|
+
min: z.number(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function vertexParamRangeToJSON(
|
|
29
|
+
vertexParamRange: VertexParamRange,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
VertexParamRange$outboundSchema.parse(vertexParamRange),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type VertexParamRangeInt = {
|
|
8
|
+
max: number;
|
|
9
|
+
min: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type VertexParamRangeInt$Outbound = {
|
|
14
|
+
max: number;
|
|
15
|
+
min: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const VertexParamRangeInt$outboundSchema: z.ZodType<
|
|
20
|
+
VertexParamRangeInt$Outbound,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
VertexParamRangeInt
|
|
23
|
+
> = z.object({
|
|
24
|
+
max: z.number().int(),
|
|
25
|
+
min: z.number().int(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function vertexParamRangeIntToJSON(
|
|
29
|
+
vertexParamRangeInt: VertexParamRangeInt,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
VertexParamRangeInt$outboundSchema.parse(vertexParamRangeInt),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -21,7 +21,6 @@ export * from "./honoapierror.js";
|
|
|
21
21
|
export * from "./httpclienterrors.js";
|
|
22
22
|
export * from "./invokeeval.js";
|
|
23
23
|
export * from "./orqerror.js";
|
|
24
|
-
export * from "./postv2agentsa2a.js";
|
|
25
24
|
export * from "./postv2agentskeycardrefresh.js";
|
|
26
25
|
export * from "./postv2feedback.js";
|
|
27
26
|
export * from "./postv2feedbackremove.js";
|