@vibes.diy/api-types 14.3.65 → 14.3.66

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.
Files changed (50) hide show
  1. package/app-clip.d.ts +1 -1
  2. package/app-documents.d.ts +12 -12
  3. package/app.d.ts +127 -130
  4. package/app.js +0 -2
  5. package/app.js.map +1 -1
  6. package/asset-safety.d.ts +1 -1
  7. package/asset.d.ts +1 -1
  8. package/audience-arms-msg.d.ts +4 -4
  9. package/billing-msg.d.ts +4 -4
  10. package/chat.d.ts +484 -505
  11. package/chat.js +1 -4
  12. package/chat.js.map +1 -1
  13. package/common.d.ts +2 -2
  14. package/common.js +1 -1
  15. package/common.js.map +1 -1
  16. package/developer-grant.d.ts +3 -3
  17. package/draft-chat.d.ts +1 -1
  18. package/draft-runtime.d.ts +1 -5
  19. package/draft-runtime.js +0 -2
  20. package/draft-runtime.js.map +1 -1
  21. package/guest-principal.d.ts +48 -0
  22. package/guest-principal.js +78 -0
  23. package/guest-principal.js.map +1 -0
  24. package/home-feed.d.ts +4 -4
  25. package/index.d.ts +1 -1
  26. package/index.js +1 -1
  27. package/index.js.map +1 -1
  28. package/invite-flow.d.ts +161 -161
  29. package/invite.d.ts +109 -109
  30. package/members.d.ts +1 -1
  31. package/memberships.d.ts +1 -1
  32. package/mint-fire.d.ts +1 -1
  33. package/package.json +4 -4
  34. package/prompt.d.ts +2 -0
  35. package/prompt.js +1 -0
  36. package/prompt.js.map +1 -1
  37. package/related-vibes.d.ts +2 -2
  38. package/report.d.ts +12 -12
  39. package/request-access.d.ts +8 -8
  40. package/settings.d.ts +39 -39
  41. package/shard-policy.d.ts +1 -2
  42. package/shard-policy.js +1 -2
  43. package/shard-policy.js.map +1 -1
  44. package/shared-mint.d.ts +1 -1
  45. package/social-msg.d.ts +15 -15
  46. package/vibes-diy-api.d.ts +3 -3
  47. package/viewer-api-fetch.d.ts +1 -1
  48. package/guest-build.d.ts +0 -82
  49. package/guest-build.js +0 -43
  50. package/guest-build.js.map +0 -1
package/chat.d.ts CHANGED
@@ -49,11 +49,7 @@ export declare const reqOpenChat: import("arktype/internal/variants/object.ts").
49
49
  type: "vibes.diy.req-open-chat";
50
50
  historyLimit?: number | undefined;
51
51
  auth?: {
52
- type: "clerk" | "device-id" | "ucan";
53
- token: string;
54
- } | undefined;
55
- guest?: {
56
- type: "guest-build";
52
+ type: "clerk" | "device-id" | "guest" | "ucan";
57
53
  token: string;
58
54
  } | undefined;
59
55
  appSlug?: string | undefined;
@@ -213,11 +209,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
213
209
  type: "vibes.diy.req-prompt-chat-section";
214
210
  mode: "codegen";
215
211
  auth?: {
216
- type: "clerk" | "device-id" | "ucan";
217
- token: string;
218
- } | undefined;
219
- guest?: {
220
- type: "guest-build";
212
+ type: "clerk" | "device-id" | "guest" | "ucan";
221
213
  token: string;
222
214
  } | undefined;
223
215
  chatId: string;
@@ -384,15 +376,12 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
384
376
  } | undefined;
385
377
  stylePin?: string | undefined;
386
378
  imageSurvey?: boolean | undefined;
379
+ clientMessageId?: string | undefined;
387
380
  }) => import("arktype").Out<{
388
381
  type: "vibes.diy.req-prompt-chat-section";
389
382
  mode: "codegen";
390
383
  auth?: {
391
- type: "clerk" | "device-id" | "ucan";
392
- token: string;
393
- } | undefined;
394
- guest?: {
395
- type: "guest-build";
384
+ type: "clerk" | "device-id" | "guest" | "ucan";
396
385
  token: string;
397
386
  } | undefined;
398
387
  chatId: string;
@@ -559,13 +548,14 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
559
548
  } | undefined;
560
549
  stylePin?: string | undefined;
561
550
  imageSurvey?: boolean | undefined;
551
+ clientMessageId?: string | undefined;
562
552
  }>, {}>;
563
553
  export declare function isReqCreationPromptChatSection(obj: unknown): obj is typeof reqCreationPromptChatSection.infer;
564
554
  export declare const reqPromptApplicationChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
565
555
  type: "vibes.diy.req-prompt-chat-section";
566
556
  mode: "runtime";
567
557
  auth: {
568
- type: "clerk" | "device-id" | "ucan";
558
+ type: "clerk" | "device-id" | "guest" | "ucan";
569
559
  token: string;
570
560
  };
571
561
  chatId: string;
@@ -656,7 +646,7 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
656
646
  type: "vibes.diy.req-prompt-chat-section";
657
647
  mode: "img";
658
648
  auth: {
659
- type: "clerk" | "device-id" | "ucan";
649
+ type: "clerk" | "device-id" | "guest" | "ucan";
660
650
  token: string;
661
651
  };
662
652
  chatId: string;
