@dinoxx/dinox-cli 1.1.1 → 2.1.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.
Files changed (141) hide show
  1. package/README.md +44 -3
  2. package/dist/cli.js +4 -0
  3. package/dist/commands/auth/index.js +1 -2
  4. package/dist/commands/boxes/index.js +37 -13
  5. package/dist/commands/boxes/operations.d.ts +3 -3
  6. package/dist/commands/boxes/operations.js +51 -28
  7. package/dist/commands/info/index.js +30 -5
  8. package/dist/commands/meta/repo.js +2 -1
  9. package/dist/commands/notes/actions.js +20 -37
  10. package/dist/commands/notes/bulk.d.ts +2 -2
  11. package/dist/commands/notes/bulk.js +3 -18
  12. package/dist/commands/notes/contentPatch.d.ts +5 -1
  13. package/dist/commands/notes/contentPatch.js +12 -1
  14. package/dist/commands/notes/contentPatchCommand.d.ts +3 -0
  15. package/dist/commands/notes/contentPatchCommand.js +29 -8
  16. package/dist/commands/notes/descriptors.js +19 -16
  17. package/dist/commands/notes/export.js +3 -0
  18. package/dist/commands/notes/repo/read.d.ts +8 -0
  19. package/dist/commands/notes/repo/read.js +321 -0
  20. package/dist/commands/notes/repo/resolve.d.ts +8 -0
  21. package/dist/commands/notes/repo/resolve.js +187 -0
  22. package/dist/commands/notes/repo/search.d.ts +42 -0
  23. package/dist/commands/notes/repo/search.js +513 -0
  24. package/dist/commands/notes/repo/shared.d.ts +190 -0
  25. package/dist/commands/notes/repo/shared.js +102 -0
  26. package/dist/commands/notes/repo/write.d.ts +24 -0
  27. package/dist/commands/notes/repo/write.js +251 -0
  28. package/dist/commands/notes/repo.d.ts +7 -177
  29. package/dist/commands/notes/repo.js +7 -1310
  30. package/dist/commands/notes/searchOutput.d.ts +2 -1
  31. package/dist/commands/notes/searchOutput.js +2 -1
  32. package/dist/commands/notes/searchSql.js +9 -3
  33. package/dist/commands/prompt/index.d.ts +1 -0
  34. package/dist/commands/prompt/index.js +26 -11
  35. package/dist/commands/savedViews/index.d.ts +7 -0
  36. package/dist/commands/savedViews/index.js +458 -0
  37. package/dist/commands/savedViews/model.d.ts +87 -0
  38. package/dist/commands/savedViews/model.js +306 -0
  39. package/dist/commands/savedViews/repo.d.ts +123 -0
  40. package/dist/commands/savedViews/repo.js +512 -0
  41. package/dist/commands/savedViews/semantics.d.ts +46 -0
  42. package/dist/commands/savedViews/semantics.js +738 -0
  43. package/dist/commands/schema/commandMetadata.js +4 -4
  44. package/dist/commands/schema/index.d.ts +1 -0
  45. package/dist/commands/schema/index.js +23 -2
  46. package/dist/commands/schema/renderSkills.d.ts +6 -0
  47. package/dist/commands/schema/renderSkills.js +109 -11
  48. package/dist/commands/schema/spec.js +4 -0
  49. package/dist/commands/skills/index.d.ts +80 -0
  50. package/dist/commands/skills/index.js +572 -0
  51. package/dist/commands/storage/index.js +2 -2
  52. package/dist/commands/storage/repo/configs.d.ts +30 -0
  53. package/dist/commands/storage/repo/configs.js +259 -0
  54. package/dist/commands/storage/repo/operations.d.ts +25 -0
  55. package/dist/commands/storage/repo/operations.js +337 -0
  56. package/dist/commands/storage/repo/remote.d.ts +32 -0
  57. package/dist/commands/storage/repo/remote.js +132 -0
  58. package/dist/commands/storage/repo/resources.d.ts +12 -0
  59. package/dist/commands/storage/repo/resources.js +134 -0
  60. package/dist/commands/storage/repo/shared.d.ts +181 -0
  61. package/dist/commands/storage/repo/shared.js +36 -0
  62. package/dist/commands/storage/repo/targets.d.ts +12 -0
  63. package/dist/commands/storage/repo/targets.js +178 -0
  64. package/dist/commands/storage/repo.d.ts +3 -166
  65. package/dist/commands/storage/repo.js +4 -1034
  66. package/dist/commands/sync.js +2 -1
  67. package/dist/commands/tags/index.js +30 -11
  68. package/dist/commands/tags/operations.d.ts +3 -3
  69. package/dist/commands/tags/operations.js +45 -20
  70. package/dist/commands/templates/model.d.ts +50 -0
  71. package/dist/commands/templates/model.js +239 -0
  72. package/dist/commands/todo/index.js +3 -3
  73. package/dist/commands/update.d.ts +1 -0
  74. package/dist/commands/update.js +46 -9
  75. package/dist/commands/writeConfirmation.d.ts +13 -0
  76. package/dist/commands/writeConfirmation.js +54 -0
  77. package/dist/config/resolve.js +5 -10
  78. package/dist/config/types.d.ts +3 -6
  79. package/dist/constants/links.d.ts +18 -1
  80. package/dist/constants/links.js +26 -1
  81. package/dist/contract/snapshot.d.ts +30 -0
  82. package/dist/contract/snapshot.js +114 -0
  83. package/dist/daemon/client.d.ts +2 -2
  84. package/dist/daemon/client.js +108 -54
  85. package/dist/daemon/index.d.ts +5 -3
  86. package/dist/daemon/index.js +28 -5
  87. package/dist/daemon/lifecycle.d.ts +7 -2
  88. package/dist/daemon/lifecycle.js +53 -13
  89. package/dist/daemon/pid.d.ts +1 -1
  90. package/dist/daemon/pid.js +6 -3
  91. package/dist/dinox.js +9 -1
  92. package/dist/powersync/exclusiveRuntime.d.ts +1 -0
  93. package/dist/powersync/exclusiveRuntime.js +26 -8
  94. package/dist/powersync/runtime.d.ts +3 -2
  95. package/dist/powersync/runtime.js +19 -3
  96. package/dist/powersync/schema/content.d.ts +1 -78
  97. package/dist/powersync/schema/content.js +1 -78
  98. package/dist/powersync/schema/electronCanonical.d.ts +1561 -0
  99. package/dist/powersync/schema/electronCanonical.js +1154 -0
  100. package/dist/powersync/schema/index.d.ts +573 -129
  101. package/dist/powersync/schema/index.js +3 -32
  102. package/dist/powersync/schema/local.d.ts +1 -56
  103. package/dist/powersync/schema/local.js +1 -60
  104. package/dist/powersync/schema/note.d.ts +1 -35
  105. package/dist/powersync/schema/note.js +1 -35
  106. package/dist/powersync/schema/notesExtras.d.ts +1 -62
  107. package/dist/powersync/schema/notesExtras.js +1 -71
  108. package/dist/powersync/schema/projects.d.ts +1 -104
  109. package/dist/powersync/schema/projects.js +1 -104
  110. package/dist/powersync/schema/savedViews.d.ts +1 -0
  111. package/dist/powersync/schema/savedViews.js +1 -0
  112. package/dist/powersync/schema/storage.d.ts +1 -24
  113. package/dist/powersync/schema/storage.js +1 -24
  114. package/dist/powersync/schema/tags.d.ts +1 -37
  115. package/dist/powersync/schema/tags.js +1 -37
  116. package/dist/powersync/syncGate.d.ts +20 -2
  117. package/dist/powersync/uploader.d.ts +16 -2
  118. package/dist/powersync/uploader.js +152 -158
  119. package/dist/skills/check.d.ts +1 -0
  120. package/dist/skills/check.js +538 -70
  121. package/dist/skills/commandRefs.d.ts +21 -0
  122. package/dist/skills/commandRefs.js +132 -0
  123. package/dist/skills/generate.d.ts +13 -0
  124. package/dist/skills/generate.js +80 -0
  125. package/dist/skills/registry.d.ts +13 -0
  126. package/dist/skills/registry.js +58 -0
  127. package/dist/skills/retired.d.ts +60 -0
  128. package/dist/skills/retired.js +58 -0
  129. package/dist/utils/deadline.d.ts +8 -0
  130. package/dist/utils/deadline.js +31 -0
  131. package/dist/utils/dryRun.d.ts +20 -1
  132. package/dist/utils/dryRun.js +22 -3
  133. package/dist/utils/errorCodes.d.ts +311 -0
  134. package/dist/utils/errorCodes.js +92 -0
  135. package/dist/utils/errors.d.ts +15 -2
  136. package/dist/utils/errors.js +13 -0
  137. package/dist/utils/processExit.d.ts +1 -0
  138. package/dist/utils/processExit.js +33 -0
  139. package/dist/utils/updateNotice.d.ts +1 -0
  140. package/dist/utils/updateNotice.js +1 -1
  141. package/package.json +18 -8
