@orq-ai/node 3.9.4 → 3.9.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 +2 -5
- package/bin/mcp-server.js +560 -866
- package/bin/mcp-server.js.map +36 -36
- package/docs/sdks/knowledge/README.md +77 -0
- package/examples/README.md +26 -0
- package/examples/contactsCreate.example.ts +40 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/funcs/deploymentsStream.js +7 -7
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/{knowledgeBasesChunkText.d.ts → knowledgeCreate.d.ts} +3 -6
- package/funcs/knowledgeCreate.d.ts.map +1 -0
- package/funcs/{knowledgeBasesChunkText.js → knowledgeCreate.js} +7 -10
- package/funcs/knowledgeCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/event-streams.d.ts +4 -10
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +110 -194
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +1 -4
- package/lib/matchers.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +3 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/knowledgeCreate.d.ts +8 -0
- package/mcp-server/tools/knowledgeCreate.d.ts.map +1 -0
- package/mcp-server/tools/{knowledgeBasesChunkText.js → knowledgeCreate.js} +8 -10
- package/mcp-server/tools/knowledgeCreate.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/createknowledge.d.ts +426 -0
- package/models/operations/createknowledge.d.ts.map +1 -0
- package/models/operations/createknowledge.js +431 -0
- package/models/operations/createknowledge.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/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateknowledge.d.ts +106 -106
- package/models/operations/updateknowledge.d.ts.map +1 -1
- package/models/operations/updateknowledge.js +125 -129
- package/models/operations/updateknowledge.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/examples/README.md +26 -0
- package/packages/orq-rc/examples/contactsCreate.example.ts +40 -0
- package/packages/orq-rc/examples/package-lock.json +626 -0
- package/packages/orq-rc/examples/package.json +18 -0
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +7 -8
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +114 -231
- package/packages/orq-rc/src/lib/matchers.ts +1 -4
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/sdk/knowledge.d.ts +4 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +7 -0
- package/sdk/knowledge.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deploymentsStream.ts +7 -8
- package/src/funcs/{knowledgeBasesChunkText.ts → knowledgeCreate.ts} +11 -13
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +114 -231
- package/src/lib/matchers.ts +1 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/knowledgeCreate.ts +35 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createknowledge.ts +846 -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/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateknowledge.ts +266 -206
- package/src/sdk/knowledge.ts +15 -0
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/knowledgebases/README.md +0 -94
- package/funcs/knowledgeBasesChunkText.d.ts.map +0 -1
- package/funcs/knowledgeBasesChunkText.js.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts +0 -8
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.js.map +0 -1
- package/models/operations/chunktext.d.ts +0 -961
- package/models/operations/chunktext.d.ts.map +0 -1
- package/models/operations/chunktext.js +0 -883
- package/models/operations/chunktext.js.map +0 -1
- package/sdk/knowledgebases.d.ts +0 -12
- package/sdk/knowledgebases.d.ts.map +0 -1
- package/sdk/knowledgebases.js +0 -22
- package/sdk/knowledgebases.js.map +0 -1
- package/src/mcp-server/tools/knowledgeBasesChunkText.ts +0 -37
- package/src/models/operations/chunktext.ts +0 -1629
- package/src/sdk/knowledgebases.ts +0 -27
package/bin/mcp-server.js
CHANGED
|
@@ -34206,9 +34206,9 @@ var init_config = __esm(() => {
|
|
|
34206
34206
|
SDK_METADATA = {
|
|
34207
34207
|
language: "typescript",
|
|
34208
34208
|
openapiDocVersion: "2.0",
|
|
34209
|
-
sdkVersion: "3.9.
|
|
34210
|
-
genVersion: "2.
|
|
34211
|
-
userAgent: "speakeasy-sdk/typescript 3.9.
|
|
34209
|
+
sdkVersion: "3.9.6",
|
|
34210
|
+
genVersion: "2.654.2",
|
|
34211
|
+
userAgent: "speakeasy-sdk/typescript 3.9.6 2.654.2 2.0 @orq-ai/node"
|
|
34212
34212
|
};
|
|
34213
34213
|
});
|
|
34214
34214
|
|
|
@@ -35379,208 +35379,6 @@ ${formatZodError(this.cause)}`;
|
|
|
35379
35379
|
};
|
|
35380
35380
|
});
|
|
35381
35381
|
|
|
35382
|
-
// src/lib/event-streams.ts
|
|
35383
|
-
function findBoundary(buffer, start) {
|
|
35384
|
-
const char1 = buffer[start];
|
|
35385
|
-
const char2 = buffer[start + 1];
|
|
35386
|
-
if (char1 == null || char2 == null || !NEWLINE_CHARS.has(char1) || !NEWLINE_CHARS.has(char2)) {
|
|
35387
|
-
return null;
|
|
35388
|
-
}
|
|
35389
|
-
for (const s of MESSAGE_BOUNDARIES) {
|
|
35390
|
-
const seq = peekSequence(start, buffer, s);
|
|
35391
|
-
if (seq != null) {
|
|
35392
|
-
return seq;
|
|
35393
|
-
}
|
|
35394
|
-
}
|
|
35395
|
-
return null;
|
|
35396
|
-
}
|
|
35397
|
-
function peekSequence(position, buffer, sequence) {
|
|
35398
|
-
if (sequence.length > buffer.length - position) {
|
|
35399
|
-
return null;
|
|
35400
|
-
}
|
|
35401
|
-
for (let i = 0;i < sequence.length; i++) {
|
|
35402
|
-
if (buffer[position + i] !== sequence[i]) {
|
|
35403
|
-
return null;
|
|
35404
|
-
}
|
|
35405
|
-
}
|
|
35406
|
-
return sequence;
|
|
35407
|
-
}
|
|
35408
|
-
function parseEvent(chunk, decoder) {
|
|
35409
|
-
if (!chunk.length) {
|
|
35410
|
-
return null;
|
|
35411
|
-
}
|
|
35412
|
-
const td = new TextDecoder;
|
|
35413
|
-
const raw = td.decode(chunk);
|
|
35414
|
-
const lines = raw.split(/\r?\n|\r/g);
|
|
35415
|
-
let publish = false;
|
|
35416
|
-
const rawEvent = {};
|
|
35417
|
-
for (const line of lines) {
|
|
35418
|
-
if (!line) {
|
|
35419
|
-
continue;
|
|
35420
|
-
}
|
|
35421
|
-
const delim = line.indexOf(":");
|
|
35422
|
-
if (delim === 0) {
|
|
35423
|
-
continue;
|
|
35424
|
-
}
|
|
35425
|
-
const field = delim > 0 ? line.substring(0, delim) : "";
|
|
35426
|
-
let value = delim > 0 ? line.substring(delim + 1) : "";
|
|
35427
|
-
if (value.charAt(0) === " ") {
|
|
35428
|
-
value = value.substring(1);
|
|
35429
|
-
}
|
|
35430
|
-
switch (field) {
|
|
35431
|
-
case "event": {
|
|
35432
|
-
publish = true;
|
|
35433
|
-
rawEvent.event = value;
|
|
35434
|
-
break;
|
|
35435
|
-
}
|
|
35436
|
-
case "data": {
|
|
35437
|
-
publish = true;
|
|
35438
|
-
rawEvent.data ??= "";
|
|
35439
|
-
rawEvent.data += value + `
|
|
35440
|
-
`;
|
|
35441
|
-
break;
|
|
35442
|
-
}
|
|
35443
|
-
case "id": {
|
|
35444
|
-
publish = true;
|
|
35445
|
-
rawEvent.id = value;
|
|
35446
|
-
break;
|
|
35447
|
-
}
|
|
35448
|
-
case "retry": {
|
|
35449
|
-
const r = parseInt(value, 10);
|
|
35450
|
-
if (!Number.isNaN(r)) {
|
|
35451
|
-
publish = true;
|
|
35452
|
-
rawEvent.retry = r;
|
|
35453
|
-
}
|
|
35454
|
-
break;
|
|
35455
|
-
}
|
|
35456
|
-
}
|
|
35457
|
-
}
|
|
35458
|
-
if (!publish) {
|
|
35459
|
-
return null;
|
|
35460
|
-
}
|
|
35461
|
-
if (rawEvent.data != null) {
|
|
35462
|
-
rawEvent.data = rawEvent.data.slice(0, -1);
|
|
35463
|
-
}
|
|
35464
|
-
return decoder(rawEvent);
|
|
35465
|
-
}
|
|
35466
|
-
function discardSentinel(stream, sentinel) {
|
|
35467
|
-
return new ReadableStream({
|
|
35468
|
-
async start(controller) {
|
|
35469
|
-
let buffer = new Uint8Array([]);
|
|
35470
|
-
let position = 0;
|
|
35471
|
-
let done = false;
|
|
35472
|
-
let discard = false;
|
|
35473
|
-
const rdr = stream.getReader();
|
|
35474
|
-
try {
|
|
35475
|
-
while (!done) {
|
|
35476
|
-
const result = await rdr.read();
|
|
35477
|
-
const value = result.value;
|
|
35478
|
-
done = done || result.done;
|
|
35479
|
-
if (discard) {
|
|
35480
|
-
continue;
|
|
35481
|
-
}
|
|
35482
|
-
if (typeof value === "undefined") {
|
|
35483
|
-
continue;
|
|
35484
|
-
}
|
|
35485
|
-
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35486
|
-
newBuffer.set(buffer);
|
|
35487
|
-
newBuffer.set(value, buffer.length);
|
|
35488
|
-
buffer = newBuffer;
|
|
35489
|
-
for (let i = position;i < buffer.length; i++) {
|
|
35490
|
-
const boundary = findBoundary(buffer, i);
|
|
35491
|
-
if (boundary == null) {
|
|
35492
|
-
continue;
|
|
35493
|
-
}
|
|
35494
|
-
const start = position;
|
|
35495
|
-
const chunk = buffer.slice(start, i);
|
|
35496
|
-
position = i + boundary.length;
|
|
35497
|
-
const event = parseEvent(chunk, id);
|
|
35498
|
-
if (event?.data === sentinel) {
|
|
35499
|
-
controller.enqueue(buffer.slice(0, start));
|
|
35500
|
-
discard = true;
|
|
35501
|
-
} else {
|
|
35502
|
-
controller.enqueue(buffer.slice(0, position));
|
|
35503
|
-
buffer = buffer.slice(position);
|
|
35504
|
-
position = 0;
|
|
35505
|
-
}
|
|
35506
|
-
}
|
|
35507
|
-
}
|
|
35508
|
-
} catch (e) {
|
|
35509
|
-
controller.error(e);
|
|
35510
|
-
} finally {
|
|
35511
|
-
controller.close();
|
|
35512
|
-
rdr.releaseLock();
|
|
35513
|
-
}
|
|
35514
|
-
}
|
|
35515
|
-
});
|
|
35516
|
-
}
|
|
35517
|
-
function id(v2) {
|
|
35518
|
-
return v2;
|
|
35519
|
-
}
|
|
35520
|
-
var LF = 10, CR = 13, NEWLINE_CHARS, MESSAGE_BOUNDARIES, EventStream;
|
|
35521
|
-
var init_event_streams = __esm(() => {
|
|
35522
|
-
NEWLINE_CHARS = new Set([LF, CR]);
|
|
35523
|
-
MESSAGE_BOUNDARIES = [
|
|
35524
|
-
new Uint8Array([CR, LF, CR, LF]),
|
|
35525
|
-
new Uint8Array([CR, CR]),
|
|
35526
|
-
new Uint8Array([LF, LF])
|
|
35527
|
-
];
|
|
35528
|
-
EventStream = class EventStream {
|
|
35529
|
-
stream;
|
|
35530
|
-
decoder;
|
|
35531
|
-
constructor(init) {
|
|
35532
|
-
this.stream = init.stream;
|
|
35533
|
-
this.decoder = init.decoder;
|
|
35534
|
-
}
|
|
35535
|
-
async* [Symbol.asyncIterator]() {
|
|
35536
|
-
const reader = this.stream.getReader();
|
|
35537
|
-
let buffer = new Uint8Array([]);
|
|
35538
|
-
let position = 0;
|
|
35539
|
-
try {
|
|
35540
|
-
while (true) {
|
|
35541
|
-
const { done, value } = await reader.read();
|
|
35542
|
-
if (done) {
|
|
35543
|
-
break;
|
|
35544
|
-
}
|
|
35545
|
-
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35546
|
-
newBuffer.set(buffer);
|
|
35547
|
-
newBuffer.set(value, buffer.length);
|
|
35548
|
-
buffer = newBuffer;
|
|
35549
|
-
for (let i = position;i < buffer.length; i++) {
|
|
35550
|
-
const boundary = findBoundary(buffer, i);
|
|
35551
|
-
if (boundary == null) {
|
|
35552
|
-
continue;
|
|
35553
|
-
}
|
|
35554
|
-
const chunk = buffer.slice(position, i);
|
|
35555
|
-
position = i + boundary.length;
|
|
35556
|
-
const event = parseEvent(chunk, this.decoder);
|
|
35557
|
-
if (event != null) {
|
|
35558
|
-
yield event;
|
|
35559
|
-
}
|
|
35560
|
-
}
|
|
35561
|
-
if (position > 0) {
|
|
35562
|
-
buffer = buffer.slice(position);
|
|
35563
|
-
position = 0;
|
|
35564
|
-
}
|
|
35565
|
-
}
|
|
35566
|
-
if (buffer.length > 0) {
|
|
35567
|
-
const event = parseEvent(buffer, this.decoder);
|
|
35568
|
-
if (event != null) {
|
|
35569
|
-
yield event;
|
|
35570
|
-
}
|
|
35571
|
-
}
|
|
35572
|
-
} catch (e) {
|
|
35573
|
-
if (e instanceof Error && e.name === "AbortError") {
|
|
35574
|
-
return;
|
|
35575
|
-
}
|
|
35576
|
-
throw e;
|
|
35577
|
-
} finally {
|
|
35578
|
-
reader.releaseLock();
|
|
35579
|
-
}
|
|
35580
|
-
}
|
|
35581
|
-
};
|
|
35582
|
-
});
|
|
35583
|
-
|
|
35584
35382
|
// src/lib/matchers.ts
|
|
35585
35383
|
function jsonErr(codes, schema, options) {
|
|
35586
35384
|
return { ...options, err: true, enc: "json", codes, schema };
|
|
@@ -35643,7 +35441,7 @@ function match(...matchers) {
|
|
|
35643
35441
|
raw = body;
|
|
35644
35442
|
break;
|
|
35645
35443
|
case "sse":
|
|
35646
|
-
raw = response.body
|
|
35444
|
+
raw = response.body;
|
|
35647
35445
|
break;
|
|
35648
35446
|
case "nil":
|
|
35649
35447
|
body = await response.text();
|
|
@@ -35722,7 +35520,6 @@ var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
|
35722
35520
|
var init_matchers = __esm(() => {
|
|
35723
35521
|
init_apierror();
|
|
35724
35522
|
init_responsevalidationerror();
|
|
35725
|
-
init_event_streams();
|
|
35726
35523
|
init_http();
|
|
35727
35524
|
DEFAULT_CONTENT_TYPES = {
|
|
35728
35525
|
jsonl: "application/jsonl",
|
|
@@ -35902,467 +35699,6 @@ var init_security = __esm(() => {
|
|
|
35902
35699
|
};
|
|
35903
35700
|
});
|
|
35904
35701
|
|
|
35905
|
-
// src/models/operations/chunktext.ts
|
|
35906
|
-
var ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType, AgenticChunker, ChunkTextChunkingRequestKnowledgeBasesRequestReturnType, SDPMChunker, ChunkTextThreshold2, ChunkingRequestMode, ChunkTextChunkingRequestKnowledgeBasesReturnType, SemanticChunker, Threshold2, Mode, ChunkTextChunkingRequestReturnType, RecursiveChunker, ChunkingRequestReturnType, SentenceChunker, ReturnTypeT, TokenChunker, ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema, ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema, ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$, AgenticChunker$inboundSchema, AgenticChunker$outboundSchema, AgenticChunker$, AgenticChunkerStrategy$inboundSchema, AgenticChunkerStrategy$outboundSchema, AgenticChunkerStrategy$, ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema, ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema, ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$, SDPMChunker$inboundSchema, SDPMChunker$outboundSchema, SDPMChunker$, ChunkTextThreshold2$inboundSchema, ChunkTextThreshold2$outboundSchema, ChunkTextThreshold2$, ChunkingRequestThreshold$inboundSchema, ChunkingRequestThreshold$outboundSchema, ChunkingRequestThreshold$, ChunkingRequestMode$inboundSchema, ChunkingRequestMode$outboundSchema, ChunkingRequestMode$, SDPMChunkerStrategy$inboundSchema, SDPMChunkerStrategy$outboundSchema, SDPMChunkerStrategy$, ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema, ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema, ChunkTextChunkingRequestKnowledgeBasesReturnType$, SemanticChunker$inboundSchema, SemanticChunker$outboundSchema, SemanticChunker$, Threshold2$inboundSchema, Threshold2$outboundSchema, Threshold2$, Threshold$inboundSchema, Threshold$outboundSchema, Threshold$, Mode$inboundSchema, Mode$outboundSchema, Mode$, SemanticChunkerStrategy$inboundSchema, SemanticChunkerStrategy$outboundSchema, SemanticChunkerStrategy$, ChunkTextChunkingRequestReturnType$inboundSchema, ChunkTextChunkingRequestReturnType$outboundSchema, ChunkTextChunkingRequestReturnType$, RecursiveChunker$inboundSchema, RecursiveChunker$outboundSchema, RecursiveChunker$, RecursiveChunkerStrategy$inboundSchema, RecursiveChunkerStrategy$outboundSchema, RecursiveChunkerStrategy$, ChunkingRequestReturnType$inboundSchema, ChunkingRequestReturnType$outboundSchema, ChunkingRequestReturnType$, SentenceChunker$inboundSchema, SentenceChunker$outboundSchema, SentenceChunker$, SentenceChunkerStrategy$inboundSchema, SentenceChunkerStrategy$outboundSchema, SentenceChunkerStrategy$, ReturnTypeT$inboundSchema, ReturnTypeT$outboundSchema, ReturnTypeT$, TokenChunker$inboundSchema, TokenChunker$outboundSchema, TokenChunker$, TokenChunkerStrategy$inboundSchema, TokenChunkerStrategy$outboundSchema, TokenChunkerStrategy$, ChunkTextChunkingRequest$inboundSchema, ChunkTextChunkingRequest$outboundSchema, ChunkTextChunkingRequest$, ChunkTextMetadata$inboundSchema, ChunkTextMetadata$outboundSchema, ChunkTextMetadata$, Chunks$inboundSchema, Chunks$outboundSchema, Chunks$, ChunkTextResponseBody$inboundSchema, ChunkTextResponseBody$outboundSchema, ChunkTextResponseBody$;
|
|
35907
|
-
var init_chunktext = __esm(() => {
|
|
35908
|
-
init_esm();
|
|
35909
|
-
init_primitives();
|
|
35910
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType = {
|
|
35911
|
-
Chunks: "chunks",
|
|
35912
|
-
Texts: "texts"
|
|
35913
|
-
};
|
|
35914
|
-
AgenticChunker = {
|
|
35915
|
-
Agentic: "agentic"
|
|
35916
|
-
};
|
|
35917
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestReturnType = {
|
|
35918
|
-
Chunks: "chunks",
|
|
35919
|
-
Texts: "texts"
|
|
35920
|
-
};
|
|
35921
|
-
SDPMChunker = {
|
|
35922
|
-
Sdpm: "sdpm"
|
|
35923
|
-
};
|
|
35924
|
-
ChunkTextThreshold2 = {
|
|
35925
|
-
Auto: "auto"
|
|
35926
|
-
};
|
|
35927
|
-
ChunkingRequestMode = {
|
|
35928
|
-
Window: "window",
|
|
35929
|
-
Sentence: "sentence"
|
|
35930
|
-
};
|
|
35931
|
-
ChunkTextChunkingRequestKnowledgeBasesReturnType = {
|
|
35932
|
-
Chunks: "chunks",
|
|
35933
|
-
Texts: "texts"
|
|
35934
|
-
};
|
|
35935
|
-
SemanticChunker = {
|
|
35936
|
-
Semantic: "semantic"
|
|
35937
|
-
};
|
|
35938
|
-
Threshold2 = {
|
|
35939
|
-
Auto: "auto"
|
|
35940
|
-
};
|
|
35941
|
-
Mode = {
|
|
35942
|
-
Window: "window",
|
|
35943
|
-
Sentence: "sentence"
|
|
35944
|
-
};
|
|
35945
|
-
ChunkTextChunkingRequestReturnType = {
|
|
35946
|
-
Chunks: "chunks",
|
|
35947
|
-
Texts: "texts"
|
|
35948
|
-
};
|
|
35949
|
-
RecursiveChunker = {
|
|
35950
|
-
Recursive: "recursive"
|
|
35951
|
-
};
|
|
35952
|
-
ChunkingRequestReturnType = {
|
|
35953
|
-
Chunks: "chunks",
|
|
35954
|
-
Texts: "texts"
|
|
35955
|
-
};
|
|
35956
|
-
SentenceChunker = {
|
|
35957
|
-
Sentence: "sentence"
|
|
35958
|
-
};
|
|
35959
|
-
ReturnTypeT = {
|
|
35960
|
-
Chunks: "chunks",
|
|
35961
|
-
Texts: "texts"
|
|
35962
|
-
};
|
|
35963
|
-
TokenChunker = {
|
|
35964
|
-
Token: "token"
|
|
35965
|
-
};
|
|
35966
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema = nativeEnumType(ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType);
|
|
35967
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema;
|
|
35968
|
-
((ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$) => {
|
|
35969
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$.inboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema;
|
|
35970
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$.outboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema;
|
|
35971
|
-
})(ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$ ||= {});
|
|
35972
|
-
AgenticChunker$inboundSchema = nativeEnumType(AgenticChunker);
|
|
35973
|
-
AgenticChunker$outboundSchema = AgenticChunker$inboundSchema;
|
|
35974
|
-
((AgenticChunker$) => {
|
|
35975
|
-
AgenticChunker$.inboundSchema = AgenticChunker$inboundSchema;
|
|
35976
|
-
AgenticChunker$.outboundSchema = AgenticChunker$outboundSchema;
|
|
35977
|
-
})(AgenticChunker$ ||= {});
|
|
35978
|
-
AgenticChunkerStrategy$inboundSchema = objectType({
|
|
35979
|
-
text: stringType(),
|
|
35980
|
-
metadata: booleanType().default(true),
|
|
35981
|
-
return_type: ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema.default("chunks"),
|
|
35982
|
-
strategy: AgenticChunker$inboundSchema,
|
|
35983
|
-
model: stringType(),
|
|
35984
|
-
chunk_size: numberType().int().default(1024),
|
|
35985
|
-
candidate_size: numberType().int().default(128),
|
|
35986
|
-
min_characters_per_chunk: numberType().int().default(24)
|
|
35987
|
-
}).transform((v2) => {
|
|
35988
|
-
return remap(v2, {
|
|
35989
|
-
return_type: "returnType",
|
|
35990
|
-
chunk_size: "chunkSize",
|
|
35991
|
-
candidate_size: "candidateSize",
|
|
35992
|
-
min_characters_per_chunk: "minCharactersPerChunk"
|
|
35993
|
-
});
|
|
35994
|
-
});
|
|
35995
|
-
AgenticChunkerStrategy$outboundSchema = objectType({
|
|
35996
|
-
text: stringType(),
|
|
35997
|
-
metadata: booleanType().default(true),
|
|
35998
|
-
returnType: ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema.default("chunks"),
|
|
35999
|
-
strategy: AgenticChunker$outboundSchema,
|
|
36000
|
-
model: stringType(),
|
|
36001
|
-
chunkSize: numberType().int().default(1024),
|
|
36002
|
-
candidateSize: numberType().int().default(128),
|
|
36003
|
-
minCharactersPerChunk: numberType().int().default(24)
|
|
36004
|
-
}).transform((v2) => {
|
|
36005
|
-
return remap(v2, {
|
|
36006
|
-
returnType: "return_type",
|
|
36007
|
-
chunkSize: "chunk_size",
|
|
36008
|
-
candidateSize: "candidate_size",
|
|
36009
|
-
minCharactersPerChunk: "min_characters_per_chunk"
|
|
36010
|
-
});
|
|
36011
|
-
});
|
|
36012
|
-
((AgenticChunkerStrategy$) => {
|
|
36013
|
-
AgenticChunkerStrategy$.inboundSchema = AgenticChunkerStrategy$inboundSchema;
|
|
36014
|
-
AgenticChunkerStrategy$.outboundSchema = AgenticChunkerStrategy$outboundSchema;
|
|
36015
|
-
})(AgenticChunkerStrategy$ ||= {});
|
|
36016
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema = nativeEnumType(ChunkTextChunkingRequestKnowledgeBasesRequestReturnType);
|
|
36017
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema;
|
|
36018
|
-
((ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$) => {
|
|
36019
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$.inboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema;
|
|
36020
|
-
ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$.outboundSchema = ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema;
|
|
36021
|
-
})(ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$ ||= {});
|
|
36022
|
-
SDPMChunker$inboundSchema = nativeEnumType(SDPMChunker);
|
|
36023
|
-
SDPMChunker$outboundSchema = SDPMChunker$inboundSchema;
|
|
36024
|
-
((SDPMChunker$) => {
|
|
36025
|
-
SDPMChunker$.inboundSchema = SDPMChunker$inboundSchema;
|
|
36026
|
-
SDPMChunker$.outboundSchema = SDPMChunker$outboundSchema;
|
|
36027
|
-
})(SDPMChunker$ ||= {});
|
|
36028
|
-
ChunkTextThreshold2$inboundSchema = nativeEnumType(ChunkTextThreshold2);
|
|
36029
|
-
ChunkTextThreshold2$outboundSchema = ChunkTextThreshold2$inboundSchema;
|
|
36030
|
-
((ChunkTextThreshold2$) => {
|
|
36031
|
-
ChunkTextThreshold2$.inboundSchema = ChunkTextThreshold2$inboundSchema;
|
|
36032
|
-
ChunkTextThreshold2$.outboundSchema = ChunkTextThreshold2$outboundSchema;
|
|
36033
|
-
})(ChunkTextThreshold2$ ||= {});
|
|
36034
|
-
ChunkingRequestThreshold$inboundSchema = unionType([numberType(), ChunkTextThreshold2$inboundSchema]);
|
|
36035
|
-
ChunkingRequestThreshold$outboundSchema = unionType([numberType(), ChunkTextThreshold2$outboundSchema]);
|
|
36036
|
-
((ChunkingRequestThreshold$) => {
|
|
36037
|
-
ChunkingRequestThreshold$.inboundSchema = ChunkingRequestThreshold$inboundSchema;
|
|
36038
|
-
ChunkingRequestThreshold$.outboundSchema = ChunkingRequestThreshold$outboundSchema;
|
|
36039
|
-
})(ChunkingRequestThreshold$ ||= {});
|
|
36040
|
-
ChunkingRequestMode$inboundSchema = nativeEnumType(ChunkingRequestMode);
|
|
36041
|
-
ChunkingRequestMode$outboundSchema = ChunkingRequestMode$inboundSchema;
|
|
36042
|
-
((ChunkingRequestMode$) => {
|
|
36043
|
-
ChunkingRequestMode$.inboundSchema = ChunkingRequestMode$inboundSchema;
|
|
36044
|
-
ChunkingRequestMode$.outboundSchema = ChunkingRequestMode$outboundSchema;
|
|
36045
|
-
})(ChunkingRequestMode$ ||= {});
|
|
36046
|
-
SDPMChunkerStrategy$inboundSchema = objectType({
|
|
36047
|
-
text: stringType(),
|
|
36048
|
-
metadata: booleanType().default(true),
|
|
36049
|
-
return_type: ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema.default("chunks"),
|
|
36050
|
-
strategy: SDPMChunker$inboundSchema,
|
|
36051
|
-
chunk_size: numberType().int().default(512),
|
|
36052
|
-
skip_window: numberType().int().default(1),
|
|
36053
|
-
threshold: unionType([numberType(), ChunkTextThreshold2$inboundSchema]).optional(),
|
|
36054
|
-
embedding_model: stringType(),
|
|
36055
|
-
mode: ChunkingRequestMode$inboundSchema.default("window")
|
|
36056
|
-
}).transform((v2) => {
|
|
36057
|
-
return remap(v2, {
|
|
36058
|
-
return_type: "returnType",
|
|
36059
|
-
chunk_size: "chunkSize",
|
|
36060
|
-
skip_window: "skipWindow",
|
|
36061
|
-
embedding_model: "embeddingModel"
|
|
36062
|
-
});
|
|
36063
|
-
});
|
|
36064
|
-
SDPMChunkerStrategy$outboundSchema = objectType({
|
|
36065
|
-
text: stringType(),
|
|
36066
|
-
metadata: booleanType().default(true),
|
|
36067
|
-
returnType: ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema.default("chunks"),
|
|
36068
|
-
strategy: SDPMChunker$outboundSchema,
|
|
36069
|
-
chunkSize: numberType().int().default(512),
|
|
36070
|
-
skipWindow: numberType().int().default(1),
|
|
36071
|
-
threshold: unionType([numberType(), ChunkTextThreshold2$outboundSchema]).optional(),
|
|
36072
|
-
embeddingModel: stringType(),
|
|
36073
|
-
mode: ChunkingRequestMode$outboundSchema.default("window")
|
|
36074
|
-
}).transform((v2) => {
|
|
36075
|
-
return remap(v2, {
|
|
36076
|
-
returnType: "return_type",
|
|
36077
|
-
chunkSize: "chunk_size",
|
|
36078
|
-
skipWindow: "skip_window",
|
|
36079
|
-
embeddingModel: "embedding_model"
|
|
36080
|
-
});
|
|
36081
|
-
});
|
|
36082
|
-
((SDPMChunkerStrategy$) => {
|
|
36083
|
-
SDPMChunkerStrategy$.inboundSchema = SDPMChunkerStrategy$inboundSchema;
|
|
36084
|
-
SDPMChunkerStrategy$.outboundSchema = SDPMChunkerStrategy$outboundSchema;
|
|
36085
|
-
})(SDPMChunkerStrategy$ ||= {});
|
|
36086
|
-
ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema = nativeEnumType(ChunkTextChunkingRequestKnowledgeBasesReturnType);
|
|
36087
|
-
ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema = ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema;
|
|
36088
|
-
((ChunkTextChunkingRequestKnowledgeBasesReturnType$) => {
|
|
36089
|
-
ChunkTextChunkingRequestKnowledgeBasesReturnType$.inboundSchema = ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema;
|
|
36090
|
-
ChunkTextChunkingRequestKnowledgeBasesReturnType$.outboundSchema = ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema;
|
|
36091
|
-
})(ChunkTextChunkingRequestKnowledgeBasesReturnType$ ||= {});
|
|
36092
|
-
SemanticChunker$inboundSchema = nativeEnumType(SemanticChunker);
|
|
36093
|
-
SemanticChunker$outboundSchema = SemanticChunker$inboundSchema;
|
|
36094
|
-
((SemanticChunker$) => {
|
|
36095
|
-
SemanticChunker$.inboundSchema = SemanticChunker$inboundSchema;
|
|
36096
|
-
SemanticChunker$.outboundSchema = SemanticChunker$outboundSchema;
|
|
36097
|
-
})(SemanticChunker$ ||= {});
|
|
36098
|
-
Threshold2$inboundSchema = nativeEnumType(Threshold2);
|
|
36099
|
-
Threshold2$outboundSchema = Threshold2$inboundSchema;
|
|
36100
|
-
((Threshold2$) => {
|
|
36101
|
-
Threshold2$.inboundSchema = Threshold2$inboundSchema;
|
|
36102
|
-
Threshold2$.outboundSchema = Threshold2$outboundSchema;
|
|
36103
|
-
})(Threshold2$ ||= {});
|
|
36104
|
-
Threshold$inboundSchema = unionType([numberType(), Threshold2$inboundSchema]);
|
|
36105
|
-
Threshold$outboundSchema = unionType([numberType(), Threshold2$outboundSchema]);
|
|
36106
|
-
((Threshold$) => {
|
|
36107
|
-
Threshold$.inboundSchema = Threshold$inboundSchema;
|
|
36108
|
-
Threshold$.outboundSchema = Threshold$outboundSchema;
|
|
36109
|
-
})(Threshold$ ||= {});
|
|
36110
|
-
Mode$inboundSchema = nativeEnumType(Mode);
|
|
36111
|
-
Mode$outboundSchema = Mode$inboundSchema;
|
|
36112
|
-
((Mode$) => {
|
|
36113
|
-
Mode$.inboundSchema = Mode$inboundSchema;
|
|
36114
|
-
Mode$.outboundSchema = Mode$outboundSchema;
|
|
36115
|
-
})(Mode$ ||= {});
|
|
36116
|
-
SemanticChunkerStrategy$inboundSchema = objectType({
|
|
36117
|
-
text: stringType(),
|
|
36118
|
-
metadata: booleanType().default(true),
|
|
36119
|
-
return_type: ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema.default("chunks"),
|
|
36120
|
-
strategy: SemanticChunker$inboundSchema,
|
|
36121
|
-
chunk_size: numberType().int().default(512),
|
|
36122
|
-
threshold: unionType([numberType(), Threshold2$inboundSchema]).optional(),
|
|
36123
|
-
embedding_model: stringType(),
|
|
36124
|
-
mode: Mode$inboundSchema.default("window"),
|
|
36125
|
-
similarity_window: numberType().int().default(1)
|
|
36126
|
-
}).transform((v2) => {
|
|
36127
|
-
return remap(v2, {
|
|
36128
|
-
return_type: "returnType",
|
|
36129
|
-
chunk_size: "chunkSize",
|
|
36130
|
-
embedding_model: "embeddingModel",
|
|
36131
|
-
similarity_window: "similarityWindow"
|
|
36132
|
-
});
|
|
36133
|
-
});
|
|
36134
|
-
SemanticChunkerStrategy$outboundSchema = objectType({
|
|
36135
|
-
text: stringType(),
|
|
36136
|
-
metadata: booleanType().default(true),
|
|
36137
|
-
returnType: ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema.default("chunks"),
|
|
36138
|
-
strategy: SemanticChunker$outboundSchema,
|
|
36139
|
-
chunkSize: numberType().int().default(512),
|
|
36140
|
-
threshold: unionType([numberType(), Threshold2$outboundSchema]).optional(),
|
|
36141
|
-
embeddingModel: stringType(),
|
|
36142
|
-
mode: Mode$outboundSchema.default("window"),
|
|
36143
|
-
similarityWindow: numberType().int().default(1)
|
|
36144
|
-
}).transform((v2) => {
|
|
36145
|
-
return remap(v2, {
|
|
36146
|
-
returnType: "return_type",
|
|
36147
|
-
chunkSize: "chunk_size",
|
|
36148
|
-
embeddingModel: "embedding_model",
|
|
36149
|
-
similarityWindow: "similarity_window"
|
|
36150
|
-
});
|
|
36151
|
-
});
|
|
36152
|
-
((SemanticChunkerStrategy$) => {
|
|
36153
|
-
SemanticChunkerStrategy$.inboundSchema = SemanticChunkerStrategy$inboundSchema;
|
|
36154
|
-
SemanticChunkerStrategy$.outboundSchema = SemanticChunkerStrategy$outboundSchema;
|
|
36155
|
-
})(SemanticChunkerStrategy$ ||= {});
|
|
36156
|
-
ChunkTextChunkingRequestReturnType$inboundSchema = nativeEnumType(ChunkTextChunkingRequestReturnType);
|
|
36157
|
-
ChunkTextChunkingRequestReturnType$outboundSchema = ChunkTextChunkingRequestReturnType$inboundSchema;
|
|
36158
|
-
((ChunkTextChunkingRequestReturnType$) => {
|
|
36159
|
-
ChunkTextChunkingRequestReturnType$.inboundSchema = ChunkTextChunkingRequestReturnType$inboundSchema;
|
|
36160
|
-
ChunkTextChunkingRequestReturnType$.outboundSchema = ChunkTextChunkingRequestReturnType$outboundSchema;
|
|
36161
|
-
})(ChunkTextChunkingRequestReturnType$ ||= {});
|
|
36162
|
-
RecursiveChunker$inboundSchema = nativeEnumType(RecursiveChunker);
|
|
36163
|
-
RecursiveChunker$outboundSchema = RecursiveChunker$inboundSchema;
|
|
36164
|
-
((RecursiveChunker$) => {
|
|
36165
|
-
RecursiveChunker$.inboundSchema = RecursiveChunker$inboundSchema;
|
|
36166
|
-
RecursiveChunker$.outboundSchema = RecursiveChunker$outboundSchema;
|
|
36167
|
-
})(RecursiveChunker$ ||= {});
|
|
36168
|
-
RecursiveChunkerStrategy$inboundSchema = objectType({
|
|
36169
|
-
text: stringType(),
|
|
36170
|
-
metadata: booleanType().default(true),
|
|
36171
|
-
return_type: ChunkTextChunkingRequestReturnType$inboundSchema.default("chunks"),
|
|
36172
|
-
strategy: RecursiveChunker$inboundSchema,
|
|
36173
|
-
chunk_size: numberType().int().default(512),
|
|
36174
|
-
separators: arrayType(stringType()).optional(),
|
|
36175
|
-
min_characters_per_chunk: numberType().int().default(24)
|
|
36176
|
-
}).transform((v2) => {
|
|
36177
|
-
return remap(v2, {
|
|
36178
|
-
return_type: "returnType",
|
|
36179
|
-
chunk_size: "chunkSize",
|
|
36180
|
-
min_characters_per_chunk: "minCharactersPerChunk"
|
|
36181
|
-
});
|
|
36182
|
-
});
|
|
36183
|
-
RecursiveChunkerStrategy$outboundSchema = objectType({
|
|
36184
|
-
text: stringType(),
|
|
36185
|
-
metadata: booleanType().default(true),
|
|
36186
|
-
returnType: ChunkTextChunkingRequestReturnType$outboundSchema.default("chunks"),
|
|
36187
|
-
strategy: RecursiveChunker$outboundSchema,
|
|
36188
|
-
chunkSize: numberType().int().default(512),
|
|
36189
|
-
separators: arrayType(stringType()).optional(),
|
|
36190
|
-
minCharactersPerChunk: numberType().int().default(24)
|
|
36191
|
-
}).transform((v2) => {
|
|
36192
|
-
return remap(v2, {
|
|
36193
|
-
returnType: "return_type",
|
|
36194
|
-
chunkSize: "chunk_size",
|
|
36195
|
-
minCharactersPerChunk: "min_characters_per_chunk"
|
|
36196
|
-
});
|
|
36197
|
-
});
|
|
36198
|
-
((RecursiveChunkerStrategy$) => {
|
|
36199
|
-
RecursiveChunkerStrategy$.inboundSchema = RecursiveChunkerStrategy$inboundSchema;
|
|
36200
|
-
RecursiveChunkerStrategy$.outboundSchema = RecursiveChunkerStrategy$outboundSchema;
|
|
36201
|
-
})(RecursiveChunkerStrategy$ ||= {});
|
|
36202
|
-
ChunkingRequestReturnType$inboundSchema = nativeEnumType(ChunkingRequestReturnType);
|
|
36203
|
-
ChunkingRequestReturnType$outboundSchema = ChunkingRequestReturnType$inboundSchema;
|
|
36204
|
-
((ChunkingRequestReturnType$) => {
|
|
36205
|
-
ChunkingRequestReturnType$.inboundSchema = ChunkingRequestReturnType$inboundSchema;
|
|
36206
|
-
ChunkingRequestReturnType$.outboundSchema = ChunkingRequestReturnType$outboundSchema;
|
|
36207
|
-
})(ChunkingRequestReturnType$ ||= {});
|
|
36208
|
-
SentenceChunker$inboundSchema = nativeEnumType(SentenceChunker);
|
|
36209
|
-
SentenceChunker$outboundSchema = SentenceChunker$inboundSchema;
|
|
36210
|
-
((SentenceChunker$) => {
|
|
36211
|
-
SentenceChunker$.inboundSchema = SentenceChunker$inboundSchema;
|
|
36212
|
-
SentenceChunker$.outboundSchema = SentenceChunker$outboundSchema;
|
|
36213
|
-
})(SentenceChunker$ ||= {});
|
|
36214
|
-
SentenceChunkerStrategy$inboundSchema = objectType({
|
|
36215
|
-
text: stringType(),
|
|
36216
|
-
metadata: booleanType().default(true),
|
|
36217
|
-
return_type: ChunkingRequestReturnType$inboundSchema.default("chunks"),
|
|
36218
|
-
strategy: SentenceChunker$inboundSchema,
|
|
36219
|
-
chunk_size: numberType().int().default(512),
|
|
36220
|
-
chunk_overlap: numberType().int().default(0),
|
|
36221
|
-
min_sentences_per_chunk: numberType().int().default(1)
|
|
36222
|
-
}).transform((v2) => {
|
|
36223
|
-
return remap(v2, {
|
|
36224
|
-
return_type: "returnType",
|
|
36225
|
-
chunk_size: "chunkSize",
|
|
36226
|
-
chunk_overlap: "chunkOverlap",
|
|
36227
|
-
min_sentences_per_chunk: "minSentencesPerChunk"
|
|
36228
|
-
});
|
|
36229
|
-
});
|
|
36230
|
-
SentenceChunkerStrategy$outboundSchema = objectType({
|
|
36231
|
-
text: stringType(),
|
|
36232
|
-
metadata: booleanType().default(true),
|
|
36233
|
-
returnType: ChunkingRequestReturnType$outboundSchema.default("chunks"),
|
|
36234
|
-
strategy: SentenceChunker$outboundSchema,
|
|
36235
|
-
chunkSize: numberType().int().default(512),
|
|
36236
|
-
chunkOverlap: numberType().int().default(0),
|
|
36237
|
-
minSentencesPerChunk: numberType().int().default(1)
|
|
36238
|
-
}).transform((v2) => {
|
|
36239
|
-
return remap(v2, {
|
|
36240
|
-
returnType: "return_type",
|
|
36241
|
-
chunkSize: "chunk_size",
|
|
36242
|
-
chunkOverlap: "chunk_overlap",
|
|
36243
|
-
minSentencesPerChunk: "min_sentences_per_chunk"
|
|
36244
|
-
});
|
|
36245
|
-
});
|
|
36246
|
-
((SentenceChunkerStrategy$) => {
|
|
36247
|
-
SentenceChunkerStrategy$.inboundSchema = SentenceChunkerStrategy$inboundSchema;
|
|
36248
|
-
SentenceChunkerStrategy$.outboundSchema = SentenceChunkerStrategy$outboundSchema;
|
|
36249
|
-
})(SentenceChunkerStrategy$ ||= {});
|
|
36250
|
-
ReturnTypeT$inboundSchema = nativeEnumType(ReturnTypeT);
|
|
36251
|
-
ReturnTypeT$outboundSchema = ReturnTypeT$inboundSchema;
|
|
36252
|
-
((ReturnTypeT$) => {
|
|
36253
|
-
ReturnTypeT$.inboundSchema = ReturnTypeT$inboundSchema;
|
|
36254
|
-
ReturnTypeT$.outboundSchema = ReturnTypeT$outboundSchema;
|
|
36255
|
-
})(ReturnTypeT$ ||= {});
|
|
36256
|
-
TokenChunker$inboundSchema = nativeEnumType(TokenChunker);
|
|
36257
|
-
TokenChunker$outboundSchema = TokenChunker$inboundSchema;
|
|
36258
|
-
((TokenChunker$) => {
|
|
36259
|
-
TokenChunker$.inboundSchema = TokenChunker$inboundSchema;
|
|
36260
|
-
TokenChunker$.outboundSchema = TokenChunker$outboundSchema;
|
|
36261
|
-
})(TokenChunker$ ||= {});
|
|
36262
|
-
TokenChunkerStrategy$inboundSchema = objectType({
|
|
36263
|
-
text: stringType(),
|
|
36264
|
-
metadata: booleanType().default(true),
|
|
36265
|
-
return_type: ReturnTypeT$inboundSchema.default("chunks"),
|
|
36266
|
-
strategy: TokenChunker$inboundSchema,
|
|
36267
|
-
chunk_size: numberType().int().default(512),
|
|
36268
|
-
chunk_overlap: numberType().int().default(0)
|
|
36269
|
-
}).transform((v2) => {
|
|
36270
|
-
return remap(v2, {
|
|
36271
|
-
return_type: "returnType",
|
|
36272
|
-
chunk_size: "chunkSize",
|
|
36273
|
-
chunk_overlap: "chunkOverlap"
|
|
36274
|
-
});
|
|
36275
|
-
});
|
|
36276
|
-
TokenChunkerStrategy$outboundSchema = objectType({
|
|
36277
|
-
text: stringType(),
|
|
36278
|
-
metadata: booleanType().default(true),
|
|
36279
|
-
returnType: ReturnTypeT$outboundSchema.default("chunks"),
|
|
36280
|
-
strategy: TokenChunker$outboundSchema,
|
|
36281
|
-
chunkSize: numberType().int().default(512),
|
|
36282
|
-
chunkOverlap: numberType().int().default(0)
|
|
36283
|
-
}).transform((v2) => {
|
|
36284
|
-
return remap(v2, {
|
|
36285
|
-
returnType: "return_type",
|
|
36286
|
-
chunkSize: "chunk_size",
|
|
36287
|
-
chunkOverlap: "chunk_overlap"
|
|
36288
|
-
});
|
|
36289
|
-
});
|
|
36290
|
-
((TokenChunkerStrategy$) => {
|
|
36291
|
-
TokenChunkerStrategy$.inboundSchema = TokenChunkerStrategy$inboundSchema;
|
|
36292
|
-
TokenChunkerStrategy$.outboundSchema = TokenChunkerStrategy$outboundSchema;
|
|
36293
|
-
})(TokenChunkerStrategy$ ||= {});
|
|
36294
|
-
ChunkTextChunkingRequest$inboundSchema = unionType([
|
|
36295
|
-
lazyType(() => SemanticChunkerStrategy$inboundSchema),
|
|
36296
|
-
lazyType(() => SDPMChunkerStrategy$inboundSchema),
|
|
36297
|
-
lazyType(() => AgenticChunkerStrategy$inboundSchema),
|
|
36298
|
-
lazyType(() => TokenChunkerStrategy$inboundSchema),
|
|
36299
|
-
lazyType(() => SentenceChunkerStrategy$inboundSchema),
|
|
36300
|
-
lazyType(() => RecursiveChunkerStrategy$inboundSchema)
|
|
36301
|
-
]);
|
|
36302
|
-
ChunkTextChunkingRequest$outboundSchema = unionType([
|
|
36303
|
-
lazyType(() => SemanticChunkerStrategy$outboundSchema),
|
|
36304
|
-
lazyType(() => SDPMChunkerStrategy$outboundSchema),
|
|
36305
|
-
lazyType(() => AgenticChunkerStrategy$outboundSchema),
|
|
36306
|
-
lazyType(() => TokenChunkerStrategy$outboundSchema),
|
|
36307
|
-
lazyType(() => SentenceChunkerStrategy$outboundSchema),
|
|
36308
|
-
lazyType(() => RecursiveChunkerStrategy$outboundSchema)
|
|
36309
|
-
]);
|
|
36310
|
-
((ChunkTextChunkingRequest$) => {
|
|
36311
|
-
ChunkTextChunkingRequest$.inboundSchema = ChunkTextChunkingRequest$inboundSchema;
|
|
36312
|
-
ChunkTextChunkingRequest$.outboundSchema = ChunkTextChunkingRequest$outboundSchema;
|
|
36313
|
-
})(ChunkTextChunkingRequest$ ||= {});
|
|
36314
|
-
ChunkTextMetadata$inboundSchema = objectType({
|
|
36315
|
-
start_index: nullableType(numberType()),
|
|
36316
|
-
end_index: nullableType(numberType()),
|
|
36317
|
-
token_count: nullableType(numberType())
|
|
36318
|
-
}).transform((v2) => {
|
|
36319
|
-
return remap(v2, {
|
|
36320
|
-
start_index: "startIndex",
|
|
36321
|
-
end_index: "endIndex",
|
|
36322
|
-
token_count: "tokenCount"
|
|
36323
|
-
});
|
|
36324
|
-
});
|
|
36325
|
-
ChunkTextMetadata$outboundSchema = objectType({
|
|
36326
|
-
startIndex: nullableType(numberType()),
|
|
36327
|
-
endIndex: nullableType(numberType()),
|
|
36328
|
-
tokenCount: nullableType(numberType())
|
|
36329
|
-
}).transform((v2) => {
|
|
36330
|
-
return remap(v2, {
|
|
36331
|
-
startIndex: "start_index",
|
|
36332
|
-
endIndex: "end_index",
|
|
36333
|
-
tokenCount: "token_count"
|
|
36334
|
-
});
|
|
36335
|
-
});
|
|
36336
|
-
((ChunkTextMetadata$) => {
|
|
36337
|
-
ChunkTextMetadata$.inboundSchema = ChunkTextMetadata$inboundSchema;
|
|
36338
|
-
ChunkTextMetadata$.outboundSchema = ChunkTextMetadata$outboundSchema;
|
|
36339
|
-
})(ChunkTextMetadata$ ||= {});
|
|
36340
|
-
Chunks$inboundSchema = objectType({
|
|
36341
|
-
text: stringType(),
|
|
36342
|
-
index: numberType(),
|
|
36343
|
-
metadata: lazyType(() => ChunkTextMetadata$inboundSchema).optional()
|
|
36344
|
-
});
|
|
36345
|
-
Chunks$outboundSchema = objectType({
|
|
36346
|
-
text: stringType(),
|
|
36347
|
-
index: numberType(),
|
|
36348
|
-
metadata: lazyType(() => ChunkTextMetadata$outboundSchema).optional()
|
|
36349
|
-
});
|
|
36350
|
-
((Chunks$) => {
|
|
36351
|
-
Chunks$.inboundSchema = Chunks$inboundSchema;
|
|
36352
|
-
Chunks$.outboundSchema = Chunks$outboundSchema;
|
|
36353
|
-
})(Chunks$ ||= {});
|
|
36354
|
-
ChunkTextResponseBody$inboundSchema = objectType({
|
|
36355
|
-
chunks: arrayType(lazyType(() => Chunks$inboundSchema))
|
|
36356
|
-
});
|
|
36357
|
-
ChunkTextResponseBody$outboundSchema = objectType({
|
|
36358
|
-
chunks: arrayType(lazyType(() => Chunks$outboundSchema))
|
|
36359
|
-
});
|
|
36360
|
-
((ChunkTextResponseBody$) => {
|
|
36361
|
-
ChunkTextResponseBody$.inboundSchema = ChunkTextResponseBody$inboundSchema;
|
|
36362
|
-
ChunkTextResponseBody$.outboundSchema = ChunkTextResponseBody$outboundSchema;
|
|
36363
|
-
})(ChunkTextResponseBody$ ||= {});
|
|
36364
|
-
});
|
|
36365
|
-
|
|
36366
35702
|
// src/models/operations/cleardataset.ts
|
|
36367
35703
|
var ClearDatasetRequest$inboundSchema, ClearDatasetRequest$outboundSchema, ClearDatasetRequest$;
|
|
36368
35704
|
var init_cleardataset = __esm(() => {
|
|
@@ -36545,7 +35881,7 @@ var init_createcontact = __esm(() => {
|
|
|
36545
35881
|
tags: arrayType(stringType()).optional(),
|
|
36546
35882
|
metadata: recordType(anyType()).optional(),
|
|
36547
35883
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36548
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
35884
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
36549
35885
|
}).transform((v2) => {
|
|
36550
35886
|
return remap(v2, {
|
|
36551
35887
|
_id: "id",
|
|
@@ -36565,7 +35901,7 @@ var init_createcontact = __esm(() => {
|
|
|
36565
35901
|
tags: arrayType(stringType()).optional(),
|
|
36566
35902
|
metadata: recordType(anyType()).optional(),
|
|
36567
35903
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36568
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
35904
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
36569
35905
|
}).transform((v2) => {
|
|
36570
35906
|
return remap(v2, {
|
|
36571
35907
|
id: "_id",
|
|
@@ -36637,7 +35973,7 @@ var init_createdataset = __esm(() => {
|
|
|
36637
35973
|
updated_by_id: stringType().optional(),
|
|
36638
35974
|
metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
|
|
36639
35975
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36640
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
35976
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
36641
35977
|
}).transform((v2) => {
|
|
36642
35978
|
return remap(v2, {
|
|
36643
35979
|
_id: "id",
|
|
@@ -36657,7 +35993,7 @@ var init_createdataset = __esm(() => {
|
|
|
36657
35993
|
updatedById: stringType().optional(),
|
|
36658
35994
|
metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
|
|
36659
35995
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36660
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
35996
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
36661
35997
|
}).transform((v2) => {
|
|
36662
35998
|
return remap(v2, {
|
|
36663
35999
|
id: "_id",
|
|
@@ -37789,7 +37125,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37789
37125
|
created_by_id: stringType().optional(),
|
|
37790
37126
|
updated_by_id: stringType().optional(),
|
|
37791
37127
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
37792
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
37128
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
37793
37129
|
}).transform((v2) => {
|
|
37794
37130
|
return remap(v2, {
|
|
37795
37131
|
_id: "id",
|
|
@@ -37816,7 +37152,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37816
37152
|
createdById: stringType().optional(),
|
|
37817
37153
|
updatedById: stringType().optional(),
|
|
37818
37154
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
37819
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
37155
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
37820
37156
|
}).transform((v2) => {
|
|
37821
37157
|
return remap(v2, {
|
|
37822
37158
|
id: "_id",
|
|
@@ -38038,7 +37374,7 @@ var init_createdatasource = __esm(() => {
|
|
|
38038
37374
|
CreateDatasourceStatus$.outboundSchema = CreateDatasourceStatus$outboundSchema;
|
|
38039
37375
|
})(CreateDatasourceStatus$ ||= {});
|
|
38040
37376
|
CreateDatasourceResponseBody$inboundSchema = objectType({
|
|
38041
|
-
_id: stringType().default("
|
|
37377
|
+
_id: stringType().default("01JZR9S4ZP9F6NPM8XS0RT7ZSZ"),
|
|
38042
37378
|
display_name: stringType(),
|
|
38043
37379
|
description: stringType().optional(),
|
|
38044
37380
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -38061,7 +37397,7 @@ var init_createdatasource = __esm(() => {
|
|
|
38061
37397
|
});
|
|
38062
37398
|
});
|
|
38063
37399
|
CreateDatasourceResponseBody$outboundSchema = objectType({
|
|
38064
|
-
id: stringType().default("
|
|
37400
|
+
id: stringType().default("01JZR9S4ZP9F6NPM8XS0RT7ZSZ"),
|
|
38065
37401
|
displayName: stringType(),
|
|
38066
37402
|
description: stringType().optional(),
|
|
38067
37403
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -38737,8 +38073,8 @@ var init_createeval = __esm(() => {
|
|
|
38737
38073
|
ResponseBodyPython$inboundSchema = objectType({
|
|
38738
38074
|
_id: stringType(),
|
|
38739
38075
|
description: stringType(),
|
|
38740
|
-
created: stringType().default("2025-07-
|
|
38741
|
-
updated: stringType().default("2025-07-
|
|
38076
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38077
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38742
38078
|
guardrail_config: unionType([
|
|
38743
38079
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
38744
38080
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -38755,8 +38091,8 @@ var init_createeval = __esm(() => {
|
|
|
38755
38091
|
ResponseBodyPython$outboundSchema = objectType({
|
|
38756
38092
|
id: stringType(),
|
|
38757
38093
|
description: stringType(),
|
|
38758
|
-
created: stringType().default("2025-07-
|
|
38759
|
-
updated: stringType().default("2025-07-
|
|
38094
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38095
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38760
38096
|
guardrailConfig: unionType([
|
|
38761
38097
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
38762
38098
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -38849,8 +38185,8 @@ var init_createeval = __esm(() => {
|
|
|
38849
38185
|
ResponseBodyHTTP$inboundSchema = objectType({
|
|
38850
38186
|
_id: stringType(),
|
|
38851
38187
|
description: stringType(),
|
|
38852
|
-
created: stringType().default("2025-07-
|
|
38853
|
-
updated: stringType().default("2025-07-
|
|
38188
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38189
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38854
38190
|
guardrail_config: unionType([
|
|
38855
38191
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
38856
38192
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -38870,8 +38206,8 @@ var init_createeval = __esm(() => {
|
|
|
38870
38206
|
ResponseBodyHTTP$outboundSchema = objectType({
|
|
38871
38207
|
id: stringType(),
|
|
38872
38208
|
description: stringType(),
|
|
38873
|
-
created: stringType().default("2025-07-
|
|
38874
|
-
updated: stringType().default("2025-07-
|
|
38209
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38210
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38875
38211
|
guardrailConfig: unionType([
|
|
38876
38212
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
38877
38213
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -38961,8 +38297,8 @@ var init_createeval = __esm(() => {
|
|
|
38961
38297
|
ResponseBodyJSON$inboundSchema = objectType({
|
|
38962
38298
|
_id: stringType(),
|
|
38963
38299
|
description: stringType(),
|
|
38964
|
-
created: stringType().default("2025-07-
|
|
38965
|
-
updated: stringType().default("2025-07-
|
|
38300
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38301
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38966
38302
|
guardrail_config: unionType([
|
|
38967
38303
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
38968
38304
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -38979,8 +38315,8 @@ var init_createeval = __esm(() => {
|
|
|
38979
38315
|
ResponseBodyJSON$outboundSchema = objectType({
|
|
38980
38316
|
id: stringType(),
|
|
38981
38317
|
description: stringType(),
|
|
38982
|
-
created: stringType().default("2025-07-
|
|
38983
|
-
updated: stringType().default("2025-07-
|
|
38318
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38319
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38984
38320
|
guardrailConfig: unionType([
|
|
38985
38321
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
38986
38322
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -39067,8 +38403,8 @@ var init_createeval = __esm(() => {
|
|
|
39067
38403
|
ResponseBodyLLM$inboundSchema = objectType({
|
|
39068
38404
|
_id: stringType(),
|
|
39069
38405
|
description: stringType(),
|
|
39070
|
-
created: stringType().default("2025-07-
|
|
39071
|
-
updated: stringType().default("2025-07-
|
|
38406
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38407
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
39072
38408
|
guardrail_config: unionType([
|
|
39073
38409
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
39074
38410
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -39086,8 +38422,8 @@ var init_createeval = __esm(() => {
|
|
|
39086
38422
|
ResponseBodyLLM$outboundSchema = objectType({
|
|
39087
38423
|
id: stringType(),
|
|
39088
38424
|
description: stringType(),
|
|
39089
|
-
created: stringType().default("2025-07-
|
|
39090
|
-
updated: stringType().default("2025-07-
|
|
38425
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
38426
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
39091
38427
|
guardrailConfig: unionType([
|
|
39092
38428
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
39093
38429
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -39191,6 +38527,237 @@ var init_createfeedback = __esm(() => {
|
|
|
39191
38527
|
})(CreateFeedbackResponseBody$ ||= {});
|
|
39192
38528
|
});
|
|
39193
38529
|
|
|
38530
|
+
// src/models/operations/createknowledge.ts
|
|
38531
|
+
var RetrievalType, CreateKnowledgeRetrievalType, RetrievalType$inboundSchema, RetrievalType$outboundSchema, RetrievalType$, RerankConfig$inboundSchema, RerankConfig$outboundSchema, RerankConfig$, AgenticRagConfig$inboundSchema, AgenticRagConfig$outboundSchema, AgenticRagConfig$, RetrievalSettings$inboundSchema, RetrievalSettings$outboundSchema, RetrievalSettings$, CreateKnowledgeRequestBody$inboundSchema, CreateKnowledgeRequestBody$outboundSchema, CreateKnowledgeRequestBody$, CreateKnowledgeRetrievalType$inboundSchema, CreateKnowledgeRetrievalType$outboundSchema, CreateKnowledgeRetrievalType$, CreateKnowledgeRerankConfig$inboundSchema, CreateKnowledgeRerankConfig$outboundSchema, CreateKnowledgeRerankConfig$, CreateKnowledgeAgenticRagConfig$inboundSchema, CreateKnowledgeAgenticRagConfig$outboundSchema, CreateKnowledgeAgenticRagConfig$, CreateKnowledgeRetrievalSettings$inboundSchema, CreateKnowledgeRetrievalSettings$outboundSchema, CreateKnowledgeRetrievalSettings$, CreateKnowledgeResponseBody$inboundSchema, CreateKnowledgeResponseBody$outboundSchema, CreateKnowledgeResponseBody$;
|
|
38532
|
+
var init_createknowledge = __esm(() => {
|
|
38533
|
+
init_esm();
|
|
38534
|
+
init_primitives();
|
|
38535
|
+
RetrievalType = {
|
|
38536
|
+
VectorSearch: "vector_search",
|
|
38537
|
+
KeywordSearch: "keyword_search",
|
|
38538
|
+
HybridSearch: "hybrid_search"
|
|
38539
|
+
};
|
|
38540
|
+
CreateKnowledgeRetrievalType = {
|
|
38541
|
+
VectorSearch: "vector_search",
|
|
38542
|
+
KeywordSearch: "keyword_search",
|
|
38543
|
+
HybridSearch: "hybrid_search"
|
|
38544
|
+
};
|
|
38545
|
+
RetrievalType$inboundSchema = nativeEnumType(RetrievalType);
|
|
38546
|
+
RetrievalType$outboundSchema = RetrievalType$inboundSchema;
|
|
38547
|
+
((RetrievalType$) => {
|
|
38548
|
+
RetrievalType$.inboundSchema = RetrievalType$inboundSchema;
|
|
38549
|
+
RetrievalType$.outboundSchema = RetrievalType$outboundSchema;
|
|
38550
|
+
})(RetrievalType$ ||= {});
|
|
38551
|
+
RerankConfig$inboundSchema = objectType({
|
|
38552
|
+
rerank_threshold: numberType().default(0.5),
|
|
38553
|
+
rerank_model: stringType()
|
|
38554
|
+
}).transform((v2) => {
|
|
38555
|
+
return remap(v2, {
|
|
38556
|
+
rerank_threshold: "rerankThreshold",
|
|
38557
|
+
rerank_model: "rerankModel"
|
|
38558
|
+
});
|
|
38559
|
+
});
|
|
38560
|
+
RerankConfig$outboundSchema = objectType({
|
|
38561
|
+
rerankThreshold: numberType().default(0.5),
|
|
38562
|
+
rerankModel: stringType()
|
|
38563
|
+
}).transform((v2) => {
|
|
38564
|
+
return remap(v2, {
|
|
38565
|
+
rerankThreshold: "rerank_threshold",
|
|
38566
|
+
rerankModel: "rerank_model"
|
|
38567
|
+
});
|
|
38568
|
+
});
|
|
38569
|
+
((RerankConfig$) => {
|
|
38570
|
+
RerankConfig$.inboundSchema = RerankConfig$inboundSchema;
|
|
38571
|
+
RerankConfig$.outboundSchema = RerankConfig$outboundSchema;
|
|
38572
|
+
})(RerankConfig$ ||= {});
|
|
38573
|
+
AgenticRagConfig$inboundSchema = objectType({
|
|
38574
|
+
model: stringType()
|
|
38575
|
+
});
|
|
38576
|
+
AgenticRagConfig$outboundSchema = objectType({
|
|
38577
|
+
model: stringType()
|
|
38578
|
+
});
|
|
38579
|
+
((AgenticRagConfig$) => {
|
|
38580
|
+
AgenticRagConfig$.inboundSchema = AgenticRagConfig$inboundSchema;
|
|
38581
|
+
AgenticRagConfig$.outboundSchema = AgenticRagConfig$outboundSchema;
|
|
38582
|
+
})(AgenticRagConfig$ ||= {});
|
|
38583
|
+
RetrievalSettings$inboundSchema = objectType({
|
|
38584
|
+
retrieval_type: RetrievalType$inboundSchema.default("hybrid_search"),
|
|
38585
|
+
top_k: numberType().int().default(5),
|
|
38586
|
+
threshold: numberType().default(0),
|
|
38587
|
+
rerank_config: nullableType(lazyType(() => RerankConfig$inboundSchema)).optional(),
|
|
38588
|
+
agentic_rag_config: nullableType(lazyType(() => AgenticRagConfig$inboundSchema)).optional()
|
|
38589
|
+
}).transform((v2) => {
|
|
38590
|
+
return remap(v2, {
|
|
38591
|
+
retrieval_type: "retrievalType",
|
|
38592
|
+
top_k: "topK",
|
|
38593
|
+
rerank_config: "rerankConfig",
|
|
38594
|
+
agentic_rag_config: "agenticRagConfig"
|
|
38595
|
+
});
|
|
38596
|
+
});
|
|
38597
|
+
RetrievalSettings$outboundSchema = objectType({
|
|
38598
|
+
retrievalType: RetrievalType$outboundSchema.default("hybrid_search"),
|
|
38599
|
+
topK: numberType().int().default(5),
|
|
38600
|
+
threshold: numberType().default(0),
|
|
38601
|
+
rerankConfig: nullableType(lazyType(() => RerankConfig$outboundSchema)).optional(),
|
|
38602
|
+
agenticRagConfig: nullableType(lazyType(() => AgenticRagConfig$outboundSchema)).optional()
|
|
38603
|
+
}).transform((v2) => {
|
|
38604
|
+
return remap(v2, {
|
|
38605
|
+
retrievalType: "retrieval_type",
|
|
38606
|
+
topK: "top_k",
|
|
38607
|
+
rerankConfig: "rerank_config",
|
|
38608
|
+
agenticRagConfig: "agentic_rag_config"
|
|
38609
|
+
});
|
|
38610
|
+
});
|
|
38611
|
+
((RetrievalSettings$) => {
|
|
38612
|
+
RetrievalSettings$.inboundSchema = RetrievalSettings$inboundSchema;
|
|
38613
|
+
RetrievalSettings$.outboundSchema = RetrievalSettings$outboundSchema;
|
|
38614
|
+
})(RetrievalSettings$ ||= {});
|
|
38615
|
+
CreateKnowledgeRequestBody$inboundSchema = objectType({
|
|
38616
|
+
key: stringType(),
|
|
38617
|
+
description: stringType().optional(),
|
|
38618
|
+
embedding_model: stringType(),
|
|
38619
|
+
retrieval_settings: lazyType(() => RetrievalSettings$inboundSchema).optional(),
|
|
38620
|
+
path: stringType()
|
|
38621
|
+
}).transform((v2) => {
|
|
38622
|
+
return remap(v2, {
|
|
38623
|
+
embedding_model: "embeddingModel",
|
|
38624
|
+
retrieval_settings: "retrievalSettings"
|
|
38625
|
+
});
|
|
38626
|
+
});
|
|
38627
|
+
CreateKnowledgeRequestBody$outboundSchema = objectType({
|
|
38628
|
+
key: stringType(),
|
|
38629
|
+
description: stringType().optional(),
|
|
38630
|
+
embeddingModel: stringType(),
|
|
38631
|
+
retrievalSettings: lazyType(() => RetrievalSettings$outboundSchema).optional(),
|
|
38632
|
+
path: stringType()
|
|
38633
|
+
}).transform((v2) => {
|
|
38634
|
+
return remap(v2, {
|
|
38635
|
+
embeddingModel: "embedding_model",
|
|
38636
|
+
retrievalSettings: "retrieval_settings"
|
|
38637
|
+
});
|
|
38638
|
+
});
|
|
38639
|
+
((CreateKnowledgeRequestBody$) => {
|
|
38640
|
+
CreateKnowledgeRequestBody$.inboundSchema = CreateKnowledgeRequestBody$inboundSchema;
|
|
38641
|
+
CreateKnowledgeRequestBody$.outboundSchema = CreateKnowledgeRequestBody$outboundSchema;
|
|
38642
|
+
})(CreateKnowledgeRequestBody$ ||= {});
|
|
38643
|
+
CreateKnowledgeRetrievalType$inboundSchema = nativeEnumType(CreateKnowledgeRetrievalType);
|
|
38644
|
+
CreateKnowledgeRetrievalType$outboundSchema = CreateKnowledgeRetrievalType$inboundSchema;
|
|
38645
|
+
((CreateKnowledgeRetrievalType$) => {
|
|
38646
|
+
CreateKnowledgeRetrievalType$.inboundSchema = CreateKnowledgeRetrievalType$inboundSchema;
|
|
38647
|
+
CreateKnowledgeRetrievalType$.outboundSchema = CreateKnowledgeRetrievalType$outboundSchema;
|
|
38648
|
+
})(CreateKnowledgeRetrievalType$ ||= {});
|
|
38649
|
+
CreateKnowledgeRerankConfig$inboundSchema = objectType({
|
|
38650
|
+
rerank_threshold: numberType().default(0.5),
|
|
38651
|
+
rerank_model: stringType()
|
|
38652
|
+
}).transform((v2) => {
|
|
38653
|
+
return remap(v2, {
|
|
38654
|
+
rerank_threshold: "rerankThreshold",
|
|
38655
|
+
rerank_model: "rerankModel"
|
|
38656
|
+
});
|
|
38657
|
+
});
|
|
38658
|
+
CreateKnowledgeRerankConfig$outboundSchema = objectType({
|
|
38659
|
+
rerankThreshold: numberType().default(0.5),
|
|
38660
|
+
rerankModel: stringType()
|
|
38661
|
+
}).transform((v2) => {
|
|
38662
|
+
return remap(v2, {
|
|
38663
|
+
rerankThreshold: "rerank_threshold",
|
|
38664
|
+
rerankModel: "rerank_model"
|
|
38665
|
+
});
|
|
38666
|
+
});
|
|
38667
|
+
((CreateKnowledgeRerankConfig$) => {
|
|
38668
|
+
CreateKnowledgeRerankConfig$.inboundSchema = CreateKnowledgeRerankConfig$inboundSchema;
|
|
38669
|
+
CreateKnowledgeRerankConfig$.outboundSchema = CreateKnowledgeRerankConfig$outboundSchema;
|
|
38670
|
+
})(CreateKnowledgeRerankConfig$ ||= {});
|
|
38671
|
+
CreateKnowledgeAgenticRagConfig$inboundSchema = objectType({
|
|
38672
|
+
model: stringType()
|
|
38673
|
+
});
|
|
38674
|
+
CreateKnowledgeAgenticRagConfig$outboundSchema = objectType({
|
|
38675
|
+
model: stringType()
|
|
38676
|
+
});
|
|
38677
|
+
((CreateKnowledgeAgenticRagConfig$) => {
|
|
38678
|
+
CreateKnowledgeAgenticRagConfig$.inboundSchema = CreateKnowledgeAgenticRagConfig$inboundSchema;
|
|
38679
|
+
CreateKnowledgeAgenticRagConfig$.outboundSchema = CreateKnowledgeAgenticRagConfig$outboundSchema;
|
|
38680
|
+
})(CreateKnowledgeAgenticRagConfig$ ||= {});
|
|
38681
|
+
CreateKnowledgeRetrievalSettings$inboundSchema = objectType({
|
|
38682
|
+
retrieval_type: CreateKnowledgeRetrievalType$inboundSchema.default("hybrid_search"),
|
|
38683
|
+
top_k: numberType().int().default(5),
|
|
38684
|
+
threshold: numberType().default(0),
|
|
38685
|
+
rerank_config: nullableType(lazyType(() => CreateKnowledgeRerankConfig$inboundSchema)).optional(),
|
|
38686
|
+
agentic_rag_config: nullableType(lazyType(() => CreateKnowledgeAgenticRagConfig$inboundSchema)).optional()
|
|
38687
|
+
}).transform((v2) => {
|
|
38688
|
+
return remap(v2, {
|
|
38689
|
+
retrieval_type: "retrievalType",
|
|
38690
|
+
top_k: "topK",
|
|
38691
|
+
rerank_config: "rerankConfig",
|
|
38692
|
+
agentic_rag_config: "agenticRagConfig"
|
|
38693
|
+
});
|
|
38694
|
+
});
|
|
38695
|
+
CreateKnowledgeRetrievalSettings$outboundSchema = objectType({
|
|
38696
|
+
retrievalType: CreateKnowledgeRetrievalType$outboundSchema.default("hybrid_search"),
|
|
38697
|
+
topK: numberType().int().default(5),
|
|
38698
|
+
threshold: numberType().default(0),
|
|
38699
|
+
rerankConfig: nullableType(lazyType(() => CreateKnowledgeRerankConfig$outboundSchema)).optional(),
|
|
38700
|
+
agenticRagConfig: nullableType(lazyType(() => CreateKnowledgeAgenticRagConfig$outboundSchema)).optional()
|
|
38701
|
+
}).transform((v2) => {
|
|
38702
|
+
return remap(v2, {
|
|
38703
|
+
retrievalType: "retrieval_type",
|
|
38704
|
+
topK: "top_k",
|
|
38705
|
+
rerankConfig: "rerank_config",
|
|
38706
|
+
agenticRagConfig: "agentic_rag_config"
|
|
38707
|
+
});
|
|
38708
|
+
});
|
|
38709
|
+
((CreateKnowledgeRetrievalSettings$) => {
|
|
38710
|
+
CreateKnowledgeRetrievalSettings$.inboundSchema = CreateKnowledgeRetrievalSettings$inboundSchema;
|
|
38711
|
+
CreateKnowledgeRetrievalSettings$.outboundSchema = CreateKnowledgeRetrievalSettings$outboundSchema;
|
|
38712
|
+
})(CreateKnowledgeRetrievalSettings$ ||= {});
|
|
38713
|
+
CreateKnowledgeResponseBody$inboundSchema = objectType({
|
|
38714
|
+
_id: stringType(),
|
|
38715
|
+
created: stringType(),
|
|
38716
|
+
description: stringType().optional(),
|
|
38717
|
+
key: stringType(),
|
|
38718
|
+
model: stringType(),
|
|
38719
|
+
domain_id: stringType(),
|
|
38720
|
+
path: stringType().optional(),
|
|
38721
|
+
retrieval_settings: lazyType(() => CreateKnowledgeRetrievalSettings$inboundSchema).optional(),
|
|
38722
|
+
created_by_id: nullableType(stringType()).optional(),
|
|
38723
|
+
updated_by_id: nullableType(stringType()).optional(),
|
|
38724
|
+
updated: stringType()
|
|
38725
|
+
}).transform((v2) => {
|
|
38726
|
+
return remap(v2, {
|
|
38727
|
+
_id: "id",
|
|
38728
|
+
domain_id: "domainId",
|
|
38729
|
+
retrieval_settings: "retrievalSettings",
|
|
38730
|
+
created_by_id: "createdById",
|
|
38731
|
+
updated_by_id: "updatedById"
|
|
38732
|
+
});
|
|
38733
|
+
});
|
|
38734
|
+
CreateKnowledgeResponseBody$outboundSchema = objectType({
|
|
38735
|
+
id: stringType(),
|
|
38736
|
+
created: stringType(),
|
|
38737
|
+
description: stringType().optional(),
|
|
38738
|
+
key: stringType(),
|
|
38739
|
+
model: stringType(),
|
|
38740
|
+
domainId: stringType(),
|
|
38741
|
+
path: stringType().optional(),
|
|
38742
|
+
retrievalSettings: lazyType(() => CreateKnowledgeRetrievalSettings$outboundSchema).optional(),
|
|
38743
|
+
createdById: nullableType(stringType()).optional(),
|
|
38744
|
+
updatedById: nullableType(stringType()).optional(),
|
|
38745
|
+
updated: stringType()
|
|
38746
|
+
}).transform((v2) => {
|
|
38747
|
+
return remap(v2, {
|
|
38748
|
+
id: "_id",
|
|
38749
|
+
domainId: "domain_id",
|
|
38750
|
+
retrievalSettings: "retrieval_settings",
|
|
38751
|
+
createdById: "created_by_id",
|
|
38752
|
+
updatedById: "updated_by_id"
|
|
38753
|
+
});
|
|
38754
|
+
});
|
|
38755
|
+
((CreateKnowledgeResponseBody$) => {
|
|
38756
|
+
CreateKnowledgeResponseBody$.inboundSchema = CreateKnowledgeResponseBody$inboundSchema;
|
|
38757
|
+
CreateKnowledgeResponseBody$.outboundSchema = CreateKnowledgeResponseBody$outboundSchema;
|
|
38758
|
+
})(CreateKnowledgeResponseBody$ ||= {});
|
|
38759
|
+
});
|
|
38760
|
+
|
|
39194
38761
|
// src/models/operations/createprompt.ts
|
|
39195
38762
|
var ModelType, CreatePromptFormat, CreatePromptResponseFormatType, ResponseFormatType, PhotoRealVersion, EncodingFormat, ReasoningEffort, Provider, CreatePromptRole, CreatePrompt2PromptsRequestType, CreatePrompt2PromptsType, CreatePrompt2Type, CreatePromptType, UseCases, Language, CreatePromptPromptsType, CreatePromptModelType, CreatePromptPromptsFormat, CreatePromptResponseFormatPromptsResponseType, CreatePromptResponseFormatPromptsType, CreatePromptPhotoRealVersion, CreatePromptEncodingFormat, CreatePromptReasoningEffort, CreatePromptProvider, CreatePromptPromptsRole, CreatePrompt2PromptsResponse200ApplicationJSONType, CreatePrompt2PromptsResponse200Type, CreatePrompt2PromptsResponseType, CreatePromptPromptsResponseType, CreatePromptUseCases, CreatePromptLanguage, ModelType$inboundSchema, ModelType$outboundSchema, ModelType$, CreatePromptFormat$inboundSchema, CreatePromptFormat$outboundSchema, CreatePromptFormat$, 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$, CreatePrompt2PromptsRequestType$inboundSchema, CreatePrompt2PromptsRequestType$outboundSchema, CreatePrompt2PromptsRequestType$, CreatePrompt2File$inboundSchema, CreatePrompt2File$outboundSchema, CreatePrompt2File$, CreatePrompt23$inboundSchema, CreatePrompt23$outboundSchema, CreatePrompt23$, 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$, 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$, CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema, CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema, CreatePrompt2PromptsResponse200ApplicationJSONType$, CreatePrompt2PromptsFile$inboundSchema, CreatePrompt2PromptsFile$outboundSchema, CreatePrompt2PromptsFile$, CreatePrompt2Prompts3$inboundSchema, CreatePrompt2Prompts3$outboundSchema, CreatePrompt2Prompts3$, 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$;
|
|
39196
38763
|
var init_createprompt = __esm(() => {
|
|
@@ -48654,7 +48221,7 @@ var init_fileget = __esm(() => {
|
|
|
48654
48221
|
bytes: numberType(),
|
|
48655
48222
|
file_name: stringType(),
|
|
48656
48223
|
workspace_id: stringType(),
|
|
48657
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48224
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:14:37.432Z").transform((v2) => new Date(v2))
|
|
48658
48225
|
}).transform((v2) => {
|
|
48659
48226
|
return remap(v2, {
|
|
48660
48227
|
_id: "id",
|
|
@@ -48670,7 +48237,7 @@ var init_fileget = __esm(() => {
|
|
|
48670
48237
|
bytes: numberType(),
|
|
48671
48238
|
fileName: stringType(),
|
|
48672
48239
|
workspaceId: stringType(),
|
|
48673
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48240
|
+
created: dateType().default(() => new Date("2025-07-09T19:14:37.432Z")).transform((v2) => v2.toISOString())
|
|
48674
48241
|
}).transform((v2) => {
|
|
48675
48242
|
return remap(v2, {
|
|
48676
48243
|
id: "_id",
|
|
@@ -48741,7 +48308,7 @@ var init_filelist = __esm(() => {
|
|
|
48741
48308
|
bytes: numberType(),
|
|
48742
48309
|
file_name: stringType(),
|
|
48743
48310
|
workspace_id: stringType(),
|
|
48744
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48311
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:14:37.432Z").transform((v2) => new Date(v2))
|
|
48745
48312
|
}).transform((v2) => {
|
|
48746
48313
|
return remap(v2, {
|
|
48747
48314
|
_id: "id",
|
|
@@ -48757,7 +48324,7 @@ var init_filelist = __esm(() => {
|
|
|
48757
48324
|
bytes: numberType(),
|
|
48758
48325
|
fileName: stringType(),
|
|
48759
48326
|
workspaceId: stringType(),
|
|
48760
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48327
|
+
created: dateType().default(() => new Date("2025-07-09T19:14:37.432Z")).transform((v2) => v2.toISOString())
|
|
48761
48328
|
}).transform((v2) => {
|
|
48762
48329
|
return remap(v2, {
|
|
48763
48330
|
id: "_id",
|
|
@@ -48889,7 +48456,7 @@ var init_fileupload = __esm(() => {
|
|
|
48889
48456
|
bytes: numberType(),
|
|
48890
48457
|
file_name: stringType(),
|
|
48891
48458
|
workspace_id: stringType(),
|
|
48892
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48459
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:14:37.432Z").transform((v2) => new Date(v2))
|
|
48893
48460
|
}).transform((v2) => {
|
|
48894
48461
|
return remap(v2, {
|
|
48895
48462
|
_id: "id",
|
|
@@ -48905,7 +48472,7 @@ var init_fileupload = __esm(() => {
|
|
|
48905
48472
|
bytes: numberType(),
|
|
48906
48473
|
fileName: stringType(),
|
|
48907
48474
|
workspaceId: stringType(),
|
|
48908
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48475
|
+
created: dateType().default(() => new Date("2025-07-09T19:14:37.432Z")).transform((v2) => v2.toISOString())
|
|
48909
48476
|
}).transform((v2) => {
|
|
48910
48477
|
return remap(v2, {
|
|
48911
48478
|
id: "_id",
|
|
@@ -49910,8 +49477,8 @@ var init_getevals = __esm(() => {
|
|
|
49910
49477
|
Typescript$inboundSchema = objectType({
|
|
49911
49478
|
_id: stringType(),
|
|
49912
49479
|
description: stringType(),
|
|
49913
|
-
created: stringType().default("2025-07-
|
|
49914
|
-
updated: stringType().default("2025-07-
|
|
49480
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49481
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49915
49482
|
guardrail_config: unionType([
|
|
49916
49483
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
49917
49484
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -49928,8 +49495,8 @@ var init_getevals = __esm(() => {
|
|
|
49928
49495
|
Typescript$outboundSchema = objectType({
|
|
49929
49496
|
id: stringType(),
|
|
49930
49497
|
description: stringType(),
|
|
49931
|
-
created: stringType().default("2025-07-
|
|
49932
|
-
updated: stringType().default("2025-07-
|
|
49498
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49499
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49933
49500
|
guardrailConfig: unionType([
|
|
49934
49501
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
49935
49502
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -50022,8 +49589,8 @@ var init_getevals = __esm(() => {
|
|
|
50022
49589
|
Ragas$inboundSchema = objectType({
|
|
50023
49590
|
_id: stringType(),
|
|
50024
49591
|
description: stringType(),
|
|
50025
|
-
created: stringType().default("2025-07-
|
|
50026
|
-
updated: stringType().default("2025-07-
|
|
49592
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49593
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50027
49594
|
guardrail_config: unionType([
|
|
50028
49595
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
50029
49596
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -50042,8 +49609,8 @@ var init_getevals = __esm(() => {
|
|
|
50042
49609
|
Ragas$outboundSchema = objectType({
|
|
50043
49610
|
id: stringType(),
|
|
50044
49611
|
description: stringType(),
|
|
50045
|
-
created: stringType().default("2025-07-
|
|
50046
|
-
updated: stringType().default("2025-07-
|
|
49612
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
49613
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50047
49614
|
guardrailConfig: unionType([
|
|
50048
49615
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
50049
49616
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -50594,8 +50161,8 @@ var init_getevals = __esm(() => {
|
|
|
50594
50161
|
DataFunction$inboundSchema = objectType({
|
|
50595
50162
|
_id: stringType(),
|
|
50596
50163
|
description: stringType(),
|
|
50597
|
-
created: stringType().default("2025-07-
|
|
50598
|
-
updated: stringType().default("2025-07-
|
|
50164
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50165
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50599
50166
|
guardrail_config: unionType([
|
|
50600
50167
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
50601
50168
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -50638,8 +50205,8 @@ var init_getevals = __esm(() => {
|
|
|
50638
50205
|
DataFunction$outboundSchema = objectType({
|
|
50639
50206
|
id: stringType(),
|
|
50640
50207
|
description: stringType(),
|
|
50641
|
-
created: stringType().default("2025-07-
|
|
50642
|
-
updated: stringType().default("2025-07-
|
|
50208
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50209
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50643
50210
|
guardrailConfig: unionType([
|
|
50644
50211
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
50645
50212
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -50752,8 +50319,8 @@ var init_getevals = __esm(() => {
|
|
|
50752
50319
|
DataPython$inboundSchema = objectType({
|
|
50753
50320
|
_id: stringType(),
|
|
50754
50321
|
description: stringType(),
|
|
50755
|
-
created: stringType().default("2025-07-
|
|
50756
|
-
updated: stringType().default("2025-07-
|
|
50322
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50323
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50757
50324
|
guardrail_config: unionType([
|
|
50758
50325
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
50759
50326
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema)
|
|
@@ -50770,8 +50337,8 @@ var init_getevals = __esm(() => {
|
|
|
50770
50337
|
DataPython$outboundSchema = objectType({
|
|
50771
50338
|
id: stringType(),
|
|
50772
50339
|
description: stringType(),
|
|
50773
|
-
created: stringType().default("2025-07-
|
|
50774
|
-
updated: stringType().default("2025-07-
|
|
50340
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50341
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50775
50342
|
guardrailConfig: unionType([
|
|
50776
50343
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
50777
50344
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema)
|
|
@@ -50864,8 +50431,8 @@ var init_getevals = __esm(() => {
|
|
|
50864
50431
|
DataHTTP$inboundSchema = objectType({
|
|
50865
50432
|
_id: stringType(),
|
|
50866
50433
|
description: stringType(),
|
|
50867
|
-
created: stringType().default("2025-07-
|
|
50868
|
-
updated: stringType().default("2025-07-
|
|
50434
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50435
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50869
50436
|
guardrail_config: unionType([
|
|
50870
50437
|
lazyType(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
50871
50438
|
lazyType(() => GetEvalsGuardrailConfigBoolean$inboundSchema)
|
|
@@ -50885,8 +50452,8 @@ var init_getevals = __esm(() => {
|
|
|
50885
50452
|
DataHTTP$outboundSchema = objectType({
|
|
50886
50453
|
id: stringType(),
|
|
50887
50454
|
description: stringType(),
|
|
50888
|
-
created: stringType().default("2025-07-
|
|
50889
|
-
updated: stringType().default("2025-07-
|
|
50455
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50456
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50890
50457
|
guardrailConfig: unionType([
|
|
50891
50458
|
lazyType(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
50892
50459
|
lazyType(() => GetEvalsGuardrailConfigBoolean$outboundSchema)
|
|
@@ -50976,8 +50543,8 @@ var init_getevals = __esm(() => {
|
|
|
50976
50543
|
DataJSON$inboundSchema = objectType({
|
|
50977
50544
|
_id: stringType(),
|
|
50978
50545
|
description: stringType(),
|
|
50979
|
-
created: stringType().default("2025-07-
|
|
50980
|
-
updated: stringType().default("2025-07-
|
|
50546
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50547
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50981
50548
|
guardrail_config: unionType([
|
|
50982
50549
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
|
|
50983
50550
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema)
|
|
@@ -50994,8 +50561,8 @@ var init_getevals = __esm(() => {
|
|
|
50994
50561
|
DataJSON$outboundSchema = objectType({
|
|
50995
50562
|
id: stringType(),
|
|
50996
50563
|
description: stringType(),
|
|
50997
|
-
created: stringType().default("2025-07-
|
|
50998
|
-
updated: stringType().default("2025-07-
|
|
50564
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50565
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50999
50566
|
guardrailConfig: unionType([
|
|
51000
50567
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema),
|
|
51001
50568
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$outboundSchema)
|
|
@@ -51082,8 +50649,8 @@ var init_getevals = __esm(() => {
|
|
|
51082
50649
|
DataLLM$inboundSchema = objectType({
|
|
51083
50650
|
_id: stringType(),
|
|
51084
50651
|
description: stringType(),
|
|
51085
|
-
created: stringType().default("2025-07-
|
|
51086
|
-
updated: stringType().default("2025-07-
|
|
50652
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50653
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
51087
50654
|
guardrail_config: unionType([
|
|
51088
50655
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
51089
50656
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -51101,8 +50668,8 @@ var init_getevals = __esm(() => {
|
|
|
51101
50668
|
DataLLM$outboundSchema = objectType({
|
|
51102
50669
|
id: stringType(),
|
|
51103
50670
|
description: stringType(),
|
|
51104
|
-
created: stringType().default("2025-07-
|
|
51105
|
-
updated: stringType().default("2025-07-
|
|
50671
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
50672
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
51106
50673
|
guardrailConfig: unionType([
|
|
51107
50674
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
51108
50675
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -53499,7 +53066,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53499
53066
|
tags: arrayType(stringType()).optional(),
|
|
53500
53067
|
metadata: recordType(anyType()).optional(),
|
|
53501
53068
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
53502
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
53069
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2)),
|
|
53503
53070
|
metrics: lazyType(() => Metrics$inboundSchema)
|
|
53504
53071
|
}).transform((v2) => {
|
|
53505
53072
|
return remap(v2, {
|
|
@@ -53518,7 +53085,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53518
53085
|
tags: arrayType(stringType()).optional(),
|
|
53519
53086
|
metadata: recordType(anyType()).optional(),
|
|
53520
53087
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
53521
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
53088
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString()),
|
|
53522
53089
|
metrics: lazyType(() => Metrics$outboundSchema)
|
|
53523
53090
|
}).transform((v2) => {
|
|
53524
53091
|
return remap(v2, {
|
|
@@ -54133,7 +53700,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
54133
53700
|
created_by_id: stringType().optional(),
|
|
54134
53701
|
updated_by_id: stringType().optional(),
|
|
54135
53702
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
54136
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
53703
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
54137
53704
|
}).transform((v2) => {
|
|
54138
53705
|
return remap(v2, {
|
|
54139
53706
|
_id: "id",
|
|
@@ -54160,7 +53727,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
54160
53727
|
createdById: stringType().optional(),
|
|
54161
53728
|
updatedById: stringType().optional(),
|
|
54162
53729
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
54163
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
53730
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
54164
53731
|
}).transform((v2) => {
|
|
54165
53732
|
return remap(v2, {
|
|
54166
53733
|
id: "_id",
|
|
@@ -54268,7 +53835,7 @@ var init_listdatasets = __esm(() => {
|
|
|
54268
53835
|
updated_by_id: stringType().optional(),
|
|
54269
53836
|
metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
|
|
54270
53837
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
54271
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
53838
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
54272
53839
|
}).transform((v2) => {
|
|
54273
53840
|
return remap(v2, {
|
|
54274
53841
|
_id: "id",
|
|
@@ -54288,7 +53855,7 @@ var init_listdatasets = __esm(() => {
|
|
|
54288
53855
|
updatedById: stringType().optional(),
|
|
54289
53856
|
metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
|
|
54290
53857
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
54291
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
53858
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
54292
53859
|
}).transform((v2) => {
|
|
54293
53860
|
return remap(v2, {
|
|
54294
53861
|
id: "_id",
|
|
@@ -54393,7 +53960,7 @@ var init_listdatasources = __esm(() => {
|
|
|
54393
53960
|
ListDatasourcesStatus$.outboundSchema = ListDatasourcesStatus$outboundSchema;
|
|
54394
53961
|
})(ListDatasourcesStatus$ ||= {});
|
|
54395
53962
|
ListDatasourcesData$inboundSchema = objectType({
|
|
54396
|
-
_id: stringType().default("
|
|
53963
|
+
_id: stringType().default("01JZR9S4ZNW6VGH3XM6S10SVQ1"),
|
|
54397
53964
|
display_name: stringType(),
|
|
54398
53965
|
description: stringType().optional(),
|
|
54399
53966
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -54416,7 +53983,7 @@ var init_listdatasources = __esm(() => {
|
|
|
54416
53983
|
});
|
|
54417
53984
|
});
|
|
54418
53985
|
ListDatasourcesData$outboundSchema = objectType({
|
|
54419
|
-
id: stringType().default("
|
|
53986
|
+
id: stringType().default("01JZR9S4ZNW6VGH3XM6S10SVQ1"),
|
|
54420
53987
|
displayName: stringType(),
|
|
54421
53988
|
description: stringType().optional(),
|
|
54422
53989
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -55464,7 +55031,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55464
55031
|
tags: arrayType(stringType()).optional(),
|
|
55465
55032
|
metadata: recordType(anyType()).optional(),
|
|
55466
55033
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55467
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55034
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
55468
55035
|
}).transform((v2) => {
|
|
55469
55036
|
return remap(v2, {
|
|
55470
55037
|
_id: "id",
|
|
@@ -55482,7 +55049,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55482
55049
|
tags: arrayType(stringType()).optional(),
|
|
55483
55050
|
metadata: recordType(anyType()).optional(),
|
|
55484
55051
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55485
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55052
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
55486
55053
|
}).transform((v2) => {
|
|
55487
55054
|
return remap(v2, {
|
|
55488
55055
|
id: "_id",
|
|
@@ -56059,7 +55626,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
56059
55626
|
created_by_id: stringType().optional(),
|
|
56060
55627
|
updated_by_id: stringType().optional(),
|
|
56061
55628
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56062
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55629
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
56063
55630
|
}).transform((v2) => {
|
|
56064
55631
|
return remap(v2, {
|
|
56065
55632
|
_id: "id",
|
|
@@ -56086,7 +55653,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
56086
55653
|
createdById: stringType().optional(),
|
|
56087
55654
|
updatedById: stringType().optional(),
|
|
56088
55655
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56089
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55656
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
56090
55657
|
}).transform((v2) => {
|
|
56091
55658
|
return remap(v2, {
|
|
56092
55659
|
id: "_id",
|
|
@@ -56157,7 +55724,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
56157
55724
|
updated_by_id: stringType().optional(),
|
|
56158
55725
|
metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
|
|
56159
55726
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56160
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55727
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
56161
55728
|
}).transform((v2) => {
|
|
56162
55729
|
return remap(v2, {
|
|
56163
55730
|
_id: "id",
|
|
@@ -56177,7 +55744,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
56177
55744
|
updatedById: stringType().optional(),
|
|
56178
55745
|
metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
|
|
56179
55746
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56180
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55747
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
56181
55748
|
}).transform((v2) => {
|
|
56182
55749
|
return remap(v2, {
|
|
56183
55750
|
id: "_id",
|
|
@@ -56235,7 +55802,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
56235
55802
|
RetrieveDatasourceStatus$.outboundSchema = RetrieveDatasourceStatus$outboundSchema;
|
|
56236
55803
|
})(RetrieveDatasourceStatus$ ||= {});
|
|
56237
55804
|
RetrieveDatasourceResponseBody$inboundSchema = objectType({
|
|
56238
|
-
_id: stringType().default("
|
|
55805
|
+
_id: stringType().default("01JZR9S4ZPNFA48VJ7A8H87432"),
|
|
56239
55806
|
display_name: stringType(),
|
|
56240
55807
|
description: stringType().optional(),
|
|
56241
55808
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -56258,7 +55825,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
56258
55825
|
});
|
|
56259
55826
|
});
|
|
56260
55827
|
RetrieveDatasourceResponseBody$outboundSchema = objectType({
|
|
56261
|
-
id: stringType().default("
|
|
55828
|
+
id: stringType().default("01JZR9S4ZPNFA48VJ7A8H87432"),
|
|
56262
55829
|
displayName: stringType(),
|
|
56263
55830
|
description: stringType().optional(),
|
|
56264
55831
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -57139,7 +56706,7 @@ var init_updatecontact = __esm(() => {
|
|
|
57139
56706
|
tags: arrayType(stringType()).optional(),
|
|
57140
56707
|
metadata: recordType(anyType()).optional(),
|
|
57141
56708
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57142
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
56709
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
57143
56710
|
}).transform((v2) => {
|
|
57144
56711
|
return remap(v2, {
|
|
57145
56712
|
_id: "id",
|
|
@@ -57157,7 +56724,7 @@ var init_updatecontact = __esm(() => {
|
|
|
57157
56724
|
tags: arrayType(stringType()).optional(),
|
|
57158
56725
|
metadata: recordType(anyType()).optional(),
|
|
57159
56726
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57160
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
56727
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
57161
56728
|
}).transform((v2) => {
|
|
57162
56729
|
return remap(v2, {
|
|
57163
56730
|
id: "_id",
|
|
@@ -58291,7 +57858,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
58291
57858
|
created_by_id: stringType().optional(),
|
|
58292
57859
|
updated_by_id: stringType().optional(),
|
|
58293
57860
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58294
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
57861
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
58295
57862
|
}).transform((v2) => {
|
|
58296
57863
|
return remap(v2, {
|
|
58297
57864
|
_id: "id",
|
|
@@ -58318,7 +57885,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
58318
57885
|
createdById: stringType().optional(),
|
|
58319
57886
|
updatedById: stringType().optional(),
|
|
58320
57887
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58321
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
57888
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
58322
57889
|
}).transform((v2) => {
|
|
58323
57890
|
return remap(v2, {
|
|
58324
57891
|
id: "_id",
|
|
@@ -58419,7 +57986,7 @@ var init_updatedataset = __esm(() => {
|
|
|
58419
57986
|
parent_id: stringType().optional(),
|
|
58420
57987
|
version: stringType().optional(),
|
|
58421
57988
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58422
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
57989
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:14:34.200Z").transform((v2) => new Date(v2))
|
|
58423
57990
|
}).transform((v2) => {
|
|
58424
57991
|
return remap(v2, {
|
|
58425
57992
|
_id: "id",
|
|
@@ -58442,7 +58009,7 @@ var init_updatedataset = __esm(() => {
|
|
|
58442
58009
|
parentId: stringType().optional(),
|
|
58443
58010
|
version: stringType().optional(),
|
|
58444
58011
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58445
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
58012
|
+
updated: dateType().default(() => new Date("2025-07-09T19:14:34.200Z")).transform((v2) => v2.toISOString())
|
|
58446
58013
|
}).transform((v2) => {
|
|
58447
58014
|
return remap(v2, {
|
|
58448
58015
|
id: "_id",
|
|
@@ -58523,7 +58090,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58523
58090
|
UpdateDatasourceStatus$.outboundSchema = UpdateDatasourceStatus$outboundSchema;
|
|
58524
58091
|
})(UpdateDatasourceStatus$ ||= {});
|
|
58525
58092
|
UpdateDatasourceResponseBody$inboundSchema = objectType({
|
|
58526
|
-
_id: stringType().default("
|
|
58093
|
+
_id: stringType().default("01JZR9S4ZQ9R9PDN34898FBAHC"),
|
|
58527
58094
|
display_name: stringType(),
|
|
58528
58095
|
description: stringType().optional(),
|
|
58529
58096
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -58546,7 +58113,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58546
58113
|
});
|
|
58547
58114
|
});
|
|
58548
58115
|
UpdateDatasourceResponseBody$outboundSchema = objectType({
|
|
58549
|
-
id: stringType().default("
|
|
58116
|
+
id: stringType().default("01JZR9S4ZQ9R9PDN34898FBAHC"),
|
|
58550
58117
|
displayName: stringType(),
|
|
58551
58118
|
description: stringType().optional(),
|
|
58552
58119
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -59252,8 +58819,8 @@ var init_updateeval = __esm(() => {
|
|
|
59252
58819
|
UpdateEvalResponseBodyPython$inboundSchema = objectType({
|
|
59253
58820
|
_id: stringType(),
|
|
59254
58821
|
description: stringType(),
|
|
59255
|
-
created: stringType().default("2025-07-
|
|
59256
|
-
updated: stringType().default("2025-07-
|
|
58822
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
58823
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59257
58824
|
guardrail_config: unionType([
|
|
59258
58825
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
59259
58826
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -59270,8 +58837,8 @@ var init_updateeval = __esm(() => {
|
|
|
59270
58837
|
UpdateEvalResponseBodyPython$outboundSchema = objectType({
|
|
59271
58838
|
id: stringType(),
|
|
59272
58839
|
description: stringType(),
|
|
59273
|
-
created: stringType().default("2025-07-
|
|
59274
|
-
updated: stringType().default("2025-07-
|
|
58840
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
58841
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59275
58842
|
guardrailConfig: unionType([
|
|
59276
58843
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
59277
58844
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -59364,8 +58931,8 @@ var init_updateeval = __esm(() => {
|
|
|
59364
58931
|
UpdateEvalResponseBodyHTTP$inboundSchema = objectType({
|
|
59365
58932
|
_id: stringType(),
|
|
59366
58933
|
description: stringType(),
|
|
59367
|
-
created: stringType().default("2025-07-
|
|
59368
|
-
updated: stringType().default("2025-07-
|
|
58934
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
58935
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59369
58936
|
guardrail_config: unionType([
|
|
59370
58937
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
59371
58938
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -59385,8 +58952,8 @@ var init_updateeval = __esm(() => {
|
|
|
59385
58952
|
UpdateEvalResponseBodyHTTP$outboundSchema = objectType({
|
|
59386
58953
|
id: stringType(),
|
|
59387
58954
|
description: stringType(),
|
|
59388
|
-
created: stringType().default("2025-07-
|
|
59389
|
-
updated: stringType().default("2025-07-
|
|
58955
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
58956
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59390
58957
|
guardrailConfig: unionType([
|
|
59391
58958
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
59392
58959
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -59476,8 +59043,8 @@ var init_updateeval = __esm(() => {
|
|
|
59476
59043
|
UpdateEvalResponseBodyJSON$inboundSchema = objectType({
|
|
59477
59044
|
_id: stringType(),
|
|
59478
59045
|
description: stringType(),
|
|
59479
|
-
created: stringType().default("2025-07-
|
|
59480
|
-
updated: stringType().default("2025-07-
|
|
59046
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59047
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59481
59048
|
guardrail_config: unionType([
|
|
59482
59049
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
59483
59050
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -59494,8 +59061,8 @@ var init_updateeval = __esm(() => {
|
|
|
59494
59061
|
UpdateEvalResponseBodyJSON$outboundSchema = objectType({
|
|
59495
59062
|
id: stringType(),
|
|
59496
59063
|
description: stringType(),
|
|
59497
|
-
created: stringType().default("2025-07-
|
|
59498
|
-
updated: stringType().default("2025-07-
|
|
59064
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59065
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59499
59066
|
guardrailConfig: unionType([
|
|
59500
59067
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
59501
59068
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -59582,8 +59149,8 @@ var init_updateeval = __esm(() => {
|
|
|
59582
59149
|
UpdateEvalResponseBodyLLM$inboundSchema = objectType({
|
|
59583
59150
|
_id: stringType(),
|
|
59584
59151
|
description: stringType(),
|
|
59585
|
-
created: stringType().default("2025-07-
|
|
59586
|
-
updated: stringType().default("2025-07-
|
|
59152
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59153
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59587
59154
|
guardrail_config: unionType([
|
|
59588
59155
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
59589
59156
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -59601,8 +59168,8 @@ var init_updateeval = __esm(() => {
|
|
|
59601
59168
|
UpdateEvalResponseBodyLLM$outboundSchema = objectType({
|
|
59602
59169
|
id: stringType(),
|
|
59603
59170
|
description: stringType(),
|
|
59604
|
-
created: stringType().default("2025-07-
|
|
59605
|
-
updated: stringType().default("2025-07-
|
|
59171
|
+
created: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59172
|
+
updated: stringType().default("2025-07-09T19:14:36.589Z"),
|
|
59606
59173
|
guardrailConfig: unionType([
|
|
59607
59174
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
59608
59175
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -59640,27 +59207,27 @@ var init_updateeval = __esm(() => {
|
|
|
59640
59207
|
});
|
|
59641
59208
|
|
|
59642
59209
|
// src/models/operations/updateknowledge.ts
|
|
59643
|
-
var
|
|
59210
|
+
var UpdateKnowledgeRetrievalType, UpdateKnowledgeKnowledgeRetrievalType, UpdateKnowledgeRetrievalType$inboundSchema, UpdateKnowledgeRetrievalType$outboundSchema, UpdateKnowledgeRetrievalType$, UpdateKnowledgeRerankConfig$inboundSchema, UpdateKnowledgeRerankConfig$outboundSchema, UpdateKnowledgeRerankConfig$, UpdateKnowledgeAgenticRagConfig$inboundSchema, UpdateKnowledgeAgenticRagConfig$outboundSchema, UpdateKnowledgeAgenticRagConfig$, UpdateKnowledgeRetrievalSettings$inboundSchema, UpdateKnowledgeRetrievalSettings$outboundSchema, UpdateKnowledgeRetrievalSettings$, UpdateKnowledgeRequestBody$inboundSchema, UpdateKnowledgeRequestBody$outboundSchema, UpdateKnowledgeRequestBody$, UpdateKnowledgeRequest$inboundSchema, UpdateKnowledgeRequest$outboundSchema, UpdateKnowledgeRequest$, UpdateKnowledgeKnowledgeRetrievalType$inboundSchema, UpdateKnowledgeKnowledgeRetrievalType$outboundSchema, UpdateKnowledgeKnowledgeRetrievalType$, UpdateKnowledgeKnowledgeRerankConfig$inboundSchema, UpdateKnowledgeKnowledgeRerankConfig$outboundSchema, UpdateKnowledgeKnowledgeRerankConfig$, UpdateKnowledgeKnowledgeAgenticRagConfig$inboundSchema, UpdateKnowledgeKnowledgeAgenticRagConfig$outboundSchema, UpdateKnowledgeKnowledgeAgenticRagConfig$, UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema, UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema, UpdateKnowledgeKnowledgeRetrievalSettings$, UpdateKnowledgeResponseBody$inboundSchema, UpdateKnowledgeResponseBody$outboundSchema, UpdateKnowledgeResponseBody$;
|
|
59644
59211
|
var init_updateknowledge = __esm(() => {
|
|
59645
59212
|
init_esm();
|
|
59646
59213
|
init_primitives();
|
|
59647
|
-
|
|
59214
|
+
UpdateKnowledgeRetrievalType = {
|
|
59648
59215
|
VectorSearch: "vector_search",
|
|
59649
59216
|
KeywordSearch: "keyword_search",
|
|
59650
59217
|
HybridSearch: "hybrid_search"
|
|
59651
59218
|
};
|
|
59652
|
-
|
|
59219
|
+
UpdateKnowledgeKnowledgeRetrievalType = {
|
|
59653
59220
|
VectorSearch: "vector_search",
|
|
59654
59221
|
KeywordSearch: "keyword_search",
|
|
59655
59222
|
HybridSearch: "hybrid_search"
|
|
59656
59223
|
};
|
|
59657
|
-
|
|
59658
|
-
|
|
59659
|
-
((
|
|
59660
|
-
|
|
59661
|
-
|
|
59662
|
-
})(
|
|
59663
|
-
|
|
59224
|
+
UpdateKnowledgeRetrievalType$inboundSchema = nativeEnumType(UpdateKnowledgeRetrievalType);
|
|
59225
|
+
UpdateKnowledgeRetrievalType$outboundSchema = UpdateKnowledgeRetrievalType$inboundSchema;
|
|
59226
|
+
((UpdateKnowledgeRetrievalType$) => {
|
|
59227
|
+
UpdateKnowledgeRetrievalType$.inboundSchema = UpdateKnowledgeRetrievalType$inboundSchema;
|
|
59228
|
+
UpdateKnowledgeRetrievalType$.outboundSchema = UpdateKnowledgeRetrievalType$outboundSchema;
|
|
59229
|
+
})(UpdateKnowledgeRetrievalType$ ||= {});
|
|
59230
|
+
UpdateKnowledgeRerankConfig$inboundSchema = objectType({
|
|
59664
59231
|
rerank_threshold: numberType().default(0.5),
|
|
59665
59232
|
rerank_model: stringType()
|
|
59666
59233
|
}).transform((v2) => {
|
|
@@ -59669,7 +59236,7 @@ var init_updateknowledge = __esm(() => {
|
|
|
59669
59236
|
rerank_model: "rerankModel"
|
|
59670
59237
|
});
|
|
59671
59238
|
});
|
|
59672
|
-
|
|
59239
|
+
UpdateKnowledgeRerankConfig$outboundSchema = objectType({
|
|
59673
59240
|
rerankThreshold: numberType().default(0.5),
|
|
59674
59241
|
rerankModel: stringType()
|
|
59675
59242
|
}).transform((v2) => {
|
|
@@ -59678,26 +59245,26 @@ var init_updateknowledge = __esm(() => {
|
|
|
59678
59245
|
rerankModel: "rerank_model"
|
|
59679
59246
|
});
|
|
59680
59247
|
});
|
|
59681
|
-
((
|
|
59682
|
-
|
|
59683
|
-
|
|
59684
|
-
})(
|
|
59685
|
-
|
|
59248
|
+
((UpdateKnowledgeRerankConfig$) => {
|
|
59249
|
+
UpdateKnowledgeRerankConfig$.inboundSchema = UpdateKnowledgeRerankConfig$inboundSchema;
|
|
59250
|
+
UpdateKnowledgeRerankConfig$.outboundSchema = UpdateKnowledgeRerankConfig$outboundSchema;
|
|
59251
|
+
})(UpdateKnowledgeRerankConfig$ ||= {});
|
|
59252
|
+
UpdateKnowledgeAgenticRagConfig$inboundSchema = objectType({
|
|
59686
59253
|
model: stringType()
|
|
59687
59254
|
});
|
|
59688
|
-
|
|
59255
|
+
UpdateKnowledgeAgenticRagConfig$outboundSchema = objectType({
|
|
59689
59256
|
model: stringType()
|
|
59690
59257
|
});
|
|
59691
|
-
((
|
|
59692
|
-
|
|
59693
|
-
|
|
59694
|
-
})(
|
|
59695
|
-
|
|
59696
|
-
retrieval_type:
|
|
59258
|
+
((UpdateKnowledgeAgenticRagConfig$) => {
|
|
59259
|
+
UpdateKnowledgeAgenticRagConfig$.inboundSchema = UpdateKnowledgeAgenticRagConfig$inboundSchema;
|
|
59260
|
+
UpdateKnowledgeAgenticRagConfig$.outboundSchema = UpdateKnowledgeAgenticRagConfig$outboundSchema;
|
|
59261
|
+
})(UpdateKnowledgeAgenticRagConfig$ ||= {});
|
|
59262
|
+
UpdateKnowledgeRetrievalSettings$inboundSchema = objectType({
|
|
59263
|
+
retrieval_type: UpdateKnowledgeRetrievalType$inboundSchema.default("hybrid_search"),
|
|
59697
59264
|
top_k: numberType().int().default(5),
|
|
59698
59265
|
threshold: numberType().default(0),
|
|
59699
|
-
rerank_config: nullableType(lazyType(() =>
|
|
59700
|
-
agentic_rag_config: nullableType(lazyType(() =>
|
|
59266
|
+
rerank_config: nullableType(lazyType(() => UpdateKnowledgeRerankConfig$inboundSchema)).optional(),
|
|
59267
|
+
agentic_rag_config: nullableType(lazyType(() => UpdateKnowledgeAgenticRagConfig$inboundSchema)).optional()
|
|
59701
59268
|
}).transform((v2) => {
|
|
59702
59269
|
return remap(v2, {
|
|
59703
59270
|
retrieval_type: "retrievalType",
|
|
@@ -59706,12 +59273,12 @@ var init_updateknowledge = __esm(() => {
|
|
|
59706
59273
|
agentic_rag_config: "agenticRagConfig"
|
|
59707
59274
|
});
|
|
59708
59275
|
});
|
|
59709
|
-
|
|
59710
|
-
retrievalType:
|
|
59276
|
+
UpdateKnowledgeRetrievalSettings$outboundSchema = objectType({
|
|
59277
|
+
retrievalType: UpdateKnowledgeRetrievalType$outboundSchema.default("hybrid_search"),
|
|
59711
59278
|
topK: numberType().int().default(5),
|
|
59712
59279
|
threshold: numberType().default(0),
|
|
59713
|
-
rerankConfig: nullableType(lazyType(() =>
|
|
59714
|
-
agenticRagConfig: nullableType(lazyType(() =>
|
|
59280
|
+
rerankConfig: nullableType(lazyType(() => UpdateKnowledgeRerankConfig$outboundSchema)).optional(),
|
|
59281
|
+
agenticRagConfig: nullableType(lazyType(() => UpdateKnowledgeAgenticRagConfig$outboundSchema)).optional()
|
|
59715
59282
|
}).transform((v2) => {
|
|
59716
59283
|
return remap(v2, {
|
|
59717
59284
|
retrievalType: "retrieval_type",
|
|
@@ -59720,15 +59287,15 @@ var init_updateknowledge = __esm(() => {
|
|
|
59720
59287
|
agenticRagConfig: "agentic_rag_config"
|
|
59721
59288
|
});
|
|
59722
59289
|
});
|
|
59723
|
-
((
|
|
59724
|
-
|
|
59725
|
-
|
|
59726
|
-
})(
|
|
59290
|
+
((UpdateKnowledgeRetrievalSettings$) => {
|
|
59291
|
+
UpdateKnowledgeRetrievalSettings$.inboundSchema = UpdateKnowledgeRetrievalSettings$inboundSchema;
|
|
59292
|
+
UpdateKnowledgeRetrievalSettings$.outboundSchema = UpdateKnowledgeRetrievalSettings$outboundSchema;
|
|
59293
|
+
})(UpdateKnowledgeRetrievalSettings$ ||= {});
|
|
59727
59294
|
UpdateKnowledgeRequestBody$inboundSchema = objectType({
|
|
59728
59295
|
description: nullableType(stringType()).optional(),
|
|
59729
59296
|
embedding_model: stringType().optional(),
|
|
59730
59297
|
path: stringType().optional(),
|
|
59731
|
-
retrieval_settings: lazyType(() =>
|
|
59298
|
+
retrieval_settings: lazyType(() => UpdateKnowledgeRetrievalSettings$inboundSchema).optional()
|
|
59732
59299
|
}).transform((v2) => {
|
|
59733
59300
|
return remap(v2, {
|
|
59734
59301
|
embedding_model: "embeddingModel",
|
|
@@ -59739,7 +59306,7 @@ var init_updateknowledge = __esm(() => {
|
|
|
59739
59306
|
description: nullableType(stringType()).optional(),
|
|
59740
59307
|
embeddingModel: stringType().optional(),
|
|
59741
59308
|
path: stringType().optional(),
|
|
59742
|
-
retrievalSettings: lazyType(() =>
|
|
59309
|
+
retrievalSettings: lazyType(() => UpdateKnowledgeRetrievalSettings$outboundSchema).optional()
|
|
59743
59310
|
}).transform((v2) => {
|
|
59744
59311
|
return remap(v2, {
|
|
59745
59312
|
embeddingModel: "embedding_model",
|
|
@@ -59772,13 +59339,13 @@ var init_updateknowledge = __esm(() => {
|
|
|
59772
59339
|
UpdateKnowledgeRequest$.inboundSchema = UpdateKnowledgeRequest$inboundSchema;
|
|
59773
59340
|
UpdateKnowledgeRequest$.outboundSchema = UpdateKnowledgeRequest$outboundSchema;
|
|
59774
59341
|
})(UpdateKnowledgeRequest$ ||= {});
|
|
59775
|
-
|
|
59776
|
-
|
|
59777
|
-
((
|
|
59778
|
-
|
|
59779
|
-
|
|
59780
|
-
})(
|
|
59781
|
-
|
|
59342
|
+
UpdateKnowledgeKnowledgeRetrievalType$inboundSchema = nativeEnumType(UpdateKnowledgeKnowledgeRetrievalType);
|
|
59343
|
+
UpdateKnowledgeKnowledgeRetrievalType$outboundSchema = UpdateKnowledgeKnowledgeRetrievalType$inboundSchema;
|
|
59344
|
+
((UpdateKnowledgeKnowledgeRetrievalType$) => {
|
|
59345
|
+
UpdateKnowledgeKnowledgeRetrievalType$.inboundSchema = UpdateKnowledgeKnowledgeRetrievalType$inboundSchema;
|
|
59346
|
+
UpdateKnowledgeKnowledgeRetrievalType$.outboundSchema = UpdateKnowledgeKnowledgeRetrievalType$outboundSchema;
|
|
59347
|
+
})(UpdateKnowledgeKnowledgeRetrievalType$ ||= {});
|
|
59348
|
+
UpdateKnowledgeKnowledgeRerankConfig$inboundSchema = objectType({
|
|
59782
59349
|
rerank_threshold: numberType().default(0.5),
|
|
59783
59350
|
rerank_model: stringType()
|
|
59784
59351
|
}).transform((v2) => {
|
|
@@ -59787,7 +59354,7 @@ var init_updateknowledge = __esm(() => {
|
|
|
59787
59354
|
rerank_model: "rerankModel"
|
|
59788
59355
|
});
|
|
59789
59356
|
});
|
|
59790
|
-
|
|
59357
|
+
UpdateKnowledgeKnowledgeRerankConfig$outboundSchema = objectType({
|
|
59791
59358
|
rerankThreshold: numberType().default(0.5),
|
|
59792
59359
|
rerankModel: stringType()
|
|
59793
59360
|
}).transform((v2) => {
|
|
@@ -59796,26 +59363,26 @@ var init_updateknowledge = __esm(() => {
|
|
|
59796
59363
|
rerankModel: "rerank_model"
|
|
59797
59364
|
});
|
|
59798
59365
|
});
|
|
59799
|
-
((
|
|
59800
|
-
|
|
59801
|
-
|
|
59802
|
-
})(
|
|
59803
|
-
|
|
59366
|
+
((UpdateKnowledgeKnowledgeRerankConfig$) => {
|
|
59367
|
+
UpdateKnowledgeKnowledgeRerankConfig$.inboundSchema = UpdateKnowledgeKnowledgeRerankConfig$inboundSchema;
|
|
59368
|
+
UpdateKnowledgeKnowledgeRerankConfig$.outboundSchema = UpdateKnowledgeKnowledgeRerankConfig$outboundSchema;
|
|
59369
|
+
})(UpdateKnowledgeKnowledgeRerankConfig$ ||= {});
|
|
59370
|
+
UpdateKnowledgeKnowledgeAgenticRagConfig$inboundSchema = objectType({
|
|
59804
59371
|
model: stringType()
|
|
59805
59372
|
});
|
|
59806
|
-
|
|
59373
|
+
UpdateKnowledgeKnowledgeAgenticRagConfig$outboundSchema = objectType({
|
|
59807
59374
|
model: stringType()
|
|
59808
59375
|
});
|
|
59809
|
-
((
|
|
59810
|
-
|
|
59811
|
-
|
|
59812
|
-
})(
|
|
59813
|
-
|
|
59814
|
-
retrieval_type:
|
|
59376
|
+
((UpdateKnowledgeKnowledgeAgenticRagConfig$) => {
|
|
59377
|
+
UpdateKnowledgeKnowledgeAgenticRagConfig$.inboundSchema = UpdateKnowledgeKnowledgeAgenticRagConfig$inboundSchema;
|
|
59378
|
+
UpdateKnowledgeKnowledgeAgenticRagConfig$.outboundSchema = UpdateKnowledgeKnowledgeAgenticRagConfig$outboundSchema;
|
|
59379
|
+
})(UpdateKnowledgeKnowledgeAgenticRagConfig$ ||= {});
|
|
59380
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema = objectType({
|
|
59381
|
+
retrieval_type: UpdateKnowledgeKnowledgeRetrievalType$inboundSchema.default("hybrid_search"),
|
|
59815
59382
|
top_k: numberType().int().default(5),
|
|
59816
59383
|
threshold: numberType().default(0),
|
|
59817
|
-
rerank_config: nullableType(lazyType(() =>
|
|
59818
|
-
agentic_rag_config: nullableType(lazyType(() =>
|
|
59384
|
+
rerank_config: nullableType(lazyType(() => UpdateKnowledgeKnowledgeRerankConfig$inboundSchema)).optional(),
|
|
59385
|
+
agentic_rag_config: nullableType(lazyType(() => UpdateKnowledgeKnowledgeAgenticRagConfig$inboundSchema)).optional()
|
|
59819
59386
|
}).transform((v2) => {
|
|
59820
59387
|
return remap(v2, {
|
|
59821
59388
|
retrieval_type: "retrievalType",
|
|
@@ -59824,12 +59391,12 @@ var init_updateknowledge = __esm(() => {
|
|
|
59824
59391
|
agentic_rag_config: "agenticRagConfig"
|
|
59825
59392
|
});
|
|
59826
59393
|
});
|
|
59827
|
-
|
|
59828
|
-
retrievalType:
|
|
59394
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema = objectType({
|
|
59395
|
+
retrievalType: UpdateKnowledgeKnowledgeRetrievalType$outboundSchema.default("hybrid_search"),
|
|
59829
59396
|
topK: numberType().int().default(5),
|
|
59830
59397
|
threshold: numberType().default(0),
|
|
59831
|
-
rerankConfig: nullableType(lazyType(() =>
|
|
59832
|
-
agenticRagConfig: nullableType(lazyType(() =>
|
|
59398
|
+
rerankConfig: nullableType(lazyType(() => UpdateKnowledgeKnowledgeRerankConfig$outboundSchema)).optional(),
|
|
59399
|
+
agenticRagConfig: nullableType(lazyType(() => UpdateKnowledgeKnowledgeAgenticRagConfig$outboundSchema)).optional()
|
|
59833
59400
|
}).transform((v2) => {
|
|
59834
59401
|
return remap(v2, {
|
|
59835
59402
|
retrievalType: "retrieval_type",
|
|
@@ -59838,10 +59405,10 @@ var init_updateknowledge = __esm(() => {
|
|
|
59838
59405
|
agenticRagConfig: "agentic_rag_config"
|
|
59839
59406
|
});
|
|
59840
59407
|
});
|
|
59841
|
-
((
|
|
59842
|
-
|
|
59843
|
-
|
|
59844
|
-
})(
|
|
59408
|
+
((UpdateKnowledgeKnowledgeRetrievalSettings$) => {
|
|
59409
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$.inboundSchema = UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema;
|
|
59410
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$.outboundSchema = UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema;
|
|
59411
|
+
})(UpdateKnowledgeKnowledgeRetrievalSettings$ ||= {});
|
|
59845
59412
|
UpdateKnowledgeResponseBody$inboundSchema = objectType({
|
|
59846
59413
|
_id: stringType(),
|
|
59847
59414
|
created: stringType(),
|
|
@@ -59850,7 +59417,7 @@ var init_updateknowledge = __esm(() => {
|
|
|
59850
59417
|
model: stringType(),
|
|
59851
59418
|
domain_id: stringType(),
|
|
59852
59419
|
path: stringType().optional(),
|
|
59853
|
-
retrieval_settings: lazyType(() =>
|
|
59420
|
+
retrieval_settings: lazyType(() => UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema).optional(),
|
|
59854
59421
|
created_by_id: nullableType(stringType()).optional(),
|
|
59855
59422
|
updated_by_id: nullableType(stringType()).optional(),
|
|
59856
59423
|
updated: stringType()
|
|
@@ -59871,7 +59438,7 @@ var init_updateknowledge = __esm(() => {
|
|
|
59871
59438
|
model: stringType(),
|
|
59872
59439
|
domainId: stringType(),
|
|
59873
59440
|
path: stringType().optional(),
|
|
59874
|
-
retrievalSettings: lazyType(() =>
|
|
59441
|
+
retrievalSettings: lazyType(() => UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema).optional(),
|
|
59875
59442
|
createdById: nullableType(stringType()).optional(),
|
|
59876
59443
|
updatedById: nullableType(stringType()).optional(),
|
|
59877
59444
|
updated: stringType()
|
|
@@ -61107,7 +60674,6 @@ var init_updateprompt = __esm(() => {
|
|
|
61107
60674
|
|
|
61108
60675
|
// src/models/operations/index.ts
|
|
61109
60676
|
var init_operations = __esm(() => {
|
|
61110
|
-
init_chunktext();
|
|
61111
60677
|
init_cleardataset();
|
|
61112
60678
|
init_createchunk();
|
|
61113
60679
|
init_createcontact();
|
|
@@ -61116,6 +60682,7 @@ var init_operations = __esm(() => {
|
|
|
61116
60682
|
init_createdatasource();
|
|
61117
60683
|
init_createeval();
|
|
61118
60684
|
init_createfeedback();
|
|
60685
|
+
init_createknowledge();
|
|
61119
60686
|
init_createprompt();
|
|
61120
60687
|
init_deletechunk();
|
|
61121
60688
|
init_deletecontact();
|
|
@@ -67945,6 +67512,135 @@ Add metrics to a deployment`,
|
|
|
67945
67512
|
};
|
|
67946
67513
|
});
|
|
67947
67514
|
|
|
67515
|
+
// src/lib/event-streams.ts
|
|
67516
|
+
function concatBuffer(a, b2) {
|
|
67517
|
+
const c = new Uint8Array(a.length + b2.length);
|
|
67518
|
+
c.set(a, 0);
|
|
67519
|
+
c.set(b2, a.length);
|
|
67520
|
+
return c;
|
|
67521
|
+
}
|
|
67522
|
+
function findBoundary(buf) {
|
|
67523
|
+
const len = buf.length;
|
|
67524
|
+
for (let i = 0;i < len; i++) {
|
|
67525
|
+
if (i <= len - 4 && buf[i] === 13 && buf[i + 1] === 10 && buf[i + 2] === 13 && buf[i + 3] === 10) {
|
|
67526
|
+
return { index: i, length: 4 };
|
|
67527
|
+
}
|
|
67528
|
+
if (i <= len - 2 && buf[i] === 13 && buf[i + 1] === 13) {
|
|
67529
|
+
return { index: i, length: 2 };
|
|
67530
|
+
}
|
|
67531
|
+
if (i <= len - 2 && buf[i] === 10 && buf[i + 1] === 10) {
|
|
67532
|
+
return { index: i, length: 2 };
|
|
67533
|
+
}
|
|
67534
|
+
}
|
|
67535
|
+
return null;
|
|
67536
|
+
}
|
|
67537
|
+
function* chunks(remainder) {
|
|
67538
|
+
while (true) {
|
|
67539
|
+
const match2 = findBoundary(remainder);
|
|
67540
|
+
if (!match2) {
|
|
67541
|
+
yield { chunk: new Uint8Array, remainder };
|
|
67542
|
+
return;
|
|
67543
|
+
}
|
|
67544
|
+
const chunk = remainder.slice(0, match2.index);
|
|
67545
|
+
remainder = remainder.slice(match2.index + match2.length);
|
|
67546
|
+
yield { chunk, remainder };
|
|
67547
|
+
}
|
|
67548
|
+
}
|
|
67549
|
+
function parseChunk(chunk, parse) {
|
|
67550
|
+
const text = new TextDecoder().decode(chunk);
|
|
67551
|
+
const lines = text.split(/\r\n|\r|\n/);
|
|
67552
|
+
const dataLines = [];
|
|
67553
|
+
const ret = {};
|
|
67554
|
+
let ignore = true;
|
|
67555
|
+
for (const line of lines) {
|
|
67556
|
+
if (!line || line.startsWith(":"))
|
|
67557
|
+
continue;
|
|
67558
|
+
ignore = false;
|
|
67559
|
+
const i = line.indexOf(":");
|
|
67560
|
+
const field = line.slice(0, i);
|
|
67561
|
+
const value = line[i + 1] === " " ? line.slice(i + 2) : line.slice(i + 1);
|
|
67562
|
+
if (field === "data")
|
|
67563
|
+
dataLines.push(value);
|
|
67564
|
+
else if (field === "event")
|
|
67565
|
+
ret.event = value;
|
|
67566
|
+
else if (field === "id")
|
|
67567
|
+
ret.id = value;
|
|
67568
|
+
else if (field === "retry") {
|
|
67569
|
+
const n = Number(value);
|
|
67570
|
+
if (!isNaN(n))
|
|
67571
|
+
ret.retry = n;
|
|
67572
|
+
}
|
|
67573
|
+
}
|
|
67574
|
+
if (ignore)
|
|
67575
|
+
return;
|
|
67576
|
+
if (dataLines.length)
|
|
67577
|
+
ret.data = dataLines.join(`
|
|
67578
|
+
`);
|
|
67579
|
+
return parse(ret);
|
|
67580
|
+
}
|
|
67581
|
+
var EventStream;
|
|
67582
|
+
var init_event_streams = __esm(() => {
|
|
67583
|
+
EventStream = class EventStream extends ReadableStream {
|
|
67584
|
+
constructor(stream, parse) {
|
|
67585
|
+
const reader = stream.getReader();
|
|
67586
|
+
let buffer = new Uint8Array;
|
|
67587
|
+
super({
|
|
67588
|
+
async pull(controller) {
|
|
67589
|
+
try {
|
|
67590
|
+
const r = await reader.read();
|
|
67591
|
+
if (r.done)
|
|
67592
|
+
return controller.close();
|
|
67593
|
+
buffer = concatBuffer(buffer, r.value);
|
|
67594
|
+
for (const { chunk, remainder } of chunks(buffer)) {
|
|
67595
|
+
buffer = remainder;
|
|
67596
|
+
const item = parseChunk(chunk, parse);
|
|
67597
|
+
if (item?.value)
|
|
67598
|
+
controller.enqueue(item.value);
|
|
67599
|
+
if (item?.done) {
|
|
67600
|
+
await reader.cancel("done");
|
|
67601
|
+
return controller.close();
|
|
67602
|
+
}
|
|
67603
|
+
}
|
|
67604
|
+
} catch (e) {
|
|
67605
|
+
await reader.cancel(e);
|
|
67606
|
+
controller.error(e);
|
|
67607
|
+
}
|
|
67608
|
+
},
|
|
67609
|
+
cancel: (reason) => reader.cancel(reason)
|
|
67610
|
+
});
|
|
67611
|
+
}
|
|
67612
|
+
[Symbol.asyncIterator]() {
|
|
67613
|
+
const fn = ReadableStream.prototype[Symbol.asyncIterator];
|
|
67614
|
+
if (typeof fn === "function")
|
|
67615
|
+
return fn.call(this);
|
|
67616
|
+
const reader = this.getReader();
|
|
67617
|
+
return {
|
|
67618
|
+
next: async () => {
|
|
67619
|
+
const r = await reader.read();
|
|
67620
|
+
if (r.done) {
|
|
67621
|
+
reader.releaseLock();
|
|
67622
|
+
return { done: true, value: undefined };
|
|
67623
|
+
}
|
|
67624
|
+
return { done: false, value: r.value };
|
|
67625
|
+
},
|
|
67626
|
+
throw: async (e) => {
|
|
67627
|
+
await reader.cancel(e);
|
|
67628
|
+
reader.releaseLock();
|
|
67629
|
+
return { done: true, value: undefined };
|
|
67630
|
+
},
|
|
67631
|
+
return: async () => {
|
|
67632
|
+
await reader.cancel("done");
|
|
67633
|
+
reader.releaseLock();
|
|
67634
|
+
return { done: true, value: undefined };
|
|
67635
|
+
},
|
|
67636
|
+
[Symbol.asyncIterator]() {
|
|
67637
|
+
return this;
|
|
67638
|
+
}
|
|
67639
|
+
};
|
|
67640
|
+
}
|
|
67641
|
+
};
|
|
67642
|
+
});
|
|
67643
|
+
|
|
67948
67644
|
// src/funcs/deploymentsStream.ts
|
|
67949
67645
|
function deploymentsStream(client, request, options) {
|
|
67950
67646
|
return new APIPromise($do21(client, request, options));
|
|
@@ -68007,14 +67703,14 @@ async function $do21(client, request, options) {
|
|
|
68007
67703
|
}
|
|
68008
67704
|
const response = doResult.value;
|
|
68009
67705
|
const [result] = await match(sse(200, instanceOfType(ReadableStream).transform((stream) => {
|
|
68010
|
-
return new EventStream({
|
|
68011
|
-
|
|
68012
|
-
|
|
68013
|
-
|
|
68014
|
-
|
|
68015
|
-
}
|
|
67706
|
+
return new EventStream(stream, (rawEvent) => {
|
|
67707
|
+
if (rawEvent.data === "[DONE]")
|
|
67708
|
+
return { done: true };
|
|
67709
|
+
return {
|
|
67710
|
+
value: DeploymentStreamResponseBody$inboundSchema.parse(rawEvent)
|
|
67711
|
+
};
|
|
68016
67712
|
});
|
|
68017
|
-
})
|
|
67713
|
+
})), fail("4XX"), fail("5XX"))(response, req);
|
|
68018
67714
|
if (!result.ok) {
|
|
68019
67715
|
return [result, { status: "complete", request: req, response }];
|
|
68020
67716
|
}
|
|
@@ -72428,7 +72124,7 @@ Submit feedback for the LLM transaction via the API`,
|
|
|
72428
72124
|
// src/lib/files.ts
|
|
72429
72125
|
async function readableStreamToArrayBuffer(readable) {
|
|
72430
72126
|
const reader = readable.getReader();
|
|
72431
|
-
const
|
|
72127
|
+
const chunks2 = [];
|
|
72432
72128
|
let totalLength = 0;
|
|
72433
72129
|
let done = false;
|
|
72434
72130
|
while (!done) {
|
|
@@ -72436,13 +72132,13 @@ async function readableStreamToArrayBuffer(readable) {
|
|
|
72436
72132
|
if (doneReading) {
|
|
72437
72133
|
done = true;
|
|
72438
72134
|
} else {
|
|
72439
|
-
|
|
72135
|
+
chunks2.push(value);
|
|
72440
72136
|
totalLength += value.length;
|
|
72441
72137
|
}
|
|
72442
72138
|
}
|
|
72443
72139
|
const concatenatedChunks = new Uint8Array(totalLength);
|
|
72444
72140
|
let offset = 0;
|
|
72445
|
-
for (const chunk of
|
|
72141
|
+
for (const chunk of chunks2) {
|
|
72446
72142
|
concatenatedChunks.set(chunk, offset);
|
|
72447
72143
|
offset += chunk.length;
|
|
72448
72144
|
}
|
|
@@ -72917,12 +72613,12 @@ Returns a list of the files that your account has access to. orq.ai sorts and re
|
|
|
72917
72613
|
};
|
|
72918
72614
|
});
|
|
72919
72615
|
|
|
72920
|
-
// src/funcs/
|
|
72921
|
-
function
|
|
72616
|
+
// src/funcs/knowledgeCreate.ts
|
|
72617
|
+
function knowledgeCreate(client, request, options) {
|
|
72922
72618
|
return new APIPromise($do69(client, request, options));
|
|
72923
72619
|
}
|
|
72924
72620
|
async function $do69(client, request, options) {
|
|
72925
|
-
const parsed = safeParse(request, (value) =>
|
|
72621
|
+
const parsed = safeParse(request, (value) => CreateKnowledgeRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
72926
72622
|
if (!parsed.ok) {
|
|
72927
72623
|
return [parsed, { status: "invalid" }];
|
|
72928
72624
|
}
|
|
@@ -72939,7 +72635,7 @@ async function $do69(client, request, options) {
|
|
|
72939
72635
|
const context = {
|
|
72940
72636
|
options: client._options,
|
|
72941
72637
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72942
|
-
operationID: "
|
|
72638
|
+
operationID: "CreateKnowledge",
|
|
72943
72639
|
oAuth2Scopes: [],
|
|
72944
72640
|
resolvedSecurity: requestSecurity,
|
|
72945
72641
|
securitySource: client._options.apiKey,
|
|
@@ -72970,13 +72666,13 @@ async function $do69(client, request, options) {
|
|
|
72970
72666
|
return [doResult, { status: "request-error", request: req }];
|
|
72971
72667
|
}
|
|
72972
72668
|
const response = doResult.value;
|
|
72973
|
-
const [result] = await match(json(200,
|
|
72669
|
+
const [result] = await match(json(200, CreateKnowledgeResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
72974
72670
|
if (!result.ok) {
|
|
72975
72671
|
return [result, { status: "complete", request: req, response }];
|
|
72976
72672
|
}
|
|
72977
72673
|
return [result, { status: "complete", request: req, response }];
|
|
72978
72674
|
}
|
|
72979
|
-
var
|
|
72675
|
+
var init_knowledgeCreate = __esm(() => {
|
|
72980
72676
|
init_encodings();
|
|
72981
72677
|
init_matchers();
|
|
72982
72678
|
init_primitives();
|
|
@@ -72987,23 +72683,21 @@ var init_knowledgeBasesChunkText = __esm(() => {
|
|
|
72987
72683
|
init_async();
|
|
72988
72684
|
});
|
|
72989
72685
|
|
|
72990
|
-
// src/mcp-server/tools/
|
|
72991
|
-
var args69, tool$
|
|
72992
|
-
var
|
|
72993
|
-
|
|
72686
|
+
// src/mcp-server/tools/knowledgeCreate.ts
|
|
72687
|
+
var args69, tool$knowledgeCreate;
|
|
72688
|
+
var init_knowledgeCreate2 = __esm(() => {
|
|
72689
|
+
init_knowledgeCreate();
|
|
72994
72690
|
init_operations();
|
|
72995
72691
|
init_tools();
|
|
72996
72692
|
args69 = {
|
|
72997
|
-
request:
|
|
72693
|
+
request: CreateKnowledgeRequestBody$inboundSchema
|
|
72998
72694
|
};
|
|
72999
|
-
tool$
|
|
73000
|
-
name: "knowledge-
|
|
73001
|
-
description: `
|
|
73002
|
-
|
|
73003
|
-
Split large text documents into smaller, manageable chunks using different chunking strategies optimized for RAG (Retrieval-Augmented Generation) workflows. This endpoint supports multiple chunking algorithms including token-based, sentence-based, recursive, semantic, and specialized strategies.`,
|
|
72695
|
+
tool$knowledgeCreate = {
|
|
72696
|
+
name: "knowledge-create",
|
|
72697
|
+
description: `Create a knowledge`,
|
|
73004
72698
|
args: args69,
|
|
73005
72699
|
tool: async (client, args70, ctx) => {
|
|
73006
|
-
const [result, apiCall] = await
|
|
72700
|
+
const [result, apiCall] = await knowledgeCreate(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73007
72701
|
if (!result.ok) {
|
|
73008
72702
|
return {
|
|
73009
72703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75544,7 +75238,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
|
75544
75238
|
function createMCPServer(deps) {
|
|
75545
75239
|
const server = new McpServer({
|
|
75546
75240
|
name: "Orq",
|
|
75547
|
-
version: "3.9.
|
|
75241
|
+
version: "3.9.6"
|
|
75548
75242
|
});
|
|
75549
75243
|
const client = new OrqCore({
|
|
75550
75244
|
apiKey: deps.apiKey,
|
|
@@ -75595,6 +75289,7 @@ function createMCPServer(deps) {
|
|
|
75595
75289
|
tool(tool$datasetsDeleteDatapoint);
|
|
75596
75290
|
tool(tool$datasetsClear);
|
|
75597
75291
|
tool(tool$knowledgeList);
|
|
75292
|
+
tool(tool$knowledgeCreate);
|
|
75598
75293
|
tool(tool$knowledgeRetrieve);
|
|
75599
75294
|
tool(tool$knowledgeUpdate);
|
|
75600
75295
|
tool(tool$knowledgeDelete);
|
|
@@ -75609,7 +75304,6 @@ function createMCPServer(deps) {
|
|
|
75609
75304
|
tool(tool$knowledgeUpdateChunk);
|
|
75610
75305
|
tool(tool$knowledgeDeleteChunk);
|
|
75611
75306
|
tool(tool$knowledgeRetrieveChunk);
|
|
75612
|
-
tool(tool$knowledgeBasesChunkText);
|
|
75613
75307
|
tool(tool$evalsAll);
|
|
75614
75308
|
tool(tool$evalsCreate);
|
|
75615
75309
|
tool(tool$evalsUpdate);
|
|
@@ -75728,7 +75422,7 @@ var init_server2 = __esm(() => {
|
|
|
75728
75422
|
init_filesDelete2();
|
|
75729
75423
|
init_filesGet2();
|
|
75730
75424
|
init_filesList2();
|
|
75731
|
-
|
|
75425
|
+
init_knowledgeCreate2();
|
|
75732
75426
|
init_knowledgeCreateChunks2();
|
|
75733
75427
|
init_knowledgeCreateDatasource2();
|
|
75734
75428
|
init_knowledgeDelete2();
|
|
@@ -76950,7 +76644,7 @@ var routes = rn({
|
|
|
76950
76644
|
var app = Ve(routes, {
|
|
76951
76645
|
name: "mcp",
|
|
76952
76646
|
versionInfo: {
|
|
76953
|
-
currentVersion: "3.9.
|
|
76647
|
+
currentVersion: "3.9.6"
|
|
76954
76648
|
}
|
|
76955
76649
|
});
|
|
76956
76650
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -76958,5 +76652,5 @@ export {
|
|
|
76958
76652
|
app
|
|
76959
76653
|
};
|
|
76960
76654
|
|
|
76961
|
-
//# debugId=
|
|
76655
|
+
//# debugId=6D9ED5BA45BA62E564756E2164756E21
|
|
76962
76656
|
//# sourceMappingURL=mcp-server.js.map
|