@@ -807,7 +797,7 @@ export declare const reqPromptFSUpdateChatSection: import("arktype/internal/vari
807
797
  type: "vibes.diy.req-prompt-chat-section";
808
798
  mode: "fs-update";
809
799
  auth: {
810
- type: "clerk" | "device-id" | "ucan";
800
+ type: "clerk" | "device-id" | "guest" | "ucan";
811
801
  token: string;
812
802
  };
813
803
  chatId: string;
@@ -878,7 +868,7 @@ export declare const reqPromptFSSetChatSection: import("arktype/internal/variant
878
868
  type: "vibes.diy.req-prompt-chat-section";
879
869
  mode: "fs-set";
880
870
  auth: {
881
- type: "clerk" | "device-id" | "ucan";
871
+ type: "clerk" | "device-id" | "guest" | "ucan";
882
872
  token: string;
883
873
  };
884
874
  chatId: string;
@@ -936,7 +926,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
936
926
  type: "vibes.diy.req-prompt-chat-section";
937
927
  mode: "runtime";
938
928
  auth: {
939
- type: "clerk" | "device-id" | "ucan";
929
+ type: "clerk" | "device-id" | "guest" | "ucan";
940
930
  token: string;
941
931
  };
942
932
  chatId: string;
@@ -1025,7 +1015,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1025
1015
  type: "vibes.diy.req-prompt-chat-section";
1026
1016
  mode: "img";
1027
1017
  auth: {
1028
- type: "clerk" | "device-id" | "ucan";
1018
+ type: "clerk" | "device-id" | "guest" | "ucan";
1029
1019
  token: string;
1030
1020
  };
1031
1021
  chatId: string;
@@ -1121,11 +1111,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1121
1111
  type: "vibes.diy.req-prompt-chat-section";
1122
1112
  mode: "codegen";
1123
1113
  auth?: {
1124
- type: "clerk" | "device-id" | "ucan";
1125
- token: string;
1126
- } | undefined;
1127
- guest?: {
1128
- type: "guest-build";
1114
+ type: "clerk" | "device-id" | "guest" | "ucan";
1129
1115
  token: string;
1130
1116
  } | undefined;
1131
1117
  chatId: string;
@@ -1292,15 +1278,12 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1292
1278
  } | undefined;
1293
1279
  stylePin?: string | undefined;
1294
1280
  imageSurvey?: boolean | undefined;
1281
+ clientMessageId?: string | undefined;
1295
1282
  }) => import("arktype").Out<{
1296
1283
  type: "vibes.diy.req-prompt-chat-section";
1297
1284
  mode: "codegen";
1298
1285
  auth?: {
1299
- type: "clerk" | "device-id" | "ucan";
1300
- token: string;
1301
- } | undefined;
1302
- guest?: {
1303
- type: "guest-build";
1286
+ type: "clerk" | "device-id" | "guest" | "ucan";
1304
1287
  token: string;
1305
1288
  } | undefined;
1306
1289
  chatId: string;
@@ -1467,6 +1450,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1467
1450
  } | undefined;
1468
1451
  stylePin?: string | undefined;
1469
1452
  imageSurvey?: boolean | undefined;
1453
+ clientMessageId?: string | undefined;
1470
1454
  }>), {}>;
1471
1455
  export type ReqPromptLLMChatSection = typeof reqPromptLLMChatSection.infer;
1472
1456
  export declare function isReqPromptLLMChatSection(obj: unknown): obj is ReqPromptLLMChatSection;
@@ -1474,7 +1458,7 @@ export declare const reqPromptFSChatSection: import("arktype/internal/variants/o
1474
1458
  type: "vibes.diy.req-prompt-chat-section";
1475
1459
  mode: "fs-update";
1476
1460
  auth: {
1477
- type: "clerk" | "device-id" | "ucan";
1461
+ type: "clerk" | "device-id" | "guest" | "ucan";
1478
1462
  token: string;
1479
1463
  };
1480
1464
  chatId: string;
@@ -1542,7 +1526,7 @@ export declare const reqPromptFSChatSection: import("arktype/internal/variants/o
1542
1526
  type: "vibes.diy.req-prompt-chat-section";
1543
1527
  mode: "fs-set";
1544
1528
  auth: {
1545
- type: "clerk" | "device-id" | "ucan";
1529
+ type: "clerk" | "device-id" | "guest" | "ucan";
1546
1530
  token: string;
1547
1531
  };
1548
1532
  chatId: string;
@@ -1600,7 +1584,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1600
1584
  type: "vibes.diy.req-prompt-chat-section";
1601
1585
  mode: "runtime";
1602
1586
  auth: {
1603
- type: "clerk" | "device-id" | "ucan";
1587
+ type: "clerk" | "device-id" | "guest" | "ucan";
1604
1588
  token: string;
1605
1589
  };
1606
1590
  chatId: string;
@@ -1689,7 +1673,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1689
1673
  type: "vibes.diy.req-prompt-chat-section";
1690
1674
  mode: "img";
1691
1675
  auth: {
1692
- type: "clerk" | "device-id" | "ucan";
1676
+ type: "clerk" | "device-id" | "guest" | "ucan";
1693
1677
  token: string;
1694
1678
  };
1695
1679
  chatId: string;
@@ -1785,7 +1769,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1785
1769
  type: "vibes.diy.req-prompt-chat-section";
1786
1770
  mode: "fs-update";
1787
1771
  auth: {
1788
- type: "clerk" | "device-id" | "ucan";
1772
+ type: "clerk" | "device-id" | "guest" | "ucan";
1789
1773
  token: string;
1790
1774
  };
1791
1775
  chatId: string;
@@ -1853,7 +1837,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1853
1837
  type: "vibes.diy.req-prompt-chat-section";
1854
1838
  mode: "fs-set";
1855
1839
  auth: {
1856
- type: "clerk" | "device-id" | "ucan";
1840
+ type: "clerk" | "device-id" | "guest" | "ucan";
1857
1841
  token: string;
1858
1842
  };
1859
1843
  chatId: string;
@@ -1908,11 +1892,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1908
1892
  type: "vibes.diy.req-prompt-chat-section";
1909
1893
  mode: "codegen";
1910
1894
  auth?: {
1911
- type: "clerk" | "device-id" | "ucan";
1912
- token: string;
1913
- } | undefined;
1914
- guest?: {
1915
- type: "guest-build";
1895
+ type: "clerk" | "device-id" | "guest" | "ucan";
1916
1896
  token: string;
1917
1897
  } | undefined;
1918
1898
  chatId: string;
@@ -2079,15 +2059,12 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2079
2059
  } | undefined;
2080
2060
  stylePin?: string | undefined;
2081
2061
  imageSurvey?: boolean | undefined;
2062
+ clientMessageId?: string | undefined;
2082
2063
  }) => import("arktype").Out<{
2083
2064
  type: "vibes.diy.req-prompt-chat-section";
2084
2065
  mode: "codegen";
2085
2066
  auth?: {
2086
- type: "clerk" | "device-id" | "ucan";
2087
- token: string;
2088
- } | undefined;
2089
- guest?: {
2090
- type: "guest-build";
2067
+ type: "clerk" | "device-id" | "guest" | "ucan";
2091
2068
  token: string;
2092
2069
  } | undefined;
2093
2070
  chatId: string;
@@ -2254,6 +2231,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2254
2231
  } | undefined;
