@orq-ai/node 4.7.6 → 4.7.7
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 +2 -2
- package/lib/config.js +2 -2
- 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/getv2humanevals.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getv2humanevalsid.js +6 -6
- 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/patchv2humanevalsid.js +12 -12
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevals.js +12 -12
- 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/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
- package/packages/orq-rc/src/funcs/{evaluatorsGetV2EvaluatorsIdVersions.ts → evalsGetV2EvaluatorsIdVersions.ts} +1 -1
- package/packages/orq-rc/src/funcs/{postV2Feedback.ts → feedbackPostV2Feedback.ts} +5 -5
- package/packages/orq-rc/src/funcs/{postV2FeedbackRemove.ts → feedbackPostV2FeedbackRemove.ts} +1 -1
- package/packages/orq-rc/src/funcs/{guardrailRulesGet.ts → guardrailRulesRetrieve.ts} +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/packages/orq-rc/src/funcs/{policiesGet.ts → policiesRetrieve.ts} +1 -1
- package/packages/orq-rc/src/funcs/{routingRulesGet.ts → routingRulesRetrieve.ts} +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +0 -5
- package/packages/orq-rc/src/models/errors/postv2feedback.ts +8 -8
- package/packages/orq-rc/src/models/operations/createchunk.ts +7 -7
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -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 +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +36 -42
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +17 -19
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/createresponse.ts +11 -11
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- 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/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- 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 +0 -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/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -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/postv2feedbackremove.ts +8 -8
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- 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/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- 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 +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/evals.ts +18 -0
- package/packages/orq-rc/src/sdk/feedback.ts +33 -0
- package/packages/orq-rc/src/sdk/guardrailrules.ts +3 -3
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/packages/orq-rc/src/sdk/policies.ts +3 -3
- package/packages/orq-rc/src/sdk/routingrules.ts +3 -3
- package/packages/orq-rc/src/sdk/sdk.ts +6 -96
- package/src/lib/config.ts +2 -2
- 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/getv2humanevals.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getv2humanevalsid.ts +6 -6
- 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/patchv2humanevalsid.ts +12 -12
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevals.ts +12 -12
- 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/funcs/deleteV2HumanEvalsId.ts +0 -169
- package/packages/orq-rc/src/funcs/getV2HumanEvals.ts +0 -169
- package/packages/orq-rc/src/funcs/getV2HumanEvalsId.ts +0 -168
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -165
- package/packages/orq-rc/src/funcs/patchV2HumanEvalsId.ts +0 -170
- package/packages/orq-rc/src/funcs/postV2HumanEvals.ts +0 -168
- package/packages/orq-rc/src/models/errors/deletev2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2humanevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/patchv2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/postv2humanevals.ts +0 -51
- package/packages/orq-rc/src/models/operations/deletev2humanevalsid.ts +0 -67
- package/packages/orq-rc/src/models/operations/getv2humanevals.ts +0 -696
- package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +0 -707
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -169
- package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +0 -1362
- package/packages/orq-rc/src/models/operations/postv2humanevals.ts +0 -1193
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -27
|
@@ -1,169 +0,0 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type ListModelsRequest = {
|
|
13
|
-
autorouter?: boolean | null | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const ListModelsObject = {
|
|
17
|
-
List: "list",
|
|
18
|
-
} as const;
|
|
19
|
-
export type ListModelsObject = ClosedEnum<typeof ListModelsObject>;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The modality of the model
|
|
23
|
-
*/
|
|
24
|
-
export const ListModelsType = {
|
|
25
|
-
Chat: "chat",
|
|
26
|
-
Completion: "completion",
|
|
27
|
-
Embedding: "embedding",
|
|
28
|
-
Image: "image",
|
|
29
|
-
Tts: "tts",
|
|
30
|
-
Stt: "stt",
|
|
31
|
-
Rerank: "rerank",
|
|
32
|
-
Ocr: "ocr",
|
|
33
|
-
Moderation: "moderation",
|
|
34
|
-
Vision: "vision",
|
|
35
|
-
} as const;
|
|
36
|
-
/**
|
|
37
|
-
* The modality of the model
|
|
38
|
-
*/
|
|
39
|
-
export type ListModelsType = ClosedEnum<typeof ListModelsType>;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Describe the provider of the model. Every model with `vendor` is publicly available, while models with `workspace` are private.
|
|
43
|
-
*/
|
|
44
|
-
export const OwnedBy = {
|
|
45
|
-
Vendor: "vendor",
|
|
46
|
-
Workspace: "workspace",
|
|
47
|
-
} as const;
|
|
48
|
-
/**
|
|
49
|
-
* Describe the provider of the model. Every model with `vendor` is publicly available, while models with `workspace` are private.
|
|
50
|
-
*/
|
|
51
|
-
export type OwnedBy = ClosedEnum<typeof OwnedBy>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Describes a model offering that can be used with the API
|
|
55
|
-
*/
|
|
56
|
-
export type ListModelsData = {
|
|
57
|
-
/**
|
|
58
|
-
* The model identifier, which can be referenced in the API endpoints.
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
/**
|
|
62
|
-
* The timestamp of the model creation
|
|
63
|
-
*/
|
|
64
|
-
created: number;
|
|
65
|
-
/**
|
|
66
|
-
* The modality of the model
|
|
67
|
-
*/
|
|
68
|
-
type: ListModelsType;
|
|
69
|
-
/**
|
|
70
|
-
* Describe the provider of the model. Every model with `vendor` is publicly available, while models with `workspace` are private.
|
|
71
|
-
*/
|
|
72
|
-
ownedBy: OwnedBy;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* A list of model objects.
|
|
77
|
-
*/
|
|
78
|
-
export type ListModelsResponseBody = {
|
|
79
|
-
object: ListModelsObject;
|
|
80
|
-
data: Array<ListModelsData>;
|
|
81
|
-
hasMore: boolean;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
export type ListModelsRequest$Outbound = {
|
|
86
|
-
autorouter?: boolean | null | undefined;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/** @internal */
|
|
90
|
-
export const ListModelsRequest$outboundSchema: z.ZodType<
|
|
91
|
-
ListModelsRequest$Outbound,
|
|
92
|
-
z.ZodTypeDef,
|
|
93
|
-
ListModelsRequest
|
|
94
|
-
> = z.object({
|
|
95
|
-
autorouter: z.nullable(z.boolean()).optional(),
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export function listModelsRequestToJSON(
|
|
99
|
-
listModelsRequest: ListModelsRequest,
|
|
100
|
-
): string {
|
|
101
|
-
return JSON.stringify(
|
|
102
|
-
ListModelsRequest$outboundSchema.parse(listModelsRequest),
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/** @internal */
|
|
107
|
-
export const ListModelsObject$inboundSchema: z.ZodNativeEnum<
|
|
108
|
-
typeof ListModelsObject
|
|
109
|
-
> = z.nativeEnum(ListModelsObject);
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const ListModelsType$inboundSchema: z.ZodNativeEnum<
|
|
113
|
-
typeof ListModelsType
|
|
114
|
-
> = z.nativeEnum(ListModelsType);
|
|
115
|
-
|
|
116
|
-
/** @internal */
|
|
117
|
-
export const OwnedBy$inboundSchema: z.ZodNativeEnum<typeof OwnedBy> = z
|
|
118
|
-
.nativeEnum(OwnedBy);
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const ListModelsData$inboundSchema: z.ZodType<
|
|
122
|
-
ListModelsData,
|
|
123
|
-
z.ZodTypeDef,
|
|
124
|
-
unknown
|
|
125
|
-
> = z.object({
|
|
126
|
-
id: z.string(),
|
|
127
|
-
created: z.number(),
|
|
128
|
-
type: ListModelsType$inboundSchema,
|
|
129
|
-
owned_by: OwnedBy$inboundSchema,
|
|
130
|
-
}).transform((v) => {
|
|
131
|
-
return remap$(v, {
|
|
132
|
-
"owned_by": "ownedBy",
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
export function listModelsDataFromJSON(
|
|
137
|
-
jsonString: string,
|
|
138
|
-
): SafeParseResult<ListModelsData, SDKValidationError> {
|
|
139
|
-
return safeParse(
|
|
140
|
-
jsonString,
|
|
141
|
-
(x) => ListModelsData$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
-
`Failed to parse 'ListModelsData' from JSON`,
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** @internal */
|
|
147
|
-
export const ListModelsResponseBody$inboundSchema: z.ZodType<
|
|
148
|
-
ListModelsResponseBody,
|
|
149
|
-
z.ZodTypeDef,
|
|
150
|
-
unknown
|
|
151
|
-
> = z.object({
|
|
152
|
-
object: ListModelsObject$inboundSchema,
|
|
153
|
-
data: z.array(z.lazy(() => ListModelsData$inboundSchema)),
|
|
154
|
-
has_more: z.boolean(),
|
|
155
|
-
}).transform((v) => {
|
|
156
|
-
return remap$(v, {
|
|
157
|
-
"has_more": "hasMore",
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
export function listModelsResponseBodyFromJSON(
|
|
162
|
-
jsonString: string,
|
|
163
|
-
): SafeParseResult<ListModelsResponseBody, SDKValidationError> {
|
|
164
|
-
return safeParse(
|
|
165
|
-
jsonString,
|
|
166
|
-
(x) => ListModelsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
-
`Failed to parse 'ListModelsResponseBody' from JSON`,
|
|
168
|
-
);
|
|
169
|
-
}
|