@dinoxx/dinox-cli 1.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/README.md +294 -0
- package/dist/auth/userInfo.d.ts +14 -0
- package/dist/auth/userInfo.js +115 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +32 -0
- package/dist/cliTypes.d.ts +6 -0
- package/dist/cliTypes.js +1 -0
- package/dist/commands/auth/index.d.ts +2 -0
- package/dist/commands/auth/index.js +193 -0
- package/dist/commands/boxes/index.d.ts +2 -0
- package/dist/commands/boxes/index.js +107 -0
- package/dist/commands/boxes/repo.d.ts +21 -0
- package/dist/commands/boxes/repo.js +154 -0
- package/dist/commands/config/index.d.ts +2 -0
- package/dist/commands/config/index.js +67 -0
- package/dist/commands/info/index.d.ts +2 -0
- package/dist/commands/info/index.js +20 -0
- package/dist/commands/notes/index.d.ts +2 -0
- package/dist/commands/notes/index.js +271 -0
- package/dist/commands/notes/repo.d.ts +70 -0
- package/dist/commands/notes/repo.js +674 -0
- package/dist/commands/notes/searchTime.d.ts +9 -0
- package/dist/commands/notes/searchTime.js +85 -0
- package/dist/commands/prompt/index.d.ts +2 -0
- package/dist/commands/prompt/index.js +51 -0
- package/dist/commands/prompt/repo.d.ts +6 -0
- package/dist/commands/prompt/repo.js +18 -0
- package/dist/commands/sync.d.ts +2 -0
- package/dist/commands/sync.js +68 -0
- package/dist/commands/tags/index.d.ts +2 -0
- package/dist/commands/tags/index.js +120 -0
- package/dist/commands/tags/repo.d.ts +14 -0
- package/dist/commands/tags/repo.js +247 -0
- package/dist/config/keys.d.ts +9 -0
- package/dist/config/keys.js +17 -0
- package/dist/config/paths.d.ts +4 -0
- package/dist/config/paths.js +39 -0
- package/dist/config/resolve.d.ts +2 -0
- package/dist/config/resolve.js +56 -0
- package/dist/config/serviceEndpoints.d.ts +3 -0
- package/dist/config/serviceEndpoints.js +3 -0
- package/dist/config/store.d.ts +5 -0
- package/dist/config/store.js +87 -0
- package/dist/config/types.d.ts +51 -0
- package/dist/config/types.js +1 -0
- package/dist/dinox.d.ts +2 -0
- package/dist/dinox.js +50 -0
- package/dist/powersync/connector.d.ts +21 -0
- package/dist/powersync/connector.js +58 -0
- package/dist/powersync/runtime.d.ts +37 -0
- package/dist/powersync/runtime.js +107 -0
- package/dist/powersync/schema/content.d.ts +76 -0
- package/dist/powersync/schema/content.js +76 -0
- package/dist/powersync/schema/index.d.ts +371 -0
- package/dist/powersync/schema/index.js +35 -0
- package/dist/powersync/schema/local.d.ts +68 -0
- package/dist/powersync/schema/local.js +83 -0
- package/dist/powersync/schema/note.d.ts +34 -0
- package/dist/powersync/schema/note.js +34 -0
- package/dist/powersync/schema/notesExtras.d.ts +62 -0
- package/dist/powersync/schema/notesExtras.js +71 -0
- package/dist/powersync/schema/projects.d.ts +101 -0
- package/dist/powersync/schema/projects.js +101 -0
- package/dist/powersync/schema/tags.d.ts +37 -0
- package/dist/powersync/schema/tags.js +37 -0
- package/dist/powersync/tokenIndex.d.ts +17 -0
- package/dist/powersync/tokenIndex.js +202 -0
- package/dist/powersync/uploader.d.ts +7 -0
- package/dist/powersync/uploader.js +134 -0
- package/dist/utils/argValue.d.ts +1 -0
- package/dist/utils/argValue.js +17 -0
- package/dist/utils/errors.d.ts +10 -0
- package/dist/utils/errors.js +17 -0
- package/dist/utils/id.d.ts +1 -0
- package/dist/utils/id.js +4 -0
- package/dist/utils/output.d.ts +2 -0
- package/dist/utils/output.js +10 -0
- package/dist/utils/redact.d.ts +1 -0
- package/dist/utils/redact.js +10 -0
- package/dist/utils/text.d.ts +1 -0
- package/dist/utils/text.js +35 -0
- package/dist/utils/time.d.ts +1 -0
- package/dist/utils/time.js +3 -0
- package/dist/utils/tiptapMarkdown.d.ts +6 -0
- package/dist/utils/tiptapMarkdown.js +149 -0
- package/dist/utils/tokenize.d.ts +1 -0
- package/dist/utils/tokenize.js +56 -0
- package/dist/utils/version.d.ts +1 -0
- package/dist/utils/version.js +21 -0
- package/package.json +63 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Table } from '@powersync/common';
|
|
2
|
+
export declare const c_note: Table<{
|
|
3
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
4
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
audios: import("@powersync/common").BaseColumnType<string | null>;
|
|
6
|
+
images: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
9
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
10
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
11
|
+
audio_detail: import("@powersync/common").BaseColumnType<string | null>;
|
|
12
|
+
image_detail: import("@powersync/common").BaseColumnType<string | null>;
|
|
13
|
+
source: import("@powersync/common").BaseColumnType<string | null>;
|
|
14
|
+
resource_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
15
|
+
note_ids: import("@powersync/common").BaseColumnType<string | null>;
|
|
16
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
17
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
18
|
+
user_no: import("@powersync/common").BaseColumnType<string | null>;
|
|
19
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
20
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
21
|
+
content_text: import("@powersync/common").BaseColumnType<string | null>;
|
|
22
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
23
|
+
format_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
status: import("@powersync/common").BaseColumnType<number | null>;
|
|
26
|
+
comments: import("@powersync/common").BaseColumnType<string | null>;
|
|
27
|
+
is_top: import("@powersync/common").BaseColumnType<number | null>;
|
|
28
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
29
|
+
chat_context: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
bid_links: import("@powersync/common").BaseColumnType<string | null>;
|
|
31
|
+
version: import("@powersync/common").BaseColumnType<number | null>;
|
|
32
|
+
files: import("@powersync/common").BaseColumnType<string | null>;
|
|
33
|
+
summary: import("@powersync/common").BaseColumnType<string | null>;
|
|
34
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_note = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
content: column.text,
|
|
5
|
+
audios: column.text,
|
|
6
|
+
images: column.text,
|
|
7
|
+
created_at: column.text,
|
|
8
|
+
updated_at: column.text,
|
|
9
|
+
title: column.text,
|
|
10
|
+
type: column.text,
|
|
11
|
+
audio_detail: column.text,
|
|
12
|
+
image_detail: column.text,
|
|
13
|
+
source: column.text,
|
|
14
|
+
resource_id: column.text,
|
|
15
|
+
note_ids: column.text,
|
|
16
|
+
tags: column.text,
|
|
17
|
+
extra_data: column.text,
|
|
18
|
+
user_no: column.text,
|
|
19
|
+
is_del: column.integer,
|
|
20
|
+
content_json: column.text,
|
|
21
|
+
content_text: column.text,
|
|
22
|
+
content_md: column.text,
|
|
23
|
+
format_type: column.text,
|
|
24
|
+
zettel_boxes: column.text,
|
|
25
|
+
status: column.integer,
|
|
26
|
+
comments: column.text,
|
|
27
|
+
is_top: column.integer,
|
|
28
|
+
pinned_at: column.text,
|
|
29
|
+
chat_context: column.text,
|
|
30
|
+
bid_links: column.text,
|
|
31
|
+
version: column.integer,
|
|
32
|
+
files: column.text,
|
|
33
|
+
summary: column.text,
|
|
34
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Table } from '@powersync/common';
|
|
2
|
+
export declare const c_note_history: Table<{
|
|
3
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
4
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
version: import("@powersync/common").BaseColumnType<number | null>;
|
|
6
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
content_html: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
9
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
10
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
11
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
12
|
+
content_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
13
|
+
source: import("@powersync/common").BaseColumnType<string | null>;
|
|
14
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
15
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
16
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
17
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const note_local_history: Table<{
|
|
20
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
21
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
22
|
+
title: import("@powersync/common").BaseColumnType<string | null>;
|
|
23
|
+
content_json: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
content_text: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
content_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
26
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
27
|
+
zettel_boxes: import("@powersync/common").BaseColumnType<string | null>;
|
|
28
|
+
images: import("@powersync/common").BaseColumnType<string | null>;
|
|
29
|
+
snapshot_reason: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
snapshot_hash: import("@powersync/common").BaseColumnType<string | null>;
|
|
31
|
+
client_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
32
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
33
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
34
|
+
expires_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
35
|
+
restored_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
36
|
+
meta: import("@powersync/common").BaseColumnType<string | null>;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const c_note_embed: Table<{
|
|
39
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
40
|
+
note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
41
|
+
type: import("@powersync/common").BaseColumnType<number | null>;
|
|
42
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
43
|
+
chunk_index: import("@powersync/common").BaseColumnType<number | null>;
|
|
44
|
+
zettelbox_ids: import("@powersync/common").BaseColumnType<string | null>;
|
|
45
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
46
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
47
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
48
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const c_note_link: Table<{
|
|
51
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
52
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
53
|
+
src_note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
54
|
+
src_block_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
55
|
+
dst_note_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
56
|
+
dst_block_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
57
|
+
relation: import("@powersync/common").BaseColumnType<string | null>;
|
|
58
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
59
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
60
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
61
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
62
|
+
}>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_note_history = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
note_id: column.text,
|
|
5
|
+
version: column.integer,
|
|
6
|
+
title: column.text,
|
|
7
|
+
content_html: column.text,
|
|
8
|
+
content_md: column.text,
|
|
9
|
+
content_json: column.text,
|
|
10
|
+
tags: column.text,
|
|
11
|
+
zettel_boxes: column.text,
|
|
12
|
+
content_hash: column.text,
|
|
13
|
+
source: column.text,
|
|
14
|
+
meta_data: column.text,
|
|
15
|
+
created_at: column.text,
|
|
16
|
+
updated_at: column.text,
|
|
17
|
+
is_del: column.integer,
|
|
18
|
+
}, {
|
|
19
|
+
localOnly: true,
|
|
20
|
+
});
|
|
21
|
+
export const note_local_history = new Table({
|
|
22
|
+
id: column.text,
|
|
23
|
+
note_id: column.text,
|
|
24
|
+
title: column.text,
|
|
25
|
+
content_json: column.text,
|
|
26
|
+
content_text: column.text,
|
|
27
|
+
content_md: column.text,
|
|
28
|
+
tags: column.text,
|
|
29
|
+
zettel_boxes: column.text,
|
|
30
|
+
images: column.text,
|
|
31
|
+
snapshot_reason: column.text,
|
|
32
|
+
snapshot_hash: column.text,
|
|
33
|
+
client_id: column.text,
|
|
34
|
+
user_id: column.text,
|
|
35
|
+
created_at: column.text,
|
|
36
|
+
expires_at: column.text,
|
|
37
|
+
restored_at: column.text,
|
|
38
|
+
meta: column.text,
|
|
39
|
+
}, {
|
|
40
|
+
localOnly: true,
|
|
41
|
+
});
|
|
42
|
+
export const c_note_embed = new Table({
|
|
43
|
+
id: column.text,
|
|
44
|
+
note_id: column.text,
|
|
45
|
+
type: column.integer,
|
|
46
|
+
content: column.text,
|
|
47
|
+
chunk_index: column.integer,
|
|
48
|
+
zettelbox_ids: column.text,
|
|
49
|
+
user_id: column.text,
|
|
50
|
+
tags: column.text,
|
|
51
|
+
created_at: column.text,
|
|
52
|
+
updated_at: column.text,
|
|
53
|
+
});
|
|
54
|
+
export const c_note_link = new Table({
|
|
55
|
+
id: column.text,
|
|
56
|
+
user_id: column.text,
|
|
57
|
+
src_note_id: column.text,
|
|
58
|
+
src_block_id: column.text,
|
|
59
|
+
dst_note_id: column.text,
|
|
60
|
+
dst_block_id: column.text,
|
|
61
|
+
relation: column.text,
|
|
62
|
+
meta_data: column.text,
|
|
63
|
+
created_at: column.text,
|
|
64
|
+
updated_at: column.text,
|
|
65
|
+
is_del: column.integer,
|
|
66
|
+
}, {
|
|
67
|
+
indexes: {
|
|
68
|
+
note_link_src_user: ['src_note_id', 'user_id', 'is_del'],
|
|
69
|
+
note_link_dst_user: ['dst_note_id', 'user_id', 'is_del'],
|
|
70
|
+
},
|
|
71
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Table } from '@powersync/common';
|
|
2
|
+
export declare const c_project: Table<{
|
|
3
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
4
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
description: import("@powersync/common").BaseColumnType<string | null>;
|
|
6
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
9
|
+
agent_md: import("@powersync/common").BaseColumnType<string | null>;
|
|
10
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
11
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
12
|
+
priority: import("@powersync/common").BaseColumnType<number | null>;
|
|
13
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
14
|
+
is_default: import("@powersync/common").BaseColumnType<number | null>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const c_project_board: Table<{
|
|
17
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
18
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
19
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
20
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
21
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
22
|
+
board_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
23
|
+
canvas_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
schema_version: import("@powersync/common").BaseColumnType<string | null>;
|
|
26
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const c_project_item: Table<{
|
|
29
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
31
|
+
kind: import("@powersync/common").BaseColumnType<string | null>;
|
|
32
|
+
ref_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
33
|
+
rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
34
|
+
is_check: import("@powersync/common").BaseColumnType<number | null>;
|
|
35
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
36
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
37
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
38
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
39
|
+
payload: import("@powersync/common").BaseColumnType<string | null>;
|
|
40
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
41
|
+
dedupe_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
42
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const c_thread: Table<{
|
|
45
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
46
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
47
|
+
messages: import("@powersync/common").BaseColumnType<string | null>;
|
|
48
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
49
|
+
project_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
50
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
51
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
52
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
53
|
+
cmd_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
54
|
+
filter_condition: import("@powersync/common").BaseColumnType<string | null>;
|
|
55
|
+
config: import("@powersync/common").BaseColumnType<string | null>;
|
|
56
|
+
snapshot: import("@powersync/common").BaseColumnType<string | null>;
|
|
57
|
+
memory: import("@powersync/common").BaseColumnType<string | null>;
|
|
58
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const c_chat_message: Table<{
|
|
61
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
62
|
+
role: import("@powersync/common").BaseColumnType<string | null>;
|
|
63
|
+
type: import("@powersync/common").BaseColumnType<string | null>;
|
|
64
|
+
source_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
65
|
+
parent_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
66
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
67
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
68
|
+
deleted_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
69
|
+
meta_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
70
|
+
version: import("@powersync/common").BaseColumnType<string | null>;
|
|
71
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const c_resource: Table<{
|
|
74
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
75
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
76
|
+
name: import("@powersync/common").BaseColumnType<string | null>;
|
|
77
|
+
mime_type: import("@powersync/common").BaseColumnType<string | null>;
|
|
78
|
+
size_bytes: import("@powersync/common").BaseColumnType<number | null>;
|
|
79
|
+
storage_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
80
|
+
storage_url: import("@powersync/common").BaseColumnType<string | null>;
|
|
81
|
+
storage_provider: import("@powersync/common").BaseColumnType<string | null>;
|
|
82
|
+
bucket: import("@powersync/common").BaseColumnType<string | null>;
|
|
83
|
+
is_public: import("@powersync/common").BaseColumnType<number | null>;
|
|
84
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
85
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
86
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
87
|
+
status: import("@powersync/common").BaseColumnType<string | null>;
|
|
88
|
+
uploaded_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
89
|
+
etag: import("@powersync/common").BaseColumnType<string | null>;
|
|
90
|
+
checksum: import("@powersync/common").BaseColumnType<string | null>;
|
|
91
|
+
category: import("@powersync/common").BaseColumnType<string | null>;
|
|
92
|
+
width: import("@powersync/common").BaseColumnType<number | null>;
|
|
93
|
+
height: import("@powersync/common").BaseColumnType<number | null>;
|
|
94
|
+
duration: import("@powersync/common").BaseColumnType<number | null>;
|
|
95
|
+
endpoint: import("@powersync/common").BaseColumnType<string | null>;
|
|
96
|
+
domain: import("@powersync/common").BaseColumnType<string | null>;
|
|
97
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
98
|
+
deleted_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
99
|
+
content: import("@powersync/common").BaseColumnType<string | null>;
|
|
100
|
+
summary: import("@powersync/common").BaseColumnType<string | null>;
|
|
101
|
+
}>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_project = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
name: column.text,
|
|
5
|
+
description: column.text,
|
|
6
|
+
created_at: column.text,
|
|
7
|
+
updated_at: column.text,
|
|
8
|
+
user_id: column.text,
|
|
9
|
+
agent_md: column.text,
|
|
10
|
+
memory: column.text,
|
|
11
|
+
meta_data: column.text,
|
|
12
|
+
priority: column.integer,
|
|
13
|
+
is_del: column.integer,
|
|
14
|
+
is_default: column.integer,
|
|
15
|
+
});
|
|
16
|
+
export const c_project_board = new Table({
|
|
17
|
+
id: column.text,
|
|
18
|
+
project_id: column.text,
|
|
19
|
+
created_at: column.text,
|
|
20
|
+
updated_at: column.text,
|
|
21
|
+
user_id: column.text,
|
|
22
|
+
board_data: column.text,
|
|
23
|
+
canvas_data: column.text,
|
|
24
|
+
meta_data: column.text,
|
|
25
|
+
schema_version: column.text,
|
|
26
|
+
is_del: column.integer,
|
|
27
|
+
});
|
|
28
|
+
export const c_project_item = new Table({
|
|
29
|
+
id: column.text,
|
|
30
|
+
project_id: column.text,
|
|
31
|
+
kind: column.text,
|
|
32
|
+
ref_id: column.text,
|
|
33
|
+
rank: column.integer,
|
|
34
|
+
is_check: column.integer,
|
|
35
|
+
created_at: column.text,
|
|
36
|
+
updated_at: column.text,
|
|
37
|
+
user_id: column.text,
|
|
38
|
+
meta_data: column.text,
|
|
39
|
+
payload: column.text,
|
|
40
|
+
pinned_at: column.text,
|
|
41
|
+
dedupe_key: column.text,
|
|
42
|
+
is_del: column.integer,
|
|
43
|
+
});
|
|
44
|
+
export const c_thread = new Table({
|
|
45
|
+
id: column.text,
|
|
46
|
+
name: column.text,
|
|
47
|
+
messages: column.text,
|
|
48
|
+
user_id: column.text,
|
|
49
|
+
project_id: column.text,
|
|
50
|
+
created_at: column.text,
|
|
51
|
+
updated_at: column.text,
|
|
52
|
+
meta_data: column.text,
|
|
53
|
+
cmd_id: column.text,
|
|
54
|
+
filter_condition: column.text,
|
|
55
|
+
config: column.text,
|
|
56
|
+
snapshot: column.text,
|
|
57
|
+
memory: column.text,
|
|
58
|
+
is_del: column.integer,
|
|
59
|
+
});
|
|
60
|
+
export const c_chat_message = new Table({
|
|
61
|
+
id: column.text,
|
|
62
|
+
role: column.text,
|
|
63
|
+
type: column.text,
|
|
64
|
+
source_id: column.text,
|
|
65
|
+
parent_id: column.text,
|
|
66
|
+
content: column.text,
|
|
67
|
+
created_at: column.text,
|
|
68
|
+
deleted_at: column.text,
|
|
69
|
+
meta_data: column.text,
|
|
70
|
+
version: column.text,
|
|
71
|
+
user_id: column.text,
|
|
72
|
+
});
|
|
73
|
+
export const c_resource = new Table({
|
|
74
|
+
id: column.text,
|
|
75
|
+
user_id: column.text,
|
|
76
|
+
name: column.text,
|
|
77
|
+
mime_type: column.text,
|
|
78
|
+
size_bytes: column.integer,
|
|
79
|
+
storage_key: column.text,
|
|
80
|
+
storage_url: column.text,
|
|
81
|
+
storage_provider: column.text,
|
|
82
|
+
bucket: column.text,
|
|
83
|
+
is_public: column.integer,
|
|
84
|
+
created_at: column.text,
|
|
85
|
+
updated_at: column.text,
|
|
86
|
+
is_del: column.integer,
|
|
87
|
+
status: column.text,
|
|
88
|
+
uploaded_at: column.text,
|
|
89
|
+
etag: column.text,
|
|
90
|
+
checksum: column.text,
|
|
91
|
+
category: column.text,
|
|
92
|
+
width: column.integer,
|
|
93
|
+
height: column.integer,
|
|
94
|
+
duration: column.integer,
|
|
95
|
+
endpoint: column.text,
|
|
96
|
+
domain: column.text,
|
|
97
|
+
extra_data: column.text,
|
|
98
|
+
deleted_at: column.text,
|
|
99
|
+
content: column.text,
|
|
100
|
+
summary: column.text,
|
|
101
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Table } from '@powersync/common';
|
|
2
|
+
export declare const c_tag: Table<{
|
|
3
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
4
|
+
tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
5
|
+
insert_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
6
|
+
extra_data: import("@powersync/common").BaseColumnType<string | null>;
|
|
7
|
+
update_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
8
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
9
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
10
|
+
favorite_tags: import("@powersync/common").BaseColumnType<string | null>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const c_tag_node: Table<{
|
|
13
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
14
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
15
|
+
emoji: import("@powersync/common").BaseColumnType<string | null>;
|
|
16
|
+
full_path: import("@powersync/common").BaseColumnType<string | null>;
|
|
17
|
+
path_key: import("@powersync/common").BaseColumnType<string | null>;
|
|
18
|
+
parent_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
19
|
+
depth: import("@powersync/common").BaseColumnType<number | null>;
|
|
20
|
+
is_actual: import("@powersync/common").BaseColumnType<number | null>;
|
|
21
|
+
is_del: import("@powersync/common").BaseColumnType<number | null>;
|
|
22
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
23
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
24
|
+
meta: import("@powersync/common").BaseColumnType<string | null>;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const c_tag_preference: Table<{
|
|
27
|
+
id: import("@powersync/common").BaseColumnType<string | null>;
|
|
28
|
+
user_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
29
|
+
tag_id: import("@powersync/common").BaseColumnType<string | null>;
|
|
30
|
+
is_favorite: import("@powersync/common").BaseColumnType<number | null>;
|
|
31
|
+
is_expanded: import("@powersync/common").BaseColumnType<number | null>;
|
|
32
|
+
pinned_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
33
|
+
sort_rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
34
|
+
pinned_rank: import("@powersync/common").BaseColumnType<number | null>;
|
|
35
|
+
created_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
36
|
+
updated_at: import("@powersync/common").BaseColumnType<string | null>;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { column, Table } from '@powersync/common';
|
|
2
|
+
export const c_tag = new Table({
|
|
3
|
+
id: column.text,
|
|
4
|
+
tags: column.text,
|
|
5
|
+
insert_at: column.text,
|
|
6
|
+
extra_data: column.text,
|
|
7
|
+
update_at: column.text,
|
|
8
|
+
user_id: column.text,
|
|
9
|
+
is_del: column.integer,
|
|
10
|
+
favorite_tags: column.text,
|
|
11
|
+
});
|
|
12
|
+
export const c_tag_node = new Table({
|
|
13
|
+
id: column.text,
|
|
14
|
+
user_id: column.text,
|
|
15
|
+
emoji: column.text,
|
|
16
|
+
full_path: column.text,
|
|
17
|
+
path_key: column.text,
|
|
18
|
+
parent_id: column.text,
|
|
19
|
+
depth: column.integer,
|
|
20
|
+
is_actual: column.integer,
|
|
21
|
+
is_del: column.integer,
|
|
22
|
+
created_at: column.text,
|
|
23
|
+
updated_at: column.text,
|
|
24
|
+
meta: column.text,
|
|
25
|
+
});
|
|
26
|
+
export const c_tag_preference = new Table({
|
|
27
|
+
id: column.text,
|
|
28
|
+
user_id: column.text,
|
|
29
|
+
tag_id: column.text,
|
|
30
|
+
is_favorite: column.integer,
|
|
31
|
+
is_expanded: column.integer,
|
|
32
|
+
pinned_at: column.text,
|
|
33
|
+
sort_rank: column.integer,
|
|
34
|
+
pinned_rank: column.integer,
|
|
35
|
+
created_at: column.text,
|
|
36
|
+
updated_at: column.text,
|
|
37
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AbstractPowerSyncDatabase } from '@powersync/common';
|
|
2
|
+
export type NoteTokenIndexResult = {
|
|
3
|
+
scanned: number;
|
|
4
|
+
reindexed: number;
|
|
5
|
+
skipped: number;
|
|
6
|
+
removed: number;
|
|
7
|
+
ftsRowsUpserted: number;
|
|
8
|
+
cursor: {
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function syncNoteTokenIndex(db: AbstractPowerSyncDatabase, options?: {
|
|
14
|
+
batchSize?: number;
|
|
15
|
+
nowIso?: () => string;
|
|
16
|
+
tokenize?: (text: string, limit?: number) => string[];
|
|
17
|
+
}): Promise<NoteTokenIndexResult>;
|