@@ -1,37 +1,8 @@
1
1
  import { Schema } from '@powersync/common';
2
- import { c_note } from './note.js';
3
- import { c_note_embed, c_note_history, c_note_link, note_local_history } from './notesExtras.js';
4
- import { c_card_box, c_card_note, c_cmd, c_note_template, c_zettel_box } from './content.js';
5
- import { c_local_config, app_local_store, c_config_property, c_user_config, c_user_config_advanced, note_local_index_meta, note_local_index_state, } from './local.js';
6
- import { c_project, c_project_board, c_project_item, c_thread, c_chat_message, c_resource } from './projects.js';
7
- import { c_storage } from './storage.js';
8
- import { c_tag, c_tag_node, c_tag_preference } from './tags.js';
2
+ import { ELECTRON_CANONICAL_TABLES } from './electronCanonical.js';
3
+ import { note_local_index_meta, note_local_index_state } from './local.js';
9
4
  export const AppSchema = new Schema({
10
- c_local_config,
11
- app_local_store,
12
- c_config_property,
13
- c_note,
14
- c_note_embed,
15
- c_note_history,
16
- note_local_history,
17
- c_note_link,
18
- c_card_box,
19
- c_card_note,
20
- c_cmd,
21
- c_note_template,
22
- c_tag,
23
- c_tag_node,
24
- c_tag_preference,
25
- c_user_config,
26
- c_zettel_box,
27
- c_project,
28
- c_project_board,
29
- c_project_item,
30
- c_thread,
31
- c_chat_message,
32
- c_resource,
33
- c_storage,
34
- c_user_config_advanced,
5
+ ...ELECTRON_CANONICAL_TABLES,
35
6
  note_local_index_meta,
36
7
  note_local_index_state,
37
8
  });
