@vibes.diy/use-vibes-types 3.0.4 → 4.0.0
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/img-vibes-types.d.ts +9 -1
- package/package.json +3 -6
package/img-vibes-types.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { Database, DocWithId } from "@
|
|
1
|
+
import type { Database, DocWithId } from "@vibes.diy/vibe-runtime";
|
|
2
2
|
export interface PromptEntry {
|
|
3
3
|
readonly text: string;
|
|
4
4
|
readonly created: number;
|
|
5
5
|
}
|
|
6
|
+
export interface FileMeta {
|
|
7
|
+
readonly uploadId: string;
|
|
8
|
+
readonly type: string;
|
|
9
|
+
readonly size: number;
|
|
10
|
+
readonly lastModified?: number;
|
|
11
|
+
readonly url?: string;
|
|
12
|
+
}
|
|
6
13
|
export interface ImageDocumentPlain {
|
|
7
14
|
readonly type: "image";
|
|
8
15
|
readonly created: number;
|
|
@@ -11,6 +18,7 @@ export interface ImageDocumentPlain {
|
|
|
11
18
|
readonly currentPromptKey: string;
|
|
12
19
|
readonly prompts?: Record<string, PromptEntry>;
|
|
13
20
|
readonly prompt?: string;
|
|
21
|
+
readonly _files?: Record<string, FileMeta>;
|
|
14
22
|
}
|
|
15
23
|
export type ImageDocument = DocWithId<ImageDocumentPlain>;
|
|
16
24
|
export type PartialImageDocument = DocWithId<Partial<ImageDocumentPlain>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/use-vibes-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Core components and utilities for use-vibes (internal workspace package)",
|
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@
|
|
13
|
-
"
|
|
14
|
-
"@fireproof/core-types-protocols-cloud": "~0.24.19",
|
|
15
|
-
"@fireproof/use-fireproof": "~0.24.19",
|
|
16
|
-
"call-ai": "^3.0.4"
|
|
12
|
+
"@vibes.diy/vibe-runtime": "^4.0.0",
|
|
13
|
+
"call-ai": "^4.0.0"
|
|
17
14
|
},
|
|
18
15
|
"peerDependencies": {
|
|
19
16
|
"react": ">=19.1.0"
|