@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.31
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/FUNCTIONS.md +3 -5
- package/README.md +91 -95
- package/bin/mcp-server.js +2288 -883
- package/bin/mcp-server.js.map +71 -65
- package/docs/sdks/contacts/README.md +30 -2
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +138 -0
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +7 -3
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/getV2ModelsLitellmModels.d.ts +17 -0
- package/funcs/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/funcs/getV2ModelsLitellmModels.js +105 -0
- package/funcs/getV2ModelsLitellmModels.js.map +1 -0
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/postV2ModelsLitellmImport.d.ts +17 -0
- package/funcs/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/funcs/postV2ModelsLitellmImport.js +117 -0
- package/funcs/postV2ModelsLitellmImport.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +3 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js +26 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +9 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js +65 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +1 -0
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.js.map +1 -1
- package/models/operations/createchunk.d.ts +28 -28
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +35 -33
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +8 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +10 -10
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +36 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -56
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createfeedback.d.ts +8 -8
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +8 -8
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +24 -18
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +20 -18
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +29 -29
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +32 -32
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +7 -4
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -8
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +7 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/evalsageappropriate.d.ts +2 -2
- package/models/operations/evalsageappropriate.js +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
- package/models/operations/evalsgrammar.d.ts +2 -2
- package/models/operations/evalsgrammar.js +2 -2
- package/models/operations/evalslocalization.d.ts +2 -2
- package/models/operations/evalslocalization.js +2 -2
- package/models/operations/evalspii.d.ts +2 -2
- package/models/operations/evalspii.js +2 -2
- package/models/operations/evalsragascoherence.d.ts +2 -2
- package/models/operations/evalsragascoherence.js +2 -2
- package/models/operations/evalsragasconciseness.d.ts +2 -2
- package/models/operations/evalsragasconciseness.js +2 -2
- package/models/operations/evalsragascontextprecision.d.ts +2 -2
- package/models/operations/evalsragascontextprecision.js +2 -2
- package/models/operations/evalsragascorrectness.d.ts +2 -2
- package/models/operations/evalsragascorrectness.js +2 -2
- package/models/operations/evalsragasfaithfulness.d.ts +2 -2
- package/models/operations/evalsragasfaithfulness.js +2 -2
- package/models/operations/evalsragasharmfulness.d.ts +2 -2
- package/models/operations/evalsragasharmfulness.js +2 -2
- package/models/operations/evalsragasmaliciousness.d.ts +2 -2
- package/models/operations/evalsragasmaliciousness.js +2 -2
- package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
- package/models/operations/evalsragasresponserelevancy.js +2 -2
- package/models/operations/evalssentimentclassification.d.ts +2 -2
- package/models/operations/evalssentimentclassification.js +2 -2
- package/models/operations/evalssummarization.d.ts +2 -2
- package/models/operations/evalssummarization.js +2 -2
- package/models/operations/evalstoneofvoice.d.ts +2 -2
- package/models/operations/evalstoneofvoice.js +2 -2
- package/models/operations/evalstranslation.d.ts +2 -2
- package/models/operations/evalstranslation.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +13 -10
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +11 -10
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +88 -88
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +187 -182
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +13 -10
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +11 -10
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -10
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +11 -10
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +185 -0
- package/models/operations/getv2modelslitellmmodels.d.ts.map +1 -0
- package/models/operations/getv2modelslitellmmodels.js +349 -0
- package/models/operations/getv2modelslitellmmodels.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +108 -108
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +141 -144
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +4 -4
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +6 -6
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +13 -10
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +11 -10
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2modelslitellmimport.d.ts +1333 -0
- package/models/operations/postv2modelslitellmimport.d.ts.map +1 -0
- package/models/operations/postv2modelslitellmimport.js +1400 -0
- package/models/operations/postv2modelslitellmimport.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +4 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +6 -6
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +8 -8
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +10 -10
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +38 -38
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -60
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +33 -86
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +41 -64
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/sdk.d.ts +16 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +21 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/filesCreate.ts +11 -4
- package/src/funcs/getV2ModelsLitellmModels.ts +143 -0
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/funcs/postV2ModelsLitellmImport.ts +167 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/createchunk.ts +54 -44
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +18 -18
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +121 -121
- package/src/models/operations/createfeedback.ts +16 -16
- package/src/models/operations/createprompt.ts +41 -39
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +60 -54
- package/src/models/operations/deploymentinvoke.ts +14 -13
- package/src/models/operations/deployments.ts +15 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- package/src/models/operations/evalsageappropriate.ts +4 -4
- package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/src/models/operations/evalsgrammar.ts +4 -4
- package/src/models/operations/evalslocalization.ts +4 -4
- package/src/models/operations/evalspii.ts +4 -4
- package/src/models/operations/evalsragascoherence.ts +4 -4
- package/src/models/operations/evalsragasconciseness.ts +4 -4
- package/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/src/models/operations/evalsragascorrectness.ts +4 -4
- package/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/src/models/operations/evalssentimentclassification.ts +4 -4
- package/src/models/operations/evalssummarization.ts +4 -4
- package/src/models/operations/evalstoneofvoice.ts +4 -4
- package/src/models/operations/evalstranslation.ts +4 -4
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +23 -22
- package/src/models/operations/getevals.ts +339 -364
- package/src/models/operations/getoneprompt.ts +23 -22
- package/src/models/operations/getpromptversion.ts +23 -22
- package/src/models/operations/getv2modelslitellmmodels.ts +530 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/invokeeval.ts +251 -223
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +23 -22
- package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +10 -10
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +21 -19
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +139 -139
- package/src/models/operations/updateprompt.ts +63 -106
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +37 -1
|
@@ -11,7 +11,7 @@ export type EvalsRagasResponseRelevancyRequestBody = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Latest user message
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
query: string;
|
|
15
15
|
/**
|
|
16
16
|
* The generated response from the model
|
|
17
17
|
*/
|
|
@@ -36,7 +36,7 @@ export const EvalsRagasResponseRelevancyRequestBody$inboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
unknown
|
|
38
38
|
> = z.object({
|
|
39
|
-
|
|
39
|
+
query: z.string(),
|
|
40
40
|
output: z.string(),
|
|
41
41
|
model: z.string(),
|
|
42
42
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -44,7 +44,7 @@ export const EvalsRagasResponseRelevancyRequestBody$inboundSchema: z.ZodType<
|
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type EvalsRagasResponseRelevancyRequestBody$Outbound = {
|
|
47
|
-
|
|
47
|
+
query: string;
|
|
48
48
|
output: string;
|
|
49
49
|
model: string;
|
|
50
50
|
retrievals?: Array<string> | undefined;
|
|
@@ -56,7 +56,7 @@ export const EvalsRagasResponseRelevancyRequestBody$outboundSchema: z.ZodType<
|
|
|
56
56
|
z.ZodTypeDef,
|
|
57
57
|
EvalsRagasResponseRelevancyRequestBody
|
|
58
58
|
> = z.object({
|
|
59
|
-
|
|
59
|
+
query: z.string(),
|
|
60
60
|
output: z.string(),
|
|
61
61
|
model: z.string(),
|
|
62
62
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsSentimentClassificationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsSentimentClassificationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsSentimentClassificationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsSentimentClassificationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsSentimentClassificationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsSummarizationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsSummarizationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsSummarizationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsSummarizationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsSummarizationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsToneOfVoiceRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsToneOfVoiceRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsToneOfVoiceRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsToneOfVoiceRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsToneOfVoiceRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsTranslationRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsTranslationRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsTranslationRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsTranslationRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsTranslationRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-06-
|
|
149
|
+
"2025-06-17T09:09:49.841Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-06-
|
|
183
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-06-
|
|
199
|
+
"2025-06-17T09:09:49.841Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-06-
|
|
233
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-06-
|
|
253
|
+
"2025-06-17T09:09:49.841Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-06-
|
|
287
|
+
created: z.date().default(() => new Date("2025-06-17T09:09:49.841Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -87,7 +87,7 @@ export type GetAllPromptsResponseFormatType = ClosedEnum<
|
|
|
87
87
|
|
|
88
88
|
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
89
89
|
name: string;
|
|
90
|
-
strict
|
|
90
|
+
strict?: boolean | undefined;
|
|
91
91
|
schema: { [k: string]: any };
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -108,8 +108,8 @@ export type GetAllPromptsResponseFormat1 = {
|
|
|
108
108
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
109
109
|
*/
|
|
110
110
|
export type GetAllPromptsResponseFormat =
|
|
111
|
-
|
|
|
112
|
-
|
|
|
111
|
+
| GetAllPromptsResponseFormat1
|
|
112
|
+
| GetAllPromptsResponseFormat2;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -218,8 +218,8 @@ export type GetAllPromptsModelParameters = {
|
|
|
218
218
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
219
219
|
*/
|
|
220
220
|
responseFormat?:
|
|
221
|
-
| GetAllPromptsResponseFormat2
|
|
222
221
|
| GetAllPromptsResponseFormat1
|
|
222
|
+
| GetAllPromptsResponseFormat2
|
|
223
223
|
| null
|
|
224
224
|
| undefined;
|
|
225
225
|
/**
|
|
@@ -259,6 +259,7 @@ export const GetAllPromptsProvider = {
|
|
|
259
259
|
Jina: "jina",
|
|
260
260
|
Togetherai: "togetherai",
|
|
261
261
|
Elevenlabs: "elevenlabs",
|
|
262
|
+
Litellm: "litellm",
|
|
262
263
|
} as const;
|
|
263
264
|
export type GetAllPromptsProvider = ClosedEnum<typeof GetAllPromptsProvider>;
|
|
264
265
|
|
|
@@ -411,11 +412,11 @@ export type GetAllPromptsPromptConfig = {
|
|
|
411
412
|
/**
|
|
412
413
|
* The id of the resource
|
|
413
414
|
*/
|
|
414
|
-
modelDbId?: string | undefined;
|
|
415
|
+
modelDbId?: string | null | undefined;
|
|
415
416
|
/**
|
|
416
417
|
* The modality of the model
|
|
417
418
|
*/
|
|
418
|
-
modelType?: GetAllPromptsModelType | undefined;
|
|
419
|
+
modelType?: GetAllPromptsModelType | null | undefined;
|
|
419
420
|
/**
|
|
420
421
|
* Model Parameters: Not all parameters apply to every model
|
|
421
422
|
*/
|
|
@@ -776,14 +777,14 @@ export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
776
777
|
unknown
|
|
777
778
|
> = z.object({
|
|
778
779
|
name: z.string(),
|
|
779
|
-
strict: z.boolean(),
|
|
780
|
+
strict: z.boolean().optional(),
|
|
780
781
|
schema: z.record(z.any()),
|
|
781
782
|
});
|
|
782
783
|
|
|
783
784
|
/** @internal */
|
|
784
785
|
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
785
786
|
name: string;
|
|
786
|
-
strict
|
|
787
|
+
strict?: boolean | undefined;
|
|
787
788
|
schema: { [k: string]: any };
|
|
788
789
|
};
|
|
789
790
|
|
|
@@ -794,7 +795,7 @@ export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
794
795
|
GetAllPromptsResponseFormatJsonSchema
|
|
795
796
|
> = z.object({
|
|
796
797
|
name: z.string(),
|
|
797
|
-
strict: z.boolean(),
|
|
798
|
+
strict: z.boolean().optional(),
|
|
798
799
|
schema: z.record(z.any()),
|
|
799
800
|
});
|
|
800
801
|
|
|
@@ -911,14 +912,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
911
912
|
z.ZodTypeDef,
|
|
912
913
|
unknown
|
|
913
914
|
> = z.union([
|
|
914
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
915
915
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
916
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
916
917
|
]);
|
|
917
918
|
|
|
918
919
|
/** @internal */
|
|
919
920
|
export type GetAllPromptsResponseFormat$Outbound =
|
|
920
|
-
|
|
|
921
|
-
|
|
|
921
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
922
|
+
| GetAllPromptsResponseFormat2$Outbound;
|
|
922
923
|
|
|
923
924
|
/** @internal */
|
|
924
925
|
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -926,8 +927,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
926
927
|
z.ZodTypeDef,
|
|
927
928
|
GetAllPromptsResponseFormat
|
|
928
929
|
> = z.union([
|
|
929
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
930
930
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
931
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
931
932
|
]);
|
|
932
933
|
|
|
933
934
|
/**
|
|
@@ -1046,8 +1047,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
1046
1047
|
style: z.string().optional(),
|
|
1047
1048
|
responseFormat: z.nullable(
|
|
1048
1049
|
z.union([
|
|
1049
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1050
1050
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1051
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1051
1052
|
]),
|
|
1052
1053
|
).optional(),
|
|
1053
1054
|
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1075,8 +1076,8 @@ export type GetAllPromptsModelParameters$Outbound = {
|
|
|
1075
1076
|
quality?: string | undefined;
|
|
1076
1077
|
style?: string | undefined;
|
|
1077
1078
|
responseFormat?:
|
|
1078
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1079
1079
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1080
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1080
1081
|
| null
|
|
1081
1082
|
| undefined;
|
|
1082
1083
|
photoRealVersion?: string | undefined;
|
|
@@ -1105,8 +1106,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
1105
1106
|
style: z.string().optional(),
|
|
1106
1107
|
responseFormat: z.nullable(
|
|
1107
1108
|
z.union([
|
|
1108
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1109
1109
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1110
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1110
1111
|
]),
|
|
1111
1112
|
).optional(),
|
|
1112
1113
|
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -1927,8 +1928,8 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1927
1928
|
> = z.object({
|
|
1928
1929
|
stream: z.boolean().optional(),
|
|
1929
1930
|
model: z.string().optional(),
|
|
1930
|
-
model_db_id: z.string().optional(),
|
|
1931
|
-
model_type: GetAllPromptsModelType$inboundSchema.optional(),
|
|
1931
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
1932
|
+
model_type: z.nullable(GetAllPromptsModelType$inboundSchema).optional(),
|
|
1932
1933
|
model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
|
|
1933
1934
|
.optional(),
|
|
1934
1935
|
provider: GetAllPromptsProvider$inboundSchema.optional(),
|
|
@@ -1948,8 +1949,8 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1948
1949
|
export type GetAllPromptsPromptConfig$Outbound = {
|
|
1949
1950
|
stream?: boolean | undefined;
|
|
1950
1951
|
model?: string | undefined;
|
|
1951
|
-
model_db_id?: string | undefined;
|
|
1952
|
-
model_type?: string | undefined;
|
|
1952
|
+
model_db_id?: string | null | undefined;
|
|
1953
|
+
model_type?: string | null | undefined;
|
|
1953
1954
|
model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
|
|
1954
1955
|
provider?: string | undefined;
|
|
1955
1956
|
integration_id?: string | null | undefined;
|
|
@@ -1965,8 +1966,8 @@ export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1965
1966
|
> = z.object({
|
|
1966
1967
|
stream: z.boolean().optional(),
|
|
1967
1968
|
model: z.string().optional(),
|
|
1968
|
-
modelDbId: z.string().optional(),
|
|
1969
|
-
modelType: GetAllPromptsModelType$outboundSchema.optional(),
|
|
1969
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
1970
|
+
modelType: z.nullable(GetAllPromptsModelType$outboundSchema).optional(),
|
|
1970
1971
|
modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
|
|
1971
1972
|
.optional(),
|
|
1972
1973
|
provider: GetAllPromptsProvider$outboundSchema.optional(),
|