@vibes.diy/api-types 12.2.2 → 12.2.4
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/app.d.ts +244 -190
- package/chat.d.ts +1132 -853
- package/invite.d.ts +64 -0
- package/invite.js +22 -0
- package/invite.js.map +1 -1
- package/package.json +4 -4
- package/prompt.d.ts +111 -0
- package/prompt.js +10 -0
- package/prompt.js.map +1 -1
- package/settings.d.ts +300 -1
- package/settings.js +9 -1
- package/settings.js.map +1 -1
- package/style.d.ts +171 -0
- package/style.js +51 -0
- package/style.js.map +1 -0
- package/vibes-diy-serv-ctx.d.ts +2 -0
- package/vibes-diy-serv-ctx.js +2 -0
- package/vibes-diy-serv-ctx.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -177,6 +177,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
177
177
|
name: string;
|
|
178
178
|
};
|
|
179
179
|
} | undefined;
|
|
180
|
+
response_format?: unknown;
|
|
180
181
|
};
|
|
181
182
|
dryRun?: boolean | undefined;
|
|
182
183
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -318,6 +319,7 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
|
|
|
318
319
|
name: string;
|
|
319
320
|
};
|
|
320
321
|
} | undefined;
|
|
322
|
+
response_format?: unknown;
|
|
321
323
|
};
|
|
322
324
|
apiKey?: string | undefined;
|
|
323
325
|
}, {}>;
|
|
@@ -393,6 +395,7 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
|
|
|
393
395
|
name: string;
|
|
394
396
|
};
|
|
395
397
|
} | undefined;
|
|
398
|
+
response_format?: unknown;
|
|
396
399
|
};
|
|
397
400
|
inputImageBase64?: string | undefined;
|
|
398
401
|
imgTarget?: {
|
|
@@ -626,6 +629,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
626
629
|
name: string;
|
|
627
630
|
};
|
|
628
631
|
} | undefined;
|
|
632
|
+
response_format?: unknown;
|
|
629
633
|
};
|
|
630
634
|
dryRun?: boolean | undefined;
|
|
631
635
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -756,6 +760,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
756
760
|
name: string;
|
|
757
761
|
};
|
|
758
762
|
} | undefined;
|
|
763
|
+
response_format?: unknown;
|
|
759
764
|
};
|
|
760
765
|
apiKey?: string | undefined;
|
|
761
766
|
} | {
|
|
@@ -829,6 +834,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
829
834
|
name: string;
|
|
830
835
|
};
|
|
831
836
|
} | undefined;
|
|
837
|
+
response_format?: unknown;
|
|
832
838
|
};
|
|
833
839
|
inputImageBase64?: string | undefined;
|
|
834
840
|
imgTarget?: {
|
|
@@ -1015,6 +1021,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1015
1021
|
name: string;
|
|
1016
1022
|
};
|
|
1017
1023
|
} | undefined;
|
|
1024
|
+
response_format?: unknown;
|
|
1018
1025
|
};
|
|
1019
1026
|
dryRun?: boolean | undefined;
|
|
1020
1027
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -1145,6 +1152,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1145
1152
|
name: string;
|
|
1146
1153
|
};
|
|
1147
1154
|
} | undefined;
|
|
1155
|
+
response_format?: unknown;
|
|
1148
1156
|
};
|
|
1149
1157
|
apiKey?: string | undefined;
|
|
1150
1158
|
} | {
|
|
@@ -1218,6 +1226,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1218
1226
|
name: string;
|
|
1219
1227
|
};
|
|
1220
1228
|
} | undefined;
|
|
1229
|
+
response_format?: unknown;
|
|
1221
1230
|
};
|
|
1222
1231
|
inputImageBase64?: string | undefined;
|
|
1223
1232
|
imgTarget?: {
|
|
@@ -1341,201 +1350,6 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1341
1350
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
1342
1351
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
1343
1352
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1344
|
-
blockId: string;
|
|
1345
|
-
streamId: string;
|
|
1346
|
-
seq: number;
|
|
1347
|
-
blockNr: number;
|
|
1348
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1349
|
-
type: "block.begin";
|
|
1350
|
-
} | {
|
|
1351
|
-
blockId: string;
|
|
1352
|
-
streamId: string;
|
|
1353
|
-
seq: number;
|
|
1354
|
-
blockNr: number;
|
|
1355
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1356
|
-
type: "block.end";
|
|
1357
|
-
stats: {
|
|
1358
|
-
toplevel: {
|
|
1359
|
-
lines: number;
|
|
1360
|
-
bytes: number;
|
|
1361
|
-
cnt?: number | undefined;
|
|
1362
|
-
};
|
|
1363
|
-
code: {
|
|
1364
|
-
lines: number;
|
|
1365
|
-
bytes: number;
|
|
1366
|
-
cnt?: number | undefined;
|
|
1367
|
-
};
|
|
1368
|
-
image: {
|
|
1369
|
-
lines: number;
|
|
1370
|
-
bytes: number;
|
|
1371
|
-
cnt?: number | undefined;
|
|
1372
|
-
};
|
|
1373
|
-
total: {
|
|
1374
|
-
lines: number;
|
|
1375
|
-
bytes: number;
|
|
1376
|
-
cnt?: number | undefined;
|
|
1377
|
-
};
|
|
1378
|
-
};
|
|
1379
|
-
usage: {
|
|
1380
|
-
given: {
|
|
1381
|
-
prompt_tokens: number;
|
|
1382
|
-
completion_tokens: number;
|
|
1383
|
-
total_tokens: number;
|
|
1384
|
-
}[];
|
|
1385
|
-
calculated: {
|
|
1386
|
-
prompt_tokens: number;
|
|
1387
|
-
completion_tokens: number;
|
|
1388
|
-
total_tokens: number;
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
fsRef?: ((In: {
|
|
1392
|
-
appSlug: string;
|
|
1393
|
-
ownerHandle?: string | undefined;
|
|
1394
|
-
userSlug?: string | undefined;
|
|
1395
|
-
mode: "dev" | "production";
|
|
1396
|
-
fsId: string;
|
|
1397
|
-
}) => import("arktype").Out<{
|
|
1398
|
-
appSlug: string;
|
|
1399
|
-
mode: "dev" | "production";
|
|
1400
|
-
fsId: string;
|
|
1401
|
-
ownerHandle: string;
|
|
1402
|
-
}>) | undefined;
|
|
1403
|
-
} | {
|
|
1404
|
-
blockId: string;
|
|
1405
|
-
streamId: string;
|
|
1406
|
-
seq: number;
|
|
1407
|
-
blockNr: number;
|
|
1408
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1409
|
-
type: "block.toplevel.begin";
|
|
1410
|
-
sectionId: string;
|
|
1411
|
-
} | {
|
|
1412
|
-
blockId: string;
|
|
1413
|
-
streamId: string;
|
|
1414
|
-
seq: number;
|
|
1415
|
-
blockNr: number;
|
|
1416
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1417
|
-
lineNr: number;
|
|
1418
|
-
line: string;
|
|
1419
|
-
type: "block.toplevel.line";
|
|
1420
|
-
sectionId: string;
|
|
1421
|
-
} | {
|
|
1422
|
-
blockId: string;
|
|
1423
|
-
streamId: string;
|
|
1424
|
-
seq: number;
|
|
1425
|
-
blockNr: number;
|
|
1426
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1427
|
-
stats: {
|
|
1428
|
-
lines: number;
|
|
1429
|
-
bytes: number;
|
|
1430
|
-
cnt?: number | undefined;
|
|
1431
|
-
};
|
|
1432
|
-
type: "block.toplevel.end";
|
|
1433
|
-
sectionId: string;
|
|
1434
|
-
} | {
|
|
1435
|
-
blockId: string;
|
|
1436
|
-
streamId: string;
|
|
1437
|
-
seq: number;
|
|
1438
|
-
blockNr: number;
|
|
1439
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1440
|
-
type: "block.code.begin";
|
|
1441
|
-
sectionId: string;
|
|
1442
|
-
lang: string;
|
|
1443
|
-
path?: string | undefined;
|
|
1444
|
-
} | {
|
|
1445
|
-
blockId: string;
|
|
1446
|
-
streamId: string;
|
|
1447
|
-
seq: number;
|
|
1448
|
-
blockNr: number;
|
|
1449
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1450
|
-
lineNr: number;
|
|
1451
|
-
line: string;
|
|
1452
|
-
type: "block.code.line";
|
|
1453
|
-
sectionId: string;
|
|
1454
|
-
lang: string;
|
|
1455
|
-
path?: string | undefined;
|
|
1456
|
-
} | {
|
|
1457
|
-
blockId: string;
|
|
1458
|
-
streamId: string;
|
|
1459
|
-
seq: number;
|
|
1460
|
-
blockNr: number;
|
|
1461
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1462
|
-
stats: {
|
|
1463
|
-
lines: number;
|
|
1464
|
-
bytes: number;
|
|
1465
|
-
cnt?: number | undefined;
|
|
1466
|
-
};
|
|
1467
|
-
type: "block.code.end";
|
|
1468
|
-
sectionId: string;
|
|
1469
|
-
lang: string;
|
|
1470
|
-
path?: string | undefined;
|
|
1471
|
-
} | {
|
|
1472
|
-
blockId: string;
|
|
1473
|
-
streamId: string;
|
|
1474
|
-
seq: number;
|
|
1475
|
-
blockNr: number;
|
|
1476
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1477
|
-
type: "block.code.truncated";
|
|
1478
|
-
sectionId: string;
|
|
1479
|
-
lang: string;
|
|
1480
|
-
path?: string | undefined;
|
|
1481
|
-
reason: string;
|
|
1482
|
-
kind: string;
|
|
1483
|
-
truncatedAtLine: number;
|
|
1484
|
-
errorCount: number;
|
|
1485
|
-
} | {
|
|
1486
|
-
blockId: string;
|
|
1487
|
-
streamId: string;
|
|
1488
|
-
seq: number;
|
|
1489
|
-
blockNr: number;
|
|
1490
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1491
|
-
stats: {
|
|
1492
|
-
lines: number;
|
|
1493
|
-
bytes: number;
|
|
1494
|
-
cnt?: number | undefined;
|
|
1495
|
-
};
|
|
1496
|
-
type: "block.image";
|
|
1497
|
-
sectionId: string;
|
|
1498
|
-
url?: string | undefined;
|
|
1499
|
-
uploadId?: string | undefined;
|
|
1500
|
-
cid?: string | undefined;
|
|
1501
|
-
mimeType?: string | undefined;
|
|
1502
|
-
size?: number | undefined;
|
|
1503
|
-
docWritten?: boolean | undefined;
|
|
1504
|
-
} | {
|
|
1505
|
-
blockId: string;
|
|
1506
|
-
streamId: string;
|
|
1507
|
-
seq: number;
|
|
1508
|
-
blockNr: number;
|
|
1509
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1510
|
-
type: "block.stats";
|
|
1511
|
-
stats: {
|
|
1512
|
-
toplevel: {
|
|
1513
|
-
lines: number;
|
|
1514
|
-
bytes: number;
|
|
1515
|
-
cnt?: number | undefined;
|
|
1516
|
-
};
|
|
1517
|
-
code: {
|
|
1518
|
-
lines: number;
|
|
1519
|
-
bytes: number;
|
|
1520
|
-
cnt?: number | undefined;
|
|
1521
|
-
};
|
|
1522
|
-
image: {
|
|
1523
|
-
lines: number;
|
|
1524
|
-
bytes: number;
|
|
1525
|
-
cnt?: number | undefined;
|
|
1526
|
-
};
|
|
1527
|
-
total: {
|
|
1528
|
-
lines: number;
|
|
1529
|
-
bytes: number;
|
|
1530
|
-
cnt?: number | undefined;
|
|
1531
|
-
};
|
|
1532
|
-
};
|
|
1533
|
-
usage: {
|
|
1534
|
-
prompt_tokens: number;
|
|
1535
|
-
completion_tokens: number;
|
|
1536
|
-
total_tokens: number;
|
|
1537
|
-
};
|
|
1538
|
-
} | {
|
|
1539
1353
|
streamId: string;
|
|
1540
1354
|
chatId: string;
|
|
1541
1355
|
seq: number;
|
|
@@ -1615,6 +1429,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1615
1429
|
name: string;
|
|
1616
1430
|
};
|
|
1617
1431
|
} | undefined;
|
|
1432
|
+
response_format?: unknown;
|
|
1618
1433
|
};
|
|
1619
1434
|
} | {
|
|
1620
1435
|
streamId: string;
|
|
@@ -1735,6 +1550,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1735
1550
|
name: string;
|
|
1736
1551
|
};
|
|
1737
1552
|
} | undefined;
|
|
1553
|
+
response_format?: unknown;
|
|
1738
1554
|
};
|
|
1739
1555
|
} | {
|
|
1740
1556
|
streamId: string;
|
|
@@ -1775,6 +1591,58 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1775
1591
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1776
1592
|
type: "prompt.system-prompt";
|
|
1777
1593
|
text: string;
|
|
1594
|
+
} | {
|
|
1595
|
+
streamId: string;
|
|
1596
|
+
chatId: string;
|
|
1597
|
+
seq: number;
|
|
1598
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1599
|
+
type: "prompt.restyle";
|
|
1600
|
+
style: {
|
|
1601
|
+
palette?: {
|
|
1602
|
+
hues: [number, ({
|
|
1603
|
+
mode: "derived";
|
|
1604
|
+
} | {
|
|
1605
|
+
mode: "pinned";
|
|
1606
|
+
h: number;
|
|
1607
|
+
} | undefined)?, ({
|
|
1608
|
+
mode: "derived";
|
|
1609
|
+
} | {
|
|
1610
|
+
mode: "pinned";
|
|
1611
|
+
h: number;
|
|
1612
|
+
} | undefined)?];
|
|
1613
|
+
character: {
|
|
1614
|
+
chroma: number;
|
|
1615
|
+
contrast: number;
|
|
1616
|
+
neutralTint: number;
|
|
1617
|
+
surfaceLift: number;
|
|
1618
|
+
fillLevel: number;
|
|
1619
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
1620
|
+
};
|
|
1621
|
+
} | undefined;
|
|
1622
|
+
font?: string | undefined;
|
|
1623
|
+
ornament?: {
|
|
1624
|
+
pad: {
|
|
1625
|
+
x: number;
|
|
1626
|
+
y: number;
|
|
1627
|
+
};
|
|
1628
|
+
pins?: {
|
|
1629
|
+
spacing?: string | undefined;
|
|
1630
|
+
"font-size-base"?: string | undefined;
|
|
1631
|
+
radius?: string | undefined;
|
|
1632
|
+
"radius-sm"?: string | undefined;
|
|
1633
|
+
"radius-lg"?: string | undefined;
|
|
1634
|
+
"border-width"?: string | undefined;
|
|
1635
|
+
shadow?: string | undefined;
|
|
1636
|
+
"shadow-sm"?: string | undefined;
|
|
1637
|
+
"shadow-lg"?: string | undefined;
|
|
1638
|
+
"letter-spacing"?: string | undefined;
|
|
1639
|
+
"letter-spacing-wide"?: string | undefined;
|
|
1640
|
+
"font-weight"?: string | undefined;
|
|
1641
|
+
"text-transform"?: string | undefined;
|
|
1642
|
+
} | undefined;
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
};
|
|
1645
|
+
description: string;
|
|
1778
1646
|
} | {
|
|
1779
1647
|
type: "prompt.research";
|
|
1780
1648
|
version: 1;
|
|
@@ -1813,210 +1681,210 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1813
1681
|
}[];
|
|
1814
1682
|
completedAt: string;
|
|
1815
1683
|
errorCode?: string | undefined;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
promptId: string;
|
|
1822
|
-
blockSeq: number;
|
|
1684
|
+
} | {
|
|
1685
|
+
blockId: string;
|
|
1686
|
+
streamId: string;
|
|
1687
|
+
seq: number;
|
|
1688
|
+
blockNr: number;
|
|
1823
1689
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
seq: number;
|
|
1835
|
-
blockNr: number;
|
|
1836
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1837
|
-
type: "block.end";
|
|
1838
|
-
stats: {
|
|
1839
|
-
toplevel: {
|
|
1840
|
-
lines: number;
|
|
1841
|
-
bytes: number;
|
|
1842
|
-
cnt?: number | undefined;
|
|
1843
|
-
};
|
|
1844
|
-
code: {
|
|
1845
|
-
lines: number;
|
|
1846
|
-
bytes: number;
|
|
1847
|
-
cnt?: number | undefined;
|
|
1848
|
-
};
|
|
1849
|
-
image: {
|
|
1850
|
-
lines: number;
|
|
1851
|
-
bytes: number;
|
|
1852
|
-
cnt?: number | undefined;
|
|
1853
|
-
};
|
|
1854
|
-
total: {
|
|
1855
|
-
lines: number;
|
|
1856
|
-
bytes: number;
|
|
1857
|
-
cnt?: number | undefined;
|
|
1858
|
-
};
|
|
1859
|
-
};
|
|
1860
|
-
usage: {
|
|
1861
|
-
given: {
|
|
1862
|
-
prompt_tokens: number;
|
|
1863
|
-
completion_tokens: number;
|
|
1864
|
-
total_tokens: number;
|
|
1865
|
-
}[];
|
|
1866
|
-
calculated: {
|
|
1867
|
-
prompt_tokens: number;
|
|
1868
|
-
completion_tokens: number;
|
|
1869
|
-
total_tokens: number;
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
fsRef?: ((In: {
|
|
1873
|
-
appSlug: string;
|
|
1874
|
-
ownerHandle?: string | undefined;
|
|
1875
|
-
userSlug?: string | undefined;
|
|
1876
|
-
mode: "dev" | "production";
|
|
1877
|
-
fsId: string;
|
|
1878
|
-
}) => import("arktype").Out<{
|
|
1879
|
-
appSlug: string;
|
|
1880
|
-
mode: "dev" | "production";
|
|
1881
|
-
fsId: string;
|
|
1882
|
-
ownerHandle: string;
|
|
1883
|
-
}>) | undefined;
|
|
1884
|
-
} | {
|
|
1885
|
-
blockId: string;
|
|
1886
|
-
streamId: string;
|
|
1887
|
-
seq: number;
|
|
1888
|
-
blockNr: number;
|
|
1889
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1890
|
-
type: "block.toplevel.begin";
|
|
1891
|
-
sectionId: string;
|
|
1892
|
-
} | {
|
|
1893
|
-
blockId: string;
|
|
1894
|
-
streamId: string;
|
|
1895
|
-
seq: number;
|
|
1896
|
-
blockNr: number;
|
|
1897
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1898
|
-
lineNr: number;
|
|
1899
|
-
line: string;
|
|
1900
|
-
type: "block.toplevel.line";
|
|
1901
|
-
sectionId: string;
|
|
1902
|
-
} | {
|
|
1903
|
-
blockId: string;
|
|
1904
|
-
streamId: string;
|
|
1905
|
-
seq: number;
|
|
1906
|
-
blockNr: number;
|
|
1907
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1908
|
-
stats: {
|
|
1690
|
+
type: "block.begin";
|
|
1691
|
+
} | {
|
|
1692
|
+
blockId: string;
|
|
1693
|
+
streamId: string;
|
|
1694
|
+
seq: number;
|
|
1695
|
+
blockNr: number;
|
|
1696
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1697
|
+
type: "block.end";
|
|
1698
|
+
stats: {
|
|
1699
|
+
toplevel: {
|
|
1909
1700
|
lines: number;
|
|
1910
1701
|
bytes: number;
|
|
1911
1702
|
cnt?: number | undefined;
|
|
1912
1703
|
};
|
|
1913
|
-
|
|
1914
|
-
sectionId: string;
|
|
1915
|
-
} | {
|
|
1916
|
-
blockId: string;
|
|
1917
|
-
streamId: string;
|
|
1918
|
-
seq: number;
|
|
1919
|
-
blockNr: number;
|
|
1920
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1921
|
-
type: "block.code.begin";
|
|
1922
|
-
sectionId: string;
|
|
1923
|
-
lang: string;
|
|
1924
|
-
path?: string | undefined;
|
|
1925
|
-
} | {
|
|
1926
|
-
blockId: string;
|
|
1927
|
-
streamId: string;
|
|
1928
|
-
seq: number;
|
|
1929
|
-
blockNr: number;
|
|
1930
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1931
|
-
lineNr: number;
|
|
1932
|
-
line: string;
|
|
1933
|
-
type: "block.code.line";
|
|
1934
|
-
sectionId: string;
|
|
1935
|
-
lang: string;
|
|
1936
|
-
path?: string | undefined;
|
|
1937
|
-
} | {
|
|
1938
|
-
blockId: string;
|
|
1939
|
-
streamId: string;
|
|
1940
|
-
seq: number;
|
|
1941
|
-
blockNr: number;
|
|
1942
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1943
|
-
stats: {
|
|
1704
|
+
code: {
|
|
1944
1705
|
lines: number;
|
|
1945
1706
|
bytes: number;
|
|
1946
1707
|
cnt?: number | undefined;
|
|
1947
1708
|
};
|
|
1948
|
-
|
|
1949
|
-
sectionId: string;
|
|
1950
|
-
lang: string;
|
|
1951
|
-
path?: string | undefined;
|
|
1952
|
-
} | {
|
|
1953
|
-
blockId: string;
|
|
1954
|
-
streamId: string;
|
|
1955
|
-
seq: number;
|
|
1956
|
-
blockNr: number;
|
|
1957
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1958
|
-
type: "block.code.truncated";
|
|
1959
|
-
sectionId: string;
|
|
1960
|
-
lang: string;
|
|
1961
|
-
path?: string | undefined;
|
|
1962
|
-
reason: string;
|
|
1963
|
-
kind: string;
|
|
1964
|
-
truncatedAtLine: number;
|
|
1965
|
-
errorCount: number;
|
|
1966
|
-
} | {
|
|
1967
|
-
blockId: string;
|
|
1968
|
-
streamId: string;
|
|
1969
|
-
seq: number;
|
|
1970
|
-
blockNr: number;
|
|
1971
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1972
|
-
stats: {
|
|
1709
|
+
image: {
|
|
1973
1710
|
lines: number;
|
|
1974
1711
|
bytes: number;
|
|
1975
1712
|
cnt?: number | undefined;
|
|
1976
1713
|
};
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
cid?: string | undefined;
|
|
1982
|
-
mimeType?: string | undefined;
|
|
1983
|
-
size?: number | undefined;
|
|
1984
|
-
docWritten?: boolean | undefined;
|
|
1985
|
-
} | {
|
|
1986
|
-
blockId: string;
|
|
1987
|
-
streamId: string;
|
|
1988
|
-
seq: number;
|
|
1989
|
-
blockNr: number;
|
|
1990
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1991
|
-
type: "block.stats";
|
|
1992
|
-
stats: {
|
|
1993
|
-
toplevel: {
|
|
1994
|
-
lines: number;
|
|
1995
|
-
bytes: number;
|
|
1996
|
-
cnt?: number | undefined;
|
|
1997
|
-
};
|
|
1998
|
-
code: {
|
|
1999
|
-
lines: number;
|
|
2000
|
-
bytes: number;
|
|
2001
|
-
cnt?: number | undefined;
|
|
2002
|
-
};
|
|
2003
|
-
image: {
|
|
2004
|
-
lines: number;
|
|
2005
|
-
bytes: number;
|
|
2006
|
-
cnt?: number | undefined;
|
|
2007
|
-
};
|
|
2008
|
-
total: {
|
|
2009
|
-
lines: number;
|
|
2010
|
-
bytes: number;
|
|
2011
|
-
cnt?: number | undefined;
|
|
2012
|
-
};
|
|
1714
|
+
total: {
|
|
1715
|
+
lines: number;
|
|
1716
|
+
bytes: number;
|
|
1717
|
+
cnt?: number | undefined;
|
|
2013
1718
|
};
|
|
2014
|
-
|
|
1719
|
+
};
|
|
1720
|
+
usage: {
|
|
1721
|
+
given: {
|
|
1722
|
+
prompt_tokens: number;
|
|
1723
|
+
completion_tokens: number;
|
|
1724
|
+
total_tokens: number;
|
|
1725
|
+
}[];
|
|
1726
|
+
calculated: {
|
|
2015
1727
|
prompt_tokens: number;
|
|
2016
1728
|
completion_tokens: number;
|
|
2017
1729
|
total_tokens: number;
|
|
2018
1730
|
};
|
|
2019
|
-
}
|
|
1731
|
+
};
|
|
1732
|
+
fsRef?: ((In: {
|
|
1733
|
+
appSlug: string;
|
|
1734
|
+
ownerHandle?: string | undefined;
|
|
1735
|
+
userSlug?: string | undefined;
|
|
1736
|
+
mode: "dev" | "production";
|
|
1737
|
+
fsId: string;
|
|
1738
|
+
}) => import("arktype").Out<{
|
|
1739
|
+
appSlug: string;
|
|
1740
|
+
mode: "dev" | "production";
|
|
1741
|
+
fsId: string;
|
|
1742
|
+
ownerHandle: string;
|
|
1743
|
+
}>) | undefined;
|
|
1744
|
+
} | {
|
|
1745
|
+
blockId: string;
|
|
1746
|
+
streamId: string;
|
|
1747
|
+
seq: number;
|
|
1748
|
+
blockNr: number;
|
|
1749
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1750
|
+
type: "block.stats";
|
|
1751
|
+
stats: {
|
|
1752
|
+
toplevel: {
|
|
1753
|
+
lines: number;
|
|
1754
|
+
bytes: number;
|
|
1755
|
+
cnt?: number | undefined;
|
|
1756
|
+
};
|
|
1757
|
+
code: {
|
|
1758
|
+
lines: number;
|
|
1759
|
+
bytes: number;
|
|
1760
|
+
cnt?: number | undefined;
|
|
1761
|
+
};
|
|
1762
|
+
image: {
|
|
1763
|
+
lines: number;
|
|
1764
|
+
bytes: number;
|
|
1765
|
+
cnt?: number | undefined;
|
|
1766
|
+
};
|
|
1767
|
+
total: {
|
|
1768
|
+
lines: number;
|
|
1769
|
+
bytes: number;
|
|
1770
|
+
cnt?: number | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
usage: {
|
|
1774
|
+
prompt_tokens: number;
|
|
1775
|
+
completion_tokens: number;
|
|
1776
|
+
total_tokens: number;
|
|
1777
|
+
};
|
|
1778
|
+
} | {
|
|
1779
|
+
blockId: string;
|
|
1780
|
+
streamId: string;
|
|
1781
|
+
seq: number;
|
|
1782
|
+
blockNr: number;
|
|
1783
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1784
|
+
stats: {
|
|
1785
|
+
lines: number;
|
|
1786
|
+
bytes: number;
|
|
1787
|
+
cnt?: number | undefined;
|
|
1788
|
+
};
|
|
1789
|
+
type: "block.image";
|
|
1790
|
+
sectionId: string;
|
|
1791
|
+
url?: string | undefined;
|
|
1792
|
+
uploadId?: string | undefined;
|
|
1793
|
+
cid?: string | undefined;
|
|
1794
|
+
mimeType?: string | undefined;
|
|
1795
|
+
size?: number | undefined;
|
|
1796
|
+
docWritten?: boolean | undefined;
|
|
1797
|
+
} | {
|
|
1798
|
+
blockId: string;
|
|
1799
|
+
streamId: string;
|
|
1800
|
+
seq: number;
|
|
1801
|
+
blockNr: number;
|
|
1802
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1803
|
+
type: "block.code.begin";
|
|
1804
|
+
sectionId: string;
|
|
1805
|
+
lang: string;
|
|
1806
|
+
path?: string | undefined;
|
|
1807
|
+
} | {
|
|
1808
|
+
blockId: string;
|
|
1809
|
+
streamId: string;
|
|
1810
|
+
seq: number;
|
|
1811
|
+
blockNr: number;
|
|
1812
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1813
|
+
lineNr: number;
|
|
1814
|
+
line: string;
|
|
1815
|
+
type: "block.code.line";
|
|
1816
|
+
sectionId: string;
|
|
1817
|
+
lang: string;
|
|
1818
|
+
path?: string | undefined;
|
|
1819
|
+
} | {
|
|
1820
|
+
blockId: string;
|
|
1821
|
+
streamId: string;
|
|
1822
|
+
seq: number;
|
|
1823
|
+
blockNr: number;
|
|
1824
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1825
|
+
stats: {
|
|
1826
|
+
lines: number;
|
|
1827
|
+
bytes: number;
|
|
1828
|
+
cnt?: number | undefined;
|
|
1829
|
+
};
|
|
1830
|
+
type: "block.code.end";
|
|
1831
|
+
sectionId: string;
|
|
1832
|
+
lang: string;
|
|
1833
|
+
path?: string | undefined;
|
|
1834
|
+
} | {
|
|
1835
|
+
blockId: string;
|
|
1836
|
+
streamId: string;
|
|
1837
|
+
seq: number;
|
|
1838
|
+
blockNr: number;
|
|
1839
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1840
|
+
type: "block.code.truncated";
|
|
1841
|
+
sectionId: string;
|
|
1842
|
+
lang: string;
|
|
1843
|
+
path?: string | undefined;
|
|
1844
|
+
reason: string;
|
|
1845
|
+
kind: string;
|
|
1846
|
+
truncatedAtLine: number;
|
|
1847
|
+
errorCount: number;
|
|
1848
|
+
} | {
|
|
1849
|
+
blockId: string;
|
|
1850
|
+
streamId: string;
|
|
1851
|
+
seq: number;
|
|
1852
|
+
blockNr: number;
|
|
1853
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1854
|
+
type: "block.toplevel.begin";
|
|
1855
|
+
sectionId: string;
|
|
1856
|
+
} | {
|
|
1857
|
+
blockId: string;
|
|
1858
|
+
streamId: string;
|
|
1859
|
+
seq: number;
|
|
1860
|
+
blockNr: number;
|
|
1861
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1862
|
+
lineNr: number;
|
|
1863
|
+
line: string;
|
|
1864
|
+
type: "block.toplevel.line";
|
|
1865
|
+
sectionId: string;
|
|
1866
|
+
} | {
|
|
1867
|
+
blockId: string;
|
|
1868
|
+
streamId: string;
|
|
1869
|
+
seq: number;
|
|
1870
|
+
blockNr: number;
|
|
1871
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1872
|
+
stats: {
|
|
1873
|
+
lines: number;
|
|
1874
|
+
bytes: number;
|
|
1875
|
+
cnt?: number | undefined;
|
|
1876
|
+
};
|
|
1877
|
+
type: "block.toplevel.end";
|
|
1878
|
+
sectionId: string;
|
|
1879
|
+
}, {}>;
|
|
1880
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
1881
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1882
|
+
type: "vibes.diy.section-event";
|
|
1883
|
+
chatId: string;
|
|
1884
|
+
promptId: string;
|
|
1885
|
+
blockSeq: number;
|
|
1886
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1887
|
+
blocks: ({
|
|
2020
1888
|
streamId: string;
|
|
2021
1889
|
chatId: string;
|
|
2022
1890
|
seq: number;
|
|
@@ -2096,6 +1964,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2096
1964
|
name: string;
|
|
2097
1965
|
};
|
|
2098
1966
|
} | undefined;
|
|
1967
|
+
response_format?: unknown;
|
|
2099
1968
|
};
|
|
2100
1969
|
} | {
|
|
2101
1970
|
streamId: string;
|
|
@@ -2216,6 +2085,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2216
2085
|
name: string;
|
|
2217
2086
|
};
|
|
2218
2087
|
} | undefined;
|
|
2088
|
+
response_format?: unknown;
|
|
2219
2089
|
};
|
|
2220
2090
|
} | {
|
|
2221
2091
|
streamId: string;
|
|
@@ -2256,6 +2126,58 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2256
2126
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2257
2127
|
type: "prompt.system-prompt";
|
|
2258
2128
|
text: string;
|
|
2129
|
+
} | {
|
|
2130
|
+
streamId: string;
|
|
2131
|
+
chatId: string;
|
|
2132
|
+
seq: number;
|
|
2133
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2134
|
+
type: "prompt.restyle";
|
|
2135
|
+
style: {
|
|
2136
|
+
palette?: {
|
|
2137
|
+
hues: [number, ({
|
|
2138
|
+
mode: "derived";
|
|
2139
|
+
} | {
|
|
2140
|
+
mode: "pinned";
|
|
2141
|
+
h: number;
|
|
2142
|
+
} | undefined)?, ({
|
|
2143
|
+
mode: "derived";
|
|
2144
|
+
} | {
|
|
2145
|
+
mode: "pinned";
|
|
2146
|
+
h: number;
|
|
2147
|
+
} | undefined)?];
|
|
2148
|
+
character: {
|
|
2149
|
+
chroma: number;
|
|
2150
|
+
contrast: number;
|
|
2151
|
+
neutralTint: number;
|
|
2152
|
+
surfaceLift: number;
|
|
2153
|
+
fillLevel: number;
|
|
2154
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
2155
|
+
};
|
|
2156
|
+
} | undefined;
|
|
2157
|
+
font?: string | undefined;
|
|
2158
|
+
ornament?: {
|
|
2159
|
+
pad: {
|
|
2160
|
+
x: number;
|
|
2161
|
+
y: number;
|
|
2162
|
+
};
|
|
2163
|
+
pins?: {
|
|
2164
|
+
spacing?: string | undefined;
|
|
2165
|
+
"font-size-base"?: string | undefined;
|
|
2166
|
+
radius?: string | undefined;
|
|
2167
|
+
"radius-sm"?: string | undefined;
|
|
2168
|
+
"radius-lg"?: string | undefined;
|
|
2169
|
+
"border-width"?: string | undefined;
|
|
2170
|
+
shadow?: string | undefined;
|
|
2171
|
+
"shadow-sm"?: string | undefined;
|
|
2172
|
+
"shadow-lg"?: string | undefined;
|
|
2173
|
+
"letter-spacing"?: string | undefined;
|
|
2174
|
+
"letter-spacing-wide"?: string | undefined;
|
|
2175
|
+
"font-weight"?: string | undefined;
|
|
2176
|
+
"text-transform"?: string | undefined;
|
|
2177
|
+
} | undefined;
|
|
2178
|
+
} | undefined;
|
|
2179
|
+
};
|
|
2180
|
+
description: string;
|
|
2259
2181
|
} | {
|
|
2260
2182
|
type: "prompt.research";
|
|
2261
2183
|
version: 1;
|
|
@@ -2294,27 +2216,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2294
2216
|
}[];
|
|
2295
2217
|
completedAt: string;
|
|
2296
2218
|
errorCode?: string | undefined;
|
|
2297
|
-
}
|
|
2298
|
-
initiator?: "platform" | undefined;
|
|
2299
|
-
}, {}>;
|
|
2300
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
2301
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
2302
|
-
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2303
|
-
type: "vibes.diy.req-get-chat-response";
|
|
2304
|
-
auth: {
|
|
2305
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2306
|
-
token: string;
|
|
2307
|
-
};
|
|
2308
|
-
ownerHandle: string;
|
|
2309
|
-
appSlug: string;
|
|
2310
|
-
chatId?: string | undefined;
|
|
2311
|
-
promptId?: string | undefined;
|
|
2312
|
-
}, {}>;
|
|
2313
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
2314
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
2315
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2316
|
-
blockSeq: number;
|
|
2317
|
-
blocks: ({
|
|
2219
|
+
} | {
|
|
2318
2220
|
blockId: string;
|
|
2319
2221
|
streamId: string;
|
|
2320
2222
|
seq: number;
|
|
@@ -2380,18 +2282,34 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2380
2282
|
seq: number;
|
|
2381
2283
|
blockNr: number;
|
|
2382
2284
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2383
|
-
type: "block.
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2285
|
+
type: "block.stats";
|
|
2286
|
+
stats: {
|
|
2287
|
+
toplevel: {
|
|
2288
|
+
lines: number;
|
|
2289
|
+
bytes: number;
|
|
2290
|
+
cnt?: number | undefined;
|
|
2291
|
+
};
|
|
2292
|
+
code: {
|
|
2293
|
+
lines: number;
|
|
2294
|
+
bytes: number;
|
|
2295
|
+
cnt?: number | undefined;
|
|
2296
|
+
};
|
|
2297
|
+
image: {
|
|
2298
|
+
lines: number;
|
|
2299
|
+
bytes: number;
|
|
2300
|
+
cnt?: number | undefined;
|
|
2301
|
+
};
|
|
2302
|
+
total: {
|
|
2303
|
+
lines: number;
|
|
2304
|
+
bytes: number;
|
|
2305
|
+
cnt?: number | undefined;
|
|
2306
|
+
};
|
|
2307
|
+
};
|
|
2308
|
+
usage: {
|
|
2309
|
+
prompt_tokens: number;
|
|
2310
|
+
completion_tokens: number;
|
|
2311
|
+
total_tokens: number;
|
|
2312
|
+
};
|
|
2395
2313
|
} | {
|
|
2396
2314
|
blockId: string;
|
|
2397
2315
|
streamId: string;
|
|
@@ -2403,8 +2321,14 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2403
2321
|
bytes: number;
|
|
2404
2322
|
cnt?: number | undefined;
|
|
2405
2323
|
};
|
|
2406
|
-
type: "block.
|
|
2324
|
+
type: "block.image";
|
|
2407
2325
|
sectionId: string;
|
|
2326
|
+
url?: string | undefined;
|
|
2327
|
+
uploadId?: string | undefined;
|
|
2328
|
+
cid?: string | undefined;
|
|
2329
|
+
mimeType?: string | undefined;
|
|
2330
|
+
size?: number | undefined;
|
|
2331
|
+
docWritten?: boolean | undefined;
|
|
2408
2332
|
} | {
|
|
2409
2333
|
blockId: string;
|
|
2410
2334
|
streamId: string;
|
|
@@ -2462,54 +2386,52 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2462
2386
|
seq: number;
|
|
2463
2387
|
blockNr: number;
|
|
2464
2388
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2389
|
+
type: "block.toplevel.begin";
|
|
2390
|
+
sectionId: string;
|
|
2391
|
+
} | {
|
|
2392
|
+
blockId: string;
|
|
2393
|
+
streamId: string;
|
|
2394
|
+
seq: number;
|
|
2395
|
+
blockNr: number;
|
|
2396
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2397
|
+
lineNr: number;
|
|
2398
|
+
line: string;
|
|
2399
|
+
type: "block.toplevel.line";
|
|
2471
2400
|
sectionId: string;
|
|
2472
|
-
url?: string | undefined;
|
|
2473
|
-
uploadId?: string | undefined;
|
|
2474
|
-
cid?: string | undefined;
|
|
2475
|
-
mimeType?: string | undefined;
|
|
2476
|
-
size?: number | undefined;
|
|
2477
|
-
docWritten?: boolean | undefined;
|
|
2478
2401
|
} | {
|
|
2479
2402
|
blockId: string;
|
|
2480
2403
|
streamId: string;
|
|
2481
2404
|
seq: number;
|
|
2482
2405
|
blockNr: number;
|
|
2483
2406
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2484
|
-
type: "block.stats";
|
|
2485
2407
|
stats: {
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
cnt?: number | undefined;
|
|
2490
|
-
};
|
|
2491
|
-
code: {
|
|
2492
|
-
lines: number;
|
|
2493
|
-
bytes: number;
|
|
2494
|
-
cnt?: number | undefined;
|
|
2495
|
-
};
|
|
2496
|
-
image: {
|
|
2497
|
-
lines: number;
|
|
2498
|
-
bytes: number;
|
|
2499
|
-
cnt?: number | undefined;
|
|
2500
|
-
};
|
|
2501
|
-
total: {
|
|
2502
|
-
lines: number;
|
|
2503
|
-
bytes: number;
|
|
2504
|
-
cnt?: number | undefined;
|
|
2505
|
-
};
|
|
2506
|
-
};
|
|
2507
|
-
usage: {
|
|
2508
|
-
prompt_tokens: number;
|
|
2509
|
-
completion_tokens: number;
|
|
2510
|
-
total_tokens: number;
|
|
2408
|
+
lines: number;
|
|
2409
|
+
bytes: number;
|
|
2410
|
+
cnt?: number | undefined;
|
|
2511
2411
|
};
|
|
2512
|
-
|
|
2412
|
+
type: "block.toplevel.end";
|
|
2413
|
+
sectionId: string;
|
|
2414
|
+
})[];
|
|
2415
|
+
initiator?: "platform" | undefined;
|
|
2416
|
+
}, {}>;
|
|
2417
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
2418
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
2419
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2420
|
+
type: "vibes.diy.req-get-chat-response";
|
|
2421
|
+
auth: {
|
|
2422
|
+
type: "clerk" | "device-id" | "ucan";
|
|
2423
|
+
token: string;
|
|
2424
|
+
};
|
|
2425
|
+
ownerHandle: string;
|
|
2426
|
+
appSlug: string;
|
|
2427
|
+
chatId?: string | undefined;
|
|
2428
|
+
promptId?: string | undefined;
|
|
2429
|
+
}, {}>;
|
|
2430
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
2431
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
2432
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2433
|
+
blockSeq: number;
|
|
2434
|
+
blocks: ({
|
|
2513
2435
|
streamId: string;
|
|
2514
2436
|
chatId: string;
|
|
2515
2437
|
seq: number;
|
|
@@ -2589,6 +2511,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2589
2511
|
name: string;
|
|
2590
2512
|
};
|
|
2591
2513
|
} | undefined;
|
|
2514
|
+
response_format?: unknown;
|
|
2592
2515
|
};
|
|
2593
2516
|
} | {
|
|
2594
2517
|
streamId: string;
|
|
@@ -2709,6 +2632,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2709
2632
|
name: string;
|
|
2710
2633
|
};
|
|
2711
2634
|
} | undefined;
|
|
2635
|
+
response_format?: unknown;
|
|
2712
2636
|
};
|
|
2713
2637
|
} | {
|
|
2714
2638
|
streamId: string;
|
|
@@ -2749,6 +2673,58 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2749
2673
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2750
2674
|
type: "prompt.system-prompt";
|
|
2751
2675
|
text: string;
|
|
2676
|
+
} | {
|
|
2677
|
+
streamId: string;
|
|
2678
|
+
chatId: string;
|
|
2679
|
+
seq: number;
|
|
2680
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2681
|
+
type: "prompt.restyle";
|
|
2682
|
+
style: {
|
|
2683
|
+
palette?: {
|
|
2684
|
+
hues: [number, ({
|
|
2685
|
+
mode: "derived";
|
|
2686
|
+
} | {
|
|
2687
|
+
mode: "pinned";
|
|
2688
|
+
h: number;
|
|
2689
|
+
} | undefined)?, ({
|
|
2690
|
+
mode: "derived";
|
|
2691
|
+
} | {
|
|
2692
|
+
mode: "pinned";
|
|
2693
|
+
h: number;
|
|
2694
|
+
} | undefined)?];
|
|
2695
|
+
character: {
|
|
2696
|
+
chroma: number;
|
|
2697
|
+
contrast: number;
|
|
2698
|
+
neutralTint: number;
|
|
2699
|
+
surfaceLift: number;
|
|
2700
|
+
fillLevel: number;
|
|
2701
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
2702
|
+
};
|
|
2703
|
+
} | undefined;
|
|
2704
|
+
font?: string | undefined;
|
|
2705
|
+
ornament?: {
|
|
2706
|
+
pad: {
|
|
2707
|
+
x: number;
|
|
2708
|
+
y: number;
|
|
2709
|
+
};
|
|
2710
|
+
pins?: {
|
|
2711
|
+
spacing?: string | undefined;
|
|
2712
|
+
"font-size-base"?: string | undefined;
|
|
2713
|
+
radius?: string | undefined;
|
|
2714
|
+
"radius-sm"?: string | undefined;
|
|
2715
|
+
"radius-lg"?: string | undefined;
|
|
2716
|
+
"border-width"?: string | undefined;
|
|
2717
|
+
shadow?: string | undefined;
|
|
2718
|
+
"shadow-sm"?: string | undefined;
|
|
2719
|
+
"shadow-lg"?: string | undefined;
|
|
2720
|
+
"letter-spacing"?: string | undefined;
|
|
2721
|
+
"letter-spacing-wide"?: string | undefined;
|
|
2722
|
+
"font-weight"?: string | undefined;
|
|
2723
|
+
"text-transform"?: string | undefined;
|
|
2724
|
+
} | undefined;
|
|
2725
|
+
} | undefined;
|
|
2726
|
+
};
|
|
2727
|
+
description: string;
|
|
2752
2728
|
} | {
|
|
2753
2729
|
type: "prompt.research";
|
|
2754
2730
|
version: 1;
|
|
@@ -2787,212 +2763,212 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2787
2763
|
}[];
|
|
2788
2764
|
completedAt: string;
|
|
2789
2765
|
errorCode?: string | undefined;
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
type: "block.begin";
|
|
2807
|
-
} | {
|
|
2808
|
-
blockId: string;
|
|
2809
|
-
streamId: string;
|
|
2810
|
-
seq: number;
|
|
2811
|
-
blockNr: number;
|
|
2812
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2813
|
-
type: "block.end";
|
|
2814
|
-
stats: {
|
|
2815
|
-
toplevel: {
|
|
2816
|
-
lines: number;
|
|
2817
|
-
bytes: number;
|
|
2818
|
-
cnt?: number | undefined;
|
|
2819
|
-
};
|
|
2820
|
-
code: {
|
|
2821
|
-
lines: number;
|
|
2822
|
-
bytes: number;
|
|
2823
|
-
cnt?: number | undefined;
|
|
2824
|
-
};
|
|
2825
|
-
image: {
|
|
2826
|
-
lines: number;
|
|
2827
|
-
bytes: number;
|
|
2828
|
-
cnt?: number | undefined;
|
|
2829
|
-
};
|
|
2830
|
-
total: {
|
|
2831
|
-
lines: number;
|
|
2832
|
-
bytes: number;
|
|
2833
|
-
cnt?: number | undefined;
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
|
-
usage: {
|
|
2837
|
-
given: {
|
|
2838
|
-
prompt_tokens: number;
|
|
2839
|
-
completion_tokens: number;
|
|
2840
|
-
total_tokens: number;
|
|
2841
|
-
}[];
|
|
2842
|
-
calculated: {
|
|
2843
|
-
prompt_tokens: number;
|
|
2844
|
-
completion_tokens: number;
|
|
2845
|
-
total_tokens: number;
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
fsRef?: ((In: {
|
|
2849
|
-
appSlug: string;
|
|
2850
|
-
ownerHandle?: string | undefined;
|
|
2851
|
-
userSlug?: string | undefined;
|
|
2852
|
-
mode: "dev" | "production";
|
|
2853
|
-
fsId: string;
|
|
2854
|
-
}) => import("arktype").Out<{
|
|
2855
|
-
appSlug: string;
|
|
2856
|
-
mode: "dev" | "production";
|
|
2857
|
-
fsId: string;
|
|
2858
|
-
ownerHandle: string;
|
|
2859
|
-
}>) | undefined;
|
|
2860
|
-
} | {
|
|
2861
|
-
blockId: string;
|
|
2862
|
-
streamId: string;
|
|
2863
|
-
seq: number;
|
|
2864
|
-
blockNr: number;
|
|
2865
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2866
|
-
type: "block.toplevel.begin";
|
|
2867
|
-
sectionId: string;
|
|
2868
|
-
} | {
|
|
2869
|
-
blockId: string;
|
|
2870
|
-
streamId: string;
|
|
2871
|
-
seq: number;
|
|
2872
|
-
blockNr: number;
|
|
2873
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2874
|
-
lineNr: number;
|
|
2875
|
-
line: string;
|
|
2876
|
-
type: "block.toplevel.line";
|
|
2877
|
-
sectionId: string;
|
|
2878
|
-
} | {
|
|
2879
|
-
blockId: string;
|
|
2880
|
-
streamId: string;
|
|
2881
|
-
seq: number;
|
|
2882
|
-
blockNr: number;
|
|
2883
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2884
|
-
stats: {
|
|
2766
|
+
} | {
|
|
2767
|
+
blockId: string;
|
|
2768
|
+
streamId: string;
|
|
2769
|
+
seq: number;
|
|
2770
|
+
blockNr: number;
|
|
2771
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2772
|
+
type: "block.begin";
|
|
2773
|
+
} | {
|
|
2774
|
+
blockId: string;
|
|
2775
|
+
streamId: string;
|
|
2776
|
+
seq: number;
|
|
2777
|
+
blockNr: number;
|
|
2778
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2779
|
+
type: "block.end";
|
|
2780
|
+
stats: {
|
|
2781
|
+
toplevel: {
|
|
2885
2782
|
lines: number;
|
|
2886
2783
|
bytes: number;
|
|
2887
2784
|
cnt?: number | undefined;
|
|
2888
2785
|
};
|
|
2889
|
-
|
|
2890
|
-
sectionId: string;
|
|
2891
|
-
} | {
|
|
2892
|
-
blockId: string;
|
|
2893
|
-
streamId: string;
|
|
2894
|
-
seq: number;
|
|
2895
|
-
blockNr: number;
|
|
2896
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2897
|
-
type: "block.code.begin";
|
|
2898
|
-
sectionId: string;
|
|
2899
|
-
lang: string;
|
|
2900
|
-
path?: string | undefined;
|
|
2901
|
-
} | {
|
|
2902
|
-
blockId: string;
|
|
2903
|
-
streamId: string;
|
|
2904
|
-
seq: number;
|
|
2905
|
-
blockNr: number;
|
|
2906
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2907
|
-
lineNr: number;
|
|
2908
|
-
line: string;
|
|
2909
|
-
type: "block.code.line";
|
|
2910
|
-
sectionId: string;
|
|
2911
|
-
lang: string;
|
|
2912
|
-
path?: string | undefined;
|
|
2913
|
-
} | {
|
|
2914
|
-
blockId: string;
|
|
2915
|
-
streamId: string;
|
|
2916
|
-
seq: number;
|
|
2917
|
-
blockNr: number;
|
|
2918
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2919
|
-
stats: {
|
|
2786
|
+
code: {
|
|
2920
2787
|
lines: number;
|
|
2921
2788
|
bytes: number;
|
|
2922
2789
|
cnt?: number | undefined;
|
|
2923
2790
|
};
|
|
2924
|
-
|
|
2925
|
-
sectionId: string;
|
|
2926
|
-
lang: string;
|
|
2927
|
-
path?: string | undefined;
|
|
2928
|
-
} | {
|
|
2929
|
-
blockId: string;
|
|
2930
|
-
streamId: string;
|
|
2931
|
-
seq: number;
|
|
2932
|
-
blockNr: number;
|
|
2933
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2934
|
-
type: "block.code.truncated";
|
|
2935
|
-
sectionId: string;
|
|
2936
|
-
lang: string;
|
|
2937
|
-
path?: string | undefined;
|
|
2938
|
-
reason: string;
|
|
2939
|
-
kind: string;
|
|
2940
|
-
truncatedAtLine: number;
|
|
2941
|
-
errorCount: number;
|
|
2942
|
-
} | {
|
|
2943
|
-
blockId: string;
|
|
2944
|
-
streamId: string;
|
|
2945
|
-
seq: number;
|
|
2946
|
-
blockNr: number;
|
|
2947
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2948
|
-
stats: {
|
|
2791
|
+
image: {
|
|
2949
2792
|
lines: number;
|
|
2950
2793
|
bytes: number;
|
|
2951
2794
|
cnt?: number | undefined;
|
|
2952
2795
|
};
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
cid?: string | undefined;
|
|
2958
|
-
mimeType?: string | undefined;
|
|
2959
|
-
size?: number | undefined;
|
|
2960
|
-
docWritten?: boolean | undefined;
|
|
2961
|
-
} | {
|
|
2962
|
-
blockId: string;
|
|
2963
|
-
streamId: string;
|
|
2964
|
-
seq: number;
|
|
2965
|
-
blockNr: number;
|
|
2966
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2967
|
-
type: "block.stats";
|
|
2968
|
-
stats: {
|
|
2969
|
-
toplevel: {
|
|
2970
|
-
lines: number;
|
|
2971
|
-
bytes: number;
|
|
2972
|
-
cnt?: number | undefined;
|
|
2973
|
-
};
|
|
2974
|
-
code: {
|
|
2975
|
-
lines: number;
|
|
2976
|
-
bytes: number;
|
|
2977
|
-
cnt?: number | undefined;
|
|
2978
|
-
};
|
|
2979
|
-
image: {
|
|
2980
|
-
lines: number;
|
|
2981
|
-
bytes: number;
|
|
2982
|
-
cnt?: number | undefined;
|
|
2983
|
-
};
|
|
2984
|
-
total: {
|
|
2985
|
-
lines: number;
|
|
2986
|
-
bytes: number;
|
|
2987
|
-
cnt?: number | undefined;
|
|
2988
|
-
};
|
|
2796
|
+
total: {
|
|
2797
|
+
lines: number;
|
|
2798
|
+
bytes: number;
|
|
2799
|
+
cnt?: number | undefined;
|
|
2989
2800
|
};
|
|
2990
|
-
|
|
2801
|
+
};
|
|
2802
|
+
usage: {
|
|
2803
|
+
given: {
|
|
2804
|
+
prompt_tokens: number;
|
|
2805
|
+
completion_tokens: number;
|
|
2806
|
+
total_tokens: number;
|
|
2807
|
+
}[];
|
|
2808
|
+
calculated: {
|
|
2991
2809
|
prompt_tokens: number;
|
|
2992
2810
|
completion_tokens: number;
|
|
2993
2811
|
total_tokens: number;
|
|
2994
2812
|
};
|
|
2995
|
-
}
|
|
2813
|
+
};
|
|
2814
|
+
fsRef?: ((In: {
|
|
2815
|
+
appSlug: string;
|
|
2816
|
+
ownerHandle?: string | undefined;
|
|
2817
|
+
userSlug?: string | undefined;
|
|
2818
|
+
mode: "dev" | "production";
|
|
2819
|
+
fsId: string;
|
|
2820
|
+
}) => import("arktype").Out<{
|
|
2821
|
+
appSlug: string;
|
|
2822
|
+
mode: "dev" | "production";
|
|
2823
|
+
fsId: string;
|
|
2824
|
+
ownerHandle: string;
|
|
2825
|
+
}>) | undefined;
|
|
2826
|
+
} | {
|
|
2827
|
+
blockId: string;
|
|
2828
|
+
streamId: string;
|
|
2829
|
+
seq: number;
|
|
2830
|
+
blockNr: number;
|
|
2831
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2832
|
+
type: "block.stats";
|
|
2833
|
+
stats: {
|
|
2834
|
+
toplevel: {
|
|
2835
|
+
lines: number;
|
|
2836
|
+
bytes: number;
|
|
2837
|
+
cnt?: number | undefined;
|
|
2838
|
+
};
|
|
2839
|
+
code: {
|
|
2840
|
+
lines: number;
|
|
2841
|
+
bytes: number;
|
|
2842
|
+
cnt?: number | undefined;
|
|
2843
|
+
};
|
|
2844
|
+
image: {
|
|
2845
|
+
lines: number;
|
|
2846
|
+
bytes: number;
|
|
2847
|
+
cnt?: number | undefined;
|
|
2848
|
+
};
|
|
2849
|
+
total: {
|
|
2850
|
+
lines: number;
|
|
2851
|
+
bytes: number;
|
|
2852
|
+
cnt?: number | undefined;
|
|
2853
|
+
};
|
|
2854
|
+
};
|
|
2855
|
+
usage: {
|
|
2856
|
+
prompt_tokens: number;
|
|
2857
|
+
completion_tokens: number;
|
|
2858
|
+
total_tokens: number;
|
|
2859
|
+
};
|
|
2860
|
+
} | {
|
|
2861
|
+
blockId: string;
|
|
2862
|
+
streamId: string;
|
|
2863
|
+
seq: number;
|
|
2864
|
+
blockNr: number;
|
|
2865
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2866
|
+
stats: {
|
|
2867
|
+
lines: number;
|
|
2868
|
+
bytes: number;
|
|
2869
|
+
cnt?: number | undefined;
|
|
2870
|
+
};
|
|
2871
|
+
type: "block.image";
|
|
2872
|
+
sectionId: string;
|
|
2873
|
+
url?: string | undefined;
|
|
2874
|
+
uploadId?: string | undefined;
|
|
2875
|
+
cid?: string | undefined;
|
|
2876
|
+
mimeType?: string | undefined;
|
|
2877
|
+
size?: number | undefined;
|
|
2878
|
+
docWritten?: boolean | undefined;
|
|
2879
|
+
} | {
|
|
2880
|
+
blockId: string;
|
|
2881
|
+
streamId: string;
|
|
2882
|
+
seq: number;
|
|
2883
|
+
blockNr: number;
|
|
2884
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2885
|
+
type: "block.code.begin";
|
|
2886
|
+
sectionId: string;
|
|
2887
|
+
lang: string;
|
|
2888
|
+
path?: string | undefined;
|
|
2889
|
+
} | {
|
|
2890
|
+
blockId: string;
|
|
2891
|
+
streamId: string;
|
|
2892
|
+
seq: number;
|
|
2893
|
+
blockNr: number;
|
|
2894
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2895
|
+
lineNr: number;
|
|
2896
|
+
line: string;
|
|
2897
|
+
type: "block.code.line";
|
|
2898
|
+
sectionId: string;
|
|
2899
|
+
lang: string;
|
|
2900
|
+
path?: string | undefined;
|
|
2901
|
+
} | {
|
|
2902
|
+
blockId: string;
|
|
2903
|
+
streamId: string;
|
|
2904
|
+
seq: number;
|
|
2905
|
+
blockNr: number;
|
|
2906
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2907
|
+
stats: {
|
|
2908
|
+
lines: number;
|
|
2909
|
+
bytes: number;
|
|
2910
|
+
cnt?: number | undefined;
|
|
2911
|
+
};
|
|
2912
|
+
type: "block.code.end";
|
|
2913
|
+
sectionId: string;
|
|
2914
|
+
lang: string;
|
|
2915
|
+
path?: string | undefined;
|
|
2916
|
+
} | {
|
|
2917
|
+
blockId: string;
|
|
2918
|
+
streamId: string;
|
|
2919
|
+
seq: number;
|
|
2920
|
+
blockNr: number;
|
|
2921
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2922
|
+
type: "block.code.truncated";
|
|
2923
|
+
sectionId: string;
|
|
2924
|
+
lang: string;
|
|
2925
|
+
path?: string | undefined;
|
|
2926
|
+
reason: string;
|
|
2927
|
+
kind: string;
|
|
2928
|
+
truncatedAtLine: number;
|
|
2929
|
+
errorCount: number;
|
|
2930
|
+
} | {
|
|
2931
|
+
blockId: string;
|
|
2932
|
+
streamId: string;
|
|
2933
|
+
seq: number;
|
|
2934
|
+
blockNr: number;
|
|
2935
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2936
|
+
type: "block.toplevel.begin";
|
|
2937
|
+
sectionId: string;
|
|
2938
|
+
} | {
|
|
2939
|
+
blockId: string;
|
|
2940
|
+
streamId: string;
|
|
2941
|
+
seq: number;
|
|
2942
|
+
blockNr: number;
|
|
2943
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2944
|
+
lineNr: number;
|
|
2945
|
+
line: string;
|
|
2946
|
+
type: "block.toplevel.line";
|
|
2947
|
+
sectionId: string;
|
|
2948
|
+
} | {
|
|
2949
|
+
blockId: string;
|
|
2950
|
+
streamId: string;
|
|
2951
|
+
seq: number;
|
|
2952
|
+
blockNr: number;
|
|
2953
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2954
|
+
stats: {
|
|
2955
|
+
lines: number;
|
|
2956
|
+
bytes: number;
|
|
2957
|
+
cnt?: number | undefined;
|
|
2958
|
+
};
|
|
2959
|
+
type: "block.toplevel.end";
|
|
2960
|
+
sectionId: string;
|
|
2961
|
+
})[];
|
|
2962
|
+
}, {}>;
|
|
2963
|
+
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
2964
|
+
export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2965
|
+
chatId: string;
|
|
2966
|
+
promptId: string;
|
|
2967
|
+
created: string;
|
|
2968
|
+
fsId?: string | undefined;
|
|
2969
|
+
sections: {
|
|
2970
|
+
blockSeq: number;
|
|
2971
|
+
blocks: ({
|
|
2996
2972
|
streamId: string;
|
|
2997
2973
|
chatId: string;
|
|
2998
2974
|
seq: number;
|
|
@@ -3072,6 +3048,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3072
3048
|
name: string;
|
|
3073
3049
|
};
|
|
3074
3050
|
} | undefined;
|
|
3051
|
+
response_format?: unknown;
|
|
3075
3052
|
};
|
|
3076
3053
|
} | {
|
|
3077
3054
|
streamId: string;
|
|
@@ -3192,6 +3169,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3192
3169
|
name: string;
|
|
3193
3170
|
};
|
|
3194
3171
|
} | undefined;
|
|
3172
|
+
response_format?: unknown;
|
|
3195
3173
|
};
|
|
3196
3174
|
} | {
|
|
3197
3175
|
streamId: string;
|
|
@@ -3232,6 +3210,58 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3232
3210
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3233
3211
|
type: "prompt.system-prompt";
|
|
3234
3212
|
text: string;
|
|
3213
|
+
} | {
|
|
3214
|
+
streamId: string;
|
|
3215
|
+
chatId: string;
|
|
3216
|
+
seq: number;
|
|
3217
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3218
|
+
type: "prompt.restyle";
|
|
3219
|
+
style: {
|
|
3220
|
+
palette?: {
|
|
3221
|
+
hues: [number, ({
|
|
3222
|
+
mode: "derived";
|
|
3223
|
+
} | {
|
|
3224
|
+
mode: "pinned";
|
|
3225
|
+
h: number;
|
|
3226
|
+
} | undefined)?, ({
|
|
3227
|
+
mode: "derived";
|
|
3228
|
+
} | {
|
|
3229
|
+
mode: "pinned";
|
|
3230
|
+
h: number;
|
|
3231
|
+
} | undefined)?];
|
|
3232
|
+
character: {
|
|
3233
|
+
chroma: number;
|
|
3234
|
+
contrast: number;
|
|
3235
|
+
neutralTint: number;
|
|
3236
|
+
surfaceLift: number;
|
|
3237
|
+
fillLevel: number;
|
|
3238
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
3239
|
+
};
|
|
3240
|
+
} | undefined;
|
|
3241
|
+
font?: string | undefined;
|
|
3242
|
+
ornament?: {
|
|
3243
|
+
pad: {
|
|
3244
|
+
x: number;
|
|
3245
|
+
y: number;
|
|
3246
|
+
};
|
|
3247
|
+
pins?: {
|
|
3248
|
+
spacing?: string | undefined;
|
|
3249
|
+
"font-size-base"?: string | undefined;
|
|
3250
|
+
radius?: string | undefined;
|
|
3251
|
+
"radius-sm"?: string | undefined;
|
|
3252
|
+
"radius-lg"?: string | undefined;
|
|
3253
|
+
"border-width"?: string | undefined;
|
|
3254
|
+
shadow?: string | undefined;
|
|
3255
|
+
"shadow-sm"?: string | undefined;
|
|
3256
|
+
"shadow-lg"?: string | undefined;
|
|
3257
|
+
"letter-spacing"?: string | undefined;
|
|
3258
|
+
"letter-spacing-wide"?: string | undefined;
|
|
3259
|
+
"font-weight"?: string | undefined;
|
|
3260
|
+
"text-transform"?: string | undefined;
|
|
3261
|
+
} | undefined;
|
|
3262
|
+
} | undefined;
|
|
3263
|
+
};
|
|
3264
|
+
description: string;
|
|
3235
3265
|
} | {
|
|
3236
3266
|
type: "prompt.research";
|
|
3237
3267
|
version: 1;
|
|
@@ -3255,233 +3285,233 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3255
3285
|
method: string;
|
|
3256
3286
|
path: string;
|
|
3257
3287
|
description: string;
|
|
3258
|
-
fields: string[];
|
|
3259
|
-
}[];
|
|
3260
|
-
excerpts: {
|
|
3261
|
-
sourceUrl: string;
|
|
3262
|
-
text: string;
|
|
3263
|
-
locator?: string | undefined;
|
|
3264
|
-
}[];
|
|
3265
|
-
seedRows: {
|
|
3266
|
-
sourceUrl: string;
|
|
3267
|
-
dbName: string;
|
|
3268
|
-
key: string;
|
|
3269
|
-
item: unknown;
|
|
3270
|
-
}[];
|
|
3271
|
-
completedAt: string;
|
|
3272
|
-
errorCode?: string | undefined;
|
|
3273
|
-
}
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
blocks: ({
|
|
3290
|
-
blockId: string;
|
|
3291
|
-
streamId: string;
|
|
3292
|
-
seq: number;
|
|
3293
|
-
blockNr: number;
|
|
3294
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3295
|
-
type: "block.begin";
|
|
3296
|
-
} | {
|
|
3297
|
-
blockId: string;
|
|
3298
|
-
streamId: string;
|
|
3299
|
-
seq: number;
|
|
3300
|
-
blockNr: number;
|
|
3301
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3302
|
-
type: "block.end";
|
|
3303
|
-
stats: {
|
|
3304
|
-
toplevel: {
|
|
3305
|
-
lines: number;
|
|
3306
|
-
bytes: number;
|
|
3307
|
-
cnt?: number | undefined;
|
|
3308
|
-
};
|
|
3309
|
-
code: {
|
|
3310
|
-
lines: number;
|
|
3311
|
-
bytes: number;
|
|
3312
|
-
cnt?: number | undefined;
|
|
3313
|
-
};
|
|
3314
|
-
image: {
|
|
3315
|
-
lines: number;
|
|
3316
|
-
bytes: number;
|
|
3317
|
-
cnt?: number | undefined;
|
|
3318
|
-
};
|
|
3319
|
-
total: {
|
|
3320
|
-
lines: number;
|
|
3321
|
-
bytes: number;
|
|
3322
|
-
cnt?: number | undefined;
|
|
3323
|
-
};
|
|
3324
|
-
};
|
|
3325
|
-
usage: {
|
|
3326
|
-
given: {
|
|
3327
|
-
prompt_tokens: number;
|
|
3328
|
-
completion_tokens: number;
|
|
3329
|
-
total_tokens: number;
|
|
3330
|
-
}[];
|
|
3331
|
-
calculated: {
|
|
3332
|
-
prompt_tokens: number;
|
|
3333
|
-
completion_tokens: number;
|
|
3334
|
-
total_tokens: number;
|
|
3335
|
-
};
|
|
3336
|
-
};
|
|
3337
|
-
fsRef?: ((In: {
|
|
3338
|
-
appSlug: string;
|
|
3339
|
-
ownerHandle?: string | undefined;
|
|
3340
|
-
userSlug?: string | undefined;
|
|
3341
|
-
mode: "dev" | "production";
|
|
3342
|
-
fsId: string;
|
|
3343
|
-
}) => import("arktype").Out<{
|
|
3344
|
-
appSlug: string;
|
|
3345
|
-
mode: "dev" | "production";
|
|
3346
|
-
fsId: string;
|
|
3347
|
-
ownerHandle: string;
|
|
3348
|
-
}>) | undefined;
|
|
3349
|
-
} | {
|
|
3350
|
-
blockId: string;
|
|
3351
|
-
streamId: string;
|
|
3352
|
-
seq: number;
|
|
3353
|
-
blockNr: number;
|
|
3354
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3355
|
-
type: "block.toplevel.begin";
|
|
3356
|
-
sectionId: string;
|
|
3357
|
-
} | {
|
|
3358
|
-
blockId: string;
|
|
3359
|
-
streamId: string;
|
|
3360
|
-
seq: number;
|
|
3361
|
-
blockNr: number;
|
|
3362
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3363
|
-
lineNr: number;
|
|
3364
|
-
line: string;
|
|
3365
|
-
type: "block.toplevel.line";
|
|
3366
|
-
sectionId: string;
|
|
3367
|
-
} | {
|
|
3368
|
-
blockId: string;
|
|
3369
|
-
streamId: string;
|
|
3370
|
-
seq: number;
|
|
3371
|
-
blockNr: number;
|
|
3372
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3373
|
-
stats: {
|
|
3288
|
+
fields: string[];
|
|
3289
|
+
}[];
|
|
3290
|
+
excerpts: {
|
|
3291
|
+
sourceUrl: string;
|
|
3292
|
+
text: string;
|
|
3293
|
+
locator?: string | undefined;
|
|
3294
|
+
}[];
|
|
3295
|
+
seedRows: {
|
|
3296
|
+
sourceUrl: string;
|
|
3297
|
+
dbName: string;
|
|
3298
|
+
key: string;
|
|
3299
|
+
item: unknown;
|
|
3300
|
+
}[];
|
|
3301
|
+
completedAt: string;
|
|
3302
|
+
errorCode?: string | undefined;
|
|
3303
|
+
} | {
|
|
3304
|
+
blockId: string;
|
|
3305
|
+
streamId: string;
|
|
3306
|
+
seq: number;
|
|
3307
|
+
blockNr: number;
|
|
3308
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3309
|
+
type: "block.begin";
|
|
3310
|
+
} | {
|
|
3311
|
+
blockId: string;
|
|
3312
|
+
streamId: string;
|
|
3313
|
+
seq: number;
|
|
3314
|
+
blockNr: number;
|
|
3315
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3316
|
+
type: "block.end";
|
|
3317
|
+
stats: {
|
|
3318
|
+
toplevel: {
|
|
3374
3319
|
lines: number;
|
|
3375
3320
|
bytes: number;
|
|
3376
3321
|
cnt?: number | undefined;
|
|
3377
3322
|
};
|
|
3378
|
-
|
|
3379
|
-
sectionId: string;
|
|
3380
|
-
} | {
|
|
3381
|
-
blockId: string;
|
|
3382
|
-
streamId: string;
|
|
3383
|
-
seq: number;
|
|
3384
|
-
blockNr: number;
|
|
3385
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3386
|
-
type: "block.code.begin";
|
|
3387
|
-
sectionId: string;
|
|
3388
|
-
lang: string;
|
|
3389
|
-
path?: string | undefined;
|
|
3390
|
-
} | {
|
|
3391
|
-
blockId: string;
|
|
3392
|
-
streamId: string;
|
|
3393
|
-
seq: number;
|
|
3394
|
-
blockNr: number;
|
|
3395
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3396
|
-
lineNr: number;
|
|
3397
|
-
line: string;
|
|
3398
|
-
type: "block.code.line";
|
|
3399
|
-
sectionId: string;
|
|
3400
|
-
lang: string;
|
|
3401
|
-
path?: string | undefined;
|
|
3402
|
-
} | {
|
|
3403
|
-
blockId: string;
|
|
3404
|
-
streamId: string;
|
|
3405
|
-
seq: number;
|
|
3406
|
-
blockNr: number;
|
|
3407
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3408
|
-
stats: {
|
|
3323
|
+
code: {
|
|
3409
3324
|
lines: number;
|
|
3410
3325
|
bytes: number;
|
|
3411
3326
|
cnt?: number | undefined;
|
|
3412
3327
|
};
|
|
3413
|
-
|
|
3414
|
-
sectionId: string;
|
|
3415
|
-
lang: string;
|
|
3416
|
-
path?: string | undefined;
|
|
3417
|
-
} | {
|
|
3418
|
-
blockId: string;
|
|
3419
|
-
streamId: string;
|
|
3420
|
-
seq: number;
|
|
3421
|
-
blockNr: number;
|
|
3422
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3423
|
-
type: "block.code.truncated";
|
|
3424
|
-
sectionId: string;
|
|
3425
|
-
lang: string;
|
|
3426
|
-
path?: string | undefined;
|
|
3427
|
-
reason: string;
|
|
3428
|
-
kind: string;
|
|
3429
|
-
truncatedAtLine: number;
|
|
3430
|
-
errorCount: number;
|
|
3431
|
-
} | {
|
|
3432
|
-
blockId: string;
|
|
3433
|
-
streamId: string;
|
|
3434
|
-
seq: number;
|
|
3435
|
-
blockNr: number;
|
|
3436
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3437
|
-
stats: {
|
|
3328
|
+
image: {
|
|
3438
3329
|
lines: number;
|
|
3439
3330
|
bytes: number;
|
|
3440
3331
|
cnt?: number | undefined;
|
|
3441
3332
|
};
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
cid?: string | undefined;
|
|
3447
|
-
mimeType?: string | undefined;
|
|
3448
|
-
size?: number | undefined;
|
|
3449
|
-
docWritten?: boolean | undefined;
|
|
3450
|
-
} | {
|
|
3451
|
-
blockId: string;
|
|
3452
|
-
streamId: string;
|
|
3453
|
-
seq: number;
|
|
3454
|
-
blockNr: number;
|
|
3455
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3456
|
-
type: "block.stats";
|
|
3457
|
-
stats: {
|
|
3458
|
-
toplevel: {
|
|
3459
|
-
lines: number;
|
|
3460
|
-
bytes: number;
|
|
3461
|
-
cnt?: number | undefined;
|
|
3462
|
-
};
|
|
3463
|
-
code: {
|
|
3464
|
-
lines: number;
|
|
3465
|
-
bytes: number;
|
|
3466
|
-
cnt?: number | undefined;
|
|
3467
|
-
};
|
|
3468
|
-
image: {
|
|
3469
|
-
lines: number;
|
|
3470
|
-
bytes: number;
|
|
3471
|
-
cnt?: number | undefined;
|
|
3472
|
-
};
|
|
3473
|
-
total: {
|
|
3474
|
-
lines: number;
|
|
3475
|
-
bytes: number;
|
|
3476
|
-
cnt?: number | undefined;
|
|
3477
|
-
};
|
|
3333
|
+
total: {
|
|
3334
|
+
lines: number;
|
|
3335
|
+
bytes: number;
|
|
3336
|
+
cnt?: number | undefined;
|
|
3478
3337
|
};
|
|
3479
|
-
|
|
3338
|
+
};
|
|
3339
|
+
usage: {
|
|
3340
|
+
given: {
|
|
3341
|
+
prompt_tokens: number;
|
|
3342
|
+
completion_tokens: number;
|
|
3343
|
+
total_tokens: number;
|
|
3344
|
+
}[];
|
|
3345
|
+
calculated: {
|
|
3480
3346
|
prompt_tokens: number;
|
|
3481
3347
|
completion_tokens: number;
|
|
3482
3348
|
total_tokens: number;
|
|
3483
3349
|
};
|
|
3484
|
-
}
|
|
3350
|
+
};
|
|
3351
|
+
fsRef?: ((In: {
|
|
3352
|
+
appSlug: string;
|
|
3353
|
+
ownerHandle?: string | undefined;
|
|
3354
|
+
userSlug?: string | undefined;
|
|
3355
|
+
mode: "dev" | "production";
|
|
3356
|
+
fsId: string;
|
|
3357
|
+
}) => import("arktype").Out<{
|
|
3358
|
+
appSlug: string;
|
|
3359
|
+
mode: "dev" | "production";
|
|
3360
|
+
fsId: string;
|
|
3361
|
+
ownerHandle: string;
|
|
3362
|
+
}>) | undefined;
|
|
3363
|
+
} | {
|
|
3364
|
+
blockId: string;
|
|
3365
|
+
streamId: string;
|
|
3366
|
+
seq: number;
|
|
3367
|
+
blockNr: number;
|
|
3368
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3369
|
+
type: "block.stats";
|
|
3370
|
+
stats: {
|
|
3371
|
+
toplevel: {
|
|
3372
|
+
lines: number;
|
|
3373
|
+
bytes: number;
|
|
3374
|
+
cnt?: number | undefined;
|
|
3375
|
+
};
|
|
3376
|
+
code: {
|
|
3377
|
+
lines: number;
|
|
3378
|
+
bytes: number;
|
|
3379
|
+
cnt?: number | undefined;
|
|
3380
|
+
};
|
|
3381
|
+
image: {
|
|
3382
|
+
lines: number;
|
|
3383
|
+
bytes: number;
|
|
3384
|
+
cnt?: number | undefined;
|
|
3385
|
+
};
|
|
3386
|
+
total: {
|
|
3387
|
+
lines: number;
|
|
3388
|
+
bytes: number;
|
|
3389
|
+
cnt?: number | undefined;
|
|
3390
|
+
};
|
|
3391
|
+
};
|
|
3392
|
+
usage: {
|
|
3393
|
+
prompt_tokens: number;
|
|
3394
|
+
completion_tokens: number;
|
|
3395
|
+
total_tokens: number;
|
|
3396
|
+
};
|
|
3397
|
+
} | {
|
|
3398
|
+
blockId: string;
|
|
3399
|
+
streamId: string;
|
|
3400
|
+
seq: number;
|
|
3401
|
+
blockNr: number;
|
|
3402
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3403
|
+
stats: {
|
|
3404
|
+
lines: number;
|
|
3405
|
+
bytes: number;
|
|
3406
|
+
cnt?: number | undefined;
|
|
3407
|
+
};
|
|
3408
|
+
type: "block.image";
|
|
3409
|
+
sectionId: string;
|
|
3410
|
+
url?: string | undefined;
|
|
3411
|
+
uploadId?: string | undefined;
|
|
3412
|
+
cid?: string | undefined;
|
|
3413
|
+
mimeType?: string | undefined;
|
|
3414
|
+
size?: number | undefined;
|
|
3415
|
+
docWritten?: boolean | undefined;
|
|
3416
|
+
} | {
|
|
3417
|
+
blockId: string;
|
|
3418
|
+
streamId: string;
|
|
3419
|
+
seq: number;
|
|
3420
|
+
blockNr: number;
|
|
3421
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3422
|
+
type: "block.code.begin";
|
|
3423
|
+
sectionId: string;
|
|
3424
|
+
lang: string;
|
|
3425
|
+
path?: string | undefined;
|
|
3426
|
+
} | {
|
|
3427
|
+
blockId: string;
|
|
3428
|
+
streamId: string;
|
|
3429
|
+
seq: number;
|
|
3430
|
+
blockNr: number;
|
|
3431
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3432
|
+
lineNr: number;
|
|
3433
|
+
line: string;
|
|
3434
|
+
type: "block.code.line";
|
|
3435
|
+
sectionId: string;
|
|
3436
|
+
lang: string;
|
|
3437
|
+
path?: string | undefined;
|
|
3438
|
+
} | {
|
|
3439
|
+
blockId: string;
|
|
3440
|
+
streamId: string;
|
|
3441
|
+
seq: number;
|
|
3442
|
+
blockNr: number;
|
|
3443
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3444
|
+
stats: {
|
|
3445
|
+
lines: number;
|
|
3446
|
+
bytes: number;
|
|
3447
|
+
cnt?: number | undefined;
|
|
3448
|
+
};
|
|
3449
|
+
type: "block.code.end";
|
|
3450
|
+
sectionId: string;
|
|
3451
|
+
lang: string;
|
|
3452
|
+
path?: string | undefined;
|
|
3453
|
+
} | {
|
|
3454
|
+
blockId: string;
|
|
3455
|
+
streamId: string;
|
|
3456
|
+
seq: number;
|
|
3457
|
+
blockNr: number;
|
|
3458
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3459
|
+
type: "block.code.truncated";
|
|
3460
|
+
sectionId: string;
|
|
3461
|
+
lang: string;
|
|
3462
|
+
path?: string | undefined;
|
|
3463
|
+
reason: string;
|
|
3464
|
+
kind: string;
|
|
3465
|
+
truncatedAtLine: number;
|
|
3466
|
+
errorCount: number;
|
|
3467
|
+
} | {
|
|
3468
|
+
blockId: string;
|
|
3469
|
+
streamId: string;
|
|
3470
|
+
seq: number;
|
|
3471
|
+
blockNr: number;
|
|
3472
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3473
|
+
type: "block.toplevel.begin";
|
|
3474
|
+
sectionId: string;
|
|
3475
|
+
} | {
|
|
3476
|
+
blockId: string;
|
|
3477
|
+
streamId: string;
|
|
3478
|
+
seq: number;
|
|
3479
|
+
blockNr: number;
|
|
3480
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3481
|
+
lineNr: number;
|
|
3482
|
+
line: string;
|
|
3483
|
+
type: "block.toplevel.line";
|
|
3484
|
+
sectionId: string;
|
|
3485
|
+
} | {
|
|
3486
|
+
blockId: string;
|
|
3487
|
+
streamId: string;
|
|
3488
|
+
seq: number;
|
|
3489
|
+
blockNr: number;
|
|
3490
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3491
|
+
stats: {
|
|
3492
|
+
lines: number;
|
|
3493
|
+
bytes: number;
|
|
3494
|
+
cnt?: number | undefined;
|
|
3495
|
+
};
|
|
3496
|
+
type: "block.toplevel.end";
|
|
3497
|
+
sectionId: string;
|
|
3498
|
+
})[];
|
|
3499
|
+
}[];
|
|
3500
|
+
}, {}>;
|
|
3501
|
+
export type ResChatResponseTurn = typeof resChatResponseTurn.infer;
|
|
3502
|
+
export declare const resGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3503
|
+
type: "vibes.diy.res-get-chat-response";
|
|
3504
|
+
chatId?: string | undefined;
|
|
3505
|
+
ownerHandle: string;
|
|
3506
|
+
appSlug: string;
|
|
3507
|
+
turns: {
|
|
3508
|
+
chatId: string;
|
|
3509
|
+
promptId: string;
|
|
3510
|
+
created: string;
|
|
3511
|
+
fsId?: string | undefined;
|
|
3512
|
+
sections: {
|
|
3513
|
+
blockSeq: number;
|
|
3514
|
+
blocks: ({
|
|
3485
3515
|
streamId: string;
|
|
3486
3516
|
chatId: string;
|
|
3487
3517
|
seq: number;
|
|
@@ -3561,6 +3591,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
3561
3591
|
name: string;
|
|
3562
3592
|
};
|
|
3563
3593
|
} | undefined;
|
|
3594
|
+
response_format?: unknown;
|
|
3564
3595
|
};
|
|
3565
3596
|
} | {
|
|
3566
3597
|
streamId: string;
|
|
@@ -3681,6 +3712,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
3681
3712
|
name: string;
|
|
3682
3713
|
};
|
|
3683
3714
|
} | undefined;
|
|
3715
|
+
response_format?: unknown;
|
|
3684
3716
|
};
|
|
3685
3717
|
} | {
|
|
3686
3718
|
streamId: string;
|
|
@@ -3721,6 +3753,58 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
3721
3753
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3722
3754
|
type: "prompt.system-prompt";
|
|
3723
3755
|
text: string;
|
|
3756
|
+
} | {
|
|
3757
|
+
streamId: string;
|
|
3758
|
+
chatId: string;
|
|
3759
|
+
seq: number;
|
|
3760
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3761
|
+
type: "prompt.restyle";
|
|
3762
|
+
style: {
|
|
3763
|
+
palette?: {
|
|
3764
|
+
hues: [number, ({
|
|
3765
|
+
mode: "derived";
|
|
3766
|
+
} | {
|
|
3767
|
+
mode: "pinned";
|
|
3768
|
+
h: number;
|
|
3769
|
+
} | undefined)?, ({
|
|
3770
|
+
mode: "derived";
|
|
3771
|
+
} | {
|
|
3772
|
+
mode: "pinned";
|
|
3773
|
+
h: number;
|
|
3774
|
+
} | undefined)?];
|
|
3775
|
+
character: {
|
|
3776
|
+
chroma: number;
|
|
3777
|
+
contrast: number;
|
|
3778
|
+
neutralTint: number;
|
|
3779
|
+
surfaceLift: number;
|
|
3780
|
+
fillLevel: number;
|
|
3781
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
3782
|
+
};
|
|
3783
|
+
} | undefined;
|
|
3784
|
+
font?: string | undefined;
|
|
3785
|
+
ornament?: {
|
|
3786
|
+
pad: {
|
|
3787
|
+
x: number;
|
|
3788
|
+
y: number;
|
|
3789
|
+
};
|
|
3790
|
+
pins?: {
|
|
3791
|
+
spacing?: string | undefined;
|
|
3792
|
+
"font-size-base"?: string | undefined;
|
|
3793
|
+
radius?: string | undefined;
|
|
3794
|
+
"radius-sm"?: string | undefined;
|
|
3795
|
+
"radius-lg"?: string | undefined;
|
|
3796
|
+
"border-width"?: string | undefined;
|
|
3797
|
+
shadow?: string | undefined;
|
|
3798
|
+
"shadow-sm"?: string | undefined;
|
|
3799
|
+
"shadow-lg"?: string | undefined;
|
|
3800
|
+
"letter-spacing"?: string | undefined;
|
|
3801
|
+
"letter-spacing-wide"?: string | undefined;
|
|
3802
|
+
"font-weight"?: string | undefined;
|
|
3803
|
+
"text-transform"?: string | undefined;
|
|
3804
|
+
} | undefined;
|
|
3805
|
+
} | undefined;
|
|
3806
|
+
};
|
|
3807
|
+
description: string;
|
|
3724
3808
|
} | {
|
|
3725
3809
|
type: "prompt.research";
|
|
3726
3810
|
version: 1;
|
|
@@ -3759,6 +3843,201 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
3759
3843
|
}[];
|
|
3760
3844
|
completedAt: string;
|
|
3761
3845
|
errorCode?: string | undefined;
|
|
3846
|
+
} | {
|
|
3847
|
+
blockId: string;
|
|
3848
|
+
streamId: string;
|
|
3849
|
+
seq: number;
|
|
3850
|
+
blockNr: number;
|
|
3851
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3852
|
+
type: "block.begin";
|
|
3853
|
+
} | {
|
|
3854
|
+
blockId: string;
|
|
3855
|
+
streamId: string;
|
|
3856
|
+
seq: number;
|
|
3857
|
+
blockNr: number;
|
|
3858
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3859
|
+
type: "block.end";
|
|
3860
|
+
stats: {
|
|
3861
|
+
toplevel: {
|
|
3862
|
+
lines: number;
|
|
3863
|
+
bytes: number;
|
|
3864
|
+
cnt?: number | undefined;
|
|
3865
|
+
};
|
|
3866
|
+
code: {
|
|
3867
|
+
lines: number;
|
|
3868
|
+
bytes: number;
|
|
3869
|
+
cnt?: number | undefined;
|
|
3870
|
+
};
|
|
3871
|
+
image: {
|
|
3872
|
+
lines: number;
|
|
3873
|
+
bytes: number;
|
|
3874
|
+
cnt?: number | undefined;
|
|
3875
|
+
};
|
|
3876
|
+
total: {
|
|
3877
|
+
lines: number;
|
|
3878
|
+
bytes: number;
|
|
3879
|
+
cnt?: number | undefined;
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
3882
|
+
usage: {
|
|
3883
|
+
given: {
|
|
3884
|
+
prompt_tokens: number;
|
|
3885
|
+
completion_tokens: number;
|
|
3886
|
+
total_tokens: number;
|
|
3887
|
+
}[];
|
|
3888
|
+
calculated: {
|
|
3889
|
+
prompt_tokens: number;
|
|
3890
|
+
completion_tokens: number;
|
|
3891
|
+
total_tokens: number;
|
|
3892
|
+
};
|
|
3893
|
+
};
|
|
3894
|
+
fsRef?: ((In: {
|
|
3895
|
+
appSlug: string;
|
|
3896
|
+
ownerHandle?: string | undefined;
|
|
3897
|
+
userSlug?: string | undefined;
|
|
3898
|
+
mode: "dev" | "production";
|
|
3899
|
+
fsId: string;
|
|
3900
|
+
}) => import("arktype").Out<{
|
|
3901
|
+
appSlug: string;
|
|
3902
|
+
mode: "dev" | "production";
|
|
3903
|
+
fsId: string;
|
|
3904
|
+
ownerHandle: string;
|
|
3905
|
+
}>) | undefined;
|
|
3906
|
+
} | {
|
|
3907
|
+
blockId: string;
|
|
3908
|
+
streamId: string;
|
|
3909
|
+
seq: number;
|
|
3910
|
+
blockNr: number;
|
|
3911
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3912
|
+
type: "block.stats";
|
|
3913
|
+
stats: {
|
|
3914
|
+
toplevel: {
|
|
3915
|
+
lines: number;
|
|
3916
|
+
bytes: number;
|
|
3917
|
+
cnt?: number | undefined;
|
|
3918
|
+
};
|
|
3919
|
+
code: {
|
|
3920
|
+
lines: number;
|
|
3921
|
+
bytes: number;
|
|
3922
|
+
cnt?: number | undefined;
|
|
3923
|
+
};
|
|
3924
|
+
image: {
|
|
3925
|
+
lines: number;
|
|
3926
|
+
bytes: number;
|
|
3927
|
+
cnt?: number | undefined;
|
|
3928
|
+
};
|
|
3929
|
+
total: {
|
|
3930
|
+
lines: number;
|
|
3931
|
+
bytes: number;
|
|
3932
|
+
cnt?: number | undefined;
|
|
3933
|
+
};
|
|
3934
|
+
};
|
|
3935
|
+
usage: {
|
|
3936
|
+
prompt_tokens: number;
|
|
3937
|
+
completion_tokens: number;
|
|
3938
|
+
total_tokens: number;
|
|
3939
|
+
};
|
|
3940
|
+
} | {
|
|
3941
|
+
blockId: string;
|
|
3942
|
+
streamId: string;
|
|
3943
|
+
seq: number;
|
|
3944
|
+
blockNr: number;
|
|
3945
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3946
|
+
stats: {
|
|
3947
|
+
lines: number;
|
|
3948
|
+
bytes: number;
|
|
3949
|
+
cnt?: number | undefined;
|
|
3950
|
+
};
|
|
3951
|
+
type: "block.image";
|
|
3952
|
+
sectionId: string;
|
|
3953
|
+
url?: string | undefined;
|
|
3954
|
+
uploadId?: string | undefined;
|
|
3955
|
+
cid?: string | undefined;
|
|
3956
|
+
mimeType?: string | undefined;
|
|
3957
|
+
size?: number | undefined;
|
|
3958
|
+
docWritten?: boolean | undefined;
|
|
3959
|
+
} | {
|
|
3960
|
+
blockId: string;
|
|
3961
|
+
streamId: string;
|
|
3962
|
+
seq: number;
|
|
3963
|
+
blockNr: number;
|
|
3964
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3965
|
+
type: "block.code.begin";
|
|
3966
|
+
sectionId: string;
|
|
3967
|
+
lang: string;
|
|
3968
|
+
path?: string | undefined;
|
|
3969
|
+
} | {
|
|
3970
|
+
blockId: string;
|
|
3971
|
+
streamId: string;
|
|
3972
|
+
seq: number;
|
|
3973
|
+
blockNr: number;
|
|
3974
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3975
|
+
lineNr: number;
|
|
3976
|
+
line: string;
|
|
3977
|
+
type: "block.code.line";
|
|
3978
|
+
sectionId: string;
|
|
3979
|
+
lang: string;
|
|
3980
|
+
path?: string | undefined;
|
|
3981
|
+
} | {
|
|
3982
|
+
blockId: string;
|
|
3983
|
+
streamId: string;
|
|
3984
|
+
seq: number;
|
|
3985
|
+
blockNr: number;
|
|
3986
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3987
|
+
stats: {
|
|
3988
|
+
lines: number;
|
|
3989
|
+
bytes: number;
|
|
3990
|
+
cnt?: number | undefined;
|
|
3991
|
+
};
|
|
3992
|
+
type: "block.code.end";
|
|
3993
|
+
sectionId: string;
|
|
3994
|
+
lang: string;
|
|
3995
|
+
path?: string | undefined;
|
|
3996
|
+
} | {
|
|
3997
|
+
blockId: string;
|
|
3998
|
+
streamId: string;
|
|
3999
|
+
seq: number;
|
|
4000
|
+
blockNr: number;
|
|
4001
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4002
|
+
type: "block.code.truncated";
|
|
4003
|
+
sectionId: string;
|
|
4004
|
+
lang: string;
|
|
4005
|
+
path?: string | undefined;
|
|
4006
|
+
reason: string;
|
|
4007
|
+
kind: string;
|
|
4008
|
+
truncatedAtLine: number;
|
|
4009
|
+
errorCount: number;
|
|
4010
|
+
} | {
|
|
4011
|
+
blockId: string;
|
|
4012
|
+
streamId: string;
|
|
4013
|
+
seq: number;
|
|
4014
|
+
blockNr: number;
|
|
4015
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4016
|
+
type: "block.toplevel.begin";
|
|
4017
|
+
sectionId: string;
|
|
4018
|
+
} | {
|
|
4019
|
+
blockId: string;
|
|
4020
|
+
streamId: string;
|
|
4021
|
+
seq: number;
|
|
4022
|
+
blockNr: number;
|
|
4023
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4024
|
+
lineNr: number;
|
|
4025
|
+
line: string;
|
|
4026
|
+
type: "block.toplevel.line";
|
|
4027
|
+
sectionId: string;
|
|
4028
|
+
} | {
|
|
4029
|
+
blockId: string;
|
|
4030
|
+
streamId: string;
|
|
4031
|
+
seq: number;
|
|
4032
|
+
blockNr: number;
|
|
4033
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4034
|
+
stats: {
|
|
4035
|
+
lines: number;
|
|
4036
|
+
bytes: number;
|
|
4037
|
+
cnt?: number | undefined;
|
|
4038
|
+
};
|
|
4039
|
+
type: "block.toplevel.end";
|
|
4040
|
+
sectionId: string;
|
|
3762
4041
|
})[];
|
|
3763
4042
|
}[];
|
|
3764
4043
|
}[];
|