2255
2232
  stylePin?: string | undefined;
2256
2233
  imageSurvey?: boolean | undefined;
2234
+ clientMessageId?: string | undefined;
2257
2235
  }>), {}>;
2258
2236
  export type ReqPromptChatSection = typeof reqPromptChatSection.infer;
2259
2237
  export declare const resPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -2350,18 +2328,37 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2350
2328
  seq: number;
2351
2329
  blockNr: number;
2352
2330
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2353
- type: "block.toplevel.begin";
2354
- sectionId: string;
2355
- } | {
2356
- blockId: string;
2357
- streamId: string;
2358
- seq: number;
2359
- blockNr: number;
2360
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2361
- lineNr: number;
2362
- line: string;
2363
- type: "block.toplevel.line";
2364
- sectionId: string;
2331
+ type: "block.stats";
2332
+ stats: {
2333
+ toplevel: {
2334
+ lines: number;
2335
+ bytes: number;
2336
+ cnt?: number | undefined;
2337
+ };
2338
+ code: {
2339
+ lines: number;
2340
+ bytes: number;
2341
+ cnt?: number | undefined;
2342
+ };
2343
+ image: {
2344
+ lines: number;
2345
+ bytes: number;
2346
+ cnt?: number | undefined;
2347
+ };
2348
+ total: {
2349
+ lines: number;
2350
+ bytes: number;
2351
+ cnt?: number | undefined;
2352
+ };
2353
+ };
2354
+ usage: {
2355
+ prompt_tokens: number;
2356
+ completion_tokens: number;
2357
+ total_tokens: number;
2358
+ model?: string | undefined;
2359
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2360
+ reasoningEffort?: string | undefined;
2361
+ };
2365
2362
  } | {
2366
2363
  blockId: string;
2367
2364
  streamId: string;
@@ -2373,8 +2370,14 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2373
2370
  bytes: number;
2374
2371
  cnt?: number | undefined;
2375
2372
  };
2376
- type: "block.toplevel.end";
2373
+ type: "block.image";
2377
2374
  sectionId: string;
2375
+ url?: string | undefined;
2376
+ uploadId?: string | undefined;
2377
+ cid?: string | undefined;
2378
+ mimeType?: string | undefined;
2379
+ size?: number | undefined;
2380
+ docWritten?: boolean | undefined;
2378
2381
  } | {
2379
2382
  blockId: string;
2380
2383
  streamId: string;
@@ -2432,94 +2435,31 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2432
2435
  seq: number;
2433
2436
  blockNr: number;
2434
2437
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2435
- stats: {
2436
- lines: number;
2437
- bytes: number;
2438
- cnt?: number | undefined;
2439
- };
2440
- type: "block.image";
2438
+ type: "block.toplevel.begin";
2441
2439
  sectionId: string;
2442
- url?: string | undefined;
2443
- uploadId?: string | undefined;
2444
- cid?: string | undefined;
2445
- mimeType?: string | undefined;
2446
- size?: number | undefined;
2447
- docWritten?: boolean | undefined;
2448
2440
  } | {
2449
2441
  blockId: string;
2450
2442
  streamId: string;
2451
2443
  seq: number;
2452
2444
  blockNr: number;
2453
2445
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2454
- type: "block.stats";
2455
- stats: {
2456
- toplevel: {
2457
- lines: number;
2458
- bytes: number;
2459
- cnt?: number | undefined;
2460
- };
2461
- code: {
2462
- lines: number;
2463
- bytes: number;
2464
- cnt?: number | undefined;
2465
- };
2466
- image: {
2467
- lines: number;
2468
- bytes: number;
2469
- cnt?: number | undefined;
2470
- };
2471
- total: {
2472
- lines: number;
2473
- bytes: number;
2474
- cnt?: number | undefined;
2475
- };
2476
- };
2477
- usage: {
2478
- prompt_tokens: number;
2479
- completion_tokens: number;
2480
- total_tokens: number;
2481
- model?: string | undefined;
2482
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2483
- reasoningEffort?: string | undefined;
2484
- };
2446
+ lineNr: number;
2447
+ line: string;
2448
+ type: "block.toplevel.line";
2449
+ sectionId: string;
2485
2450
  } | {
2486
- type: "prompt.research";
2487
- version: 1;
2451
+ blockId: string;
2488
2452
  streamId: string;
2489
- chatId: string;
2490
2453
  seq: number;
2454
+ blockNr: number;
2491
2455
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2492
- researchId: string;
2493
- status: "complete" | "failed" | "partial";
2494
- brief: string;
2495
- sources: {
2496
- url: string;
2497
- finalUrl: string | null;
2498
- contentType: string | null;
2499
- httpStatus: number | null;
2500
- backendFetchable: boolean;
2501
- fetched: boolean;
2502
- errorCode?: string | undefined;
2503
- }[];
2504
- api: {
2505
- method: string;
2506
- path: string;
2507
- description: string;
2508
- fields: string[];
2509
- }[];
2510
- excerpts: {
2511
- sourceUrl: string;
2512
- text: string;
2513
- locator?: string | undefined;
2514
- }[];
2515
- seedRows: {
2516
- sourceUrl: string;
2517
- dbName: string;
2518
- key: string;
2519
- item: unknown;
2520
- }[];
2521
- completedAt: string;
2522
- errorCode?: string | undefined;
2456
+ stats: {
2457
+ lines: number;
2458
+ bytes: number;
2459
+ cnt?: number | undefined;
2460
+ };
2461
+ type: "block.toplevel.end";
2462
+ sectionId: string;
2523
2463
  } | {
2524
2464
  streamId: string;
2525
2465
  chatId: string;
@@ -2621,6 +2561,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2621
2561
  agentDispatched?: true | undefined;
2622
2562
  platformInitiated?: true | undefined;
2623
2563
  firstDraft?: true | undefined;
2564
+ clientMessageId?: string | undefined;
2624
2565
  } | {
2625
2566
  streamId: string;
2626
2567
  chatId: string;
@@ -2913,6 +2854,44 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2913
2854
  type: "prompt.notice";
2914
2855
  kind: "edits-incomplete";
2915
2856
  path?: string | undefined;
2857
+ } | {
2858
+ type: "prompt.research";
2859
+ version: 1;
2860
+ streamId: string;
2861
+ chatId: string;
2862
+ seq: number;
2863
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2864
+ researchId: string;
2865
+ status: "complete" | "failed" | "partial";
2866
+ brief: string;
2867
+ sources: {
2868
+ url: string;
2869
+ finalUrl: string | null;
2870
+ contentType: string | null;
2871
+ httpStatus: number | null;
2872
+ backendFetchable: boolean;
2873
+ fetched: boolean;
2874
+ errorCode?: string | undefined;
2875
+ }[];
2876
+ api: {
2877
+ method: string;
2878
+ path: string;
2879
+ description: string;
2880
+ fields: string[];
2881
+ }[];
2882
+ excerpts: {
2883
+ sourceUrl: string;
2884
+ text: string;
2885
+ locator?: string | undefined;
2886
+ }[];
2887
+ seedRows: {
2888
+ sourceUrl: string;
2889
+ dbName: string;
2890
+ key: string;
2891
+ item: unknown;
2892
+ }[];
2893
+ completedAt: string;
2894
+ errorCode?: string | undefined;
2916
2895
  }, {}>;
