@orq-ai/node 3.2.4 → 3.2.6
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/README.md +39 -1
- package/bin/mcp-server.js +2424 -704
- package/bin/mcp-server.js.map +28 -24
- package/docs/sdks/deployments/README.md +81 -0
- package/docs/sdks/prompts/README.md +110 -110
- package/funcs/deploymentsStream.d.ts +17 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +130 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/jsr.json +2 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/event-streams.d.ts +17 -0
- package/lib/event-streams.d.ts.map +1 -0
- package/lib/event-streams.js +220 -0
- package/lib/event-streams.js.map +1 -0
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +4 -1
- package/lib/matchers.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsStream.d.ts +8 -0
- package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsStream.js +64 -0
- package/mcp-server/tools/deploymentsStream.js.map +1 -0
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createprompt.d.ts +317 -317
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +444 -442
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2938 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +2828 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updateprompt.d.ts +317 -317
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +444 -444
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +8 -0
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +10 -0
- package/sdk/deployments.js.map +1 -1
- package/sdk/prompts.d.ts +4 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +6 -6
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/deploymentsStream.ts +178 -0
- package/src/funcs/promptsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/event-streams.ts +264 -0
- package/src/lib/matchers.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +4 -2
- package/src/mcp-server/tools/deploymentsStream.ts +37 -0
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- 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/createprompt.ts +599 -680
- package/src/models/operations/deploymentstream.ts +5960 -0
- 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/index.ts +1 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updateprompt.ts +682 -599
- package/src/sdk/deployments.ts +19 -0
- package/src/sdk/prompts.ts +14 -14
package/bin/mcp-server.js
CHANGED
|
@@ -34234,9 +34234,9 @@ var init_config = __esm(() => {
|
|
|
34234
34234
|
SDK_METADATA = {
|
|
34235
34235
|
language: "typescript",
|
|
34236
34236
|
openapiDocVersion: "2.0",
|
|
34237
|
-
sdkVersion: "3.2.
|
|
34237
|
+
sdkVersion: "3.2.6",
|
|
34238
34238
|
genVersion: "2.558.2",
|
|
34239
|
-
userAgent: "speakeasy-sdk/typescript 3.2.
|
|
34239
|
+
userAgent: "speakeasy-sdk/typescript 3.2.6 2.558.2 2.0 @orq-ai/node"
|
|
34240
34240
|
};
|
|
34241
34241
|
});
|
|
34242
34242
|
|
|
@@ -35254,6 +35254,208 @@ ${body}` : "";
|
|
|
35254
35254
|
};
|
|
35255
35255
|
});
|
|
35256
35256
|
|
|
35257
|
+
// src/lib/event-streams.ts
|
|
35258
|
+
function findBoundary(buffer, start) {
|
|
35259
|
+
const char1 = buffer[start];
|
|
35260
|
+
const char2 = buffer[start + 1];
|
|
35261
|
+
if (char1 == null || char2 == null || !NEWLINE_CHARS.has(char1) || !NEWLINE_CHARS.has(char2)) {
|
|
35262
|
+
return null;
|
|
35263
|
+
}
|
|
35264
|
+
for (const s of MESSAGE_BOUNDARIES) {
|
|
35265
|
+
const seq = peekSequence(start, buffer, s);
|
|
35266
|
+
if (seq != null) {
|
|
35267
|
+
return seq;
|
|
35268
|
+
}
|
|
35269
|
+
}
|
|
35270
|
+
return null;
|
|
35271
|
+
}
|
|
35272
|
+
function peekSequence(position, buffer, sequence) {
|
|
35273
|
+
if (sequence.length > buffer.length - position) {
|
|
35274
|
+
return null;
|
|
35275
|
+
}
|
|
35276
|
+
for (let i = 0;i < sequence.length; i++) {
|
|
35277
|
+
if (buffer[position + i] !== sequence[i]) {
|
|
35278
|
+
return null;
|
|
35279
|
+
}
|
|
35280
|
+
}
|
|
35281
|
+
return sequence;
|
|
35282
|
+
}
|
|
35283
|
+
function parseEvent(chunk, decoder) {
|
|
35284
|
+
if (!chunk.length) {
|
|
35285
|
+
return null;
|
|
35286
|
+
}
|
|
35287
|
+
const td = new TextDecoder;
|
|
35288
|
+
const raw = td.decode(chunk);
|
|
35289
|
+
const lines = raw.split(/\r?\n|\r/g);
|
|
35290
|
+
let publish = false;
|
|
35291
|
+
const rawEvent = {};
|
|
35292
|
+
for (const line of lines) {
|
|
35293
|
+
if (!line) {
|
|
35294
|
+
continue;
|
|
35295
|
+
}
|
|
35296
|
+
const delim = line.indexOf(":");
|
|
35297
|
+
if (delim === 0) {
|
|
35298
|
+
continue;
|
|
35299
|
+
}
|
|
35300
|
+
const field = delim > 0 ? line.substring(0, delim) : "";
|
|
35301
|
+
let value = delim > 0 ? line.substring(delim + 1) : "";
|
|
35302
|
+
if (value.charAt(0) === " ") {
|
|
35303
|
+
value = value.substring(1);
|
|
35304
|
+
}
|
|
35305
|
+
switch (field) {
|
|
35306
|
+
case "event": {
|
|
35307
|
+
publish = true;
|
|
35308
|
+
rawEvent.event = value;
|
|
35309
|
+
break;
|
|
35310
|
+
}
|
|
35311
|
+
case "data": {
|
|
35312
|
+
publish = true;
|
|
35313
|
+
rawEvent.data ??= "";
|
|
35314
|
+
rawEvent.data += value + `
|
|
35315
|
+
`;
|
|
35316
|
+
break;
|
|
35317
|
+
}
|
|
35318
|
+
case "id": {
|
|
35319
|
+
publish = true;
|
|
35320
|
+
rawEvent.id = value;
|
|
35321
|
+
break;
|
|
35322
|
+
}
|
|
35323
|
+
case "retry": {
|
|
35324
|
+
const r = parseInt(value, 10);
|
|
35325
|
+
if (!Number.isNaN(r)) {
|
|
35326
|
+
publish = true;
|
|
35327
|
+
rawEvent.retry = r;
|
|
35328
|
+
}
|
|
35329
|
+
break;
|
|
35330
|
+
}
|
|
35331
|
+
}
|
|
35332
|
+
}
|
|
35333
|
+
if (!publish) {
|
|
35334
|
+
return null;
|
|
35335
|
+
}
|
|
35336
|
+
if (rawEvent.data != null) {
|
|
35337
|
+
rawEvent.data = rawEvent.data.slice(0, -1);
|
|
35338
|
+
}
|
|
35339
|
+
return decoder(rawEvent);
|
|
35340
|
+
}
|
|
35341
|
+
function discardSentinel(stream, sentinel) {
|
|
35342
|
+
return new ReadableStream({
|
|
35343
|
+
async start(controller) {
|
|
35344
|
+
let buffer = new Uint8Array([]);
|
|
35345
|
+
let position = 0;
|
|
35346
|
+
let done = false;
|
|
35347
|
+
let discard = false;
|
|
35348
|
+
const rdr = stream.getReader();
|
|
35349
|
+
try {
|
|
35350
|
+
while (!done) {
|
|
35351
|
+
const result = await rdr.read();
|
|
35352
|
+
const value = result.value;
|
|
35353
|
+
done = done || result.done;
|
|
35354
|
+
if (discard) {
|
|
35355
|
+
continue;
|
|
35356
|
+
}
|
|
35357
|
+
if (typeof value === "undefined") {
|
|
35358
|
+
continue;
|
|
35359
|
+
}
|
|
35360
|
+
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35361
|
+
newBuffer.set(buffer);
|
|
35362
|
+
newBuffer.set(value, buffer.length);
|
|
35363
|
+
buffer = newBuffer;
|
|
35364
|
+
for (let i = position;i < buffer.length; i++) {
|
|
35365
|
+
const boundary = findBoundary(buffer, i);
|
|
35366
|
+
if (boundary == null) {
|
|
35367
|
+
continue;
|
|
35368
|
+
}
|
|
35369
|
+
const start = position;
|
|
35370
|
+
const chunk = buffer.slice(start, i);
|
|
35371
|
+
position = i + boundary.length;
|
|
35372
|
+
const event = parseEvent(chunk, id);
|
|
35373
|
+
if (event?.data === sentinel) {
|
|
35374
|
+
controller.enqueue(buffer.slice(0, start));
|
|
35375
|
+
discard = true;
|
|
35376
|
+
} else {
|
|
35377
|
+
controller.enqueue(buffer.slice(0, position));
|
|
35378
|
+
buffer = buffer.slice(position);
|
|
35379
|
+
position = 0;
|
|
35380
|
+
}
|
|
35381
|
+
}
|
|
35382
|
+
}
|
|
35383
|
+
} catch (e) {
|
|
35384
|
+
controller.error(e);
|
|
35385
|
+
} finally {
|
|
35386
|
+
controller.close();
|
|
35387
|
+
rdr.releaseLock();
|
|
35388
|
+
}
|
|
35389
|
+
}
|
|
35390
|
+
});
|
|
35391
|
+
}
|
|
35392
|
+
function id(v2) {
|
|
35393
|
+
return v2;
|
|
35394
|
+
}
|
|
35395
|
+
var LF = 10, CR = 13, NEWLINE_CHARS, MESSAGE_BOUNDARIES, EventStream;
|
|
35396
|
+
var init_event_streams = __esm(() => {
|
|
35397
|
+
NEWLINE_CHARS = new Set([LF, CR]);
|
|
35398
|
+
MESSAGE_BOUNDARIES = [
|
|
35399
|
+
new Uint8Array([CR, LF, CR, LF]),
|
|
35400
|
+
new Uint8Array([CR, CR]),
|
|
35401
|
+
new Uint8Array([LF, LF])
|
|
35402
|
+
];
|
|
35403
|
+
EventStream = class EventStream {
|
|
35404
|
+
stream;
|
|
35405
|
+
decoder;
|
|
35406
|
+
constructor(init) {
|
|
35407
|
+
this.stream = init.stream;
|
|
35408
|
+
this.decoder = init.decoder;
|
|
35409
|
+
}
|
|
35410
|
+
async* [Symbol.asyncIterator]() {
|
|
35411
|
+
const reader = this.stream.getReader();
|
|
35412
|
+
let buffer = new Uint8Array([]);
|
|
35413
|
+
let position = 0;
|
|
35414
|
+
try {
|
|
35415
|
+
while (true) {
|
|
35416
|
+
const { done, value } = await reader.read();
|
|
35417
|
+
if (done) {
|
|
35418
|
+
break;
|
|
35419
|
+
}
|
|
35420
|
+
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35421
|
+
newBuffer.set(buffer);
|
|
35422
|
+
newBuffer.set(value, buffer.length);
|
|
35423
|
+
buffer = newBuffer;
|
|
35424
|
+
for (let i = position;i < buffer.length; i++) {
|
|
35425
|
+
const boundary = findBoundary(buffer, i);
|
|
35426
|
+
if (boundary == null) {
|
|
35427
|
+
continue;
|
|
35428
|
+
}
|
|
35429
|
+
const chunk = buffer.slice(position, i);
|
|
35430
|
+
position = i + boundary.length;
|
|
35431
|
+
const event = parseEvent(chunk, this.decoder);
|
|
35432
|
+
if (event != null) {
|
|
35433
|
+
yield event;
|
|
35434
|
+
}
|
|
35435
|
+
}
|
|
35436
|
+
if (position > 0) {
|
|
35437
|
+
buffer = buffer.slice(position);
|
|
35438
|
+
position = 0;
|
|
35439
|
+
}
|
|
35440
|
+
}
|
|
35441
|
+
if (buffer.length > 0) {
|
|
35442
|
+
const event = parseEvent(buffer, this.decoder);
|
|
35443
|
+
if (event != null) {
|
|
35444
|
+
yield event;
|
|
35445
|
+
}
|
|
35446
|
+
}
|
|
35447
|
+
} catch (e) {
|
|
35448
|
+
if (e instanceof Error && e.name === "AbortError") {
|
|
35449
|
+
return;
|
|
35450
|
+
}
|
|
35451
|
+
throw e;
|
|
35452
|
+
} finally {
|
|
35453
|
+
reader.releaseLock();
|
|
35454
|
+
}
|
|
35455
|
+
}
|
|
35456
|
+
};
|
|
35457
|
+
});
|
|
35458
|
+
|
|
35257
35459
|
// src/models/errors/sdkvalidationerror.ts
|
|
35258
35460
|
function formatZodError(err, level = 0) {
|
|
35259
35461
|
let pre = " ".repeat(level);
|
|
@@ -35349,6 +35551,9 @@ function jsonErr(codes, schema, options) {
|
|
|
35349
35551
|
function json(codes, schema, options) {
|
|
35350
35552
|
return { ...options, enc: "json", codes, schema };
|
|
35351
35553
|
}
|
|
35554
|
+
function sse(codes, schema, options) {
|
|
35555
|
+
return { ...options, enc: "sse", codes, schema };
|
|
35556
|
+
}
|
|
35352
35557
|
function nil(codes, schema, options) {
|
|
35353
35558
|
return { ...options, enc: "nil", codes, schema };
|
|
35354
35559
|
}
|
|
@@ -35392,7 +35597,7 @@ function match(...matchers) {
|
|
|
35392
35597
|
raw = await response.text();
|
|
35393
35598
|
break;
|
|
35394
35599
|
case "sse":
|
|
35395
|
-
raw = response.body;
|
|
35600
|
+
raw = response.body && matcher.sseSentinel ? discardSentinel(response.body, matcher.sseSentinel) : response.body;
|
|
35396
35601
|
break;
|
|
35397
35602
|
case "nil":
|
|
35398
35603
|
raw = await discardResponseBody(response);
|
|
@@ -35468,6 +35673,7 @@ async function discardResponseBody(res) {
|
|
|
35468
35673
|
var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
35469
35674
|
var init_matchers = __esm(() => {
|
|
35470
35675
|
init_apierror();
|
|
35676
|
+
init_event_streams();
|
|
35471
35677
|
init_http();
|
|
35472
35678
|
init_schemas();
|
|
35473
35679
|
DEFAULT_CONTENT_TYPES = {
|
|
@@ -36065,7 +36271,7 @@ var init_bulkcreatedatapoints = __esm(() => {
|
|
|
36065
36271
|
created_by_id: stringType().optional(),
|
|
36066
36272
|
updated_by_id: stringType().optional(),
|
|
36067
36273
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36068
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
36274
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
36069
36275
|
}).transform((v2) => {
|
|
36070
36276
|
return remap(v2, {
|
|
36071
36277
|
_id: "id",
|
|
@@ -36086,7 +36292,7 @@ var init_bulkcreatedatapoints = __esm(() => {
|
|
|
36086
36292
|
createdById: stringType().optional(),
|
|
36087
36293
|
updatedById: stringType().optional(),
|
|
36088
36294
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36089
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
36295
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
36090
36296
|
}).transform((v2) => {
|
|
36091
36297
|
return remap(v2, {
|
|
36092
36298
|
id: "_id",
|
|
@@ -36174,7 +36380,7 @@ var init_createcontact = __esm(() => {
|
|
|
36174
36380
|
tags: arrayType(stringType()).optional(),
|
|
36175
36381
|
metadata: recordType(anyType()).optional(),
|
|
36176
36382
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36177
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
36383
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
36178
36384
|
}).transform((v2) => {
|
|
36179
36385
|
return remap(v2, {
|
|
36180
36386
|
external_id: "externalId",
|
|
@@ -36191,7 +36397,7 @@ var init_createcontact = __esm(() => {
|
|
|
36191
36397
|
tags: arrayType(stringType()).optional(),
|
|
36192
36398
|
metadata: recordType(anyType()).optional(),
|
|
36193
36399
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36194
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
36400
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
36195
36401
|
}).transform((v2) => {
|
|
36196
36402
|
return remap(v2, {
|
|
36197
36403
|
externalId: "external_id",
|
|
@@ -36261,7 +36467,7 @@ var init_createdataset = __esm(() => {
|
|
|
36261
36467
|
updated_by_id: stringType().optional(),
|
|
36262
36468
|
metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
|
|
36263
36469
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36264
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
36470
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
36265
36471
|
}).transform((v2) => {
|
|
36266
36472
|
return remap(v2, {
|
|
36267
36473
|
_id: "id",
|
|
@@ -36281,7 +36487,7 @@ var init_createdataset = __esm(() => {
|
|
|
36281
36487
|
updatedById: stringType().optional(),
|
|
36282
36488
|
metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
|
|
36283
36489
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36284
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
36490
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
36285
36491
|
}).transform((v2) => {
|
|
36286
36492
|
return remap(v2, {
|
|
36287
36493
|
id: "_id",
|
|
@@ -36717,7 +36923,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
36717
36923
|
created_by_id: stringType().optional(),
|
|
36718
36924
|
updated_by_id: stringType().optional(),
|
|
36719
36925
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36720
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
36926
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
36721
36927
|
}).transform((v2) => {
|
|
36722
36928
|
return remap(v2, {
|
|
36723
36929
|
_id: "id",
|
|
@@ -36738,7 +36944,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
36738
36944
|
createdById: stringType().optional(),
|
|
36739
36945
|
updatedById: stringType().optional(),
|
|
36740
36946
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36741
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
36947
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
36742
36948
|
}).transform((v2) => {
|
|
36743
36949
|
return remap(v2, {
|
|
36744
36950
|
id: "_id",
|
|
@@ -36823,11 +37029,11 @@ var init_createfeedback = __esm(() => {
|
|
|
36823
37029
|
});
|
|
36824
37030
|
|
|
36825
37031
|
// src/models/operations/createprompt.ts
|
|
36826
|
-
var
|
|
37032
|
+
var ModelType, CreatePromptFormat, Quality, CreatePromptResponseFormatType, ResponseFormatType, PhotoRealVersion, EncodingFormat, ReasoningEffort, Provider, CreatePromptRole, CreatePrompt2PromptsType, CreatePrompt2Type, CreatePromptType, UseCases, Language, CreatePromptPromptsType, CreatePromptModelType, CreatePromptPromptsFormat, CreatePromptQuality, CreatePromptResponseFormatPromptsResponseType, CreatePromptResponseFormatPromptsType, CreatePromptPhotoRealVersion, CreatePromptEncodingFormat, CreatePromptReasoningEffort, CreatePromptProvider, CreatePromptPromptsRole, CreatePrompt2PromptsResponse200Type, CreatePrompt2PromptsResponseType, CreatePromptPromptsResponseType, CreatePromptUseCases, CreatePromptLanguage, ModelType$inboundSchema, ModelType$outboundSchema, ModelType$, CreatePromptFormat$inboundSchema, CreatePromptFormat$outboundSchema, CreatePromptFormat$, Quality$inboundSchema, Quality$outboundSchema, Quality$, CreatePromptResponseFormatType$inboundSchema, CreatePromptResponseFormatType$outboundSchema, CreatePromptResponseFormatType$, ResponseFormat2$inboundSchema, ResponseFormat2$outboundSchema, ResponseFormat2$, ResponseFormatType$inboundSchema, ResponseFormatType$outboundSchema, ResponseFormatType$, JsonSchema$inboundSchema, JsonSchema$outboundSchema, JsonSchema$, ResponseFormat1$inboundSchema, ResponseFormat1$outboundSchema, ResponseFormat1$, ResponseFormat$inboundSchema, ResponseFormat$outboundSchema, ResponseFormat$, PhotoRealVersion$inboundSchema, PhotoRealVersion$outboundSchema, PhotoRealVersion$, EncodingFormat$inboundSchema, EncodingFormat$outboundSchema, EncodingFormat$, ReasoningEffort$inboundSchema, ReasoningEffort$outboundSchema, ReasoningEffort$, ModelParameters$inboundSchema, ModelParameters$outboundSchema, ModelParameters$, Provider$inboundSchema, Provider$outboundSchema, Provider$, CreatePromptRole$inboundSchema, CreatePromptRole$outboundSchema, CreatePromptRole$, CreatePrompt2PromptsType$inboundSchema, CreatePrompt2PromptsType$outboundSchema, CreatePrompt2PromptsType$, CreatePrompt2ImageUrl$inboundSchema, CreatePrompt2ImageUrl$outboundSchema, CreatePrompt2ImageUrl$, CreatePrompt22$inboundSchema, CreatePrompt22$outboundSchema, CreatePrompt22$, CreatePrompt2Type$inboundSchema, CreatePrompt2Type$outboundSchema, CreatePrompt2Type$, CreatePrompt21$inboundSchema, CreatePrompt21$outboundSchema, CreatePrompt21$, CreatePromptContent2$inboundSchema, CreatePromptContent2$outboundSchema, CreatePromptContent2$, CreatePromptContent$inboundSchema, CreatePromptContent$outboundSchema, CreatePromptContent$, CreatePromptType$inboundSchema, CreatePromptType$outboundSchema, CreatePromptType$, CreatePromptFunction$inboundSchema, CreatePromptFunction$outboundSchema, CreatePromptFunction$, CreatePromptToolCalls$inboundSchema, CreatePromptToolCalls$outboundSchema, CreatePromptToolCalls$, CreatePromptMessages$inboundSchema, CreatePromptMessages$outboundSchema, CreatePromptMessages$, PromptConfig$inboundSchema, PromptConfig$outboundSchema, PromptConfig$, UseCases$inboundSchema, UseCases$outboundSchema, UseCases$, Language$inboundSchema, Language$outboundSchema, Language$, CreatePromptMetadata$inboundSchema, CreatePromptMetadata$outboundSchema, CreatePromptMetadata$, CreatePromptRequestBody$inboundSchema, CreatePromptRequestBody$outboundSchema, CreatePromptRequestBody$, CreatePromptPromptsType$inboundSchema, CreatePromptPromptsType$outboundSchema, CreatePromptPromptsType$, CreatePromptModelType$inboundSchema, CreatePromptModelType$outboundSchema, CreatePromptModelType$, CreatePromptPromptsFormat$inboundSchema, CreatePromptPromptsFormat$outboundSchema, CreatePromptPromptsFormat$, CreatePromptQuality$inboundSchema, CreatePromptQuality$outboundSchema, CreatePromptQuality$, CreatePromptResponseFormatPromptsResponseType$inboundSchema, CreatePromptResponseFormatPromptsResponseType$outboundSchema, CreatePromptResponseFormatPromptsResponseType$, CreatePromptResponseFormat2$inboundSchema, CreatePromptResponseFormat2$outboundSchema, CreatePromptResponseFormat2$, CreatePromptResponseFormatPromptsType$inboundSchema, CreatePromptResponseFormatPromptsType$outboundSchema, CreatePromptResponseFormatPromptsType$, CreatePromptResponseFormatJsonSchema$inboundSchema, CreatePromptResponseFormatJsonSchema$outboundSchema, CreatePromptResponseFormatJsonSchema$, CreatePromptResponseFormat1$inboundSchema, CreatePromptResponseFormat1$outboundSchema, CreatePromptResponseFormat1$, CreatePromptResponseFormat$inboundSchema, CreatePromptResponseFormat$outboundSchema, CreatePromptResponseFormat$, CreatePromptPhotoRealVersion$inboundSchema, CreatePromptPhotoRealVersion$outboundSchema, CreatePromptPhotoRealVersion$, CreatePromptEncodingFormat$inboundSchema, CreatePromptEncodingFormat$outboundSchema, CreatePromptEncodingFormat$, CreatePromptReasoningEffort$inboundSchema, CreatePromptReasoningEffort$outboundSchema, CreatePromptReasoningEffort$, CreatePromptModelParameters$inboundSchema, CreatePromptModelParameters$outboundSchema, CreatePromptModelParameters$, CreatePromptProvider$inboundSchema, CreatePromptProvider$outboundSchema, CreatePromptProvider$, CreatePromptPromptsRole$inboundSchema, CreatePromptPromptsRole$outboundSchema, CreatePromptPromptsRole$, CreatePrompt2PromptsResponse200Type$inboundSchema, CreatePrompt2PromptsResponse200Type$outboundSchema, CreatePrompt2PromptsResponse200Type$, CreatePrompt2PromptsImageUrl$inboundSchema, CreatePrompt2PromptsImageUrl$outboundSchema, CreatePrompt2PromptsImageUrl$, CreatePrompt2Prompts2$inboundSchema, CreatePrompt2Prompts2$outboundSchema, CreatePrompt2Prompts2$, CreatePrompt2PromptsResponseType$inboundSchema, CreatePrompt2PromptsResponseType$outboundSchema, CreatePrompt2PromptsResponseType$, CreatePrompt2Prompts1$inboundSchema, CreatePrompt2Prompts1$outboundSchema, CreatePrompt2Prompts1$, CreatePromptContentPrompts2$inboundSchema, CreatePromptContentPrompts2$outboundSchema, CreatePromptContentPrompts2$, CreatePromptPromptsContent$inboundSchema, CreatePromptPromptsContent$outboundSchema, CreatePromptPromptsContent$, CreatePromptPromptsResponseType$inboundSchema, CreatePromptPromptsResponseType$outboundSchema, CreatePromptPromptsResponseType$, CreatePromptPromptsFunction$inboundSchema, CreatePromptPromptsFunction$outboundSchema, CreatePromptPromptsFunction$, CreatePromptPromptsToolCalls$inboundSchema, CreatePromptPromptsToolCalls$outboundSchema, CreatePromptPromptsToolCalls$, CreatePromptPromptsMessages$inboundSchema, CreatePromptPromptsMessages$outboundSchema, CreatePromptPromptsMessages$, CreatePromptPromptConfig$inboundSchema, CreatePromptPromptConfig$outboundSchema, CreatePromptPromptConfig$, CreatePromptUseCases$inboundSchema, CreatePromptUseCases$outboundSchema, CreatePromptUseCases$, CreatePromptLanguage$inboundSchema, CreatePromptLanguage$outboundSchema, CreatePromptLanguage$, CreatePromptPromptsMetadata$inboundSchema, CreatePromptPromptsMetadata$outboundSchema, CreatePromptPromptsMetadata$, CreatePromptResponseBody$inboundSchema, CreatePromptResponseBody$outboundSchema, CreatePromptResponseBody$;
|
|
36827
37033
|
var init_createprompt = __esm(() => {
|
|
36828
37034
|
init_lib();
|
|
36829
37035
|
init_primitives();
|
|
36830
|
-
|
|
37036
|
+
ModelType = {
|
|
36831
37037
|
Chat: "chat",
|
|
36832
37038
|
Completion: "completion",
|
|
36833
37039
|
Embedding: "embedding",
|
|
@@ -36844,30 +37050,30 @@ var init_createprompt = __esm(() => {
|
|
|
36844
37050
|
Text: "text",
|
|
36845
37051
|
JsonObject: "json_object"
|
|
36846
37052
|
};
|
|
36847
|
-
|
|
37053
|
+
Quality = {
|
|
36848
37054
|
Standard: "standard",
|
|
36849
37055
|
Hd: "hd"
|
|
36850
37056
|
};
|
|
36851
|
-
|
|
37057
|
+
CreatePromptResponseFormatType = {
|
|
36852
37058
|
JsonObject: "json_object"
|
|
36853
37059
|
};
|
|
36854
|
-
|
|
37060
|
+
ResponseFormatType = {
|
|
36855
37061
|
JsonSchema: "json_schema"
|
|
36856
37062
|
};
|
|
36857
|
-
|
|
37063
|
+
PhotoRealVersion = {
|
|
36858
37064
|
V1: "v1",
|
|
36859
37065
|
V2: "v2"
|
|
36860
37066
|
};
|
|
36861
|
-
|
|
37067
|
+
EncodingFormat = {
|
|
36862
37068
|
Float: "float",
|
|
36863
37069
|
Base64: "base64"
|
|
36864
37070
|
};
|
|
36865
|
-
|
|
37071
|
+
ReasoningEffort = {
|
|
36866
37072
|
Low: "low",
|
|
36867
37073
|
Medium: "medium",
|
|
36868
37074
|
High: "high"
|
|
36869
37075
|
};
|
|
36870
|
-
|
|
37076
|
+
Provider = {
|
|
36871
37077
|
Cohere: "cohere",
|
|
36872
37078
|
Openai: "openai",
|
|
36873
37079
|
Anthropic: "anthropic",
|
|
@@ -36906,7 +37112,7 @@ var init_createprompt = __esm(() => {
|
|
|
36906
37112
|
CreatePromptType = {
|
|
36907
37113
|
Function: "function"
|
|
36908
37114
|
};
|
|
36909
|
-
|
|
37115
|
+
UseCases = {
|
|
36910
37116
|
Agents: "Agents",
|
|
36911
37117
|
AgentsSimulations: "Agents simulations",
|
|
36912
37118
|
APIInteraction: "API interaction",
|
|
@@ -36924,7 +37130,7 @@ var init_createprompt = __esm(() => {
|
|
|
36924
37130
|
Summarization: "Summarization",
|
|
36925
37131
|
Tagging: "Tagging"
|
|
36926
37132
|
};
|
|
36927
|
-
|
|
37133
|
+
Language = {
|
|
36928
37134
|
Chinese: "Chinese",
|
|
36929
37135
|
Dutch: "Dutch",
|
|
36930
37136
|
English: "English",
|
|
@@ -36936,7 +37142,7 @@ var init_createprompt = __esm(() => {
|
|
|
36936
37142
|
CreatePromptPromptsType = {
|
|
36937
37143
|
Prompt: "prompt"
|
|
36938
37144
|
};
|
|
36939
|
-
|
|
37145
|
+
CreatePromptModelType = {
|
|
36940
37146
|
Chat: "chat",
|
|
36941
37147
|
Completion: "completion",
|
|
36942
37148
|
Embedding: "embedding",
|
|
@@ -36953,30 +37159,30 @@ var init_createprompt = __esm(() => {
|
|
|
36953
37159
|
Text: "text",
|
|
36954
37160
|
JsonObject: "json_object"
|
|
36955
37161
|
};
|
|
36956
|
-
|
|
37162
|
+
CreatePromptQuality = {
|
|
36957
37163
|
Standard: "standard",
|
|
36958
37164
|
Hd: "hd"
|
|
36959
37165
|
};
|
|
36960
|
-
|
|
37166
|
+
CreatePromptResponseFormatPromptsResponseType = {
|
|
36961
37167
|
JsonObject: "json_object"
|
|
36962
37168
|
};
|
|
36963
|
-
|
|
37169
|
+
CreatePromptResponseFormatPromptsType = {
|
|
36964
37170
|
JsonSchema: "json_schema"
|
|
36965
37171
|
};
|
|
36966
|
-
|
|
37172
|
+
CreatePromptPhotoRealVersion = {
|
|
36967
37173
|
V1: "v1",
|
|
36968
37174
|
V2: "v2"
|
|
36969
37175
|
};
|
|
36970
|
-
|
|
37176
|
+
CreatePromptEncodingFormat = {
|
|
36971
37177
|
Float: "float",
|
|
36972
37178
|
Base64: "base64"
|
|
36973
37179
|
};
|
|
36974
|
-
|
|
37180
|
+
CreatePromptReasoningEffort = {
|
|
36975
37181
|
Low: "low",
|
|
36976
37182
|
Medium: "medium",
|
|
36977
37183
|
High: "high"
|
|
36978
37184
|
};
|
|
36979
|
-
|
|
37185
|
+
CreatePromptProvider = {
|
|
36980
37186
|
Cohere: "cohere",
|
|
36981
37187
|
Openai: "openai",
|
|
36982
37188
|
Anthropic: "anthropic",
|
|
@@ -37015,7 +37221,7 @@ var init_createprompt = __esm(() => {
|
|
|
37015
37221
|
CreatePromptPromptsResponseType = {
|
|
37016
37222
|
Function: "function"
|
|
37017
37223
|
};
|
|
37018
|
-
|
|
37224
|
+
CreatePromptUseCases = {
|
|
37019
37225
|
Agents: "Agents",
|
|
37020
37226
|
AgentsSimulations: "Agents simulations",
|
|
37021
37227
|
APIInteraction: "API interaction",
|
|
@@ -37033,7 +37239,7 @@ var init_createprompt = __esm(() => {
|
|
|
37033
37239
|
Summarization: "Summarization",
|
|
37034
37240
|
Tagging: "Tagging"
|
|
37035
37241
|
};
|
|
37036
|
-
|
|
37242
|
+
CreatePromptLanguage = {
|
|
37037
37243
|
Chinese: "Chinese",
|
|
37038
37244
|
Dutch: "Dutch",
|
|
37039
37245
|
English: "English",
|
|
@@ -37042,111 +37248,111 @@ var init_createprompt = __esm(() => {
|
|
|
37042
37248
|
Russian: "Russian",
|
|
37043
37249
|
Spanish: "Spanish"
|
|
37044
37250
|
};
|
|
37045
|
-
|
|
37046
|
-
|
|
37047
|
-
((
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
})(
|
|
37251
|
+
ModelType$inboundSchema = nativeEnumType(ModelType);
|
|
37252
|
+
ModelType$outboundSchema = ModelType$inboundSchema;
|
|
37253
|
+
((ModelType$) => {
|
|
37254
|
+
ModelType$.inboundSchema = ModelType$inboundSchema;
|
|
37255
|
+
ModelType$.outboundSchema = ModelType$outboundSchema;
|
|
37256
|
+
})(ModelType$ ||= {});
|
|
37051
37257
|
CreatePromptFormat$inboundSchema = nativeEnumType(CreatePromptFormat);
|
|
37052
37258
|
CreatePromptFormat$outboundSchema = CreatePromptFormat$inboundSchema;
|
|
37053
37259
|
((CreatePromptFormat$) => {
|
|
37054
37260
|
CreatePromptFormat$.inboundSchema = CreatePromptFormat$inboundSchema;
|
|
37055
37261
|
CreatePromptFormat$.outboundSchema = CreatePromptFormat$outboundSchema;
|
|
37056
37262
|
})(CreatePromptFormat$ ||= {});
|
|
37057
|
-
|
|
37058
|
-
|
|
37059
|
-
((
|
|
37060
|
-
|
|
37061
|
-
|
|
37062
|
-
})(
|
|
37063
|
-
CreatePromptResponseFormatPromptsType$inboundSchema = nativeEnumType(CreatePromptResponseFormatPromptsType);
|
|
37064
|
-
CreatePromptResponseFormatPromptsType$outboundSchema = CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
37065
|
-
((CreatePromptResponseFormatPromptsType$) => {
|
|
37066
|
-
CreatePromptResponseFormatPromptsType$.inboundSchema = CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
37067
|
-
CreatePromptResponseFormatPromptsType$.outboundSchema = CreatePromptResponseFormatPromptsType$outboundSchema;
|
|
37068
|
-
})(CreatePromptResponseFormatPromptsType$ ||= {});
|
|
37069
|
-
CreatePromptResponseFormat2$inboundSchema = objectType({
|
|
37070
|
-
type: CreatePromptResponseFormatPromptsType$inboundSchema
|
|
37071
|
-
});
|
|
37072
|
-
CreatePromptResponseFormat2$outboundSchema = objectType({
|
|
37073
|
-
type: CreatePromptResponseFormatPromptsType$outboundSchema
|
|
37074
|
-
});
|
|
37075
|
-
((CreatePromptResponseFormat2$) => {
|
|
37076
|
-
CreatePromptResponseFormat2$.inboundSchema = CreatePromptResponseFormat2$inboundSchema;
|
|
37077
|
-
CreatePromptResponseFormat2$.outboundSchema = CreatePromptResponseFormat2$outboundSchema;
|
|
37078
|
-
})(CreatePromptResponseFormat2$ ||= {});
|
|
37263
|
+
Quality$inboundSchema = nativeEnumType(Quality);
|
|
37264
|
+
Quality$outboundSchema = Quality$inboundSchema;
|
|
37265
|
+
((Quality$) => {
|
|
37266
|
+
Quality$.inboundSchema = Quality$inboundSchema;
|
|
37267
|
+
Quality$.outboundSchema = Quality$outboundSchema;
|
|
37268
|
+
})(Quality$ ||= {});
|
|
37079
37269
|
CreatePromptResponseFormatType$inboundSchema = nativeEnumType(CreatePromptResponseFormatType);
|
|
37080
37270
|
CreatePromptResponseFormatType$outboundSchema = CreatePromptResponseFormatType$inboundSchema;
|
|
37081
37271
|
((CreatePromptResponseFormatType$) => {
|
|
37082
37272
|
CreatePromptResponseFormatType$.inboundSchema = CreatePromptResponseFormatType$inboundSchema;
|
|
37083
37273
|
CreatePromptResponseFormatType$.outboundSchema = CreatePromptResponseFormatType$outboundSchema;
|
|
37084
37274
|
})(CreatePromptResponseFormatType$ ||= {});
|
|
37085
|
-
|
|
37275
|
+
ResponseFormat2$inboundSchema = objectType({
|
|
37276
|
+
type: CreatePromptResponseFormatType$inboundSchema
|
|
37277
|
+
});
|
|
37278
|
+
ResponseFormat2$outboundSchema = objectType({
|
|
37279
|
+
type: CreatePromptResponseFormatType$outboundSchema
|
|
37280
|
+
});
|
|
37281
|
+
((ResponseFormat2$) => {
|
|
37282
|
+
ResponseFormat2$.inboundSchema = ResponseFormat2$inboundSchema;
|
|
37283
|
+
ResponseFormat2$.outboundSchema = ResponseFormat2$outboundSchema;
|
|
37284
|
+
})(ResponseFormat2$ ||= {});
|
|
37285
|
+
ResponseFormatType$inboundSchema = nativeEnumType(ResponseFormatType);
|
|
37286
|
+
ResponseFormatType$outboundSchema = ResponseFormatType$inboundSchema;
|
|
37287
|
+
((ResponseFormatType$) => {
|
|
37288
|
+
ResponseFormatType$.inboundSchema = ResponseFormatType$inboundSchema;
|
|
37289
|
+
ResponseFormatType$.outboundSchema = ResponseFormatType$outboundSchema;
|
|
37290
|
+
})(ResponseFormatType$ ||= {});
|
|
37291
|
+
JsonSchema$inboundSchema = objectType({
|
|
37086
37292
|
name: stringType(),
|
|
37087
37293
|
strict: booleanType(),
|
|
37088
37294
|
schema: recordType(anyType())
|
|
37089
37295
|
});
|
|
37090
|
-
|
|
37296
|
+
JsonSchema$outboundSchema = objectType({
|
|
37091
37297
|
name: stringType(),
|
|
37092
37298
|
strict: booleanType(),
|
|
37093
37299
|
schema: recordType(anyType())
|
|
37094
37300
|
});
|
|
37095
|
-
((
|
|
37096
|
-
|
|
37097
|
-
|
|
37098
|
-
})(
|
|
37099
|
-
|
|
37100
|
-
type:
|
|
37101
|
-
json_schema: lazyType(() =>
|
|
37301
|
+
((JsonSchema$) => {
|
|
37302
|
+
JsonSchema$.inboundSchema = JsonSchema$inboundSchema;
|
|
37303
|
+
JsonSchema$.outboundSchema = JsonSchema$outboundSchema;
|
|
37304
|
+
})(JsonSchema$ ||= {});
|
|
37305
|
+
ResponseFormat1$inboundSchema = objectType({
|
|
37306
|
+
type: ResponseFormatType$inboundSchema,
|
|
37307
|
+
json_schema: lazyType(() => JsonSchema$inboundSchema)
|
|
37102
37308
|
}).transform((v2) => {
|
|
37103
37309
|
return remap(v2, {
|
|
37104
37310
|
json_schema: "jsonSchema"
|
|
37105
37311
|
});
|
|
37106
37312
|
});
|
|
37107
|
-
|
|
37108
|
-
type:
|
|
37109
|
-
jsonSchema: lazyType(() =>
|
|
37313
|
+
ResponseFormat1$outboundSchema = objectType({
|
|
37314
|
+
type: ResponseFormatType$outboundSchema,
|
|
37315
|
+
jsonSchema: lazyType(() => JsonSchema$outboundSchema)
|
|
37110
37316
|
}).transform((v2) => {
|
|
37111
37317
|
return remap(v2, {
|
|
37112
37318
|
jsonSchema: "json_schema"
|
|
37113
37319
|
});
|
|
37114
37320
|
});
|
|
37115
|
-
((
|
|
37116
|
-
|
|
37117
|
-
|
|
37118
|
-
})(
|
|
37119
|
-
|
|
37120
|
-
lazyType(() =>
|
|
37121
|
-
lazyType(() =>
|
|
37321
|
+
((ResponseFormat1$) => {
|
|
37322
|
+
ResponseFormat1$.inboundSchema = ResponseFormat1$inboundSchema;
|
|
37323
|
+
ResponseFormat1$.outboundSchema = ResponseFormat1$outboundSchema;
|
|
37324
|
+
})(ResponseFormat1$ ||= {});
|
|
37325
|
+
ResponseFormat$inboundSchema = unionType([
|
|
37326
|
+
lazyType(() => ResponseFormat2$inboundSchema),
|
|
37327
|
+
lazyType(() => ResponseFormat1$inboundSchema)
|
|
37122
37328
|
]);
|
|
37123
|
-
|
|
37124
|
-
lazyType(() =>
|
|
37125
|
-
lazyType(() =>
|
|
37329
|
+
ResponseFormat$outboundSchema = unionType([
|
|
37330
|
+
lazyType(() => ResponseFormat2$outboundSchema),
|
|
37331
|
+
lazyType(() => ResponseFormat1$outboundSchema)
|
|
37126
37332
|
]);
|
|
37127
|
-
((
|
|
37128
|
-
|
|
37129
|
-
|
|
37130
|
-
})(
|
|
37131
|
-
|
|
37132
|
-
|
|
37133
|
-
((
|
|
37134
|
-
|
|
37135
|
-
|
|
37136
|
-
})(
|
|
37137
|
-
|
|
37138
|
-
|
|
37139
|
-
((
|
|
37140
|
-
|
|
37141
|
-
|
|
37142
|
-
})(
|
|
37143
|
-
|
|
37144
|
-
|
|
37145
|
-
((
|
|
37146
|
-
|
|
37147
|
-
|
|
37148
|
-
})(
|
|
37149
|
-
|
|
37333
|
+
((ResponseFormat$) => {
|
|
37334
|
+
ResponseFormat$.inboundSchema = ResponseFormat$inboundSchema;
|
|
37335
|
+
ResponseFormat$.outboundSchema = ResponseFormat$outboundSchema;
|
|
37336
|
+
})(ResponseFormat$ ||= {});
|
|
37337
|
+
PhotoRealVersion$inboundSchema = nativeEnumType(PhotoRealVersion);
|
|
37338
|
+
PhotoRealVersion$outboundSchema = PhotoRealVersion$inboundSchema;
|
|
37339
|
+
((PhotoRealVersion$) => {
|
|
37340
|
+
PhotoRealVersion$.inboundSchema = PhotoRealVersion$inboundSchema;
|
|
37341
|
+
PhotoRealVersion$.outboundSchema = PhotoRealVersion$outboundSchema;
|
|
37342
|
+
})(PhotoRealVersion$ ||= {});
|
|
37343
|
+
EncodingFormat$inboundSchema = nativeEnumType(EncodingFormat);
|
|
37344
|
+
EncodingFormat$outboundSchema = EncodingFormat$inboundSchema;
|
|
37345
|
+
((EncodingFormat$) => {
|
|
37346
|
+
EncodingFormat$.inboundSchema = EncodingFormat$inboundSchema;
|
|
37347
|
+
EncodingFormat$.outboundSchema = EncodingFormat$outboundSchema;
|
|
37348
|
+
})(EncodingFormat$ ||= {});
|
|
37349
|
+
ReasoningEffort$inboundSchema = nativeEnumType(ReasoningEffort);
|
|
37350
|
+
ReasoningEffort$outboundSchema = ReasoningEffort$inboundSchema;
|
|
37351
|
+
((ReasoningEffort$) => {
|
|
37352
|
+
ReasoningEffort$.inboundSchema = ReasoningEffort$inboundSchema;
|
|
37353
|
+
ReasoningEffort$.outboundSchema = ReasoningEffort$outboundSchema;
|
|
37354
|
+
})(ReasoningEffort$ ||= {});
|
|
37355
|
+
ModelParameters$inboundSchema = objectType({
|
|
37150
37356
|
temperature: numberType().optional(),
|
|
37151
37357
|
maxTokens: numberType().optional(),
|
|
37152
37358
|
topK: numberType().optional(),
|
|
@@ -37157,22 +37363,22 @@ var init_createprompt = __esm(() => {
|
|
|
37157
37363
|
seed: numberType().optional(),
|
|
37158
37364
|
format: CreatePromptFormat$inboundSchema.optional(),
|
|
37159
37365
|
dimensions: stringType().optional(),
|
|
37160
|
-
quality:
|
|
37366
|
+
quality: Quality$inboundSchema.optional(),
|
|
37161
37367
|
style: stringType().optional(),
|
|
37162
37368
|
responseFormat: nullableType(unionType([
|
|
37163
|
-
lazyType(() =>
|
|
37164
|
-
lazyType(() =>
|
|
37369
|
+
lazyType(() => ResponseFormat2$inboundSchema),
|
|
37370
|
+
lazyType(() => ResponseFormat1$inboundSchema)
|
|
37165
37371
|
])).optional(),
|
|
37166
|
-
photoRealVersion:
|
|
37167
|
-
encoding_format:
|
|
37168
|
-
reasoningEffort:
|
|
37169
|
-
budgetTokens: numberType().optional()
|
|
37170
|
-
}).transform((v2) => {
|
|
37372
|
+
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
37373
|
+
encoding_format: EncodingFormat$inboundSchema.optional(),
|
|
37374
|
+
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
37375
|
+
budgetTokens: numberType().optional()
|
|
37376
|
+
}).transform((v2) => {
|
|
37171
37377
|
return remap(v2, {
|
|
37172
37378
|
encoding_format: "encodingFormat"
|
|
37173
37379
|
});
|
|
37174
37380
|
});
|
|
37175
|
-
|
|
37381
|
+
ModelParameters$outboundSchema = objectType({
|
|
37176
37382
|
temperature: numberType().optional(),
|
|
37177
37383
|
maxTokens: numberType().optional(),
|
|
37178
37384
|
topK: numberType().optional(),
|
|
@@ -37183,31 +37389,31 @@ var init_createprompt = __esm(() => {
|
|
|
37183
37389
|
seed: numberType().optional(),
|
|
37184
37390
|
format: CreatePromptFormat$outboundSchema.optional(),
|
|
37185
37391
|
dimensions: stringType().optional(),
|
|
37186
|
-
quality:
|
|
37392
|
+
quality: Quality$outboundSchema.optional(),
|
|
37187
37393
|
style: stringType().optional(),
|
|
37188
37394
|
responseFormat: nullableType(unionType([
|
|
37189
|
-
lazyType(() =>
|
|
37190
|
-
lazyType(() =>
|
|
37395
|
+
lazyType(() => ResponseFormat2$outboundSchema),
|
|
37396
|
+
lazyType(() => ResponseFormat1$outboundSchema)
|
|
37191
37397
|
])).optional(),
|
|
37192
|
-
photoRealVersion:
|
|
37193
|
-
encodingFormat:
|
|
37194
|
-
reasoningEffort:
|
|
37398
|
+
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
37399
|
+
encodingFormat: EncodingFormat$outboundSchema.optional(),
|
|
37400
|
+
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
37195
37401
|
budgetTokens: numberType().optional()
|
|
37196
37402
|
}).transform((v2) => {
|
|
37197
37403
|
return remap(v2, {
|
|
37198
37404
|
encodingFormat: "encoding_format"
|
|
37199
37405
|
});
|
|
37200
37406
|
});
|
|
37201
|
-
((
|
|
37202
|
-
|
|
37203
|
-
|
|
37204
|
-
})(
|
|
37205
|
-
|
|
37206
|
-
|
|
37207
|
-
((
|
|
37208
|
-
|
|
37209
|
-
|
|
37210
|
-
})(
|
|
37407
|
+
((ModelParameters$) => {
|
|
37408
|
+
ModelParameters$.inboundSchema = ModelParameters$inboundSchema;
|
|
37409
|
+
ModelParameters$.outboundSchema = ModelParameters$outboundSchema;
|
|
37410
|
+
})(ModelParameters$ ||= {});
|
|
37411
|
+
Provider$inboundSchema = nativeEnumType(Provider);
|
|
37412
|
+
Provider$outboundSchema = Provider$inboundSchema;
|
|
37413
|
+
((Provider$) => {
|
|
37414
|
+
Provider$.inboundSchema = Provider$inboundSchema;
|
|
37415
|
+
Provider$.outboundSchema = Provider$outboundSchema;
|
|
37416
|
+
})(Provider$ ||= {});
|
|
37211
37417
|
CreatePromptRole$inboundSchema = nativeEnumType(CreatePromptRole);
|
|
37212
37418
|
CreatePromptRole$outboundSchema = CreatePromptRole$inboundSchema;
|
|
37213
37419
|
((CreatePromptRole$) => {
|
|
@@ -37368,12 +37574,12 @@ var init_createprompt = __esm(() => {
|
|
|
37368
37574
|
CreatePromptMessages$.inboundSchema = CreatePromptMessages$inboundSchema;
|
|
37369
37575
|
CreatePromptMessages$.outboundSchema = CreatePromptMessages$outboundSchema;
|
|
37370
37576
|
})(CreatePromptMessages$ ||= {});
|
|
37371
|
-
|
|
37577
|
+
PromptConfig$inboundSchema = objectType({
|
|
37372
37578
|
stream: booleanType().optional(),
|
|
37373
37579
|
model: stringType().optional(),
|
|
37374
|
-
model_type:
|
|
37375
|
-
model_parameters: lazyType(() =>
|
|
37376
|
-
provider:
|
|
37580
|
+
model_type: ModelType$inboundSchema.optional(),
|
|
37581
|
+
model_parameters: lazyType(() => ModelParameters$inboundSchema).optional(),
|
|
37582
|
+
provider: Provider$inboundSchema.optional(),
|
|
37377
37583
|
version: stringType().optional(),
|
|
37378
37584
|
messages: arrayType(lazyType(() => CreatePromptMessages$inboundSchema))
|
|
37379
37585
|
}).transform((v2) => {
|
|
@@ -37382,12 +37588,12 @@ var init_createprompt = __esm(() => {
|
|
|
37382
37588
|
model_parameters: "modelParameters"
|
|
37383
37589
|
});
|
|
37384
37590
|
});
|
|
37385
|
-
|
|
37591
|
+
PromptConfig$outboundSchema = objectType({
|
|
37386
37592
|
stream: booleanType().optional(),
|
|
37387
37593
|
model: stringType().optional(),
|
|
37388
|
-
modelType:
|
|
37389
|
-
modelParameters: lazyType(() =>
|
|
37390
|
-
provider:
|
|
37594
|
+
modelType: ModelType$outboundSchema.optional(),
|
|
37595
|
+
modelParameters: lazyType(() => ModelParameters$outboundSchema).optional(),
|
|
37596
|
+
provider: Provider$outboundSchema.optional(),
|
|
37391
37597
|
version: stringType().optional(),
|
|
37392
37598
|
messages: arrayType(lazyType(() => CreatePromptMessages$outboundSchema))
|
|
37393
37599
|
}).transform((v2) => {
|
|
@@ -37396,33 +37602,33 @@ var init_createprompt = __esm(() => {
|
|
|
37396
37602
|
modelParameters: "model_parameters"
|
|
37397
37603
|
});
|
|
37398
37604
|
});
|
|
37399
|
-
((
|
|
37400
|
-
|
|
37401
|
-
|
|
37402
|
-
})(
|
|
37403
|
-
|
|
37404
|
-
|
|
37405
|
-
((
|
|
37406
|
-
|
|
37407
|
-
|
|
37408
|
-
})(
|
|
37409
|
-
|
|
37410
|
-
|
|
37411
|
-
((
|
|
37412
|
-
|
|
37413
|
-
|
|
37414
|
-
})(
|
|
37605
|
+
((PromptConfig$) => {
|
|
37606
|
+
PromptConfig$.inboundSchema = PromptConfig$inboundSchema;
|
|
37607
|
+
PromptConfig$.outboundSchema = PromptConfig$outboundSchema;
|
|
37608
|
+
})(PromptConfig$ ||= {});
|
|
37609
|
+
UseCases$inboundSchema = nativeEnumType(UseCases);
|
|
37610
|
+
UseCases$outboundSchema = UseCases$inboundSchema;
|
|
37611
|
+
((UseCases$) => {
|
|
37612
|
+
UseCases$.inboundSchema = UseCases$inboundSchema;
|
|
37613
|
+
UseCases$.outboundSchema = UseCases$outboundSchema;
|
|
37614
|
+
})(UseCases$ ||= {});
|
|
37615
|
+
Language$inboundSchema = nativeEnumType(Language);
|
|
37616
|
+
Language$outboundSchema = Language$inboundSchema;
|
|
37617
|
+
((Language$) => {
|
|
37618
|
+
Language$.inboundSchema = Language$inboundSchema;
|
|
37619
|
+
Language$.outboundSchema = Language$outboundSchema;
|
|
37620
|
+
})(Language$ ||= {});
|
|
37415
37621
|
CreatePromptMetadata$inboundSchema = objectType({
|
|
37416
|
-
use_cases: arrayType(
|
|
37417
|
-
language:
|
|
37622
|
+
use_cases: arrayType(UseCases$inboundSchema).optional(),
|
|
37623
|
+
language: Language$inboundSchema.optional()
|
|
37418
37624
|
}).transform((v2) => {
|
|
37419
37625
|
return remap(v2, {
|
|
37420
37626
|
use_cases: "useCases"
|
|
37421
37627
|
});
|
|
37422
37628
|
});
|
|
37423
37629
|
CreatePromptMetadata$outboundSchema = objectType({
|
|
37424
|
-
useCases: arrayType(
|
|
37425
|
-
language:
|
|
37630
|
+
useCases: arrayType(UseCases$outboundSchema).optional(),
|
|
37631
|
+
language: Language$outboundSchema.optional()
|
|
37426
37632
|
}).transform((v2) => {
|
|
37427
37633
|
return remap(v2, {
|
|
37428
37634
|
useCases: "use_cases"
|
|
@@ -37435,7 +37641,7 @@ var init_createprompt = __esm(() => {
|
|
|
37435
37641
|
CreatePromptRequestBody$inboundSchema = objectType({
|
|
37436
37642
|
display_name: stringType(),
|
|
37437
37643
|
description: nullableType(stringType()).optional(),
|
|
37438
|
-
prompt_config: lazyType(() =>
|
|
37644
|
+
prompt_config: lazyType(() => PromptConfig$inboundSchema),
|
|
37439
37645
|
metadata: lazyType(() => CreatePromptMetadata$inboundSchema).optional(),
|
|
37440
37646
|
path: stringType()
|
|
37441
37647
|
}).transform((v2) => {
|
|
@@ -37447,7 +37653,7 @@ var init_createprompt = __esm(() => {
|
|
|
37447
37653
|
CreatePromptRequestBody$outboundSchema = objectType({
|
|
37448
37654
|
displayName: stringType(),
|
|
37449
37655
|
description: nullableType(stringType()).optional(),
|
|
37450
|
-
promptConfig: lazyType(() =>
|
|
37656
|
+
promptConfig: lazyType(() => PromptConfig$outboundSchema),
|
|
37451
37657
|
metadata: lazyType(() => CreatePromptMetadata$outboundSchema).optional(),
|
|
37452
37658
|
path: stringType()
|
|
37453
37659
|
}).transform((v2) => {
|
|
@@ -37466,46 +37672,46 @@ var init_createprompt = __esm(() => {
|
|
|
37466
37672
|
CreatePromptPromptsType$.inboundSchema = CreatePromptPromptsType$inboundSchema;
|
|
37467
37673
|
CreatePromptPromptsType$.outboundSchema = CreatePromptPromptsType$outboundSchema;
|
|
37468
37674
|
})(CreatePromptPromptsType$ ||= {});
|
|
37469
|
-
|
|
37470
|
-
|
|
37471
|
-
((
|
|
37472
|
-
|
|
37473
|
-
|
|
37474
|
-
})(
|
|
37675
|
+
CreatePromptModelType$inboundSchema = nativeEnumType(CreatePromptModelType);
|
|
37676
|
+
CreatePromptModelType$outboundSchema = CreatePromptModelType$inboundSchema;
|
|
37677
|
+
((CreatePromptModelType$) => {
|
|
37678
|
+
CreatePromptModelType$.inboundSchema = CreatePromptModelType$inboundSchema;
|
|
37679
|
+
CreatePromptModelType$.outboundSchema = CreatePromptModelType$outboundSchema;
|
|
37680
|
+
})(CreatePromptModelType$ ||= {});
|
|
37475
37681
|
CreatePromptPromptsFormat$inboundSchema = nativeEnumType(CreatePromptPromptsFormat);
|
|
37476
37682
|
CreatePromptPromptsFormat$outboundSchema = CreatePromptPromptsFormat$inboundSchema;
|
|
37477
37683
|
((CreatePromptPromptsFormat$) => {
|
|
37478
37684
|
CreatePromptPromptsFormat$.inboundSchema = CreatePromptPromptsFormat$inboundSchema;
|
|
37479
37685
|
CreatePromptPromptsFormat$.outboundSchema = CreatePromptPromptsFormat$outboundSchema;
|
|
37480
37686
|
})(CreatePromptPromptsFormat$ ||= {});
|
|
37481
|
-
|
|
37482
|
-
|
|
37483
|
-
((
|
|
37484
|
-
|
|
37485
|
-
|
|
37486
|
-
})(
|
|
37487
|
-
CreatePromptResponseFormatPromptsResponse200Type$inboundSchema = nativeEnumType(CreatePromptResponseFormatPromptsResponse200Type);
|
|
37488
|
-
CreatePromptResponseFormatPromptsResponse200Type$outboundSchema = CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
37489
|
-
((CreatePromptResponseFormatPromptsResponse200Type$) => {
|
|
37490
|
-
CreatePromptResponseFormatPromptsResponse200Type$.inboundSchema = CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
37491
|
-
CreatePromptResponseFormatPromptsResponse200Type$.outboundSchema = CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
|
|
37492
|
-
})(CreatePromptResponseFormatPromptsResponse200Type$ ||= {});
|
|
37493
|
-
CreatePromptResponseFormatPrompts2$inboundSchema = objectType({
|
|
37494
|
-
type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema
|
|
37495
|
-
});
|
|
37496
|
-
CreatePromptResponseFormatPrompts2$outboundSchema = objectType({
|
|
37497
|
-
type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema
|
|
37498
|
-
});
|
|
37499
|
-
((CreatePromptResponseFormatPrompts2$) => {
|
|
37500
|
-
CreatePromptResponseFormatPrompts2$.inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
|
|
37501
|
-
CreatePromptResponseFormatPrompts2$.outboundSchema = CreatePromptResponseFormatPrompts2$outboundSchema;
|
|
37502
|
-
})(CreatePromptResponseFormatPrompts2$ ||= {});
|
|
37687
|
+
CreatePromptQuality$inboundSchema = nativeEnumType(CreatePromptQuality);
|
|
37688
|
+
CreatePromptQuality$outboundSchema = CreatePromptQuality$inboundSchema;
|
|
37689
|
+
((CreatePromptQuality$) => {
|
|
37690
|
+
CreatePromptQuality$.inboundSchema = CreatePromptQuality$inboundSchema;
|
|
37691
|
+
CreatePromptQuality$.outboundSchema = CreatePromptQuality$outboundSchema;
|
|
37692
|
+
})(CreatePromptQuality$ ||= {});
|
|
37503
37693
|
CreatePromptResponseFormatPromptsResponseType$inboundSchema = nativeEnumType(CreatePromptResponseFormatPromptsResponseType);
|
|
37504
37694
|
CreatePromptResponseFormatPromptsResponseType$outboundSchema = CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
37505
37695
|
((CreatePromptResponseFormatPromptsResponseType$) => {
|
|
37506
37696
|
CreatePromptResponseFormatPromptsResponseType$.inboundSchema = CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
37507
37697
|
CreatePromptResponseFormatPromptsResponseType$.outboundSchema = CreatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
37508
37698
|
})(CreatePromptResponseFormatPromptsResponseType$ ||= {});
|
|
37699
|
+
CreatePromptResponseFormat2$inboundSchema = objectType({
|
|
37700
|
+
type: CreatePromptResponseFormatPromptsResponseType$inboundSchema
|
|
37701
|
+
});
|
|
37702
|
+
CreatePromptResponseFormat2$outboundSchema = objectType({
|
|
37703
|
+
type: CreatePromptResponseFormatPromptsResponseType$outboundSchema
|
|
37704
|
+
});
|
|
37705
|
+
((CreatePromptResponseFormat2$) => {
|
|
37706
|
+
CreatePromptResponseFormat2$.inboundSchema = CreatePromptResponseFormat2$inboundSchema;
|
|
37707
|
+
CreatePromptResponseFormat2$.outboundSchema = CreatePromptResponseFormat2$outboundSchema;
|
|
37708
|
+
})(CreatePromptResponseFormat2$ ||= {});
|
|
37709
|
+
CreatePromptResponseFormatPromptsType$inboundSchema = nativeEnumType(CreatePromptResponseFormatPromptsType);
|
|
37710
|
+
CreatePromptResponseFormatPromptsType$outboundSchema = CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
37711
|
+
((CreatePromptResponseFormatPromptsType$) => {
|
|
37712
|
+
CreatePromptResponseFormatPromptsType$.inboundSchema = CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
37713
|
+
CreatePromptResponseFormatPromptsType$.outboundSchema = CreatePromptResponseFormatPromptsType$outboundSchema;
|
|
37714
|
+
})(CreatePromptResponseFormatPromptsType$ ||= {});
|
|
37509
37715
|
CreatePromptResponseFormatJsonSchema$inboundSchema = objectType({
|
|
37510
37716
|
name: stringType(),
|
|
37511
37717
|
strict: booleanType(),
|
|
@@ -37520,57 +37726,57 @@ var init_createprompt = __esm(() => {
|
|
|
37520
37726
|
CreatePromptResponseFormatJsonSchema$.inboundSchema = CreatePromptResponseFormatJsonSchema$inboundSchema;
|
|
37521
37727
|
CreatePromptResponseFormatJsonSchema$.outboundSchema = CreatePromptResponseFormatJsonSchema$outboundSchema;
|
|
37522
37728
|
})(CreatePromptResponseFormatJsonSchema$ ||= {});
|
|
37523
|
-
|
|
37524
|
-
type:
|
|
37729
|
+
CreatePromptResponseFormat1$inboundSchema = objectType({
|
|
37730
|
+
type: CreatePromptResponseFormatPromptsType$inboundSchema,
|
|
37525
37731
|
json_schema: lazyType(() => CreatePromptResponseFormatJsonSchema$inboundSchema)
|
|
37526
37732
|
}).transform((v2) => {
|
|
37527
37733
|
return remap(v2, {
|
|
37528
37734
|
json_schema: "jsonSchema"
|
|
37529
37735
|
});
|
|
37530
37736
|
});
|
|
37531
|
-
|
|
37532
|
-
type:
|
|
37737
|
+
CreatePromptResponseFormat1$outboundSchema = objectType({
|
|
37738
|
+
type: CreatePromptResponseFormatPromptsType$outboundSchema,
|
|
37533
37739
|
jsonSchema: lazyType(() => CreatePromptResponseFormatJsonSchema$outboundSchema)
|
|
37534
37740
|
}).transform((v2) => {
|
|
37535
37741
|
return remap(v2, {
|
|
37536
37742
|
jsonSchema: "json_schema"
|
|
37537
37743
|
});
|
|
37538
37744
|
});
|
|
37539
|
-
((
|
|
37540
|
-
|
|
37541
|
-
|
|
37542
|
-
})(
|
|
37543
|
-
|
|
37544
|
-
lazyType(() =>
|
|
37545
|
-
lazyType(() =>
|
|
37745
|
+
((CreatePromptResponseFormat1$) => {
|
|
37746
|
+
CreatePromptResponseFormat1$.inboundSchema = CreatePromptResponseFormat1$inboundSchema;
|
|
37747
|
+
CreatePromptResponseFormat1$.outboundSchema = CreatePromptResponseFormat1$outboundSchema;
|
|
37748
|
+
})(CreatePromptResponseFormat1$ ||= {});
|
|
37749
|
+
CreatePromptResponseFormat$inboundSchema = unionType([
|
|
37750
|
+
lazyType(() => CreatePromptResponseFormat2$inboundSchema),
|
|
37751
|
+
lazyType(() => CreatePromptResponseFormat1$inboundSchema)
|
|
37546
37752
|
]);
|
|
37547
|
-
|
|
37548
|
-
lazyType(() =>
|
|
37549
|
-
lazyType(() =>
|
|
37753
|
+
CreatePromptResponseFormat$outboundSchema = unionType([
|
|
37754
|
+
lazyType(() => CreatePromptResponseFormat2$outboundSchema),
|
|
37755
|
+
lazyType(() => CreatePromptResponseFormat1$outboundSchema)
|
|
37550
37756
|
]);
|
|
37551
|
-
((
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
})(
|
|
37555
|
-
|
|
37556
|
-
|
|
37557
|
-
((
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
})(
|
|
37561
|
-
|
|
37562
|
-
|
|
37563
|
-
((
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
})(
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
((
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
})(
|
|
37573
|
-
|
|
37757
|
+
((CreatePromptResponseFormat$) => {
|
|
37758
|
+
CreatePromptResponseFormat$.inboundSchema = CreatePromptResponseFormat$inboundSchema;
|
|
37759
|
+
CreatePromptResponseFormat$.outboundSchema = CreatePromptResponseFormat$outboundSchema;
|
|
37760
|
+
})(CreatePromptResponseFormat$ ||= {});
|
|
37761
|
+
CreatePromptPhotoRealVersion$inboundSchema = nativeEnumType(CreatePromptPhotoRealVersion);
|
|
37762
|
+
CreatePromptPhotoRealVersion$outboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
|
|
37763
|
+
((CreatePromptPhotoRealVersion$) => {
|
|
37764
|
+
CreatePromptPhotoRealVersion$.inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
|
|
37765
|
+
CreatePromptPhotoRealVersion$.outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
|
|
37766
|
+
})(CreatePromptPhotoRealVersion$ ||= {});
|
|
37767
|
+
CreatePromptEncodingFormat$inboundSchema = nativeEnumType(CreatePromptEncodingFormat);
|
|
37768
|
+
CreatePromptEncodingFormat$outboundSchema = CreatePromptEncodingFormat$inboundSchema;
|
|
37769
|
+
((CreatePromptEncodingFormat$) => {
|
|
37770
|
+
CreatePromptEncodingFormat$.inboundSchema = CreatePromptEncodingFormat$inboundSchema;
|
|
37771
|
+
CreatePromptEncodingFormat$.outboundSchema = CreatePromptEncodingFormat$outboundSchema;
|
|
37772
|
+
})(CreatePromptEncodingFormat$ ||= {});
|
|
37773
|
+
CreatePromptReasoningEffort$inboundSchema = nativeEnumType(CreatePromptReasoningEffort);
|
|
37774
|
+
CreatePromptReasoningEffort$outboundSchema = CreatePromptReasoningEffort$inboundSchema;
|
|
37775
|
+
((CreatePromptReasoningEffort$) => {
|
|
37776
|
+
CreatePromptReasoningEffort$.inboundSchema = CreatePromptReasoningEffort$inboundSchema;
|
|
37777
|
+
CreatePromptReasoningEffort$.outboundSchema = CreatePromptReasoningEffort$outboundSchema;
|
|
37778
|
+
})(CreatePromptReasoningEffort$ ||= {});
|
|
37779
|
+
CreatePromptModelParameters$inboundSchema = objectType({
|
|
37574
37780
|
temperature: numberType().optional(),
|
|
37575
37781
|
maxTokens: numberType().optional(),
|
|
37576
37782
|
topK: numberType().optional(),
|
|
@@ -37581,22 +37787,22 @@ var init_createprompt = __esm(() => {
|
|
|
37581
37787
|
seed: numberType().optional(),
|
|
37582
37788
|
format: CreatePromptPromptsFormat$inboundSchema.optional(),
|
|
37583
37789
|
dimensions: stringType().optional(),
|
|
37584
|
-
quality:
|
|
37790
|
+
quality: CreatePromptQuality$inboundSchema.optional(),
|
|
37585
37791
|
style: stringType().optional(),
|
|
37586
37792
|
responseFormat: nullableType(unionType([
|
|
37587
|
-
lazyType(() =>
|
|
37588
|
-
lazyType(() =>
|
|
37793
|
+
lazyType(() => CreatePromptResponseFormat2$inboundSchema),
|
|
37794
|
+
lazyType(() => CreatePromptResponseFormat1$inboundSchema)
|
|
37589
37795
|
])).optional(),
|
|
37590
|
-
photoRealVersion:
|
|
37591
|
-
encoding_format:
|
|
37592
|
-
reasoningEffort:
|
|
37796
|
+
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
37797
|
+
encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
|
|
37798
|
+
reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
|
|
37593
37799
|
budgetTokens: numberType().optional()
|
|
37594
37800
|
}).transform((v2) => {
|
|
37595
37801
|
return remap(v2, {
|
|
37596
37802
|
encoding_format: "encodingFormat"
|
|
37597
37803
|
});
|
|
37598
37804
|
});
|
|
37599
|
-
|
|
37805
|
+
CreatePromptModelParameters$outboundSchema = objectType({
|
|
37600
37806
|
temperature: numberType().optional(),
|
|
37601
37807
|
maxTokens: numberType().optional(),
|
|
37602
37808
|
topK: numberType().optional(),
|
|
@@ -37607,31 +37813,31 @@ var init_createprompt = __esm(() => {
|
|
|
37607
37813
|
seed: numberType().optional(),
|
|
37608
37814
|
format: CreatePromptPromptsFormat$outboundSchema.optional(),
|
|
37609
37815
|
dimensions: stringType().optional(),
|
|
37610
|
-
quality:
|
|
37816
|
+
quality: CreatePromptQuality$outboundSchema.optional(),
|
|
37611
37817
|
style: stringType().optional(),
|
|
37612
37818
|
responseFormat: nullableType(unionType([
|
|
37613
|
-
lazyType(() =>
|
|
37614
|
-
lazyType(() =>
|
|
37819
|
+
lazyType(() => CreatePromptResponseFormat2$outboundSchema),
|
|
37820
|
+
lazyType(() => CreatePromptResponseFormat1$outboundSchema)
|
|
37615
37821
|
])).optional(),
|
|
37616
|
-
photoRealVersion:
|
|
37617
|
-
encodingFormat:
|
|
37618
|
-
reasoningEffort:
|
|
37822
|
+
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
37823
|
+
encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
|
|
37824
|
+
reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
|
|
37619
37825
|
budgetTokens: numberType().optional()
|
|
37620
37826
|
}).transform((v2) => {
|
|
37621
37827
|
return remap(v2, {
|
|
37622
37828
|
encodingFormat: "encoding_format"
|
|
37623
37829
|
});
|
|
37624
37830
|
});
|
|
37625
|
-
((
|
|
37626
|
-
|
|
37627
|
-
|
|
37628
|
-
})(
|
|
37629
|
-
|
|
37630
|
-
|
|
37631
|
-
((
|
|
37632
|
-
|
|
37633
|
-
|
|
37634
|
-
})(
|
|
37831
|
+
((CreatePromptModelParameters$) => {
|
|
37832
|
+
CreatePromptModelParameters$.inboundSchema = CreatePromptModelParameters$inboundSchema;
|
|
37833
|
+
CreatePromptModelParameters$.outboundSchema = CreatePromptModelParameters$outboundSchema;
|
|
37834
|
+
})(CreatePromptModelParameters$ ||= {});
|
|
37835
|
+
CreatePromptProvider$inboundSchema = nativeEnumType(CreatePromptProvider);
|
|
37836
|
+
CreatePromptProvider$outboundSchema = CreatePromptProvider$inboundSchema;
|
|
37837
|
+
((CreatePromptProvider$) => {
|
|
37838
|
+
CreatePromptProvider$.inboundSchema = CreatePromptProvider$inboundSchema;
|
|
37839
|
+
CreatePromptProvider$.outboundSchema = CreatePromptProvider$outboundSchema;
|
|
37840
|
+
})(CreatePromptProvider$ ||= {});
|
|
37635
37841
|
CreatePromptPromptsRole$inboundSchema = nativeEnumType(CreatePromptPromptsRole);
|
|
37636
37842
|
CreatePromptPromptsRole$outboundSchema = CreatePromptPromptsRole$inboundSchema;
|
|
37637
37843
|
((CreatePromptPromptsRole$) => {
|
|
@@ -37794,13 +38000,13 @@ var init_createprompt = __esm(() => {
|
|
|
37794
38000
|
CreatePromptPromptsMessages$.inboundSchema = CreatePromptPromptsMessages$inboundSchema;
|
|
37795
38001
|
CreatePromptPromptsMessages$.outboundSchema = CreatePromptPromptsMessages$outboundSchema;
|
|
37796
38002
|
})(CreatePromptPromptsMessages$ ||= {});
|
|
37797
|
-
|
|
38003
|
+
CreatePromptPromptConfig$inboundSchema = objectType({
|
|
37798
38004
|
stream: booleanType().optional(),
|
|
37799
38005
|
model: stringType().optional(),
|
|
37800
38006
|
model_db_id: stringType().optional(),
|
|
37801
|
-
model_type:
|
|
37802
|
-
model_parameters: lazyType(() =>
|
|
37803
|
-
provider:
|
|
38007
|
+
model_type: CreatePromptModelType$inboundSchema.optional(),
|
|
38008
|
+
model_parameters: lazyType(() => CreatePromptModelParameters$inboundSchema).optional(),
|
|
38009
|
+
provider: CreatePromptProvider$inboundSchema.optional(),
|
|
37804
38010
|
integration_id: nullableType(stringType()).optional(),
|
|
37805
38011
|
version: stringType().optional(),
|
|
37806
38012
|
messages: arrayType(lazyType(() => CreatePromptPromptsMessages$inboundSchema))
|
|
@@ -37812,13 +38018,13 @@ var init_createprompt = __esm(() => {
|
|
|
37812
38018
|
integration_id: "integrationId"
|
|
37813
38019
|
});
|
|
37814
38020
|
});
|
|
37815
|
-
|
|
38021
|
+
CreatePromptPromptConfig$outboundSchema = objectType({
|
|
37816
38022
|
stream: booleanType().optional(),
|
|
37817
38023
|
model: stringType().optional(),
|
|
37818
38024
|
modelDbId: stringType().optional(),
|
|
37819
|
-
modelType:
|
|
37820
|
-
modelParameters: lazyType(() =>
|
|
37821
|
-
provider:
|
|
38025
|
+
modelType: CreatePromptModelType$outboundSchema.optional(),
|
|
38026
|
+
modelParameters: lazyType(() => CreatePromptModelParameters$outboundSchema).optional(),
|
|
38027
|
+
provider: CreatePromptProvider$outboundSchema.optional(),
|
|
37822
38028
|
integrationId: nullableType(stringType()).optional(),
|
|
37823
38029
|
version: stringType().optional(),
|
|
37824
38030
|
messages: arrayType(lazyType(() => CreatePromptPromptsMessages$outboundSchema))
|
|
@@ -37830,33 +38036,33 @@ var init_createprompt = __esm(() => {
|
|
|
37830
38036
|
integrationId: "integration_id"
|
|
37831
38037
|
});
|
|
37832
38038
|
});
|
|
37833
|
-
((
|
|
37834
|
-
|
|
37835
|
-
|
|
37836
|
-
})(
|
|
37837
|
-
|
|
37838
|
-
|
|
37839
|
-
((
|
|
37840
|
-
|
|
37841
|
-
|
|
37842
|
-
})(
|
|
37843
|
-
|
|
37844
|
-
|
|
37845
|
-
((
|
|
37846
|
-
|
|
37847
|
-
|
|
37848
|
-
})(
|
|
38039
|
+
((CreatePromptPromptConfig$) => {
|
|
38040
|
+
CreatePromptPromptConfig$.inboundSchema = CreatePromptPromptConfig$inboundSchema;
|
|
38041
|
+
CreatePromptPromptConfig$.outboundSchema = CreatePromptPromptConfig$outboundSchema;
|
|
38042
|
+
})(CreatePromptPromptConfig$ ||= {});
|
|
38043
|
+
CreatePromptUseCases$inboundSchema = nativeEnumType(CreatePromptUseCases);
|
|
38044
|
+
CreatePromptUseCases$outboundSchema = CreatePromptUseCases$inboundSchema;
|
|
38045
|
+
((CreatePromptUseCases$) => {
|
|
38046
|
+
CreatePromptUseCases$.inboundSchema = CreatePromptUseCases$inboundSchema;
|
|
38047
|
+
CreatePromptUseCases$.outboundSchema = CreatePromptUseCases$outboundSchema;
|
|
38048
|
+
})(CreatePromptUseCases$ ||= {});
|
|
38049
|
+
CreatePromptLanguage$inboundSchema = nativeEnumType(CreatePromptLanguage);
|
|
38050
|
+
CreatePromptLanguage$outboundSchema = CreatePromptLanguage$inboundSchema;
|
|
38051
|
+
((CreatePromptLanguage$) => {
|
|
38052
|
+
CreatePromptLanguage$.inboundSchema = CreatePromptLanguage$inboundSchema;
|
|
38053
|
+
CreatePromptLanguage$.outboundSchema = CreatePromptLanguage$outboundSchema;
|
|
38054
|
+
})(CreatePromptLanguage$ ||= {});
|
|
37849
38055
|
CreatePromptPromptsMetadata$inboundSchema = objectType({
|
|
37850
|
-
use_cases: arrayType(
|
|
37851
|
-
language:
|
|
38056
|
+
use_cases: arrayType(CreatePromptUseCases$inboundSchema).optional(),
|
|
38057
|
+
language: CreatePromptLanguage$inboundSchema.optional()
|
|
37852
38058
|
}).transform((v2) => {
|
|
37853
38059
|
return remap(v2, {
|
|
37854
38060
|
use_cases: "useCases"
|
|
37855
38061
|
});
|
|
37856
38062
|
});
|
|
37857
38063
|
CreatePromptPromptsMetadata$outboundSchema = objectType({
|
|
37858
|
-
useCases: arrayType(
|
|
37859
|
-
language:
|
|
38064
|
+
useCases: arrayType(CreatePromptUseCases$outboundSchema).optional(),
|
|
38065
|
+
language: CreatePromptLanguage$outboundSchema.optional()
|
|
37860
38066
|
}).transform((v2) => {
|
|
37861
38067
|
return remap(v2, {
|
|
37862
38068
|
useCases: "use_cases"
|
|
@@ -37877,7 +38083,7 @@ var init_createprompt = __esm(() => {
|
|
|
37877
38083
|
updated_by_id: nullableType(stringType()).optional(),
|
|
37878
38084
|
display_name: stringType(),
|
|
37879
38085
|
description: nullableType(stringType()).optional(),
|
|
37880
|
-
prompt_config: lazyType(() =>
|
|
38086
|
+
prompt_config: lazyType(() => CreatePromptPromptConfig$inboundSchema),
|
|
37881
38087
|
metadata: lazyType(() => CreatePromptPromptsMetadata$inboundSchema).optional()
|
|
37882
38088
|
}).transform((v2) => {
|
|
37883
38089
|
return remap(v2, {
|
|
@@ -37900,7 +38106,7 @@ var init_createprompt = __esm(() => {
|
|
|
37900
38106
|
updatedById: nullableType(stringType()).optional(),
|
|
37901
38107
|
displayName: stringType(),
|
|
37902
38108
|
description: nullableType(stringType()).optional(),
|
|
37903
|
-
promptConfig: lazyType(() =>
|
|
38109
|
+
promptConfig: lazyType(() => CreatePromptPromptConfig$outboundSchema),
|
|
37904
38110
|
metadata: lazyType(() => CreatePromptPromptsMetadata$outboundSchema).optional()
|
|
37905
38111
|
}).transform((v2) => {
|
|
37906
38112
|
return remap(v2, {
|
|
@@ -41510,53 +41716,1449 @@ var init_deployments = __esm(() => {
|
|
|
41510
41716
|
})(DeploymentsResponseBody$ ||= {});
|
|
41511
41717
|
});
|
|
41512
41718
|
|
|
41513
|
-
// src/models/operations/
|
|
41514
|
-
var FileDeleteRequest$inboundSchema, FileDeleteRequest$outboundSchema, FileDeleteRequest$;
|
|
41515
|
-
var
|
|
41516
|
-
init_lib();
|
|
41517
|
-
init_primitives();
|
|
41518
|
-
FileDeleteRequest$inboundSchema = objectType({
|
|
41519
|
-
file_id: stringType()
|
|
41520
|
-
}).transform((v2) => {
|
|
41521
|
-
return remap(v2, {
|
|
41522
|
-
file_id: "fileId"
|
|
41523
|
-
});
|
|
41524
|
-
});
|
|
41525
|
-
FileDeleteRequest$outboundSchema = objectType({
|
|
41526
|
-
fileId: stringType()
|
|
41527
|
-
}).transform((v2) => {
|
|
41528
|
-
return remap(v2, {
|
|
41529
|
-
fileId: "file_id"
|
|
41530
|
-
});
|
|
41531
|
-
});
|
|
41532
|
-
((FileDeleteRequest$) => {
|
|
41533
|
-
FileDeleteRequest$.inboundSchema = FileDeleteRequest$inboundSchema;
|
|
41534
|
-
FileDeleteRequest$.outboundSchema = FileDeleteRequest$outboundSchema;
|
|
41535
|
-
})(FileDeleteRequest$ ||= {});
|
|
41536
|
-
});
|
|
41537
|
-
|
|
41538
|
-
// src/models/operations/fileget.ts
|
|
41539
|
-
var FileGetPurpose, FileGetRequest$inboundSchema, FileGetRequest$outboundSchema, FileGetRequest$, FileGetPurpose$inboundSchema, FileGetPurpose$outboundSchema, FileGetPurpose$, FileGetResponseBody$inboundSchema, FileGetResponseBody$outboundSchema, FileGetResponseBody$;
|
|
41540
|
-
var init_fileget = __esm(() => {
|
|
41719
|
+
// src/models/operations/deploymentstream.ts
|
|
41720
|
+
var DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType, DeploymentStream2DeploymentsRequestRequestBodyType, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole, DeploymentStreamPrefixMessagesType, DeploymentStreamPrefixMessagesDeploymentsRequestRole, DeploymentStream2DeploymentsRequestType, DeploymentStream2Format, DeploymentStream2DeploymentsType, DeploymentStream2Detail, DeploymentStream2Type, DeploymentStreamPrefixMessagesDeploymentsRole, DeploymentStreamPrefixMessagesRole, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole, DeploymentStreamMessagesType, DeploymentStreamMessagesDeploymentsRequestRole, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType, DeploymentStream2DeploymentsFormat, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type, DeploymentStream2DeploymentsDetail, DeploymentStream2DeploymentsRequestRequestBodyMessagesType, DeploymentStreamMessagesDeploymentsRole, DeploymentStreamMessagesRole, DeploymentStreamObject, DeploymentStreamProvider, DeploymentStreamMessageDeploymentsResponseRole, DeploymentStreamMessageDeploymentsRole, DeploymentStreamMessageRole, DeploymentStreamMessageType, DeploymentStreamGlobals$inboundSchema, DeploymentStreamGlobals$outboundSchema, DeploymentStreamGlobals$, DeploymentStreamInputs$inboundSchema, DeploymentStreamInputs$outboundSchema, DeploymentStreamInputs$, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$, DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestContent$, PrefixMessagesToolMessage$inboundSchema, PrefixMessagesToolMessage$outboundSchema, PrefixMessagesToolMessage$, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$, DeploymentStream2RefusalContentPart$inboundSchema, DeploymentStream2RefusalContentPart$outboundSchema, DeploymentStream2RefusalContentPart$, DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyType$, DeploymentStream2TextContentPart$inboundSchema, DeploymentStream2TextContentPart$outboundSchema, DeploymentStream2TextContentPart$, DeploymentStreamContentDeployments2$inboundSchema, DeploymentStreamContentDeployments2$outboundSchema, DeploymentStreamContentDeployments2$, DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsContent$, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$, PrefixMessagesAudio$inboundSchema, PrefixMessagesAudio$outboundSchema, PrefixMessagesAudio$, DeploymentStreamPrefixMessagesType$inboundSchema, DeploymentStreamPrefixMessagesType$outboundSchema, DeploymentStreamPrefixMessagesType$, PrefixMessagesFunction$inboundSchema, PrefixMessagesFunction$outboundSchema, PrefixMessagesFunction$, PrefixMessagesToolCalls$inboundSchema, PrefixMessagesToolCalls$outboundSchema, PrefixMessagesToolCalls$, PrefixMessagesAssistantMessage$inboundSchema, PrefixMessagesAssistantMessage$outboundSchema, PrefixMessagesAssistantMessage$, DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRequestRole$, DeploymentStream2DeploymentsRequestType$inboundSchema, DeploymentStream2DeploymentsRequestType$outboundSchema, DeploymentStream2DeploymentsRequestType$, DeploymentStream2Format$inboundSchema, DeploymentStream2Format$outboundSchema, DeploymentStream2Format$, DeploymentStream2InputAudio$inboundSchema, DeploymentStream2InputAudio$outboundSchema, DeploymentStream2InputAudio$, DeploymentStream23$inboundSchema, DeploymentStream23$outboundSchema, DeploymentStream23$, DeploymentStream2DeploymentsType$inboundSchema, DeploymentStream2DeploymentsType$outboundSchema, DeploymentStream2DeploymentsType$, DeploymentStream2Detail$inboundSchema, DeploymentStream2Detail$outboundSchema, DeploymentStream2Detail$, DeploymentStream2ImageUrl$inboundSchema, DeploymentStream2ImageUrl$outboundSchema, DeploymentStream2ImageUrl$, DeploymentStream22$inboundSchema, DeploymentStream22$outboundSchema, DeploymentStream22$, DeploymentStream2Type$inboundSchema, DeploymentStream2Type$outboundSchema, DeploymentStream2Type$, DeploymentStream21$inboundSchema, DeploymentStream21$outboundSchema, DeploymentStream21$, DeploymentStreamContent2$inboundSchema, DeploymentStreamContent2$outboundSchema, DeploymentStreamContent2$, DeploymentStreamPrefixMessagesContent$inboundSchema, DeploymentStreamPrefixMessagesContent$outboundSchema, DeploymentStreamPrefixMessagesContent$, PrefixMessagesUserMessage$inboundSchema, PrefixMessagesUserMessage$outboundSchema, PrefixMessagesUserMessage$, DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema, DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema, DeploymentStreamPrefixMessagesDeploymentsRole$, PrefixMessagesSystemMessage$inboundSchema, PrefixMessagesSystemMessage$outboundSchema, PrefixMessagesSystemMessage$, DeploymentStreamPrefixMessagesRole$inboundSchema, DeploymentStreamPrefixMessagesRole$outboundSchema, DeploymentStreamPrefixMessagesRole$, PrefixMessagesDeveloperMessage$inboundSchema, PrefixMessagesDeveloperMessage$outboundSchema, PrefixMessagesDeveloperMessage$, DeploymentStreamPrefixMessages$inboundSchema, DeploymentStreamPrefixMessages$outboundSchema, DeploymentStreamPrefixMessages$, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$, DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema, DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema, DeploymentStreamMessagesDeploymentsRequestContent$, DeploymentStreamMessagesToolMessage$inboundSchema, DeploymentStreamMessagesToolMessage$outboundSchema, DeploymentStreamMessagesToolMessage$, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$, DeploymentStream2DeploymentsRefusalContentPart$inboundSchema, DeploymentStream2DeploymentsRefusalContentPart$outboundSchema, DeploymentStream2DeploymentsRefusalContentPart$, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$, DeploymentStream2DeploymentsTextContentPart$inboundSchema, DeploymentStream2DeploymentsTextContentPart$outboundSchema, DeploymentStream2DeploymentsTextContentPart$, DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema, DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema, DeploymentStreamContentDeploymentsRequestRequestBody2$, DeploymentStreamMessagesDeploymentsContent$inboundSchema, DeploymentStreamMessagesDeploymentsContent$outboundSchema, DeploymentStreamMessagesDeploymentsContent$, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$, DeploymentStreamMessagesAudio$inboundSchema, DeploymentStreamMessagesAudio$outboundSchema, DeploymentStreamMessagesAudio$, DeploymentStreamMessagesType$inboundSchema, DeploymentStreamMessagesType$outboundSchema, DeploymentStreamMessagesType$, DeploymentStreamMessagesFunction$inboundSchema, DeploymentStreamMessagesFunction$outboundSchema, DeploymentStreamMessagesFunction$, DeploymentStreamMessagesToolCalls$inboundSchema, DeploymentStreamMessagesToolCalls$outboundSchema, DeploymentStreamMessagesToolCalls$, DeploymentStreamMessagesAssistantMessage$inboundSchema, DeploymentStreamMessagesAssistantMessage$outboundSchema, DeploymentStreamMessagesAssistantMessage$, DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema, DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema, DeploymentStreamMessagesDeploymentsRequestRole$, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$, DeploymentStream2DeploymentsFormat$inboundSchema, DeploymentStream2DeploymentsFormat$outboundSchema, DeploymentStream2DeploymentsFormat$, DeploymentStream2DeploymentsInputAudio$inboundSchema, DeploymentStream2DeploymentsInputAudio$outboundSchema, DeploymentStream2DeploymentsInputAudio$, DeploymentStream2Deployments3$inboundSchema, DeploymentStream2Deployments3$outboundSchema, DeploymentStream2Deployments3$, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$, DeploymentStream2DeploymentsDetail$inboundSchema, DeploymentStream2DeploymentsDetail$outboundSchema, DeploymentStream2DeploymentsDetail$, DeploymentStream2DeploymentsImageUrl$inboundSchema, DeploymentStream2DeploymentsImageUrl$outboundSchema, DeploymentStream2DeploymentsImageUrl$, DeploymentStream2Deployments2$inboundSchema, DeploymentStream2Deployments2$outboundSchema, DeploymentStream2Deployments2$, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema, DeploymentStream2DeploymentsRequestRequestBodyMessagesType$, DeploymentStream2Deployments1$inboundSchema, DeploymentStream2Deployments1$outboundSchema, DeploymentStream2Deployments1$, DeploymentStreamContentDeploymentsRequest2$inboundSchema, DeploymentStreamContentDeploymentsRequest2$outboundSchema, DeploymentStreamContentDeploymentsRequest2$, DeploymentStreamMessagesContent$inboundSchema, DeploymentStreamMessagesContent$outboundSchema, DeploymentStreamMessagesContent$, DeploymentStreamMessagesUserMessage$inboundSchema, DeploymentStreamMessagesUserMessage$outboundSchema, DeploymentStreamMessagesUserMessage$, DeploymentStreamMessagesDeploymentsRole$inboundSchema, DeploymentStreamMessagesDeploymentsRole$outboundSchema, DeploymentStreamMessagesDeploymentsRole$, DeploymentStreamMessagesSystemMessage$inboundSchema, DeploymentStreamMessagesSystemMessage$outboundSchema, DeploymentStreamMessagesSystemMessage$, DeploymentStreamMessagesRole$inboundSchema, DeploymentStreamMessagesRole$outboundSchema, DeploymentStreamMessagesRole$, DeploymentStreamMessagesDeveloperMessage$inboundSchema, DeploymentStreamMessagesDeveloperMessage$outboundSchema, DeploymentStreamMessagesDeveloperMessage$, DeploymentStreamMessages$inboundSchema, DeploymentStreamMessages$outboundSchema, DeploymentStreamMessages$, DeploymentStreamMetadata$inboundSchema, DeploymentStreamMetadata$outboundSchema, DeploymentStreamMetadata$, DeploymentStreamDocuments$inboundSchema, DeploymentStreamDocuments$outboundSchema, DeploymentStreamDocuments$, DeploymentStreamInvokeOptions$inboundSchema, DeploymentStreamInvokeOptions$outboundSchema, DeploymentStreamInvokeOptions$, DeploymentStreamRequestBody$inboundSchema, DeploymentStreamRequestBody$outboundSchema, DeploymentStreamRequestBody$, DeploymentStreamObject$inboundSchema, DeploymentStreamObject$outboundSchema, DeploymentStreamObject$, DeploymentStreamProvider$inboundSchema, DeploymentStreamProvider$outboundSchema, DeploymentStreamProvider$, DeploymentStreamMessageDeploymentsResponseRole$inboundSchema, DeploymentStreamMessageDeploymentsResponseRole$outboundSchema, DeploymentStreamMessageDeploymentsResponseRole$, DeploymentStreamMessage3$inboundSchema, DeploymentStreamMessage3$outboundSchema, DeploymentStreamMessage3$, DeploymentStreamMessageDeploymentsRole$inboundSchema, DeploymentStreamMessageDeploymentsRole$outboundSchema, DeploymentStreamMessageDeploymentsRole$, DeploymentStreamMessage2$inboundSchema, DeploymentStreamMessage2$outboundSchema, DeploymentStreamMessage2$, DeploymentStreamMessageRole$inboundSchema, DeploymentStreamMessageRole$outboundSchema, DeploymentStreamMessageRole$, DeploymentStreamMessageType$inboundSchema, DeploymentStreamMessageType$outboundSchema, DeploymentStreamMessageType$, DeploymentStreamMessageFunction$inboundSchema, DeploymentStreamMessageFunction$outboundSchema, DeploymentStreamMessageFunction$, DeploymentStreamMessageToolCalls$inboundSchema, DeploymentStreamMessageToolCalls$outboundSchema, DeploymentStreamMessageToolCalls$, DeploymentStreamMessage1$inboundSchema, DeploymentStreamMessage1$outboundSchema, DeploymentStreamMessage1$, DeploymentStreamMessage$inboundSchema, DeploymentStreamMessage$outboundSchema, DeploymentStreamMessage$, DeploymentStreamChoices$inboundSchema, DeploymentStreamChoices$outboundSchema, DeploymentStreamChoices$, DeploymentStreamDeploymentsMetadata$inboundSchema, DeploymentStreamDeploymentsMetadata$outboundSchema, DeploymentStreamDeploymentsMetadata$, DeploymentStreamRetrievals$inboundSchema, DeploymentStreamRetrievals$outboundSchema, DeploymentStreamRetrievals$, DeploymentStreamData$inboundSchema, DeploymentStreamData$outboundSchema, DeploymentStreamData$, DeploymentStreamResponseBody$inboundSchema, DeploymentStreamResponseBody$outboundSchema, DeploymentStreamResponseBody$;
|
|
41721
|
+
var init_deploymentstream = __esm(() => {
|
|
41541
41722
|
init_lib();
|
|
41542
41723
|
init_primitives();
|
|
41543
|
-
|
|
41544
|
-
|
|
41545
|
-
KnowledgeDatasource: "knowledge_datasource",
|
|
41546
|
-
Batch: "batch"
|
|
41724
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role = {
|
|
41725
|
+
Tool: "tool"
|
|
41547
41726
|
};
|
|
41548
|
-
|
|
41549
|
-
|
|
41550
|
-
}
|
|
41551
|
-
|
|
41552
|
-
|
|
41553
|
-
|
|
41554
|
-
|
|
41555
|
-
|
|
41556
|
-
|
|
41557
|
-
|
|
41558
|
-
|
|
41559
|
-
|
|
41727
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType = {
|
|
41728
|
+
Refusal: "refusal"
|
|
41729
|
+
};
|
|
41730
|
+
DeploymentStream2DeploymentsRequestRequestBodyType = {
|
|
41731
|
+
Text: "text"
|
|
41732
|
+
};
|
|
41733
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole = {
|
|
41734
|
+
Assistant: "assistant"
|
|
41735
|
+
};
|
|
41736
|
+
DeploymentStreamPrefixMessagesType = {
|
|
41737
|
+
Function: "function"
|
|
41738
|
+
};
|
|
41739
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRole = {
|
|
41740
|
+
User: "user"
|
|
41741
|
+
};
|
|
41742
|
+
DeploymentStream2DeploymentsRequestType = {
|
|
41743
|
+
InputAudio: "input_audio"
|
|
41744
|
+
};
|
|
41745
|
+
DeploymentStream2Format = {
|
|
41746
|
+
Mp3: "mp3",
|
|
41747
|
+
Wav: "wav"
|
|
41748
|
+
};
|
|
41749
|
+
DeploymentStream2DeploymentsType = {
|
|
41750
|
+
ImageUrl: "image_url"
|
|
41751
|
+
};
|
|
41752
|
+
DeploymentStream2Detail = {
|
|
41753
|
+
Low: "low",
|
|
41754
|
+
High: "high",
|
|
41755
|
+
Auto: "auto"
|
|
41756
|
+
};
|
|
41757
|
+
DeploymentStream2Type = {
|
|
41758
|
+
Text: "text"
|
|
41759
|
+
};
|
|
41760
|
+
DeploymentStreamPrefixMessagesDeploymentsRole = {
|
|
41761
|
+
System: "system"
|
|
41762
|
+
};
|
|
41763
|
+
DeploymentStreamPrefixMessagesRole = {
|
|
41764
|
+
Developer: "developer"
|
|
41765
|
+
};
|
|
41766
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBody5Role = {
|
|
41767
|
+
Tool: "tool"
|
|
41768
|
+
};
|
|
41769
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType = {
|
|
41770
|
+
Refusal: "refusal"
|
|
41771
|
+
};
|
|
41772
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type = {
|
|
41773
|
+
Text: "text"
|
|
41774
|
+
};
|
|
41775
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBodyRole = {
|
|
41776
|
+
Assistant: "assistant"
|
|
41777
|
+
};
|
|
41778
|
+
DeploymentStreamMessagesType = {
|
|
41779
|
+
Function: "function"
|
|
41780
|
+
};
|
|
41781
|
+
DeploymentStreamMessagesDeploymentsRequestRole = {
|
|
41782
|
+
User: "user"
|
|
41783
|
+
};
|
|
41784
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType = {
|
|
41785
|
+
InputAudio: "input_audio"
|
|
41786
|
+
};
|
|
41787
|
+
DeploymentStream2DeploymentsFormat = {
|
|
41788
|
+
Mp3: "mp3",
|
|
41789
|
+
Wav: "wav"
|
|
41790
|
+
};
|
|
41791
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type = {
|
|
41792
|
+
ImageUrl: "image_url"
|
|
41793
|
+
};
|
|
41794
|
+
DeploymentStream2DeploymentsDetail = {
|
|
41795
|
+
Low: "low",
|
|
41796
|
+
High: "high",
|
|
41797
|
+
Auto: "auto"
|
|
41798
|
+
};
|
|
41799
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessagesType = {
|
|
41800
|
+
Text: "text"
|
|
41801
|
+
};
|
|
41802
|
+
DeploymentStreamMessagesDeploymentsRole = {
|
|
41803
|
+
System: "system"
|
|
41804
|
+
};
|
|
41805
|
+
DeploymentStreamMessagesRole = {
|
|
41806
|
+
Developer: "developer"
|
|
41807
|
+
};
|
|
41808
|
+
DeploymentStreamObject = {
|
|
41809
|
+
Chat: "chat",
|
|
41810
|
+
Completion: "completion",
|
|
41811
|
+
Image: "image",
|
|
41812
|
+
Vision: "vision"
|
|
41813
|
+
};
|
|
41814
|
+
DeploymentStreamProvider = {
|
|
41815
|
+
Cohere: "cohere",
|
|
41816
|
+
Openai: "openai",
|
|
41817
|
+
Anthropic: "anthropic",
|
|
41818
|
+
Huggingface: "huggingface",
|
|
41819
|
+
Replicate: "replicate",
|
|
41820
|
+
Google: "google",
|
|
41821
|
+
GoogleAi: "google-ai",
|
|
41822
|
+
Azure: "azure",
|
|
41823
|
+
Aws: "aws",
|
|
41824
|
+
Anyscale: "anyscale",
|
|
41825
|
+
Perplexity: "perplexity",
|
|
41826
|
+
Groq: "groq",
|
|
41827
|
+
Fal: "fal",
|
|
41828
|
+
Leonardoai: "leonardoai",
|
|
41829
|
+
Nvidia: "nvidia",
|
|
41830
|
+
Jina: "jina",
|
|
41831
|
+
Togetherai: "togetherai",
|
|
41832
|
+
Elevenlabs: "elevenlabs"
|
|
41833
|
+
};
|
|
41834
|
+
DeploymentStreamMessageDeploymentsResponseRole = {
|
|
41835
|
+
System: "system",
|
|
41836
|
+
Assistant: "assistant",
|
|
41837
|
+
User: "user",
|
|
41838
|
+
Exception: "exception",
|
|
41839
|
+
Tool: "tool",
|
|
41840
|
+
Prompt: "prompt",
|
|
41841
|
+
Correction: "correction",
|
|
41842
|
+
ExpectedOutput: "expected_output"
|
|
41843
|
+
};
|
|
41844
|
+
DeploymentStreamMessageDeploymentsRole = {
|
|
41845
|
+
System: "system",
|
|
41846
|
+
Assistant: "assistant",
|
|
41847
|
+
User: "user",
|
|
41848
|
+
Exception: "exception",
|
|
41849
|
+
Tool: "tool",
|
|
41850
|
+
Prompt: "prompt",
|
|
41851
|
+
Correction: "correction",
|
|
41852
|
+
ExpectedOutput: "expected_output"
|
|
41853
|
+
};
|
|
41854
|
+
DeploymentStreamMessageRole = {
|
|
41855
|
+
System: "system",
|
|
41856
|
+
Assistant: "assistant",
|
|
41857
|
+
User: "user",
|
|
41858
|
+
Exception: "exception",
|
|
41859
|
+
Tool: "tool",
|
|
41860
|
+
Prompt: "prompt",
|
|
41861
|
+
Correction: "correction",
|
|
41862
|
+
ExpectedOutput: "expected_output"
|
|
41863
|
+
};
|
|
41864
|
+
DeploymentStreamMessageType = {
|
|
41865
|
+
Function: "function"
|
|
41866
|
+
};
|
|
41867
|
+
DeploymentStreamGlobals$inboundSchema = objectType({
|
|
41868
|
+
environment: stringType().optional(),
|
|
41869
|
+
contactId: stringType().optional()
|
|
41870
|
+
});
|
|
41871
|
+
DeploymentStreamGlobals$outboundSchema = objectType({
|
|
41872
|
+
environment: stringType().optional(),
|
|
41873
|
+
contactId: stringType().optional()
|
|
41874
|
+
});
|
|
41875
|
+
((DeploymentStreamGlobals$) => {
|
|
41876
|
+
DeploymentStreamGlobals$.inboundSchema = DeploymentStreamGlobals$inboundSchema;
|
|
41877
|
+
DeploymentStreamGlobals$.outboundSchema = DeploymentStreamGlobals$outboundSchema;
|
|
41878
|
+
})(DeploymentStreamGlobals$ ||= {});
|
|
41879
|
+
DeploymentStreamInputs$inboundSchema = unionType([stringType(), numberType(), booleanType()]);
|
|
41880
|
+
DeploymentStreamInputs$outboundSchema = unionType([stringType(), numberType(), booleanType()]);
|
|
41881
|
+
((DeploymentStreamInputs$) => {
|
|
41882
|
+
DeploymentStreamInputs$.inboundSchema = DeploymentStreamInputs$inboundSchema;
|
|
41883
|
+
DeploymentStreamInputs$.outboundSchema = DeploymentStreamInputs$outboundSchema;
|
|
41884
|
+
})(DeploymentStreamInputs$ ||= {});
|
|
41885
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role);
|
|
41886
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
|
|
41887
|
+
((DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$) => {
|
|
41888
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
|
|
41889
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema;
|
|
41890
|
+
})(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$ ||= {});
|
|
41891
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
41892
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
41893
|
+
((DeploymentStreamPrefixMessagesDeploymentsRequestContent$) => {
|
|
41894
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema;
|
|
41895
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema;
|
|
41896
|
+
})(DeploymentStreamPrefixMessagesDeploymentsRequestContent$ ||= {});
|
|
41897
|
+
PrefixMessagesToolMessage$inboundSchema = objectType({
|
|
41898
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema,
|
|
41899
|
+
content: unionType([stringType(), arrayType(stringType())]),
|
|
41900
|
+
tool_call_id: stringType()
|
|
41901
|
+
}).transform((v2) => {
|
|
41902
|
+
return remap(v2, {
|
|
41903
|
+
tool_call_id: "toolCallId"
|
|
41904
|
+
});
|
|
41905
|
+
});
|
|
41906
|
+
PrefixMessagesToolMessage$outboundSchema = objectType({
|
|
41907
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema,
|
|
41908
|
+
content: unionType([stringType(), arrayType(stringType())]),
|
|
41909
|
+
toolCallId: stringType()
|
|
41910
|
+
}).transform((v2) => {
|
|
41911
|
+
return remap(v2, {
|
|
41912
|
+
toolCallId: "tool_call_id"
|
|
41913
|
+
});
|
|
41914
|
+
});
|
|
41915
|
+
((PrefixMessagesToolMessage$) => {
|
|
41916
|
+
PrefixMessagesToolMessage$.inboundSchema = PrefixMessagesToolMessage$inboundSchema;
|
|
41917
|
+
PrefixMessagesToolMessage$.outboundSchema = PrefixMessagesToolMessage$outboundSchema;
|
|
41918
|
+
})(PrefixMessagesToolMessage$ ||= {});
|
|
41919
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType);
|
|
41920
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
|
|
41921
|
+
((DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$) => {
|
|
41922
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
|
|
41923
|
+
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema;
|
|
41924
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$ ||= {});
|
|
41925
|
+
DeploymentStream2RefusalContentPart$inboundSchema = objectType({
|
|
41926
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
|
|
41927
|
+
refusal: stringType()
|
|
41928
|
+
});
|
|
41929
|
+
DeploymentStream2RefusalContentPart$outboundSchema = objectType({
|
|
41930
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
|
|
41931
|
+
refusal: stringType()
|
|
41932
|
+
});
|
|
41933
|
+
((DeploymentStream2RefusalContentPart$) => {
|
|
41934
|
+
DeploymentStream2RefusalContentPart$.inboundSchema = DeploymentStream2RefusalContentPart$inboundSchema;
|
|
41935
|
+
DeploymentStream2RefusalContentPart$.outboundSchema = DeploymentStream2RefusalContentPart$outboundSchema;
|
|
41936
|
+
})(DeploymentStream2RefusalContentPart$ ||= {});
|
|
41937
|
+
DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyType);
|
|
41938
|
+
DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
41939
|
+
((DeploymentStream2DeploymentsRequestRequestBodyType$) => {
|
|
41940
|
+
DeploymentStream2DeploymentsRequestRequestBodyType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
41941
|
+
DeploymentStream2DeploymentsRequestRequestBodyType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema;
|
|
41942
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyType$ ||= {});
|
|
41943
|
+
DeploymentStream2TextContentPart$inboundSchema = objectType({
|
|
41944
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
|
|
41945
|
+
text: stringType()
|
|
41946
|
+
});
|
|
41947
|
+
DeploymentStream2TextContentPart$outboundSchema = objectType({
|
|
41948
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
41949
|
+
text: stringType()
|
|
41950
|
+
});
|
|
41951
|
+
((DeploymentStream2TextContentPart$) => {
|
|
41952
|
+
DeploymentStream2TextContentPart$.inboundSchema = DeploymentStream2TextContentPart$inboundSchema;
|
|
41953
|
+
DeploymentStream2TextContentPart$.outboundSchema = DeploymentStream2TextContentPart$outboundSchema;
|
|
41954
|
+
})(DeploymentStream2TextContentPart$ ||= {});
|
|
41955
|
+
DeploymentStreamContentDeployments2$inboundSchema = unionType([
|
|
41956
|
+
lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
|
|
41957
|
+
lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
|
|
41958
|
+
]);
|
|
41959
|
+
DeploymentStreamContentDeployments2$outboundSchema = unionType([
|
|
41960
|
+
lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
|
|
41961
|
+
lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
|
|
41962
|
+
]);
|
|
41963
|
+
((DeploymentStreamContentDeployments2$) => {
|
|
41964
|
+
DeploymentStreamContentDeployments2$.inboundSchema = DeploymentStreamContentDeployments2$inboundSchema;
|
|
41965
|
+
DeploymentStreamContentDeployments2$.outboundSchema = DeploymentStreamContentDeployments2$outboundSchema;
|
|
41966
|
+
})(DeploymentStreamContentDeployments2$ ||= {});
|
|
41967
|
+
DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema = unionType([
|
|
41968
|
+
stringType(),
|
|
41969
|
+
arrayType(unionType([
|
|
41970
|
+
lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
|
|
41971
|
+
lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
|
|
41972
|
+
]))
|
|
41973
|
+
]);
|
|
41974
|
+
DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema = unionType([
|
|
41975
|
+
stringType(),
|
|
41976
|
+
arrayType(unionType([
|
|
41977
|
+
lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
|
|
41978
|
+
lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
|
|
41979
|
+
]))
|
|
41980
|
+
]);
|
|
41981
|
+
((DeploymentStreamPrefixMessagesDeploymentsContent$) => {
|
|
41982
|
+
DeploymentStreamPrefixMessagesDeploymentsContent$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema;
|
|
41983
|
+
DeploymentStreamPrefixMessagesDeploymentsContent$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema;
|
|
41984
|
+
})(DeploymentStreamPrefixMessagesDeploymentsContent$ ||= {});
|
|
41985
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole);
|
|
41986
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
|
|
41987
|
+
((DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$) => {
|
|
41988
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
|
|
41989
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema;
|
|
41990
|
+
})(DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$ ||= {});
|
|
41991
|
+
PrefixMessagesAudio$inboundSchema = objectType({
|
|
41992
|
+
id: stringType()
|
|
41993
|
+
});
|
|
41994
|
+
PrefixMessagesAudio$outboundSchema = objectType({
|
|
41995
|
+
id: stringType()
|
|
41996
|
+
});
|
|
41997
|
+
((PrefixMessagesAudio$) => {
|
|
41998
|
+
PrefixMessagesAudio$.inboundSchema = PrefixMessagesAudio$inboundSchema;
|
|
41999
|
+
PrefixMessagesAudio$.outboundSchema = PrefixMessagesAudio$outboundSchema;
|
|
42000
|
+
})(PrefixMessagesAudio$ ||= {});
|
|
42001
|
+
DeploymentStreamPrefixMessagesType$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesType);
|
|
42002
|
+
DeploymentStreamPrefixMessagesType$outboundSchema = DeploymentStreamPrefixMessagesType$inboundSchema;
|
|
42003
|
+
((DeploymentStreamPrefixMessagesType$) => {
|
|
42004
|
+
DeploymentStreamPrefixMessagesType$.inboundSchema = DeploymentStreamPrefixMessagesType$inboundSchema;
|
|
42005
|
+
DeploymentStreamPrefixMessagesType$.outboundSchema = DeploymentStreamPrefixMessagesType$outboundSchema;
|
|
42006
|
+
})(DeploymentStreamPrefixMessagesType$ ||= {});
|
|
42007
|
+
PrefixMessagesFunction$inboundSchema = objectType({
|
|
42008
|
+
name: stringType().optional(),
|
|
42009
|
+
arguments: stringType().optional()
|
|
42010
|
+
});
|
|
42011
|
+
PrefixMessagesFunction$outboundSchema = objectType({
|
|
42012
|
+
name: stringType().optional(),
|
|
42013
|
+
arguments: stringType().optional()
|
|
42014
|
+
});
|
|
42015
|
+
((PrefixMessagesFunction$) => {
|
|
42016
|
+
PrefixMessagesFunction$.inboundSchema = PrefixMessagesFunction$inboundSchema;
|
|
42017
|
+
PrefixMessagesFunction$.outboundSchema = PrefixMessagesFunction$outboundSchema;
|
|
42018
|
+
})(PrefixMessagesFunction$ ||= {});
|
|
42019
|
+
PrefixMessagesToolCalls$inboundSchema = objectType({
|
|
42020
|
+
id: stringType(),
|
|
42021
|
+
type: DeploymentStreamPrefixMessagesType$inboundSchema,
|
|
42022
|
+
function: lazyType(() => PrefixMessagesFunction$inboundSchema)
|
|
42023
|
+
});
|
|
42024
|
+
PrefixMessagesToolCalls$outboundSchema = objectType({
|
|
42025
|
+
id: stringType(),
|
|
42026
|
+
type: DeploymentStreamPrefixMessagesType$outboundSchema,
|
|
42027
|
+
function: lazyType(() => PrefixMessagesFunction$outboundSchema)
|
|
42028
|
+
});
|
|
42029
|
+
((PrefixMessagesToolCalls$) => {
|
|
42030
|
+
PrefixMessagesToolCalls$.inboundSchema = PrefixMessagesToolCalls$inboundSchema;
|
|
42031
|
+
PrefixMessagesToolCalls$.outboundSchema = PrefixMessagesToolCalls$outboundSchema;
|
|
42032
|
+
})(PrefixMessagesToolCalls$ ||= {});
|
|
42033
|
+
PrefixMessagesAssistantMessage$inboundSchema = objectType({
|
|
42034
|
+
content: unionType([
|
|
42035
|
+
stringType(),
|
|
42036
|
+
arrayType(unionType([
|
|
42037
|
+
lazyType(() => DeploymentStream2TextContentPart$inboundSchema),
|
|
42038
|
+
lazyType(() => DeploymentStream2RefusalContentPart$inboundSchema)
|
|
42039
|
+
]))
|
|
42040
|
+
]).optional(),
|
|
42041
|
+
refusal: nullableType(stringType()).optional(),
|
|
42042
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
|
|
42043
|
+
name: stringType().optional(),
|
|
42044
|
+
audio: nullableType(lazyType(() => PrefixMessagesAudio$inboundSchema)).optional(),
|
|
42045
|
+
tool_calls: arrayType(lazyType(() => PrefixMessagesToolCalls$inboundSchema)).optional()
|
|
42046
|
+
}).transform((v2) => {
|
|
42047
|
+
return remap(v2, {
|
|
42048
|
+
tool_calls: "toolCalls"
|
|
42049
|
+
});
|
|
42050
|
+
});
|
|
42051
|
+
PrefixMessagesAssistantMessage$outboundSchema = objectType({
|
|
42052
|
+
content: unionType([
|
|
42053
|
+
stringType(),
|
|
42054
|
+
arrayType(unionType([
|
|
42055
|
+
lazyType(() => DeploymentStream2TextContentPart$outboundSchema),
|
|
42056
|
+
lazyType(() => DeploymentStream2RefusalContentPart$outboundSchema)
|
|
42057
|
+
]))
|
|
42058
|
+
]).optional(),
|
|
42059
|
+
refusal: nullableType(stringType()).optional(),
|
|
42060
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
|
|
42061
|
+
name: stringType().optional(),
|
|
42062
|
+
audio: nullableType(lazyType(() => PrefixMessagesAudio$outboundSchema)).optional(),
|
|
42063
|
+
toolCalls: arrayType(lazyType(() => PrefixMessagesToolCalls$outboundSchema)).optional()
|
|
42064
|
+
}).transform((v2) => {
|
|
42065
|
+
return remap(v2, {
|
|
42066
|
+
toolCalls: "tool_calls"
|
|
42067
|
+
});
|
|
42068
|
+
});
|
|
42069
|
+
((PrefixMessagesAssistantMessage$) => {
|
|
42070
|
+
PrefixMessagesAssistantMessage$.inboundSchema = PrefixMessagesAssistantMessage$inboundSchema;
|
|
42071
|
+
PrefixMessagesAssistantMessage$.outboundSchema = PrefixMessagesAssistantMessage$outboundSchema;
|
|
42072
|
+
})(PrefixMessagesAssistantMessage$ ||= {});
|
|
42073
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRequestRole);
|
|
42074
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema;
|
|
42075
|
+
((DeploymentStreamPrefixMessagesDeploymentsRequestRole$) => {
|
|
42076
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema;
|
|
42077
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema;
|
|
42078
|
+
})(DeploymentStreamPrefixMessagesDeploymentsRequestRole$ ||= {});
|
|
42079
|
+
DeploymentStream2DeploymentsRequestType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestType);
|
|
42080
|
+
DeploymentStream2DeploymentsRequestType$outboundSchema = DeploymentStream2DeploymentsRequestType$inboundSchema;
|
|
42081
|
+
((DeploymentStream2DeploymentsRequestType$) => {
|
|
42082
|
+
DeploymentStream2DeploymentsRequestType$.inboundSchema = DeploymentStream2DeploymentsRequestType$inboundSchema;
|
|
42083
|
+
DeploymentStream2DeploymentsRequestType$.outboundSchema = DeploymentStream2DeploymentsRequestType$outboundSchema;
|
|
42084
|
+
})(DeploymentStream2DeploymentsRequestType$ ||= {});
|
|
42085
|
+
DeploymentStream2Format$inboundSchema = nativeEnumType(DeploymentStream2Format);
|
|
42086
|
+
DeploymentStream2Format$outboundSchema = DeploymentStream2Format$inboundSchema;
|
|
42087
|
+
((DeploymentStream2Format$) => {
|
|
42088
|
+
DeploymentStream2Format$.inboundSchema = DeploymentStream2Format$inboundSchema;
|
|
42089
|
+
DeploymentStream2Format$.outboundSchema = DeploymentStream2Format$outboundSchema;
|
|
42090
|
+
})(DeploymentStream2Format$ ||= {});
|
|
42091
|
+
DeploymentStream2InputAudio$inboundSchema = objectType({
|
|
42092
|
+
data: stringType(),
|
|
42093
|
+
format: DeploymentStream2Format$inboundSchema
|
|
42094
|
+
});
|
|
42095
|
+
DeploymentStream2InputAudio$outboundSchema = objectType({
|
|
42096
|
+
data: stringType(),
|
|
42097
|
+
format: DeploymentStream2Format$outboundSchema
|
|
42098
|
+
});
|
|
42099
|
+
((DeploymentStream2InputAudio$) => {
|
|
42100
|
+
DeploymentStream2InputAudio$.inboundSchema = DeploymentStream2InputAudio$inboundSchema;
|
|
42101
|
+
DeploymentStream2InputAudio$.outboundSchema = DeploymentStream2InputAudio$outboundSchema;
|
|
42102
|
+
})(DeploymentStream2InputAudio$ ||= {});
|
|
42103
|
+
DeploymentStream23$inboundSchema = objectType({
|
|
42104
|
+
type: DeploymentStream2DeploymentsRequestType$inboundSchema,
|
|
42105
|
+
input_audio: lazyType(() => DeploymentStream2InputAudio$inboundSchema)
|
|
42106
|
+
}).transform((v2) => {
|
|
42107
|
+
return remap(v2, {
|
|
42108
|
+
input_audio: "inputAudio"
|
|
42109
|
+
});
|
|
42110
|
+
});
|
|
42111
|
+
DeploymentStream23$outboundSchema = objectType({
|
|
42112
|
+
type: DeploymentStream2DeploymentsRequestType$outboundSchema,
|
|
42113
|
+
inputAudio: lazyType(() => DeploymentStream2InputAudio$outboundSchema)
|
|
42114
|
+
}).transform((v2) => {
|
|
42115
|
+
return remap(v2, {
|
|
42116
|
+
inputAudio: "input_audio"
|
|
42117
|
+
});
|
|
42118
|
+
});
|
|
42119
|
+
((DeploymentStream23$) => {
|
|
42120
|
+
DeploymentStream23$.inboundSchema = DeploymentStream23$inboundSchema;
|
|
42121
|
+
DeploymentStream23$.outboundSchema = DeploymentStream23$outboundSchema;
|
|
42122
|
+
})(DeploymentStream23$ ||= {});
|
|
42123
|
+
DeploymentStream2DeploymentsType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsType);
|
|
42124
|
+
DeploymentStream2DeploymentsType$outboundSchema = DeploymentStream2DeploymentsType$inboundSchema;
|
|
42125
|
+
((DeploymentStream2DeploymentsType$) => {
|
|
42126
|
+
DeploymentStream2DeploymentsType$.inboundSchema = DeploymentStream2DeploymentsType$inboundSchema;
|
|
42127
|
+
DeploymentStream2DeploymentsType$.outboundSchema = DeploymentStream2DeploymentsType$outboundSchema;
|
|
42128
|
+
})(DeploymentStream2DeploymentsType$ ||= {});
|
|
42129
|
+
DeploymentStream2Detail$inboundSchema = nativeEnumType(DeploymentStream2Detail);
|
|
42130
|
+
DeploymentStream2Detail$outboundSchema = DeploymentStream2Detail$inboundSchema;
|
|
42131
|
+
((DeploymentStream2Detail$) => {
|
|
42132
|
+
DeploymentStream2Detail$.inboundSchema = DeploymentStream2Detail$inboundSchema;
|
|
42133
|
+
DeploymentStream2Detail$.outboundSchema = DeploymentStream2Detail$outboundSchema;
|
|
42134
|
+
})(DeploymentStream2Detail$ ||= {});
|
|
42135
|
+
DeploymentStream2ImageUrl$inboundSchema = objectType({
|
|
42136
|
+
url: stringType(),
|
|
42137
|
+
detail: DeploymentStream2Detail$inboundSchema.optional()
|
|
42138
|
+
});
|
|
42139
|
+
DeploymentStream2ImageUrl$outboundSchema = objectType({
|
|
42140
|
+
url: stringType(),
|
|
42141
|
+
detail: DeploymentStream2Detail$outboundSchema.optional()
|
|
42142
|
+
});
|
|
42143
|
+
((DeploymentStream2ImageUrl$) => {
|
|
42144
|
+
DeploymentStream2ImageUrl$.inboundSchema = DeploymentStream2ImageUrl$inboundSchema;
|
|
42145
|
+
DeploymentStream2ImageUrl$.outboundSchema = DeploymentStream2ImageUrl$outboundSchema;
|
|
42146
|
+
})(DeploymentStream2ImageUrl$ ||= {});
|
|
42147
|
+
DeploymentStream22$inboundSchema = objectType({
|
|
42148
|
+
type: DeploymentStream2DeploymentsType$inboundSchema,
|
|
42149
|
+
image_url: lazyType(() => DeploymentStream2ImageUrl$inboundSchema)
|
|
42150
|
+
}).transform((v2) => {
|
|
42151
|
+
return remap(v2, {
|
|
42152
|
+
image_url: "imageUrl"
|
|
42153
|
+
});
|
|
42154
|
+
});
|
|
42155
|
+
DeploymentStream22$outboundSchema = objectType({
|
|
42156
|
+
type: DeploymentStream2DeploymentsType$outboundSchema,
|
|
42157
|
+
imageUrl: lazyType(() => DeploymentStream2ImageUrl$outboundSchema)
|
|
42158
|
+
}).transform((v2) => {
|
|
42159
|
+
return remap(v2, {
|
|
42160
|
+
imageUrl: "image_url"
|
|
42161
|
+
});
|
|
42162
|
+
});
|
|
42163
|
+
((DeploymentStream22$) => {
|
|
42164
|
+
DeploymentStream22$.inboundSchema = DeploymentStream22$inboundSchema;
|
|
42165
|
+
DeploymentStream22$.outboundSchema = DeploymentStream22$outboundSchema;
|
|
42166
|
+
})(DeploymentStream22$ ||= {});
|
|
42167
|
+
DeploymentStream2Type$inboundSchema = nativeEnumType(DeploymentStream2Type);
|
|
42168
|
+
DeploymentStream2Type$outboundSchema = DeploymentStream2Type$inboundSchema;
|
|
42169
|
+
((DeploymentStream2Type$) => {
|
|
42170
|
+
DeploymentStream2Type$.inboundSchema = DeploymentStream2Type$inboundSchema;
|
|
42171
|
+
DeploymentStream2Type$.outboundSchema = DeploymentStream2Type$outboundSchema;
|
|
42172
|
+
})(DeploymentStream2Type$ ||= {});
|
|
42173
|
+
DeploymentStream21$inboundSchema = objectType({
|
|
42174
|
+
type: DeploymentStream2Type$inboundSchema,
|
|
42175
|
+
text: stringType()
|
|
42176
|
+
});
|
|
42177
|
+
DeploymentStream21$outboundSchema = objectType({
|
|
42178
|
+
type: DeploymentStream2Type$outboundSchema,
|
|
42179
|
+
text: stringType()
|
|
42180
|
+
});
|
|
42181
|
+
((DeploymentStream21$) => {
|
|
42182
|
+
DeploymentStream21$.inboundSchema = DeploymentStream21$inboundSchema;
|
|
42183
|
+
DeploymentStream21$.outboundSchema = DeploymentStream21$outboundSchema;
|
|
42184
|
+
})(DeploymentStream21$ ||= {});
|
|
42185
|
+
DeploymentStreamContent2$inboundSchema = unionType([
|
|
42186
|
+
lazyType(() => DeploymentStream21$inboundSchema),
|
|
42187
|
+
lazyType(() => DeploymentStream22$inboundSchema),
|
|
42188
|
+
lazyType(() => DeploymentStream23$inboundSchema)
|
|
42189
|
+
]);
|
|
42190
|
+
DeploymentStreamContent2$outboundSchema = unionType([
|
|
42191
|
+
lazyType(() => DeploymentStream21$outboundSchema),
|
|
42192
|
+
lazyType(() => DeploymentStream22$outboundSchema),
|
|
42193
|
+
lazyType(() => DeploymentStream23$outboundSchema)
|
|
42194
|
+
]);
|
|
42195
|
+
((DeploymentStreamContent2$) => {
|
|
42196
|
+
DeploymentStreamContent2$.inboundSchema = DeploymentStreamContent2$inboundSchema;
|
|
42197
|
+
DeploymentStreamContent2$.outboundSchema = DeploymentStreamContent2$outboundSchema;
|
|
42198
|
+
})(DeploymentStreamContent2$ ||= {});
|
|
42199
|
+
DeploymentStreamPrefixMessagesContent$inboundSchema = unionType([
|
|
42200
|
+
stringType(),
|
|
42201
|
+
arrayType(unionType([
|
|
42202
|
+
lazyType(() => DeploymentStream21$inboundSchema),
|
|
42203
|
+
lazyType(() => DeploymentStream22$inboundSchema),
|
|
42204
|
+
lazyType(() => DeploymentStream23$inboundSchema)
|
|
42205
|
+
]))
|
|
42206
|
+
]);
|
|
42207
|
+
DeploymentStreamPrefixMessagesContent$outboundSchema = unionType([
|
|
42208
|
+
stringType(),
|
|
42209
|
+
arrayType(unionType([
|
|
42210
|
+
lazyType(() => DeploymentStream21$outboundSchema),
|
|
42211
|
+
lazyType(() => DeploymentStream22$outboundSchema),
|
|
42212
|
+
lazyType(() => DeploymentStream23$outboundSchema)
|
|
42213
|
+
]))
|
|
42214
|
+
]);
|
|
42215
|
+
((DeploymentStreamPrefixMessagesContent$) => {
|
|
42216
|
+
DeploymentStreamPrefixMessagesContent$.inboundSchema = DeploymentStreamPrefixMessagesContent$inboundSchema;
|
|
42217
|
+
DeploymentStreamPrefixMessagesContent$.outboundSchema = DeploymentStreamPrefixMessagesContent$outboundSchema;
|
|
42218
|
+
})(DeploymentStreamPrefixMessagesContent$ ||= {});
|
|
42219
|
+
PrefixMessagesUserMessage$inboundSchema = objectType({
|
|
42220
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema,
|
|
42221
|
+
name: stringType().optional(),
|
|
42222
|
+
content: unionType([
|
|
42223
|
+
stringType(),
|
|
42224
|
+
arrayType(unionType([
|
|
42225
|
+
lazyType(() => DeploymentStream21$inboundSchema),
|
|
42226
|
+
lazyType(() => DeploymentStream22$inboundSchema),
|
|
42227
|
+
lazyType(() => DeploymentStream23$inboundSchema)
|
|
42228
|
+
]))
|
|
42229
|
+
])
|
|
42230
|
+
});
|
|
42231
|
+
PrefixMessagesUserMessage$outboundSchema = objectType({
|
|
42232
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema,
|
|
42233
|
+
name: stringType().optional(),
|
|
42234
|
+
content: unionType([
|
|
42235
|
+
stringType(),
|
|
42236
|
+
arrayType(unionType([
|
|
42237
|
+
lazyType(() => DeploymentStream21$outboundSchema),
|
|
42238
|
+
lazyType(() => DeploymentStream22$outboundSchema),
|
|
42239
|
+
lazyType(() => DeploymentStream23$outboundSchema)
|
|
42240
|
+
]))
|
|
42241
|
+
])
|
|
42242
|
+
});
|
|
42243
|
+
((PrefixMessagesUserMessage$) => {
|
|
42244
|
+
PrefixMessagesUserMessage$.inboundSchema = PrefixMessagesUserMessage$inboundSchema;
|
|
42245
|
+
PrefixMessagesUserMessage$.outboundSchema = PrefixMessagesUserMessage$outboundSchema;
|
|
42246
|
+
})(PrefixMessagesUserMessage$ ||= {});
|
|
42247
|
+
DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesDeploymentsRole);
|
|
42248
|
+
DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema;
|
|
42249
|
+
((DeploymentStreamPrefixMessagesDeploymentsRole$) => {
|
|
42250
|
+
DeploymentStreamPrefixMessagesDeploymentsRole$.inboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema;
|
|
42251
|
+
DeploymentStreamPrefixMessagesDeploymentsRole$.outboundSchema = DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema;
|
|
42252
|
+
})(DeploymentStreamPrefixMessagesDeploymentsRole$ ||= {});
|
|
42253
|
+
PrefixMessagesSystemMessage$inboundSchema = objectType({
|
|
42254
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema,
|
|
42255
|
+
content: stringType(),
|
|
42256
|
+
name: stringType().optional()
|
|
42257
|
+
});
|
|
42258
|
+
PrefixMessagesSystemMessage$outboundSchema = objectType({
|
|
42259
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema,
|
|
42260
|
+
content: stringType(),
|
|
42261
|
+
name: stringType().optional()
|
|
42262
|
+
});
|
|
42263
|
+
((PrefixMessagesSystemMessage$) => {
|
|
42264
|
+
PrefixMessagesSystemMessage$.inboundSchema = PrefixMessagesSystemMessage$inboundSchema;
|
|
42265
|
+
PrefixMessagesSystemMessage$.outboundSchema = PrefixMessagesSystemMessage$outboundSchema;
|
|
42266
|
+
})(PrefixMessagesSystemMessage$ ||= {});
|
|
42267
|
+
DeploymentStreamPrefixMessagesRole$inboundSchema = nativeEnumType(DeploymentStreamPrefixMessagesRole);
|
|
42268
|
+
DeploymentStreamPrefixMessagesRole$outboundSchema = DeploymentStreamPrefixMessagesRole$inboundSchema;
|
|
42269
|
+
((DeploymentStreamPrefixMessagesRole$) => {
|
|
42270
|
+
DeploymentStreamPrefixMessagesRole$.inboundSchema = DeploymentStreamPrefixMessagesRole$inboundSchema;
|
|
42271
|
+
DeploymentStreamPrefixMessagesRole$.outboundSchema = DeploymentStreamPrefixMessagesRole$outboundSchema;
|
|
42272
|
+
})(DeploymentStreamPrefixMessagesRole$ ||= {});
|
|
42273
|
+
PrefixMessagesDeveloperMessage$inboundSchema = objectType({
|
|
42274
|
+
role: DeploymentStreamPrefixMessagesRole$inboundSchema,
|
|
42275
|
+
content: stringType(),
|
|
42276
|
+
name: stringType().optional()
|
|
42277
|
+
});
|
|
42278
|
+
PrefixMessagesDeveloperMessage$outboundSchema = objectType({
|
|
42279
|
+
role: DeploymentStreamPrefixMessagesRole$outboundSchema,
|
|
42280
|
+
content: stringType(),
|
|
42281
|
+
name: stringType().optional()
|
|
42282
|
+
});
|
|
42283
|
+
((PrefixMessagesDeveloperMessage$) => {
|
|
42284
|
+
PrefixMessagesDeveloperMessage$.inboundSchema = PrefixMessagesDeveloperMessage$inboundSchema;
|
|
42285
|
+
PrefixMessagesDeveloperMessage$.outboundSchema = PrefixMessagesDeveloperMessage$outboundSchema;
|
|
42286
|
+
})(PrefixMessagesDeveloperMessage$ ||= {});
|
|
42287
|
+
DeploymentStreamPrefixMessages$inboundSchema = unionType([
|
|
42288
|
+
lazyType(() => PrefixMessagesDeveloperMessage$inboundSchema),
|
|
42289
|
+
lazyType(() => PrefixMessagesSystemMessage$inboundSchema),
|
|
42290
|
+
lazyType(() => PrefixMessagesUserMessage$inboundSchema),
|
|
42291
|
+
lazyType(() => PrefixMessagesToolMessage$inboundSchema),
|
|
42292
|
+
lazyType(() => PrefixMessagesAssistantMessage$inboundSchema)
|
|
42293
|
+
]);
|
|
42294
|
+
DeploymentStreamPrefixMessages$outboundSchema = unionType([
|
|
42295
|
+
lazyType(() => PrefixMessagesDeveloperMessage$outboundSchema),
|
|
42296
|
+
lazyType(() => PrefixMessagesSystemMessage$outboundSchema),
|
|
42297
|
+
lazyType(() => PrefixMessagesUserMessage$outboundSchema),
|
|
42298
|
+
lazyType(() => PrefixMessagesToolMessage$outboundSchema),
|
|
42299
|
+
lazyType(() => PrefixMessagesAssistantMessage$outboundSchema)
|
|
42300
|
+
]);
|
|
42301
|
+
((DeploymentStreamPrefixMessages$) => {
|
|
42302
|
+
DeploymentStreamPrefixMessages$.inboundSchema = DeploymentStreamPrefixMessages$inboundSchema;
|
|
42303
|
+
DeploymentStreamPrefixMessages$.outboundSchema = DeploymentStreamPrefixMessages$outboundSchema;
|
|
42304
|
+
})(DeploymentStreamPrefixMessages$ ||= {});
|
|
42305
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRequestBody5Role);
|
|
42306
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
|
|
42307
|
+
((DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$) => {
|
|
42308
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema;
|
|
42309
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema;
|
|
42310
|
+
})(DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$ ||= {});
|
|
42311
|
+
DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
42312
|
+
DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
42313
|
+
((DeploymentStreamMessagesDeploymentsRequestContent$) => {
|
|
42314
|
+
DeploymentStreamMessagesDeploymentsRequestContent$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema;
|
|
42315
|
+
DeploymentStreamMessagesDeploymentsRequestContent$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema;
|
|
42316
|
+
})(DeploymentStreamMessagesDeploymentsRequestContent$ ||= {});
|
|
42317
|
+
DeploymentStreamMessagesToolMessage$inboundSchema = objectType({
|
|
42318
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema,
|
|
42319
|
+
content: unionType([stringType(), arrayType(stringType())]),
|
|
42320
|
+
tool_call_id: stringType()
|
|
42321
|
+
}).transform((v2) => {
|
|
42322
|
+
return remap(v2, {
|
|
42323
|
+
tool_call_id: "toolCallId"
|
|
42324
|
+
});
|
|
42325
|
+
});
|
|
42326
|
+
DeploymentStreamMessagesToolMessage$outboundSchema = objectType({
|
|
42327
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema,
|
|
42328
|
+
content: unionType([stringType(), arrayType(stringType())]),
|
|
42329
|
+
toolCallId: stringType()
|
|
42330
|
+
}).transform((v2) => {
|
|
42331
|
+
return remap(v2, {
|
|
42332
|
+
toolCallId: "tool_call_id"
|
|
42333
|
+
});
|
|
42334
|
+
});
|
|
42335
|
+
((DeploymentStreamMessagesToolMessage$) => {
|
|
42336
|
+
DeploymentStreamMessagesToolMessage$.inboundSchema = DeploymentStreamMessagesToolMessage$inboundSchema;
|
|
42337
|
+
DeploymentStreamMessagesToolMessage$.outboundSchema = DeploymentStreamMessagesToolMessage$outboundSchema;
|
|
42338
|
+
})(DeploymentStreamMessagesToolMessage$ ||= {});
|
|
42339
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType);
|
|
42340
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
|
|
42341
|
+
((DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$) => {
|
|
42342
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
|
|
42343
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema;
|
|
42344
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$ ||= {});
|
|
42345
|
+
DeploymentStream2DeploymentsRefusalContentPart$inboundSchema = objectType({
|
|
42346
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
|
|
42347
|
+
refusal: stringType()
|
|
42348
|
+
});
|
|
42349
|
+
DeploymentStream2DeploymentsRefusalContentPart$outboundSchema = objectType({
|
|
42350
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
|
|
42351
|
+
refusal: stringType()
|
|
42352
|
+
});
|
|
42353
|
+
((DeploymentStream2DeploymentsRefusalContentPart$) => {
|
|
42354
|
+
DeploymentStream2DeploymentsRefusalContentPart$.inboundSchema = DeploymentStream2DeploymentsRefusalContentPart$inboundSchema;
|
|
42355
|
+
DeploymentStream2DeploymentsRefusalContentPart$.outboundSchema = DeploymentStream2DeploymentsRefusalContentPart$outboundSchema;
|
|
42356
|
+
})(DeploymentStream2DeploymentsRefusalContentPart$ ||= {});
|
|
42357
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages4Type);
|
|
42358
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema;
|
|
42359
|
+
((DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$) => {
|
|
42360
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema;
|
|
42361
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema;
|
|
42362
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$ ||= {});
|
|
42363
|
+
DeploymentStream2DeploymentsTextContentPart$inboundSchema = objectType({
|
|
42364
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema,
|
|
42365
|
+
text: stringType()
|
|
42366
|
+
});
|
|
42367
|
+
DeploymentStream2DeploymentsTextContentPart$outboundSchema = objectType({
|
|
42368
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema,
|
|
42369
|
+
text: stringType()
|
|
42370
|
+
});
|
|
42371
|
+
((DeploymentStream2DeploymentsTextContentPart$) => {
|
|
42372
|
+
DeploymentStream2DeploymentsTextContentPart$.inboundSchema = DeploymentStream2DeploymentsTextContentPart$inboundSchema;
|
|
42373
|
+
DeploymentStream2DeploymentsTextContentPart$.outboundSchema = DeploymentStream2DeploymentsTextContentPart$outboundSchema;
|
|
42374
|
+
})(DeploymentStream2DeploymentsTextContentPart$ ||= {});
|
|
42375
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema = unionType([
|
|
42376
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
|
|
42377
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
|
|
42378
|
+
]);
|
|
42379
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema = unionType([
|
|
42380
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
|
|
42381
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
|
|
42382
|
+
]);
|
|
42383
|
+
((DeploymentStreamContentDeploymentsRequestRequestBody2$) => {
|
|
42384
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$.inboundSchema = DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema;
|
|
42385
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$.outboundSchema = DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema;
|
|
42386
|
+
})(DeploymentStreamContentDeploymentsRequestRequestBody2$ ||= {});
|
|
42387
|
+
DeploymentStreamMessagesDeploymentsContent$inboundSchema = unionType([
|
|
42388
|
+
stringType(),
|
|
42389
|
+
arrayType(unionType([
|
|
42390
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
|
|
42391
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
|
|
42392
|
+
]))
|
|
42393
|
+
]);
|
|
42394
|
+
DeploymentStreamMessagesDeploymentsContent$outboundSchema = unionType([
|
|
42395
|
+
stringType(),
|
|
42396
|
+
arrayType(unionType([
|
|
42397
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
|
|
42398
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
|
|
42399
|
+
]))
|
|
42400
|
+
]);
|
|
42401
|
+
((DeploymentStreamMessagesDeploymentsContent$) => {
|
|
42402
|
+
DeploymentStreamMessagesDeploymentsContent$.inboundSchema = DeploymentStreamMessagesDeploymentsContent$inboundSchema;
|
|
42403
|
+
DeploymentStreamMessagesDeploymentsContent$.outboundSchema = DeploymentStreamMessagesDeploymentsContent$outboundSchema;
|
|
42404
|
+
})(DeploymentStreamMessagesDeploymentsContent$ ||= {});
|
|
42405
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRequestBodyRole);
|
|
42406
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
|
|
42407
|
+
((DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$) => {
|
|
42408
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
|
|
42409
|
+
DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema;
|
|
42410
|
+
})(DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$ ||= {});
|
|
42411
|
+
DeploymentStreamMessagesAudio$inboundSchema = objectType({
|
|
42412
|
+
id: stringType()
|
|
42413
|
+
});
|
|
42414
|
+
DeploymentStreamMessagesAudio$outboundSchema = objectType({
|
|
42415
|
+
id: stringType()
|
|
42416
|
+
});
|
|
42417
|
+
((DeploymentStreamMessagesAudio$) => {
|
|
42418
|
+
DeploymentStreamMessagesAudio$.inboundSchema = DeploymentStreamMessagesAudio$inboundSchema;
|
|
42419
|
+
DeploymentStreamMessagesAudio$.outboundSchema = DeploymentStreamMessagesAudio$outboundSchema;
|
|
42420
|
+
})(DeploymentStreamMessagesAudio$ ||= {});
|
|
42421
|
+
DeploymentStreamMessagesType$inboundSchema = nativeEnumType(DeploymentStreamMessagesType);
|
|
42422
|
+
DeploymentStreamMessagesType$outboundSchema = DeploymentStreamMessagesType$inboundSchema;
|
|
42423
|
+
((DeploymentStreamMessagesType$) => {
|
|
42424
|
+
DeploymentStreamMessagesType$.inboundSchema = DeploymentStreamMessagesType$inboundSchema;
|
|
42425
|
+
DeploymentStreamMessagesType$.outboundSchema = DeploymentStreamMessagesType$outboundSchema;
|
|
42426
|
+
})(DeploymentStreamMessagesType$ ||= {});
|
|
42427
|
+
DeploymentStreamMessagesFunction$inboundSchema = objectType({
|
|
42428
|
+
name: stringType().optional(),
|
|
42429
|
+
arguments: stringType().optional()
|
|
42430
|
+
});
|
|
42431
|
+
DeploymentStreamMessagesFunction$outboundSchema = objectType({
|
|
42432
|
+
name: stringType().optional(),
|
|
42433
|
+
arguments: stringType().optional()
|
|
42434
|
+
});
|
|
42435
|
+
((DeploymentStreamMessagesFunction$) => {
|
|
42436
|
+
DeploymentStreamMessagesFunction$.inboundSchema = DeploymentStreamMessagesFunction$inboundSchema;
|
|
42437
|
+
DeploymentStreamMessagesFunction$.outboundSchema = DeploymentStreamMessagesFunction$outboundSchema;
|
|
42438
|
+
})(DeploymentStreamMessagesFunction$ ||= {});
|
|
42439
|
+
DeploymentStreamMessagesToolCalls$inboundSchema = objectType({
|
|
42440
|
+
id: stringType(),
|
|
42441
|
+
type: DeploymentStreamMessagesType$inboundSchema,
|
|
42442
|
+
function: lazyType(() => DeploymentStreamMessagesFunction$inboundSchema)
|
|
42443
|
+
});
|
|
42444
|
+
DeploymentStreamMessagesToolCalls$outboundSchema = objectType({
|
|
42445
|
+
id: stringType(),
|
|
42446
|
+
type: DeploymentStreamMessagesType$outboundSchema,
|
|
42447
|
+
function: lazyType(() => DeploymentStreamMessagesFunction$outboundSchema)
|
|
42448
|
+
});
|
|
42449
|
+
((DeploymentStreamMessagesToolCalls$) => {
|
|
42450
|
+
DeploymentStreamMessagesToolCalls$.inboundSchema = DeploymentStreamMessagesToolCalls$inboundSchema;
|
|
42451
|
+
DeploymentStreamMessagesToolCalls$.outboundSchema = DeploymentStreamMessagesToolCalls$outboundSchema;
|
|
42452
|
+
})(DeploymentStreamMessagesToolCalls$ ||= {});
|
|
42453
|
+
DeploymentStreamMessagesAssistantMessage$inboundSchema = objectType({
|
|
42454
|
+
content: unionType([
|
|
42455
|
+
stringType(),
|
|
42456
|
+
arrayType(unionType([
|
|
42457
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$inboundSchema),
|
|
42458
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$inboundSchema)
|
|
42459
|
+
]))
|
|
42460
|
+
]).optional(),
|
|
42461
|
+
refusal: nullableType(stringType()).optional(),
|
|
42462
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
|
|
42463
|
+
name: stringType().optional(),
|
|
42464
|
+
audio: nullableType(lazyType(() => DeploymentStreamMessagesAudio$inboundSchema)).optional(),
|
|
42465
|
+
tool_calls: arrayType(lazyType(() => DeploymentStreamMessagesToolCalls$inboundSchema)).optional()
|
|
42466
|
+
}).transform((v2) => {
|
|
42467
|
+
return remap(v2, {
|
|
42468
|
+
tool_calls: "toolCalls"
|
|
42469
|
+
});
|
|
42470
|
+
});
|
|
42471
|
+
DeploymentStreamMessagesAssistantMessage$outboundSchema = objectType({
|
|
42472
|
+
content: unionType([
|
|
42473
|
+
stringType(),
|
|
42474
|
+
arrayType(unionType([
|
|
42475
|
+
lazyType(() => DeploymentStream2DeploymentsTextContentPart$outboundSchema),
|
|
42476
|
+
lazyType(() => DeploymentStream2DeploymentsRefusalContentPart$outboundSchema)
|
|
42477
|
+
]))
|
|
42478
|
+
]).optional(),
|
|
42479
|
+
refusal: nullableType(stringType()).optional(),
|
|
42480
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
|
|
42481
|
+
name: stringType().optional(),
|
|
42482
|
+
audio: nullableType(lazyType(() => DeploymentStreamMessagesAudio$outboundSchema)).optional(),
|
|
42483
|
+
toolCalls: arrayType(lazyType(() => DeploymentStreamMessagesToolCalls$outboundSchema)).optional()
|
|
42484
|
+
}).transform((v2) => {
|
|
42485
|
+
return remap(v2, {
|
|
42486
|
+
toolCalls: "tool_calls"
|
|
42487
|
+
});
|
|
42488
|
+
});
|
|
42489
|
+
((DeploymentStreamMessagesAssistantMessage$) => {
|
|
42490
|
+
DeploymentStreamMessagesAssistantMessage$.inboundSchema = DeploymentStreamMessagesAssistantMessage$inboundSchema;
|
|
42491
|
+
DeploymentStreamMessagesAssistantMessage$.outboundSchema = DeploymentStreamMessagesAssistantMessage$outboundSchema;
|
|
42492
|
+
})(DeploymentStreamMessagesAssistantMessage$ ||= {});
|
|
42493
|
+
DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRequestRole);
|
|
42494
|
+
DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema;
|
|
42495
|
+
((DeploymentStreamMessagesDeploymentsRequestRole$) => {
|
|
42496
|
+
DeploymentStreamMessagesDeploymentsRequestRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema;
|
|
42497
|
+
DeploymentStreamMessagesDeploymentsRequestRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema;
|
|
42498
|
+
})(DeploymentStreamMessagesDeploymentsRequestRole$ ||= {});
|
|
42499
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType);
|
|
42500
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
|
|
42501
|
+
((DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$) => {
|
|
42502
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
|
|
42503
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema;
|
|
42504
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$ ||= {});
|
|
42505
|
+
DeploymentStream2DeploymentsFormat$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsFormat);
|
|
42506
|
+
DeploymentStream2DeploymentsFormat$outboundSchema = DeploymentStream2DeploymentsFormat$inboundSchema;
|
|
42507
|
+
((DeploymentStream2DeploymentsFormat$) => {
|
|
42508
|
+
DeploymentStream2DeploymentsFormat$.inboundSchema = DeploymentStream2DeploymentsFormat$inboundSchema;
|
|
42509
|
+
DeploymentStream2DeploymentsFormat$.outboundSchema = DeploymentStream2DeploymentsFormat$outboundSchema;
|
|
42510
|
+
})(DeploymentStream2DeploymentsFormat$ ||= {});
|
|
42511
|
+
DeploymentStream2DeploymentsInputAudio$inboundSchema = objectType({
|
|
42512
|
+
data: stringType(),
|
|
42513
|
+
format: DeploymentStream2DeploymentsFormat$inboundSchema
|
|
42514
|
+
});
|
|
42515
|
+
DeploymentStream2DeploymentsInputAudio$outboundSchema = objectType({
|
|
42516
|
+
data: stringType(),
|
|
42517
|
+
format: DeploymentStream2DeploymentsFormat$outboundSchema
|
|
42518
|
+
});
|
|
42519
|
+
((DeploymentStream2DeploymentsInputAudio$) => {
|
|
42520
|
+
DeploymentStream2DeploymentsInputAudio$.inboundSchema = DeploymentStream2DeploymentsInputAudio$inboundSchema;
|
|
42521
|
+
DeploymentStream2DeploymentsInputAudio$.outboundSchema = DeploymentStream2DeploymentsInputAudio$outboundSchema;
|
|
42522
|
+
})(DeploymentStream2DeploymentsInputAudio$ ||= {});
|
|
42523
|
+
DeploymentStream2Deployments3$inboundSchema = objectType({
|
|
42524
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
|
|
42525
|
+
input_audio: lazyType(() => DeploymentStream2DeploymentsInputAudio$inboundSchema)
|
|
42526
|
+
}).transform((v2) => {
|
|
42527
|
+
return remap(v2, {
|
|
42528
|
+
input_audio: "inputAudio"
|
|
42529
|
+
});
|
|
42530
|
+
});
|
|
42531
|
+
DeploymentStream2Deployments3$outboundSchema = objectType({
|
|
42532
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
|
|
42533
|
+
inputAudio: lazyType(() => DeploymentStream2DeploymentsInputAudio$outboundSchema)
|
|
42534
|
+
}).transform((v2) => {
|
|
42535
|
+
return remap(v2, {
|
|
42536
|
+
inputAudio: "input_audio"
|
|
42537
|
+
});
|
|
42538
|
+
});
|
|
42539
|
+
((DeploymentStream2Deployments3$) => {
|
|
42540
|
+
DeploymentStream2Deployments3$.inboundSchema = DeploymentStream2Deployments3$inboundSchema;
|
|
42541
|
+
DeploymentStream2Deployments3$.outboundSchema = DeploymentStream2Deployments3$outboundSchema;
|
|
42542
|
+
})(DeploymentStream2Deployments3$ ||= {});
|
|
42543
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessages3Type);
|
|
42544
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
|
|
42545
|
+
((DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$) => {
|
|
42546
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
|
|
42547
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema;
|
|
42548
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$ ||= {});
|
|
42549
|
+
DeploymentStream2DeploymentsDetail$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsDetail);
|
|
42550
|
+
DeploymentStream2DeploymentsDetail$outboundSchema = DeploymentStream2DeploymentsDetail$inboundSchema;
|
|
42551
|
+
((DeploymentStream2DeploymentsDetail$) => {
|
|
42552
|
+
DeploymentStream2DeploymentsDetail$.inboundSchema = DeploymentStream2DeploymentsDetail$inboundSchema;
|
|
42553
|
+
DeploymentStream2DeploymentsDetail$.outboundSchema = DeploymentStream2DeploymentsDetail$outboundSchema;
|
|
42554
|
+
})(DeploymentStream2DeploymentsDetail$ ||= {});
|
|
42555
|
+
DeploymentStream2DeploymentsImageUrl$inboundSchema = objectType({
|
|
42556
|
+
url: stringType(),
|
|
42557
|
+
detail: DeploymentStream2DeploymentsDetail$inboundSchema.optional()
|
|
42558
|
+
});
|
|
42559
|
+
DeploymentStream2DeploymentsImageUrl$outboundSchema = objectType({
|
|
42560
|
+
url: stringType(),
|
|
42561
|
+
detail: DeploymentStream2DeploymentsDetail$outboundSchema.optional()
|
|
42562
|
+
});
|
|
42563
|
+
((DeploymentStream2DeploymentsImageUrl$) => {
|
|
42564
|
+
DeploymentStream2DeploymentsImageUrl$.inboundSchema = DeploymentStream2DeploymentsImageUrl$inboundSchema;
|
|
42565
|
+
DeploymentStream2DeploymentsImageUrl$.outboundSchema = DeploymentStream2DeploymentsImageUrl$outboundSchema;
|
|
42566
|
+
})(DeploymentStream2DeploymentsImageUrl$ ||= {});
|
|
42567
|
+
DeploymentStream2Deployments2$inboundSchema = objectType({
|
|
42568
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
|
|
42569
|
+
image_url: lazyType(() => DeploymentStream2DeploymentsImageUrl$inboundSchema)
|
|
42570
|
+
}).transform((v2) => {
|
|
42571
|
+
return remap(v2, {
|
|
42572
|
+
image_url: "imageUrl"
|
|
42573
|
+
});
|
|
42574
|
+
});
|
|
42575
|
+
DeploymentStream2Deployments2$outboundSchema = objectType({
|
|
42576
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
|
|
42577
|
+
imageUrl: lazyType(() => DeploymentStream2DeploymentsImageUrl$outboundSchema)
|
|
42578
|
+
}).transform((v2) => {
|
|
42579
|
+
return remap(v2, {
|
|
42580
|
+
imageUrl: "image_url"
|
|
42581
|
+
});
|
|
42582
|
+
});
|
|
42583
|
+
((DeploymentStream2Deployments2$) => {
|
|
42584
|
+
DeploymentStream2Deployments2$.inboundSchema = DeploymentStream2Deployments2$inboundSchema;
|
|
42585
|
+
DeploymentStream2Deployments2$.outboundSchema = DeploymentStream2Deployments2$outboundSchema;
|
|
42586
|
+
})(DeploymentStream2Deployments2$ ||= {});
|
|
42587
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema = nativeEnumType(DeploymentStream2DeploymentsRequestRequestBodyMessagesType);
|
|
42588
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
|
|
42589
|
+
((DeploymentStream2DeploymentsRequestRequestBodyMessagesType$) => {
|
|
42590
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessagesType$.inboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
|
|
42591
|
+
DeploymentStream2DeploymentsRequestRequestBodyMessagesType$.outboundSchema = DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema;
|
|
42592
|
+
})(DeploymentStream2DeploymentsRequestRequestBodyMessagesType$ ||= {});
|
|
42593
|
+
DeploymentStream2Deployments1$inboundSchema = objectType({
|
|
42594
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
42595
|
+
text: stringType()
|
|
42596
|
+
});
|
|
42597
|
+
DeploymentStream2Deployments1$outboundSchema = objectType({
|
|
42598
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
42599
|
+
text: stringType()
|
|
42600
|
+
});
|
|
42601
|
+
((DeploymentStream2Deployments1$) => {
|
|
42602
|
+
DeploymentStream2Deployments1$.inboundSchema = DeploymentStream2Deployments1$inboundSchema;
|
|
42603
|
+
DeploymentStream2Deployments1$.outboundSchema = DeploymentStream2Deployments1$outboundSchema;
|
|
42604
|
+
})(DeploymentStream2Deployments1$ ||= {});
|
|
42605
|
+
DeploymentStreamContentDeploymentsRequest2$inboundSchema = unionType([
|
|
42606
|
+
lazyType(() => DeploymentStream2Deployments1$inboundSchema),
|
|
42607
|
+
lazyType(() => DeploymentStream2Deployments2$inboundSchema),
|
|
42608
|
+
lazyType(() => DeploymentStream2Deployments3$inboundSchema)
|
|
42609
|
+
]);
|
|
42610
|
+
DeploymentStreamContentDeploymentsRequest2$outboundSchema = unionType([
|
|
42611
|
+
lazyType(() => DeploymentStream2Deployments1$outboundSchema),
|
|
42612
|
+
lazyType(() => DeploymentStream2Deployments2$outboundSchema),
|
|
42613
|
+
lazyType(() => DeploymentStream2Deployments3$outboundSchema)
|
|
42614
|
+
]);
|
|
42615
|
+
((DeploymentStreamContentDeploymentsRequest2$) => {
|
|
42616
|
+
DeploymentStreamContentDeploymentsRequest2$.inboundSchema = DeploymentStreamContentDeploymentsRequest2$inboundSchema;
|
|
42617
|
+
DeploymentStreamContentDeploymentsRequest2$.outboundSchema = DeploymentStreamContentDeploymentsRequest2$outboundSchema;
|
|
42618
|
+
})(DeploymentStreamContentDeploymentsRequest2$ ||= {});
|
|
42619
|
+
DeploymentStreamMessagesContent$inboundSchema = unionType([
|
|
42620
|
+
stringType(),
|
|
42621
|
+
arrayType(unionType([
|
|
42622
|
+
lazyType(() => DeploymentStream2Deployments1$inboundSchema),
|
|
42623
|
+
lazyType(() => DeploymentStream2Deployments2$inboundSchema),
|
|
42624
|
+
lazyType(() => DeploymentStream2Deployments3$inboundSchema)
|
|
42625
|
+
]))
|
|
42626
|
+
]);
|
|
42627
|
+
DeploymentStreamMessagesContent$outboundSchema = unionType([
|
|
42628
|
+
stringType(),
|
|
42629
|
+
arrayType(unionType([
|
|
42630
|
+
lazyType(() => DeploymentStream2Deployments1$outboundSchema),
|
|
42631
|
+
lazyType(() => DeploymentStream2Deployments2$outboundSchema),
|
|
42632
|
+
lazyType(() => DeploymentStream2Deployments3$outboundSchema)
|
|
42633
|
+
]))
|
|
42634
|
+
]);
|
|
42635
|
+
((DeploymentStreamMessagesContent$) => {
|
|
42636
|
+
DeploymentStreamMessagesContent$.inboundSchema = DeploymentStreamMessagesContent$inboundSchema;
|
|
42637
|
+
DeploymentStreamMessagesContent$.outboundSchema = DeploymentStreamMessagesContent$outboundSchema;
|
|
42638
|
+
})(DeploymentStreamMessagesContent$ ||= {});
|
|
42639
|
+
DeploymentStreamMessagesUserMessage$inboundSchema = objectType({
|
|
42640
|
+
role: DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema,
|
|
42641
|
+
name: stringType().optional(),
|
|
42642
|
+
content: unionType([
|
|
42643
|
+
stringType(),
|
|
42644
|
+
arrayType(unionType([
|
|
42645
|
+
lazyType(() => DeploymentStream2Deployments1$inboundSchema),
|
|
42646
|
+
lazyType(() => DeploymentStream2Deployments2$inboundSchema),
|
|
42647
|
+
lazyType(() => DeploymentStream2Deployments3$inboundSchema)
|
|
42648
|
+
]))
|
|
42649
|
+
])
|
|
42650
|
+
});
|
|
42651
|
+
DeploymentStreamMessagesUserMessage$outboundSchema = objectType({
|
|
42652
|
+
role: DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema,
|
|
42653
|
+
name: stringType().optional(),
|
|
42654
|
+
content: unionType([
|
|
42655
|
+
stringType(),
|
|
42656
|
+
arrayType(unionType([
|
|
42657
|
+
lazyType(() => DeploymentStream2Deployments1$outboundSchema),
|
|
42658
|
+
lazyType(() => DeploymentStream2Deployments2$outboundSchema),
|
|
42659
|
+
lazyType(() => DeploymentStream2Deployments3$outboundSchema)
|
|
42660
|
+
]))
|
|
42661
|
+
])
|
|
42662
|
+
});
|
|
42663
|
+
((DeploymentStreamMessagesUserMessage$) => {
|
|
42664
|
+
DeploymentStreamMessagesUserMessage$.inboundSchema = DeploymentStreamMessagesUserMessage$inboundSchema;
|
|
42665
|
+
DeploymentStreamMessagesUserMessage$.outboundSchema = DeploymentStreamMessagesUserMessage$outboundSchema;
|
|
42666
|
+
})(DeploymentStreamMessagesUserMessage$ ||= {});
|
|
42667
|
+
DeploymentStreamMessagesDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesDeploymentsRole);
|
|
42668
|
+
DeploymentStreamMessagesDeploymentsRole$outboundSchema = DeploymentStreamMessagesDeploymentsRole$inboundSchema;
|
|
42669
|
+
((DeploymentStreamMessagesDeploymentsRole$) => {
|
|
42670
|
+
DeploymentStreamMessagesDeploymentsRole$.inboundSchema = DeploymentStreamMessagesDeploymentsRole$inboundSchema;
|
|
42671
|
+
DeploymentStreamMessagesDeploymentsRole$.outboundSchema = DeploymentStreamMessagesDeploymentsRole$outboundSchema;
|
|
42672
|
+
})(DeploymentStreamMessagesDeploymentsRole$ ||= {});
|
|
42673
|
+
DeploymentStreamMessagesSystemMessage$inboundSchema = objectType({
|
|
42674
|
+
role: DeploymentStreamMessagesDeploymentsRole$inboundSchema,
|
|
42675
|
+
content: stringType(),
|
|
42676
|
+
name: stringType().optional()
|
|
42677
|
+
});
|
|
42678
|
+
DeploymentStreamMessagesSystemMessage$outboundSchema = objectType({
|
|
42679
|
+
role: DeploymentStreamMessagesDeploymentsRole$outboundSchema,
|
|
42680
|
+
content: stringType(),
|
|
42681
|
+
name: stringType().optional()
|
|
42682
|
+
});
|
|
42683
|
+
((DeploymentStreamMessagesSystemMessage$) => {
|
|
42684
|
+
DeploymentStreamMessagesSystemMessage$.inboundSchema = DeploymentStreamMessagesSystemMessage$inboundSchema;
|
|
42685
|
+
DeploymentStreamMessagesSystemMessage$.outboundSchema = DeploymentStreamMessagesSystemMessage$outboundSchema;
|
|
42686
|
+
})(DeploymentStreamMessagesSystemMessage$ ||= {});
|
|
42687
|
+
DeploymentStreamMessagesRole$inboundSchema = nativeEnumType(DeploymentStreamMessagesRole);
|
|
42688
|
+
DeploymentStreamMessagesRole$outboundSchema = DeploymentStreamMessagesRole$inboundSchema;
|
|
42689
|
+
((DeploymentStreamMessagesRole$) => {
|
|
42690
|
+
DeploymentStreamMessagesRole$.inboundSchema = DeploymentStreamMessagesRole$inboundSchema;
|
|
42691
|
+
DeploymentStreamMessagesRole$.outboundSchema = DeploymentStreamMessagesRole$outboundSchema;
|
|
42692
|
+
})(DeploymentStreamMessagesRole$ ||= {});
|
|
42693
|
+
DeploymentStreamMessagesDeveloperMessage$inboundSchema = objectType({
|
|
42694
|
+
role: DeploymentStreamMessagesRole$inboundSchema,
|
|
42695
|
+
content: stringType(),
|
|
42696
|
+
name: stringType().optional()
|
|
42697
|
+
});
|
|
42698
|
+
DeploymentStreamMessagesDeveloperMessage$outboundSchema = objectType({
|
|
42699
|
+
role: DeploymentStreamMessagesRole$outboundSchema,
|
|
42700
|
+
content: stringType(),
|
|
42701
|
+
name: stringType().optional()
|
|
42702
|
+
});
|
|
42703
|
+
((DeploymentStreamMessagesDeveloperMessage$) => {
|
|
42704
|
+
DeploymentStreamMessagesDeveloperMessage$.inboundSchema = DeploymentStreamMessagesDeveloperMessage$inboundSchema;
|
|
42705
|
+
DeploymentStreamMessagesDeveloperMessage$.outboundSchema = DeploymentStreamMessagesDeveloperMessage$outboundSchema;
|
|
42706
|
+
})(DeploymentStreamMessagesDeveloperMessage$ ||= {});
|
|
42707
|
+
DeploymentStreamMessages$inboundSchema = unionType([
|
|
42708
|
+
lazyType(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
|
|
42709
|
+
lazyType(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
|
|
42710
|
+
lazyType(() => DeploymentStreamMessagesUserMessage$inboundSchema),
|
|
42711
|
+
lazyType(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
42712
|
+
lazyType(() => DeploymentStreamMessagesAssistantMessage$inboundSchema)
|
|
42713
|
+
]);
|
|
42714
|
+
DeploymentStreamMessages$outboundSchema = unionType([
|
|
42715
|
+
lazyType(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
|
|
42716
|
+
lazyType(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
|
|
42717
|
+
lazyType(() => DeploymentStreamMessagesUserMessage$outboundSchema),
|
|
42718
|
+
lazyType(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
42719
|
+
lazyType(() => DeploymentStreamMessagesAssistantMessage$outboundSchema)
|
|
42720
|
+
]);
|
|
42721
|
+
((DeploymentStreamMessages$) => {
|
|
42722
|
+
DeploymentStreamMessages$.inboundSchema = DeploymentStreamMessages$inboundSchema;
|
|
42723
|
+
DeploymentStreamMessages$.outboundSchema = DeploymentStreamMessages$outboundSchema;
|
|
42724
|
+
})(DeploymentStreamMessages$ ||= {});
|
|
42725
|
+
DeploymentStreamMetadata$inboundSchema = objectType({
|
|
42726
|
+
file_name: stringType().optional(),
|
|
42727
|
+
file_type: stringType().optional(),
|
|
42728
|
+
page_number: numberType().optional()
|
|
42729
|
+
}).transform((v2) => {
|
|
42730
|
+
return remap(v2, {
|
|
42731
|
+
file_name: "fileName",
|
|
42732
|
+
file_type: "fileType",
|
|
42733
|
+
page_number: "pageNumber"
|
|
42734
|
+
});
|
|
42735
|
+
});
|
|
42736
|
+
DeploymentStreamMetadata$outboundSchema = objectType({
|
|
42737
|
+
fileName: stringType().optional(),
|
|
42738
|
+
fileType: stringType().optional(),
|
|
42739
|
+
pageNumber: numberType().optional()
|
|
42740
|
+
}).transform((v2) => {
|
|
42741
|
+
return remap(v2, {
|
|
42742
|
+
fileName: "file_name",
|
|
42743
|
+
fileType: "file_type",
|
|
42744
|
+
pageNumber: "page_number"
|
|
42745
|
+
});
|
|
42746
|
+
});
|
|
42747
|
+
((DeploymentStreamMetadata$) => {
|
|
42748
|
+
DeploymentStreamMetadata$.inboundSchema = DeploymentStreamMetadata$inboundSchema;
|
|
42749
|
+
DeploymentStreamMetadata$.outboundSchema = DeploymentStreamMetadata$outboundSchema;
|
|
42750
|
+
})(DeploymentStreamMetadata$ ||= {});
|
|
42751
|
+
DeploymentStreamDocuments$inboundSchema = objectType({
|
|
42752
|
+
text: stringType(),
|
|
42753
|
+
metadata: lazyType(() => DeploymentStreamMetadata$inboundSchema).optional()
|
|
42754
|
+
});
|
|
42755
|
+
DeploymentStreamDocuments$outboundSchema = objectType({
|
|
42756
|
+
text: stringType(),
|
|
42757
|
+
metadata: lazyType(() => DeploymentStreamMetadata$outboundSchema).optional()
|
|
42758
|
+
});
|
|
42759
|
+
((DeploymentStreamDocuments$) => {
|
|
42760
|
+
DeploymentStreamDocuments$.inboundSchema = DeploymentStreamDocuments$inboundSchema;
|
|
42761
|
+
DeploymentStreamDocuments$.outboundSchema = DeploymentStreamDocuments$outboundSchema;
|
|
42762
|
+
})(DeploymentStreamDocuments$ ||= {});
|
|
42763
|
+
DeploymentStreamInvokeOptions$inboundSchema = objectType({
|
|
42764
|
+
include_retrievals: booleanType().default(false)
|
|
42765
|
+
}).transform((v2) => {
|
|
42766
|
+
return remap(v2, {
|
|
42767
|
+
include_retrievals: "includeRetrievals"
|
|
42768
|
+
});
|
|
42769
|
+
});
|
|
42770
|
+
DeploymentStreamInvokeOptions$outboundSchema = objectType({
|
|
42771
|
+
includeRetrievals: booleanType().default(false)
|
|
42772
|
+
}).transform((v2) => {
|
|
42773
|
+
return remap(v2, {
|
|
42774
|
+
includeRetrievals: "include_retrievals"
|
|
42775
|
+
});
|
|
42776
|
+
});
|
|
42777
|
+
((DeploymentStreamInvokeOptions$) => {
|
|
42778
|
+
DeploymentStreamInvokeOptions$.inboundSchema = DeploymentStreamInvokeOptions$inboundSchema;
|
|
42779
|
+
DeploymentStreamInvokeOptions$.outboundSchema = DeploymentStreamInvokeOptions$outboundSchema;
|
|
42780
|
+
})(DeploymentStreamInvokeOptions$ ||= {});
|
|
42781
|
+
DeploymentStreamRequestBody$inboundSchema = objectType({
|
|
42782
|
+
key: stringType(),
|
|
42783
|
+
inputs: recordType(unionType([stringType(), numberType(), booleanType()])).optional(),
|
|
42784
|
+
context: recordType(anyType()).optional(),
|
|
42785
|
+
prefix_messages: arrayType(unionType([
|
|
42786
|
+
lazyType(() => PrefixMessagesDeveloperMessage$inboundSchema),
|
|
42787
|
+
lazyType(() => PrefixMessagesSystemMessage$inboundSchema),
|
|
42788
|
+
lazyType(() => PrefixMessagesUserMessage$inboundSchema),
|
|
42789
|
+
lazyType(() => PrefixMessagesToolMessage$inboundSchema),
|
|
42790
|
+
lazyType(() => PrefixMessagesAssistantMessage$inboundSchema)
|
|
42791
|
+
])).optional(),
|
|
42792
|
+
messages: arrayType(unionType([
|
|
42793
|
+
lazyType(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
|
|
42794
|
+
lazyType(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
|
|
42795
|
+
lazyType(() => DeploymentStreamMessagesUserMessage$inboundSchema),
|
|
42796
|
+
lazyType(() => DeploymentStreamMessagesToolMessage$inboundSchema),
|
|
42797
|
+
lazyType(() => DeploymentStreamMessagesAssistantMessage$inboundSchema)
|
|
42798
|
+
])).optional(),
|
|
42799
|
+
file_ids: arrayType(stringType()).optional(),
|
|
42800
|
+
metadata: recordType(anyType()).optional(),
|
|
42801
|
+
extra_params: recordType(anyType()).optional(),
|
|
42802
|
+
documents: arrayType(lazyType(() => DeploymentStreamDocuments$inboundSchema)).optional(),
|
|
42803
|
+
invoke_options: lazyType(() => DeploymentStreamInvokeOptions$inboundSchema).optional()
|
|
42804
|
+
}).transform((v2) => {
|
|
42805
|
+
return remap(v2, {
|
|
42806
|
+
prefix_messages: "prefixMessages",
|
|
42807
|
+
file_ids: "fileIds",
|
|
42808
|
+
extra_params: "extraParams",
|
|
42809
|
+
invoke_options: "invokeOptions"
|
|
42810
|
+
});
|
|
42811
|
+
});
|
|
42812
|
+
DeploymentStreamRequestBody$outboundSchema = objectType({
|
|
42813
|
+
key: stringType(),
|
|
42814
|
+
inputs: recordType(unionType([stringType(), numberType(), booleanType()])).optional(),
|
|
42815
|
+
context: recordType(anyType()).optional(),
|
|
42816
|
+
prefixMessages: arrayType(unionType([
|
|
42817
|
+
lazyType(() => PrefixMessagesDeveloperMessage$outboundSchema),
|
|
42818
|
+
lazyType(() => PrefixMessagesSystemMessage$outboundSchema),
|
|
42819
|
+
lazyType(() => PrefixMessagesUserMessage$outboundSchema),
|
|
42820
|
+
lazyType(() => PrefixMessagesToolMessage$outboundSchema),
|
|
42821
|
+
lazyType(() => PrefixMessagesAssistantMessage$outboundSchema)
|
|
42822
|
+
])).optional(),
|
|
42823
|
+
messages: arrayType(unionType([
|
|
42824
|
+
lazyType(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
|
|
42825
|
+
lazyType(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
|
|
42826
|
+
lazyType(() => DeploymentStreamMessagesUserMessage$outboundSchema),
|
|
42827
|
+
lazyType(() => DeploymentStreamMessagesToolMessage$outboundSchema),
|
|
42828
|
+
lazyType(() => DeploymentStreamMessagesAssistantMessage$outboundSchema)
|
|
42829
|
+
])).optional(),
|
|
42830
|
+
fileIds: arrayType(stringType()).optional(),
|
|
42831
|
+
metadata: recordType(anyType()).optional(),
|
|
42832
|
+
extraParams: recordType(anyType()).optional(),
|
|
42833
|
+
documents: arrayType(lazyType(() => DeploymentStreamDocuments$outboundSchema)).optional(),
|
|
42834
|
+
invokeOptions: lazyType(() => DeploymentStreamInvokeOptions$outboundSchema).optional()
|
|
42835
|
+
}).transform((v2) => {
|
|
42836
|
+
return remap(v2, {
|
|
42837
|
+
prefixMessages: "prefix_messages",
|
|
42838
|
+
fileIds: "file_ids",
|
|
42839
|
+
extraParams: "extra_params",
|
|
42840
|
+
invokeOptions: "invoke_options"
|
|
42841
|
+
});
|
|
42842
|
+
});
|
|
42843
|
+
((DeploymentStreamRequestBody$) => {
|
|
42844
|
+
DeploymentStreamRequestBody$.inboundSchema = DeploymentStreamRequestBody$inboundSchema;
|
|
42845
|
+
DeploymentStreamRequestBody$.outboundSchema = DeploymentStreamRequestBody$outboundSchema;
|
|
42846
|
+
})(DeploymentStreamRequestBody$ ||= {});
|
|
42847
|
+
DeploymentStreamObject$inboundSchema = nativeEnumType(DeploymentStreamObject);
|
|
42848
|
+
DeploymentStreamObject$outboundSchema = DeploymentStreamObject$inboundSchema;
|
|
42849
|
+
((DeploymentStreamObject$) => {
|
|
42850
|
+
DeploymentStreamObject$.inboundSchema = DeploymentStreamObject$inboundSchema;
|
|
42851
|
+
DeploymentStreamObject$.outboundSchema = DeploymentStreamObject$outboundSchema;
|
|
42852
|
+
})(DeploymentStreamObject$ ||= {});
|
|
42853
|
+
DeploymentStreamProvider$inboundSchema = nativeEnumType(DeploymentStreamProvider);
|
|
42854
|
+
DeploymentStreamProvider$outboundSchema = DeploymentStreamProvider$inboundSchema;
|
|
42855
|
+
((DeploymentStreamProvider$) => {
|
|
42856
|
+
DeploymentStreamProvider$.inboundSchema = DeploymentStreamProvider$inboundSchema;
|
|
42857
|
+
DeploymentStreamProvider$.outboundSchema = DeploymentStreamProvider$outboundSchema;
|
|
42858
|
+
})(DeploymentStreamProvider$ ||= {});
|
|
42859
|
+
DeploymentStreamMessageDeploymentsResponseRole$inboundSchema = nativeEnumType(DeploymentStreamMessageDeploymentsResponseRole);
|
|
42860
|
+
DeploymentStreamMessageDeploymentsResponseRole$outboundSchema = DeploymentStreamMessageDeploymentsResponseRole$inboundSchema;
|
|
42861
|
+
((DeploymentStreamMessageDeploymentsResponseRole$) => {
|
|
42862
|
+
DeploymentStreamMessageDeploymentsResponseRole$.inboundSchema = DeploymentStreamMessageDeploymentsResponseRole$inboundSchema;
|
|
42863
|
+
DeploymentStreamMessageDeploymentsResponseRole$.outboundSchema = DeploymentStreamMessageDeploymentsResponseRole$outboundSchema;
|
|
42864
|
+
})(DeploymentStreamMessageDeploymentsResponseRole$ ||= {});
|
|
42865
|
+
DeploymentStreamMessage3$inboundSchema = objectType({
|
|
42866
|
+
role: DeploymentStreamMessageDeploymentsResponseRole$inboundSchema,
|
|
42867
|
+
url: stringType()
|
|
42868
|
+
});
|
|
42869
|
+
DeploymentStreamMessage3$outboundSchema = objectType({
|
|
42870
|
+
role: DeploymentStreamMessageDeploymentsResponseRole$outboundSchema,
|
|
42871
|
+
url: stringType()
|
|
42872
|
+
});
|
|
42873
|
+
((DeploymentStreamMessage3$) => {
|
|
42874
|
+
DeploymentStreamMessage3$.inboundSchema = DeploymentStreamMessage3$inboundSchema;
|
|
42875
|
+
DeploymentStreamMessage3$.outboundSchema = DeploymentStreamMessage3$outboundSchema;
|
|
42876
|
+
})(DeploymentStreamMessage3$ ||= {});
|
|
42877
|
+
DeploymentStreamMessageDeploymentsRole$inboundSchema = nativeEnumType(DeploymentStreamMessageDeploymentsRole);
|
|
42878
|
+
DeploymentStreamMessageDeploymentsRole$outboundSchema = DeploymentStreamMessageDeploymentsRole$inboundSchema;
|
|
42879
|
+
((DeploymentStreamMessageDeploymentsRole$) => {
|
|
42880
|
+
DeploymentStreamMessageDeploymentsRole$.inboundSchema = DeploymentStreamMessageDeploymentsRole$inboundSchema;
|
|
42881
|
+
DeploymentStreamMessageDeploymentsRole$.outboundSchema = DeploymentStreamMessageDeploymentsRole$outboundSchema;
|
|
42882
|
+
})(DeploymentStreamMessageDeploymentsRole$ ||= {});
|
|
42883
|
+
DeploymentStreamMessage2$inboundSchema = objectType({
|
|
42884
|
+
role: DeploymentStreamMessageDeploymentsRole$inboundSchema,
|
|
42885
|
+
content: nullableType(stringType())
|
|
42886
|
+
});
|
|
42887
|
+
DeploymentStreamMessage2$outboundSchema = objectType({
|
|
42888
|
+
role: DeploymentStreamMessageDeploymentsRole$outboundSchema,
|
|
42889
|
+
content: nullableType(stringType())
|
|
42890
|
+
});
|
|
42891
|
+
((DeploymentStreamMessage2$) => {
|
|
42892
|
+
DeploymentStreamMessage2$.inboundSchema = DeploymentStreamMessage2$inboundSchema;
|
|
42893
|
+
DeploymentStreamMessage2$.outboundSchema = DeploymentStreamMessage2$outboundSchema;
|
|
42894
|
+
})(DeploymentStreamMessage2$ ||= {});
|
|
42895
|
+
DeploymentStreamMessageRole$inboundSchema = nativeEnumType(DeploymentStreamMessageRole);
|
|
42896
|
+
DeploymentStreamMessageRole$outboundSchema = DeploymentStreamMessageRole$inboundSchema;
|
|
42897
|
+
((DeploymentStreamMessageRole$) => {
|
|
42898
|
+
DeploymentStreamMessageRole$.inboundSchema = DeploymentStreamMessageRole$inboundSchema;
|
|
42899
|
+
DeploymentStreamMessageRole$.outboundSchema = DeploymentStreamMessageRole$outboundSchema;
|
|
42900
|
+
})(DeploymentStreamMessageRole$ ||= {});
|
|
42901
|
+
DeploymentStreamMessageType$inboundSchema = nativeEnumType(DeploymentStreamMessageType);
|
|
42902
|
+
DeploymentStreamMessageType$outboundSchema = DeploymentStreamMessageType$inboundSchema;
|
|
42903
|
+
((DeploymentStreamMessageType$) => {
|
|
42904
|
+
DeploymentStreamMessageType$.inboundSchema = DeploymentStreamMessageType$inboundSchema;
|
|
42905
|
+
DeploymentStreamMessageType$.outboundSchema = DeploymentStreamMessageType$outboundSchema;
|
|
42906
|
+
})(DeploymentStreamMessageType$ ||= {});
|
|
42907
|
+
DeploymentStreamMessageFunction$inboundSchema = objectType({
|
|
42908
|
+
name: stringType(),
|
|
42909
|
+
arguments: stringType()
|
|
42910
|
+
});
|
|
42911
|
+
DeploymentStreamMessageFunction$outboundSchema = objectType({
|
|
42912
|
+
name: stringType(),
|
|
42913
|
+
arguments: stringType()
|
|
42914
|
+
});
|
|
42915
|
+
((DeploymentStreamMessageFunction$) => {
|
|
42916
|
+
DeploymentStreamMessageFunction$.inboundSchema = DeploymentStreamMessageFunction$inboundSchema;
|
|
42917
|
+
DeploymentStreamMessageFunction$.outboundSchema = DeploymentStreamMessageFunction$outboundSchema;
|
|
42918
|
+
})(DeploymentStreamMessageFunction$ ||= {});
|
|
42919
|
+
DeploymentStreamMessageToolCalls$inboundSchema = objectType({
|
|
42920
|
+
id: stringType().optional(),
|
|
42921
|
+
index: numberType().optional(),
|
|
42922
|
+
type: DeploymentStreamMessageType$inboundSchema,
|
|
42923
|
+
function: lazyType(() => DeploymentStreamMessageFunction$inboundSchema)
|
|
42924
|
+
});
|
|
42925
|
+
DeploymentStreamMessageToolCalls$outboundSchema = objectType({
|
|
42926
|
+
id: stringType().optional(),
|
|
42927
|
+
index: numberType().optional(),
|
|
42928
|
+
type: DeploymentStreamMessageType$outboundSchema,
|
|
42929
|
+
function: lazyType(() => DeploymentStreamMessageFunction$outboundSchema)
|
|
42930
|
+
});
|
|
42931
|
+
((DeploymentStreamMessageToolCalls$) => {
|
|
42932
|
+
DeploymentStreamMessageToolCalls$.inboundSchema = DeploymentStreamMessageToolCalls$inboundSchema;
|
|
42933
|
+
DeploymentStreamMessageToolCalls$.outboundSchema = DeploymentStreamMessageToolCalls$outboundSchema;
|
|
42934
|
+
})(DeploymentStreamMessageToolCalls$ ||= {});
|
|
42935
|
+
DeploymentStreamMessage1$inboundSchema = objectType({
|
|
42936
|
+
role: DeploymentStreamMessageRole$inboundSchema,
|
|
42937
|
+
content: nullableType(stringType()).optional(),
|
|
42938
|
+
tool_calls: arrayType(lazyType(() => DeploymentStreamMessageToolCalls$inboundSchema))
|
|
42939
|
+
}).transform((v2) => {
|
|
42940
|
+
return remap(v2, {
|
|
42941
|
+
tool_calls: "toolCalls"
|
|
42942
|
+
});
|
|
42943
|
+
});
|
|
42944
|
+
DeploymentStreamMessage1$outboundSchema = objectType({
|
|
42945
|
+
role: DeploymentStreamMessageRole$outboundSchema,
|
|
42946
|
+
content: nullableType(stringType()).optional(),
|
|
42947
|
+
toolCalls: arrayType(lazyType(() => DeploymentStreamMessageToolCalls$outboundSchema))
|
|
42948
|
+
}).transform((v2) => {
|
|
42949
|
+
return remap(v2, {
|
|
42950
|
+
toolCalls: "tool_calls"
|
|
42951
|
+
});
|
|
42952
|
+
});
|
|
42953
|
+
((DeploymentStreamMessage1$) => {
|
|
42954
|
+
DeploymentStreamMessage1$.inboundSchema = DeploymentStreamMessage1$inboundSchema;
|
|
42955
|
+
DeploymentStreamMessage1$.outboundSchema = DeploymentStreamMessage1$outboundSchema;
|
|
42956
|
+
})(DeploymentStreamMessage1$ ||= {});
|
|
42957
|
+
DeploymentStreamMessage$inboundSchema = unionType([
|
|
42958
|
+
lazyType(() => DeploymentStreamMessage2$inboundSchema),
|
|
42959
|
+
lazyType(() => DeploymentStreamMessage3$inboundSchema),
|
|
42960
|
+
lazyType(() => DeploymentStreamMessage1$inboundSchema)
|
|
42961
|
+
]);
|
|
42962
|
+
DeploymentStreamMessage$outboundSchema = unionType([
|
|
42963
|
+
lazyType(() => DeploymentStreamMessage2$outboundSchema),
|
|
42964
|
+
lazyType(() => DeploymentStreamMessage3$outboundSchema),
|
|
42965
|
+
lazyType(() => DeploymentStreamMessage1$outboundSchema)
|
|
42966
|
+
]);
|
|
42967
|
+
((DeploymentStreamMessage$) => {
|
|
42968
|
+
DeploymentStreamMessage$.inboundSchema = DeploymentStreamMessage$inboundSchema;
|
|
42969
|
+
DeploymentStreamMessage$.outboundSchema = DeploymentStreamMessage$outboundSchema;
|
|
42970
|
+
})(DeploymentStreamMessage$ ||= {});
|
|
42971
|
+
DeploymentStreamChoices$inboundSchema = objectType({
|
|
42972
|
+
index: numberType(),
|
|
42973
|
+
message: unionType([
|
|
42974
|
+
lazyType(() => DeploymentStreamMessage2$inboundSchema),
|
|
42975
|
+
lazyType(() => DeploymentStreamMessage3$inboundSchema),
|
|
42976
|
+
lazyType(() => DeploymentStreamMessage1$inboundSchema)
|
|
42977
|
+
]).optional(),
|
|
42978
|
+
finish_reason: nullableType(stringType()).optional()
|
|
42979
|
+
}).transform((v2) => {
|
|
42980
|
+
return remap(v2, {
|
|
42981
|
+
finish_reason: "finishReason"
|
|
42982
|
+
});
|
|
42983
|
+
});
|
|
42984
|
+
DeploymentStreamChoices$outboundSchema = objectType({
|
|
42985
|
+
index: numberType(),
|
|
42986
|
+
message: unionType([
|
|
42987
|
+
lazyType(() => DeploymentStreamMessage2$outboundSchema),
|
|
42988
|
+
lazyType(() => DeploymentStreamMessage3$outboundSchema),
|
|
42989
|
+
lazyType(() => DeploymentStreamMessage1$outboundSchema)
|
|
42990
|
+
]).optional(),
|
|
42991
|
+
finishReason: nullableType(stringType()).optional()
|
|
42992
|
+
}).transform((v2) => {
|
|
42993
|
+
return remap(v2, {
|
|
42994
|
+
finishReason: "finish_reason"
|
|
42995
|
+
});
|
|
42996
|
+
});
|
|
42997
|
+
((DeploymentStreamChoices$) => {
|
|
42998
|
+
DeploymentStreamChoices$.inboundSchema = DeploymentStreamChoices$inboundSchema;
|
|
42999
|
+
DeploymentStreamChoices$.outboundSchema = DeploymentStreamChoices$outboundSchema;
|
|
43000
|
+
})(DeploymentStreamChoices$ ||= {});
|
|
43001
|
+
DeploymentStreamDeploymentsMetadata$inboundSchema = objectType({
|
|
43002
|
+
file_name: stringType(),
|
|
43003
|
+
page_number: nullableType(numberType()),
|
|
43004
|
+
file_type: stringType(),
|
|
43005
|
+
rerank_score: numberType().optional(),
|
|
43006
|
+
search_score: numberType()
|
|
43007
|
+
}).transform((v2) => {
|
|
43008
|
+
return remap(v2, {
|
|
43009
|
+
file_name: "fileName",
|
|
43010
|
+
page_number: "pageNumber",
|
|
43011
|
+
file_type: "fileType",
|
|
43012
|
+
rerank_score: "rerankScore",
|
|
43013
|
+
search_score: "searchScore"
|
|
43014
|
+
});
|
|
43015
|
+
});
|
|
43016
|
+
DeploymentStreamDeploymentsMetadata$outboundSchema = objectType({
|
|
43017
|
+
fileName: stringType(),
|
|
43018
|
+
pageNumber: nullableType(numberType()),
|
|
43019
|
+
fileType: stringType(),
|
|
43020
|
+
rerankScore: numberType().optional(),
|
|
43021
|
+
searchScore: numberType()
|
|
43022
|
+
}).transform((v2) => {
|
|
43023
|
+
return remap(v2, {
|
|
43024
|
+
fileName: "file_name",
|
|
43025
|
+
pageNumber: "page_number",
|
|
43026
|
+
fileType: "file_type",
|
|
43027
|
+
rerankScore: "rerank_score",
|
|
43028
|
+
searchScore: "search_score"
|
|
43029
|
+
});
|
|
43030
|
+
});
|
|
43031
|
+
((DeploymentStreamDeploymentsMetadata$) => {
|
|
43032
|
+
DeploymentStreamDeploymentsMetadata$.inboundSchema = DeploymentStreamDeploymentsMetadata$inboundSchema;
|
|
43033
|
+
DeploymentStreamDeploymentsMetadata$.outboundSchema = DeploymentStreamDeploymentsMetadata$outboundSchema;
|
|
43034
|
+
})(DeploymentStreamDeploymentsMetadata$ ||= {});
|
|
43035
|
+
DeploymentStreamRetrievals$inboundSchema = objectType({
|
|
43036
|
+
document: stringType(),
|
|
43037
|
+
metadata: lazyType(() => DeploymentStreamDeploymentsMetadata$inboundSchema)
|
|
43038
|
+
});
|
|
43039
|
+
DeploymentStreamRetrievals$outboundSchema = objectType({
|
|
43040
|
+
document: stringType(),
|
|
43041
|
+
metadata: lazyType(() => DeploymentStreamDeploymentsMetadata$outboundSchema)
|
|
43042
|
+
});
|
|
43043
|
+
((DeploymentStreamRetrievals$) => {
|
|
43044
|
+
DeploymentStreamRetrievals$.inboundSchema = DeploymentStreamRetrievals$inboundSchema;
|
|
43045
|
+
DeploymentStreamRetrievals$.outboundSchema = DeploymentStreamRetrievals$outboundSchema;
|
|
43046
|
+
})(DeploymentStreamRetrievals$ ||= {});
|
|
43047
|
+
DeploymentStreamData$inboundSchema = objectType({
|
|
43048
|
+
id: stringType().optional(),
|
|
43049
|
+
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43050
|
+
object: DeploymentStreamObject$inboundSchema.optional(),
|
|
43051
|
+
model: stringType().optional(),
|
|
43052
|
+
provider: DeploymentStreamProvider$inboundSchema.optional(),
|
|
43053
|
+
is_final: booleanType().optional(),
|
|
43054
|
+
integration_id: stringType().optional(),
|
|
43055
|
+
finalized: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43056
|
+
system_fingerprint: nullableType(stringType()).optional(),
|
|
43057
|
+
choices: arrayType(lazyType(() => DeploymentStreamChoices$inboundSchema)).optional(),
|
|
43058
|
+
retrievals: arrayType(lazyType(() => DeploymentStreamRetrievals$inboundSchema)).optional(),
|
|
43059
|
+
provider_response: anyType().optional()
|
|
43060
|
+
}).transform((v2) => {
|
|
43061
|
+
return remap(v2, {
|
|
43062
|
+
is_final: "isFinal",
|
|
43063
|
+
integration_id: "integrationId",
|
|
43064
|
+
system_fingerprint: "systemFingerprint",
|
|
43065
|
+
provider_response: "providerResponse"
|
|
43066
|
+
});
|
|
43067
|
+
});
|
|
43068
|
+
DeploymentStreamData$outboundSchema = objectType({
|
|
43069
|
+
id: stringType().optional(),
|
|
43070
|
+
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43071
|
+
object: DeploymentStreamObject$outboundSchema.optional(),
|
|
43072
|
+
model: stringType().optional(),
|
|
43073
|
+
provider: DeploymentStreamProvider$outboundSchema.optional(),
|
|
43074
|
+
isFinal: booleanType().optional(),
|
|
43075
|
+
integrationId: stringType().optional(),
|
|
43076
|
+
finalized: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43077
|
+
systemFingerprint: nullableType(stringType()).optional(),
|
|
43078
|
+
choices: arrayType(lazyType(() => DeploymentStreamChoices$outboundSchema)).optional(),
|
|
43079
|
+
retrievals: arrayType(lazyType(() => DeploymentStreamRetrievals$outboundSchema)).optional(),
|
|
43080
|
+
providerResponse: anyType().optional()
|
|
43081
|
+
}).transform((v2) => {
|
|
43082
|
+
return remap(v2, {
|
|
43083
|
+
isFinal: "is_final",
|
|
43084
|
+
integrationId: "integration_id",
|
|
43085
|
+
systemFingerprint: "system_fingerprint",
|
|
43086
|
+
providerResponse: "provider_response"
|
|
43087
|
+
});
|
|
43088
|
+
});
|
|
43089
|
+
((DeploymentStreamData$) => {
|
|
43090
|
+
DeploymentStreamData$.inboundSchema = DeploymentStreamData$inboundSchema;
|
|
43091
|
+
DeploymentStreamData$.outboundSchema = DeploymentStreamData$outboundSchema;
|
|
43092
|
+
})(DeploymentStreamData$ ||= {});
|
|
43093
|
+
DeploymentStreamResponseBody$inboundSchema = objectType({
|
|
43094
|
+
data: stringType().transform((v2, ctx) => {
|
|
43095
|
+
try {
|
|
43096
|
+
return JSON.parse(v2);
|
|
43097
|
+
} catch (err) {
|
|
43098
|
+
ctx.addIssue({
|
|
43099
|
+
code: ZodIssueCode.custom,
|
|
43100
|
+
message: `malformed json: ${err}`
|
|
43101
|
+
});
|
|
43102
|
+
return NEVER;
|
|
43103
|
+
}
|
|
43104
|
+
}).pipe(lazyType(() => DeploymentStreamData$inboundSchema).optional())
|
|
43105
|
+
});
|
|
43106
|
+
DeploymentStreamResponseBody$outboundSchema = objectType({
|
|
43107
|
+
data: lazyType(() => DeploymentStreamData$outboundSchema).optional()
|
|
43108
|
+
});
|
|
43109
|
+
((DeploymentStreamResponseBody$) => {
|
|
43110
|
+
DeploymentStreamResponseBody$.inboundSchema = DeploymentStreamResponseBody$inboundSchema;
|
|
43111
|
+
DeploymentStreamResponseBody$.outboundSchema = DeploymentStreamResponseBody$outboundSchema;
|
|
43112
|
+
})(DeploymentStreamResponseBody$ ||= {});
|
|
43113
|
+
});
|
|
43114
|
+
|
|
43115
|
+
// src/models/operations/filedelete.ts
|
|
43116
|
+
var FileDeleteRequest$inboundSchema, FileDeleteRequest$outboundSchema, FileDeleteRequest$;
|
|
43117
|
+
var init_filedelete = __esm(() => {
|
|
43118
|
+
init_lib();
|
|
43119
|
+
init_primitives();
|
|
43120
|
+
FileDeleteRequest$inboundSchema = objectType({
|
|
43121
|
+
file_id: stringType()
|
|
43122
|
+
}).transform((v2) => {
|
|
43123
|
+
return remap(v2, {
|
|
43124
|
+
file_id: "fileId"
|
|
43125
|
+
});
|
|
43126
|
+
});
|
|
43127
|
+
FileDeleteRequest$outboundSchema = objectType({
|
|
43128
|
+
fileId: stringType()
|
|
43129
|
+
}).transform((v2) => {
|
|
43130
|
+
return remap(v2, {
|
|
43131
|
+
fileId: "file_id"
|
|
43132
|
+
});
|
|
43133
|
+
});
|
|
43134
|
+
((FileDeleteRequest$) => {
|
|
43135
|
+
FileDeleteRequest$.inboundSchema = FileDeleteRequest$inboundSchema;
|
|
43136
|
+
FileDeleteRequest$.outboundSchema = FileDeleteRequest$outboundSchema;
|
|
43137
|
+
})(FileDeleteRequest$ ||= {});
|
|
43138
|
+
});
|
|
43139
|
+
|
|
43140
|
+
// src/models/operations/fileget.ts
|
|
43141
|
+
var FileGetPurpose, FileGetRequest$inboundSchema, FileGetRequest$outboundSchema, FileGetRequest$, FileGetPurpose$inboundSchema, FileGetPurpose$outboundSchema, FileGetPurpose$, FileGetResponseBody$inboundSchema, FileGetResponseBody$outboundSchema, FileGetResponseBody$;
|
|
43142
|
+
var init_fileget = __esm(() => {
|
|
43143
|
+
init_lib();
|
|
43144
|
+
init_primitives();
|
|
43145
|
+
FileGetPurpose = {
|
|
43146
|
+
Retrieval: "retrieval",
|
|
43147
|
+
KnowledgeDatasource: "knowledge_datasource",
|
|
43148
|
+
Batch: "batch"
|
|
43149
|
+
};
|
|
43150
|
+
FileGetRequest$inboundSchema = objectType({
|
|
43151
|
+
file_id: stringType()
|
|
43152
|
+
}).transform((v2) => {
|
|
43153
|
+
return remap(v2, {
|
|
43154
|
+
file_id: "fileId"
|
|
43155
|
+
});
|
|
43156
|
+
});
|
|
43157
|
+
FileGetRequest$outboundSchema = objectType({
|
|
43158
|
+
fileId: stringType()
|
|
43159
|
+
}).transform((v2) => {
|
|
43160
|
+
return remap(v2, {
|
|
43161
|
+
fileId: "file_id"
|
|
41560
43162
|
});
|
|
41561
43163
|
});
|
|
41562
43164
|
((FileGetRequest$) => {
|
|
@@ -41576,7 +43178,7 @@ var init_fileget = __esm(() => {
|
|
|
41576
43178
|
bytes: numberType(),
|
|
41577
43179
|
file_name: stringType(),
|
|
41578
43180
|
workspace_id: stringType(),
|
|
41579
|
-
created: stringType().datetime({ offset: true }).default("2025-03-
|
|
43181
|
+
created: stringType().datetime({ offset: true }).default("2025-03-20T14:51:12.367Z").transform((v2) => new Date(v2))
|
|
41580
43182
|
}).transform((v2) => {
|
|
41581
43183
|
return remap(v2, {
|
|
41582
43184
|
_id: "id",
|
|
@@ -41592,7 +43194,7 @@ var init_fileget = __esm(() => {
|
|
|
41592
43194
|
bytes: numberType(),
|
|
41593
43195
|
fileName: stringType(),
|
|
41594
43196
|
workspaceId: stringType(),
|
|
41595
|
-
created: dateType().default(() => new Date("2025-03-
|
|
43197
|
+
created: dateType().default(() => new Date("2025-03-20T14:51:12.367Z")).transform((v2) => v2.toISOString())
|
|
41596
43198
|
}).transform((v2) => {
|
|
41597
43199
|
return remap(v2, {
|
|
41598
43200
|
id: "_id",
|
|
@@ -41675,7 +43277,7 @@ var init_filelist = __esm(() => {
|
|
|
41675
43277
|
bytes: numberType(),
|
|
41676
43278
|
file_name: stringType(),
|
|
41677
43279
|
workspace_id: stringType(),
|
|
41678
|
-
created: stringType().datetime({ offset: true }).default("2025-03-
|
|
43280
|
+
created: stringType().datetime({ offset: true }).default("2025-03-20T14:51:12.367Z").transform((v2) => new Date(v2))
|
|
41679
43281
|
}).transform((v2) => {
|
|
41680
43282
|
return remap(v2, {
|
|
41681
43283
|
_id: "id",
|
|
@@ -41691,7 +43293,7 @@ var init_filelist = __esm(() => {
|
|
|
41691
43293
|
bytes: numberType(),
|
|
41692
43294
|
fileName: stringType(),
|
|
41693
43295
|
workspaceId: stringType(),
|
|
41694
|
-
created: dateType().default(() => new Date("2025-03-
|
|
43296
|
+
created: dateType().default(() => new Date("2025-03-20T14:51:12.367Z")).transform((v2) => v2.toISOString())
|
|
41695
43297
|
}).transform((v2) => {
|
|
41696
43298
|
return remap(v2, {
|
|
41697
43299
|
id: "_id",
|
|
@@ -41823,7 +43425,7 @@ var init_fileupload = __esm(() => {
|
|
|
41823
43425
|
bytes: numberType(),
|
|
41824
43426
|
file_name: stringType(),
|
|
41825
43427
|
workspace_id: stringType(),
|
|
41826
|
-
created: stringType().datetime({ offset: true }).default("2025-03-
|
|
43428
|
+
created: stringType().datetime({ offset: true }).default("2025-03-20T14:51:12.367Z").transform((v2) => new Date(v2))
|
|
41827
43429
|
}).transform((v2) => {
|
|
41828
43430
|
return remap(v2, {
|
|
41829
43431
|
_id: "id",
|
|
@@ -41839,7 +43441,7 @@ var init_fileupload = __esm(() => {
|
|
|
41839
43441
|
bytes: numberType(),
|
|
41840
43442
|
fileName: stringType(),
|
|
41841
43443
|
workspaceId: stringType(),
|
|
41842
|
-
created: dateType().default(() => new Date("2025-03-
|
|
43444
|
+
created: dateType().default(() => new Date("2025-03-20T14:51:12.367Z")).transform((v2) => v2.toISOString())
|
|
41843
43445
|
}).transform((v2) => {
|
|
41844
43446
|
return remap(v2, {
|
|
41845
43447
|
id: "_id",
|
|
@@ -43891,7 +45493,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
43891
45493
|
created_by_id: stringType().optional(),
|
|
43892
45494
|
updated_by_id: stringType().optional(),
|
|
43893
45495
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43894
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
45496
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
43895
45497
|
}).transform((v2) => {
|
|
43896
45498
|
return remap(v2, {
|
|
43897
45499
|
_id: "id",
|
|
@@ -43912,7 +45514,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
43912
45514
|
createdById: stringType().optional(),
|
|
43913
45515
|
updatedById: stringType().optional(),
|
|
43914
45516
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43915
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
45517
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
43916
45518
|
}).transform((v2) => {
|
|
43917
45519
|
return remap(v2, {
|
|
43918
45520
|
id: "_id",
|
|
@@ -44032,7 +45634,7 @@ var init_listdatasets = __esm(() => {
|
|
|
44032
45634
|
updated_by_id: stringType().optional(),
|
|
44033
45635
|
metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
|
|
44034
45636
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44035
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
45637
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
44036
45638
|
}).transform((v2) => {
|
|
44037
45639
|
return remap(v2, {
|
|
44038
45640
|
_id: "id",
|
|
@@ -44052,7 +45654,7 @@ var init_listdatasets = __esm(() => {
|
|
|
44052
45654
|
updatedById: stringType().optional(),
|
|
44053
45655
|
metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
|
|
44054
45656
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44055
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
45657
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
44056
45658
|
}).transform((v2) => {
|
|
44057
45659
|
return remap(v2, {
|
|
44058
45660
|
id: "_id",
|
|
@@ -44976,7 +46578,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
44976
46578
|
created_by_id: stringType().optional(),
|
|
44977
46579
|
updated_by_id: stringType().optional(),
|
|
44978
46580
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44979
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
46581
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
44980
46582
|
}).transform((v2) => {
|
|
44981
46583
|
return remap(v2, {
|
|
44982
46584
|
_id: "id",
|
|
@@ -44997,7 +46599,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
44997
46599
|
createdById: stringType().optional(),
|
|
44998
46600
|
updatedById: stringType().optional(),
|
|
44999
46601
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45000
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
46602
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
45001
46603
|
}).transform((v2) => {
|
|
45002
46604
|
return remap(v2, {
|
|
45003
46605
|
id: "_id",
|
|
@@ -45068,7 +46670,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
45068
46670
|
updated_by_id: stringType().optional(),
|
|
45069
46671
|
metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
|
|
45070
46672
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45071
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
46673
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
45072
46674
|
}).transform((v2) => {
|
|
45073
46675
|
return remap(v2, {
|
|
45074
46676
|
_id: "id",
|
|
@@ -45088,7 +46690,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
45088
46690
|
updatedById: stringType().optional(),
|
|
45089
46691
|
metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
|
|
45090
46692
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45091
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
46693
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
45092
46694
|
}).transform((v2) => {
|
|
45093
46695
|
return remap(v2, {
|
|
45094
46696
|
id: "_id",
|
|
@@ -45528,7 +47130,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
45528
47130
|
created_by_id: stringType().optional(),
|
|
45529
47131
|
updated_by_id: stringType().optional(),
|
|
45530
47132
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45531
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
47133
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
45532
47134
|
}).transform((v2) => {
|
|
45533
47135
|
return remap(v2, {
|
|
45534
47136
|
_id: "id",
|
|
@@ -45549,7 +47151,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
45549
47151
|
createdById: stringType().optional(),
|
|
45550
47152
|
updatedById: stringType().optional(),
|
|
45551
47153
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45552
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
47154
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
45553
47155
|
}).transform((v2) => {
|
|
45554
47156
|
return remap(v2, {
|
|
45555
47157
|
id: "_id",
|
|
@@ -45644,7 +47246,7 @@ var init_updatedataset = __esm(() => {
|
|
|
45644
47246
|
parent_id: stringType().optional(),
|
|
45645
47247
|
version: stringType().optional(),
|
|
45646
47248
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45647
|
-
updated: stringType().datetime({ offset: true }).default("2025-03-
|
|
47249
|
+
updated: stringType().datetime({ offset: true }).default("2025-03-20T14:51:11.226Z").transform((v2) => new Date(v2))
|
|
45648
47250
|
}).transform((v2) => {
|
|
45649
47251
|
return remap(v2, {
|
|
45650
47252
|
_id: "id",
|
|
@@ -45667,7 +47269,7 @@ var init_updatedataset = __esm(() => {
|
|
|
45667
47269
|
parentId: stringType().optional(),
|
|
45668
47270
|
version: stringType().optional(),
|
|
45669
47271
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45670
|
-
updated: dateType().default(() => new Date("2025-03-
|
|
47272
|
+
updated: dateType().default(() => new Date("2025-03-20T14:51:11.226Z")).transform((v2) => v2.toISOString())
|
|
45671
47273
|
}).transform((v2) => {
|
|
45672
47274
|
return remap(v2, {
|
|
45673
47275
|
id: "_id",
|
|
@@ -45686,11 +47288,11 @@ var init_updatedataset = __esm(() => {
|
|
|
45686
47288
|
});
|
|
45687
47289
|
|
|
45688
47290
|
// src/models/operations/updateprompt.ts
|
|
45689
|
-
var
|
|
47291
|
+
var UpdatePromptModelType, UpdatePromptFormat, UpdatePromptQuality, UpdatePromptResponseFormatPromptsType, UpdatePromptResponseFormatType, UpdatePromptPhotoRealVersion, UpdatePromptEncodingFormat, UpdatePromptReasoningEffort, UpdatePromptProvider, UpdatePromptRole, UpdatePrompt2PromptsType, UpdatePrompt2Type, UpdatePromptType, UpdatePromptUseCases, UpdatePromptLanguage, UpdatePromptPromptsType, UpdatePromptPromptsModelType, UpdatePromptPromptsFormat, UpdatePromptPromptsQuality, UpdatePromptResponseFormatPromptsResponse200Type, UpdatePromptResponseFormatPromptsResponseType, UpdatePromptPromptsPhotoRealVersion, UpdatePromptPromptsEncodingFormat, UpdatePromptPromptsReasoningEffort, UpdatePromptPromptsProvider, UpdatePromptPromptsRole, UpdatePrompt2PromptsResponse200Type, UpdatePrompt2PromptsResponseType, UpdatePromptPromptsResponseType, UpdatePromptPromptsUseCases, UpdatePromptPromptsLanguage, UpdatePromptModelType$inboundSchema, UpdatePromptModelType$outboundSchema, UpdatePromptModelType$, UpdatePromptFormat$inboundSchema, UpdatePromptFormat$outboundSchema, UpdatePromptFormat$, UpdatePromptQuality$inboundSchema, UpdatePromptQuality$outboundSchema, UpdatePromptQuality$, UpdatePromptResponseFormatPromptsType$inboundSchema, UpdatePromptResponseFormatPromptsType$outboundSchema, UpdatePromptResponseFormatPromptsType$, UpdatePromptResponseFormat2$inboundSchema, UpdatePromptResponseFormat2$outboundSchema, UpdatePromptResponseFormat2$, UpdatePromptResponseFormatType$inboundSchema, UpdatePromptResponseFormatType$outboundSchema, UpdatePromptResponseFormatType$, ResponseFormatJsonSchema$inboundSchema, ResponseFormatJsonSchema$outboundSchema, ResponseFormatJsonSchema$, UpdatePromptResponseFormat1$inboundSchema, UpdatePromptResponseFormat1$outboundSchema, UpdatePromptResponseFormat1$, UpdatePromptResponseFormat$inboundSchema, UpdatePromptResponseFormat$outboundSchema, UpdatePromptResponseFormat$, UpdatePromptPhotoRealVersion$inboundSchema, UpdatePromptPhotoRealVersion$outboundSchema, UpdatePromptPhotoRealVersion$, UpdatePromptEncodingFormat$inboundSchema, UpdatePromptEncodingFormat$outboundSchema, UpdatePromptEncodingFormat$, UpdatePromptReasoningEffort$inboundSchema, UpdatePromptReasoningEffort$outboundSchema, UpdatePromptReasoningEffort$, UpdatePromptModelParameters$inboundSchema, UpdatePromptModelParameters$outboundSchema, UpdatePromptModelParameters$, UpdatePromptProvider$inboundSchema, UpdatePromptProvider$outboundSchema, UpdatePromptProvider$, UpdatePromptRole$inboundSchema, UpdatePromptRole$outboundSchema, UpdatePromptRole$, UpdatePrompt2PromptsType$inboundSchema, UpdatePrompt2PromptsType$outboundSchema, UpdatePrompt2PromptsType$, UpdatePrompt2ImageUrl$inboundSchema, UpdatePrompt2ImageUrl$outboundSchema, UpdatePrompt2ImageUrl$, UpdatePrompt22$inboundSchema, UpdatePrompt22$outboundSchema, UpdatePrompt22$, UpdatePrompt2Type$inboundSchema, UpdatePrompt2Type$outboundSchema, UpdatePrompt2Type$, UpdatePrompt21$inboundSchema, UpdatePrompt21$outboundSchema, UpdatePrompt21$, UpdatePromptContent2$inboundSchema, UpdatePromptContent2$outboundSchema, UpdatePromptContent2$, UpdatePromptContent$inboundSchema, UpdatePromptContent$outboundSchema, UpdatePromptContent$, UpdatePromptType$inboundSchema, UpdatePromptType$outboundSchema, UpdatePromptType$, UpdatePromptFunction$inboundSchema, UpdatePromptFunction$outboundSchema, UpdatePromptFunction$, UpdatePromptToolCalls$inboundSchema, UpdatePromptToolCalls$outboundSchema, UpdatePromptToolCalls$, UpdatePromptMessages$inboundSchema, UpdatePromptMessages$outboundSchema, UpdatePromptMessages$, UpdatePromptPromptConfig$inboundSchema, UpdatePromptPromptConfig$outboundSchema, UpdatePromptPromptConfig$, UpdatePromptUseCases$inboundSchema, UpdatePromptUseCases$outboundSchema, UpdatePromptUseCases$, UpdatePromptLanguage$inboundSchema, UpdatePromptLanguage$outboundSchema, UpdatePromptLanguage$, UpdatePromptMetadata$inboundSchema, UpdatePromptMetadata$outboundSchema, UpdatePromptMetadata$, UpdatePromptRequestBody$inboundSchema, UpdatePromptRequestBody$outboundSchema, UpdatePromptRequestBody$, UpdatePromptRequest$inboundSchema, UpdatePromptRequest$outboundSchema, UpdatePromptRequest$, UpdatePromptPromptsType$inboundSchema, UpdatePromptPromptsType$outboundSchema, UpdatePromptPromptsType$, UpdatePromptPromptsModelType$inboundSchema, UpdatePromptPromptsModelType$outboundSchema, UpdatePromptPromptsModelType$, UpdatePromptPromptsFormat$inboundSchema, UpdatePromptPromptsFormat$outboundSchema, UpdatePromptPromptsFormat$, UpdatePromptPromptsQuality$inboundSchema, UpdatePromptPromptsQuality$outboundSchema, UpdatePromptPromptsQuality$, UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema, UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema, UpdatePromptResponseFormatPromptsResponse200Type$, UpdatePromptResponseFormatPrompts2$inboundSchema, UpdatePromptResponseFormatPrompts2$outboundSchema, UpdatePromptResponseFormatPrompts2$, UpdatePromptResponseFormatPromptsResponseType$inboundSchema, UpdatePromptResponseFormatPromptsResponseType$outboundSchema, UpdatePromptResponseFormatPromptsResponseType$, UpdatePromptResponseFormatJsonSchema$inboundSchema, UpdatePromptResponseFormatJsonSchema$outboundSchema, UpdatePromptResponseFormatJsonSchema$, UpdatePromptResponseFormatPrompts1$inboundSchema, UpdatePromptResponseFormatPrompts1$outboundSchema, UpdatePromptResponseFormatPrompts1$, UpdatePromptPromptsResponseFormat$inboundSchema, UpdatePromptPromptsResponseFormat$outboundSchema, UpdatePromptPromptsResponseFormat$, UpdatePromptPromptsPhotoRealVersion$inboundSchema, UpdatePromptPromptsPhotoRealVersion$outboundSchema, UpdatePromptPromptsPhotoRealVersion$, UpdatePromptPromptsEncodingFormat$inboundSchema, UpdatePromptPromptsEncodingFormat$outboundSchema, UpdatePromptPromptsEncodingFormat$, UpdatePromptPromptsReasoningEffort$inboundSchema, UpdatePromptPromptsReasoningEffort$outboundSchema, UpdatePromptPromptsReasoningEffort$, UpdatePromptPromptsModelParameters$inboundSchema, UpdatePromptPromptsModelParameters$outboundSchema, UpdatePromptPromptsModelParameters$, UpdatePromptPromptsProvider$inboundSchema, UpdatePromptPromptsProvider$outboundSchema, UpdatePromptPromptsProvider$, UpdatePromptPromptsRole$inboundSchema, UpdatePromptPromptsRole$outboundSchema, UpdatePromptPromptsRole$, UpdatePrompt2PromptsResponse200Type$inboundSchema, UpdatePrompt2PromptsResponse200Type$outboundSchema, UpdatePrompt2PromptsResponse200Type$, UpdatePrompt2PromptsImageUrl$inboundSchema, UpdatePrompt2PromptsImageUrl$outboundSchema, UpdatePrompt2PromptsImageUrl$, UpdatePrompt2Prompts2$inboundSchema, UpdatePrompt2Prompts2$outboundSchema, UpdatePrompt2Prompts2$, UpdatePrompt2PromptsResponseType$inboundSchema, UpdatePrompt2PromptsResponseType$outboundSchema, UpdatePrompt2PromptsResponseType$, UpdatePrompt2Prompts1$inboundSchema, UpdatePrompt2Prompts1$outboundSchema, UpdatePrompt2Prompts1$, UpdatePromptContentPrompts2$inboundSchema, UpdatePromptContentPrompts2$outboundSchema, UpdatePromptContentPrompts2$, UpdatePromptPromptsContent$inboundSchema, UpdatePromptPromptsContent$outboundSchema, UpdatePromptPromptsContent$, UpdatePromptPromptsResponseType$inboundSchema, UpdatePromptPromptsResponseType$outboundSchema, UpdatePromptPromptsResponseType$, UpdatePromptPromptsFunction$inboundSchema, UpdatePromptPromptsFunction$outboundSchema, UpdatePromptPromptsFunction$, UpdatePromptPromptsToolCalls$inboundSchema, UpdatePromptPromptsToolCalls$outboundSchema, UpdatePromptPromptsToolCalls$, UpdatePromptPromptsMessages$inboundSchema, UpdatePromptPromptsMessages$outboundSchema, UpdatePromptPromptsMessages$, UpdatePromptPromptsPromptConfig$inboundSchema, UpdatePromptPromptsPromptConfig$outboundSchema, UpdatePromptPromptsPromptConfig$, UpdatePromptPromptsUseCases$inboundSchema, UpdatePromptPromptsUseCases$outboundSchema, UpdatePromptPromptsUseCases$, UpdatePromptPromptsLanguage$inboundSchema, UpdatePromptPromptsLanguage$outboundSchema, UpdatePromptPromptsLanguage$, UpdatePromptPromptsMetadata$inboundSchema, UpdatePromptPromptsMetadata$outboundSchema, UpdatePromptPromptsMetadata$, UpdatePromptResponseBody$inboundSchema, UpdatePromptResponseBody$outboundSchema, UpdatePromptResponseBody$;
|
|
45690
47292
|
var init_updateprompt = __esm(() => {
|
|
45691
47293
|
init_lib();
|
|
45692
47294
|
init_primitives();
|
|
45693
|
-
|
|
47295
|
+
UpdatePromptModelType = {
|
|
45694
47296
|
Chat: "chat",
|
|
45695
47297
|
Completion: "completion",
|
|
45696
47298
|
Embedding: "embedding",
|
|
@@ -45707,30 +47309,30 @@ var init_updateprompt = __esm(() => {
|
|
|
45707
47309
|
Text: "text",
|
|
45708
47310
|
JsonObject: "json_object"
|
|
45709
47311
|
};
|
|
45710
|
-
|
|
47312
|
+
UpdatePromptQuality = {
|
|
45711
47313
|
Standard: "standard",
|
|
45712
47314
|
Hd: "hd"
|
|
45713
47315
|
};
|
|
45714
|
-
|
|
47316
|
+
UpdatePromptResponseFormatPromptsType = {
|
|
45715
47317
|
JsonObject: "json_object"
|
|
45716
47318
|
};
|
|
45717
|
-
|
|
47319
|
+
UpdatePromptResponseFormatType = {
|
|
45718
47320
|
JsonSchema: "json_schema"
|
|
45719
47321
|
};
|
|
45720
|
-
|
|
47322
|
+
UpdatePromptPhotoRealVersion = {
|
|
45721
47323
|
V1: "v1",
|
|
45722
47324
|
V2: "v2"
|
|
45723
47325
|
};
|
|
45724
|
-
|
|
47326
|
+
UpdatePromptEncodingFormat = {
|
|
45725
47327
|
Float: "float",
|
|
45726
47328
|
Base64: "base64"
|
|
45727
47329
|
};
|
|
45728
|
-
|
|
47330
|
+
UpdatePromptReasoningEffort = {
|
|
45729
47331
|
Low: "low",
|
|
45730
47332
|
Medium: "medium",
|
|
45731
47333
|
High: "high"
|
|
45732
47334
|
};
|
|
45733
|
-
|
|
47335
|
+
UpdatePromptProvider = {
|
|
45734
47336
|
Cohere: "cohere",
|
|
45735
47337
|
Openai: "openai",
|
|
45736
47338
|
Anthropic: "anthropic",
|
|
@@ -45769,7 +47371,7 @@ var init_updateprompt = __esm(() => {
|
|
|
45769
47371
|
UpdatePromptType = {
|
|
45770
47372
|
Function: "function"
|
|
45771
47373
|
};
|
|
45772
|
-
|
|
47374
|
+
UpdatePromptUseCases = {
|
|
45773
47375
|
Agents: "Agents",
|
|
45774
47376
|
AgentsSimulations: "Agents simulations",
|
|
45775
47377
|
APIInteraction: "API interaction",
|
|
@@ -45787,7 +47389,7 @@ var init_updateprompt = __esm(() => {
|
|
|
45787
47389
|
Summarization: "Summarization",
|
|
45788
47390
|
Tagging: "Tagging"
|
|
45789
47391
|
};
|
|
45790
|
-
|
|
47392
|
+
UpdatePromptLanguage = {
|
|
45791
47393
|
Chinese: "Chinese",
|
|
45792
47394
|
Dutch: "Dutch",
|
|
45793
47395
|
English: "English",
|
|
@@ -45799,7 +47401,7 @@ var init_updateprompt = __esm(() => {
|
|
|
45799
47401
|
UpdatePromptPromptsType = {
|
|
45800
47402
|
Prompt: "prompt"
|
|
45801
47403
|
};
|
|
45802
|
-
|
|
47404
|
+
UpdatePromptPromptsModelType = {
|
|
45803
47405
|
Chat: "chat",
|
|
45804
47406
|
Completion: "completion",
|
|
45805
47407
|
Embedding: "embedding",
|
|
@@ -45816,30 +47418,30 @@ var init_updateprompt = __esm(() => {
|
|
|
45816
47418
|
Text: "text",
|
|
45817
47419
|
JsonObject: "json_object"
|
|
45818
47420
|
};
|
|
45819
|
-
|
|
47421
|
+
UpdatePromptPromptsQuality = {
|
|
45820
47422
|
Standard: "standard",
|
|
45821
47423
|
Hd: "hd"
|
|
45822
47424
|
};
|
|
45823
|
-
|
|
47425
|
+
UpdatePromptResponseFormatPromptsResponse200Type = {
|
|
45824
47426
|
JsonObject: "json_object"
|
|
45825
47427
|
};
|
|
45826
|
-
|
|
47428
|
+
UpdatePromptResponseFormatPromptsResponseType = {
|
|
45827
47429
|
JsonSchema: "json_schema"
|
|
45828
47430
|
};
|
|
45829
|
-
|
|
47431
|
+
UpdatePromptPromptsPhotoRealVersion = {
|
|
45830
47432
|
V1: "v1",
|
|
45831
47433
|
V2: "v2"
|
|
45832
47434
|
};
|
|
45833
|
-
|
|
47435
|
+
UpdatePromptPromptsEncodingFormat = {
|
|
45834
47436
|
Float: "float",
|
|
45835
47437
|
Base64: "base64"
|
|
45836
47438
|
};
|
|
45837
|
-
|
|
47439
|
+
UpdatePromptPromptsReasoningEffort = {
|
|
45838
47440
|
Low: "low",
|
|
45839
47441
|
Medium: "medium",
|
|
45840
47442
|
High: "high"
|
|
45841
47443
|
};
|
|
45842
|
-
|
|
47444
|
+
UpdatePromptPromptsProvider = {
|
|
45843
47445
|
Cohere: "cohere",
|
|
45844
47446
|
Openai: "openai",
|
|
45845
47447
|
Anthropic: "anthropic",
|
|
@@ -45878,7 +47480,7 @@ var init_updateprompt = __esm(() => {
|
|
|
45878
47480
|
UpdatePromptPromptsResponseType = {
|
|
45879
47481
|
Function: "function"
|
|
45880
47482
|
};
|
|
45881
|
-
|
|
47483
|
+
UpdatePromptPromptsUseCases = {
|
|
45882
47484
|
Agents: "Agents",
|
|
45883
47485
|
AgentsSimulations: "Agents simulations",
|
|
45884
47486
|
APIInteraction: "API interaction",
|
|
@@ -45896,7 +47498,7 @@ var init_updateprompt = __esm(() => {
|
|
|
45896
47498
|
Summarization: "Summarization",
|
|
45897
47499
|
Tagging: "Tagging"
|
|
45898
47500
|
};
|
|
45899
|
-
|
|
47501
|
+
UpdatePromptPromptsLanguage = {
|
|
45900
47502
|
Chinese: "Chinese",
|
|
45901
47503
|
Dutch: "Dutch",
|
|
45902
47504
|
English: "English",
|
|
@@ -45905,111 +47507,111 @@ var init_updateprompt = __esm(() => {
|
|
|
45905
47507
|
Russian: "Russian",
|
|
45906
47508
|
Spanish: "Spanish"
|
|
45907
47509
|
};
|
|
45908
|
-
|
|
45909
|
-
|
|
45910
|
-
((
|
|
45911
|
-
|
|
45912
|
-
|
|
45913
|
-
})(
|
|
47510
|
+
UpdatePromptModelType$inboundSchema = nativeEnumType(UpdatePromptModelType);
|
|
47511
|
+
UpdatePromptModelType$outboundSchema = UpdatePromptModelType$inboundSchema;
|
|
47512
|
+
((UpdatePromptModelType$) => {
|
|
47513
|
+
UpdatePromptModelType$.inboundSchema = UpdatePromptModelType$inboundSchema;
|
|
47514
|
+
UpdatePromptModelType$.outboundSchema = UpdatePromptModelType$outboundSchema;
|
|
47515
|
+
})(UpdatePromptModelType$ ||= {});
|
|
45914
47516
|
UpdatePromptFormat$inboundSchema = nativeEnumType(UpdatePromptFormat);
|
|
45915
47517
|
UpdatePromptFormat$outboundSchema = UpdatePromptFormat$inboundSchema;
|
|
45916
47518
|
((UpdatePromptFormat$) => {
|
|
45917
47519
|
UpdatePromptFormat$.inboundSchema = UpdatePromptFormat$inboundSchema;
|
|
45918
47520
|
UpdatePromptFormat$.outboundSchema = UpdatePromptFormat$outboundSchema;
|
|
45919
47521
|
})(UpdatePromptFormat$ ||= {});
|
|
45920
|
-
|
|
45921
|
-
|
|
45922
|
-
((
|
|
45923
|
-
|
|
45924
|
-
|
|
45925
|
-
})(
|
|
47522
|
+
UpdatePromptQuality$inboundSchema = nativeEnumType(UpdatePromptQuality);
|
|
47523
|
+
UpdatePromptQuality$outboundSchema = UpdatePromptQuality$inboundSchema;
|
|
47524
|
+
((UpdatePromptQuality$) => {
|
|
47525
|
+
UpdatePromptQuality$.inboundSchema = UpdatePromptQuality$inboundSchema;
|
|
47526
|
+
UpdatePromptQuality$.outboundSchema = UpdatePromptQuality$outboundSchema;
|
|
47527
|
+
})(UpdatePromptQuality$ ||= {});
|
|
47528
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema = nativeEnumType(UpdatePromptResponseFormatPromptsType);
|
|
47529
|
+
UpdatePromptResponseFormatPromptsType$outboundSchema = UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
47530
|
+
((UpdatePromptResponseFormatPromptsType$) => {
|
|
47531
|
+
UpdatePromptResponseFormatPromptsType$.inboundSchema = UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
47532
|
+
UpdatePromptResponseFormatPromptsType$.outboundSchema = UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
47533
|
+
})(UpdatePromptResponseFormatPromptsType$ ||= {});
|
|
47534
|
+
UpdatePromptResponseFormat2$inboundSchema = objectType({
|
|
47535
|
+
type: UpdatePromptResponseFormatPromptsType$inboundSchema
|
|
47536
|
+
});
|
|
47537
|
+
UpdatePromptResponseFormat2$outboundSchema = objectType({
|
|
47538
|
+
type: UpdatePromptResponseFormatPromptsType$outboundSchema
|
|
47539
|
+
});
|
|
47540
|
+
((UpdatePromptResponseFormat2$) => {
|
|
47541
|
+
UpdatePromptResponseFormat2$.inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
47542
|
+
UpdatePromptResponseFormat2$.outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
47543
|
+
})(UpdatePromptResponseFormat2$ ||= {});
|
|
45926
47544
|
UpdatePromptResponseFormatType$inboundSchema = nativeEnumType(UpdatePromptResponseFormatType);
|
|
45927
47545
|
UpdatePromptResponseFormatType$outboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
45928
47546
|
((UpdatePromptResponseFormatType$) => {
|
|
45929
47547
|
UpdatePromptResponseFormatType$.inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
45930
47548
|
UpdatePromptResponseFormatType$.outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
|
|
45931
47549
|
})(UpdatePromptResponseFormatType$ ||= {});
|
|
45932
|
-
|
|
45933
|
-
type: UpdatePromptResponseFormatType$inboundSchema
|
|
45934
|
-
});
|
|
45935
|
-
ResponseFormat2$outboundSchema = objectType({
|
|
45936
|
-
type: UpdatePromptResponseFormatType$outboundSchema
|
|
45937
|
-
});
|
|
45938
|
-
((ResponseFormat2$) => {
|
|
45939
|
-
ResponseFormat2$.inboundSchema = ResponseFormat2$inboundSchema;
|
|
45940
|
-
ResponseFormat2$.outboundSchema = ResponseFormat2$outboundSchema;
|
|
45941
|
-
})(ResponseFormat2$ ||= {});
|
|
45942
|
-
ResponseFormatType$inboundSchema = nativeEnumType(ResponseFormatType);
|
|
45943
|
-
ResponseFormatType$outboundSchema = ResponseFormatType$inboundSchema;
|
|
45944
|
-
((ResponseFormatType$) => {
|
|
45945
|
-
ResponseFormatType$.inboundSchema = ResponseFormatType$inboundSchema;
|
|
45946
|
-
ResponseFormatType$.outboundSchema = ResponseFormatType$outboundSchema;
|
|
45947
|
-
})(ResponseFormatType$ ||= {});
|
|
45948
|
-
JsonSchema$inboundSchema = objectType({
|
|
47550
|
+
ResponseFormatJsonSchema$inboundSchema = objectType({
|
|
45949
47551
|
name: stringType(),
|
|
45950
47552
|
strict: booleanType(),
|
|
45951
47553
|
schema: recordType(anyType())
|
|
45952
47554
|
});
|
|
45953
|
-
|
|
47555
|
+
ResponseFormatJsonSchema$outboundSchema = objectType({
|
|
45954
47556
|
name: stringType(),
|
|
45955
|
-
strict: booleanType(),
|
|
45956
|
-
schema: recordType(anyType())
|
|
45957
|
-
});
|
|
45958
|
-
((
|
|
45959
|
-
|
|
45960
|
-
|
|
45961
|
-
})(
|
|
45962
|
-
|
|
45963
|
-
type:
|
|
45964
|
-
json_schema: lazyType(() =>
|
|
47557
|
+
strict: booleanType(),
|
|
47558
|
+
schema: recordType(anyType())
|
|
47559
|
+
});
|
|
47560
|
+
((ResponseFormatJsonSchema$) => {
|
|
47561
|
+
ResponseFormatJsonSchema$.inboundSchema = ResponseFormatJsonSchema$inboundSchema;
|
|
47562
|
+
ResponseFormatJsonSchema$.outboundSchema = ResponseFormatJsonSchema$outboundSchema;
|
|
47563
|
+
})(ResponseFormatJsonSchema$ ||= {});
|
|
47564
|
+
UpdatePromptResponseFormat1$inboundSchema = objectType({
|
|
47565
|
+
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
47566
|
+
json_schema: lazyType(() => ResponseFormatJsonSchema$inboundSchema)
|
|
45965
47567
|
}).transform((v2) => {
|
|
45966
47568
|
return remap(v2, {
|
|
45967
47569
|
json_schema: "jsonSchema"
|
|
45968
47570
|
});
|
|
45969
47571
|
});
|
|
45970
|
-
|
|
45971
|
-
type:
|
|
45972
|
-
jsonSchema: lazyType(() =>
|
|
47572
|
+
UpdatePromptResponseFormat1$outboundSchema = objectType({
|
|
47573
|
+
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
47574
|
+
jsonSchema: lazyType(() => ResponseFormatJsonSchema$outboundSchema)
|
|
45973
47575
|
}).transform((v2) => {
|
|
45974
47576
|
return remap(v2, {
|
|
45975
47577
|
jsonSchema: "json_schema"
|
|
45976
47578
|
});
|
|
45977
47579
|
});
|
|
45978
|
-
((
|
|
45979
|
-
|
|
45980
|
-
|
|
45981
|
-
})(
|
|
45982
|
-
|
|
45983
|
-
lazyType(() =>
|
|
45984
|
-
lazyType(() =>
|
|
47580
|
+
((UpdatePromptResponseFormat1$) => {
|
|
47581
|
+
UpdatePromptResponseFormat1$.inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
|
|
47582
|
+
UpdatePromptResponseFormat1$.outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
|
|
47583
|
+
})(UpdatePromptResponseFormat1$ ||= {});
|
|
47584
|
+
UpdatePromptResponseFormat$inboundSchema = unionType([
|
|
47585
|
+
lazyType(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
47586
|
+
lazyType(() => UpdatePromptResponseFormat1$inboundSchema)
|
|
45985
47587
|
]);
|
|
45986
|
-
|
|
45987
|
-
lazyType(() =>
|
|
45988
|
-
lazyType(() =>
|
|
47588
|
+
UpdatePromptResponseFormat$outboundSchema = unionType([
|
|
47589
|
+
lazyType(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
47590
|
+
lazyType(() => UpdatePromptResponseFormat1$outboundSchema)
|
|
45989
47591
|
]);
|
|
45990
|
-
((
|
|
45991
|
-
|
|
45992
|
-
|
|
45993
|
-
})(
|
|
45994
|
-
|
|
45995
|
-
|
|
45996
|
-
((
|
|
45997
|
-
|
|
45998
|
-
|
|
45999
|
-
})(
|
|
46000
|
-
|
|
46001
|
-
|
|
46002
|
-
((
|
|
46003
|
-
|
|
46004
|
-
|
|
46005
|
-
})(
|
|
46006
|
-
|
|
46007
|
-
|
|
46008
|
-
((
|
|
46009
|
-
|
|
46010
|
-
|
|
46011
|
-
})(
|
|
46012
|
-
|
|
47592
|
+
((UpdatePromptResponseFormat$) => {
|
|
47593
|
+
UpdatePromptResponseFormat$.inboundSchema = UpdatePromptResponseFormat$inboundSchema;
|
|
47594
|
+
UpdatePromptResponseFormat$.outboundSchema = UpdatePromptResponseFormat$outboundSchema;
|
|
47595
|
+
})(UpdatePromptResponseFormat$ ||= {});
|
|
47596
|
+
UpdatePromptPhotoRealVersion$inboundSchema = nativeEnumType(UpdatePromptPhotoRealVersion);
|
|
47597
|
+
UpdatePromptPhotoRealVersion$outboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
47598
|
+
((UpdatePromptPhotoRealVersion$) => {
|
|
47599
|
+
UpdatePromptPhotoRealVersion$.inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
47600
|
+
UpdatePromptPhotoRealVersion$.outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
|
|
47601
|
+
})(UpdatePromptPhotoRealVersion$ ||= {});
|
|
47602
|
+
UpdatePromptEncodingFormat$inboundSchema = nativeEnumType(UpdatePromptEncodingFormat);
|
|
47603
|
+
UpdatePromptEncodingFormat$outboundSchema = UpdatePromptEncodingFormat$inboundSchema;
|
|
47604
|
+
((UpdatePromptEncodingFormat$) => {
|
|
47605
|
+
UpdatePromptEncodingFormat$.inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
|
|
47606
|
+
UpdatePromptEncodingFormat$.outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
|
|
47607
|
+
})(UpdatePromptEncodingFormat$ ||= {});
|
|
47608
|
+
UpdatePromptReasoningEffort$inboundSchema = nativeEnumType(UpdatePromptReasoningEffort);
|
|
47609
|
+
UpdatePromptReasoningEffort$outboundSchema = UpdatePromptReasoningEffort$inboundSchema;
|
|
47610
|
+
((UpdatePromptReasoningEffort$) => {
|
|
47611
|
+
UpdatePromptReasoningEffort$.inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
|
|
47612
|
+
UpdatePromptReasoningEffort$.outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
|
|
47613
|
+
})(UpdatePromptReasoningEffort$ ||= {});
|
|
47614
|
+
UpdatePromptModelParameters$inboundSchema = objectType({
|
|
46013
47615
|
temperature: numberType().optional(),
|
|
46014
47616
|
maxTokens: numberType().optional(),
|
|
46015
47617
|
topK: numberType().optional(),
|
|
@@ -46020,22 +47622,22 @@ var init_updateprompt = __esm(() => {
|
|
|
46020
47622
|
seed: numberType().optional(),
|
|
46021
47623
|
format: UpdatePromptFormat$inboundSchema.optional(),
|
|
46022
47624
|
dimensions: stringType().optional(),
|
|
46023
|
-
quality:
|
|
47625
|
+
quality: UpdatePromptQuality$inboundSchema.optional(),
|
|
46024
47626
|
style: stringType().optional(),
|
|
46025
47627
|
responseFormat: nullableType(unionType([
|
|
46026
|
-
lazyType(() =>
|
|
46027
|
-
lazyType(() =>
|
|
47628
|
+
lazyType(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
47629
|
+
lazyType(() => UpdatePromptResponseFormat1$inboundSchema)
|
|
46028
47630
|
])).optional(),
|
|
46029
|
-
photoRealVersion:
|
|
46030
|
-
encoding_format:
|
|
46031
|
-
reasoningEffort:
|
|
47631
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
47632
|
+
encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
47633
|
+
reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
46032
47634
|
budgetTokens: numberType().optional()
|
|
46033
47635
|
}).transform((v2) => {
|
|
46034
47636
|
return remap(v2, {
|
|
46035
47637
|
encoding_format: "encodingFormat"
|
|
46036
47638
|
});
|
|
46037
47639
|
});
|
|
46038
|
-
|
|
47640
|
+
UpdatePromptModelParameters$outboundSchema = objectType({
|
|
46039
47641
|
temperature: numberType().optional(),
|
|
46040
47642
|
maxTokens: numberType().optional(),
|
|
46041
47643
|
topK: numberType().optional(),
|
|
@@ -46046,31 +47648,31 @@ var init_updateprompt = __esm(() => {
|
|
|
46046
47648
|
seed: numberType().optional(),
|
|
46047
47649
|
format: UpdatePromptFormat$outboundSchema.optional(),
|
|
46048
47650
|
dimensions: stringType().optional(),
|
|
46049
|
-
quality:
|
|
47651
|
+
quality: UpdatePromptQuality$outboundSchema.optional(),
|
|
46050
47652
|
style: stringType().optional(),
|
|
46051
47653
|
responseFormat: nullableType(unionType([
|
|
46052
|
-
lazyType(() =>
|
|
46053
|
-
lazyType(() =>
|
|
47654
|
+
lazyType(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
47655
|
+
lazyType(() => UpdatePromptResponseFormat1$outboundSchema)
|
|
46054
47656
|
])).optional(),
|
|
46055
|
-
photoRealVersion:
|
|
46056
|
-
encodingFormat:
|
|
46057
|
-
reasoningEffort:
|
|
47657
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
47658
|
+
encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
47659
|
+
reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
46058
47660
|
budgetTokens: numberType().optional()
|
|
46059
47661
|
}).transform((v2) => {
|
|
46060
47662
|
return remap(v2, {
|
|
46061
47663
|
encodingFormat: "encoding_format"
|
|
46062
47664
|
});
|
|
46063
47665
|
});
|
|
46064
|
-
((
|
|
46065
|
-
|
|
46066
|
-
|
|
46067
|
-
})(
|
|
46068
|
-
|
|
46069
|
-
|
|
46070
|
-
((
|
|
46071
|
-
|
|
46072
|
-
|
|
46073
|
-
})(
|
|
47666
|
+
((UpdatePromptModelParameters$) => {
|
|
47667
|
+
UpdatePromptModelParameters$.inboundSchema = UpdatePromptModelParameters$inboundSchema;
|
|
47668
|
+
UpdatePromptModelParameters$.outboundSchema = UpdatePromptModelParameters$outboundSchema;
|
|
47669
|
+
})(UpdatePromptModelParameters$ ||= {});
|
|
47670
|
+
UpdatePromptProvider$inboundSchema = nativeEnumType(UpdatePromptProvider);
|
|
47671
|
+
UpdatePromptProvider$outboundSchema = UpdatePromptProvider$inboundSchema;
|
|
47672
|
+
((UpdatePromptProvider$) => {
|
|
47673
|
+
UpdatePromptProvider$.inboundSchema = UpdatePromptProvider$inboundSchema;
|
|
47674
|
+
UpdatePromptProvider$.outboundSchema = UpdatePromptProvider$outboundSchema;
|
|
47675
|
+
})(UpdatePromptProvider$ ||= {});
|
|
46074
47676
|
UpdatePromptRole$inboundSchema = nativeEnumType(UpdatePromptRole);
|
|
46075
47677
|
UpdatePromptRole$outboundSchema = UpdatePromptRole$inboundSchema;
|
|
46076
47678
|
((UpdatePromptRole$) => {
|
|
@@ -46231,12 +47833,12 @@ var init_updateprompt = __esm(() => {
|
|
|
46231
47833
|
UpdatePromptMessages$.inboundSchema = UpdatePromptMessages$inboundSchema;
|
|
46232
47834
|
UpdatePromptMessages$.outboundSchema = UpdatePromptMessages$outboundSchema;
|
|
46233
47835
|
})(UpdatePromptMessages$ ||= {});
|
|
46234
|
-
|
|
47836
|
+
UpdatePromptPromptConfig$inboundSchema = objectType({
|
|
46235
47837
|
stream: booleanType().optional(),
|
|
46236
47838
|
model: stringType().optional(),
|
|
46237
|
-
model_type:
|
|
46238
|
-
model_parameters: lazyType(() =>
|
|
46239
|
-
provider:
|
|
47839
|
+
model_type: UpdatePromptModelType$inboundSchema.optional(),
|
|
47840
|
+
model_parameters: lazyType(() => UpdatePromptModelParameters$inboundSchema).optional(),
|
|
47841
|
+
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
46240
47842
|
version: stringType().optional(),
|
|
46241
47843
|
messages: arrayType(lazyType(() => UpdatePromptMessages$inboundSchema))
|
|
46242
47844
|
}).transform((v2) => {
|
|
@@ -46245,12 +47847,12 @@ var init_updateprompt = __esm(() => {
|
|
|
46245
47847
|
model_parameters: "modelParameters"
|
|
46246
47848
|
});
|
|
46247
47849
|
});
|
|
46248
|
-
|
|
47850
|
+
UpdatePromptPromptConfig$outboundSchema = objectType({
|
|
46249
47851
|
stream: booleanType().optional(),
|
|
46250
47852
|
model: stringType().optional(),
|
|
46251
|
-
modelType:
|
|
46252
|
-
modelParameters: lazyType(() =>
|
|
46253
|
-
provider:
|
|
47853
|
+
modelType: UpdatePromptModelType$outboundSchema.optional(),
|
|
47854
|
+
modelParameters: lazyType(() => UpdatePromptModelParameters$outboundSchema).optional(),
|
|
47855
|
+
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
46254
47856
|
version: stringType().optional(),
|
|
46255
47857
|
messages: arrayType(lazyType(() => UpdatePromptMessages$outboundSchema))
|
|
46256
47858
|
}).transform((v2) => {
|
|
@@ -46259,33 +47861,33 @@ var init_updateprompt = __esm(() => {
|
|
|
46259
47861
|
modelParameters: "model_parameters"
|
|
46260
47862
|
});
|
|
46261
47863
|
});
|
|
46262
|
-
((
|
|
46263
|
-
|
|
46264
|
-
|
|
46265
|
-
})(
|
|
46266
|
-
|
|
46267
|
-
|
|
46268
|
-
((
|
|
46269
|
-
|
|
46270
|
-
|
|
46271
|
-
})(
|
|
46272
|
-
|
|
46273
|
-
|
|
46274
|
-
((
|
|
46275
|
-
|
|
46276
|
-
|
|
46277
|
-
})(
|
|
47864
|
+
((UpdatePromptPromptConfig$) => {
|
|
47865
|
+
UpdatePromptPromptConfig$.inboundSchema = UpdatePromptPromptConfig$inboundSchema;
|
|
47866
|
+
UpdatePromptPromptConfig$.outboundSchema = UpdatePromptPromptConfig$outboundSchema;
|
|
47867
|
+
})(UpdatePromptPromptConfig$ ||= {});
|
|
47868
|
+
UpdatePromptUseCases$inboundSchema = nativeEnumType(UpdatePromptUseCases);
|
|
47869
|
+
UpdatePromptUseCases$outboundSchema = UpdatePromptUseCases$inboundSchema;
|
|
47870
|
+
((UpdatePromptUseCases$) => {
|
|
47871
|
+
UpdatePromptUseCases$.inboundSchema = UpdatePromptUseCases$inboundSchema;
|
|
47872
|
+
UpdatePromptUseCases$.outboundSchema = UpdatePromptUseCases$outboundSchema;
|
|
47873
|
+
})(UpdatePromptUseCases$ ||= {});
|
|
47874
|
+
UpdatePromptLanguage$inboundSchema = nativeEnumType(UpdatePromptLanguage);
|
|
47875
|
+
UpdatePromptLanguage$outboundSchema = UpdatePromptLanguage$inboundSchema;
|
|
47876
|
+
((UpdatePromptLanguage$) => {
|
|
47877
|
+
UpdatePromptLanguage$.inboundSchema = UpdatePromptLanguage$inboundSchema;
|
|
47878
|
+
UpdatePromptLanguage$.outboundSchema = UpdatePromptLanguage$outboundSchema;
|
|
47879
|
+
})(UpdatePromptLanguage$ ||= {});
|
|
46278
47880
|
UpdatePromptMetadata$inboundSchema = objectType({
|
|
46279
|
-
use_cases: arrayType(
|
|
46280
|
-
language:
|
|
47881
|
+
use_cases: arrayType(UpdatePromptUseCases$inboundSchema).optional(),
|
|
47882
|
+
language: UpdatePromptLanguage$inboundSchema.optional()
|
|
46281
47883
|
}).transform((v2) => {
|
|
46282
47884
|
return remap(v2, {
|
|
46283
47885
|
use_cases: "useCases"
|
|
46284
47886
|
});
|
|
46285
47887
|
});
|
|
46286
47888
|
UpdatePromptMetadata$outboundSchema = objectType({
|
|
46287
|
-
useCases: arrayType(
|
|
46288
|
-
language:
|
|
47889
|
+
useCases: arrayType(UpdatePromptUseCases$outboundSchema).optional(),
|
|
47890
|
+
language: UpdatePromptLanguage$outboundSchema.optional()
|
|
46289
47891
|
}).transform((v2) => {
|
|
46290
47892
|
return remap(v2, {
|
|
46291
47893
|
useCases: "use_cases"
|
|
@@ -46304,7 +47906,7 @@ var init_updateprompt = __esm(() => {
|
|
|
46304
47906
|
updated_by_id: nullableType(stringType()).optional(),
|
|
46305
47907
|
display_name: stringType().optional(),
|
|
46306
47908
|
description: nullableType(stringType()).optional(),
|
|
46307
|
-
prompt_config: lazyType(() =>
|
|
47909
|
+
prompt_config: lazyType(() => UpdatePromptPromptConfig$inboundSchema).optional(),
|
|
46308
47910
|
metadata: lazyType(() => UpdatePromptMetadata$inboundSchema).optional()
|
|
46309
47911
|
}).transform((v2) => {
|
|
46310
47912
|
return remap(v2, {
|
|
@@ -46324,7 +47926,7 @@ var init_updateprompt = __esm(() => {
|
|
|
46324
47926
|
updatedById: nullableType(stringType()).optional(),
|
|
46325
47927
|
displayName: stringType().optional(),
|
|
46326
47928
|
description: nullableType(stringType()).optional(),
|
|
46327
|
-
promptConfig: lazyType(() =>
|
|
47929
|
+
promptConfig: lazyType(() => UpdatePromptPromptConfig$outboundSchema).optional(),
|
|
46328
47930
|
metadata: lazyType(() => UpdatePromptMetadata$outboundSchema).optional()
|
|
46329
47931
|
}).transform((v2) => {
|
|
46330
47932
|
return remap(v2, {
|
|
@@ -46365,46 +47967,46 @@ var init_updateprompt = __esm(() => {
|
|
|
46365
47967
|
UpdatePromptPromptsType$.inboundSchema = UpdatePromptPromptsType$inboundSchema;
|
|
46366
47968
|
UpdatePromptPromptsType$.outboundSchema = UpdatePromptPromptsType$outboundSchema;
|
|
46367
47969
|
})(UpdatePromptPromptsType$ ||= {});
|
|
46368
|
-
|
|
46369
|
-
|
|
46370
|
-
((
|
|
46371
|
-
|
|
46372
|
-
|
|
46373
|
-
})(
|
|
47970
|
+
UpdatePromptPromptsModelType$inboundSchema = nativeEnumType(UpdatePromptPromptsModelType);
|
|
47971
|
+
UpdatePromptPromptsModelType$outboundSchema = UpdatePromptPromptsModelType$inboundSchema;
|
|
47972
|
+
((UpdatePromptPromptsModelType$) => {
|
|
47973
|
+
UpdatePromptPromptsModelType$.inboundSchema = UpdatePromptPromptsModelType$inboundSchema;
|
|
47974
|
+
UpdatePromptPromptsModelType$.outboundSchema = UpdatePromptPromptsModelType$outboundSchema;
|
|
47975
|
+
})(UpdatePromptPromptsModelType$ ||= {});
|
|
46374
47976
|
UpdatePromptPromptsFormat$inboundSchema = nativeEnumType(UpdatePromptPromptsFormat);
|
|
46375
47977
|
UpdatePromptPromptsFormat$outboundSchema = UpdatePromptPromptsFormat$inboundSchema;
|
|
46376
47978
|
((UpdatePromptPromptsFormat$) => {
|
|
46377
47979
|
UpdatePromptPromptsFormat$.inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
|
|
46378
47980
|
UpdatePromptPromptsFormat$.outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
|
|
46379
47981
|
})(UpdatePromptPromptsFormat$ ||= {});
|
|
46380
|
-
|
|
46381
|
-
|
|
46382
|
-
((
|
|
46383
|
-
|
|
46384
|
-
|
|
46385
|
-
})(
|
|
47982
|
+
UpdatePromptPromptsQuality$inboundSchema = nativeEnumType(UpdatePromptPromptsQuality);
|
|
47983
|
+
UpdatePromptPromptsQuality$outboundSchema = UpdatePromptPromptsQuality$inboundSchema;
|
|
47984
|
+
((UpdatePromptPromptsQuality$) => {
|
|
47985
|
+
UpdatePromptPromptsQuality$.inboundSchema = UpdatePromptPromptsQuality$inboundSchema;
|
|
47986
|
+
UpdatePromptPromptsQuality$.outboundSchema = UpdatePromptPromptsQuality$outboundSchema;
|
|
47987
|
+
})(UpdatePromptPromptsQuality$ ||= {});
|
|
47988
|
+
UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema = nativeEnumType(UpdatePromptResponseFormatPromptsResponse200Type);
|
|
47989
|
+
UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema = UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
47990
|
+
((UpdatePromptResponseFormatPromptsResponse200Type$) => {
|
|
47991
|
+
UpdatePromptResponseFormatPromptsResponse200Type$.inboundSchema = UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
47992
|
+
UpdatePromptResponseFormatPromptsResponse200Type$.outboundSchema = UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
|
|
47993
|
+
})(UpdatePromptResponseFormatPromptsResponse200Type$ ||= {});
|
|
47994
|
+
UpdatePromptResponseFormatPrompts2$inboundSchema = objectType({
|
|
47995
|
+
type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema
|
|
47996
|
+
});
|
|
47997
|
+
UpdatePromptResponseFormatPrompts2$outboundSchema = objectType({
|
|
47998
|
+
type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema
|
|
47999
|
+
});
|
|
48000
|
+
((UpdatePromptResponseFormatPrompts2$) => {
|
|
48001
|
+
UpdatePromptResponseFormatPrompts2$.inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
|
|
48002
|
+
UpdatePromptResponseFormatPrompts2$.outboundSchema = UpdatePromptResponseFormatPrompts2$outboundSchema;
|
|
48003
|
+
})(UpdatePromptResponseFormatPrompts2$ ||= {});
|
|
46386
48004
|
UpdatePromptResponseFormatPromptsResponseType$inboundSchema = nativeEnumType(UpdatePromptResponseFormatPromptsResponseType);
|
|
46387
48005
|
UpdatePromptResponseFormatPromptsResponseType$outboundSchema = UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
46388
48006
|
((UpdatePromptResponseFormatPromptsResponseType$) => {
|
|
46389
48007
|
UpdatePromptResponseFormatPromptsResponseType$.inboundSchema = UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
46390
48008
|
UpdatePromptResponseFormatPromptsResponseType$.outboundSchema = UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
46391
48009
|
})(UpdatePromptResponseFormatPromptsResponseType$ ||= {});
|
|
46392
|
-
UpdatePromptResponseFormat2$inboundSchema = objectType({
|
|
46393
|
-
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema
|
|
46394
|
-
});
|
|
46395
|
-
UpdatePromptResponseFormat2$outboundSchema = objectType({
|
|
46396
|
-
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema
|
|
46397
|
-
});
|
|
46398
|
-
((UpdatePromptResponseFormat2$) => {
|
|
46399
|
-
UpdatePromptResponseFormat2$.inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
46400
|
-
UpdatePromptResponseFormat2$.outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
46401
|
-
})(UpdatePromptResponseFormat2$ ||= {});
|
|
46402
|
-
UpdatePromptResponseFormatPromptsType$inboundSchema = nativeEnumType(UpdatePromptResponseFormatPromptsType);
|
|
46403
|
-
UpdatePromptResponseFormatPromptsType$outboundSchema = UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
46404
|
-
((UpdatePromptResponseFormatPromptsType$) => {
|
|
46405
|
-
UpdatePromptResponseFormatPromptsType$.inboundSchema = UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
46406
|
-
UpdatePromptResponseFormatPromptsType$.outboundSchema = UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
46407
|
-
})(UpdatePromptResponseFormatPromptsType$ ||= {});
|
|
46408
48010
|
UpdatePromptResponseFormatJsonSchema$inboundSchema = objectType({
|
|
46409
48011
|
name: stringType(),
|
|
46410
48012
|
strict: booleanType(),
|
|
@@ -46419,57 +48021,57 @@ var init_updateprompt = __esm(() => {
|
|
|
46419
48021
|
UpdatePromptResponseFormatJsonSchema$.inboundSchema = UpdatePromptResponseFormatJsonSchema$inboundSchema;
|
|
46420
48022
|
UpdatePromptResponseFormatJsonSchema$.outboundSchema = UpdatePromptResponseFormatJsonSchema$outboundSchema;
|
|
46421
48023
|
})(UpdatePromptResponseFormatJsonSchema$ ||= {});
|
|
46422
|
-
|
|
46423
|
-
type:
|
|
48024
|
+
UpdatePromptResponseFormatPrompts1$inboundSchema = objectType({
|
|
48025
|
+
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
46424
48026
|
json_schema: lazyType(() => UpdatePromptResponseFormatJsonSchema$inboundSchema)
|
|
46425
48027
|
}).transform((v2) => {
|
|
46426
48028
|
return remap(v2, {
|
|
46427
48029
|
json_schema: "jsonSchema"
|
|
46428
48030
|
});
|
|
46429
48031
|
});
|
|
46430
|
-
|
|
46431
|
-
type:
|
|
48032
|
+
UpdatePromptResponseFormatPrompts1$outboundSchema = objectType({
|
|
48033
|
+
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
46432
48034
|
jsonSchema: lazyType(() => UpdatePromptResponseFormatJsonSchema$outboundSchema)
|
|
46433
48035
|
}).transform((v2) => {
|
|
46434
48036
|
return remap(v2, {
|
|
46435
48037
|
jsonSchema: "json_schema"
|
|
46436
48038
|
});
|
|
46437
48039
|
});
|
|
46438
|
-
((
|
|
46439
|
-
|
|
46440
|
-
|
|
46441
|
-
})(
|
|
46442
|
-
|
|
46443
|
-
lazyType(() =>
|
|
46444
|
-
lazyType(() =>
|
|
48040
|
+
((UpdatePromptResponseFormatPrompts1$) => {
|
|
48041
|
+
UpdatePromptResponseFormatPrompts1$.inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
|
|
48042
|
+
UpdatePromptResponseFormatPrompts1$.outboundSchema = UpdatePromptResponseFormatPrompts1$outboundSchema;
|
|
48043
|
+
})(UpdatePromptResponseFormatPrompts1$ ||= {});
|
|
48044
|
+
UpdatePromptPromptsResponseFormat$inboundSchema = unionType([
|
|
48045
|
+
lazyType(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
48046
|
+
lazyType(() => UpdatePromptResponseFormatPrompts1$inboundSchema)
|
|
46445
48047
|
]);
|
|
46446
|
-
|
|
46447
|
-
lazyType(() =>
|
|
46448
|
-
lazyType(() =>
|
|
48048
|
+
UpdatePromptPromptsResponseFormat$outboundSchema = unionType([
|
|
48049
|
+
lazyType(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
|
|
48050
|
+
lazyType(() => UpdatePromptResponseFormatPrompts1$outboundSchema)
|
|
46449
48051
|
]);
|
|
46450
|
-
((
|
|
46451
|
-
|
|
46452
|
-
|
|
46453
|
-
})(
|
|
46454
|
-
|
|
46455
|
-
|
|
46456
|
-
((
|
|
46457
|
-
|
|
46458
|
-
|
|
46459
|
-
})(
|
|
46460
|
-
|
|
46461
|
-
|
|
46462
|
-
((
|
|
46463
|
-
|
|
46464
|
-
|
|
46465
|
-
})(
|
|
46466
|
-
|
|
46467
|
-
|
|
46468
|
-
((
|
|
46469
|
-
|
|
46470
|
-
|
|
46471
|
-
})(
|
|
46472
|
-
|
|
48052
|
+
((UpdatePromptPromptsResponseFormat$) => {
|
|
48053
|
+
UpdatePromptPromptsResponseFormat$.inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
|
|
48054
|
+
UpdatePromptPromptsResponseFormat$.outboundSchema = UpdatePromptPromptsResponseFormat$outboundSchema;
|
|
48055
|
+
})(UpdatePromptPromptsResponseFormat$ ||= {});
|
|
48056
|
+
UpdatePromptPromptsPhotoRealVersion$inboundSchema = nativeEnumType(UpdatePromptPromptsPhotoRealVersion);
|
|
48057
|
+
UpdatePromptPromptsPhotoRealVersion$outboundSchema = UpdatePromptPromptsPhotoRealVersion$inboundSchema;
|
|
48058
|
+
((UpdatePromptPromptsPhotoRealVersion$) => {
|
|
48059
|
+
UpdatePromptPromptsPhotoRealVersion$.inboundSchema = UpdatePromptPromptsPhotoRealVersion$inboundSchema;
|
|
48060
|
+
UpdatePromptPromptsPhotoRealVersion$.outboundSchema = UpdatePromptPromptsPhotoRealVersion$outboundSchema;
|
|
48061
|
+
})(UpdatePromptPromptsPhotoRealVersion$ ||= {});
|
|
48062
|
+
UpdatePromptPromptsEncodingFormat$inboundSchema = nativeEnumType(UpdatePromptPromptsEncodingFormat);
|
|
48063
|
+
UpdatePromptPromptsEncodingFormat$outboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
|
|
48064
|
+
((UpdatePromptPromptsEncodingFormat$) => {
|
|
48065
|
+
UpdatePromptPromptsEncodingFormat$.inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
|
|
48066
|
+
UpdatePromptPromptsEncodingFormat$.outboundSchema = UpdatePromptPromptsEncodingFormat$outboundSchema;
|
|
48067
|
+
})(UpdatePromptPromptsEncodingFormat$ ||= {});
|
|
48068
|
+
UpdatePromptPromptsReasoningEffort$inboundSchema = nativeEnumType(UpdatePromptPromptsReasoningEffort);
|
|
48069
|
+
UpdatePromptPromptsReasoningEffort$outboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
|
|
48070
|
+
((UpdatePromptPromptsReasoningEffort$) => {
|
|
48071
|
+
UpdatePromptPromptsReasoningEffort$.inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
|
|
48072
|
+
UpdatePromptPromptsReasoningEffort$.outboundSchema = UpdatePromptPromptsReasoningEffort$outboundSchema;
|
|
48073
|
+
})(UpdatePromptPromptsReasoningEffort$ ||= {});
|
|
48074
|
+
UpdatePromptPromptsModelParameters$inboundSchema = objectType({
|
|
46473
48075
|
temperature: numberType().optional(),
|
|
46474
48076
|
maxTokens: numberType().optional(),
|
|
46475
48077
|
topK: numberType().optional(),
|
|
@@ -46480,22 +48082,22 @@ var init_updateprompt = __esm(() => {
|
|
|
46480
48082
|
seed: numberType().optional(),
|
|
46481
48083
|
format: UpdatePromptPromptsFormat$inboundSchema.optional(),
|
|
46482
48084
|
dimensions: stringType().optional(),
|
|
46483
|
-
quality:
|
|
48085
|
+
quality: UpdatePromptPromptsQuality$inboundSchema.optional(),
|
|
46484
48086
|
style: stringType().optional(),
|
|
46485
48087
|
responseFormat: nullableType(unionType([
|
|
46486
|
-
lazyType(() =>
|
|
46487
|
-
lazyType(() =>
|
|
48088
|
+
lazyType(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
|
|
48089
|
+
lazyType(() => UpdatePromptResponseFormatPrompts1$inboundSchema)
|
|
46488
48090
|
])).optional(),
|
|
46489
|
-
photoRealVersion:
|
|
46490
|
-
encoding_format:
|
|
46491
|
-
reasoningEffort:
|
|
48091
|
+
photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
48092
|
+
encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
|
|
48093
|
+
reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
46492
48094
|
budgetTokens: numberType().optional()
|
|
46493
48095
|
}).transform((v2) => {
|
|
46494
48096
|
return remap(v2, {
|
|
46495
48097
|
encoding_format: "encodingFormat"
|
|
46496
48098
|
});
|
|
46497
48099
|
});
|
|
46498
|
-
|
|
48100
|
+
UpdatePromptPromptsModelParameters$outboundSchema = objectType({
|
|
46499
48101
|
temperature: numberType().optional(),
|
|
46500
48102
|
maxTokens: numberType().optional(),
|
|
46501
48103
|
topK: numberType().optional(),
|
|
@@ -46506,31 +48108,31 @@ var init_updateprompt = __esm(() => {
|
|
|
46506
48108
|
seed: numberType().optional(),
|
|
46507
48109
|
format: UpdatePromptPromptsFormat$outboundSchema.optional(),
|
|
46508
48110
|
dimensions: stringType().optional(),
|
|
46509
|
-
quality:
|
|
48111
|
+
quality: UpdatePromptPromptsQuality$outboundSchema.optional(),
|
|
46510
48112
|
style: stringType().optional(),
|
|
46511
48113
|
responseFormat: nullableType(unionType([
|
|
46512
|
-
lazyType(() =>
|
|
46513
|
-
lazyType(() =>
|
|
48114
|
+
lazyType(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
|
|
48115
|
+
lazyType(() => UpdatePromptResponseFormatPrompts1$outboundSchema)
|
|
46514
48116
|
])).optional(),
|
|
46515
|
-
photoRealVersion:
|
|
46516
|
-
encodingFormat:
|
|
46517
|
-
reasoningEffort:
|
|
48117
|
+
photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
48118
|
+
encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
|
|
48119
|
+
reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
|
|
46518
48120
|
budgetTokens: numberType().optional()
|
|
46519
48121
|
}).transform((v2) => {
|
|
46520
48122
|
return remap(v2, {
|
|
46521
48123
|
encodingFormat: "encoding_format"
|
|
46522
48124
|
});
|
|
46523
48125
|
});
|
|
46524
|
-
((
|
|
46525
|
-
|
|
46526
|
-
|
|
46527
|
-
})(
|
|
46528
|
-
|
|
46529
|
-
|
|
46530
|
-
((
|
|
46531
|
-
|
|
46532
|
-
|
|
46533
|
-
})(
|
|
48126
|
+
((UpdatePromptPromptsModelParameters$) => {
|
|
48127
|
+
UpdatePromptPromptsModelParameters$.inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
|
|
48128
|
+
UpdatePromptPromptsModelParameters$.outboundSchema = UpdatePromptPromptsModelParameters$outboundSchema;
|
|
48129
|
+
})(UpdatePromptPromptsModelParameters$ ||= {});
|
|
48130
|
+
UpdatePromptPromptsProvider$inboundSchema = nativeEnumType(UpdatePromptPromptsProvider);
|
|
48131
|
+
UpdatePromptPromptsProvider$outboundSchema = UpdatePromptPromptsProvider$inboundSchema;
|
|
48132
|
+
((UpdatePromptPromptsProvider$) => {
|
|
48133
|
+
UpdatePromptPromptsProvider$.inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
|
|
48134
|
+
UpdatePromptPromptsProvider$.outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
|
|
48135
|
+
})(UpdatePromptPromptsProvider$ ||= {});
|
|
46534
48136
|
UpdatePromptPromptsRole$inboundSchema = nativeEnumType(UpdatePromptPromptsRole);
|
|
46535
48137
|
UpdatePromptPromptsRole$outboundSchema = UpdatePromptPromptsRole$inboundSchema;
|
|
46536
48138
|
((UpdatePromptPromptsRole$) => {
|
|
@@ -46693,13 +48295,13 @@ var init_updateprompt = __esm(() => {
|
|
|
46693
48295
|
UpdatePromptPromptsMessages$.inboundSchema = UpdatePromptPromptsMessages$inboundSchema;
|
|
46694
48296
|
UpdatePromptPromptsMessages$.outboundSchema = UpdatePromptPromptsMessages$outboundSchema;
|
|
46695
48297
|
})(UpdatePromptPromptsMessages$ ||= {});
|
|
46696
|
-
|
|
48298
|
+
UpdatePromptPromptsPromptConfig$inboundSchema = objectType({
|
|
46697
48299
|
stream: booleanType().optional(),
|
|
46698
48300
|
model: stringType().optional(),
|
|
46699
48301
|
model_db_id: stringType().optional(),
|
|
46700
|
-
model_type:
|
|
46701
|
-
model_parameters: lazyType(() =>
|
|
46702
|
-
provider:
|
|
48302
|
+
model_type: UpdatePromptPromptsModelType$inboundSchema.optional(),
|
|
48303
|
+
model_parameters: lazyType(() => UpdatePromptPromptsModelParameters$inboundSchema).optional(),
|
|
48304
|
+
provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
|
|
46703
48305
|
integration_id: nullableType(stringType()).optional(),
|
|
46704
48306
|
version: stringType().optional(),
|
|
46705
48307
|
messages: arrayType(lazyType(() => UpdatePromptPromptsMessages$inboundSchema))
|
|
@@ -46711,13 +48313,13 @@ var init_updateprompt = __esm(() => {
|
|
|
46711
48313
|
integration_id: "integrationId"
|
|
46712
48314
|
});
|
|
46713
48315
|
});
|
|
46714
|
-
|
|
48316
|
+
UpdatePromptPromptsPromptConfig$outboundSchema = objectType({
|
|
46715
48317
|
stream: booleanType().optional(),
|
|
46716
48318
|
model: stringType().optional(),
|
|
46717
48319
|
modelDbId: stringType().optional(),
|
|
46718
|
-
modelType:
|
|
46719
|
-
modelParameters: lazyType(() =>
|
|
46720
|
-
provider:
|
|
48320
|
+
modelType: UpdatePromptPromptsModelType$outboundSchema.optional(),
|
|
48321
|
+
modelParameters: lazyType(() => UpdatePromptPromptsModelParameters$outboundSchema).optional(),
|
|
48322
|
+
provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
|
|
46721
48323
|
integrationId: nullableType(stringType()).optional(),
|
|
46722
48324
|
version: stringType().optional(),
|
|
46723
48325
|
messages: arrayType(lazyType(() => UpdatePromptPromptsMessages$outboundSchema))
|
|
@@ -46729,33 +48331,33 @@ var init_updateprompt = __esm(() => {
|
|
|
46729
48331
|
integrationId: "integration_id"
|
|
46730
48332
|
});
|
|
46731
48333
|
});
|
|
46732
|
-
((
|
|
46733
|
-
|
|
46734
|
-
|
|
46735
|
-
})(
|
|
46736
|
-
|
|
46737
|
-
|
|
46738
|
-
((
|
|
46739
|
-
|
|
46740
|
-
|
|
46741
|
-
})(
|
|
46742
|
-
|
|
46743
|
-
|
|
46744
|
-
((
|
|
46745
|
-
|
|
46746
|
-
|
|
46747
|
-
})(
|
|
48334
|
+
((UpdatePromptPromptsPromptConfig$) => {
|
|
48335
|
+
UpdatePromptPromptsPromptConfig$.inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
|
|
48336
|
+
UpdatePromptPromptsPromptConfig$.outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
|
|
48337
|
+
})(UpdatePromptPromptsPromptConfig$ ||= {});
|
|
48338
|
+
UpdatePromptPromptsUseCases$inboundSchema = nativeEnumType(UpdatePromptPromptsUseCases);
|
|
48339
|
+
UpdatePromptPromptsUseCases$outboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
|
|
48340
|
+
((UpdatePromptPromptsUseCases$) => {
|
|
48341
|
+
UpdatePromptPromptsUseCases$.inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
|
|
48342
|
+
UpdatePromptPromptsUseCases$.outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
|
|
48343
|
+
})(UpdatePromptPromptsUseCases$ ||= {});
|
|
48344
|
+
UpdatePromptPromptsLanguage$inboundSchema = nativeEnumType(UpdatePromptPromptsLanguage);
|
|
48345
|
+
UpdatePromptPromptsLanguage$outboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
|
|
48346
|
+
((UpdatePromptPromptsLanguage$) => {
|
|
48347
|
+
UpdatePromptPromptsLanguage$.inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
|
|
48348
|
+
UpdatePromptPromptsLanguage$.outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
|
|
48349
|
+
})(UpdatePromptPromptsLanguage$ ||= {});
|
|
46748
48350
|
UpdatePromptPromptsMetadata$inboundSchema = objectType({
|
|
46749
|
-
use_cases: arrayType(
|
|
46750
|
-
language:
|
|
48351
|
+
use_cases: arrayType(UpdatePromptPromptsUseCases$inboundSchema).optional(),
|
|
48352
|
+
language: UpdatePromptPromptsLanguage$inboundSchema.optional()
|
|
46751
48353
|
}).transform((v2) => {
|
|
46752
48354
|
return remap(v2, {
|
|
46753
48355
|
use_cases: "useCases"
|
|
46754
48356
|
});
|
|
46755
48357
|
});
|
|
46756
48358
|
UpdatePromptPromptsMetadata$outboundSchema = objectType({
|
|
46757
|
-
useCases: arrayType(
|
|
46758
|
-
language:
|
|
48359
|
+
useCases: arrayType(UpdatePromptPromptsUseCases$outboundSchema).optional(),
|
|
48360
|
+
language: UpdatePromptPromptsLanguage$outboundSchema.optional()
|
|
46759
48361
|
}).transform((v2) => {
|
|
46760
48362
|
return remap(v2, {
|
|
46761
48363
|
useCases: "use_cases"
|
|
@@ -46776,7 +48378,7 @@ var init_updateprompt = __esm(() => {
|
|
|
46776
48378
|
updated_by_id: nullableType(stringType()).optional(),
|
|
46777
48379
|
display_name: stringType(),
|
|
46778
48380
|
description: nullableType(stringType()).optional(),
|
|
46779
|
-
prompt_config: lazyType(() =>
|
|
48381
|
+
prompt_config: lazyType(() => UpdatePromptPromptsPromptConfig$inboundSchema),
|
|
46780
48382
|
metadata: lazyType(() => UpdatePromptPromptsMetadata$inboundSchema).optional()
|
|
46781
48383
|
}).transform((v2) => {
|
|
46782
48384
|
return remap(v2, {
|
|
@@ -46799,7 +48401,7 @@ var init_updateprompt = __esm(() => {
|
|
|
46799
48401
|
updatedById: nullableType(stringType()).optional(),
|
|
46800
48402
|
displayName: stringType(),
|
|
46801
48403
|
description: nullableType(stringType()).optional(),
|
|
46802
|
-
promptConfig: lazyType(() =>
|
|
48404
|
+
promptConfig: lazyType(() => UpdatePromptPromptsPromptConfig$outboundSchema),
|
|
46803
48405
|
metadata: lazyType(() => UpdatePromptPromptsMetadata$outboundSchema).optional()
|
|
46804
48406
|
}).transform((v2) => {
|
|
46805
48407
|
return remap(v2, {
|
|
@@ -46833,6 +48435,7 @@ var init_operations = __esm(() => {
|
|
|
46833
48435
|
init_deploymentgetconfig();
|
|
46834
48436
|
init_deploymentinvoke();
|
|
46835
48437
|
init_deployments();
|
|
48438
|
+
init_deploymentstream();
|
|
46836
48439
|
init_filedelete();
|
|
46837
48440
|
init_fileget();
|
|
46838
48441
|
init_filelist();
|
|
@@ -49835,11 +51438,126 @@ Add metrics to a deployment`,
|
|
|
49835
51438
|
};
|
|
49836
51439
|
});
|
|
49837
51440
|
|
|
49838
|
-
// src/funcs/
|
|
49839
|
-
function
|
|
51441
|
+
// src/funcs/deploymentsStream.ts
|
|
51442
|
+
function deploymentsStream(client, request, options) {
|
|
49840
51443
|
return new APIPromise($do18(client, request, options));
|
|
49841
51444
|
}
|
|
49842
51445
|
async function $do18(client, request, options) {
|
|
51446
|
+
const parsed = safeParse(request, (value) => DeploymentStreamRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
51447
|
+
if (!parsed.ok) {
|
|
51448
|
+
return [parsed, { status: "invalid" }];
|
|
51449
|
+
}
|
|
51450
|
+
const payload = parsed.value;
|
|
51451
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
51452
|
+
const path = pathToFunc("/v2/deployments/stream")();
|
|
51453
|
+
const headers = new Headers(compactMap({
|
|
51454
|
+
"Content-Type": "application/json",
|
|
51455
|
+
Accept: "text/event-stream",
|
|
51456
|
+
contactId: encodeSimple("contactId", client._options.contactId, {
|
|
51457
|
+
explode: false,
|
|
51458
|
+
charEncoding: "none"
|
|
51459
|
+
}),
|
|
51460
|
+
environment: encodeSimple("environment", client._options.environment, {
|
|
51461
|
+
explode: false,
|
|
51462
|
+
charEncoding: "none"
|
|
51463
|
+
})
|
|
51464
|
+
}));
|
|
51465
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
51466
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
51467
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51468
|
+
const context = {
|
|
51469
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
51470
|
+
operationID: "DeploymentStream",
|
|
51471
|
+
oAuth2Scopes: [],
|
|
51472
|
+
resolvedSecurity: requestSecurity,
|
|
51473
|
+
securitySource: client._options.apiKey,
|
|
51474
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
51475
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
51476
|
+
};
|
|
51477
|
+
const requestRes = client._createRequest(context, {
|
|
51478
|
+
security: requestSecurity,
|
|
51479
|
+
method: "POST",
|
|
51480
|
+
baseURL: options?.serverURL,
|
|
51481
|
+
path,
|
|
51482
|
+
headers,
|
|
51483
|
+
body,
|
|
51484
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000
|
|
51485
|
+
}, options);
|
|
51486
|
+
if (!requestRes.ok) {
|
|
51487
|
+
return [requestRes, { status: "invalid" }];
|
|
51488
|
+
}
|
|
51489
|
+
const req = requestRes.value;
|
|
51490
|
+
const doResult = await client._do(req, {
|
|
51491
|
+
context,
|
|
51492
|
+
errorCodes: ["4XX", "5XX"],
|
|
51493
|
+
retryConfig: context.retryConfig,
|
|
51494
|
+
retryCodes: context.retryCodes
|
|
51495
|
+
});
|
|
51496
|
+
if (!doResult.ok) {
|
|
51497
|
+
return [doResult, { status: "request-error", request: req }];
|
|
51498
|
+
}
|
|
51499
|
+
const response = doResult.value;
|
|
51500
|
+
const [result] = await match(sse(200, instanceOfType(ReadableStream).transform((stream) => {
|
|
51501
|
+
return new EventStream({
|
|
51502
|
+
stream,
|
|
51503
|
+
decoder(rawEvent) {
|
|
51504
|
+
const schema = DeploymentStreamResponseBody$inboundSchema;
|
|
51505
|
+
return schema.parse(rawEvent);
|
|
51506
|
+
}
|
|
51507
|
+
});
|
|
51508
|
+
}), { sseSentinel: "[DONE]" }), fail("4XX"), fail("5XX"))(response);
|
|
51509
|
+
if (!result.ok) {
|
|
51510
|
+
return [result, { status: "complete", request: req, response }];
|
|
51511
|
+
}
|
|
51512
|
+
return [result, { status: "complete", request: req, response }];
|
|
51513
|
+
}
|
|
51514
|
+
var init_deploymentsStream = __esm(() => {
|
|
51515
|
+
init_lib();
|
|
51516
|
+
init_encodings();
|
|
51517
|
+
init_event_streams();
|
|
51518
|
+
init_matchers();
|
|
51519
|
+
init_primitives();
|
|
51520
|
+
init_schemas();
|
|
51521
|
+
init_security();
|
|
51522
|
+
init_url();
|
|
51523
|
+
init_operations();
|
|
51524
|
+
init_async();
|
|
51525
|
+
});
|
|
51526
|
+
|
|
51527
|
+
// src/mcp-server/tools/deploymentsStream.ts
|
|
51528
|
+
var args18, tool$deploymentsStream;
|
|
51529
|
+
var init_deploymentsStream2 = __esm(() => {
|
|
51530
|
+
init_deploymentsStream();
|
|
51531
|
+
init_operations();
|
|
51532
|
+
init_tools();
|
|
51533
|
+
args18 = {
|
|
51534
|
+
request: DeploymentStreamRequestBody$inboundSchema
|
|
51535
|
+
};
|
|
51536
|
+
tool$deploymentsStream = {
|
|
51537
|
+
name: "deployments-stream",
|
|
51538
|
+
description: `Stream
|
|
51539
|
+
|
|
51540
|
+
Stream deployment generation. Only supported for completions and chat completions.`,
|
|
51541
|
+
args: args18,
|
|
51542
|
+
tool: async (client, args19, ctx) => {
|
|
51543
|
+
const [result, apiCall] = await deploymentsStream(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51544
|
+
if (!result.ok) {
|
|
51545
|
+
return {
|
|
51546
|
+
content: [{ type: "text", text: result.error.message }],
|
|
51547
|
+
isError: true
|
|
51548
|
+
};
|
|
51549
|
+
}
|
|
51550
|
+
const value = result.value;
|
|
51551
|
+
return formatResult(value, apiCall);
|
|
51552
|
+
}
|
|
51553
|
+
};
|
|
51554
|
+
});
|
|
51555
|
+
|
|
51556
|
+
// src/funcs/feedbackCreate.ts
|
|
51557
|
+
function feedbackCreate(client, request, options) {
|
|
51558
|
+
return new APIPromise($do19(client, request, options));
|
|
51559
|
+
}
|
|
51560
|
+
async function $do19(client, request, options) {
|
|
49843
51561
|
const parsed = safeParse(request, (value) => CreateFeedbackRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
49844
51562
|
if (!parsed.ok) {
|
|
49845
51563
|
return [parsed, { status: "invalid" }];
|
|
@@ -49904,12 +51622,12 @@ var init_feedbackCreate = __esm(() => {
|
|
|
49904
51622
|
});
|
|
49905
51623
|
|
|
49906
51624
|
// src/mcp-server/tools/feedbackCreate.ts
|
|
49907
|
-
var
|
|
51625
|
+
var args19, tool$feedbackCreate;
|
|
49908
51626
|
var init_feedbackCreate2 = __esm(() => {
|
|
49909
51627
|
init_feedbackCreate();
|
|
49910
51628
|
init_operations();
|
|
49911
51629
|
init_tools();
|
|
49912
|
-
|
|
51630
|
+
args19 = {
|
|
49913
51631
|
request: CreateFeedbackRequestBody$inboundSchema
|
|
49914
51632
|
};
|
|
49915
51633
|
tool$feedbackCreate = {
|
|
@@ -49917,9 +51635,9 @@ var init_feedbackCreate2 = __esm(() => {
|
|
|
49917
51635
|
description: `Submit feedback
|
|
49918
51636
|
|
|
49919
51637
|
Submit feedback for the LLM transaction via the API`,
|
|
49920
|
-
args:
|
|
49921
|
-
tool: async (client,
|
|
49922
|
-
const [result, apiCall] = await feedbackCreate(client,
|
|
51638
|
+
args: args19,
|
|
51639
|
+
tool: async (client, args20, ctx) => {
|
|
51640
|
+
const [result, apiCall] = await feedbackCreate(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49923
51641
|
if (!result.ok) {
|
|
49924
51642
|
return {
|
|
49925
51643
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49967,9 +51685,9 @@ function isReadableStream(val) {
|
|
|
49967
51685
|
|
|
49968
51686
|
// src/funcs/filesCreate.ts
|
|
49969
51687
|
function filesCreate(client, request, options) {
|
|
49970
|
-
return new APIPromise($
|
|
51688
|
+
return new APIPromise($do20(client, request, options));
|
|
49971
51689
|
}
|
|
49972
|
-
async function $
|
|
51690
|
+
async function $do20(client, request, options) {
|
|
49973
51691
|
const parsed = safeParse(request, (value) => FileUploadRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
49974
51692
|
if (!parsed.ok) {
|
|
49975
51693
|
return [parsed, { status: "invalid" }];
|
|
@@ -50048,12 +51766,12 @@ var init_filesCreate = __esm(() => {
|
|
|
50048
51766
|
});
|
|
50049
51767
|
|
|
50050
51768
|
// src/mcp-server/tools/filesCreate.ts
|
|
50051
|
-
var
|
|
51769
|
+
var args20, tool$filesCreate;
|
|
50052
51770
|
var init_filesCreate2 = __esm(() => {
|
|
50053
51771
|
init_filesCreate();
|
|
50054
51772
|
init_operations();
|
|
50055
51773
|
init_tools();
|
|
50056
|
-
|
|
51774
|
+
args20 = {
|
|
50057
51775
|
request: FileUploadRequestBody$inboundSchema.optional()
|
|
50058
51776
|
};
|
|
50059
51777
|
tool$filesCreate = {
|
|
@@ -50061,9 +51779,9 @@ var init_filesCreate2 = __esm(() => {
|
|
|
50061
51779
|
description: `Create file
|
|
50062
51780
|
|
|
50063
51781
|
Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/deploymentinvoke-1).`,
|
|
50064
|
-
args:
|
|
50065
|
-
tool: async (client,
|
|
50066
|
-
const [result, apiCall] = await filesCreate(client,
|
|
51782
|
+
args: args20,
|
|
51783
|
+
tool: async (client, args21, ctx) => {
|
|
51784
|
+
const [result, apiCall] = await filesCreate(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50067
51785
|
if (!result.ok) {
|
|
50068
51786
|
return {
|
|
50069
51787
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50078,9 +51796,9 @@ Files are used to upload documents that can be used with features like [Deployme
|
|
|
50078
51796
|
|
|
50079
51797
|
// src/funcs/filesDelete.ts
|
|
50080
51798
|
function filesDelete(client, request, options) {
|
|
50081
|
-
return new APIPromise($
|
|
51799
|
+
return new APIPromise($do21(client, request, options));
|
|
50082
51800
|
}
|
|
50083
|
-
async function $
|
|
51801
|
+
async function $do21(client, request, options) {
|
|
50084
51802
|
const parsed = safeParse(request, (value) => FileDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50085
51803
|
if (!parsed.ok) {
|
|
50086
51804
|
return [parsed, { status: "invalid" }];
|
|
@@ -50151,20 +51869,20 @@ var init_filesDelete = __esm(() => {
|
|
|
50151
51869
|
});
|
|
50152
51870
|
|
|
50153
51871
|
// src/mcp-server/tools/filesDelete.ts
|
|
50154
|
-
var
|
|
51872
|
+
var args21, tool$filesDelete;
|
|
50155
51873
|
var init_filesDelete2 = __esm(() => {
|
|
50156
51874
|
init_filesDelete();
|
|
50157
51875
|
init_operations();
|
|
50158
51876
|
init_tools();
|
|
50159
|
-
|
|
51877
|
+
args21 = {
|
|
50160
51878
|
request: FileDeleteRequest$inboundSchema
|
|
50161
51879
|
};
|
|
50162
51880
|
tool$filesDelete = {
|
|
50163
51881
|
name: "files-delete",
|
|
50164
51882
|
description: `Delete file`,
|
|
50165
|
-
args:
|
|
50166
|
-
tool: async (client,
|
|
50167
|
-
const [result, apiCall] = await filesDelete(client,
|
|
51883
|
+
args: args21,
|
|
51884
|
+
tool: async (client, args22, ctx) => {
|
|
51885
|
+
const [result, apiCall] = await filesDelete(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50168
51886
|
if (!result.ok) {
|
|
50169
51887
|
return {
|
|
50170
51888
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50178,9 +51896,9 @@ var init_filesDelete2 = __esm(() => {
|
|
|
50178
51896
|
|
|
50179
51897
|
// src/funcs/filesGet.ts
|
|
50180
51898
|
function filesGet(client, request, options) {
|
|
50181
|
-
return new APIPromise($
|
|
51899
|
+
return new APIPromise($do22(client, request, options));
|
|
50182
51900
|
}
|
|
50183
|
-
async function $
|
|
51901
|
+
async function $do22(client, request, options) {
|
|
50184
51902
|
const parsed = safeParse(request, (value) => FileGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50185
51903
|
if (!parsed.ok) {
|
|
50186
51904
|
return [parsed, { status: "invalid" }];
|
|
@@ -50250,12 +51968,12 @@ var init_filesGet = __esm(() => {
|
|
|
50250
51968
|
});
|
|
50251
51969
|
|
|
50252
51970
|
// src/mcp-server/tools/filesGet.ts
|
|
50253
|
-
var
|
|
51971
|
+
var args22, tool$filesGet;
|
|
50254
51972
|
var init_filesGet2 = __esm(() => {
|
|
50255
51973
|
init_filesGet();
|
|
50256
51974
|
init_operations();
|
|
50257
51975
|
init_tools();
|
|
50258
|
-
|
|
51976
|
+
args22 = {
|
|
50259
51977
|
request: FileGetRequest$inboundSchema
|
|
50260
51978
|
};
|
|
50261
51979
|
tool$filesGet = {
|
|
@@ -50263,9 +51981,9 @@ var init_filesGet2 = __esm(() => {
|
|
|
50263
51981
|
description: `Retrieve a file
|
|
50264
51982
|
|
|
50265
51983
|
Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object`,
|
|
50266
|
-
args:
|
|
50267
|
-
tool: async (client,
|
|
50268
|
-
const [result, apiCall] = await filesGet(client,
|
|
51984
|
+
args: args22,
|
|
51985
|
+
tool: async (client, args23, ctx) => {
|
|
51986
|
+
const [result, apiCall] = await filesGet(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50269
51987
|
if (!result.ok) {
|
|
50270
51988
|
return {
|
|
50271
51989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50280,9 +51998,9 @@ Retrieves the details of an existing file object. After you supply a unique file
|
|
|
50280
51998
|
|
|
50281
51999
|
// src/funcs/filesList.ts
|
|
50282
52000
|
function filesList(client, request, options) {
|
|
50283
|
-
return new APIPromise($
|
|
52001
|
+
return new APIPromise($do23(client, request, options));
|
|
50284
52002
|
}
|
|
50285
|
-
async function $
|
|
52003
|
+
async function $do23(client, request, options) {
|
|
50286
52004
|
const parsed = safeParse(request, (value) => FileListRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50287
52005
|
if (!parsed.ok) {
|
|
50288
52006
|
return [parsed, { status: "invalid" }];
|
|
@@ -50353,12 +52071,12 @@ var init_filesList = __esm(() => {
|
|
|
50353
52071
|
});
|
|
50354
52072
|
|
|
50355
52073
|
// src/mcp-server/tools/filesList.ts
|
|
50356
|
-
var
|
|
52074
|
+
var args23, tool$filesList;
|
|
50357
52075
|
var init_filesList2 = __esm(() => {
|
|
50358
52076
|
init_filesList();
|
|
50359
52077
|
init_operations();
|
|
50360
52078
|
init_tools();
|
|
50361
|
-
|
|
52079
|
+
args23 = {
|
|
50362
52080
|
request: FileListRequest$inboundSchema.optional()
|
|
50363
52081
|
};
|
|
50364
52082
|
tool$filesList = {
|
|
@@ -50366,9 +52084,9 @@ var init_filesList2 = __esm(() => {
|
|
|
50366
52084
|
description: `List all files
|
|
50367
52085
|
|
|
50368
52086
|
Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.`,
|
|
50369
|
-
args:
|
|
50370
|
-
tool: async (client,
|
|
50371
|
-
const [result, apiCall] = await filesList(client,
|
|
52087
|
+
args: args23,
|
|
52088
|
+
tool: async (client, args24, ctx) => {
|
|
52089
|
+
const [result, apiCall] = await filesList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50372
52090
|
if (!result.ok) {
|
|
50373
52091
|
return {
|
|
50374
52092
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50383,9 +52101,9 @@ Returns a list of the files that your account has access to. orq.ai sorts and re
|
|
|
50383
52101
|
|
|
50384
52102
|
// src/funcs/promptsCreate.ts
|
|
50385
52103
|
function promptsCreate(client, request, options) {
|
|
50386
|
-
return new APIPromise($
|
|
52104
|
+
return new APIPromise($do24(client, request, options));
|
|
50387
52105
|
}
|
|
50388
|
-
async function $
|
|
52106
|
+
async function $do24(client, request, options) {
|
|
50389
52107
|
const parsed = safeParse(request, (value) => CreatePromptRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50390
52108
|
if (!parsed.ok) {
|
|
50391
52109
|
return [parsed, { status: "invalid" }];
|
|
@@ -50450,20 +52168,20 @@ var init_promptsCreate = __esm(() => {
|
|
|
50450
52168
|
});
|
|
50451
52169
|
|
|
50452
52170
|
// src/mcp-server/tools/promptsCreate.ts
|
|
50453
|
-
var
|
|
52171
|
+
var args24, tool$promptsCreate;
|
|
50454
52172
|
var init_promptsCreate2 = __esm(() => {
|
|
50455
52173
|
init_promptsCreate();
|
|
50456
52174
|
init_operations();
|
|
50457
52175
|
init_tools();
|
|
50458
|
-
|
|
52176
|
+
args24 = {
|
|
50459
52177
|
request: CreatePromptRequestBody$inboundSchema.optional()
|
|
50460
52178
|
};
|
|
50461
52179
|
tool$promptsCreate = {
|
|
50462
52180
|
name: "prompts-create",
|
|
50463
52181
|
description: `Create a prompt`,
|
|
50464
|
-
args:
|
|
50465
|
-
tool: async (client,
|
|
50466
|
-
const [result, apiCall] = await promptsCreate(client,
|
|
52182
|
+
args: args24,
|
|
52183
|
+
tool: async (client, args25, ctx) => {
|
|
52184
|
+
const [result, apiCall] = await promptsCreate(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50467
52185
|
if (!result.ok) {
|
|
50468
52186
|
return {
|
|
50469
52187
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50478,9 +52196,9 @@ var init_promptsCreate2 = __esm(() => {
|
|
|
50478
52196
|
|
|
50479
52197
|
// src/funcs/promptsDelete.ts
|
|
50480
52198
|
function promptsDelete(client, request, options) {
|
|
50481
|
-
return new APIPromise($
|
|
52199
|
+
return new APIPromise($do25(client, request, options));
|
|
50482
52200
|
}
|
|
50483
|
-
async function $
|
|
52201
|
+
async function $do25(client, request, options) {
|
|
50484
52202
|
const parsed = safeParse(request, (value) => DeletePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50485
52203
|
if (!parsed.ok) {
|
|
50486
52204
|
return [parsed, { status: "invalid" }];
|
|
@@ -50551,20 +52269,20 @@ var init_promptsDelete = __esm(() => {
|
|
|
50551
52269
|
});
|
|
50552
52270
|
|
|
50553
52271
|
// src/mcp-server/tools/promptsDelete.ts
|
|
50554
|
-
var
|
|
52272
|
+
var args25, tool$promptsDelete;
|
|
50555
52273
|
var init_promptsDelete2 = __esm(() => {
|
|
50556
52274
|
init_promptsDelete();
|
|
50557
52275
|
init_operations();
|
|
50558
52276
|
init_tools();
|
|
50559
|
-
|
|
52277
|
+
args25 = {
|
|
50560
52278
|
request: DeletePromptRequest$inboundSchema
|
|
50561
52279
|
};
|
|
50562
52280
|
tool$promptsDelete = {
|
|
50563
52281
|
name: "prompts-delete",
|
|
50564
52282
|
description: `Delete a prompt`,
|
|
50565
|
-
args:
|
|
50566
|
-
tool: async (client,
|
|
50567
|
-
const [result, apiCall] = await promptsDelete(client,
|
|
52283
|
+
args: args25,
|
|
52284
|
+
tool: async (client, args26, ctx) => {
|
|
52285
|
+
const [result, apiCall] = await promptsDelete(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50568
52286
|
if (!result.ok) {
|
|
50569
52287
|
return {
|
|
50570
52288
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50578,9 +52296,9 @@ var init_promptsDelete2 = __esm(() => {
|
|
|
50578
52296
|
|
|
50579
52297
|
// src/funcs/promptsGetVersion.ts
|
|
50580
52298
|
function promptsGetVersion(client, request, options) {
|
|
50581
|
-
return new APIPromise($
|
|
52299
|
+
return new APIPromise($do26(client, request, options));
|
|
50582
52300
|
}
|
|
50583
|
-
async function $
|
|
52301
|
+
async function $do26(client, request, options) {
|
|
50584
52302
|
const parsed = safeParse(request, (value) => GetPromptVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50585
52303
|
if (!parsed.ok) {
|
|
50586
52304
|
return [parsed, { status: "invalid" }];
|
|
@@ -50658,12 +52376,12 @@ var init_promptsGetVersion = __esm(() => {
|
|
|
50658
52376
|
});
|
|
50659
52377
|
|
|
50660
52378
|
// src/mcp-server/tools/promptsGetVersion.ts
|
|
50661
|
-
var
|
|
52379
|
+
var args26, tool$promptsGetVersion;
|
|
50662
52380
|
var init_promptsGetVersion2 = __esm(() => {
|
|
50663
52381
|
init_promptsGetVersion();
|
|
50664
52382
|
init_operations();
|
|
50665
52383
|
init_tools();
|
|
50666
|
-
|
|
52384
|
+
args26 = {
|
|
50667
52385
|
request: GetPromptVersionRequest$inboundSchema
|
|
50668
52386
|
};
|
|
50669
52387
|
tool$promptsGetVersion = {
|
|
@@ -50671,9 +52389,9 @@ var init_promptsGetVersion2 = __esm(() => {
|
|
|
50671
52389
|
description: `Retrieve a prompt version
|
|
50672
52390
|
|
|
50673
52391
|
Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
50674
|
-
args:
|
|
50675
|
-
tool: async (client,
|
|
50676
|
-
const [result, apiCall] = await promptsGetVersion(client,
|
|
52392
|
+
args: args26,
|
|
52393
|
+
tool: async (client, args27, ctx) => {
|
|
52394
|
+
const [result, apiCall] = await promptsGetVersion(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50677
52395
|
if (!result.ok) {
|
|
50678
52396
|
return {
|
|
50679
52397
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50688,16 +52406,16 @@ Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
|
50688
52406
|
|
|
50689
52407
|
// src/funcs/promptsList.ts
|
|
50690
52408
|
function promptsList(client, request, options) {
|
|
50691
|
-
return new APIPromise($
|
|
52409
|
+
return new APIPromise($do27(client, request, options));
|
|
50692
52410
|
}
|
|
50693
|
-
async function $
|
|
52411
|
+
async function $do27(client, request, options) {
|
|
50694
52412
|
const parsed = safeParse(request, (value) => GetAllPromptsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50695
52413
|
if (!parsed.ok) {
|
|
50696
52414
|
return [parsed, { status: "invalid" }];
|
|
50697
52415
|
}
|
|
50698
52416
|
const payload = parsed.value;
|
|
50699
52417
|
const body = null;
|
|
50700
|
-
const path = pathToFunc("/v2/prompts
|
|
52418
|
+
const path = pathToFunc("/v2/prompts")();
|
|
50701
52419
|
const query = encodeFormQuery({
|
|
50702
52420
|
ending_before: payload?.ending_before,
|
|
50703
52421
|
limit: payload?.limit,
|
|
@@ -50761,12 +52479,12 @@ var init_promptsList = __esm(() => {
|
|
|
50761
52479
|
});
|
|
50762
52480
|
|
|
50763
52481
|
// src/mcp-server/tools/promptsList.ts
|
|
50764
|
-
var
|
|
52482
|
+
var args27, tool$promptsList;
|
|
50765
52483
|
var init_promptsList2 = __esm(() => {
|
|
50766
52484
|
init_promptsList();
|
|
50767
52485
|
init_operations();
|
|
50768
52486
|
init_tools();
|
|
50769
|
-
|
|
52487
|
+
args27 = {
|
|
50770
52488
|
request: GetAllPromptsRequest$inboundSchema.optional()
|
|
50771
52489
|
};
|
|
50772
52490
|
tool$promptsList = {
|
|
@@ -50774,9 +52492,9 @@ var init_promptsList2 = __esm(() => {
|
|
|
50774
52492
|
description: `List all prompts
|
|
50775
52493
|
|
|
50776
52494
|
Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first`,
|
|
50777
|
-
args:
|
|
50778
|
-
tool: async (client,
|
|
50779
|
-
const [result, apiCall] = await promptsList(client,
|
|
52495
|
+
args: args27,
|
|
52496
|
+
tool: async (client, args28, ctx) => {
|
|
52497
|
+
const [result, apiCall] = await promptsList(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50780
52498
|
if (!result.ok) {
|
|
50781
52499
|
return {
|
|
50782
52500
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50791,9 +52509,9 @@ Returns a list of your prompts. The prompts are returned sorted by creation date
|
|
|
50791
52509
|
|
|
50792
52510
|
// src/funcs/promptsListVersions.ts
|
|
50793
52511
|
function promptsListVersions(client, request, options) {
|
|
50794
|
-
return new APIPromise($
|
|
52512
|
+
return new APIPromise($do28(client, request, options));
|
|
50795
52513
|
}
|
|
50796
|
-
async function $
|
|
52514
|
+
async function $do28(client, request, options) {
|
|
50797
52515
|
const parsed = safeParse(request, (value) => ListPromptVersionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50798
52516
|
if (!parsed.ok) {
|
|
50799
52517
|
return [parsed, { status: "invalid" }];
|
|
@@ -50870,12 +52588,12 @@ var init_promptsListVersions = __esm(() => {
|
|
|
50870
52588
|
});
|
|
50871
52589
|
|
|
50872
52590
|
// src/mcp-server/tools/promptsListVersions.ts
|
|
50873
|
-
var
|
|
52591
|
+
var args28, tool$promptsListVersions;
|
|
50874
52592
|
var init_promptsListVersions2 = __esm(() => {
|
|
50875
52593
|
init_promptsListVersions();
|
|
50876
52594
|
init_operations();
|
|
50877
52595
|
init_tools();
|
|
50878
|
-
|
|
52596
|
+
args28 = {
|
|
50879
52597
|
request: ListPromptVersionsRequest$inboundSchema
|
|
50880
52598
|
};
|
|
50881
52599
|
tool$promptsListVersions = {
|
|
@@ -50883,9 +52601,9 @@ var init_promptsListVersions2 = __esm(() => {
|
|
|
50883
52601
|
description: `List all prompt versions
|
|
50884
52602
|
|
|
50885
52603
|
Returns a list of your prompt versions. The prompt versions are returned sorted by creation date, with the most recent prompt versions appearing first`,
|
|
50886
|
-
args:
|
|
50887
|
-
tool: async (client,
|
|
50888
|
-
const [result, apiCall] = await promptsListVersions(client,
|
|
52604
|
+
args: args28,
|
|
52605
|
+
tool: async (client, args29, ctx) => {
|
|
52606
|
+
const [result, apiCall] = await promptsListVersions(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50889
52607
|
if (!result.ok) {
|
|
50890
52608
|
return {
|
|
50891
52609
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50900,9 +52618,9 @@ Returns a list of your prompt versions. The prompt versions are returned sorted
|
|
|
50900
52618
|
|
|
50901
52619
|
// src/funcs/promptsRetrieve.ts
|
|
50902
52620
|
function promptsRetrieve(client, request, options) {
|
|
50903
|
-
return new APIPromise($
|
|
52621
|
+
return new APIPromise($do29(client, request, options));
|
|
50904
52622
|
}
|
|
50905
|
-
async function $
|
|
52623
|
+
async function $do29(client, request, options) {
|
|
50906
52624
|
const parsed = safeParse(request, (value) => GetOnePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50907
52625
|
if (!parsed.ok) {
|
|
50908
52626
|
return [parsed, { status: "invalid" }];
|
|
@@ -50972,12 +52690,12 @@ var init_promptsRetrieve = __esm(() => {
|
|
|
50972
52690
|
});
|
|
50973
52691
|
|
|
50974
52692
|
// src/mcp-server/tools/promptsRetrieve.ts
|
|
50975
|
-
var
|
|
52693
|
+
var args29, tool$promptsRetrieve;
|
|
50976
52694
|
var init_promptsRetrieve2 = __esm(() => {
|
|
50977
52695
|
init_promptsRetrieve();
|
|
50978
52696
|
init_operations();
|
|
50979
52697
|
init_tools();
|
|
50980
|
-
|
|
52698
|
+
args29 = {
|
|
50981
52699
|
request: GetOnePromptRequest$inboundSchema
|
|
50982
52700
|
};
|
|
50983
52701
|
tool$promptsRetrieve = {
|
|
@@ -50985,9 +52703,9 @@ var init_promptsRetrieve2 = __esm(() => {
|
|
|
50985
52703
|
description: `Retrieve a prompt
|
|
50986
52704
|
|
|
50987
52705
|
Retrieves a prompt object`,
|
|
50988
|
-
args:
|
|
50989
|
-
tool: async (client,
|
|
50990
|
-
const [result, apiCall] = await promptsRetrieve(client,
|
|
52706
|
+
args: args29,
|
|
52707
|
+
tool: async (client, args30, ctx) => {
|
|
52708
|
+
const [result, apiCall] = await promptsRetrieve(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50991
52709
|
if (!result.ok) {
|
|
50992
52710
|
return {
|
|
50993
52711
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51002,9 +52720,9 @@ Retrieves a prompt object`,
|
|
|
51002
52720
|
|
|
51003
52721
|
// src/funcs/promptsUpdate.ts
|
|
51004
52722
|
function promptsUpdate(client, request, options) {
|
|
51005
|
-
return new APIPromise($
|
|
52723
|
+
return new APIPromise($do30(client, request, options));
|
|
51006
52724
|
}
|
|
51007
|
-
async function $
|
|
52725
|
+
async function $do30(client, request, options) {
|
|
51008
52726
|
const parsed = safeParse(request, (value) => UpdatePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51009
52727
|
if (!parsed.ok) {
|
|
51010
52728
|
return [parsed, { status: "invalid" }];
|
|
@@ -51079,20 +52797,20 @@ var init_promptsUpdate = __esm(() => {
|
|
|
51079
52797
|
});
|
|
51080
52798
|
|
|
51081
52799
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
51082
|
-
var
|
|
52800
|
+
var args30, tool$promptsUpdate;
|
|
51083
52801
|
var init_promptsUpdate2 = __esm(() => {
|
|
51084
52802
|
init_promptsUpdate();
|
|
51085
52803
|
init_operations();
|
|
51086
52804
|
init_tools();
|
|
51087
|
-
|
|
52805
|
+
args30 = {
|
|
51088
52806
|
request: UpdatePromptRequest$inboundSchema
|
|
51089
52807
|
};
|
|
51090
52808
|
tool$promptsUpdate = {
|
|
51091
52809
|
name: "prompts-update",
|
|
51092
52810
|
description: `Update a prompt`,
|
|
51093
|
-
args:
|
|
51094
|
-
tool: async (client,
|
|
51095
|
-
const [result, apiCall] = await promptsUpdate(client,
|
|
52811
|
+
args: args30,
|
|
52812
|
+
tool: async (client, args31, ctx) => {
|
|
52813
|
+
const [result, apiCall] = await promptsUpdate(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51096
52814
|
if (!result.ok) {
|
|
51097
52815
|
return {
|
|
51098
52816
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51107,9 +52825,9 @@ var init_promptsUpdate2 = __esm(() => {
|
|
|
51107
52825
|
|
|
51108
52826
|
// src/funcs/remoteconfigsRetrieve.ts
|
|
51109
52827
|
function remoteconfigsRetrieve(client, request, options) {
|
|
51110
|
-
return new APIPromise($
|
|
52828
|
+
return new APIPromise($do31(client, request, options));
|
|
51111
52829
|
}
|
|
51112
|
-
async function $
|
|
52830
|
+
async function $do31(client, request, options) {
|
|
51113
52831
|
const parsed = safeParse(request, (value) => RemoteConfigsGetConfigRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
51114
52832
|
if (!parsed.ok) {
|
|
51115
52833
|
return [parsed, { status: "invalid" }];
|
|
@@ -51174,20 +52892,20 @@ var init_remoteconfigsRetrieve = __esm(() => {
|
|
|
51174
52892
|
});
|
|
51175
52893
|
|
|
51176
52894
|
// src/mcp-server/tools/remoteconfigsRetrieve.ts
|
|
51177
|
-
var
|
|
52895
|
+
var args31, tool$remoteconfigsRetrieve;
|
|
51178
52896
|
var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
51179
52897
|
init_remoteconfigsRetrieve();
|
|
51180
52898
|
init_operations();
|
|
51181
52899
|
init_tools();
|
|
51182
|
-
|
|
52900
|
+
args31 = {
|
|
51183
52901
|
request: RemoteConfigsGetConfigRequestBody$inboundSchema.optional()
|
|
51184
52902
|
};
|
|
51185
52903
|
tool$remoteconfigsRetrieve = {
|
|
51186
52904
|
name: "remoteconfigs-retrieve",
|
|
51187
52905
|
description: `Retrieve a remote config`,
|
|
51188
|
-
args:
|
|
51189
|
-
tool: async (client,
|
|
51190
|
-
const [result, apiCall] = await remoteconfigsRetrieve(client,
|
|
52906
|
+
args: args31,
|
|
52907
|
+
tool: async (client, args32, ctx) => {
|
|
52908
|
+
const [result, apiCall] = await remoteconfigsRetrieve(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51191
52909
|
if (!result.ok) {
|
|
51192
52910
|
return {
|
|
51193
52911
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51204,7 +52922,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
|
51204
52922
|
function createMCPServer(deps) {
|
|
51205
52923
|
const server = new McpServer({
|
|
51206
52924
|
name: "Orq",
|
|
51207
|
-
version: "3.2.
|
|
52925
|
+
version: "3.2.6"
|
|
51208
52926
|
});
|
|
51209
52927
|
const client = new OrqCore({
|
|
51210
52928
|
apiKey: deps.apiKey,
|
|
@@ -51225,15 +52943,16 @@ function createMCPServer(deps) {
|
|
|
51225
52943
|
tool(tool$deploymentsList);
|
|
51226
52944
|
tool(tool$deploymentsGetConfig);
|
|
51227
52945
|
tool(tool$deploymentsInvoke);
|
|
52946
|
+
tool(tool$deploymentsStream);
|
|
51228
52947
|
tool(tool$filesCreate);
|
|
51229
52948
|
tool(tool$filesList);
|
|
51230
52949
|
tool(tool$filesGet);
|
|
51231
52950
|
tool(tool$filesDelete);
|
|
51232
52951
|
tool(tool$promptsList);
|
|
52952
|
+
tool(tool$promptsCreate);
|
|
51233
52953
|
tool(tool$promptsRetrieve);
|
|
51234
52954
|
tool(tool$promptsUpdate);
|
|
51235
52955
|
tool(tool$promptsDelete);
|
|
51236
|
-
tool(tool$promptsCreate);
|
|
51237
52956
|
tool(tool$promptsListVersions);
|
|
51238
52957
|
tool(tool$promptsGetVersion);
|
|
51239
52958
|
tool(tool$remoteconfigsRetrieve);
|
|
@@ -51275,6 +52994,7 @@ var init_server2 = __esm(() => {
|
|
|
51275
52994
|
init_deploymentsInvoke2();
|
|
51276
52995
|
init_deploymentsList2();
|
|
51277
52996
|
init_deploymentsMetricsCreate2();
|
|
52997
|
+
init_deploymentsStream2();
|
|
51278
52998
|
init_feedbackCreate2();
|
|
51279
52999
|
init_filesCreate2();
|
|
51280
53000
|
init_filesDelete2();
|
|
@@ -52497,7 +54217,7 @@ var routes = rn({
|
|
|
52497
54217
|
var app = Ve(routes, {
|
|
52498
54218
|
name: "mcp",
|
|
52499
54219
|
versionInfo: {
|
|
52500
|
-
currentVersion: "3.2.
|
|
54220
|
+
currentVersion: "3.2.6"
|
|
52501
54221
|
}
|
|
52502
54222
|
});
|
|
52503
54223
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -52505,5 +54225,5 @@ export {
|
|
|
52505
54225
|
app
|
|
52506
54226
|
};
|
|
52507
54227
|
|
|
52508
|
-
//# debugId=
|
|
54228
|
+
//# debugId=760189B59067F3D764756E2164756E21
|
|
52509
54229
|
//# sourceMappingURL=mcp-server.js.map
|