@@ -1,67 +1,12 @@
1
1
  import { Table } from '@powersync/common';
2
- export declare const c_local_config: Table<{
3
- id: import("@powersync/common").BaseColumnType<string | null>;
4
- local_key: import("@powersync/common").BaseColumnType<string | null>;
5
- local_value: 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
- is_del: import("@powersync/common").BaseColumnType<number | null>;
9
- description: import("@powersync/common").BaseColumnType<string | null>;
10
- }>;
11
- export declare const app_local_store: Table<{
12
- id: import("@powersync/common").BaseColumnType<string | null>;
13
- namespace: import("@powersync/common").BaseColumnType<string | null>;
14
- key: import("@powersync/common").BaseColumnType<string | null>;
15
- value: import("@powersync/common").BaseColumnType<string | null>;
16
- value_type: import("@powersync/common").BaseColumnType<string | null>;
17
- expires_at: import("@powersync/common").BaseColumnType<string | null>;
18
- metadata: import("@powersync/common").BaseColumnType<string | null>;
19
- updated_at: import("@powersync/common").BaseColumnType<string | null>;
20
- }>;
21
- export declare const c_config_property: Table<{
22
- id: import("@powersync/common").BaseColumnType<string | null>;
23
- c_key: import("@powersync/common").BaseColumnType<string | null>;
24
- c_value: import("@powersync/common").BaseColumnType<string | null>;
25
- created_at: import("@powersync/common").BaseColumnType<string | null>;
26
- updated_at: import("@powersync/common").BaseColumnType<string | null>;
27
- is_del: import("@powersync/common").BaseColumnType<number | null>;
28
- user_id: import("@powersync/common").BaseColumnType<string | null>;
29
- description: import("@powersync/common").BaseColumnType<string | null>;
30
- }>;
31
- export declare const c_user_config: Table<{
32
- id: import("@powersync/common").BaseColumnType<string | null>;
33
- config: import("@powersync/common").BaseColumnType<string | null>;
34
- memory: import("@powersync/common").BaseColumnType<string | null>;
35
- extra_data: import("@powersync/common").BaseColumnType<string | null>;
36
- is_del: import("@powersync/common").BaseColumnType<number | null>;
37
- hot_words: import("@powersync/common").BaseColumnType<string | null>;
38
- }>;
39
- export declare const c_user_config_advanced: Table<{
40
- id: import("@powersync/common").BaseColumnType<string | null>;
41
- created_at: import("@powersync/common").BaseColumnType<string | null>;
42
- updated_at: import("@powersync/common").BaseColumnType<string | null>;
43
- extra_data: import("@powersync/common").BaseColumnType<string | null>;
44
- s3_config: import("@powersync/common").BaseColumnType<string | null>;
45
- global_memory_config: import("@powersync/common").BaseColumnType<string | null>;
46
- mcp_servers: import("@powersync/common").BaseColumnType<string | null>;
47
- is_del: import("@powersync/common").BaseColumnType<number | null>;
48
- user_id: import("@powersync/common").BaseColumnType<string | null>;
49
- }>;
50
- /**
51
- * Per-note index metadata used for incremental updates.
52
- */
2
+ export { app_local_store, c_config_property, c_local_config, c_user_config, c_user_config_advanced, } from './electronCanonical.js';
53
3
  export declare const note_local_index_meta: Table<{
54
- id: import("@powersync/common").BaseColumnType<string | null>;
55
4
  source_hash: import("@powersync/common").BaseColumnType<string | null>;
56
5
  indexed_at: import("@powersync/common").BaseColumnType<string | null>;
57
6
  note_updated_at: import("@powersync/common").BaseColumnType<string | null>;
58
7
  is_del: import("@powersync/common").BaseColumnType<number | null>;
59
8
  }>;
