@vibes.diy/api-types 14.3.95 → 14.3.97

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/invite.d.ts CHANGED
@@ -15,6 +15,7 @@ export declare const AIParams: import("arktype/internal/variants/object.ts").Obj
15
15
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
16
16
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
17
17
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
18
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
18
19
  imageInput?: boolean | undefined;
19
20
  };
20
21
  apiKey?: string | undefined;
@@ -758,6 +759,7 @@ export declare const ActiveModelSettingBase: import("arktype/internal/variants/o
758
759
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
759
760
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
760
761
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
762
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
761
763
  imageInput?: boolean | undefined;
762
764
  };
763
765
  apiKey?: string | undefined;
@@ -774,6 +776,7 @@ export declare const ActiveModelSettingCodegen: import("arktype/internal/variant
774
776
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
775
777
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
776
778
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
779
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
777
780
  imageInput?: boolean | undefined;
778
781
  };
779
782
  apiKey?: string | undefined;
@@ -793,6 +796,7 @@ export declare const ActiveModelSettingRuntime: import("arktype/internal/variant
793
796
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
794
797
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
795
798
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
799
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
796
800
  imageInput?: boolean | undefined;
797
801
  };
798
802
  apiKey?: string | undefined;
@@ -812,6 +816,7 @@ export declare const ActiveModelSettingImg: import("arktype/internal/variants/ob
812
816
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
813
817
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
814
818
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
819
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
815
820
  imageInput?: boolean | undefined;
816
821
  };
817
822
  apiKey?: string | undefined;
@@ -831,6 +836,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
831
836
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
832
837
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
833
838
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
839
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
834
840
  imageInput?: boolean | undefined;
835
841
  };
836
842
  apiKey?: string | undefined;
@@ -847,6 +853,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
847
853
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
848
854
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
849
855
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
856
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
850
857
  imageInput?: boolean | undefined;
851
858
  };
852
859
  apiKey?: string | undefined;
@@ -863,6 +870,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
863
870
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
864
871
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
865
872
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
873
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
866
874
  imageInput?: boolean | undefined;
867
875
  };
868
876
  apiKey?: string | undefined;