2917
2896
  export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
2918
2897
  export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -3004,18 +2983,37 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3004
2983
  seq: number;
3005
2984
  blockNr: number;
3006
2985
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3007
- type: "block.toplevel.begin";
3008
- sectionId: string;
3009
- } | {
3010
- blockId: string;
3011
- streamId: string;
3012
- seq: number;
3013
- blockNr: number;
3014
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3015
- lineNr: number;
3016
- line: string;
3017
- type: "block.toplevel.line";
3018
- sectionId: string;
2986
+ type: "block.stats";
2987
+ stats: {
2988
+ toplevel: {
2989
+ lines: number;
2990
+ bytes: number;
2991
+ cnt?: number | undefined;
2992
+ };
2993
+ code: {
2994
+ lines: number;
2995
+ bytes: number;
2996
+ cnt?: number | undefined;
2997
+ };
2998
+ image: {
2999
+ lines: number;
3000
+ bytes: number;
3001
+ cnt?: number | undefined;
3002
+ };
3003
+ total: {
3004
+ lines: number;
3005
+ bytes: number;
3006
+ cnt?: number | undefined;
3007
+ };
3008
+ };
3009
+ usage: {
3010
+ prompt_tokens: number;
3011
+ completion_tokens: number;
3012
+ total_tokens: number;
3013
+ model?: string | undefined;
3014
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3015
+ reasoningEffort?: string | undefined;
3016
+ };
3019
3017
  } | {
3020
3018
  blockId: string;
3021
3019
  streamId: string;
@@ -3027,8 +3025,14 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3027
3025
  bytes: number;
3028
3026
  cnt?: number | undefined;
3029
3027
  };
3030
- type: "block.toplevel.end";
3028
+ type: "block.image";
3031
3029
  sectionId: string;
3030
+ url?: string | undefined;
3031
+ uploadId?: string | undefined;
3032
+ cid?: string | undefined;
3033
+ mimeType?: string | undefined;
3034
+ size?: number | undefined;
3035
+ docWritten?: boolean | undefined;
3032
3036
  } | {
3033
3037
  blockId: string;
3034
3038
  streamId: string;
@@ -3086,94 +3090,31 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3086
3090
  seq: number;
3087
3091
  blockNr: number;
3088
3092
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3089
- stats: {
3090
- lines: number;
3091
- bytes: number;
3092
- cnt?: number | undefined;
3093
- };
3094
- type: "block.image";
3093
+ type: "block.toplevel.begin";
3095
3094
  sectionId: string;
3096
- url?: string | undefined;
3097
- uploadId?: string | undefined;
3098
- cid?: string | undefined;
3099
- mimeType?: string | undefined;
3100
- size?: number | undefined;
3101
- docWritten?: boolean | undefined;
3102
3095
  } | {
3103
3096
  blockId: string;
3104
3097
  streamId: string;
3105
3098
  seq: number;
3106
3099
  blockNr: number;
3107
3100
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3108
- type: "block.stats";
3109
- stats: {
3110
- toplevel: {
3111
- lines: number;
3112
- bytes: number;
3113
- cnt?: number | undefined;
3114
- };
3115
- code: {
3116
- lines: number;
3117
- bytes: number;
3118
- cnt?: number | undefined;
3119
- };
3120
- image: {
3121
- lines: number;
3122
- bytes: number;
3123
- cnt?: number | undefined;
3124
- };
3125
- total: {
3126
- lines: number;
3127
- bytes: number;
3128
- cnt?: number | undefined;
3129
- };
3130
- };
3131
- usage: {
3132
- prompt_tokens: number;
3133
- completion_tokens: number;
3134
- total_tokens: number;
3135
- model?: string | undefined;
3136
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3137
- reasoningEffort?: string | undefined;
3138
- };
3101
+ lineNr: number;
3102
+ line: string;
3103
+ type: "block.toplevel.line";
3104
+ sectionId: string;
3139
3105
  } | {
3140
- type: "prompt.research";
3141
- version: 1;
3106
+ blockId: string;
3142
3107
  streamId: string;
3143
- chatId: string;
3144
3108
  seq: number;
3109
+ blockNr: number;
3145
3110
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3146
- researchId: string;
3147
- status: "complete" | "failed" | "partial";
3148
- brief: string;
3149
- sources: {
3150
- url: string;
3151
- finalUrl: string | null;
3152
- contentType: string | null;
3153
- httpStatus: number | null;
3154
- backendFetchable: boolean;
3155
- fetched: boolean;
3156
- errorCode?: string | undefined;
3157
- }[];
3158
- api: {
3159
- method: string;
3160
- path: string;
3161
- description: string;
3162
- fields: string[];
3163
- }[];
3164
- excerpts: {
3165
- sourceUrl: string;
3166
- text: string;
3167
- locator?: string | undefined;
3168
- }[];
3169
- seedRows: {
3170
- sourceUrl: string;
3171
- dbName: string;
3172
- key: string;
3173
- item: unknown;
3174
- }[];
3175
- completedAt: string;
3176
- errorCode?: string | undefined;
3111
+ stats: {
3112
+ lines: number;
3113
+ bytes: number;
3114
+ cnt?: number | undefined;
3115
+ };
3116
+ type: "block.toplevel.end";
3117
+ sectionId: string;
3177
3118
  } | {
3178
3119
  streamId: string;
3179
3120
  chatId: string;
@@ -3275,6 +3216,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3275
3216
  agentDispatched?: true | undefined;
3276
3217
  platformInitiated?: true | undefined;
3277
3218
  firstDraft?: true | undefined;
3219
+ clientMessageId?: string | undefined;
3278
3220
  } | {
3279
3221
  streamId: string;
3280
3222
  chatId: string;
@@ -3567,6 +3509,44 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3567
3509
  type: "prompt.notice";
3568
3510
  kind: "edits-incomplete";
3569
3511
  path?: string | undefined;
3512
+ } | {
3513
+ type: "prompt.research";
3514
+ version: 1;
3515
+ streamId: string;
3516
+ chatId: string;
3517
+ seq: number;
3518
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3519
+ researchId: string;
3520
+ status: "complete" | "failed" | "partial";
3521
+ brief: string;
3522
+ sources: {
3523
+ url: string;
3524
+ finalUrl: string | null;
3525
+ contentType: string | null;
3526
+ httpStatus: number | null;
3527
+ backendFetchable: boolean;
3528
+ fetched: boolean;
3529
+ errorCode?: string | undefined;
3530
+ }[];
3531
+ api: {
3532
+ method: string;
3533
+ path: string;
3534
+ description: string;
3535
+ fields: string[];
3536
+ }[];
3537
+ excerpts: {
3538
+ sourceUrl: string;
3539
+ text: string;
3540
+ locator?: string | undefined;
3541
+ }[];
3542
+ seedRows: {
3543
+ sourceUrl: string;
3544
+ dbName: string;
3545
+ key: string;
3546
+ item: unknown;
3547
+ }[];
3548
+ completedAt: string;
3549
+ errorCode?: string | undefined;
3570
3550
  })[];