60
- /**
61
- * Cursor state for incremental scanning.
62
- */
63
9
  export declare const note_local_index_state: Table<{
64
- id: import("@powersync/common").BaseColumnType<string | null>;
65
10
  cursor_updated_at: import("@powersync/common").BaseColumnType<string | null>;
66
11
  cursor_id: import("@powersync/common").BaseColumnType<string | null>;
67
12
  updated_at: import("@powersync/common").BaseColumnType<string | null>;
@@ -1,61 +1,6 @@
1
1
  import { column, Table } from '@powersync/common';
2
- export const c_local_config = new Table({
3
- id: column.text,
4
- local_key: column.text,
5
- local_value: column.text,
6
- created_at: column.text,
7
- updated_at: column.text,
8
- is_del: column.integer,
9
- description: column.text,
10
- }, {
11
- localOnly: true,
12
- });
13
- export const app_local_store = new Table({
14
- id: column.text,
15
- namespace: column.text,
16
- key: column.text,
17
- value: column.text,
18
- value_type: column.text,
19
- expires_at: column.text,
20
- metadata: column.text,
21
- updated_at: column.text,
22
- }, {
23
- localOnly: true,
24
- });
25
- export const c_config_property = new Table({
26
- id: column.text,
27
- c_key: column.text,
28
- c_value: column.text,
29
- created_at: column.text,
30
- updated_at: column.text,
31
- is_del: column.integer,
32
- user_id: column.text,
33
- description: column.text,
34
- });
35
- export const c_user_config = new Table({
36
- id: column.text,
37
- config: column.text,
38
- memory: column.text,
39
- extra_data: column.text,
40
- is_del: column.integer,
41
- hot_words: column.text,
42
- });
43
- export const c_user_config_advanced = new Table({
44
- id: column.text,
45
- created_at: column.text,
46
- updated_at: column.text,
47
- extra_data: column.text,
48
- s3_config: column.text,
49
- global_memory_config: column.text,
50
- mcp_servers: column.text,
51
- is_del: column.integer,
52
- user_id: column.text,
53
- });
54
- /**
55
- * Per-note index metadata used for incremental updates.
56
- */
2
+ export { app_local_store, c_config_property, c_local_config, c_user_config, c_user_config_advanced, } from './electronCanonical.js';
57
3
  export const note_local_index_meta = new Table({
58
- id: column.text,
59
4
  source_hash: column.text,
60
5
  indexed_at: column.text,
61
6
  note_updated_at: column.text,
@@ -67,11 +12,7 @@ export const note_local_index_meta = new Table({
67
12
  index_meta_updated: ['note_updated_at', 'id'],
68
13
  },
69
14
  });
70
- /**
71
- * Cursor state for incremental scanning.
72
- */
73
15
  export const note_local_index_state = new Table({
74
- id: column.text,
75
16
  cursor_updated_at: column.text,
76
17
  cursor_id: column.text,
77
18
  updated_at: column.text,
@@ -1,35 +1 @@
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_starred: import("@powersync/common").BaseColumnType<number | null>;
28
- is_top: import("@powersync/common").BaseColumnType<number | null>;
29
- pinned_at: import("@powersync/common").BaseColumnType<string | null>;
30
- chat_context: import("@powersync/common").BaseColumnType<string | null>;
31
- bid_links: import("@powersync/common").BaseColumnType<string | null>;
32
- version: import("@powersync/common").BaseColumnType<number | null>;
33
- files: import("@powersync/common").BaseColumnType<string | null>;
34
- summary: import("@powersync/common").BaseColumnType<string | null>;
35
- }>;
1
+ export { c_note } from './electronCanonical.js';
@@ -1,35 +1 @@
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_starred: column.integer,
28
- is_top: column.integer,
29
- pinned_at: column.text,
30
- chat_context: column.text,
31
- bid_links: column.text,
32
- version: column.integer,
33
- files: column.text,
34
- summary: column.text,
35
- });
1
+ export { c_note } from './electronCanonical.js';
@@ -1,62 +1 @@
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
- }>;
1
+ export { c_note_embed, c_note_history, c_note_link, note_local_history, } from './electronCanonical.js';
@@ -1,71 +1 @@
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
- });
1
+ export { c_note_embed, c_note_history, c_note_link, note_local_history, } from './electronCanonical.js';
@@ -1,104 +1 @@
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_config_id: import("@powersync/common").BaseColumnType<string | null>;
80
- storage_key: import("@powersync/common").BaseColumnType<string | null>;
81
- storage_url: import("@powersync/common").BaseColumnType<string | null>;
82
- storage_provider: import("@powersync/common").BaseColumnType<string | null>;
83
- bucket: import("@powersync/common").BaseColumnType<string | null>;
84
- is_public: import("@powersync/common").BaseColumnType<number | null>;
85
- created_at: import("@powersync/common").BaseColumnType<string | null>;
86
- updated_at: import("@powersync/common").BaseColumnType<string | null>;
87
- is_del: import("@powersync/common").BaseColumnType<number | null>;
88
- status: import("@powersync/common").BaseColumnType<string | null>;
89
- uploaded_at: import("@powersync/common").BaseColumnType<string | null>;
90
- etag: import("@powersync/common").BaseColumnType<string | null>;
91
- checksum: import("@powersync/common").BaseColumnType<string | null>;
92
- category: import("@powersync/common").BaseColumnType<string | null>;
93
- width: import("@powersync/common").BaseColumnType<number | null>;
94
- height: import("@powersync/common").BaseColumnType<number | null>;
95
- duration: import("@powersync/common").BaseColumnType<number | null>;
96
- endpoint: import("@powersync/common").BaseColumnType<string | null>;
97
- domain: import("@powersync/common").BaseColumnType<string | null>;
98
- extra_data: import("@powersync/common").BaseColumnType<string | null>;
99
- deleted_at: import("@powersync/common").BaseColumnType<string | null>;
100
- content_sha256: import("@powersync/common").BaseColumnType<string | null>;
101
- content: import("@powersync/common").BaseColumnType<string | null>;
102
- content_md: import("@powersync/common").BaseColumnType<string | null>;
103
- summary: import("@powersync/common").BaseColumnType<string | null>;
104
- }>;
1
+ export { c_chat_message, c_project, c_project_item, c_resource, c_thread, } from './electronCanonical.js';
@@ -1,104 +1 @@
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_config_id: column.text,
80
- storage_key: column.text,
81
- storage_url: column.text,
82
- storage_provider: column.text,
83
- bucket: column.text,
84
- is_public: column.integer,
85
- created_at: column.text,
86
- updated_at: column.text,
87
- is_del: column.integer,
88
- status: column.text,
89
- uploaded_at: column.text,
90
- etag: column.text,
91
- checksum: column.text,
92
- category: column.text,
93
- width: column.integer,
94
- height: column.integer,
95
- duration: column.integer,
96
- endpoint: column.text,
97
- domain: column.text,
98
- extra_data: column.text,
99
- deleted_at: column.text,
100
- content_sha256: column.text,
101
- content: column.text,
102
- content_md: column.text,
103
- summary: column.text,
104
- });
1
+ export { c_chat_message, c_project, c_project_item, c_resource, c_thread, } from './electronCanonical.js';
@@ -0,0 +1 @@
1
+ export { c_saved_view } from './electronCanonical.js';
@@ -0,0 +1 @@
1
+ export { c_saved_view } from './electronCanonical.js';
@@ -1,24 +1 @@
1
- import { Table } from '@powersync/common';
2
- export declare const c_storage: Table<{
3
- id: import("@powersync/common").BaseColumnType<string | null>;
4
- user_id: import("@powersync/common").BaseColumnType<string | null>;
5
- alias_name: import("@powersync/common").BaseColumnType<string | null>;
6
- protocol: import("@powersync/common").BaseColumnType<string | null>;
7
- provider: import("@powersync/common").BaseColumnType<string | null>;
8
- is_active: import("@powersync/common").BaseColumnType<number | null>;
9
- sort_rank: import("@powersync/common").BaseColumnType<number | null>;
10
- endpoint: import("@powersync/common").BaseColumnType<string | null>;
11
- bucket: import("@powersync/common").BaseColumnType<string | null>;
12
- region: import("@powersync/common").BaseColumnType<string | null>;
13
- access_key_id: import("@powersync/common").BaseColumnType<string | null>;
14
- secret_access_key: import("@powersync/common").BaseColumnType<string | null>;
15
- force_path_style: import("@powersync/common").BaseColumnType<number | null>;
16
- path_prefix: import("@powersync/common").BaseColumnType<string | null>;
17
- custom_domain: import("@powersync/common").BaseColumnType<string | null>;
18
- legacy_domains: import("@powersync/common").BaseColumnType<string | null>;
19
- is_private: import("@powersync/common").BaseColumnType<number | null>;
20
- extra_config: import("@powersync/common").BaseColumnType<string | null>;
21
- created_at: import("@powersync/common").BaseColumnType<string | null>;
22
- updated_at: import("@powersync/common").BaseColumnType<string | null>;
23
- deleted_at: import("@powersync/common").BaseColumnType<string | null>;
24
- }>;
1
+ export { c_storage } from './electronCanonical.js';