@@ -917,6 +925,115 @@ export declare const ActiveSeedControl: import("arktype/internal/variants/object
917
925
  export type ActiveSeedControl = typeof ActiveSeedControl.infer;
918
926
  export declare function isActiveSeedControl(obj: unknown): obj is ActiveSeedControl;
919
927
  export declare const ActiveEntry: import("arktype/internal/variants/object.ts").ObjectType<{
928
+ type: "active.style";
929
+ palette?: {
930
+ hues: [number, ({
931
+ mode: "derived";
932
+ } | {
933
+ mode: "pinned";
934
+ h: number;
935
+ } | undefined)?, ({
936
+ mode: "derived";
937
+ } | {
938
+ mode: "pinned";
939
+ h: number;
940
+ } | undefined)?];
941
+ character: {
942
+ chroma: number;
943
+ contrast: number;
944
+ neutralTint: number;
945
+ surfaceLift: number;
946
+ fillLevel: number;
947
+ scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
948
+ paper?: number | undefined;
949
+ fillLift?: number | undefined;
950
+ };
951
+ pouf?: {
952
+ lead: number;
953
+ up?: number | undefined;
954
+ down?: number | undefined;
955
+ gap?: number | undefined;
956
+ locked?: "home" | undefined;
957
+ } | undefined;
958
+ } | undefined;
959
+ font?: string | undefined;
960
+ ornament?: {
961
+ pad: {
962
+ x: number;
963
+ y: number;
964
+ };
965
+ pins?: {
966
+ spacing?: string | undefined;
967
+ "font-size-base"?: string | undefined;
968
+ radius?: string | undefined;
969
+ "radius-sm"?: string | undefined;
970
+ "radius-lg"?: string | undefined;
971
+ "border-width"?: string | undefined;
972
+ shadow?: string | undefined;
973
+ "shadow-sm"?: string | undefined;
974
+ "shadow-lg"?: string | undefined;
975
+ "letter-spacing"?: string | undefined;
976
+ "letter-spacing-wide"?: string | undefined;
977
+ "font-weight"?: string | undefined;
978
+ "text-transform"?: string | undefined;
979
+ } | undefined;
980
+ } | undefined;
981
+ stylePinned?: boolean | undefined;
982
+ } | {
983
+ type: "draft.style";
984
+ palette?: {
985
+ hues: [number, ({
986
+ mode: "derived";
987
+ } | {
988
+ mode: "pinned";
989
+ h: number;
990
+ } | undefined)?, ({
991
+ mode: "derived";
992
+ } | {
993
+ mode: "pinned";
994
+ h: number;
995
+ } | undefined)?];
996
+ character: {
997
+ chroma: number;
998
+ contrast: number;
999
+ neutralTint: number;
1000
+ surfaceLift: number;
1001
+ fillLevel: number;
1002
+ scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
1003
+ paper?: number | undefined;
1004
+ fillLift?: number | undefined;
1005
+ };
1006
+ pouf?: {
1007
+ lead: number;
1008
+ up?: number | undefined;
1009
+ down?: number | undefined;
1010
+ gap?: number | undefined;
1011
+ locked?: "home" | undefined;
1012
+ } | undefined;
1013
+ } | undefined;
1014
+ font?: string | undefined;
1015
+ ornament?: {
1016
+ pad: {
1017
+ x: number;
1018
+ y: number;
1019
+ };
1020
+ pins?: {
1021
+ spacing?: string | undefined;
1022
+ "font-size-base"?: string | undefined;
1023
+ radius?: string | undefined;
1024
+ "radius-sm"?: string | undefined;
1025
+ "radius-lg"?: string | undefined;
1026
+ "border-width"?: string | undefined;
1027
+ shadow?: string | undefined;
1028
+ "shadow-sm"?: string | undefined;
1029
+ "shadow-lg"?: string | undefined;
1030
+ "letter-spacing"?: string | undefined;
1031
+ "letter-spacing-wide"?: string | undefined;
1032
+ "font-weight"?: string | undefined;
1033
+ "text-transform"?: string | undefined;
1034
+ } | undefined;
1035
+ } | undefined;
1036
+ } | {
920
1037
  type: "app.public.access";
921
1038
  enable: boolean;
922
1039
  tick?: {
@@ -1154,6 +1271,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1154
1271
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1155
1272
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1156
1273
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1274
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1157
1275
  imageInput?: boolean | undefined;
1158
1276
  };
1159
1277
  apiKey?: string | undefined;
@@ -1170,6 +1288,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1170
1288
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1171
1289
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1172
1290
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1291
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1173
1292
  imageInput?: boolean | undefined;
1174
1293
  };
1175
1294
  apiKey?: string | undefined;
@@ -1186,6 +1305,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1186
1305
  preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1187
1306
  fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1188
1307
  supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1308
+ offered?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime" | "subagent")[] | undefined;
1189
1309
  imageInput?: boolean | undefined;
1190
1310
  };
1191
1311
  apiKey?: string | undefined;
@@ -1214,115 +1334,6 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1214
1334
  type: "active.seed-control";
1215
1335
  dontRun?: boolean | undefined;
1216
1336
  suppressed?: string[] | undefined;