3571
3551
  initiator?: "platform" | "seed" | undefined;
3572
3552
  }, {}>;
@@ -3582,11 +3562,7 @@ export declare const reqGetChatResponse: import("arktype/internal/variants/objec
3582
3562
  };
3583
3563
  } | undefined;
3584
3564
  auth?: {
3585
- type: "clerk" | "device-id" | "ucan";
3586
- token: string;
3587
- } | undefined;
3588
- guest?: {
3589
- type: "guest-build";
3565
+ type: "clerk" | "device-id" | "guest" | "ucan";
3590
3566
  token: string;
3591
3567
  } | undefined;
3592
3568
  ownerHandle: string;
@@ -3683,18 +3659,37 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3683
3659
  seq: number;
3684
3660
  blockNr: number;
3685
3661
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3686
- type: "block.toplevel.begin";
3687
- sectionId: string;
3688
- } | {
3689
- blockId: string;
3690
- streamId: string;
3691
- seq: number;
3692
- blockNr: number;
3693
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3694
- lineNr: number;
3695
- line: string;
3696
- type: "block.toplevel.line";
3697
- sectionId: string;
3662
+ type: "block.stats";
3663
+ stats: {
3664
+ toplevel: {
3665
+ lines: number;
3666
+ bytes: number;
3667
+ cnt?: number | undefined;
3668
+ };
3669
+ code: {
3670
+ lines: number;
3671
+ bytes: number;
3672
+ cnt?: number | undefined;
3673
+ };
3674
+ image: {
3675
+ lines: number;
3676
+ bytes: number;
3677
+ cnt?: number | undefined;
3678
+ };
3679
+ total: {
3680
+ lines: number;
3681
+ bytes: number;
3682
+ cnt?: number | undefined;
3683
+ };
3684
+ };
3685
+ usage: {
3686
+ prompt_tokens: number;
3687
+ completion_tokens: number;
3688
+ total_tokens: number;
3689
+ model?: string | undefined;
3690
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3691
+ reasoningEffort?: string | undefined;
3692
+ };
3698
3693
  } | {
3699
3694
  blockId: string;
3700
3695
  streamId: string;
@@ -3706,8 +3701,14 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3706
3701
  bytes: number;
3707
3702
  cnt?: number | undefined;
3708
3703
  };
3709
- type: "block.toplevel.end";
3704
+ type: "block.image";
3710
3705
  sectionId: string;
