@vibes.diy/api-types 14.1.13 → 14.1.15
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 +40 -2
- package/asset-extensions.d.ts +2 -0
- package/asset-extensions.js +23 -0
- package/asset-extensions.js.map +1 -0
- package/asset-safety.d.ts +57 -0
- package/asset-safety.js +36 -0
- package/asset-safety.js.map +1 -0
- package/asset.d.ts +5 -0
- package/asset.js +6 -0
- package/asset.js.map +1 -1
- package/cf-env.d.ts +2 -0
- package/chat.d.ts +112 -0
- package/common.d.ts +17 -0
- package/common.js +14 -1
- package/common.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/invite-flow.d.ts +152 -152
- package/manifest-item.d.ts +6 -0
- package/manifest-item.js +9 -0
- package/manifest-item.js.map +1 -0
- package/notifications.d.ts +6 -4
- package/notifications.js +3 -1
- package/notifications.js.map +1 -1
- package/package.json +4 -4
- package/prompt.d.ts +14 -0
- package/report.d.ts +17 -0
- package/report.js +9 -0
- package/report.js.map +1 -1
- package/settings.d.ts +23 -0
- package/settings.js +11 -1
- package/settings.js.map +1 -1
- package/shard-policy.d.ts +1 -0
- package/shard-policy.js +1 -0
- package/shard-policy.js.map +1 -1
- package/types.d.ts +1 -0
- package/types.js +1 -0
- package/types.js.map +1 -1
- package/vibes-diy-api.d.ts +2 -0
- package/vibes-diy-api.js.map +1 -1
package/app.d.ts
CHANGED
|
@@ -54,6 +54,13 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
54
54
|
mimetype?: string | undefined;
|
|
55
55
|
type: "uint8-asset-ref";
|
|
56
56
|
refId: string;
|
|
57
|
+
} | {
|
|
58
|
+
filename: string;
|
|
59
|
+
entryPoint?: boolean | undefined;
|
|
60
|
+
mimetype?: string | undefined;
|
|
61
|
+
type: "cid-ref";
|
|
62
|
+
cid: string;
|
|
63
|
+
size: number;
|
|
57
64
|
})[];
|
|
58
65
|
} | {
|
|
59
66
|
appSlug?: string | undefined;
|
|
@@ -111,6 +118,13 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
111
118
|
mimetype?: string | undefined;
|
|
112
119
|
type: "uint8-asset-ref";
|
|
113
120
|
refId: string;
|
|
121
|
+
} | {
|
|
122
|
+
filename: string;
|
|
123
|
+
entryPoint?: boolean | undefined;
|
|
124
|
+
mimetype?: string | undefined;
|
|
125
|
+
type: "cid-ref";
|
|
126
|
+
cid: string;
|
|
127
|
+
size: number;
|
|
114
128
|
})[];
|
|
115
129
|
} | {
|
|
116
130
|
appSlug: string;
|
|
@@ -168,6 +182,13 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
168
182
|
mimetype?: string | undefined;
|
|
169
183
|
type: "uint8-asset-ref";
|
|
170
184
|
refId: string;
|
|
185
|
+
} | {
|
|
186
|
+
filename: string;
|
|
187
|
+
entryPoint?: boolean | undefined;
|
|
188
|
+
mimetype?: string | undefined;
|
|
189
|
+
type: "cid-ref";
|
|
190
|
+
cid: string;
|
|
191
|
+
size: number;
|
|
171
192
|
})[];
|
|
172
193
|
} | {
|
|
173
194
|
appSlug?: string | undefined;
|
|
@@ -225,6 +246,13 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
225
246
|
mimetype?: string | undefined;
|
|
226
247
|
type: "uint8-asset-ref";
|
|
227
248
|
refId: string;
|
|
249
|
+
} | {
|
|
250
|
+
filename: string;
|
|
251
|
+
entryPoint?: boolean | undefined;
|
|
252
|
+
mimetype?: string | undefined;
|
|
253
|
+
type: "cid-ref";
|
|
254
|
+
cid: string;
|
|
255
|
+
size: number;
|
|
228
256
|
})[];
|
|
229
257
|
}, {}>;
|
|
230
258
|
export type ReqEnsureAppSlug = typeof ReqEnsureAppSlug.infer;
|
|
@@ -258,6 +286,7 @@ export declare const resEnsureAppSlugOk: import("arktype/internal/variants/objec
|
|
|
258
286
|
} | undefined;
|
|
259
287
|
entryPoint?: boolean | undefined;
|
|
260
288
|
size: number;
|
|
289
|
+
kind?: "asset" | undefined;
|
|
261
290
|
}[];
|
|
262
291
|
}, {}>;
|
|
263
292
|
export type ResEnsureAppSlugOk = typeof resEnsureAppSlugOk.infer;
|
|
@@ -408,6 +437,7 @@ export declare const resEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
408
437
|
} | undefined;
|
|
409
438
|
entryPoint?: boolean | undefined;
|
|
410
439
|
size: number;
|
|
440
|
+
kind?: "asset" | undefined;
|
|
411
441
|
}[];
|
|
412
442
|
} | {
|
|
413
443
|
type: "vibes.diy.res-error";
|
|
@@ -849,6 +879,13 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
849
879
|
mimetype?: string | undefined;
|
|
850
880
|
type: "uint8-asset-ref";
|
|
851
881
|
refId: string;
|
|
882
|
+
} | {
|
|
883
|
+
filename: string;
|
|
884
|
+
entryPoint?: boolean | undefined;
|
|
885
|
+
mimetype?: string | undefined;
|
|
886
|
+
type: "cid-ref";
|
|
887
|
+
cid: string;
|
|
888
|
+
size: number;
|
|
852
889
|
})[];
|
|
853
890
|
} | {
|
|
854
891
|
streamId: string;
|
|
@@ -1151,6 +1188,7 @@ export declare const resGetAppByFsId: import("arktype/internal/variants/object.t
|
|
|
1151
1188
|
} | undefined;
|
|
1152
1189
|
entryPoint?: boolean | undefined;
|
|
1153
1190
|
size: number;
|
|
1191
|
+
kind?: "asset" | undefined;
|
|
1154
1192
|
}[];
|
|
1155
1193
|
meta: ({
|
|
1156
1194
|
type: "screen-shot-ref";
|
|
@@ -1717,7 +1755,7 @@ export declare const reqListNotifications: import("arktype/internal/variants/obj
|
|
|
1717
1755
|
id?: string | undefined;
|
|
1718
1756
|
appSlug?: string | undefined;
|
|
1719
1757
|
ownerHandle?: string | undefined;
|
|
1720
|
-
notificationType?: "access-requested" | "app-message" | "build-complete" | "build-failed" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed" | undefined;
|
|
1758
|
+
notificationType?: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed" | undefined;
|
|
1721
1759
|
cursor?: string | undefined;
|
|
1722
1760
|
limit?: number | undefined;
|
|
1723
1761
|
}, {}>;
|
|
@@ -1728,7 +1766,7 @@ export declare const resListNotifications: import("arktype/internal/variants/obj
|
|
|
1728
1766
|
items: {
|
|
1729
1767
|
id: string;
|
|
1730
1768
|
userId: string;
|
|
1731
|
-
notificationType: "access-requested" | "app-message" | "build-complete" | "build-failed" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed";
|
|
1769
|
+
notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed";
|
|
1732
1770
|
ownerHandle: string;
|
|
1733
1771
|
appSlug: string | null;
|
|
1734
1772
|
body: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const ASSET_EXTENSION_MIME = new Map([
|
|
2
|
+
[".png", "image/png"],
|
|
3
|
+
[".jpg", "image/jpeg"],
|
|
4
|
+
[".jpeg", "image/jpeg"],
|
|
5
|
+
[".gif", "image/gif"],
|
|
6
|
+
[".webp", "image/webp"],
|
|
7
|
+
[".avif", "image/avif"],
|
|
8
|
+
[".pdf", "application/pdf"],
|
|
9
|
+
[".mp3", "audio/mpeg"],
|
|
10
|
+
[".m4a", "audio/mp4"],
|
|
11
|
+
[".wav", "audio/wav"],
|
|
12
|
+
[".ogg", "audio/ogg"],
|
|
13
|
+
[".woff2", "font/woff2"],
|
|
14
|
+
[".ttf", "font/ttf"],
|
|
15
|
+
[".csv", "text/csv"],
|
|
16
|
+
]);
|
|
17
|
+
export function assetMimeForExtension(filename) {
|
|
18
|
+
const dot = filename.lastIndexOf(".");
|
|
19
|
+
if (dot < 0)
|
|
20
|
+
return undefined;
|
|
21
|
+
return ASSET_EXTENSION_MIME.get(filename.slice(dot).toLowerCase());
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=asset-extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-extensions.js","sourceRoot":"","sources":["../jsr/asset-extensions.ts"],"names":[],"mappings":"AA0BA,MAAM,CAAC,MAAM,oBAAoB,GAAgC,IAAI,GAAG,CAAC;IACvE,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,YAAY,CAAC;IACtB,CAAC,OAAO,EAAE,YAAY,CAAC;IACvB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,OAAO,EAAE,YAAY,CAAC;IACvB,CAAC,OAAO,EAAE,YAAY,CAAC;IACvB,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAC3B,CAAC,MAAM,EAAE,YAAY,CAAC;IACtB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,QAAQ,EAAE,YAAY,CAAC;IACxB,CAAC,MAAM,EAAE,UAAU,CAAC;IACpB,CAAC,MAAM,EAAE,UAAU,CAAC;CACrB,CAAC,CAAC;AAUH,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IACpD,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACtC,IAAI,GAAG,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IAC9B,OAAO,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const evtAssetSafety: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
|
+
type: "vibes.diy.evt-asset-safety";
|
|
3
|
+
cid: string;
|
|
4
|
+
assetURI: string;
|
|
5
|
+
mime: string;
|
|
6
|
+
ownerHandle: string;
|
|
7
|
+
appSlug: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
model: string;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export type EvtAssetSafety = typeof evtAssetSafety.infer;
|
|
12
|
+
export declare function isEvtAssetSafety(obj: unknown): obj is EvtAssetSafety;
|
|
13
|
+
export type AssetSafetyVerdict = "pending" | "low" | "high" | "error";
|
|
14
|
+
export interface ImagesRenditionBinding {
|
|
15
|
+
info(stream: ReadableStream<Uint8Array>): Promise<{
|
|
16
|
+
format: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
}>;
|
|
20
|
+
input(stream: ReadableStream<Uint8Array>): {
|
|
21
|
+
transform(t: {
|
|
22
|
+
width?: number;
|
|
23
|
+
fit?: string;
|
|
24
|
+
}): {
|
|
25
|
+
output(o: {
|
|
26
|
+
format: string;
|
|
27
|
+
quality?: number;
|
|
28
|
+
metadata?: string;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
contentType(): string;
|
|
31
|
+
response(): Response;
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const reqAssetSafetyStatus: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
37
|
+
type: "vibes.diy.req-asset-safety-status";
|
|
38
|
+
auth: {
|
|
39
|
+
type: "clerk" | "device-id" | "ucan";
|
|
40
|
+
token: string;
|
|
41
|
+
};
|
|
42
|
+
ownerHandle: string;
|
|
43
|
+
appSlug: string;
|
|
44
|
+
cids: string[];
|
|
45
|
+
}, {}>;
|
|
46
|
+
export type ReqAssetSafetyStatus = typeof reqAssetSafetyStatus.infer;
|
|
47
|
+
export declare function isReqAssetSafetyStatus(obj: unknown): obj is ReqAssetSafetyStatus;
|
|
48
|
+
export declare const resAssetSafetyStatus: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
49
|
+
type: "vibes.diy.res-asset-safety-status";
|
|
50
|
+
ownerHandle: string;
|
|
51
|
+
appSlug: string;
|
|
52
|
+
verdicts: {
|
|
53
|
+
[x: string]: "error" | "high" | "low" | "pending";
|
|
54
|
+
};
|
|
55
|
+
}, {}>;
|
|
56
|
+
export type ResAssetSafetyStatus = typeof resAssetSafetyStatus.infer;
|
|
57
|
+
export declare function isResAssetSafetyStatus(obj: unknown): obj is ResAssetSafetyStatus;
|
package/asset-safety.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type } from "arktype";
|
|
2
|
+
import { lazyType } from "./lazy-type.js";
|
|
3
|
+
import { dashAuthType } from "./common.js";
|
|
4
|
+
export const evtAssetSafety = lazyType(() => type({
|
|
5
|
+
type: "'vibes.diy.evt-asset-safety'",
|
|
6
|
+
cid: "string",
|
|
7
|
+
assetURI: "string",
|
|
8
|
+
mime: "string",
|
|
9
|
+
ownerHandle: "string",
|
|
10
|
+
appSlug: "string",
|
|
11
|
+
userId: "string",
|
|
12
|
+
model: "string",
|
|
13
|
+
}));
|
|
14
|
+
export function isEvtAssetSafety(obj) {
|
|
15
|
+
return !(evtAssetSafety(obj) instanceof type.errors);
|
|
16
|
+
}
|
|
17
|
+
export const reqAssetSafetyStatus = lazyType(() => type({
|
|
18
|
+
type: "'vibes.diy.req-asset-safety-status'",
|
|
19
|
+
auth: dashAuthType,
|
|
20
|
+
ownerHandle: "string",
|
|
21
|
+
appSlug: "string",
|
|
22
|
+
cids: "string[]",
|
|
23
|
+
}));
|
|
24
|
+
export function isReqAssetSafetyStatus(obj) {
|
|
25
|
+
return !(reqAssetSafetyStatus(obj) instanceof type.errors);
|
|
26
|
+
}
|
|
27
|
+
export const resAssetSafetyStatus = lazyType(() => type({
|
|
28
|
+
type: "'vibes.diy.res-asset-safety-status'",
|
|
29
|
+
ownerHandle: "string",
|
|
30
|
+
appSlug: "string",
|
|
31
|
+
verdicts: { "[string]": "'pending'|'low'|'high'|'error'" },
|
|
32
|
+
}));
|
|
33
|
+
export function isResAssetSafetyStatus(obj) {
|
|
34
|
+
return !(resAssetSafetyStatus(obj) instanceof type.errors);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=asset-safety.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-safety.js","sourceRoot":"","sources":["../jsr/asset-safety.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAqB3C,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC1C,IAAI,CAAC;IACH,IAAI,EAAE,8BAA8B;IACpC,GAAG,EAAE,QAAQ;IACb,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IAEjB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC,CACH,CAAC;AAGF,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,OAAO,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC;AAyCD,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAChD,IAAI,CAAC;IACH,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,UAAU;CACjB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,sBAAsB,CAAC,GAAY;IACjD,OAAO,CAAC,CAAC,oBAAoB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAChD,IAAI,CAAC;IACH,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IAIjB,QAAQ,EAAE,EAAE,UAAU,EAAE,gCAAgC,EAAE;CAC3D,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,sBAAsB,CAAC,GAAY;IACjD,OAAO,CAAC,CAAC,oBAAoB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC"}
|
package/asset.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export declare const AssetPurpose: import("arktype/internal/variants/string.ts").StringType<"attachment" | "avatar" | "bundle" | "files", {}>;
|
|
2
|
+
export type AssetPurpose = typeof AssetPurpose.infer;
|
|
3
|
+
export declare function isAssetPurpose(v: unknown): v is AssetPurpose;
|
|
1
4
|
export declare const ReqAssetUploadGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
5
|
type: "vibes.diy.req-asset-upload-grant";
|
|
3
6
|
auth: {
|
|
@@ -7,6 +10,7 @@ export declare const ReqAssetUploadGrant: import("arktype/internal/variants/obje
|
|
|
7
10
|
ownerHandle: string;
|
|
8
11
|
appSlug: string;
|
|
9
12
|
mimeType?: string | undefined;
|
|
13
|
+
purpose?: "attachment" | "avatar" | "bundle" | "files" | undefined;
|
|
10
14
|
}, {}>;
|
|
11
15
|
export type ReqAssetUploadGrant = typeof ReqAssetUploadGrant.infer;
|
|
12
16
|
export declare function isReqAssetUploadGrant(obj: unknown): obj is ReqAssetUploadGrant;
|
|
@@ -36,6 +40,7 @@ export declare const AssetGrantClaims: import("arktype/internal/variants/object.
|
|
|
36
40
|
iat: number;
|
|
37
41
|
exp: number;
|
|
38
42
|
mimeType?: string | undefined;
|
|
43
|
+
purpose?: "attachment" | "avatar" | "bundle" | "files" | undefined;
|
|
39
44
|
}, {}>;
|
|
40
45
|
export type AssetGrantClaims = typeof AssetGrantClaims.infer;
|
|
41
46
|
export declare function isAssetGrantClaims(obj: unknown): obj is AssetGrantClaims;
|
package/asset.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
2
|
import { dashAuthType } from "./common.js";
|
|
3
3
|
import { lazyType } from "./lazy-type.js";
|
|
4
|
+
export const AssetPurpose = lazyType(() => type("'bundle'|'files'|'attachment'|'avatar'"));
|
|
5
|
+
export function isAssetPurpose(v) {
|
|
6
|
+
return !(AssetPurpose(v) instanceof type.errors);
|
|
7
|
+
}
|
|
4
8
|
export const ReqAssetUploadGrant = lazyType(() => type({
|
|
5
9
|
type: "'vibes.diy.req-asset-upload-grant'",
|
|
6
10
|
auth: dashAuthType,
|
|
7
11
|
ownerHandle: "string",
|
|
8
12
|
appSlug: "string",
|
|
9
13
|
"mimeType?": "string",
|
|
14
|
+
"purpose?": "'bundle'|'files'|'attachment'|'avatar'",
|
|
10
15
|
}));
|
|
11
16
|
export function isReqAssetUploadGrant(obj) {
|
|
12
17
|
return !(ReqAssetUploadGrant(obj) instanceof type.errors);
|
|
@@ -39,6 +44,7 @@ export const AssetGrantClaims = lazyType(() => type({
|
|
|
39
44
|
iat: "number",
|
|
40
45
|
exp: "number",
|
|
41
46
|
"mimeType?": "string",
|
|
47
|
+
"purpose?": "'bundle'|'files'|'attachment'|'avatar'",
|
|
42
48
|
}));
|
|
43
49
|
export function isAssetGrantClaims(obj) {
|
|
44
50
|
return !(AssetGrantClaims(obj) instanceof type.errors);
|
package/asset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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EAAE,QAAQ;IACnB,QAAQ,EAAE,QAAQ;CACnB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,GAAY;IAChD,OAAO,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,IAAI,CAAC;IACH,IAAI,EAAE,2BAA2B;IACjC,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;CACnB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAID,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC5C,IAAI,CAAC;IACH,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IACjB,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,WAAW,EAAE,QAAQ;IAIrB,UAAU,EAAE,wCAAwC;CACrD,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"}
|
package/cf-env.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { D1Database, DurableObjectNamespace, Queue, Fetcher, R2Bucket } from "@cloudflare/workers-types";
|
|
2
|
+
import type { ImagesRenditionBinding } from "./asset-safety.js";
|
|
2
3
|
export interface CFEnv {
|
|
3
4
|
DB: D1Database;
|
|
4
5
|
ASSETS: Fetcher;
|
|
@@ -48,6 +49,7 @@ export interface CFEnv {
|
|
|
48
49
|
VIBES_ROOT_SWR?: string;
|
|
49
50
|
VIBES_SERVICE: Queue;
|
|
50
51
|
BROWSER: Fetcher;
|
|
52
|
+
IMAGES?: ImagesRenditionBinding;
|
|
51
53
|
META_CAPI_TOKEN?: string;
|
|
52
54
|
META_PIXEL_ID?: string;
|
|
53
55
|
META_ACCESS_TOKEN?: string;
|
package/chat.d.ts
CHANGED
|
@@ -112,6 +112,13 @@ export declare const selectedSlotInput: import("arktype/internal/variants/object
|
|
|
112
112
|
mimetype?: string | undefined;
|
|
113
113
|
type: "uint8-asset-ref";
|
|
114
114
|
refId: string;
|
|
115
|
+
} | {
|
|
116
|
+
filename: string;
|
|
117
|
+
entryPoint?: boolean | undefined;
|
|
118
|
+
mimetype?: string | undefined;
|
|
119
|
+
type: "cid-ref";
|
|
120
|
+
cid: string;
|
|
121
|
+
size: number;
|
|
115
122
|
})[];
|
|
116
123
|
}, {}>;
|
|
117
124
|
export type SelectedSlotInput = typeof selectedSlotInput.infer;
|
|
@@ -250,6 +257,13 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
250
257
|
mimetype?: string | undefined;
|
|
251
258
|
type: "uint8-asset-ref";
|
|
252
259
|
refId: string;
|
|
260
|
+
} | {
|
|
261
|
+
filename: string;
|
|
262
|
+
entryPoint?: boolean | undefined;
|
|
263
|
+
mimetype?: string | undefined;
|
|
264
|
+
type: "cid-ref";
|
|
265
|
+
cid: string;
|
|
266
|
+
size: number;
|
|
253
267
|
})[];
|
|
254
268
|
} | undefined;
|
|
255
269
|
slots?: {
|
|
@@ -484,6 +498,13 @@ export declare const FSUpdate: import("arktype/internal/variants/object.ts").Obj
|
|
|
484
498
|
mimetype?: string | undefined;
|
|
485
499
|
type: "uint8-asset-ref";
|
|
486
500
|
refId: string;
|
|
501
|
+
} | {
|
|
502
|
+
filename: string;
|
|
503
|
+
entryPoint?: boolean | undefined;
|
|
504
|
+
mimetype?: string | undefined;
|
|
505
|
+
type: "cid-ref";
|
|
506
|
+
cid: string;
|
|
507
|
+
size: number;
|
|
487
508
|
})[];
|
|
488
509
|
remove: {
|
|
489
510
|
filename: string;
|
|
@@ -539,6 +560,13 @@ export declare const reqPromptFSUpdateChatSection: import("arktype/internal/vari
|
|
|
539
560
|
mimetype?: string | undefined;
|
|
540
561
|
type: "uint8-asset-ref";
|
|
541
562
|
refId: string;
|
|
563
|
+
} | {
|
|
564
|
+
filename: string;
|
|
565
|
+
entryPoint?: boolean | undefined;
|
|
566
|
+
mimetype?: string | undefined;
|
|
567
|
+
type: "cid-ref";
|
|
568
|
+
cid: string;
|
|
569
|
+
size: number;
|
|
542
570
|
})[];
|
|
543
571
|
remove: {
|
|
544
572
|
filename: string;
|
|
@@ -600,6 +628,13 @@ export declare const reqPromptFSSetChatSection: import("arktype/internal/variant
|
|
|
600
628
|
mimetype?: string | undefined;
|
|
601
629
|
type: "uint8-asset-ref";
|
|
602
630
|
refId: string;
|
|
631
|
+
} | {
|
|
632
|
+
filename: string;
|
|
633
|
+
entryPoint?: boolean | undefined;
|
|
634
|
+
mimetype?: string | undefined;
|
|
635
|
+
type: "cid-ref";
|
|
636
|
+
cid: string;
|
|
637
|
+
size: number;
|
|
603
638
|
})[];
|
|
604
639
|
}, {}>;
|
|
605
640
|
export type ReqPromptFSSetChatSection = typeof reqPromptFSSetChatSection.infer;
|
|
@@ -730,6 +765,13 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
730
765
|
mimetype?: string | undefined;
|
|
731
766
|
type: "uint8-asset-ref";
|
|
732
767
|
refId: string;
|
|
768
|
+
} | {
|
|
769
|
+
filename: string;
|
|
770
|
+
entryPoint?: boolean | undefined;
|
|
771
|
+
mimetype?: string | undefined;
|
|
772
|
+
type: "cid-ref";
|
|
773
|
+
cid: string;
|
|
774
|
+
size: number;
|
|
733
775
|
})[];
|
|
734
776
|
} | undefined;
|
|
735
777
|
slots?: {
|
|
@@ -971,6 +1013,13 @@ export declare const reqPromptFSChatSection: import("arktype/internal/variants/o
|
|
|
971
1013
|
mimetype?: string | undefined;
|
|
972
1014
|
type: "uint8-asset-ref";
|
|
973
1015
|
refId: string;
|
|
1016
|
+
} | {
|
|
1017
|
+
filename: string;
|
|
1018
|
+
entryPoint?: boolean | undefined;
|
|
1019
|
+
mimetype?: string | undefined;
|
|
1020
|
+
type: "cid-ref";
|
|
1021
|
+
cid: string;
|
|
1022
|
+
size: number;
|
|
974
1023
|
})[];
|
|
975
1024
|
remove: {
|
|
976
1025
|
filename: string;
|
|
@@ -1029,6 +1078,13 @@ export declare const reqPromptFSChatSection: import("arktype/internal/variants/o
|
|
|
1029
1078
|
mimetype?: string | undefined;
|
|
1030
1079
|
type: "uint8-asset-ref";
|
|
1031
1080
|
refId: string;
|
|
1081
|
+
} | {
|
|
1082
|
+
filename: string;
|
|
1083
|
+
entryPoint?: boolean | undefined;
|
|
1084
|
+
mimetype?: string | undefined;
|
|
1085
|
+
type: "cid-ref";
|
|
1086
|
+
cid: string;
|
|
1087
|
+
size: number;
|
|
1032
1088
|
})[];
|
|
1033
1089
|
}, {}>;
|
|
1034
1090
|
export type ReqPromptFSChatSection = typeof reqPromptFSChatSection.infer;
|
|
@@ -1159,6 +1215,13 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1159
1215
|
mimetype?: string | undefined;
|
|
1160
1216
|
type: "uint8-asset-ref";
|
|
1161
1217
|
refId: string;
|
|
1218
|
+
} | {
|
|
1219
|
+
filename: string;
|
|
1220
|
+
entryPoint?: boolean | undefined;
|
|
1221
|
+
mimetype?: string | undefined;
|
|
1222
|
+
type: "cid-ref";
|
|
1223
|
+
cid: string;
|
|
1224
|
+
size: number;
|
|
1162
1225
|
})[];
|
|
1163
1226
|
} | undefined;
|
|
1164
1227
|
slots?: {
|
|
@@ -1397,6 +1460,13 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1397
1460
|
mimetype?: string | undefined;
|
|
1398
1461
|
type: "uint8-asset-ref";
|
|
1399
1462
|
refId: string;
|
|
1463
|
+
} | {
|
|
1464
|
+
filename: string;
|
|
1465
|
+
entryPoint?: boolean | undefined;
|
|
1466
|
+
mimetype?: string | undefined;
|
|
1467
|
+
type: "cid-ref";
|
|
1468
|
+
cid: string;
|
|
1469
|
+
size: number;
|
|
1400
1470
|
})[];
|
|
1401
1471
|
remove: {
|
|
1402
1472
|
filename: string;
|
|
@@ -1455,6 +1525,13 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1455
1525
|
mimetype?: string | undefined;
|
|
1456
1526
|
type: "uint8-asset-ref";
|
|
1457
1527
|
refId: string;
|
|
1528
|
+
} | {
|
|
1529
|
+
filename: string;
|
|
1530
|
+
entryPoint?: boolean | undefined;
|
|
1531
|
+
mimetype?: string | undefined;
|
|
1532
|
+
type: "cid-ref";
|
|
1533
|
+
cid: string;
|
|
1534
|
+
size: number;
|
|
1458
1535
|
})[];
|
|
1459
1536
|
}, {}>;
|
|
1460
1537
|
export type ReqPromptChatSection = typeof reqPromptChatSection.infer;
|
|
@@ -1613,6 +1690,13 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1613
1690
|
mimetype?: string | undefined;
|
|
1614
1691
|
type: "uint8-asset-ref";
|
|
1615
1692
|
refId: string;
|
|
1693
|
+
} | {
|
|
1694
|
+
filename: string;
|
|
1695
|
+
entryPoint?: boolean | undefined;
|
|
1696
|
+
mimetype?: string | undefined;
|
|
1697
|
+
type: "cid-ref";
|
|
1698
|
+
cid: string;
|
|
1699
|
+
size: number;
|
|
1616
1700
|
})[];
|
|
1617
1701
|
} | {
|
|
1618
1702
|
streamId: string;
|
|
@@ -2208,6 +2292,13 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2208
2292
|
mimetype?: string | undefined;
|
|
2209
2293
|
type: "uint8-asset-ref";
|
|
2210
2294
|
refId: string;
|
|
2295
|
+
} | {
|
|
2296
|
+
filename: string;
|
|
2297
|
+
entryPoint?: boolean | undefined;
|
|
2298
|
+
mimetype?: string | undefined;
|
|
2299
|
+
type: "cid-ref";
|
|
2300
|
+
cid: string;
|
|
2301
|
+
size: number;
|
|
2211
2302
|
})[];
|
|
2212
2303
|
} | {
|
|
2213
2304
|
streamId: string;
|
|
@@ -2815,6 +2906,13 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2815
2906
|
mimetype?: string | undefined;
|
|
2816
2907
|
type: "uint8-asset-ref";
|
|
2817
2908
|
refId: string;
|
|
2909
|
+
} | {
|
|
2910
|
+
filename: string;
|
|
2911
|
+
entryPoint?: boolean | undefined;
|
|
2912
|
+
mimetype?: string | undefined;
|
|
2913
|
+
type: "cid-ref";
|
|
2914
|
+
cid: string;
|
|
2915
|
+
size: number;
|
|
2818
2916
|
})[];
|
|
2819
2917
|
} | {
|
|
2820
2918
|
streamId: string;
|
|
@@ -3412,6 +3510,13 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3412
3510
|
mimetype?: string | undefined;
|
|
3413
3511
|
type: "uint8-asset-ref";
|
|
3414
3512
|
refId: string;
|
|
3513
|
+
} | {
|
|
3514
|
+
filename: string;
|
|
3515
|
+
entryPoint?: boolean | undefined;
|
|
3516
|
+
mimetype?: string | undefined;
|
|
3517
|
+
type: "cid-ref";
|
|
3518
|
+
cid: string;
|
|
3519
|
+
size: number;
|
|
3415
3520
|
})[];
|
|
3416
3521
|
} | {
|
|
3417
3522
|
streamId: string;
|
|
@@ -4015,6 +4120,13 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4015
4120
|
mimetype?: string | undefined;
|
|
4016
4121
|
type: "uint8-asset-ref";
|
|
4017
4122
|
refId: string;
|
|
4123
|
+
} | {
|
|
4124
|
+
filename: string;
|
|
4125
|
+
entryPoint?: boolean | undefined;
|
|
4126
|
+
mimetype?: string | undefined;
|
|
4127
|
+
type: "cid-ref";
|
|
4128
|
+
cid: string;
|
|
4129
|
+
size: number;
|
|
4018
4130
|
})[];
|
|
4019
4131
|
} | {
|
|
4020
4132
|
streamId: string;
|
package/common.d.ts
CHANGED
|
@@ -87,6 +87,16 @@ export declare const VibeUint8AssetRef: import("arktype/internal/variants/object
|
|
|
87
87
|
type: "uint8-asset-ref";
|
|
88
88
|
refId: string;
|
|
89
89
|
}, {}>;
|
|
90
|
+
export declare const VibeCidRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
91
|
+
filename: string;
|
|
92
|
+
entryPoint?: boolean | undefined;
|
|
93
|
+
mimetype?: string | undefined;
|
|
94
|
+
type: "cid-ref";
|
|
95
|
+
cid: string;
|
|
96
|
+
size: number;
|
|
97
|
+
}, {}>;
|
|
98
|
+
export type VibeCidRef = typeof VibeCidRef.infer;
|
|
99
|
+
export declare function isVibeCidRef(obj: unknown): obj is VibeCidRef;
|
|
90
100
|
export declare const vibeFile: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
91
101
|
filename: string;
|
|
92
102
|
entryPoint?: boolean | undefined;
|
|
@@ -124,6 +134,13 @@ export declare const vibeFile: import("arktype/internal/variants/object.ts").Obj
|
|
|
124
134
|
mimetype?: string | undefined;
|
|
125
135
|
type: "uint8-asset-ref";
|
|
126
136
|
refId: string;
|
|
137
|
+
} | {
|
|
138
|
+
filename: string;
|
|
139
|
+
entryPoint?: boolean | undefined;
|
|
140
|
+
mimetype?: string | undefined;
|
|
141
|
+
type: "cid-ref";
|
|
142
|
+
cid: string;
|
|
143
|
+
size: number;
|
|
127
144
|
}, {}>;
|
|
128
145
|
export type VibeFile = typeof vibeFile.infer;
|
|
129
146
|
export declare const resError: import("arktype/internal/variants/object.ts").ObjectType<{
|
package/common.js
CHANGED
|
@@ -74,7 +74,20 @@ export const VibeUint8AssetRef = lazyType(() => type({
|
|
|
74
74
|
type: "'uint8-asset-ref'",
|
|
75
75
|
refId: "string",
|
|
76
76
|
}).and(baseFileProps));
|
|
77
|
-
export const
|
|
77
|
+
export const VibeCidRef = lazyType(() => type({
|
|
78
|
+
type: "'cid-ref'",
|
|
79
|
+
cid: "string > 0",
|
|
80
|
+
size: "number >= 0",
|
|
81
|
+
}).and(baseFileProps));
|
|
82
|
+
export function isVibeCidRef(obj) {
|
|
83
|
+
return !(VibeCidRef(obj) instanceof type.errors);
|
|
84
|
+
}
|
|
85
|
+
export const vibeFile = lazyType(() => type(VibeCodeBlock.or(VibeCodeRef)
|
|
86
|
+
.or(VibeStrAssetBlock)
|
|
87
|
+
.or(VibeStrAssetRef)
|
|
88
|
+
.or(VibeUint8AssetBlock)
|
|
89
|
+
.or(VibeUint8AssetRef)
|
|
90
|
+
.or(VibeCidRef)));
|
|
78
91
|
export const resError = lazyType(() => type({
|
|
79
92
|
type: "'vibes.diy.res-error'",
|
|
80
93
|
error: type({ message: "string", "code?": "string" }),
|
package/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../jsr/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC5C,IAAI,CAAC;IACH,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,eAAe;IAC/B,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,SAAS;CACvB,CAAC,CACH,CAAC;AAIF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,CACtC,IAAI,CAAC;IACH,MAAM,EAAE,QAAQ;IAChB,MAAM,E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QAAQ;IAClB,QAAQ,EAAE,QAAQ;IAClB,aAAa,EAAE,QAAQ;CACxB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export * from "./social-msg.js";
|
|
|
20
20
|
export * from "./welcome-msg.js";
|
|
21
21
|
export * from "./retention-msg.js";
|
|
22
22
|
export * from "./crm-fact-msg.js";
|
|
23
|
+
export * from "./asset-safety.js";
|
|
24
|
+
export * from "./manifest-item.js";
|
|
23
25
|
export * from "./retention-steps.js";
|
|
24
26
|
export * from "./audience-arms-msg.js";
|
|
25
27
|
export * from "./vibes-types.js";
|
|
@@ -41,6 +43,7 @@ export * from "./members.js";
|
|
|
41
43
|
export * from "./memberships.js";
|
|
42
44
|
export * from "./billing-msg.js";
|
|
43
45
|
export * from "./asset.js";
|
|
46
|
+
export * from "./asset-extensions.js";
|
|
44
47
|
export * from "./report.js";
|
|
45
48
|
export * from "./home-feed.js";
|
|
46
49
|
export * from "./related-vibes.js";
|
package/index.js
CHANGED
|
@@ -19,6 +19,8 @@ export * from "./social-msg.js";
|
|
|
19
19
|
export * from "./welcome-msg.js";
|
|
20
20
|
export * from "./retention-msg.js";
|
|
21
21
|
export * from "./crm-fact-msg.js";
|
|
22
|
+
export * from "./asset-safety.js";
|
|
23
|
+
export * from "./manifest-item.js";
|
|
22
24
|
export * from "./retention-steps.js";
|
|
23
25
|
export * from "./audience-arms-msg.js";
|
|
24
26
|
export * from "./vibes-types.js";
|
|
@@ -40,6 +42,7 @@ export * from "./members.js";
|
|
|
40
42
|
export * from "./memberships.js";
|
|
41
43
|
export * from "./billing-msg.js";
|
|
42
44
|
export * from "./asset.js";
|
|
45
|
+
export * from "./asset-extensions.js";
|
|
43
46
|
export * from "./report.js";
|
|
44
47
|
export * from "./home-feed.js";
|
|
45
48
|
export * from "./related-vibes.js";
|