1217
- } | {
1218
- type: "active.style";
1219
- palette?: {
1220
- hues: [number, ({
1221
- mode: "derived";
1222
- } | {
1223
- mode: "pinned";
1224
- h: number;
1225
- } | undefined)?, ({
1226
- mode: "derived";
1227
- } | {
1228
- mode: "pinned";
1229
- h: number;
1230
- } | undefined)?];
1231
- character: {
1232
- chroma: number;
1233
- contrast: number;
1234
- neutralTint: number;
1235
- surfaceLift: number;
1236
- fillLevel: number;
1237
- scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
1238
- paper?: number | undefined;
1239
- fillLift?: number | undefined;
1240
- };
1241
- pouf?: {
1242
- lead: number;
1243
- up?: number | undefined;
1244
- down?: number | undefined;
1245
- gap?: number | undefined;
1246
- locked?: "home" | undefined;
1247
- } | undefined;
1248
- } | undefined;
1249
- font?: string | undefined;
1250
- ornament?: {
1251
- pad: {
1252
- x: number;
1253
- y: number;
1254
- };
1255
- pins?: {
1256
- spacing?: string | undefined;
1257
- "font-size-base"?: string | undefined;
1258
- radius?: string | undefined;
1259
- "radius-sm"?: string | undefined;
1260
- "radius-lg"?: string | undefined;
1261
- "border-width"?: string | undefined;
1262
- shadow?: string | undefined;
1263
- "shadow-sm"?: string | undefined;
1264
- "shadow-lg"?: string | undefined;
1265
- "letter-spacing"?: string | undefined;
1266
- "letter-spacing-wide"?: string | undefined;
1267
- "font-weight"?: string | undefined;
1268
- "text-transform"?: string | undefined;
1269
- } | undefined;
1270
- } | undefined;
1271
- stylePinned?: boolean | undefined;
1272
- } | {
1273
- type: "draft.style";
1274
- palette?: {
1275
- hues: [number, ({
1276
- mode: "derived";
1277
- } | {
1278
- mode: "pinned";
1279
- h: number;
1280
- } | undefined)?, ({
1281
- mode: "derived";
1282
- } | {
1283
- mode: "pinned";
1284
- h: number;
1285
- } | undefined)?];
1286
- character: {
1287
- chroma: number;
1288
- contrast: number;
1289
- neutralTint: number;
1290
- surfaceLift: number;
1291
- fillLevel: number;
1292
- scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
1293
- paper?: number | undefined;
1294
- fillLift?: number | undefined;
1295
- };
1296
- pouf?: {
1297
- lead: number;
1298
- up?: number | undefined;
1299
- down?: number | undefined;
1300
- gap?: number | undefined;
1301
- locked?: "home" | undefined;
1302
- } | undefined;
1303
- } | undefined;
1304
- font?: string | undefined;
1305
- ornament?: {
1306
- pad: {
1307
- x: number;
1308
- y: number;
1309
- };
1310
- pins?: {
1311
- spacing?: string | undefined;
1312
- "font-size-base"?: string | undefined;
1313
- radius?: string | undefined;
1314
- "radius-sm"?: string | undefined;
1315
- "radius-lg"?: string | undefined;
1316
- "border-width"?: string | undefined;
1317
- shadow?: string | undefined;
1318
- "shadow-sm"?: string | undefined;
1319
- "shadow-lg"?: string | undefined;
1320
- "letter-spacing"?: string | undefined;
1321
- "letter-spacing-wide"?: string | undefined;
1322
- "font-weight"?: string | undefined;
1323
- "text-transform"?: string | undefined;
1324
- } | undefined;
1325
- } | undefined;
1326
1337
  } | {
1327
1338
  type: "active.db-acl";
1328
1339
  dbName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.95",
3
+ "version": "14.3.97",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@adviser/cement": "~0.5.34",
22
22
  "@cloudflare/workers-types": "~5.20261004.1",
23
- "@vibes.diy/call-ai-v2": "14.3.95",
24
- "@vibes.diy/identity": "14.3.95",
25
- "@vibes.diy/vibe-types": "14.3.95",
23
+ "@vibes.diy/call-ai-v2": "14.3.97",
24
+ "@vibes.diy/identity": "14.3.97",
25
+ "@vibes.diy/vibe-types": "14.3.97",
26
26
  "arktype": "~2.2.6"
27
27
  },