3706
+ url?: string | undefined;
3707
+ uploadId?: string | undefined;
3708
+ cid?: string | undefined;
3709
+ mimeType?: string | undefined;
3710
+ size?: number | undefined;
3711
+ docWritten?: boolean | undefined;
3711
3712
  } | {
3712
3713
  blockId: string;
3713
3714
  streamId: string;
@@ -3765,94 +3766,31 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3765
3766
  seq: number;
3766
3767
  blockNr: number;
3767
3768
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3768
- stats: {
3769
- lines: number;
3770
- bytes: number;
3771
- cnt?: number | undefined;
3772
- };
3773
- type: "block.image";
3769
+ type: "block.toplevel.begin";
3774
3770
  sectionId: string;
3775
- url?: string | undefined;
3776
- uploadId?: string | undefined;
3777
- cid?: string | undefined;
3778
- mimeType?: string | undefined;
3779
- size?: number | undefined;
3780
- docWritten?: boolean | undefined;
3781
3771
  } | {
3782
3772
  blockId: string;
3783
3773
  streamId: string;
3784
3774
  seq: number;
3785
3775
  blockNr: number;
3786
3776
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3787
- type: "block.stats";
3788
- stats: {
3789
- toplevel: {
3790
- lines: number;
3791
- bytes: number;
3792
- cnt?: number | undefined;
3793
- };
3794
- code: {
3795
- lines: number;
3796
- bytes: number;
3797
- cnt?: number | undefined;
3798
- };
3799
- image: {
3800
- lines: number;
3801
- bytes: number;
3802
- cnt?: number | undefined;
3803
- };
3804
- total: {
3805
- lines: number;
3806
- bytes: number;
3807
- cnt?: number | undefined;
3808
- };
3809
- };
3810
- usage: {
3811
- prompt_tokens: number;
3812
- completion_tokens: number;
3813
- total_tokens: number;
3814
- model?: string | undefined;
3815
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3816
- reasoningEffort?: string | undefined;
3817
- };
3777
+ lineNr: number;
3778
+ line: string;
3779
+ type: "block.toplevel.line";
3780
+ sectionId: string;
3818
3781
  } | {
3819
- type: "prompt.research";
3820
- version: 1;
3782
+ blockId: string;
3821
3783
  streamId: string;
3822
- chatId: string;
3823
3784
  seq: number;
3785
+ blockNr: number;
3824
3786
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3825
- researchId: string;
3826
- status: "complete" | "failed" | "partial";
3827
- brief: string;
3828
- sources: {
3829
- url: string;
3830
- finalUrl: string | null;
3831
- contentType: string | null;
3832
- httpStatus: number | null;
3833
- backendFetchable: boolean;
3834
- fetched: boolean;
3835
- errorCode?: string | undefined;
3836
- }[];
3837
- api: {
3838
- method: string;
3839
- path: string;
3840
- description: string;
3841
- fields: string[];
3842
- }[];
3843
- excerpts: {
3844
- sourceUrl: string;
3845
- text: string;
3846
- locator?: string | undefined;
3847
- }[];
3848
- seedRows: {
3849
- sourceUrl: string;
3850
- dbName: string;
3851
- key: string;
3852
- item: unknown;
3853
- }[];
3854
- completedAt: string;
3855
- errorCode?: string | undefined;
3787
+ stats: {
3788
+ lines: number;
3789
+ bytes: number;
3790
+ cnt?: number | undefined;
3791
+ };
3792
+ type: "block.toplevel.end";
3793
+ sectionId: string;
3856
3794
  } | {
3857
3795
  streamId: string;
3858
3796
  chatId: string;
@@ -3954,6 +3892,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3954
3892
  agentDispatched?: true | undefined;
3955
3893
  platformInitiated?: true | undefined;
3956
3894
  firstDraft?: true | undefined;
3895
+ clientMessageId?: string | undefined;
3957
3896
  } | {
3958
3897
  streamId: string;
3959
3898
  chatId: string;
@@ -4246,6 +4185,44 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
4246
4185
  type: "prompt.notice";
4247
4186
  kind: "edits-incomplete";
4248
4187
  path?: string | undefined;
4188
+ } | {
4189
+ type: "prompt.research";
4190
+ version: 1;
4191
+ streamId: string;
4192
+ chatId: string;
4193
+ seq: number;
4194
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4195
+ researchId: string;
4196
+ status: "complete" | "failed" | "partial";
4197
+ brief: string;
4198
+ sources: {
4199
+ url: string;
4200
+ finalUrl: string | null;
4201
+ contentType: string | null;
4202
+ httpStatus: number | null;
4203
+ backendFetchable: boolean;
4204
+ fetched: boolean;
4205
+ errorCode?: string | undefined;
4206
+ }[];
4207
+ api: {
4208
+ method: string;
4209
+ path: string;
4210
+ description: string;
4211
+ fields: string[];
4212
+ }[];
4213
+ excerpts: {
4214
+ sourceUrl: string;
4215
+ text: string;
4216
+ locator?: string | undefined;
4217
+ }[];
4218
+ seedRows: {
4219
+ sourceUrl: string;
4220
+ dbName: string;
4221
+ key: string;
4222
+ item: unknown;
4223
+ }[];
4224
+ completedAt: string;
4225
+ errorCode?: string | undefined;
4249
4226
  })[];
4250
4227
  }, {}>;
4251
4228
  export type ResChatResponseSection = typeof resChatResponseSection.infer;
@@ -4361,18 +4338,37 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4361
4338
  seq: number;
4362
4339
  blockNr: number;
4363
4340
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4364
- type: "block.toplevel.begin";
4365
- sectionId: string;
4366
- } | {
4367
- blockId: string;
4368
- streamId: string;
4369
- seq: number;
4370
- blockNr: number;
4371
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4372
- lineNr: number;
4373
- line: string;
4374
- type: "block.toplevel.line";
4375
- sectionId: string;
4341
+ type: "block.stats";
4342
+ stats: {
4343
+ toplevel: {
4344
+ lines: number;
4345
+ bytes: number;
4346
+ cnt?: number | undefined;
4347
+ };
4348
+ code: {
4349
+ lines: number;
4350
+ bytes: number;
4351
+ cnt?: number | undefined;
4352
+ };
4353
+ image: {
4354
+ lines: number;
4355
+ bytes: number;
4356
+ cnt?: number | undefined;
4357
+ };
4358
+ total: {
4359
+ lines: number;
4360
+ bytes: number;
4361
+ cnt?: number | undefined;
4362
+ };
4363
+ };
4364
+ usage: {
4365
+ prompt_tokens: number;
4366
+ completion_tokens: number;
4367
+ total_tokens: number;
4368
+ model?: string | undefined;
4369
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4370
+ reasoningEffort?: string | undefined;
4371
+ };
4376
4372
  } | {
4377
4373
  blockId: string;
4378
4374
  streamId: string;
@@ -4384,8 +4380,14 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4384
4380
  bytes: number;
4385
4381
  cnt?: number | undefined;
4386
4382
  };
4387
- type: "block.toplevel.end";
4383
+ type: "block.image";
4388
4384
  sectionId: string;
