@orq-ai/node 3.10.17 → 3.10.20
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/bin/mcp-server.js +382 -382
- package/bin/mcp-server.js.map +35 -35
- package/examples/contactsCreate.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +94 -94
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +98 -98
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +47 -47
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +49 -49
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +47 -47
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +49 -49
- package/models/operations/deployments.js.map +1 -1
- 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 +47 -47
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +50 -50
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +47 -47
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +49 -49
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +47 -47
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +49 -49
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +47 -47
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +49 -49
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- 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.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +94 -94
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +99 -99
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +1 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +246 -40
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +121 -20
- package/packages/orq-rc/src/models/operations/deployments.ts +115 -19
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +100 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +100 -2
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +100 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +101 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateprompt.ts +210 -4
- package/packages/orq-rc/src/sdk/contacts.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +179 -179
- package/src/models/operations/deploymentgetconfig.ts +106 -106
- package/src/models/operations/deployments.ts +94 -94
- 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 +98 -98
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +94 -94
- package/src/models/operations/getpromptversion.ts +104 -104
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +103 -103
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +183 -183
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @orq-ai/node SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx contactsCreate.ts
|
|
11
|
+
* npm run build && npx tsx contactsCreate.example.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { Orq } from "@orq-ai/node";
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "2.0";
|
|
42
|
-
readonly sdkVersion: "3.10.
|
|
43
|
-
readonly genVersion: "2.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 3.10.
|
|
42
|
+
readonly sdkVersion: "3.10.20";
|
|
43
|
+
readonly genVersion: "2.681.8";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 3.10.20 2.681.8 2.0 @orq-ai/node";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "3.10.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 3.10.
|
|
31
|
+
sdkVersion: "3.10.20",
|
|
32
|
+
genVersion: "2.681.8",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 3.10.20 2.681.8 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "3.10.
|
|
25
|
+
currentVersion: "3.10.20",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -106,7 +106,7 @@ const remoteconfigsRetrieve_js_1 = require("./tools/remoteconfigsRetrieve.js");
|
|
|
106
106
|
function createMCPServer(deps) {
|
|
107
107
|
const server = new mcp_js_1.McpServer({
|
|
108
108
|
name: "Orq",
|
|
109
|
-
version: "3.10.
|
|
109
|
+
version: "3.10.20",
|
|
110
110
|
});
|
|
111
111
|
const client = new core_js_1.OrqCore({
|
|
112
112
|
apiKey: deps.apiKey,
|
|
@@ -103,7 +103,7 @@ exports.CreateContactResponseBody$inboundSchema = z.object({
|
|
|
103
103
|
metadata: z.record(z.any()).optional(),
|
|
104
104
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
105
105
|
.optional(),
|
|
106
|
-
updated: z.string().datetime({ offset: true }).default("2025-08-
|
|
106
|
+
updated: z.string().datetime({ offset: true }).default("2025-08-14T08:03:47.286Z").transform(v => new Date(v)),
|
|
107
107
|
}).transform((v) => {
|
|
108
108
|
return (0, primitives_js_1.remap)(v, {
|
|
109
109
|
"_id": "id",
|
|
@@ -124,7 +124,7 @@ exports.CreateContactResponseBody$outboundSchema = z.object({
|
|
|
124
124
|
tags: z.array(z.string()).optional(),
|
|
125
125
|
metadata: z.record(z.any()).optional(),
|
|
126
126
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
127
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
127
|
+
updated: z.date().default(() => new Date("2025-08-14T08:03:47.286Z"))
|
|
128
128
|
.transform(v => v.toISOString()),
|
|
129
129
|
}).transform((v) => {
|
|
130
130
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -129,7 +129,7 @@ exports.CreateDatasetResponseBody$inboundSchema = z.object({
|
|
|
129
129
|
metadata: z.lazy(() => exports.CreateDatasetMetadata$inboundSchema),
|
|
130
130
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
131
131
|
.optional(),
|
|
132
|
-
updated: z.string().datetime({ offset: true }).default("2025-08-
|
|
132
|
+
updated: z.string().datetime({ offset: true }).default("2025-08-14T08:03:47.286Z").transform(v => new Date(v)),
|
|
133
133
|
}).transform((v) => {
|
|
134
134
|
return (0, primitives_js_1.remap)(v, {
|
|
135
135
|
"_id": "id",
|
|
@@ -150,7 +150,7 @@ exports.CreateDatasetResponseBody$outboundSchema = z.object({
|
|
|
150
150
|
updatedById: z.string().optional(),
|
|
151
151
|
metadata: z.lazy(() => exports.CreateDatasetMetadata$outboundSchema),
|
|
152
152
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
153
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
153
|
+
updated: z.date().default(() => new Date("2025-08-14T08:03:47.286Z"))
|
|
154
154
|
.transform(v => v.toISOString()),
|
|
155
155
|
}).transform((v) => {
|
|
156
156
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -2301,7 +2301,7 @@ exports.ResponseBody$inboundSchema = z.object({
|
|
|
2301
2301
|
updated_by_id: z.string().optional(),
|
|
2302
2302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2303
2303
|
.optional(),
|
|
2304
|
-
updated: z.string().datetime({ offset: true }).default("2025-08-
|
|
2304
|
+
updated: z.string().datetime({ offset: true }).default("2025-08-14T08:03:47.286Z").transform(v => new Date(v)),
|
|
2305
2305
|
}).transform((v) => {
|
|
2306
2306
|
return (0, primitives_js_1.remap)(v, {
|
|
2307
2307
|
"_id": "id",
|
|
@@ -2329,7 +2329,7 @@ exports.ResponseBody$outboundSchema = z.object({
|
|
|
2329
2329
|
createdById: z.string().optional(),
|
|
2330
2330
|
updatedById: z.string().optional(),
|
|
2331
2331
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2332
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
2332
|
+
updated: z.date().default(() => new Date("2025-08-14T08:03:47.286Z"))
|
|
2333
2333
|
.transform(v => v.toISOString()),
|
|
2334
2334
|
}).transform((v) => {
|
|
2335
2335
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -392,7 +392,7 @@ var CreateDatasourceStatus$;
|
|
|
392
392
|
})(CreateDatasourceStatus$ || (exports.CreateDatasourceStatus$ = CreateDatasourceStatus$ = {}));
|
|
393
393
|
/** @internal */
|
|
394
394
|
exports.CreateDatasourceResponseBody$inboundSchema = z.object({
|
|
395
|
-
_id: z.string().default("
|
|
395
|
+
_id: z.string().default("01K2KSPS80X9V2PYFP64AQ18S2"),
|
|
396
396
|
display_name: z.string(),
|
|
397
397
|
description: z.string().optional(),
|
|
398
398
|
status: exports.CreateDatasourceStatus$inboundSchema,
|
|
@@ -416,7 +416,7 @@ exports.CreateDatasourceResponseBody$inboundSchema = z.object({
|
|
|
416
416
|
});
|
|
417
417
|
/** @internal */
|
|
418
418
|
exports.CreateDatasourceResponseBody$outboundSchema = z.object({
|
|
419
|
-
id: z.string().default("
|
|
419
|
+
id: z.string().default("01K2KSPS80X9V2PYFP64AQ18S2"),
|
|
420
420
|
displayName: z.string(),
|
|
421
421
|
description: z.string().optional(),
|
|
422
422
|
status: exports.CreateDatasourceStatus$outboundSchema,
|
|
@@ -1258,8 +1258,8 @@ var CreateEvalResponseBodyEvalsResponseType$;
|
|
|
1258
1258
|
exports.ResponseBodyPython$inboundSchema = z.object({
|
|
1259
1259
|
_id: z.string(),
|
|
1260
1260
|
description: z.string(),
|
|
1261
|
-
created: z.string().default("2025-08-
|
|
1262
|
-
updated: z.string().default("2025-08-
|
|
1261
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1262
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1263
1263
|
guardrail_config: z.union([
|
|
1264
1264
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
1265
1265
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
@@ -1277,8 +1277,8 @@ exports.ResponseBodyPython$inboundSchema = z.object({
|
|
|
1277
1277
|
exports.ResponseBodyPython$outboundSchema = z.object({
|
|
1278
1278
|
id: z.string(),
|
|
1279
1279
|
description: z.string(),
|
|
1280
|
-
created: z.string().default("2025-08-
|
|
1281
|
-
updated: z.string().default("2025-08-
|
|
1280
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1281
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1282
1282
|
guardrailConfig: z.union([
|
|
1283
1283
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
1284
1284
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema),
|
|
@@ -1479,8 +1479,8 @@ var ResponseBodyMethod$;
|
|
|
1479
1479
|
exports.ResponseBodyHTTP$inboundSchema = z.object({
|
|
1480
1480
|
_id: z.string(),
|
|
1481
1481
|
description: z.string(),
|
|
1482
|
-
created: z.string().default("2025-08-
|
|
1483
|
-
updated: z.string().default("2025-08-
|
|
1482
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1483
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1484
1484
|
guardrail_config: z.union([
|
|
1485
1485
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
1486
1486
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
@@ -1501,8 +1501,8 @@ exports.ResponseBodyHTTP$inboundSchema = z.object({
|
|
|
1501
1501
|
exports.ResponseBodyHTTP$outboundSchema = z.object({
|
|
1502
1502
|
id: z.string(),
|
|
1503
1503
|
description: z.string(),
|
|
1504
|
-
created: z.string().default("2025-08-
|
|
1505
|
-
updated: z.string().default("2025-08-
|
|
1504
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1505
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1506
1506
|
guardrailConfig: z.union([
|
|
1507
1507
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
1508
1508
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema),
|
|
@@ -1688,8 +1688,8 @@ var CreateEvalResponseBodyType$;
|
|
|
1688
1688
|
exports.ResponseBodyJSON$inboundSchema = z.object({
|
|
1689
1689
|
_id: z.string(),
|
|
1690
1690
|
description: z.string(),
|
|
1691
|
-
created: z.string().default("2025-08-
|
|
1692
|
-
updated: z.string().default("2025-08-
|
|
1691
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1692
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1693
1693
|
guardrail_config: z.union([
|
|
1694
1694
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
1695
1695
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -1707,8 +1707,8 @@ exports.ResponseBodyJSON$inboundSchema = z.object({
|
|
|
1707
1707
|
exports.ResponseBodyJSON$outboundSchema = z.object({
|
|
1708
1708
|
id: z.string(),
|
|
1709
1709
|
description: z.string(),
|
|
1710
|
-
created: z.string().default("2025-08-
|
|
1711
|
-
updated: z.string().default("2025-08-
|
|
1710
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1711
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1712
1712
|
guardrailConfig: z.union([
|
|
1713
1713
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
1714
1714
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -1893,8 +1893,8 @@ var ResponseBodyType$;
|
|
|
1893
1893
|
exports.ResponseBodyLLM$inboundSchema = z.object({
|
|
1894
1894
|
_id: z.string(),
|
|
1895
1895
|
description: z.string(),
|
|
1896
|
-
created: z.string().default("2025-08-
|
|
1897
|
-
updated: z.string().default("2025-08-
|
|
1896
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1897
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1898
1898
|
guardrail_config: z.union([
|
|
1899
1899
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
1900
1900
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -1913,8 +1913,8 @@ exports.ResponseBodyLLM$inboundSchema = z.object({
|
|
|
1913
1913
|
exports.ResponseBodyLLM$outboundSchema = z.object({
|
|
1914
1914
|
id: z.string(),
|
|
1915
1915
|
description: z.string(),
|
|
1916
|
-
created: z.string().default("2025-08-
|
|
1917
|
-
updated: z.string().default("2025-08-
|
|
1916
|
+
created: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1917
|
+
updated: z.string().default("2025-08-14T08:03:49.531Z"),
|
|
1918
1918
|
guardrailConfig: z.union([
|
|
1919
1919
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
1920
1920
|
z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -34,16 +34,23 @@ export declare const CreatePromptFormat: {
|
|
|
34
34
|
*/
|
|
35
35
|
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
36
36
|
export declare const CreatePromptResponseFormatPromptsType: {
|
|
37
|
-
readonly
|
|
37
|
+
readonly Text: "text";
|
|
38
38
|
};
|
|
39
39
|
export type CreatePromptResponseFormatPromptsType = ClosedEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
40
40
|
export type ResponseFormat3 = {
|
|
41
41
|
type: CreatePromptResponseFormatPromptsType;
|
|
42
42
|
};
|
|
43
43
|
export declare const CreatePromptResponseFormatType: {
|
|
44
|
-
readonly
|
|
44
|
+
readonly JsonObject: "json_object";
|
|
45
45
|
};
|
|
46
46
|
export type CreatePromptResponseFormatType = ClosedEnum<typeof CreatePromptResponseFormatType>;
|
|
47
|
+
export type ResponseFormat2 = {
|
|
48
|
+
type: CreatePromptResponseFormatType;
|
|
49
|
+
};
|
|
50
|
+
export declare const ResponseFormatType: {
|
|
51
|
+
readonly JsonSchema: "json_schema";
|
|
52
|
+
};
|
|
53
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
47
54
|
export type JsonSchema = {
|
|
48
55
|
name: string;
|
|
49
56
|
strict?: boolean | undefined;
|
|
@@ -51,16 +58,9 @@ export type JsonSchema = {
|
|
|
51
58
|
[k: string]: any;
|
|
52
59
|
};
|
|
53
60
|
};
|
|
54
|
-
export type ResponseFormat2 = {
|
|
55
|
-
type: CreatePromptResponseFormatType;
|
|
56
|
-
jsonSchema: JsonSchema;
|
|
57
|
-
};
|
|
58
|
-
export declare const ResponseFormatType: {
|
|
59
|
-
readonly Text: "text";
|
|
60
|
-
};
|
|
61
|
-
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
62
61
|
export type ResponseFormat1 = {
|
|
63
62
|
type: ResponseFormatType;
|
|
63
|
+
jsonSchema: JsonSchema;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* An object specifying the format that the model must output.
|
|
@@ -73,7 +73,7 @@ export type ResponseFormat1 = {
|
|
|
73
73
|
*
|
|
74
74
|
* 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.
|
|
75
75
|
*/
|
|
76
|
-
export type ResponseFormat =
|
|
76
|
+
export type ResponseFormat = ResponseFormat1 | ResponseFormat2 | ResponseFormat3;
|
|
77
77
|
/**
|
|
78
78
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
79
79
|
*/
|
|
@@ -184,7 +184,7 @@ export type ModelParameters = {
|
|
|
184
184
|
*
|
|
185
185
|
* 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.
|
|
186
186
|
*/
|
|
187
|
-
responseFormat?:
|
|
187
|
+
responseFormat?: ResponseFormat1 | ResponseFormat2 | ResponseFormat3 | null | undefined;
|
|
188
188
|
/**
|
|
189
189
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
190
190
|
*/
|
|
@@ -462,16 +462,23 @@ export declare const CreatePromptPromptsFormat: {
|
|
|
462
462
|
*/
|
|
463
463
|
export type CreatePromptPromptsFormat = ClosedEnum<typeof CreatePromptPromptsFormat>;
|
|
464
464
|
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType: {
|
|
465
|
-
readonly
|
|
465
|
+
readonly Text: "text";
|
|
466
466
|
};
|
|
467
467
|
export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
468
468
|
export type CreatePromptResponseFormat3 = {
|
|
469
469
|
type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
470
470
|
};
|
|
471
471
|
export declare const CreatePromptResponseFormatPromptsResponse200Type: {
|
|
472
|
-
readonly
|
|
472
|
+
readonly JsonObject: "json_object";
|
|
473
473
|
};
|
|
474
474
|
export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponse200Type>;
|
|
475
|
+
export type CreatePromptResponseFormat2 = {
|
|
476
|
+
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
477
|
+
};
|
|
478
|
+
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
479
|
+
readonly JsonSchema: "json_schema";
|
|
480
|
+
};
|
|
481
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
475
482
|
export type CreatePromptResponseFormatJsonSchema = {
|
|
476
483
|
name: string;
|
|
477
484
|
strict?: boolean | undefined;
|
|
@@ -479,16 +486,9 @@ export type CreatePromptResponseFormatJsonSchema = {
|
|
|
479
486
|
[k: string]: any;
|
|
480
487
|
};
|
|
481
488
|
};
|
|
482
|
-
export type CreatePromptResponseFormat2 = {
|
|
483
|
-
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
484
|
-
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
485
|
-
};
|
|
486
|
-
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
487
|
-
readonly Text: "text";
|
|
488
|
-
};
|
|
489
|
-
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
490
489
|
export type CreatePromptResponseFormat1 = {
|
|
491
490
|
type: CreatePromptResponseFormatPromptsResponseType;
|
|
491
|
+
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
492
492
|
};
|
|
493
493
|
/**
|
|
494
494
|
* An object specifying the format that the model must output.
|
|
@@ -501,7 +501,7 @@ export type CreatePromptResponseFormat1 = {
|
|
|
501
501
|
*
|
|
502
502
|
* 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.
|
|
503
503
|
*/
|
|
504
|
-
export type CreatePromptResponseFormat =
|
|
504
|
+
export type CreatePromptResponseFormat = CreatePromptResponseFormat1 | CreatePromptResponseFormat2 | CreatePromptResponseFormat3;
|
|
505
505
|
/**
|
|
506
506
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
507
507
|
*/
|
|
@@ -612,7 +612,7 @@ export type CreatePromptModelParameters = {
|
|
|
612
612
|
*
|
|
613
613
|
* 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.
|
|
614
614
|
*/
|
|
615
|
-
responseFormat?:
|
|
615
|
+
responseFormat?: CreatePromptResponseFormat1 | CreatePromptResponseFormat2 | CreatePromptResponseFormat3 | null | undefined;
|
|
616
616
|
/**
|
|
617
617
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
618
618
|
*/
|
|
@@ -942,11 +942,11 @@ export declare const CreatePromptResponseFormatPromptsType$outboundSchema: z.Zod
|
|
|
942
942
|
export declare namespace CreatePromptResponseFormatPromptsType$ {
|
|
943
943
|
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
944
944
|
const inboundSchema: z.ZodNativeEnum<{
|
|
945
|
-
readonly
|
|
945
|
+
readonly Text: "text";
|
|
946
946
|
}>;
|
|
947
947
|
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
948
948
|
const outboundSchema: z.ZodNativeEnum<{
|
|
949
|
-
readonly
|
|
949
|
+
readonly Text: "text";
|
|
950
950
|
}>;
|
|
951
951
|
}
|
|
952
952
|
/** @internal */
|
|
@@ -982,45 +982,18 @@ export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeE
|
|
|
982
982
|
export declare namespace CreatePromptResponseFormatType$ {
|
|
983
983
|
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
984
984
|
const inboundSchema: z.ZodNativeEnum<{
|
|
985
|
-
readonly
|
|
985
|
+
readonly JsonObject: "json_object";
|
|
986
986
|
}>;
|
|
987
987
|
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
988
988
|
const outboundSchema: z.ZodNativeEnum<{
|
|
989
|
-
readonly
|
|
989
|
+
readonly JsonObject: "json_object";
|
|
990
990
|
}>;
|
|
991
991
|
}
|
|
992
992
|
/** @internal */
|
|
993
|
-
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
994
|
-
/** @internal */
|
|
995
|
-
export type JsonSchema$Outbound = {
|
|
996
|
-
name: string;
|
|
997
|
-
strict?: boolean | undefined;
|
|
998
|
-
schema: {
|
|
999
|
-
[k: string]: any;
|
|
1000
|
-
};
|
|
1001
|
-
};
|
|
1002
|
-
/** @internal */
|
|
1003
|
-
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1004
|
-
/**
|
|
1005
|
-
* @internal
|
|
1006
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1007
|
-
*/
|
|
1008
|
-
export declare namespace JsonSchema$ {
|
|
1009
|
-
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1010
|
-
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
1011
|
-
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1012
|
-
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1013
|
-
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1014
|
-
type Outbound = JsonSchema$Outbound;
|
|
1015
|
-
}
|
|
1016
|
-
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
1017
|
-
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
1018
|
-
/** @internal */
|
|
1019
993
|
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1020
994
|
/** @internal */
|
|
1021
995
|
export type ResponseFormat2$Outbound = {
|
|
1022
996
|
type: string;
|
|
1023
|
-
json_schema: JsonSchema$Outbound;
|
|
1024
997
|
};
|
|
1025
998
|
/** @internal */
|
|
1026
999
|
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
@@ -1049,18 +1022,45 @@ export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof R
|
|
|
1049
1022
|
export declare namespace ResponseFormatType$ {
|
|
1050
1023
|
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
1051
1024
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1052
|
-
readonly
|
|
1025
|
+
readonly JsonSchema: "json_schema";
|
|
1053
1026
|
}>;
|
|
1054
1027
|
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
1055
1028
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1056
|
-
readonly
|
|
1029
|
+
readonly JsonSchema: "json_schema";
|
|
1057
1030
|
}>;
|
|
1058
1031
|
}
|
|
1059
1032
|
/** @internal */
|
|
1033
|
+
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
1034
|
+
/** @internal */
|
|
1035
|
+
export type JsonSchema$Outbound = {
|
|
1036
|
+
name: string;
|
|
1037
|
+
strict?: boolean | undefined;
|
|
1038
|
+
schema: {
|
|
1039
|
+
[k: string]: any;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
/** @internal */
|
|
1043
|
+
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1044
|
+
/**
|
|
1045
|
+
* @internal
|
|
1046
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1047
|
+
*/
|
|
1048
|
+
export declare namespace JsonSchema$ {
|
|
1049
|
+
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1050
|
+
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
1051
|
+
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1052
|
+
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
1053
|
+
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1054
|
+
type Outbound = JsonSchema$Outbound;
|
|
1055
|
+
}
|
|
1056
|
+
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
1057
|
+
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
1058
|
+
/** @internal */
|
|
1060
1059
|
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1061
1060
|
/** @internal */
|
|
1062
1061
|
export type ResponseFormat1$Outbound = {
|
|
1063
1062
|
type: string;
|
|
1063
|
+
json_schema: JsonSchema$Outbound;
|
|
1064
1064
|
};
|
|
1065
1065
|
/** @internal */
|
|
1066
1066
|
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
@@ -1081,7 +1081,7 @@ export declare function responseFormat1FromJSON(jsonString: string): SafeParseRe
|
|
|
1081
1081
|
/** @internal */
|
|
1082
1082
|
export declare const ResponseFormat$inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
1083
1083
|
/** @internal */
|
|
1084
|
-
export type ResponseFormat$Outbound =
|
|
1084
|
+
export type ResponseFormat$Outbound = ResponseFormat1$Outbound | ResponseFormat2$Outbound | ResponseFormat3$Outbound;
|
|
1085
1085
|
/** @internal */
|
|
1086
1086
|
export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
1087
1087
|
/**
|
|
@@ -1200,7 +1200,7 @@ export type ModelParameters$Outbound = {
|
|
|
1200
1200
|
dimensions?: string | undefined;
|
|
1201
1201
|
quality?: string | undefined;
|
|
1202
1202
|
style?: string | undefined;
|
|
1203
|
-
responseFormat?:
|
|
1203
|
+
responseFormat?: ResponseFormat1$Outbound | ResponseFormat2$Outbound | ResponseFormat3$Outbound | null | undefined;
|
|
1204
1204
|
photoRealVersion?: string | undefined;
|
|
1205
1205
|
encoding_format?: string | undefined;
|
|
1206
1206
|
reasoningEffort?: string | undefined;
|
|
@@ -1863,11 +1863,11 @@ export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSON
|
|
|
1863
1863
|
export declare namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
|
|
1864
1864
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1865
1865
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1866
|
-
readonly
|
|
1866
|
+
readonly Text: "text";
|
|
1867
1867
|
}>;
|
|
1868
1868
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1869
1869
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1870
|
-
readonly
|
|
1870
|
+
readonly Text: "text";
|
|
1871
1871
|
}>;
|
|
1872
1872
|
}
|
|
1873
1873
|
/** @internal */
|
|
@@ -1903,45 +1903,18 @@ export declare const CreatePromptResponseFormatPromptsResponse200Type$outboundSc
|
|
|
1903
1903
|
export declare namespace CreatePromptResponseFormatPromptsResponse200Type$ {
|
|
1904
1904
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
1905
1905
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1906
|
-
readonly
|
|
1906
|
+
readonly JsonObject: "json_object";
|
|
1907
1907
|
}>;
|
|
1908
1908
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
1909
1909
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1910
|
-
readonly
|
|
1910
|
+
readonly JsonObject: "json_object";
|
|
1911
1911
|
}>;
|
|
1912
1912
|
}
|
|
1913
1913
|
/** @internal */
|
|
1914
|
-
export declare const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
1917
|
-
name: string;
|
|
1918
|
-
strict?: boolean | undefined;
|
|
1919
|
-
schema: {
|
|
1920
|
-
[k: string]: any;
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
/** @internal */
|
|
1924
|
-
export declare const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1925
|
-
/**
|
|
1926
|
-
* @internal
|
|
1927
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1928
|
-
*/
|
|
1929
|
-
export declare namespace CreatePromptResponseFormatJsonSchema$ {
|
|
1930
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1931
|
-
const inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1932
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1933
|
-
const outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1934
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1935
|
-
type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1936
|
-
}
|
|
1937
|
-
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1938
|
-
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1939
|
-
/** @internal */
|
|
1940
1914
|
export declare const CreatePromptResponseFormat2$inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1941
1915
|
/** @internal */
|
|
1942
1916
|
export type CreatePromptResponseFormat2$Outbound = {
|
|
1943
1917
|
type: string;
|
|
1944
|
-
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1945
1918
|
};
|
|
1946
1919
|
/** @internal */
|
|
1947
1920
|
export declare const CreatePromptResponseFormat2$outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
@@ -1970,18 +1943,45 @@ export declare const CreatePromptResponseFormatPromptsResponseType$outboundSchem
|
|
|
1970
1943
|
export declare namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
1971
1944
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
1972
1945
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1973
|
-
readonly
|
|
1946
|
+
readonly JsonSchema: "json_schema";
|
|
1974
1947
|
}>;
|
|
1975
1948
|
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
1976
1949
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1977
|
-
readonly
|
|
1950
|
+
readonly JsonSchema: "json_schema";
|
|
1978
1951
|
}>;
|
|
1979
1952
|
}
|
|
1980
1953
|
/** @internal */
|
|
1954
|
+
export declare const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1955
|
+
/** @internal */
|
|
1956
|
+
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
1957
|
+
name: string;
|
|
1958
|
+
strict?: boolean | undefined;
|
|
1959
|
+
schema: {
|
|
1960
|
+
[k: string]: any;
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
/** @internal */
|
|
1964
|
+
export declare const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1965
|
+
/**
|
|
1966
|
+
* @internal
|
|
1967
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1968
|
+
*/
|
|
1969
|
+
export declare namespace CreatePromptResponseFormatJsonSchema$ {
|
|
1970
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1971
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1972
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1973
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1974
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1975
|
+
type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1976
|
+
}
|
|
1977
|
+
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1978
|
+
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1979
|
+
/** @internal */
|
|
1981
1980
|
export declare const CreatePromptResponseFormat1$inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1982
1981
|
/** @internal */
|
|
1983
1982
|
export type CreatePromptResponseFormat1$Outbound = {
|
|
1984
1983
|
type: string;
|
|
1984
|
+
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1985
1985
|
};
|
|
1986
1986
|
/** @internal */
|
|
1987
1987
|
export declare const CreatePromptResponseFormat1$outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
@@ -2002,7 +2002,7 @@ export declare function createPromptResponseFormat1FromJSON(jsonString: string):
|
|
|
2002
2002
|
/** @internal */
|
|
2003
2003
|
export declare const CreatePromptResponseFormat$inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
2004
2004
|
/** @internal */
|
|
2005
|
-
export type CreatePromptResponseFormat$Outbound =
|
|
2005
|
+
export type CreatePromptResponseFormat$Outbound = CreatePromptResponseFormat1$Outbound | CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat3$Outbound;
|
|
2006
2006
|
/** @internal */
|
|
2007
2007
|
export declare const CreatePromptResponseFormat$outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
2008
2008
|
/**
|
|
@@ -2121,7 +2121,7 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2121
2121
|
dimensions?: string | undefined;
|
|
2122
2122
|
quality?: string | undefined;
|
|
2123
2123
|
style?: string | undefined;
|
|
2124
|
-
responseFormat?:
|
|
2124
|
+
responseFormat?: CreatePromptResponseFormat1$Outbound | CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat3$Outbound | null | undefined;
|
|
2125
2125
|
photoRealVersion?: string | undefined;
|
|
2126
2126
|
encoding_format?: string | undefined;
|
|
2127
2127
|
reasoningEffort?: string | undefined;
|