28
28
  "repository": {
@@ -0,0 +1,10 @@
1
+ export declare const evtPromoRedeemed: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ type: "vibes.diy.evt-promo-redeemed";
3
+ userId: string;
4
+ creditsGranted: number;
5
+ rewardMask: string;
6
+ at: string;
7
+ }, {}>;
8
+ export type EvtPromoRedeemed = typeof evtPromoRedeemed.infer;
9
+ export declare function isEvtPromoRedeemed(obj: unknown): obj is EvtPromoRedeemed;
10
+ export declare function maskPromoRewardId(rewardId: string | undefined): string;
@@ -0,0 +1,20 @@
1
+ import { type } from "arktype";
2
+ import { lazyType } from "./lazy-type.js";
3
+ export const evtPromoRedeemed = lazyType(() => type({
4
+ type: "'vibes.diy.evt-promo-redeemed'",
5
+ userId: "string",
6
+ creditsGranted: "number",
7
+ rewardMask: "string",
8
+ at: "string",
9
+ }));
10
+ export function isEvtPromoRedeemed(obj) {
11
+ return !(evtPromoRedeemed(obj) instanceof type.errors);
12
+ }
13
+ export function maskPromoRewardId(rewardId) {
14
+ if (rewardId === undefined || rewardId === "")
15
+ return "unknown";
16
+ if (rewardId.length < 6)
17
+ return `…(${rewardId.length})`;
18
+ return `${rewardId.slice(0, 2)}…(${rewardId.length})`;
19
+ }
20
+ //# sourceMappingURL=promo-redeemed-msg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promo-redeemed-msg.js","sourceRoot":"","sources":["../jsr/promo-redeemed-msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAiB1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC5C,IAAI,CAAC;IACH,IAAI,EAAE,gCAAgC;IAEtC,MAAM,EAAE,QAAQ;IAEhB,cAAc,EAAE,QAAQ;IAExB,UAAU,EAAE,QAAQ;IAEpB,EAAE,EAAE,QAAQ;CACb,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,OAAO,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAUD,MAAM,UAAU,iBAAiB,CAAC,QAA4B;IAC5D,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAChE,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC;IACxD,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC;AACxD,CAAC"}
package/prompt.d.ts CHANGED
@@ -493,56 +493,6 @@ export declare const PromptNotice: import("arktype/internal/variants/object.ts")
493
493
  export type PromptNotice = typeof PromptNotice.infer;
494
494
  export declare function isPromptNotice(msg: unknown): msg is PromptNotice;
495
495
  export declare const PromptMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
496
- type: "prompt.research";
497
- version: 1;
498
- streamId: string;
499
- chatId: string;
500
- seq: number;
501
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
502
- researchId: string;
503
- status: "complete" | "failed" | "partial";
504
- brief: string;
505
- sources: {
506
- url: string;
507
- finalUrl: string | null;
508
- contentType: string | null;
509
- httpStatus: number | null;
510
- backendFetchable: boolean;
511
- fetched: boolean;
512
- errorCode?: string | undefined;
513
- }[];
514
- api: {
515
- method: string;
516
- path: string;
517
- description: string;
518
- fields: string[];
519
- }[];
520
- excerpts: {
521
- sourceUrl: string;
522
- text: string;
523
- locator?: string | undefined;
524
- }[];
525
- seedRows: {
526
- sourceUrl: string;
527
- dbName: string;
528
- key: string;
529
- item: unknown;
530
- }[];
531
- completedAt: string;
532
- errorCode?: string | undefined;
533
- } | {
534
- streamId: string;
535
- chatId: string;
536
- seq: number;
537
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
538
- type: "prompt.block-begin";
539
- } | {
540
- streamId: string;
541
- chatId: string;
542
- seq: number;
543
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
544
- type: "prompt.block-end";
545
- } | {
546
496
  streamId: string;
547
497
  chatId: string;
548
498
  seq: number;
@@ -640,16 +590,6 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
640
590
  agentCommit?: true | undefined;
641
591
  agentSkills?: string[] | undefined;
642
592
  alternativeReady?: string | undefined;
643
- } | {
644
- streamId: string;
645
- chatId: string;
646
- seq: number;
647
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
648
- type: "prompt.error";
649
- error: string;
650
- code?: "turn-lost" | undefined;
651
- lostBuildPromptIds?: string[] | undefined;
652
- variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
653
593
  } | {
654
594
  streamId: string;
655
595
  chatId: string;
@@ -702,6 +642,67 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
702
642
  size: number;
703
643
  uploadId?: string | undefined;
704
644
  })[];