4385
+ url?: string | undefined;
4386
+ uploadId?: string | undefined;
4387
+ cid?: string | undefined;
4388
+ mimeType?: string | undefined;
4389
+ size?: number | undefined;
4390
+ docWritten?: boolean | undefined;
4389
4391
  } | {
4390
4392
  blockId: string;
4391
4393
  streamId: string;
@@ -4443,94 +4445,31 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4443
4445
  seq: number;
4444
4446
  blockNr: number;
4445
4447
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4446
- stats: {
4447
- lines: number;
4448
- bytes: number;
4449
- cnt?: number | undefined;
4450
- };
4451
- type: "block.image";
4448
+ type: "block.toplevel.begin";
4452
4449
  sectionId: string;
4453
- url?: string | undefined;
4454
- uploadId?: string | undefined;
4455
- cid?: string | undefined;
4456
- mimeType?: string | undefined;
4457
- size?: number | undefined;
4458
- docWritten?: boolean | undefined;
4459
4450
  } | {
4460
4451
  blockId: string;
4461
4452
  streamId: string;
4462
4453
  seq: number;
4463
4454
  blockNr: number;
4464
4455
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4465
- type: "block.stats";
4466
- stats: {
4467
- toplevel: {
4468
- lines: number;
4469
- bytes: number;
4470
- cnt?: number | undefined;
4471
- };
4472
- code: {
4473
- lines: number;
4474
- bytes: number;
4475
- cnt?: number | undefined;
4476
- };
4477
- image: {
4478
- lines: number;
4479
- bytes: number;
4480
- cnt?: number | undefined;
4481
- };
4482
- total: {
4483
- lines: number;
4484
- bytes: number;
4485
- cnt?: number | undefined;
4486
- };
4487
- };
4488
- usage: {
4489
- prompt_tokens: number;
4490
- completion_tokens: number;
4491
- total_tokens: number;
4492
- model?: string | undefined;
4493
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4494
- reasoningEffort?: string | undefined;
4495
- };
4456
+ lineNr: number;
4457
+ line: string;
4458
+ type: "block.toplevel.line";
4459
+ sectionId: string;
4496
4460
  } | {
4497
- type: "prompt.research";
4498
- version: 1;
4461
+ blockId: string;
4499
4462
  streamId: string;
4500
- chatId: string;
4501
4463
  seq: number;
4464
+ blockNr: number;
4502
4465
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4503
- researchId: string;
4504
- status: "complete" | "failed" | "partial";
4505
- brief: string;
4506
- sources: {
4507
- url: string;
4508
- finalUrl: string | null;
4509
- contentType: string | null;
4510
- httpStatus: number | null;
4511
- backendFetchable: boolean;
4512
- fetched: boolean;
4513
- errorCode?: string | undefined;
4514
- }[];
4515
- api: {
4516
- method: string;
4517
- path: string;
4518
- description: string;
4519
- fields: string[];
4520
- }[];
4521
- excerpts: {
4522
- sourceUrl: string;
4523
- text: string;
4524
- locator?: string | undefined;
4525
- }[];
4526
- seedRows: {
4527
- sourceUrl: string;
4528
- dbName: string;
4529
- key: string;
4530
- item: unknown;
4531
- }[];
4532
- completedAt: string;
4533
- errorCode?: string | undefined;
4466
+ stats: {
4467
+ lines: number;
4468
+ bytes: number;
4469
+ cnt?: number | undefined;
4470
+ };
4471
+ type: "block.toplevel.end";
4472
+ sectionId: string;
4534
4473
  } | {
4535
4474
  streamId: string;
4536
4475
  chatId: string;
@@ -4632,6 +4571,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4632
4571
  agentDispatched?: true | undefined;
4633
4572
  platformInitiated?: true | undefined;
4634
4573
  firstDraft?: true | undefined;
4574
+ clientMessageId?: string | undefined;
4635
4575
  } | {
4636
4576
  streamId: string;
4637
4577
  chatId: string;
@@ -4924,6 +4864,44 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4924
4864
  type: "prompt.notice";
4925
4865
  kind: "edits-incomplete";
4926
4866
  path?: string | undefined;
4867
+ } | {
4868
+ type: "prompt.research";
4869
+ version: 1;
4870
+ streamId: string;
4871
+ chatId: string;
4872
+ seq: number;
4873
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4874
+ researchId: string;
4875
+ status: "complete" | "failed" | "partial";
4876
+ brief: string;
4877
+ sources: {
4878
+ url: string;
4879
+ finalUrl: string | null;
4880
+ contentType: string | null;
4881
+ httpStatus: number | null;
4882
+ backendFetchable: boolean;
4883
+ fetched: boolean;
4884
+ errorCode?: string | undefined;
4885
+ }[];
4886
+ api: {
4887
+ method: string;
4888
+ path: string;
4889
+ description: string;
4890
+ fields: string[];
4891
+ }[];
4892
+ excerpts: {
4893
+ sourceUrl: string;
4894
+ text: string;
4895
+ locator?: string | undefined;
4896
+ }[];
4897
+ seedRows: {
4898
+ sourceUrl: string;
4899
+ dbName: string;
4900
+ key: string;
4901
+ item: unknown;
4902
+ }[];
4903
+ completedAt: string;
4904
+ errorCode?: string | undefined;
4927
4905
  })[];
4928
4906
  }[];
4929
4907
  usage?: {
@@ -5051,18 +5029,37 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5051
5029
  seq: number;
5052
5030
  blockNr: number;
5053
5031
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5054
- type: "block.toplevel.begin";
5055
- sectionId: string;
5056
- } | {
5057
- blockId: string;
5058
- streamId: string;
5059
- seq: number;
5060
- blockNr: number;
5061
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5062
- lineNr: number;
5063
- line: string;
5064
- type: "block.toplevel.line";
5065
- sectionId: string;
5032
+ type: "block.stats";
5033
+ stats: {
5034
+ toplevel: {
5035
+ lines: number;
5036
+ bytes: number;
5037
+ cnt?: number | undefined;
5038
+ };
5039
+ code: {
5040
+ lines: number;
5041
+ bytes: number;
5042
+ cnt?: number | undefined;
5043
+ };
5044
+ image: {
5045
+ lines: number;
5046
+ bytes: number;
5047
+ cnt?: number | undefined;
5048
+ };
5049
+ total: {
5050
+ lines: number;
5051
+ bytes: number;
5052
+ cnt?: number | undefined;
5053
+ };
5054
+ };
5055
+ usage: {
5056
+ prompt_tokens: number;
5057
+ completion_tokens: number;
5058
+ total_tokens: number;
5059
+ model?: string | undefined;
5060
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5061
+ reasoningEffort?: string | undefined;
5062
+ };
5066
5063
  } | {
5067
5064
  blockId: string;
5068
5065
  streamId: string;
@@ -5074,8 +5071,14 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5074
5071
  bytes: number;
5075
5072
  cnt?: number | undefined;
5076
5073
  };
5077
- type: "block.toplevel.end";
5074
+ type: "block.image";
5078
5075
  sectionId: string;
