@vibes.diy/api-types 14.3.354 → 14.3.356
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/agent-picture.d.ts +5 -0
- package/app.d.ts +92 -92
- package/asset-magic.d.ts +4 -0
- package/asset-magic.js +48 -0
- package/crm-fact-msg.d.ts +2 -1
- package/crm-fact-msg.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/invite-flow.d.ts +152 -152
- package/package.json +5 -4
- package/prompt.d.ts +87 -87
- package/settings.d.ts +236 -236
package/agent-picture.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export type MakePictureAnswer = {
|
|
|
30
30
|
readonly prompt: string;
|
|
31
31
|
readonly model: string;
|
|
32
32
|
};
|
|
33
|
+
readonly offer?: {
|
|
34
|
+
readonly tool: string;
|
|
35
|
+
readonly ask: string;
|
|
36
|
+
readonly note: string;
|
|
37
|
+
};
|
|
33
38
|
};
|
|
34
39
|
export declare const reqMakePicture: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
35
40
|
type: "vibes.diy.req-make-picture";
|
package/app.d.ts
CHANGED
|
@@ -670,37 +670,18 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
670
670
|
seq: number;
|
|
671
671
|
blockNr: number;
|
|
672
672
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
673
|
-
type: "block.
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
image: {
|
|
686
|
-
lines: number;
|
|
687
|
-
bytes: number;
|
|
688
|
-
cnt?: number | undefined;
|
|
689
|
-
};
|
|
690
|
-
total: {
|
|
691
|
-
lines: number;
|
|
692
|
-
bytes: number;
|
|
693
|
-
cnt?: number | undefined;
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
usage: {
|
|
697
|
-
prompt_tokens: number;
|
|
698
|
-
completion_tokens: number;
|
|
699
|
-
total_tokens: number;
|
|
700
|
-
model?: string | undefined;
|
|
701
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
702
|
-
reasoningEffort?: string | undefined;
|
|
703
|
-
};
|
|
673
|
+
type: "block.toplevel.begin";
|
|
674
|
+
sectionId: string;
|
|
675
|
+
} | {
|
|
676
|
+
blockId: string;
|
|
677
|
+
streamId: string;
|
|
678
|
+
seq: number;
|
|
679
|
+
blockNr: number;
|
|
680
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
681
|
+
lineNr: number;
|
|
682
|
+
line: string;
|
|
683
|
+
type: "block.toplevel.line";
|
|
684
|
+
sectionId: string;
|
|
704
685
|
} | {
|
|
705
686
|
blockId: string;
|
|
706
687
|
streamId: string;
|
|
@@ -712,14 +693,9 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
712
693
|
bytes: number;
|
|
713
694
|
cnt?: number | undefined;
|
|
714
695
|
};
|
|
715
|
-
type: "block.
|
|
696
|
+
type: "block.toplevel.end";
|
|
716
697
|
sectionId: string;
|
|
717
|
-
|
|
718
|
-
uploadId?: string | undefined;
|
|
719
|
-
cid?: string | undefined;
|
|
720
|
-
mimeType?: string | undefined;
|
|
721
|
-
size?: number | undefined;
|
|
722
|
-
docWritten?: boolean | undefined;
|
|
698
|
+
messageEnd?: true | undefined;
|
|
723
699
|
} | {
|
|
724
700
|
blockId: string;
|
|
725
701
|
streamId: string;
|
|
@@ -772,24 +748,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
772
748
|
kind: string;
|
|
773
749
|
truncatedAtLine: number;
|
|
774
750
|
errorCount: number;
|
|
775
|
-
} | {
|
|
776
|
-
blockId: string;
|
|
777
|
-
streamId: string;
|
|
778
|
-
seq: number;
|
|
779
|
-
blockNr: number;
|
|
780
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
781
|
-
type: "block.toplevel.begin";
|
|
782
|
-
sectionId: string;
|
|
783
|
-
} | {
|
|
784
|
-
blockId: string;
|
|
785
|
-
streamId: string;
|
|
786
|
-
seq: number;
|
|
787
|
-
blockNr: number;
|
|
788
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
789
|
-
lineNr: number;
|
|
790
|
-
line: string;
|
|
791
|
-
type: "block.toplevel.line";
|
|
792
|
-
sectionId: string;
|
|
793
751
|
} | {
|
|
794
752
|
blockId: string;
|
|
795
753
|
streamId: string;
|
|
@@ -801,47 +759,51 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
801
759
|
bytes: number;
|
|
802
760
|
cnt?: number | undefined;
|
|
803
761
|
};
|
|
804
|
-
type: "block.
|
|
762
|
+
type: "block.image";
|
|
805
763
|
sectionId: string;
|
|
806
|
-
|
|
764
|
+
url?: string | undefined;
|
|
765
|
+
uploadId?: string | undefined;
|
|
766
|
+
cid?: string | undefined;
|
|
767
|
+
mimeType?: string | undefined;
|
|
768
|
+
size?: number | undefined;
|
|
769
|
+
docWritten?: boolean | undefined;
|
|
807
770
|
} | {
|
|
808
|
-
|
|
809
|
-
version: 1;
|
|
771
|
+
blockId: string;
|
|
810
772
|
streamId: string;
|
|
811
|
-
chatId: string;
|
|
812
773
|
seq: number;
|
|
774
|
+
blockNr: number;
|
|
813
775
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
776
|
+
type: "block.stats";
|
|
777
|
+
stats: {
|
|
778
|
+
toplevel: {
|
|
779
|
+
lines: number;
|
|
780
|
+
bytes: number;
|
|
781
|
+
cnt?: number | undefined;
|
|
782
|
+
};
|
|
783
|
+
code: {
|
|
784
|
+
lines: number;
|
|
785
|
+
bytes: number;
|
|
786
|
+
cnt?: number | undefined;
|
|
787
|
+
};
|
|
788
|
+
image: {
|
|
789
|
+
lines: number;
|
|
790
|
+
bytes: number;
|
|
791
|
+
cnt?: number | undefined;
|
|
792
|
+
};
|
|
793
|
+
total: {
|
|
794
|
+
lines: number;
|
|
795
|
+
bytes: number;
|
|
796
|
+
cnt?: number | undefined;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
usage: {
|
|
800
|
+
prompt_tokens: number;
|
|
801
|
+
completion_tokens: number;
|
|
802
|
+
total_tokens: number;
|
|
803
|
+
model?: string | undefined;
|
|
804
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
805
|
+
reasoningEffort?: string | undefined;
|
|
806
|
+
};
|
|
845
807
|
} | {
|
|
846
808
|
streamId: string;
|
|
847
809
|
chatId: string;
|
|
@@ -1312,6 +1274,44 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
1312
1274
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1313
1275
|
type: "prompt.discussion-title";
|
|
1314
1276
|
text: string;
|
|
1277
|
+
} | {
|
|
1278
|
+
type: "prompt.research";
|
|
1279
|
+
version: 1;
|
|
1280
|
+
streamId: string;
|
|
1281
|
+
chatId: string;
|
|
1282
|
+
seq: number;
|
|
1283
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1284
|
+
researchId: string;
|
|
1285
|
+
status: "complete" | "failed" | "partial";
|
|
1286
|
+
brief: string;
|
|
1287
|
+
sources: {
|
|
1288
|
+
url: string;
|
|
1289
|
+
finalUrl: string | null;
|
|
1290
|
+
contentType: string | null;
|
|
1291
|
+
httpStatus: number | null;
|
|
1292
|
+
backendFetchable: boolean;
|
|
1293
|
+
fetched: boolean;
|
|
1294
|
+
errorCode?: string | undefined;
|
|
1295
|
+
}[];
|
|
1296
|
+
api: {
|
|
1297
|
+
method: string;
|
|
1298
|
+
path: string;
|
|
1299
|
+
description: string;
|
|
1300
|
+
fields: string[];
|
|
1301
|
+
}[];
|
|
1302
|
+
excerpts: {
|
|
1303
|
+
sourceUrl: string;
|
|
1304
|
+
text: string;
|
|
1305
|
+
locator?: string | undefined;
|
|
1306
|
+
}[];
|
|
1307
|
+
seedRows: {
|
|
1308
|
+
sourceUrl: string;
|
|
1309
|
+
dbName: string;
|
|
1310
|
+
key: string;
|
|
1311
|
+
item: unknown;
|
|
1312
|
+
}[];
|
|
1313
|
+
completedAt: string;
|
|
1314
|
+
errorCode?: string | undefined;
|
|
1315
1315
|
})[];
|
|
1316
1316
|
}, {}>;
|
|
1317
1317
|
export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
|
package/asset-magic.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type AssetMagic = readonly (readonly [number, readonly number[]])[];
|
|
2
|
+
export declare const ASSET_MAGIC: readonly (readonly [string, AssetMagic])[];
|
|
3
|
+
export declare function headMatchesMagic(head: Uint8Array, magic: AssetMagic): boolean;
|
|
4
|
+
export declare function sniffAssetMime(head: Uint8Array): string | null;
|
package/asset-magic.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const ASSET_MAGIC = [
|
|
2
|
+
["image/png", [[0, [0x89, 0x50, 0x4e, 0x47]]]],
|
|
3
|
+
["image/jpeg", [[0, [0xff, 0xd8, 0xff]]]],
|
|
4
|
+
["image/gif", [[0, [0x47, 0x49, 0x46, 0x38]]]],
|
|
5
|
+
[
|
|
6
|
+
"image/webp",
|
|
7
|
+
[
|
|
8
|
+
[0, [0x52, 0x49, 0x46, 0x46]],
|
|
9
|
+
[8, [0x57, 0x45, 0x42, 0x50]],
|
|
10
|
+
],
|
|
11
|
+
],
|
|
12
|
+
["application/pdf", [[0, [0x25, 0x50, 0x44, 0x46]]]],
|
|
13
|
+
["audio/mpeg", [[0, [0x49, 0x44, 0x33]]]],
|
|
14
|
+
[
|
|
15
|
+
"audio/wav",
|
|
16
|
+
[
|
|
17
|
+
[0, [0x52, 0x49, 0x46, 0x46]],
|
|
18
|
+
[8, [0x57, 0x41, 0x56, 0x45]],
|
|
19
|
+
],
|
|
20
|
+
],
|
|
21
|
+
["audio/ogg", [[0, [0x4f, 0x67, 0x67, 0x53]]]],
|
|
22
|
+
[
|
|
23
|
+
"audio/mp4",
|
|
24
|
+
[
|
|
25
|
+
[4, [0x66, 0x74, 0x79, 0x70]],
|
|
26
|
+
[8, [0x4d, 0x34, 0x41, 0x20]],
|
|
27
|
+
],
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"image/avif",
|
|
31
|
+
[
|
|
32
|
+
[4, [0x66, 0x74, 0x79, 0x70]],
|
|
33
|
+
[8, [0x61, 0x76, 0x69, 0x66]],
|
|
34
|
+
],
|
|
35
|
+
],
|
|
36
|
+
["font/woff2", [[0, [0x77, 0x4f, 0x46, 0x32]]]],
|
|
37
|
+
["font/ttf", [[0, [0x00, 0x01, 0x00, 0x00]]]],
|
|
38
|
+
];
|
|
39
|
+
export function headMatchesMagic(head, magic) {
|
|
40
|
+
return magic.every(([off, bytes]) => bytes.every((b, i) => head[off + i] === b));
|
|
41
|
+
}
|
|
42
|
+
export function sniffAssetMime(head) {
|
|
43
|
+
for (const [mime, magic] of ASSET_MAGIC) {
|
|
44
|
+
if (headMatchesMagic(head, magic))
|
|
45
|
+
return mime;
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
package/crm-fact-msg.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const evtCrmFact: import("arktype/internal/variants/object.ts").O
|
|
|
3
3
|
eventId: string;
|
|
4
4
|
userId: string;
|
|
5
5
|
at: string;
|
|
6
|
-
kind: "app-mint" | "app-publish" | "codegen-turn" | "email-bounced" | "email-clicked" | "email-complained" | "email-opened" | "email-sent" | "handle-bind" | "paywall-hit" | "plan-change" | "promo-redeemed" | "recruited-by-vibe" | "share-sent" | "signup-source" | "visit";
|
|
6
|
+
kind: "app-mint" | "app-publish" | "codegen-turn" | "email-bounced" | "email-clicked" | "email-complained" | "email-opened" | "email-sent" | "geo-country" | "handle-bind" | "paywall-hit" | "plan-change" | "promo-redeemed" | "recruited-by-vibe" | "share-sent" | "signup-source" | "visit";
|
|
7
7
|
handle?: string | undefined;
|
|
8
8
|
provisional?: boolean | undefined;
|
|
9
9
|
appSlug?: string | undefined;
|
|
@@ -21,6 +21,7 @@ export declare const evtCrmFact: import("arktype/internal/variants/object.ts").O
|
|
|
21
21
|
ownerHandle: string;
|
|
22
22
|
appSlug: string;
|
|
23
23
|
} | undefined;
|
|
24
|
+
country?: string | undefined;
|
|
24
25
|
promoMask?: string | undefined;
|
|
25
26
|
email?: {
|
|
26
27
|
lane: string;
|
package/crm-fact-msg.js
CHANGED
|
@@ -5,7 +5,7 @@ export const evtCrmFact = lazyType(() => type({
|
|
|
5
5
|
eventId: "string",
|
|
6
6
|
userId: "string",
|
|
7
7
|
at: "string",
|
|
8
|
-
kind: "'codegen-turn'|'app-mint'|'handle-bind'|'paywall-hit'|'app-publish'|'plan-change'|'signup-source'|'recruited-by-vibe'|'visit'|'share-sent'|'promo-redeemed'|'email-sent'|'email-opened'|'email-clicked'|'email-bounced'|'email-complained'",
|
|
8
|
+
kind: "'codegen-turn'|'app-mint'|'handle-bind'|'paywall-hit'|'app-publish'|'plan-change'|'signup-source'|'recruited-by-vibe'|'visit'|'share-sent'|'promo-redeemed'|'geo-country'|'email-sent'|'email-opened'|'email-clicked'|'email-bounced'|'email-complained'",
|
|
9
9
|
"handle?": "string",
|
|
10
10
|
"provisional?": "boolean",
|
|
11
11
|
"appSlug?": "string",
|
|
@@ -20,6 +20,7 @@ export const evtCrmFact = lazyType(() => type({
|
|
|
20
20
|
},
|
|
21
21
|
"clickIds?": "('fbclid'|'gclid'|'msclkid'|'ttclid')[]",
|
|
22
22
|
"recruitedBy?": { ownerHandle: "string", appSlug: "string" },
|
|
23
|
+
"country?": "string",
|
|
23
24
|
"promoMask?": "string",
|
|
24
25
|
"email?": {
|
|
25
26
|
lane: "string",
|
package/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export * from "./billing-msg.js";
|
|
|
79
79
|
export * from "./credits-copy.js";
|
|
80
80
|
export * from "./asset.js";
|
|
81
81
|
export * from "./asset-extensions.js";
|
|
82
|
+
export * from "./asset-magic.js";
|
|
82
83
|
export * from "./report.js";
|
|
83
84
|
export * from "./report-activity-engaged.js";
|
|
84
85
|
export * from "./home-feed.js";
|
package/index.js
CHANGED
|
@@ -78,6 +78,7 @@ export * from "./billing-msg.js";
|
|
|
78
78
|
export * from "./credits-copy.js";
|
|
79
79
|
export * from "./asset.js";
|
|
80
80
|
export * from "./asset-extensions.js";
|
|
81
|
+
export * from "./asset-magic.js";
|
|
81
82
|
export * from "./report.js";
|
|
82
83
|
export * from "./report-activity-engaged.js";
|
|
83
84
|
export * from "./home-feed.js";
|