645
+ } | {
646
+ streamId: string;
647
+ chatId: string;
648
+ seq: number;
649
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
650
+ type: "prompt.block-begin";
651
+ } | {
652
+ streamId: string;
653
+ chatId: string;
654
+ seq: number;
655
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
656
+ type: "prompt.error";
657
+ error: string;
658
+ code?: "turn-lost" | undefined;
659
+ lostBuildPromptIds?: string[] | undefined;
660
+ variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
661
+ } | {
662
+ streamId: string;
663
+ chatId: string;
664
+ seq: number;
665
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
666
+ type: "prompt.block-end";
667
+ } | {
668
+ streamId: string;
669
+ chatId: string;
670
+ seq: number;
671
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
672
+ type: "prompt.model-resolved";
673
+ model: string;
674
+ } | {
675
+ streamId: string;
676
+ chatId: string;
677
+ seq: number;
678
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
679
+ type: "prompt.fs-persisted";
680
+ fsRef: (In: {
681
+ appSlug: string;
682
+ ownerHandle?: string | undefined;
683
+ userSlug?: string | undefined;
684
+ mode: "dev" | "production";
685
+ fsId: string;
686
+ }) => import("arktype").Out<{
687
+ appSlug: string;
688
+ mode: "dev" | "production";
689
+ fsId: string;
690
+ ownerHandle: string;
691
+ }>;
692
+ } | {
693
+ streamId: string;
694
+ chatId: string;
695
+ seq: number;
696
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
697
+ type: "prompt.system-prompt";
698
+ text: string;
699
+ } | {
700
+ streamId: string;
701
+ chatId: string;
702
+ seq: number;
703
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
704
+ type: "prompt.raw";
705
+ text: string;
705
706
  } | {
706
707
  streamId: string;
707
708
  chatId: string;
@@ -796,40 +797,31 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
796
797
  chatId: string;
797
798
  seq: number;
798
799
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
799
- type: "prompt.model-resolved";
800
- model: string;
801
- } | {
802
- streamId: string;
803
- chatId: string;
804
- seq: number;
805
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
806
- type: "prompt.raw";
807
- text: string;
808
- } | {
809
- streamId: string;
810
- chatId: string;
811
- seq: number;
812
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
813
- type: "prompt.fs-persisted";
814
- fsRef: (In: {
815
- appSlug: string;
816
- ownerHandle?: string | undefined;
817
- userSlug?: string | undefined;
818
- mode: "dev" | "production";
819
- fsId: string;
820
- }) => import("arktype").Out<{
821
- appSlug: string;
822
- mode: "dev" | "production";
823
- fsId: string;
824
- ownerHandle: string;
825
- }>;
826
- } | {
827
- streamId: string;
828
- chatId: string;
829
- seq: number;
830
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
831
- type: "prompt.system-prompt";
832
- text: string;
800
+ type: "prompt.agent-evidence";
801
+ evidence: {
802
+ kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
803
+ options?: {
804
+ label: string;
805
+ gold?: boolean | undefined;
806
+ kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
807
+ }[] | undefined;
808
+ sessionId?: string | undefined;
809
+ callId?: string | undefined;
810
+ handleId?: string | undefined;
811
+ buildHandleId?: string | undefined;
812
+ supersedes?: string | undefined;
813
+ queued?: boolean | undefined;
814
+ state?: "building" | "committing" | "queued" | undefined;
815
+ saved?: boolean | undefined;
816
+ ok?: boolean | undefined;
817
+ refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
818
+ fsId?: string | undefined;
819
+ name?: string | undefined;
820
+ round?: number | undefined;
821
+ epoch?: number | undefined;
822
+ text?: string | undefined;
823
+ truncated?: boolean | undefined;
824
+ };
833
825
  } | {
834
826
  streamId: string;
835
827
  chatId: string;
@@ -891,36 +883,6 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
891
883
  } | undefined;