5076
+ url?: string | undefined;
5077
+ uploadId?: string | undefined;
5078
+ cid?: string | undefined;
5079
+ mimeType?: string | undefined;
5080
+ size?: number | undefined;
5081
+ docWritten?: boolean | undefined;
5079
5082
  } | {
5080
5083
  blockId: string;
5081
5084
  streamId: string;
@@ -5133,94 +5136,31 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5133
5136
  seq: number;
5134
5137
  blockNr: number;
5135
5138
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5136
- stats: {
5137
- lines: number;
5138
- bytes: number;
5139
- cnt?: number | undefined;
5140
- };
5141
- type: "block.image";
5139
+ type: "block.toplevel.begin";
5142
5140
  sectionId: string;
5143
- url?: string | undefined;
5144
- uploadId?: string | undefined;
5145
- cid?: string | undefined;
5146
- mimeType?: string | undefined;
5147
- size?: number | undefined;
5148
- docWritten?: boolean | undefined;
5149
5141
  } | {
5150
5142
  blockId: string;
5151
5143
  streamId: string;
5152
5144
  seq: number;
5153
5145
  blockNr: number;
5154
5146
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5155
- type: "block.stats";
5156
- stats: {
5157
- toplevel: {
5158
- lines: number;
5159
- bytes: number;
5160
- cnt?: number | undefined;
5161
- };
5162
- code: {
5163
- lines: number;
5164
- bytes: number;
5165
- cnt?: number | undefined;
5166
- };
5167
- image: {
5168
- lines: number;
5169
- bytes: number;
5170
- cnt?: number | undefined;
5171
- };
5172
- total: {
5173
- lines: number;
5174
- bytes: number;
5175
- cnt?: number | undefined;
5176
- };
5177
- };
5178
- usage: {
5179
- prompt_tokens: number;
5180
- completion_tokens: number;
5181
- total_tokens: number;
5182
- model?: string | undefined;
5183
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5184
- reasoningEffort?: string | undefined;
5185
- };
5147
+ lineNr: number;
5148
+ line: string;
5149
+ type: "block.toplevel.line";
5150
+ sectionId: string;
5186
5151
  } | {
5187
- type: "prompt.research";
5188
- version: 1;
5152
+ blockId: string;
5189
5153
  streamId: string;
5190
- chatId: string;
5191
5154
  seq: number;
5155
+ blockNr: number;
5192
5156
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5193
- researchId: string;
5194
- status: "complete" | "failed" | "partial";
5195
- brief: string;
5196
- sources: {
5197
- url: string;
5198
- finalUrl: string | null;
5199
- contentType: string | null;
5200
- httpStatus: number | null;
5201
- backendFetchable: boolean;
5202
- fetched: boolean;
5203
- errorCode?: string | undefined;
5204
- }[];
5205
- api: {
5206
- method: string;
5207
- path: string;
5208
- description: string;
5209
- fields: string[];
5210
- }[];
5211
- excerpts: {
5212
- sourceUrl: string;
5213
- text: string;
5214
- locator?: string | undefined;
5215
- }[];
5216
- seedRows: {
5217
- sourceUrl: string;
5218
- dbName: string;
5219
- key: string;
5220
- item: unknown;
5221
- }[];
5222
- completedAt: string;
5223
- errorCode?: string | undefined;
5157
+ stats: {
5158
+ lines: number;
5159
+ bytes: number;
5160
+ cnt?: number | undefined;
5161
+ };
5162
+ type: "block.toplevel.end";
5163
+ sectionId: string;
5224
5164
  } | {
5225
5165
  streamId: string;
5226
5166
  chatId: string;
@@ -5322,6 +5262,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5322
5262
  agentDispatched?: true | undefined;
5323
5263
  platformInitiated?: true | undefined;
5324
5264
  firstDraft?: true | undefined;
5265
+ clientMessageId?: string | undefined;
5325
5266
  } | {
5326
5267
  streamId: string;
5327
5268
  chatId: string;
@@ -5614,6 +5555,44 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5614
5555
  type: "prompt.notice";
5615
5556
  kind: "edits-incomplete";
5616
5557
  path?: string | undefined;
5558
+ } | {
5559
+ type: "prompt.research";
5560
+ version: 1;
5561
+ streamId: string;
5562
+ chatId: string;
5563
+ seq: number;
5564
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5565
+ researchId: string;
5566
+ status: "complete" | "failed" | "partial";
5567
+ brief: string;
5568
+ sources: {
5569
+ url: string;
5570
+ finalUrl: string | null;
5571
+ contentType: string | null;
5572
+ httpStatus: number | null;
5573
+ backendFetchable: boolean;
5574
+ fetched: boolean;
5575
+ errorCode?: string | undefined;
5576
+ }[];
5577
+ api: {
5578
+ method: string;
5579
+ path: string;
5580
+ description: string;
5581
+ fields: string[];
5582
+ }[];
5583
+ excerpts: {
5584
+ sourceUrl: string;
5585
+ text: string;
5586
+ locator?: string | undefined;
5587
+ }[];
5588
+ seedRows: {
5589
+ sourceUrl: string;
5590
+ dbName: string;
5591
+ key: string;
5592
+ item: unknown;
5593
+ }[];
5594
+ completedAt: string;
5595
+ errorCode?: string | undefined;
5617
5596
  })[];
5618
5597
  }[];
5619
5598
  usage?: {
@@ -5642,7 +5621,7 @@ export declare function isResGetChatResponse(obj: unknown): obj is ResGetChatRes
5642
5621
  export declare const reqGetVibeChips: import("arktype/internal/variants/object.ts").ObjectType<{
5643
5622
  type: "vibes.diy.req-get-vibe-chips";
5644
5623
  auth?: {
5645
- type: "clerk" | "device-id" | "ucan";
5624
+ type: "clerk" | "device-id" | "guest" | "ucan";
5646
5625
  token: string;
5647
5626
  } | undefined;
5648
5627
  ownerHandle: string;
@@ -5662,7 +5641,7 @@ export declare function isResGetVibeChips(obj: unknown): obj is ResGetVibeChips;
5662
5641
  export declare const reqGetCachedSuggestion: import("arktype/internal/variants/object.ts").ObjectType<{
5663
5642
  type: "vibes.diy.req-get-cached-suggestion";
5664
5643
  auth?: {
5665
- type: "clerk" | "device-id" | "ucan";
5644
+ type: "clerk" | "device-id" | "guest" | "ucan";
5666
5645
  token: string;
5667
5646
  } | undefined;
5668
5647
  ownerHandle: string;
@@ -5685,7 +5664,7 @@ export declare function isResGetCachedSuggestion(obj: unknown): obj is ResGetCac
5685
5664
  export declare const reqSeedStarterChips: import("arktype/internal/variants/object.ts").ObjectType<{
5686
5665
  type: "vibes.diy.req-seed-starter-chips";
5687
5666
  auth?: {
5688
- type: "clerk" | "device-id" | "ucan";
5667
+ type: "clerk" | "device-id" | "guest" | "ucan";
5689
5668
  token: string;
5690
5669
  } | undefined;
5691
5670
  ownerHandle: string;