@orq-ai/node 3.10.0-rc.0 → 3.10.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +244 -318
- package/bin/mcp-server.js.map +31 -31
- 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/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 +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/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/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/package.json +1 -1
- package/src/funcs/deploymentsStream.ts +7 -8
- 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 +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/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/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/bin/mcp-server.js
CHANGED
|
@@ -34203,9 +34203,9 @@ var init_config = __esm(() => {
|
|
|
34203
34203
|
SDK_METADATA = {
|
|
34204
34204
|
language: "typescript",
|
|
34205
34205
|
openapiDocVersion: "2.0",
|
|
34206
|
-
sdkVersion: "3.10.0-rc.
|
|
34207
|
-
genVersion: "2.
|
|
34208
|
-
userAgent: "speakeasy-sdk/typescript 3.10.0-rc.
|
|
34206
|
+
sdkVersion: "3.10.0-rc.2",
|
|
34207
|
+
genVersion: "2.652.0",
|
|
34208
|
+
userAgent: "speakeasy-sdk/typescript 3.10.0-rc.2 2.652.0 2.0 @orq-ai/node"
|
|
34209
34209
|
};
|
|
34210
34210
|
});
|
|
34211
34211
|
|
|
@@ -35376,208 +35376,6 @@ ${formatZodError(this.cause)}`;
|
|
|
35376
35376
|
};
|
|
35377
35377
|
});
|
|
35378
35378
|
|
|
35379
|
-
// src/lib/event-streams.ts
|
|
35380
|
-
function findBoundary(buffer, start) {
|
|
35381
|
-
const char1 = buffer[start];
|
|
35382
|
-
const char2 = buffer[start + 1];
|
|
35383
|
-
if (char1 == null || char2 == null || !NEWLINE_CHARS.has(char1) || !NEWLINE_CHARS.has(char2)) {
|
|
35384
|
-
return null;
|
|
35385
|
-
}
|
|
35386
|
-
for (const s of MESSAGE_BOUNDARIES) {
|
|
35387
|
-
const seq = peekSequence(start, buffer, s);
|
|
35388
|
-
if (seq != null) {
|
|
35389
|
-
return seq;
|
|
35390
|
-
}
|
|
35391
|
-
}
|
|
35392
|
-
return null;
|
|
35393
|
-
}
|
|
35394
|
-
function peekSequence(position, buffer, sequence) {
|
|
35395
|
-
if (sequence.length > buffer.length - position) {
|
|
35396
|
-
return null;
|
|
35397
|
-
}
|
|
35398
|
-
for (let i = 0;i < sequence.length; i++) {
|
|
35399
|
-
if (buffer[position + i] !== sequence[i]) {
|
|
35400
|
-
return null;
|
|
35401
|
-
}
|
|
35402
|
-
}
|
|
35403
|
-
return sequence;
|
|
35404
|
-
}
|
|
35405
|
-
function parseEvent(chunk, decoder) {
|
|
35406
|
-
if (!chunk.length) {
|
|
35407
|
-
return null;
|
|
35408
|
-
}
|
|
35409
|
-
const td = new TextDecoder;
|
|
35410
|
-
const raw = td.decode(chunk);
|
|
35411
|
-
const lines = raw.split(/\r?\n|\r/g);
|
|
35412
|
-
let publish = false;
|
|
35413
|
-
const rawEvent = {};
|
|
35414
|
-
for (const line of lines) {
|
|
35415
|
-
if (!line) {
|
|
35416
|
-
continue;
|
|
35417
|
-
}
|
|
35418
|
-
const delim = line.indexOf(":");
|
|
35419
|
-
if (delim === 0) {
|
|
35420
|
-
continue;
|
|
35421
|
-
}
|
|
35422
|
-
const field = delim > 0 ? line.substring(0, delim) : "";
|
|
35423
|
-
let value = delim > 0 ? line.substring(delim + 1) : "";
|
|
35424
|
-
if (value.charAt(0) === " ") {
|
|
35425
|
-
value = value.substring(1);
|
|
35426
|
-
}
|
|
35427
|
-
switch (field) {
|
|
35428
|
-
case "event": {
|
|
35429
|
-
publish = true;
|
|
35430
|
-
rawEvent.event = value;
|
|
35431
|
-
break;
|
|
35432
|
-
}
|
|
35433
|
-
case "data": {
|
|
35434
|
-
publish = true;
|
|
35435
|
-
rawEvent.data ??= "";
|
|
35436
|
-
rawEvent.data += value + `
|
|
35437
|
-
`;
|
|
35438
|
-
break;
|
|
35439
|
-
}
|
|
35440
|
-
case "id": {
|
|
35441
|
-
publish = true;
|
|
35442
|
-
rawEvent.id = value;
|
|
35443
|
-
break;
|
|
35444
|
-
}
|
|
35445
|
-
case "retry": {
|
|
35446
|
-
const r = parseInt(value, 10);
|
|
35447
|
-
if (!Number.isNaN(r)) {
|
|
35448
|
-
publish = true;
|
|
35449
|
-
rawEvent.retry = r;
|
|
35450
|
-
}
|
|
35451
|
-
break;
|
|
35452
|
-
}
|
|
35453
|
-
}
|
|
35454
|
-
}
|
|
35455
|
-
if (!publish) {
|
|
35456
|
-
return null;
|
|
35457
|
-
}
|
|
35458
|
-
if (rawEvent.data != null) {
|
|
35459
|
-
rawEvent.data = rawEvent.data.slice(0, -1);
|
|
35460
|
-
}
|
|
35461
|
-
return decoder(rawEvent);
|
|
35462
|
-
}
|
|
35463
|
-
function discardSentinel(stream, sentinel) {
|
|
35464
|
-
return new ReadableStream({
|
|
35465
|
-
async start(controller) {
|
|
35466
|
-
let buffer = new Uint8Array([]);
|
|
35467
|
-
let position = 0;
|
|
35468
|
-
let done = false;
|
|
35469
|
-
let discard = false;
|
|
35470
|
-
const rdr = stream.getReader();
|
|
35471
|
-
try {
|
|
35472
|
-
while (!done) {
|
|
35473
|
-
const result = await rdr.read();
|
|
35474
|
-
const value = result.value;
|
|
35475
|
-
done = done || result.done;
|
|
35476
|
-
if (discard) {
|
|
35477
|
-
continue;
|
|
35478
|
-
}
|
|
35479
|
-
if (typeof value === "undefined") {
|
|
35480
|
-
continue;
|
|
35481
|
-
}
|
|
35482
|
-
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35483
|
-
newBuffer.set(buffer);
|
|
35484
|
-
newBuffer.set(value, buffer.length);
|
|
35485
|
-
buffer = newBuffer;
|
|
35486
|
-
for (let i = position;i < buffer.length; i++) {
|
|
35487
|
-
const boundary = findBoundary(buffer, i);
|
|
35488
|
-
if (boundary == null) {
|
|
35489
|
-
continue;
|
|
35490
|
-
}
|
|
35491
|
-
const start = position;
|
|
35492
|
-
const chunk = buffer.slice(start, i);
|
|
35493
|
-
position = i + boundary.length;
|
|
35494
|
-
const event = parseEvent(chunk, id);
|
|
35495
|
-
if (event?.data === sentinel) {
|
|
35496
|
-
controller.enqueue(buffer.slice(0, start));
|
|
35497
|
-
discard = true;
|
|
35498
|
-
} else {
|
|
35499
|
-
controller.enqueue(buffer.slice(0, position));
|
|
35500
|
-
buffer = buffer.slice(position);
|
|
35501
|
-
position = 0;
|
|
35502
|
-
}
|
|
35503
|
-
}
|
|
35504
|
-
}
|
|
35505
|
-
} catch (e) {
|
|
35506
|
-
controller.error(e);
|
|
35507
|
-
} finally {
|
|
35508
|
-
controller.close();
|
|
35509
|
-
rdr.releaseLock();
|
|
35510
|
-
}
|
|
35511
|
-
}
|
|
35512
|
-
});
|
|
35513
|
-
}
|
|
35514
|
-
function id(v2) {
|
|
35515
|
-
return v2;
|
|
35516
|
-
}
|
|
35517
|
-
var LF = 10, CR = 13, NEWLINE_CHARS, MESSAGE_BOUNDARIES, EventStream;
|
|
35518
|
-
var init_event_streams = __esm(() => {
|
|
35519
|
-
NEWLINE_CHARS = new Set([LF, CR]);
|
|
35520
|
-
MESSAGE_BOUNDARIES = [
|
|
35521
|
-
new Uint8Array([CR, LF, CR, LF]),
|
|
35522
|
-
new Uint8Array([CR, CR]),
|
|
35523
|
-
new Uint8Array([LF, LF])
|
|
35524
|
-
];
|
|
35525
|
-
EventStream = class EventStream {
|
|
35526
|
-
stream;
|
|
35527
|
-
decoder;
|
|
35528
|
-
constructor(init) {
|
|
35529
|
-
this.stream = init.stream;
|
|
35530
|
-
this.decoder = init.decoder;
|
|
35531
|
-
}
|
|
35532
|
-
async* [Symbol.asyncIterator]() {
|
|
35533
|
-
const reader = this.stream.getReader();
|
|
35534
|
-
let buffer = new Uint8Array([]);
|
|
35535
|
-
let position = 0;
|
|
35536
|
-
try {
|
|
35537
|
-
while (true) {
|
|
35538
|
-
const { done, value } = await reader.read();
|
|
35539
|
-
if (done) {
|
|
35540
|
-
break;
|
|
35541
|
-
}
|
|
35542
|
-
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
35543
|
-
newBuffer.set(buffer);
|
|
35544
|
-
newBuffer.set(value, buffer.length);
|
|
35545
|
-
buffer = newBuffer;
|
|
35546
|
-
for (let i = position;i < buffer.length; i++) {
|
|
35547
|
-
const boundary = findBoundary(buffer, i);
|
|
35548
|
-
if (boundary == null) {
|
|
35549
|
-
continue;
|
|
35550
|
-
}
|
|
35551
|
-
const chunk = buffer.slice(position, i);
|
|
35552
|
-
position = i + boundary.length;
|
|
35553
|
-
const event = parseEvent(chunk, this.decoder);
|
|
35554
|
-
if (event != null) {
|
|
35555
|
-
yield event;
|
|
35556
|
-
}
|
|
35557
|
-
}
|
|
35558
|
-
if (position > 0) {
|
|
35559
|
-
buffer = buffer.slice(position);
|
|
35560
|
-
position = 0;
|
|
35561
|
-
}
|
|
35562
|
-
}
|
|
35563
|
-
if (buffer.length > 0) {
|
|
35564
|
-
const event = parseEvent(buffer, this.decoder);
|
|
35565
|
-
if (event != null) {
|
|
35566
|
-
yield event;
|
|
35567
|
-
}
|
|
35568
|
-
}
|
|
35569
|
-
} catch (e) {
|
|
35570
|
-
if (e instanceof Error && e.name === "AbortError") {
|
|
35571
|
-
return;
|
|
35572
|
-
}
|
|
35573
|
-
throw e;
|
|
35574
|
-
} finally {
|
|
35575
|
-
reader.releaseLock();
|
|
35576
|
-
}
|
|
35577
|
-
}
|
|
35578
|
-
};
|
|
35579
|
-
});
|
|
35580
|
-
|
|
35581
35379
|
// src/lib/matchers.ts
|
|
35582
35380
|
function jsonErr(codes, schema, options) {
|
|
35583
35381
|
return { ...options, err: true, enc: "json", codes, schema };
|
|
@@ -35640,7 +35438,7 @@ function match(...matchers) {
|
|
|
35640
35438
|
raw = body;
|
|
35641
35439
|
break;
|
|
35642
35440
|
case "sse":
|
|
35643
|
-
raw = response.body
|
|
35441
|
+
raw = response.body;
|
|
35644
35442
|
break;
|
|
35645
35443
|
case "nil":
|
|
35646
35444
|
body = await response.text();
|
|
@@ -35719,7 +35517,6 @@ var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
|
35719
35517
|
var init_matchers = __esm(() => {
|
|
35720
35518
|
init_apierror();
|
|
35721
35519
|
init_responsevalidationerror();
|
|
35722
|
-
init_event_streams();
|
|
35723
35520
|
init_http();
|
|
35724
35521
|
DEFAULT_CONTENT_TYPES = {
|
|
35725
35522
|
jsonl: "application/jsonl",
|
|
@@ -36542,7 +36339,7 @@ var init_createcontact = __esm(() => {
|
|
|
36542
36339
|
tags: arrayType(stringType()).optional(),
|
|
36543
36340
|
metadata: recordType(anyType()).optional(),
|
|
36544
36341
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36545
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
36342
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
36546
36343
|
}).transform((v2) => {
|
|
36547
36344
|
return remap(v2, {
|
|
36548
36345
|
_id: "id",
|
|
@@ -36562,7 +36359,7 @@ var init_createcontact = __esm(() => {
|
|
|
36562
36359
|
tags: arrayType(stringType()).optional(),
|
|
36563
36360
|
metadata: recordType(anyType()).optional(),
|
|
36564
36361
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36565
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
36362
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
36566
36363
|
}).transform((v2) => {
|
|
36567
36364
|
return remap(v2, {
|
|
36568
36365
|
id: "_id",
|
|
@@ -36634,7 +36431,7 @@ var init_createdataset = __esm(() => {
|
|
|
36634
36431
|
updated_by_id: stringType().optional(),
|
|
36635
36432
|
metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
|
|
36636
36433
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36637
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
36434
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
36638
36435
|
}).transform((v2) => {
|
|
36639
36436
|
return remap(v2, {
|
|
36640
36437
|
_id: "id",
|
|
@@ -36654,7 +36451,7 @@ var init_createdataset = __esm(() => {
|
|
|
36654
36451
|
updatedById: stringType().optional(),
|
|
36655
36452
|
metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
|
|
36656
36453
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36657
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
36454
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
36658
36455
|
}).transform((v2) => {
|
|
36659
36456
|
return remap(v2, {
|
|
36660
36457
|
id: "_id",
|
|
@@ -37786,7 +37583,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37786
37583
|
created_by_id: stringType().optional(),
|
|
37787
37584
|
updated_by_id: stringType().optional(),
|
|
37788
37585
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
37789
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
37586
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
37790
37587
|
}).transform((v2) => {
|
|
37791
37588
|
return remap(v2, {
|
|
37792
37589
|
_id: "id",
|
|
@@ -37813,7 +37610,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37813
37610
|
createdById: stringType().optional(),
|
|
37814
37611
|
updatedById: stringType().optional(),
|
|
37815
37612
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
37816
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
37613
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
37817
37614
|
}).transform((v2) => {
|
|
37818
37615
|
return remap(v2, {
|
|
37819
37616
|
id: "_id",
|
|
@@ -38035,7 +37832,7 @@ var init_createdatasource = __esm(() => {
|
|
|
38035
37832
|
CreateDatasourceStatus$.outboundSchema = CreateDatasourceStatus$outboundSchema;
|
|
38036
37833
|
})(CreateDatasourceStatus$ ||= {});
|
|
38037
37834
|
CreateDatasourceResponseBody$inboundSchema = objectType({
|
|
38038
|
-
_id: stringType().default("
|
|
37835
|
+
_id: stringType().default("01JZMR03EGA03VCJ8PX3ZNZVQJ"),
|
|
38039
37836
|
display_name: stringType(),
|
|
38040
37837
|
description: stringType().optional(),
|
|
38041
37838
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -38058,7 +37855,7 @@ var init_createdatasource = __esm(() => {
|
|
|
38058
37855
|
});
|
|
38059
37856
|
});
|
|
38060
37857
|
CreateDatasourceResponseBody$outboundSchema = objectType({
|
|
38061
|
-
id: stringType().default("
|
|
37858
|
+
id: stringType().default("01JZMR03EGA03VCJ8PX3ZNZVQJ"),
|
|
38062
37859
|
displayName: stringType(),
|
|
38063
37860
|
description: stringType().optional(),
|
|
38064
37861
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -38734,8 +38531,8 @@ var init_createeval = __esm(() => {
|
|
|
38734
38531
|
ResponseBodyPython$inboundSchema = objectType({
|
|
38735
38532
|
_id: stringType(),
|
|
38736
38533
|
description: stringType(),
|
|
38737
|
-
created: stringType().default("2025-07-
|
|
38738
|
-
updated: stringType().default("2025-07-
|
|
38534
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38535
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38739
38536
|
guardrail_config: unionType([
|
|
38740
38537
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
38741
38538
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -38752,8 +38549,8 @@ var init_createeval = __esm(() => {
|
|
|
38752
38549
|
ResponseBodyPython$outboundSchema = objectType({
|
|
38753
38550
|
id: stringType(),
|
|
38754
38551
|
description: stringType(),
|
|
38755
|
-
created: stringType().default("2025-07-
|
|
38756
|
-
updated: stringType().default("2025-07-
|
|
38552
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38553
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38757
38554
|
guardrailConfig: unionType([
|
|
38758
38555
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
38759
38556
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -38846,8 +38643,8 @@ var init_createeval = __esm(() => {
|
|
|
38846
38643
|
ResponseBodyHTTP$inboundSchema = objectType({
|
|
38847
38644
|
_id: stringType(),
|
|
38848
38645
|
description: stringType(),
|
|
38849
|
-
created: stringType().default("2025-07-
|
|
38850
|
-
updated: stringType().default("2025-07-
|
|
38646
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38647
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38851
38648
|
guardrail_config: unionType([
|
|
38852
38649
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
38853
38650
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -38867,8 +38664,8 @@ var init_createeval = __esm(() => {
|
|
|
38867
38664
|
ResponseBodyHTTP$outboundSchema = objectType({
|
|
38868
38665
|
id: stringType(),
|
|
38869
38666
|
description: stringType(),
|
|
38870
|
-
created: stringType().default("2025-07-
|
|
38871
|
-
updated: stringType().default("2025-07-
|
|
38667
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38668
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38872
38669
|
guardrailConfig: unionType([
|
|
38873
38670
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
38874
38671
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -38958,8 +38755,8 @@ var init_createeval = __esm(() => {
|
|
|
38958
38755
|
ResponseBodyJSON$inboundSchema = objectType({
|
|
38959
38756
|
_id: stringType(),
|
|
38960
38757
|
description: stringType(),
|
|
38961
|
-
created: stringType().default("2025-07-
|
|
38962
|
-
updated: stringType().default("2025-07-
|
|
38758
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38759
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38963
38760
|
guardrail_config: unionType([
|
|
38964
38761
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
38965
38762
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -38976,8 +38773,8 @@ var init_createeval = __esm(() => {
|
|
|
38976
38773
|
ResponseBodyJSON$outboundSchema = objectType({
|
|
38977
38774
|
id: stringType(),
|
|
38978
38775
|
description: stringType(),
|
|
38979
|
-
created: stringType().default("2025-07-
|
|
38980
|
-
updated: stringType().default("2025-07-
|
|
38776
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38777
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38981
38778
|
guardrailConfig: unionType([
|
|
38982
38779
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
38983
38780
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -39064,8 +38861,8 @@ var init_createeval = __esm(() => {
|
|
|
39064
38861
|
ResponseBodyLLM$inboundSchema = objectType({
|
|
39065
38862
|
_id: stringType(),
|
|
39066
38863
|
description: stringType(),
|
|
39067
|
-
created: stringType().default("2025-07-
|
|
39068
|
-
updated: stringType().default("2025-07-
|
|
38864
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38865
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
39069
38866
|
guardrail_config: unionType([
|
|
39070
38867
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
39071
38868
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -39083,8 +38880,8 @@ var init_createeval = __esm(() => {
|
|
|
39083
38880
|
ResponseBodyLLM$outboundSchema = objectType({
|
|
39084
38881
|
id: stringType(),
|
|
39085
38882
|
description: stringType(),
|
|
39086
|
-
created: stringType().default("2025-07-
|
|
39087
|
-
updated: stringType().default("2025-07-
|
|
38883
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
38884
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
39088
38885
|
guardrailConfig: unionType([
|
|
39089
38886
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
39090
38887
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -48651,7 +48448,7 @@ var init_fileget = __esm(() => {
|
|
|
48651
48448
|
bytes: numberType(),
|
|
48652
48449
|
file_name: stringType(),
|
|
48653
48450
|
workspace_id: stringType(),
|
|
48654
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48451
|
+
created: stringType().datetime({ offset: true }).default("2025-07-08T10:06:08.258Z").transform((v2) => new Date(v2))
|
|
48655
48452
|
}).transform((v2) => {
|
|
48656
48453
|
return remap(v2, {
|
|
48657
48454
|
_id: "id",
|
|
@@ -48667,7 +48464,7 @@ var init_fileget = __esm(() => {
|
|
|
48667
48464
|
bytes: numberType(),
|
|
48668
48465
|
fileName: stringType(),
|
|
48669
48466
|
workspaceId: stringType(),
|
|
48670
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48467
|
+
created: dateType().default(() => new Date("2025-07-08T10:06:08.258Z")).transform((v2) => v2.toISOString())
|
|
48671
48468
|
}).transform((v2) => {
|
|
48672
48469
|
return remap(v2, {
|
|
48673
48470
|
id: "_id",
|
|
@@ -48738,7 +48535,7 @@ var init_filelist = __esm(() => {
|
|
|
48738
48535
|
bytes: numberType(),
|
|
48739
48536
|
file_name: stringType(),
|
|
48740
48537
|
workspace_id: stringType(),
|
|
48741
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48538
|
+
created: stringType().datetime({ offset: true }).default("2025-07-08T10:06:08.258Z").transform((v2) => new Date(v2))
|
|
48742
48539
|
}).transform((v2) => {
|
|
48743
48540
|
return remap(v2, {
|
|
48744
48541
|
_id: "id",
|
|
@@ -48754,7 +48551,7 @@ var init_filelist = __esm(() => {
|
|
|
48754
48551
|
bytes: numberType(),
|
|
48755
48552
|
fileName: stringType(),
|
|
48756
48553
|
workspaceId: stringType(),
|
|
48757
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48554
|
+
created: dateType().default(() => new Date("2025-07-08T10:06:08.258Z")).transform((v2) => v2.toISOString())
|
|
48758
48555
|
}).transform((v2) => {
|
|
48759
48556
|
return remap(v2, {
|
|
48760
48557
|
id: "_id",
|
|
@@ -48886,7 +48683,7 @@ var init_fileupload = __esm(() => {
|
|
|
48886
48683
|
bytes: numberType(),
|
|
48887
48684
|
file_name: stringType(),
|
|
48888
48685
|
workspace_id: stringType(),
|
|
48889
|
-
created: stringType().datetime({ offset: true }).default("2025-07-
|
|
48686
|
+
created: stringType().datetime({ offset: true }).default("2025-07-08T10:06:08.258Z").transform((v2) => new Date(v2))
|
|
48890
48687
|
}).transform((v2) => {
|
|
48891
48688
|
return remap(v2, {
|
|
48892
48689
|
_id: "id",
|
|
@@ -48902,7 +48699,7 @@ var init_fileupload = __esm(() => {
|
|
|
48902
48699
|
bytes: numberType(),
|
|
48903
48700
|
fileName: stringType(),
|
|
48904
48701
|
workspaceId: stringType(),
|
|
48905
|
-
created: dateType().default(() => new Date("2025-07-
|
|
48702
|
+
created: dateType().default(() => new Date("2025-07-08T10:06:08.258Z")).transform((v2) => v2.toISOString())
|
|
48906
48703
|
}).transform((v2) => {
|
|
48907
48704
|
return remap(v2, {
|
|
48908
48705
|
id: "_id",
|
|
@@ -49907,8 +49704,8 @@ var init_getevals = __esm(() => {
|
|
|
49907
49704
|
Typescript$inboundSchema = objectType({
|
|
49908
49705
|
_id: stringType(),
|
|
49909
49706
|
description: stringType(),
|
|
49910
|
-
created: stringType().default("2025-07-
|
|
49911
|
-
updated: stringType().default("2025-07-
|
|
49707
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49708
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49912
49709
|
guardrail_config: unionType([
|
|
49913
49710
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
49914
49711
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -49925,8 +49722,8 @@ var init_getevals = __esm(() => {
|
|
|
49925
49722
|
Typescript$outboundSchema = objectType({
|
|
49926
49723
|
id: stringType(),
|
|
49927
49724
|
description: stringType(),
|
|
49928
|
-
created: stringType().default("2025-07-
|
|
49929
|
-
updated: stringType().default("2025-07-
|
|
49725
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49726
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49930
49727
|
guardrailConfig: unionType([
|
|
49931
49728
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
49932
49729
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -50019,8 +49816,8 @@ var init_getevals = __esm(() => {
|
|
|
50019
49816
|
Ragas$inboundSchema = objectType({
|
|
50020
49817
|
_id: stringType(),
|
|
50021
49818
|
description: stringType(),
|
|
50022
|
-
created: stringType().default("2025-07-
|
|
50023
|
-
updated: stringType().default("2025-07-
|
|
49819
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49820
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50024
49821
|
guardrail_config: unionType([
|
|
50025
49822
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
50026
49823
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -50039,8 +49836,8 @@ var init_getevals = __esm(() => {
|
|
|
50039
49836
|
Ragas$outboundSchema = objectType({
|
|
50040
49837
|
id: stringType(),
|
|
50041
49838
|
description: stringType(),
|
|
50042
|
-
created: stringType().default("2025-07-
|
|
50043
|
-
updated: stringType().default("2025-07-
|
|
49839
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
49840
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50044
49841
|
guardrailConfig: unionType([
|
|
50045
49842
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
50046
49843
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -50591,8 +50388,8 @@ var init_getevals = __esm(() => {
|
|
|
50591
50388
|
DataFunction$inboundSchema = objectType({
|
|
50592
50389
|
_id: stringType(),
|
|
50593
50390
|
description: stringType(),
|
|
50594
|
-
created: stringType().default("2025-07-
|
|
50595
|
-
updated: stringType().default("2025-07-
|
|
50391
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50392
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50596
50393
|
guardrail_config: unionType([
|
|
50597
50394
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
50598
50395
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -50635,8 +50432,8 @@ var init_getevals = __esm(() => {
|
|
|
50635
50432
|
DataFunction$outboundSchema = objectType({
|
|
50636
50433
|
id: stringType(),
|
|
50637
50434
|
description: stringType(),
|
|
50638
|
-
created: stringType().default("2025-07-
|
|
50639
|
-
updated: stringType().default("2025-07-
|
|
50435
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50436
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50640
50437
|
guardrailConfig: unionType([
|
|
50641
50438
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
50642
50439
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -50749,8 +50546,8 @@ var init_getevals = __esm(() => {
|
|
|
50749
50546
|
DataPython$inboundSchema = objectType({
|
|
50750
50547
|
_id: stringType(),
|
|
50751
50548
|
description: stringType(),
|
|
50752
|
-
created: stringType().default("2025-07-
|
|
50753
|
-
updated: stringType().default("2025-07-
|
|
50549
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50550
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50754
50551
|
guardrail_config: unionType([
|
|
50755
50552
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
50756
50553
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema)
|
|
@@ -50767,8 +50564,8 @@ var init_getevals = __esm(() => {
|
|
|
50767
50564
|
DataPython$outboundSchema = objectType({
|
|
50768
50565
|
id: stringType(),
|
|
50769
50566
|
description: stringType(),
|
|
50770
|
-
created: stringType().default("2025-07-
|
|
50771
|
-
updated: stringType().default("2025-07-
|
|
50567
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50568
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50772
50569
|
guardrailConfig: unionType([
|
|
50773
50570
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
50774
50571
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema)
|
|
@@ -50861,8 +50658,8 @@ var init_getevals = __esm(() => {
|
|
|
50861
50658
|
DataHTTP$inboundSchema = objectType({
|
|
50862
50659
|
_id: stringType(),
|
|
50863
50660
|
description: stringType(),
|
|
50864
|
-
created: stringType().default("2025-07-
|
|
50865
|
-
updated: stringType().default("2025-07-
|
|
50661
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50662
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50866
50663
|
guardrail_config: unionType([
|
|
50867
50664
|
lazyType(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
50868
50665
|
lazyType(() => GetEvalsGuardrailConfigBoolean$inboundSchema)
|
|
@@ -50882,8 +50679,8 @@ var init_getevals = __esm(() => {
|
|
|
50882
50679
|
DataHTTP$outboundSchema = objectType({
|
|
50883
50680
|
id: stringType(),
|
|
50884
50681
|
description: stringType(),
|
|
50885
|
-
created: stringType().default("2025-07-
|
|
50886
|
-
updated: stringType().default("2025-07-
|
|
50682
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50683
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50887
50684
|
guardrailConfig: unionType([
|
|
50888
50685
|
lazyType(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
50889
50686
|
lazyType(() => GetEvalsGuardrailConfigBoolean$outboundSchema)
|
|
@@ -50973,8 +50770,8 @@ var init_getevals = __esm(() => {
|
|
|
50973
50770
|
DataJSON$inboundSchema = objectType({
|
|
50974
50771
|
_id: stringType(),
|
|
50975
50772
|
description: stringType(),
|
|
50976
|
-
created: stringType().default("2025-07-
|
|
50977
|
-
updated: stringType().default("2025-07-
|
|
50773
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50774
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50978
50775
|
guardrail_config: unionType([
|
|
50979
50776
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
|
|
50980
50777
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema)
|
|
@@ -50991,8 +50788,8 @@ var init_getevals = __esm(() => {
|
|
|
50991
50788
|
DataJSON$outboundSchema = objectType({
|
|
50992
50789
|
id: stringType(),
|
|
50993
50790
|
description: stringType(),
|
|
50994
|
-
created: stringType().default("2025-07-
|
|
50995
|
-
updated: stringType().default("2025-07-
|
|
50791
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50792
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50996
50793
|
guardrailConfig: unionType([
|
|
50997
50794
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema),
|
|
50998
50795
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$outboundSchema)
|
|
@@ -51079,8 +50876,8 @@ var init_getevals = __esm(() => {
|
|
|
51079
50876
|
DataLLM$inboundSchema = objectType({
|
|
51080
50877
|
_id: stringType(),
|
|
51081
50878
|
description: stringType(),
|
|
51082
|
-
created: stringType().default("2025-07-
|
|
51083
|
-
updated: stringType().default("2025-07-
|
|
50879
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50880
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
51084
50881
|
guardrail_config: unionType([
|
|
51085
50882
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
51086
50883
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -51098,8 +50895,8 @@ var init_getevals = __esm(() => {
|
|
|
51098
50895
|
DataLLM$outboundSchema = objectType({
|
|
51099
50896
|
id: stringType(),
|
|
51100
50897
|
description: stringType(),
|
|
51101
|
-
created: stringType().default("2025-07-
|
|
51102
|
-
updated: stringType().default("2025-07-
|
|
50898
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
50899
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
51103
50900
|
guardrailConfig: unionType([
|
|
51104
50901
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
51105
50902
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -53496,7 +53293,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53496
53293
|
tags: arrayType(stringType()).optional(),
|
|
53497
53294
|
metadata: recordType(anyType()).optional(),
|
|
53498
53295
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
53499
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
53296
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2)),
|
|
53500
53297
|
metrics: lazyType(() => Metrics$inboundSchema)
|
|
53501
53298
|
}).transform((v2) => {
|
|
53502
53299
|
return remap(v2, {
|
|
@@ -53515,7 +53312,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53515
53312
|
tags: arrayType(stringType()).optional(),
|
|
53516
53313
|
metadata: recordType(anyType()).optional(),
|
|
53517
53314
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
53518
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
53315
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString()),
|
|
53519
53316
|
metrics: lazyType(() => Metrics$outboundSchema)
|
|
53520
53317
|
}).transform((v2) => {
|
|
53521
53318
|
return remap(v2, {
|
|
@@ -54130,7 +53927,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
54130
53927
|
created_by_id: stringType().optional(),
|
|
54131
53928
|
updated_by_id: stringType().optional(),
|
|
54132
53929
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
54133
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
53930
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
54134
53931
|
}).transform((v2) => {
|
|
54135
53932
|
return remap(v2, {
|
|
54136
53933
|
_id: "id",
|
|
@@ -54157,7 +53954,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
54157
53954
|
createdById: stringType().optional(),
|
|
54158
53955
|
updatedById: stringType().optional(),
|
|
54159
53956
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
54160
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
53957
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
54161
53958
|
}).transform((v2) => {
|
|
54162
53959
|
return remap(v2, {
|
|
54163
53960
|
id: "_id",
|
|
@@ -54265,7 +54062,7 @@ var init_listdatasets = __esm(() => {
|
|
|
54265
54062
|
updated_by_id: stringType().optional(),
|
|
54266
54063
|
metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
|
|
54267
54064
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
54268
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
54065
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
54269
54066
|
}).transform((v2) => {
|
|
54270
54067
|
return remap(v2, {
|
|
54271
54068
|
_id: "id",
|
|
@@ -54285,7 +54082,7 @@ var init_listdatasets = __esm(() => {
|
|
|
54285
54082
|
updatedById: stringType().optional(),
|
|
54286
54083
|
metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
|
|
54287
54084
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
54288
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
54085
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
54289
54086
|
}).transform((v2) => {
|
|
54290
54087
|
return remap(v2, {
|
|
54291
54088
|
id: "_id",
|
|
@@ -54390,7 +54187,7 @@ var init_listdatasources = __esm(() => {
|
|
|
54390
54187
|
ListDatasourcesStatus$.outboundSchema = ListDatasourcesStatus$outboundSchema;
|
|
54391
54188
|
})(ListDatasourcesStatus$ ||= {});
|
|
54392
54189
|
ListDatasourcesData$inboundSchema = objectType({
|
|
54393
|
-
_id: stringType().default("
|
|
54190
|
+
_id: stringType().default("01JZMR03EECKYXJD2H1RNS5MS2"),
|
|
54394
54191
|
display_name: stringType(),
|
|
54395
54192
|
description: stringType().optional(),
|
|
54396
54193
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -54413,7 +54210,7 @@ var init_listdatasources = __esm(() => {
|
|
|
54413
54210
|
});
|
|
54414
54211
|
});
|
|
54415
54212
|
ListDatasourcesData$outboundSchema = objectType({
|
|
54416
|
-
id: stringType().default("
|
|
54213
|
+
id: stringType().default("01JZMR03EECKYXJD2H1RNS5MS2"),
|
|
54417
54214
|
displayName: stringType(),
|
|
54418
54215
|
description: stringType().optional(),
|
|
54419
54216
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -55461,7 +55258,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55461
55258
|
tags: arrayType(stringType()).optional(),
|
|
55462
55259
|
metadata: recordType(anyType()).optional(),
|
|
55463
55260
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55464
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55261
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
55465
55262
|
}).transform((v2) => {
|
|
55466
55263
|
return remap(v2, {
|
|
55467
55264
|
_id: "id",
|
|
@@ -55479,7 +55276,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55479
55276
|
tags: arrayType(stringType()).optional(),
|
|
55480
55277
|
metadata: recordType(anyType()).optional(),
|
|
55481
55278
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55482
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55279
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
55483
55280
|
}).transform((v2) => {
|
|
55484
55281
|
return remap(v2, {
|
|
55485
55282
|
id: "_id",
|
|
@@ -56056,7 +55853,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
56056
55853
|
created_by_id: stringType().optional(),
|
|
56057
55854
|
updated_by_id: stringType().optional(),
|
|
56058
55855
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56059
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55856
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
56060
55857
|
}).transform((v2) => {
|
|
56061
55858
|
return remap(v2, {
|
|
56062
55859
|
_id: "id",
|
|
@@ -56083,7 +55880,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
56083
55880
|
createdById: stringType().optional(),
|
|
56084
55881
|
updatedById: stringType().optional(),
|
|
56085
55882
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56086
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55883
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
56087
55884
|
}).transform((v2) => {
|
|
56088
55885
|
return remap(v2, {
|
|
56089
55886
|
id: "_id",
|
|
@@ -56154,7 +55951,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
56154
55951
|
updated_by_id: stringType().optional(),
|
|
56155
55952
|
metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
|
|
56156
55953
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56157
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
55954
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
56158
55955
|
}).transform((v2) => {
|
|
56159
55956
|
return remap(v2, {
|
|
56160
55957
|
_id: "id",
|
|
@@ -56174,7 +55971,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
56174
55971
|
updatedById: stringType().optional(),
|
|
56175
55972
|
metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
|
|
56176
55973
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56177
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
55974
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
56178
55975
|
}).transform((v2) => {
|
|
56179
55976
|
return remap(v2, {
|
|
56180
55977
|
id: "_id",
|
|
@@ -56232,7 +56029,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
56232
56029
|
RetrieveDatasourceStatus$.outboundSchema = RetrieveDatasourceStatus$outboundSchema;
|
|
56233
56030
|
})(RetrieveDatasourceStatus$ ||= {});
|
|
56234
56031
|
RetrieveDatasourceResponseBody$inboundSchema = objectType({
|
|
56235
|
-
_id: stringType().default("
|
|
56032
|
+
_id: stringType().default("01JZMR03EFTWFMKNS3JBYJM8RJ"),
|
|
56236
56033
|
display_name: stringType(),
|
|
56237
56034
|
description: stringType().optional(),
|
|
56238
56035
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -56255,7 +56052,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
56255
56052
|
});
|
|
56256
56053
|
});
|
|
56257
56054
|
RetrieveDatasourceResponseBody$outboundSchema = objectType({
|
|
56258
|
-
id: stringType().default("
|
|
56055
|
+
id: stringType().default("01JZMR03EFTWFMKNS3JBYJM8RJ"),
|
|
56259
56056
|
displayName: stringType(),
|
|
56260
56057
|
description: stringType().optional(),
|
|
56261
56058
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -57136,7 +56933,7 @@ var init_updatecontact = __esm(() => {
|
|
|
57136
56933
|
tags: arrayType(stringType()).optional(),
|
|
57137
56934
|
metadata: recordType(anyType()).optional(),
|
|
57138
56935
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57139
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
56936
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
57140
56937
|
}).transform((v2) => {
|
|
57141
56938
|
return remap(v2, {
|
|
57142
56939
|
_id: "id",
|
|
@@ -57154,7 +56951,7 @@ var init_updatecontact = __esm(() => {
|
|
|
57154
56951
|
tags: arrayType(stringType()).optional(),
|
|
57155
56952
|
metadata: recordType(anyType()).optional(),
|
|
57156
56953
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57157
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
56954
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
57158
56955
|
}).transform((v2) => {
|
|
57159
56956
|
return remap(v2, {
|
|
57160
56957
|
id: "_id",
|
|
@@ -58288,7 +58085,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
58288
58085
|
created_by_id: stringType().optional(),
|
|
58289
58086
|
updated_by_id: stringType().optional(),
|
|
58290
58087
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58291
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
58088
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
58292
58089
|
}).transform((v2) => {
|
|
58293
58090
|
return remap(v2, {
|
|
58294
58091
|
_id: "id",
|
|
@@ -58315,7 +58112,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
58315
58112
|
createdById: stringType().optional(),
|
|
58316
58113
|
updatedById: stringType().optional(),
|
|
58317
58114
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58318
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
58115
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
58319
58116
|
}).transform((v2) => {
|
|
58320
58117
|
return remap(v2, {
|
|
58321
58118
|
id: "_id",
|
|
@@ -58416,7 +58213,7 @@ var init_updatedataset = __esm(() => {
|
|
|
58416
58213
|
parent_id: stringType().optional(),
|
|
58417
58214
|
version: stringType().optional(),
|
|
58418
58215
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
58419
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-
|
|
58216
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-08T10:06:05.308Z").transform((v2) => new Date(v2))
|
|
58420
58217
|
}).transform((v2) => {
|
|
58421
58218
|
return remap(v2, {
|
|
58422
58219
|
_id: "id",
|
|
@@ -58439,7 +58236,7 @@ var init_updatedataset = __esm(() => {
|
|
|
58439
58236
|
parentId: stringType().optional(),
|
|
58440
58237
|
version: stringType().optional(),
|
|
58441
58238
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58442
|
-
updated: dateType().default(() => new Date("2025-07-
|
|
58239
|
+
updated: dateType().default(() => new Date("2025-07-08T10:06:05.308Z")).transform((v2) => v2.toISOString())
|
|
58443
58240
|
}).transform((v2) => {
|
|
58444
58241
|
return remap(v2, {
|
|
58445
58242
|
id: "_id",
|
|
@@ -58520,7 +58317,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58520
58317
|
UpdateDatasourceStatus$.outboundSchema = UpdateDatasourceStatus$outboundSchema;
|
|
58521
58318
|
})(UpdateDatasourceStatus$ ||= {});
|
|
58522
58319
|
UpdateDatasourceResponseBody$inboundSchema = objectType({
|
|
58523
|
-
_id: stringType().default("
|
|
58320
|
+
_id: stringType().default("01JZMR03EH4T9K72F9EB2BBE7A"),
|
|
58524
58321
|
display_name: stringType(),
|
|
58525
58322
|
description: stringType().optional(),
|
|
58526
58323
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -58543,7 +58340,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58543
58340
|
});
|
|
58544
58341
|
});
|
|
58545
58342
|
UpdateDatasourceResponseBody$outboundSchema = objectType({
|
|
58546
|
-
id: stringType().default("
|
|
58343
|
+
id: stringType().default("01JZMR03EH4T9K72F9EB2BBE7A"),
|
|
58547
58344
|
displayName: stringType(),
|
|
58548
58345
|
description: stringType().optional(),
|
|
58549
58346
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -59249,8 +59046,8 @@ var init_updateeval = __esm(() => {
|
|
|
59249
59046
|
UpdateEvalResponseBodyPython$inboundSchema = objectType({
|
|
59250
59047
|
_id: stringType(),
|
|
59251
59048
|
description: stringType(),
|
|
59252
|
-
created: stringType().default("2025-07-
|
|
59253
|
-
updated: stringType().default("2025-07-
|
|
59049
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59050
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59254
59051
|
guardrail_config: unionType([
|
|
59255
59052
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
59256
59053
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -59267,8 +59064,8 @@ var init_updateeval = __esm(() => {
|
|
|
59267
59064
|
UpdateEvalResponseBodyPython$outboundSchema = objectType({
|
|
59268
59065
|
id: stringType(),
|
|
59269
59066
|
description: stringType(),
|
|
59270
|
-
created: stringType().default("2025-07-
|
|
59271
|
-
updated: stringType().default("2025-07-
|
|
59067
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59068
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59272
59069
|
guardrailConfig: unionType([
|
|
59273
59070
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
59274
59071
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -59361,8 +59158,8 @@ var init_updateeval = __esm(() => {
|
|
|
59361
59158
|
UpdateEvalResponseBodyHTTP$inboundSchema = objectType({
|
|
59362
59159
|
_id: stringType(),
|
|
59363
59160
|
description: stringType(),
|
|
59364
|
-
created: stringType().default("2025-07-
|
|
59365
|
-
updated: stringType().default("2025-07-
|
|
59161
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59162
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59366
59163
|
guardrail_config: unionType([
|
|
59367
59164
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
59368
59165
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -59382,8 +59179,8 @@ var init_updateeval = __esm(() => {
|
|
|
59382
59179
|
UpdateEvalResponseBodyHTTP$outboundSchema = objectType({
|
|
59383
59180
|
id: stringType(),
|
|
59384
59181
|
description: stringType(),
|
|
59385
|
-
created: stringType().default("2025-07-
|
|
59386
|
-
updated: stringType().default("2025-07-
|
|
59182
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59183
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59387
59184
|
guardrailConfig: unionType([
|
|
59388
59185
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
59389
59186
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -59473,8 +59270,8 @@ var init_updateeval = __esm(() => {
|
|
|
59473
59270
|
UpdateEvalResponseBodyJSON$inboundSchema = objectType({
|
|
59474
59271
|
_id: stringType(),
|
|
59475
59272
|
description: stringType(),
|
|
59476
|
-
created: stringType().default("2025-07-
|
|
59477
|
-
updated: stringType().default("2025-07-
|
|
59273
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59274
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59478
59275
|
guardrail_config: unionType([
|
|
59479
59276
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
59480
59277
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -59491,8 +59288,8 @@ var init_updateeval = __esm(() => {
|
|
|
59491
59288
|
UpdateEvalResponseBodyJSON$outboundSchema = objectType({
|
|
59492
59289
|
id: stringType(),
|
|
59493
59290
|
description: stringType(),
|
|
59494
|
-
created: stringType().default("2025-07-
|
|
59495
|
-
updated: stringType().default("2025-07-
|
|
59291
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59292
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59496
59293
|
guardrailConfig: unionType([
|
|
59497
59294
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
59498
59295
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -59579,8 +59376,8 @@ var init_updateeval = __esm(() => {
|
|
|
59579
59376
|
UpdateEvalResponseBodyLLM$inboundSchema = objectType({
|
|
59580
59377
|
_id: stringType(),
|
|
59581
59378
|
description: stringType(),
|
|
59582
|
-
created: stringType().default("2025-07-
|
|
59583
|
-
updated: stringType().default("2025-07-
|
|
59379
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59380
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59584
59381
|
guardrail_config: unionType([
|
|
59585
59382
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
59586
59383
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -59598,8 +59395,8 @@ var init_updateeval = __esm(() => {
|
|
|
59598
59395
|
UpdateEvalResponseBodyLLM$outboundSchema = objectType({
|
|
59599
59396
|
id: stringType(),
|
|
59600
59397
|
description: stringType(),
|
|
59601
|
-
created: stringType().default("2025-07-
|
|
59602
|
-
updated: stringType().default("2025-07-
|
|
59398
|
+
created: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59399
|
+
updated: stringType().default("2025-07-08T10:06:07.416Z"),
|
|
59603
59400
|
guardrailConfig: unionType([
|
|
59604
59401
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
59605
59402
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -67942,6 +67739,135 @@ Add metrics to a deployment`,
|
|
|
67942
67739
|
};
|
|
67943
67740
|
});
|
|
67944
67741
|
|
|
67742
|
+
// src/lib/event-streams.ts
|
|
67743
|
+
function concatBuffer(a, b2) {
|
|
67744
|
+
const c = new Uint8Array(a.length + b2.length);
|
|
67745
|
+
c.set(a, 0);
|
|
67746
|
+
c.set(b2, a.length);
|
|
67747
|
+
return c;
|
|
67748
|
+
}
|
|
67749
|
+
function findBoundary(buf) {
|
|
67750
|
+
const len = buf.length;
|
|
67751
|
+
for (let i = 0;i < len; i++) {
|
|
67752
|
+
if (i <= len - 4 && buf[i] === 13 && buf[i + 1] === 10 && buf[i + 2] === 13 && buf[i + 3] === 10) {
|
|
67753
|
+
return { index: i, length: 4 };
|
|
67754
|
+
}
|
|
67755
|
+
if (i <= len - 2 && buf[i] === 13 && buf[i + 1] === 13) {
|
|
67756
|
+
return { index: i, length: 2 };
|
|
67757
|
+
}
|
|
67758
|
+
if (i <= len - 2 && buf[i] === 10 && buf[i + 1] === 10) {
|
|
67759
|
+
return { index: i, length: 2 };
|
|
67760
|
+
}
|
|
67761
|
+
}
|
|
67762
|
+
return null;
|
|
67763
|
+
}
|
|
67764
|
+
function* chunks(remainder) {
|
|
67765
|
+
while (true) {
|
|
67766
|
+
const match2 = findBoundary(remainder);
|
|
67767
|
+
if (!match2) {
|
|
67768
|
+
yield { chunk: new Uint8Array, remainder };
|
|
67769
|
+
return;
|
|
67770
|
+
}
|
|
67771
|
+
const chunk = remainder.slice(0, match2.index);
|
|
67772
|
+
remainder = remainder.slice(match2.index + match2.length);
|
|
67773
|
+
yield { chunk, remainder };
|
|
67774
|
+
}
|
|
67775
|
+
}
|
|
67776
|
+
function parseChunk(chunk, parse) {
|
|
67777
|
+
const text = new TextDecoder().decode(chunk);
|
|
67778
|
+
const lines = text.split(/\r\n|\r|\n/);
|
|
67779
|
+
const dataLines = [];
|
|
67780
|
+
const ret = {};
|
|
67781
|
+
let ignore = true;
|
|
67782
|
+
for (const line of lines) {
|
|
67783
|
+
if (!line || line.startsWith(":"))
|
|
67784
|
+
continue;
|
|
67785
|
+
ignore = false;
|
|
67786
|
+
const i = line.indexOf(":");
|
|
67787
|
+
const field = line.slice(0, i);
|
|
67788
|
+
const value = line[i + 1] === " " ? line.slice(i + 2) : line.slice(i + 1);
|
|
67789
|
+
if (field === "data")
|
|
67790
|
+
dataLines.push(value);
|
|
67791
|
+
else if (field === "event")
|
|
67792
|
+
ret.event = value;
|
|
67793
|
+
else if (field === "id")
|
|
67794
|
+
ret.id = value;
|
|
67795
|
+
else if (field === "retry") {
|
|
67796
|
+
const n = Number(value);
|
|
67797
|
+
if (!isNaN(n))
|
|
67798
|
+
ret.retry = n;
|
|
67799
|
+
}
|
|
67800
|
+
}
|
|
67801
|
+
if (ignore)
|
|
67802
|
+
return;
|
|
67803
|
+
if (dataLines.length)
|
|
67804
|
+
ret.data = dataLines.join(`
|
|
67805
|
+
`);
|
|
67806
|
+
return parse(ret);
|
|
67807
|
+
}
|
|
67808
|
+
var EventStream;
|
|
67809
|
+
var init_event_streams = __esm(() => {
|
|
67810
|
+
EventStream = class EventStream extends ReadableStream {
|
|
67811
|
+
constructor(stream, parse) {
|
|
67812
|
+
const reader = stream.getReader();
|
|
67813
|
+
let buffer = new Uint8Array;
|
|
67814
|
+
super({
|
|
67815
|
+
async pull(controller) {
|
|
67816
|
+
try {
|
|
67817
|
+
const r = await reader.read();
|
|
67818
|
+
if (r.done)
|
|
67819
|
+
return controller.close();
|
|
67820
|
+
buffer = concatBuffer(buffer, r.value);
|
|
67821
|
+
for (const { chunk, remainder } of chunks(buffer)) {
|
|
67822
|
+
buffer = remainder;
|
|
67823
|
+
const item = parseChunk(chunk, parse);
|
|
67824
|
+
if (item?.value)
|
|
67825
|
+
controller.enqueue(item.value);
|
|
67826
|
+
if (item?.done) {
|
|
67827
|
+
await reader.cancel("done");
|
|
67828
|
+
return controller.close();
|
|
67829
|
+
}
|
|
67830
|
+
}
|
|
67831
|
+
} catch (e) {
|
|
67832
|
+
await reader.cancel(e);
|
|
67833
|
+
controller.error(e);
|
|
67834
|
+
}
|
|
67835
|
+
},
|
|
67836
|
+
cancel: (reason) => reader.cancel(reason)
|
|
67837
|
+
});
|
|
67838
|
+
}
|
|
67839
|
+
[Symbol.asyncIterator]() {
|
|
67840
|
+
const fn = ReadableStream.prototype[Symbol.asyncIterator];
|
|
67841
|
+
if (typeof fn === "function")
|
|
67842
|
+
return fn.call(this);
|
|
67843
|
+
const reader = this.getReader();
|
|
67844
|
+
return {
|
|
67845
|
+
next: async () => {
|
|
67846
|
+
const r = await reader.read();
|
|
67847
|
+
if (r.done) {
|
|
67848
|
+
reader.releaseLock();
|
|
67849
|
+
return { done: true, value: undefined };
|
|
67850
|
+
}
|
|
67851
|
+
return { done: false, value: r.value };
|
|
67852
|
+
},
|
|
67853
|
+
throw: async (e) => {
|
|
67854
|
+
await reader.cancel(e);
|
|
67855
|
+
reader.releaseLock();
|
|
67856
|
+
return { done: true, value: undefined };
|
|
67857
|
+
},
|
|
67858
|
+
return: async () => {
|
|
67859
|
+
await reader.cancel("done");
|
|
67860
|
+
reader.releaseLock();
|
|
67861
|
+
return { done: true, value: undefined };
|
|
67862
|
+
},
|
|
67863
|
+
[Symbol.asyncIterator]() {
|
|
67864
|
+
return this;
|
|
67865
|
+
}
|
|
67866
|
+
};
|
|
67867
|
+
}
|
|
67868
|
+
};
|
|
67869
|
+
});
|
|
67870
|
+
|
|
67945
67871
|
// src/funcs/deploymentsStream.ts
|
|
67946
67872
|
function deploymentsStream(client, request, options) {
|
|
67947
67873
|
return new APIPromise($do21(client, request, options));
|
|
@@ -68004,14 +67930,14 @@ async function $do21(client, request, options) {
|
|
|
68004
67930
|
}
|
|
68005
67931
|
const response = doResult.value;
|
|
68006
67932
|
const [result] = await match(sse(200, instanceOfType(ReadableStream).transform((stream) => {
|
|
68007
|
-
return new EventStream({
|
|
68008
|
-
|
|
68009
|
-
|
|
68010
|
-
|
|
68011
|
-
|
|
68012
|
-
}
|
|
67933
|
+
return new EventStream(stream, (rawEvent) => {
|
|
67934
|
+
if (rawEvent.data === "[DONE]")
|
|
67935
|
+
return { done: true };
|
|
67936
|
+
return {
|
|
67937
|
+
value: DeploymentStreamResponseBody$inboundSchema.parse(rawEvent)
|
|
67938
|
+
};
|
|
68013
67939
|
});
|
|
68014
|
-
})
|
|
67940
|
+
})), fail("4XX"), fail("5XX"))(response, req);
|
|
68015
67941
|
if (!result.ok) {
|
|
68016
67942
|
return [result, { status: "complete", request: req, response }];
|
|
68017
67943
|
}
|
|
@@ -72425,7 +72351,7 @@ Submit feedback for the LLM transaction via the API`,
|
|
|
72425
72351
|
// src/lib/files.ts
|
|
72426
72352
|
async function readableStreamToArrayBuffer(readable) {
|
|
72427
72353
|
const reader = readable.getReader();
|
|
72428
|
-
const
|
|
72354
|
+
const chunks2 = [];
|
|
72429
72355
|
let totalLength = 0;
|
|
72430
72356
|
let done = false;
|
|
72431
72357
|
while (!done) {
|
|
@@ -72433,13 +72359,13 @@ async function readableStreamToArrayBuffer(readable) {
|
|
|
72433
72359
|
if (doneReading) {
|
|
72434
72360
|
done = true;
|
|
72435
72361
|
} else {
|
|
72436
|
-
|
|
72362
|
+
chunks2.push(value);
|
|
72437
72363
|
totalLength += value.length;
|
|
72438
72364
|
}
|
|
72439
72365
|
}
|
|
72440
72366
|
const concatenatedChunks = new Uint8Array(totalLength);
|
|
72441
72367
|
let offset = 0;
|
|
72442
|
-
for (const chunk of
|
|
72368
|
+
for (const chunk of chunks2) {
|
|
72443
72369
|
concatenatedChunks.set(chunk, offset);
|
|
72444
72370
|
offset += chunk.length;
|
|
72445
72371
|
}
|
|
@@ -75541,7 +75467,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
|
75541
75467
|
function createMCPServer(deps) {
|
|
75542
75468
|
const server = new McpServer({
|
|
75543
75469
|
name: "Orq",
|
|
75544
|
-
version: "3.10.0-rc.
|
|
75470
|
+
version: "3.10.0-rc.2"
|
|
75545
75471
|
});
|
|
75546
75472
|
const client = new OrqCore({
|
|
75547
75473
|
apiKey: deps.apiKey,
|
|
@@ -76947,7 +76873,7 @@ var routes = rn({
|
|
|
76947
76873
|
var app = Ve(routes, {
|
|
76948
76874
|
name: "mcp",
|
|
76949
76875
|
versionInfo: {
|
|
76950
|
-
currentVersion: "3.10.0-rc.
|
|
76876
|
+
currentVersion: "3.10.0-rc.2"
|
|
76951
76877
|
}
|
|
76952
76878
|
});
|
|
76953
76879
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -76955,5 +76881,5 @@ export {
|
|
|
76955
76881
|
app
|
|
76956
76882
|
};
|
|
76957
76883
|
|
|
76958
|
-
//# debugId=
|
|
76884
|
+
//# debugId=7204F5FCD9D02C5364756E2164756E21
|
|
76959
76885
|
//# sourceMappingURL=mcp-server.js.map
|