892
884
  };
893
885
  description: string;
894
- } | {
895
- streamId: string;
896
- chatId: string;
897
- seq: number;
898
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
899
- type: "prompt.agent-evidence";
900
- evidence: {
901
- kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
902
- options?: {
903
- label: string;
904
- gold?: boolean | undefined;
905
- kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
906
- }[] | undefined;
907
- sessionId?: string | undefined;
908
- callId?: string | undefined;
909
- handleId?: string | undefined;
910
- buildHandleId?: string | undefined;
911
- supersedes?: string | undefined;
912
- queued?: boolean | undefined;
913
- state?: "building" | "committing" | "queued" | undefined;
914
- saved?: boolean | undefined;
915
- ok?: boolean | undefined;
916
- refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
917
- fsId?: string | undefined;
918
- name?: string | undefined;
919
- round?: number | undefined;
920
- epoch?: number | undefined;
921
- text?: string | undefined;
922
- truncated?: boolean | undefined;
923
- };
924
886
  } | {
925
887
  type: "prompt.status";
926
888
  streamId: string;
@@ -941,6 +903,44 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
941
903
  type: "prompt.notice";
942
904
  kind: "edits-incomplete";
943
905
  path?: string | undefined;
906
+ } | {
907
+ type: "prompt.research";
908
+ version: 1;
909
+ streamId: string;
910
+ chatId: string;
911
+ seq: number;
912
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
913
+ researchId: string;
914
+ status: "complete" | "failed" | "partial";
915
+ brief: string;
916
+ sources: {
917
+ url: string;
918
+ finalUrl: string | null;
919
+ contentType: string | null;
920
+ httpStatus: number | null;
921
+ backendFetchable: boolean;
922
+ fetched: boolean;
923
+ errorCode?: string | undefined;
924
+ }[];
925
+ api: {
926
+ method: string;
927
+ path: string;
928
+ description: string;
929
+ fields: string[];
930
+ }[];
931
+ excerpts: {
932
+ sourceUrl: string;
933
+ text: string;
934
+ locator?: string | undefined;
935
+ }[];
936
+ seedRows: {
937
+ sourceUrl: string;
938
+ dbName: string;
939
+ key: string;
940
+ item: unknown;
941
+ }[];
942
+ completedAt: string;
943
+ errorCode?: string | undefined;
944
944
  }, {}>;
945
945
  export type PromptMsgs = typeof PromptMsgs.infer;
946
946
  export declare const isPromptMsg: (msg: unknown) => msg is PromptMsgs;
@@ -16,6 +16,7 @@ export declare const BOOT_STATS_EVENT_TYPE = "vibe.evt.boot-stats";
16
16
  export declare const WEB_VITALS_EVENT_TYPE = "vibe.evt.web-vitals";
17
17
  export declare const CPU_BUSY_EVENT_TYPE = "vibe.evt.cpu-busy";
18
18
  export declare const LOCAL_WRITES_EVENT_TYPE = "vibe.evt.local-writes";
19
+ export declare const ENGAGEMENT_EVENT_TYPE = "vibe.evt.engagement";
19
20
  export declare const SCREENSHOT_MODE_PARAM = "screenshot";
20
21
  export declare function isScreenshotModeSearch(search: string): boolean;
21
22
  export declare const SCREENSHOT_CAPTURE_PARAM = "sc";