@seedprotocol/sdk 0.7.5 → 0.7.6

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 (220) hide show
  1. package/README.md +2 -2
  2. package/dist/{ClientManager-DRf4uuei.js → ClientManager-D6YA20jP.js} +207 -149
  3. package/dist/ClientManager-D6YA20jP.js.map +1 -0
  4. package/dist/{Item-DTJPMjFk.js → Item-B1MH0tXx.js} +126 -86
  5. package/dist/Item-B1MH0tXx.js.map +1 -0
  6. package/dist/{ModelProperty-Dto5C0om.js → ModelProperty-Dw6dHdu_.js} +37 -37
  7. package/dist/{ModelProperty-Dto5C0om.js.map → ModelProperty-Dw6dHdu_.js.map} +1 -1
  8. package/dist/{Schema-8DxGcORY.js → Schema-DppObO6h.js} +62 -212
  9. package/dist/Schema-DppObO6h.js.map +1 -0
  10. package/dist/{SchemaValidationService-CE92y1TT.js → SchemaValidationService-DXQ-D531.js} +6 -6
  11. package/dist/{SchemaValidationService-CE92y1TT.js.map → SchemaValidationService-DXQ-D531.js.map} +1 -1
  12. package/dist/{backfillMetadataPropertyIds-CRqp-BqX.js → backfillMetadataPropertyIds-Uhzlwg9X.js} +3 -3
  13. package/dist/{backfillMetadataPropertyIds-CRqp-BqX.js.map → backfillMetadataPropertyIds-Uhzlwg9X.js.map} +1 -1
  14. package/dist/configurePlatform-CVoh3JeR.js +81 -0
  15. package/dist/configurePlatform-CVoh3JeR.js.map +1 -0
  16. package/dist/{detachRowsBeforeDelete-BVetHtn2.js → detachRowsBeforeDelete-CtmIFpgV.js} +2 -2
  17. package/dist/{detachRowsBeforeDelete-BVetHtn2.js.map → detachRowsBeforeDelete-CtmIFpgV.js.map} +1 -1
  18. package/dist/{discardNewDraft-CEOouygG.js → discardNewDraft-oGYdB5vS.js} +5 -5
  19. package/dist/{discardNewDraft-CEOouygG.js.map → discardNewDraft-oGYdB5vS.js.map} +1 -1
  20. package/dist/dist/ClientManager-D6YA20jP.d.ts +933 -0
  21. package/dist/dist/ClientManager-D6YA20jP.d.ts.map +1 -0
  22. package/dist/dist/Item-B1MH0tXx.d.ts +898 -0
  23. package/dist/dist/Item-B1MH0tXx.d.ts.map +1 -0
  24. package/dist/dist/ModelProperty-Dw6dHdu_.d.ts +315 -0
  25. package/dist/dist/ModelProperty-Dw6dHdu_.d.ts.map +1 -0
  26. package/dist/dist/Schema-DppObO6h.d.ts +601 -0
  27. package/dist/dist/Schema-DppObO6h.d.ts.map +1 -0
  28. package/dist/dist/SchemaValidationService-DXQ-D531.d.ts +118 -0
  29. package/dist/dist/SchemaValidationService-DXQ-D531.d.ts.map +1 -0
  30. package/dist/dist/backfillMetadataPropertyIds-Uhzlwg9X.d.ts +7 -0
  31. package/dist/dist/backfillMetadataPropertyIds-Uhzlwg9X.d.ts.map +1 -0
  32. package/dist/dist/configurePlatform-CVoh3JeR.d.ts +30 -0
  33. package/dist/dist/configurePlatform-CVoh3JeR.d.ts.map +1 -0
  34. package/dist/dist/detachRowsBeforeDelete-CtmIFpgV.d.ts +13 -0
  35. package/dist/dist/detachRowsBeforeDelete-CtmIFpgV.d.ts.map +1 -0
  36. package/dist/dist/discardNewDraft-oGYdB5vS.d.ts +8 -0
  37. package/dist/dist/discardNewDraft-oGYdB5vS.d.ts.map +1 -0
  38. package/dist/dist/eas-CSm5wmry.d.ts +12 -0
  39. package/dist/dist/eas-CSm5wmry.d.ts.map +1 -0
  40. package/dist/dist/errors-3tc6XkCB.d.ts +487 -0
  41. package/dist/dist/errors-3tc6XkCB.d.ts.map +1 -0
  42. package/dist/dist/errors-Do7v6RKu.d.ts +22 -0
  43. package/dist/dist/errors-Do7v6RKu.d.ts.map +1 -0
  44. package/dist/dist/getItem-DM3a-7XE.d.ts +6 -0
  45. package/dist/dist/getItem-DM3a-7XE.d.ts.map +1 -0
  46. package/dist/dist/getPublishPayload-CJF0k5d8.d.ts +47 -0
  47. package/dist/dist/getPublishPayload-CJF0k5d8.d.ts.map +1 -0
  48. package/dist/dist/getPublishUploads-C7-fYIgX.d.ts +89 -0
  49. package/dist/dist/getPublishUploads-C7-fYIgX.d.ts.map +1 -0
  50. package/dist/dist/index--mmQ3LQu.d.ts +6 -0
  51. package/dist/dist/index--mmQ3LQu.d.ts.map +1 -0
  52. package/dist/dist/index-B7yAoYli.d.ts +2752 -0
  53. package/dist/dist/index-B7yAoYli.d.ts.map +1 -0
  54. package/dist/dist/index-CrvIcVFJ.d.ts +4475 -0
  55. package/dist/dist/index-CrvIcVFJ.d.ts.map +1 -0
  56. package/dist/dist/index.browser-BmVS-c2C.d.ts +8445 -0
  57. package/dist/dist/index.browser-BmVS-c2C.d.ts.map +1 -0
  58. package/dist/dist/index.node-BKpbCAWt.d.ts +11123 -0
  59. package/dist/dist/index.node-BKpbCAWt.d.ts.map +1 -0
  60. package/dist/dist/mimeTypes-C9r76DCH.d.ts +30 -0
  61. package/dist/dist/mimeTypes-C9r76DCH.d.ts.map +1 -0
  62. package/dist/dist/model-oHA3YhOd.d.ts +6 -0
  63. package/dist/dist/model-oHA3YhOd.d.ts.map +1 -0
  64. package/dist/dist/platform.browser.d.ts +3 -0
  65. package/dist/dist/platform.browser.d.ts.map +1 -0
  66. package/dist/dist/platform.node.d.ts +3 -0
  67. package/dist/dist/platform.node.d.ts.map +1 -0
  68. package/dist/dist/property-DQ-Owzki.d.ts +37 -0
  69. package/dist/dist/property-DQ-Owzki.d.ts.map +1 -0
  70. package/dist/dist/propertyValidationRules-BDhFjlwP.d.ts +8 -0
  71. package/dist/dist/propertyValidationRules-BDhFjlwP.d.ts.map +1 -0
  72. package/dist/dist/publishDraftGraph-CzPd9oe9.d.ts +76 -0
  73. package/dist/dist/publishDraftGraph-CzPd9oe9.d.ts.map +1 -0
  74. package/dist/dist/resetAmbiguousLegacyItemData-cXZm4NuG.d.ts +17 -0
  75. package/dist/dist/resetAmbiguousLegacyItemData-cXZm4NuG.d.ts.map +1 -0
  76. package/dist/dist/resolveModelForSyncedSeed-BgxtVCHI.d.ts +21 -0
  77. package/dist/dist/resolveModelForSyncedSeed-BgxtVCHI.d.ts.map +1 -0
  78. package/dist/dist/syncDbWithEas-Y5GysSCm.d.ts +22 -0
  79. package/dist/dist/syncDbWithEas-Y5GysSCm.d.ts.map +1 -0
  80. package/dist/dist/tabEvents-D9x26vf2.d.ts +81 -0
  81. package/dist/dist/tabEvents-D9x26vf2.d.ts.map +1 -0
  82. package/dist/dist/tolerantWebAccess-BFU2t-SC.d.ts +113 -0
  83. package/dist/dist/tolerantWebAccess-BFU2t-SC.d.ts.map +1 -0
  84. package/dist/dist/updateSeedRevokedAt-CCF8WWYS.d.ts +11 -0
  85. package/dist/dist/updateSeedRevokedAt-CCF8WWYS.d.ts.map +1 -0
  86. package/dist/drizzle.js +2 -0
  87. package/dist/drizzle.js.map +1 -0
  88. package/dist/{eas-D7jvWMnI.js → eas-CSm5wmry.js} +3 -3
  89. package/dist/{eas-D7jvWMnI.js.map → eas-CSm5wmry.js.map} +1 -1
  90. package/dist/{errors-CIrbsN_i.js → errors-3tc6XkCB.js} +81 -36
  91. package/dist/errors-3tc6XkCB.js.map +1 -0
  92. package/dist/errors-Do7v6RKu.js +34 -0
  93. package/dist/errors-Do7v6RKu.js.map +1 -0
  94. package/dist/{getItem-CxU_kT5W.js → getItem-DM3a-7XE.js} +4 -4
  95. package/dist/{getItem-CxU_kT5W.js.map → getItem-DM3a-7XE.js.map} +1 -1
  96. package/dist/{getPublishPayload-DTjOKd3y.js → getPublishPayload-CJF0k5d8.js} +31 -25
  97. package/dist/getPublishPayload-CJF0k5d8.js.map +1 -0
  98. package/dist/{getPublishUploads-CVTBo_OV.js → getPublishUploads-C7-fYIgX.js} +6 -6
  99. package/dist/{getPublishUploads-CVTBo_OV.js.map → getPublishUploads-C7-fYIgX.js.map} +1 -1
  100. package/dist/{index-CMxEil8T.js → index--mmQ3LQu.js} +8 -8
  101. package/dist/index--mmQ3LQu.js.map +1 -0
  102. package/dist/{index-DWK-LOUY.js → index-B7yAoYli.js} +2 -2
  103. package/dist/index-B7yAoYli.js.map +1 -0
  104. package/dist/{BasePathResolver-CBTXCMFL.js → index-CrvIcVFJ.js} +304 -285
  105. package/dist/index-CrvIcVFJ.js.map +1 -0
  106. package/dist/{index.browser-shRXMeB3.js → index.browser-BmVS-c2C.js} +34 -44
  107. package/dist/index.browser-BmVS-c2C.js.map +1 -0
  108. package/dist/{index.node-DAKJNYp5.js → index.node-BKpbCAWt.js} +43 -7
  109. package/dist/index.node-BKpbCAWt.js.map +1 -0
  110. package/dist/main.js +23 -24
  111. package/dist/main.js.map +1 -1
  112. package/dist/node.js +13 -10
  113. package/dist/node.js.map +1 -1
  114. package/dist/platform.browser.js +7 -7
  115. package/dist/platform.node.js +4 -4
  116. package/dist/{property-lz9yIpyA.js → property-DQ-Owzki.js} +7 -7
  117. package/dist/{property-lz9yIpyA.js.map → property-DQ-Owzki.js.map} +1 -1
  118. package/dist/{propertyValidationRules-LuIwoQoJ.js → propertyValidationRules-BDhFjlwP.js} +10 -10
  119. package/dist/{propertyValidationRules-LuIwoQoJ.js.map → propertyValidationRules-BDhFjlwP.js.map} +1 -1
  120. package/dist/{publishDraftGraph-CgSLPKvQ.js → publishDraftGraph-CzPd9oe9.js} +41 -8
  121. package/dist/publishDraftGraph-CzPd9oe9.js.map +1 -0
  122. package/dist/{resetAmbiguousLegacyItemData-CuamkAAh.js → resetAmbiguousLegacyItemData-cXZm4NuG.js} +2 -2
  123. package/dist/{resetAmbiguousLegacyItemData-CuamkAAh.js.map → resetAmbiguousLegacyItemData-cXZm4NuG.js.map} +1 -1
  124. package/dist/{resolveModelForSyncedSeed-BbSctSvz.js → resolveModelForSyncedSeed-BgxtVCHI.js} +2 -2
  125. package/dist/{resolveModelForSyncedSeed-BbSctSvz.js.map → resolveModelForSyncedSeed-BgxtVCHI.js.map} +1 -1
  126. package/dist/src/Item/Item.d.ts.map +1 -1
  127. package/dist/src/ItemProperty/service/actors/initialize.d.ts.map +1 -1
  128. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -1
  129. package/dist/src/ItemProperty/service/actors/saveValueToDb/rowContext.d.ts +10 -0
  130. package/dist/src/ItemProperty/service/actors/saveValueToDb/rowContext.d.ts.map +1 -0
  131. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts.map +1 -1
  132. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts.map +1 -1
  133. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +1 -1
  134. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +1 -1
  135. package/dist/src/ItemProperty/service/propertyMachine.d.ts +20 -20
  136. package/dist/src/Model/Model.d.ts +8 -0
  137. package/dist/src/Model/Model.d.ts.map +1 -1
  138. package/dist/src/ModelProperty/ModelProperty.d.ts +1 -1
  139. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +3 -3
  140. package/dist/src/Schema/service/actors/checkExistingSchema.d.ts.map +1 -1
  141. package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +1 -1
  142. package/dist/src/Schema/service/actors/writeModelsToDb.d.ts.map +1 -1
  143. package/dist/src/browser/db/Db.d.ts.map +1 -1
  144. package/dist/src/browser/helpers/ArweaveClient.d.ts.map +1 -1
  145. package/dist/src/client/actors/addModelsToDb.d.ts.map +1 -1
  146. package/dist/src/client/actors/platformClassesInit.d.ts +1 -7
  147. package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
  148. package/dist/src/client/actors/saveAppState.d.ts.map +1 -1
  149. package/dist/src/client/actors/saveConfig.d.ts.map +1 -1
  150. package/dist/src/client/seedConfigDefaults.d.ts +10 -0
  151. package/dist/src/client/seedConfigDefaults.d.ts.map +1 -0
  152. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  153. package/dist/src/db/write/updateItemPropertyValue.d.ts +6 -0
  154. package/dist/src/db/write/updateItemPropertyValue.d.ts.map +1 -1
  155. package/dist/src/drizzle/index.d.ts +7 -0
  156. package/dist/src/drizzle/index.d.ts.map +1 -0
  157. package/dist/src/events/files/download.d.ts.map +1 -1
  158. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  159. package/dist/src/helpers/FileManager/errors.d.ts +11 -0
  160. package/dist/src/helpers/FileManager/errors.d.ts.map +1 -1
  161. package/dist/src/helpers/db.d.ts +14 -0
  162. package/dist/src/helpers/db.d.ts.map +1 -1
  163. package/dist/src/helpers/dotSeedPath.d.ts +7 -0
  164. package/dist/src/helpers/dotSeedPath.d.ts.map +1 -0
  165. package/dist/src/helpers/entity/entityLiveQuery.d.ts.map +1 -1
  166. package/dist/src/helpers/environment.d.ts +5 -0
  167. package/dist/src/helpers/environment.d.ts.map +1 -1
  168. package/dist/src/helpers/getSegmentedItemProperties.d.ts.map +1 -1
  169. package/dist/src/helpers/metadataPropertyNames.d.ts +10 -0
  170. package/dist/src/helpers/metadataPropertyNames.d.ts.map +1 -1
  171. package/dist/src/helpers/reconcilePropertyDraftRows.d.ts +9 -0
  172. package/dist/src/helpers/reconcilePropertyDraftRows.d.ts.map +1 -0
  173. package/dist/src/helpers/updateSchema.d.ts.map +1 -1
  174. package/dist/src/imports/index.d.ts +1 -1
  175. package/dist/src/imports/index.d.ts.map +1 -1
  176. package/dist/src/imports/json.d.ts +18 -5
  177. package/dist/src/imports/json.d.ts.map +1 -1
  178. package/dist/src/index.d.ts +2 -2
  179. package/dist/src/index.d.ts.map +1 -1
  180. package/dist/src/node/helpers/resolveFilesDir.d.ts +8 -0
  181. package/dist/src/node/helpers/resolveFilesDir.d.ts.map +1 -0
  182. package/dist/src/node/webpack/index.d.ts +2 -0
  183. package/dist/src/node/webpack/index.d.ts.map +1 -1
  184. package/dist/src/platform/index.browser.d.ts +5 -0
  185. package/dist/src/platform/index.browser.d.ts.map +1 -1
  186. package/dist/src/platform/index.node.d.ts +1 -0
  187. package/dist/src/platform/index.node.d.ts.map +1 -1
  188. package/dist/src/stores/eas.d.ts +1 -1
  189. package/dist/src/stores/eas.d.ts.map +1 -1
  190. package/dist/src/types/import.d.ts +15 -0
  191. package/dist/src/types/import.d.ts.map +1 -1
  192. package/dist/src/types/index.d.ts +8 -4
  193. package/dist/src/types/index.d.ts.map +1 -1
  194. package/dist/{syncDbWithEas-CrAY9Rl2.js → syncDbWithEas-Y5GysSCm.js} +17 -13
  195. package/dist/syncDbWithEas-Y5GysSCm.js.map +1 -0
  196. package/dist/{tabEvents-BGBYV65P.js → tabEvents-D9x26vf2.js} +4 -4
  197. package/dist/{tabEvents-BGBYV65P.js.map → tabEvents-D9x26vf2.js.map} +1 -1
  198. package/dist/{tolerantWebAccess-DVHCEulL.js → tolerantWebAccess-BFU2t-SC.js} +8 -8
  199. package/dist/{tolerantWebAccess-DVHCEulL.js.map → tolerantWebAccess-BFU2t-SC.js.map} +1 -1
  200. package/dist/{updateSeedRevokedAt-Dy5J8CfQ.js → updateSeedRevokedAt-CCF8WWYS.js} +3 -3
  201. package/dist/{updateSeedRevokedAt-Dy5J8CfQ.js.map → updateSeedRevokedAt-CCF8WWYS.js.map} +1 -1
  202. package/package.json +31 -31
  203. package/dist/BasePathResolver-CBTXCMFL.js.map +0 -1
  204. package/dist/ClientManager-DRf4uuei.js.map +0 -1
  205. package/dist/Item-DTJPMjFk.js.map +0 -1
  206. package/dist/Schema-8DxGcORY.js.map +0 -1
  207. package/dist/configurePlatform-D4aGjKNk.js +0 -31
  208. package/dist/configurePlatform-D4aGjKNk.js.map +0 -1
  209. package/dist/errors-CIrbsN_i.js.map +0 -1
  210. package/dist/errors-CrBxGWah.js +0 -17
  211. package/dist/errors-CrBxGWah.js.map +0 -1
  212. package/dist/getPublishPayload-DTjOKd3y.js.map +0 -1
  213. package/dist/index-CMxEil8T.js.map +0 -1
  214. package/dist/index-DWK-LOUY.js.map +0 -1
  215. package/dist/index.browser-shRXMeB3.js.map +0 -1
  216. package/dist/index.node-DAKJNYp5.js.map +0 -1
  217. package/dist/publishDraftGraph-CgSLPKvQ.js.map +0 -1
  218. package/dist/src/client/nodeEndpointDefaults.d.ts +0 -8
  219. package/dist/src/client/nodeEndpointDefaults.d.ts.map +0 -1
  220. package/dist/syncDbWithEas-CrAY9Rl2.js.map +0 -1
@@ -0,0 +1,4475 @@
1
+ /**
2
+ * Subdirectory (relative to the files root, no leading slash) for an ItemStorage property's file:
3
+ * its model's `storage.path` (`localStorageDir`), else `files`.
4
+ */
5
+ declare function getItemStorageSubdir(localStorageDir: any): any;
6
+ declare const schemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
7
+ name: "schemas";
8
+ schema: undefined;
9
+ columns: {
10
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
11
+ name: "id";
12
+ tableName: "schemas";
13
+ dataType: "number";
14
+ columnType: "SQLiteInteger";
15
+ data: number;
16
+ driverParam: number;
17
+ notNull: true;
18
+ hasDefault: true;
19
+ isPrimaryKey: true;
20
+ isAutoincrement: false;
21
+ hasRuntimeDefault: false;
22
+ enumValues: undefined;
23
+ baseColumn: never;
24
+ identity: undefined;
25
+ generated: undefined;
26
+ }, {}, {}>;
27
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
28
+ name: "name";
29
+ tableName: "schemas";
30
+ dataType: "string";
31
+ columnType: "SQLiteText";
32
+ data: string;
33
+ driverParam: string;
34
+ notNull: true;
35
+ hasDefault: false;
36
+ isPrimaryKey: false;
37
+ isAutoincrement: false;
38
+ hasRuntimeDefault: false;
39
+ enumValues: [string, ...string[]];
40
+ baseColumn: never;
41
+ identity: undefined;
42
+ generated: undefined;
43
+ }, {}, {
44
+ length: number | undefined;
45
+ }>;
46
+ version: import("drizzle-orm/sqlite-core").SQLiteColumn<{
47
+ name: "version";
48
+ tableName: "schemas";
49
+ dataType: "number";
50
+ columnType: "SQLiteInteger";
51
+ data: number;
52
+ driverParam: number;
53
+ notNull: true;
54
+ hasDefault: false;
55
+ isPrimaryKey: false;
56
+ isAutoincrement: false;
57
+ hasRuntimeDefault: false;
58
+ enumValues: undefined;
59
+ baseColumn: never;
60
+ identity: undefined;
61
+ generated: undefined;
62
+ }, {}, {}>;
63
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
64
+ name: "schema_file_id";
65
+ tableName: "schemas";
66
+ dataType: "string";
67
+ columnType: "SQLiteText";
68
+ data: string;
69
+ driverParam: string;
70
+ notNull: false;
71
+ hasDefault: false;
72
+ isPrimaryKey: false;
73
+ isAutoincrement: false;
74
+ hasRuntimeDefault: false;
75
+ enumValues: [string, ...string[]];
76
+ baseColumn: never;
77
+ identity: undefined;
78
+ generated: undefined;
79
+ }, {}, {
80
+ length: number | undefined;
81
+ }>;
82
+ schemaData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
83
+ name: "schema_data";
84
+ tableName: "schemas";
85
+ dataType: "string";
86
+ columnType: "SQLiteText";
87
+ data: string;
88
+ driverParam: string;
89
+ notNull: false;
90
+ hasDefault: false;
91
+ isPrimaryKey: false;
92
+ isAutoincrement: false;
93
+ hasRuntimeDefault: false;
94
+ enumValues: [string, ...string[]];
95
+ baseColumn: never;
96
+ identity: undefined;
97
+ generated: undefined;
98
+ }, {}, {
99
+ length: number | undefined;
100
+ }>;
101
+ isDraft: import("drizzle-orm/sqlite-core").SQLiteColumn<{
102
+ name: "is_draft";
103
+ tableName: "schemas";
104
+ dataType: "boolean";
105
+ columnType: "SQLiteBoolean";
106
+ data: boolean;
107
+ driverParam: number;
108
+ notNull: false;
109
+ hasDefault: false;
110
+ isPrimaryKey: false;
111
+ isAutoincrement: false;
112
+ hasRuntimeDefault: false;
113
+ enumValues: undefined;
114
+ baseColumn: never;
115
+ identity: undefined;
116
+ generated: undefined;
117
+ }, {}, {}>;
118
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
119
+ name: "is_edited";
120
+ tableName: "schemas";
121
+ dataType: "boolean";
122
+ columnType: "SQLiteBoolean";
123
+ data: boolean;
124
+ driverParam: number;
125
+ notNull: false;
126
+ hasDefault: false;
127
+ isPrimaryKey: false;
128
+ isAutoincrement: false;
129
+ hasRuntimeDefault: false;
130
+ enumValues: undefined;
131
+ baseColumn: never;
132
+ identity: undefined;
133
+ generated: undefined;
134
+ }, {}, {}>;
135
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
136
+ name: "created_at";
137
+ tableName: "schemas";
138
+ dataType: "number";
139
+ columnType: "SQLiteInteger";
140
+ data: number;
141
+ driverParam: number;
142
+ notNull: false;
143
+ hasDefault: false;
144
+ isPrimaryKey: false;
145
+ isAutoincrement: false;
146
+ hasRuntimeDefault: false;
147
+ enumValues: undefined;
148
+ baseColumn: never;
149
+ identity: undefined;
150
+ generated: undefined;
151
+ }, {}, {}>;
152
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
153
+ name: "updated_at";
154
+ tableName: "schemas";
155
+ dataType: "number";
156
+ columnType: "SQLiteInteger";
157
+ data: number;
158
+ driverParam: number;
159
+ notNull: false;
160
+ hasDefault: false;
161
+ isPrimaryKey: false;
162
+ isAutoincrement: false;
163
+ hasRuntimeDefault: false;
164
+ enumValues: undefined;
165
+ baseColumn: never;
166
+ identity: undefined;
167
+ generated: undefined;
168
+ }, {}, {}>;
169
+ };
170
+ dialect: "sqlite";
171
+ }>;
172
+ declare class BaseDb {
173
+ static configure(impl: any): void;
174
+ static requireImpl(): any;
175
+ static getAppDb(): any;
176
+ static prepareDb(filesDir: any, config: any): any;
177
+ static isAppDbReady(): any;
178
+ static connectToDb(pathToDir: any): any;
179
+ static migrate(pathToDbDir: any, dbName: any, dbId: any): Promise<any>;
180
+ /**
181
+ * Execute a reactive query that emits new results whenever the underlying data changes.
182
+ *
183
+ * Supports two usage patterns:
184
+ * 1. SQL tag function (browser only): liveQuery((sql) => sql`SELECT * FROM models`)
185
+ * 2. Drizzle query builder: liveQuery(db.select().from(models))
186
+ *
187
+ * On Node only the query builder works (a tag function throws), and it is re-run every second;
188
+ * the observable emits when the result changes.
189
+ */
190
+ static liveQuery(query: any): any;
191
+ }
192
+ declare namespace BaseDb {
193
+ let _impl: any;
194
+ }
195
+ declare const seeds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
196
+ name: "seeds";
197
+ schema: undefined;
198
+ columns: {
199
+ localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
200
+ name: "local_id";
201
+ tableName: "seeds";
202
+ dataType: "string";
203
+ columnType: "SQLiteText";
204
+ data: string;
205
+ driverParam: string;
206
+ notNull: false;
207
+ hasDefault: false;
208
+ isPrimaryKey: false;
209
+ isAutoincrement: false;
210
+ hasRuntimeDefault: false;
211
+ enumValues: [string, ...string[]];
212
+ baseColumn: never;
213
+ identity: undefined;
214
+ generated: undefined;
215
+ }, {}, {
216
+ length: number | undefined;
217
+ }>;
218
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
219
+ name: "uid";
220
+ tableName: "seeds";
221
+ dataType: "string";
222
+ columnType: "SQLiteText";
223
+ data: string;
224
+ driverParam: string;
225
+ notNull: false;
226
+ hasDefault: false;
227
+ isPrimaryKey: false;
228
+ isAutoincrement: false;
229
+ hasRuntimeDefault: false;
230
+ enumValues: [string, ...string[]];
231
+ baseColumn: never;
232
+ identity: undefined;
233
+ generated: undefined;
234
+ }, {}, {
235
+ length: number | undefined;
236
+ }>;
237
+ schemaUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
238
+ name: "schema_uid";
239
+ tableName: "seeds";
240
+ dataType: "string";
241
+ columnType: "SQLiteText";
242
+ data: string;
243
+ driverParam: string;
244
+ notNull: false;
245
+ hasDefault: false;
246
+ isPrimaryKey: false;
247
+ isAutoincrement: false;
248
+ hasRuntimeDefault: false;
249
+ enumValues: [string, ...string[]];
250
+ baseColumn: never;
251
+ identity: undefined;
252
+ generated: undefined;
253
+ }, {}, {
254
+ length: number | undefined;
255
+ }>;
256
+ type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
257
+ name: "type";
258
+ tableName: "seeds";
259
+ dataType: "string";
260
+ columnType: "SQLiteText";
261
+ data: string;
262
+ driverParam: string;
263
+ notNull: false;
264
+ hasDefault: false;
265
+ isPrimaryKey: false;
266
+ isAutoincrement: false;
267
+ hasRuntimeDefault: false;
268
+ enumValues: [string, ...string[]];
269
+ baseColumn: never;
270
+ identity: undefined;
271
+ generated: undefined;
272
+ }, {}, {
273
+ length: number | undefined;
274
+ }>;
275
+ modelFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
276
+ name: "model_file_id";
277
+ tableName: "seeds";
278
+ dataType: "string";
279
+ columnType: "SQLiteText";
280
+ data: string;
281
+ driverParam: string;
282
+ notNull: false;
283
+ hasDefault: false;
284
+ isPrimaryKey: false;
285
+ isAutoincrement: false;
286
+ hasRuntimeDefault: false;
287
+ enumValues: [string, ...string[]];
288
+ baseColumn: never;
289
+ identity: undefined;
290
+ generated: undefined;
291
+ }, {}, {
292
+ length: number | undefined;
293
+ }>;
294
+ publisher: import("drizzle-orm/sqlite-core").SQLiteColumn<{
295
+ name: "publisher";
296
+ tableName: "seeds";
297
+ dataType: "string";
298
+ columnType: "SQLiteText";
299
+ data: string;
300
+ driverParam: string;
301
+ notNull: false;
302
+ hasDefault: false;
303
+ isPrimaryKey: false;
304
+ isAutoincrement: false;
305
+ hasRuntimeDefault: false;
306
+ enumValues: [string, ...string[]];
307
+ baseColumn: never;
308
+ identity: undefined;
309
+ generated: undefined;
310
+ }, {}, {
311
+ length: number | undefined;
312
+ }>;
313
+ attestationRaw: import("drizzle-orm/sqlite-core").SQLiteColumn<{
314
+ name: "attestation_raw";
315
+ tableName: "seeds";
316
+ dataType: "string";
317
+ columnType: "SQLiteText";
318
+ data: string;
319
+ driverParam: string;
320
+ notNull: false;
321
+ hasDefault: false;
322
+ isPrimaryKey: false;
323
+ isAutoincrement: false;
324
+ hasRuntimeDefault: false;
325
+ enumValues: [string, ...string[]];
326
+ baseColumn: never;
327
+ identity: undefined;
328
+ generated: undefined;
329
+ }, {}, {
330
+ length: number | undefined;
331
+ }>;
332
+ attestationCreatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
333
+ name: "attestation_created_at";
334
+ tableName: "seeds";
335
+ dataType: "number";
336
+ columnType: "SQLiteInteger";
337
+ data: number;
338
+ driverParam: number;
339
+ notNull: false;
340
+ hasDefault: false;
341
+ isPrimaryKey: false;
342
+ isAutoincrement: false;
343
+ hasRuntimeDefault: false;
344
+ enumValues: undefined;
345
+ baseColumn: never;
346
+ identity: undefined;
347
+ generated: undefined;
348
+ }, {}, {}>;
349
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
350
+ name: "created_at";
351
+ tableName: "seeds";
352
+ dataType: "number";
353
+ columnType: "SQLiteInteger";
354
+ data: number;
355
+ driverParam: number;
356
+ notNull: false;
357
+ hasDefault: false;
358
+ isPrimaryKey: false;
359
+ isAutoincrement: false;
360
+ hasRuntimeDefault: false;
361
+ enumValues: undefined;
362
+ baseColumn: never;
363
+ identity: undefined;
364
+ generated: undefined;
365
+ }, {}, {}>;
366
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
367
+ name: "updated_at";
368
+ tableName: "seeds";
369
+ dataType: "number";
370
+ columnType: "SQLiteInteger";
371
+ data: number;
372
+ driverParam: number;
373
+ notNull: false;
374
+ hasDefault: false;
375
+ isPrimaryKey: false;
376
+ isAutoincrement: false;
377
+ hasRuntimeDefault: false;
378
+ enumValues: undefined;
379
+ baseColumn: never;
380
+ identity: undefined;
381
+ generated: undefined;
382
+ }, {}, {}>;
383
+ _markedForDeletion: import("drizzle-orm/sqlite-core").SQLiteColumn<{
384
+ name: "_marked_for_deletion";
385
+ tableName: "seeds";
386
+ dataType: "number";
387
+ columnType: "SQLiteInteger";
388
+ data: number;
389
+ driverParam: number;
390
+ notNull: false;
391
+ hasDefault: false;
392
+ isPrimaryKey: false;
393
+ isAutoincrement: false;
394
+ hasRuntimeDefault: false;
395
+ enumValues: undefined;
396
+ baseColumn: never;
397
+ identity: undefined;
398
+ generated: undefined;
399
+ }, {}, {}>;
400
+ revokedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
401
+ name: "revoked_at";
402
+ tableName: "seeds";
403
+ dataType: "number";
404
+ columnType: "SQLiteInteger";
405
+ data: number;
406
+ driverParam: number;
407
+ notNull: false;
408
+ hasDefault: false;
409
+ isPrimaryKey: false;
410
+ isAutoincrement: false;
411
+ hasRuntimeDefault: false;
412
+ enumValues: undefined;
413
+ baseColumn: never;
414
+ identity: undefined;
415
+ generated: undefined;
416
+ }, {}, {}>;
417
+ };
418
+ dialect: "sqlite";
419
+ }>;
420
+ /** Default maximum length for Text properties when not explicitly set. Html holds arbitrary-length content and does not use this limit. */
421
+ declare const DEFAULT_TEXT_MAX_LENGTH: 255;
422
+ declare const uploadProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
423
+ name: "upload_processes";
424
+ schema: undefined;
425
+ columns: {
426
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
427
+ name: "id";
428
+ tableName: "upload_processes";
429
+ dataType: "number";
430
+ columnType: "SQLiteInteger";
431
+ data: number;
432
+ driverParam: number;
433
+ notNull: true;
434
+ hasDefault: true;
435
+ isPrimaryKey: true;
436
+ isAutoincrement: false;
437
+ hasRuntimeDefault: false;
438
+ enumValues: undefined;
439
+ baseColumn: never;
440
+ identity: undefined;
441
+ generated: undefined;
442
+ }, {}, {}>;
443
+ reimbursementConfirmed: import("drizzle-orm/sqlite-core").SQLiteColumn<{
444
+ name: "reimbursement_confirmed";
445
+ tableName: "upload_processes";
446
+ dataType: "number";
447
+ columnType: "SQLiteInteger";
448
+ data: number;
449
+ driverParam: number;
450
+ notNull: true;
451
+ hasDefault: false;
452
+ isPrimaryKey: false;
453
+ isAutoincrement: false;
454
+ hasRuntimeDefault: false;
455
+ enumValues: undefined;
456
+ baseColumn: never;
457
+ identity: undefined;
458
+ generated: undefined;
459
+ }, {}, {}>;
460
+ reimbursementTransactionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
461
+ name: "reimbursement_transaction_id";
462
+ tableName: "upload_processes";
463
+ dataType: "string";
464
+ columnType: "SQLiteText";
465
+ data: string;
466
+ driverParam: string;
467
+ notNull: false;
468
+ hasDefault: false;
469
+ isPrimaryKey: false;
470
+ isAutoincrement: false;
471
+ hasRuntimeDefault: false;
472
+ enumValues: [string, ...string[]];
473
+ baseColumn: never;
474
+ identity: undefined;
475
+ generated: undefined;
476
+ }, {}, {
477
+ length: number | undefined;
478
+ }>;
479
+ transactionKeys: import("drizzle-orm/sqlite-core").SQLiteColumn<{
480
+ name: "transaction_keys";
481
+ tableName: "upload_processes";
482
+ dataType: "string";
483
+ columnType: "SQLiteText";
484
+ data: string;
485
+ driverParam: string;
486
+ notNull: false;
487
+ hasDefault: false;
488
+ isPrimaryKey: false;
489
+ isAutoincrement: false;
490
+ hasRuntimeDefault: false;
491
+ enumValues: [string, ...string[]];
492
+ baseColumn: never;
493
+ identity: undefined;
494
+ generated: undefined;
495
+ }, {}, {
496
+ length: number | undefined;
497
+ }>;
498
+ persistedSnapshot: import("drizzle-orm/sqlite-core").SQLiteColumn<{
499
+ name: "persisted_snapshot";
500
+ tableName: "upload_processes";
501
+ dataType: "string";
502
+ columnType: "SQLiteText";
503
+ data: string;
504
+ driverParam: string;
505
+ notNull: true;
506
+ hasDefault: false;
507
+ isPrimaryKey: false;
508
+ isAutoincrement: false;
509
+ hasRuntimeDefault: false;
510
+ enumValues: [string, ...string[]];
511
+ baseColumn: never;
512
+ identity: undefined;
513
+ generated: undefined;
514
+ }, {}, {
515
+ length: number | undefined;
516
+ }>;
517
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
518
+ name: "created_at";
519
+ tableName: "upload_processes";
520
+ dataType: "number";
521
+ columnType: "SQLiteInteger";
522
+ data: number;
523
+ driverParam: number;
524
+ notNull: false;
525
+ hasDefault: false;
526
+ isPrimaryKey: false;
527
+ isAutoincrement: false;
528
+ hasRuntimeDefault: false;
529
+ enumValues: undefined;
530
+ baseColumn: never;
531
+ identity: undefined;
532
+ generated: undefined;
533
+ }, {}, {}>;
534
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
535
+ name: "updated_at";
536
+ tableName: "upload_processes";
537
+ dataType: "number";
538
+ columnType: "SQLiteInteger";
539
+ data: number;
540
+ driverParam: number;
541
+ notNull: false;
542
+ hasDefault: false;
543
+ isPrimaryKey: false;
544
+ isAutoincrement: false;
545
+ hasRuntimeDefault: false;
546
+ enumValues: undefined;
547
+ baseColumn: never;
548
+ identity: undefined;
549
+ generated: undefined;
550
+ }, {}, {}>;
551
+ };
552
+ dialect: "sqlite";
553
+ }>;
554
+ declare const versions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
555
+ name: "versions";
556
+ schema: undefined;
557
+ columns: {
558
+ localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
559
+ name: "local_id";
560
+ tableName: "versions";
561
+ dataType: "string";
562
+ columnType: "SQLiteText";
563
+ data: string;
564
+ driverParam: string;
565
+ notNull: false;
566
+ hasDefault: false;
567
+ isPrimaryKey: false;
568
+ isAutoincrement: false;
569
+ hasRuntimeDefault: false;
570
+ enumValues: [string, ...string[]];
571
+ baseColumn: never;
572
+ identity: undefined;
573
+ generated: undefined;
574
+ }, {}, {
575
+ length: number | undefined;
576
+ }>;
577
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
578
+ name: "uid";
579
+ tableName: "versions";
580
+ dataType: "string";
581
+ columnType: "SQLiteText";
582
+ data: string;
583
+ driverParam: string;
584
+ notNull: false;
585
+ hasDefault: false;
586
+ isPrimaryKey: false;
587
+ isAutoincrement: false;
588
+ hasRuntimeDefault: false;
589
+ enumValues: [string, ...string[]];
590
+ baseColumn: never;
591
+ identity: undefined;
592
+ generated: undefined;
593
+ }, {}, {
594
+ length: number | undefined;
595
+ }>;
596
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
597
+ name: "seed_local_id";
598
+ tableName: "versions";
599
+ dataType: "string";
600
+ columnType: "SQLiteText";
601
+ data: string;
602
+ driverParam: string;
603
+ notNull: false;
604
+ hasDefault: false;
605
+ isPrimaryKey: false;
606
+ isAutoincrement: false;
607
+ hasRuntimeDefault: false;
608
+ enumValues: [string, ...string[]];
609
+ baseColumn: never;
610
+ identity: undefined;
611
+ generated: undefined;
612
+ }, {}, {
613
+ length: number | undefined;
614
+ }>;
615
+ seedUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
616
+ name: "seed_uid";
617
+ tableName: "versions";
618
+ dataType: "string";
619
+ columnType: "SQLiteText";
620
+ data: string;
621
+ driverParam: string;
622
+ notNull: false;
623
+ hasDefault: false;
624
+ isPrimaryKey: false;
625
+ isAutoincrement: false;
626
+ hasRuntimeDefault: false;
627
+ enumValues: [string, ...string[]];
628
+ baseColumn: never;
629
+ identity: undefined;
630
+ generated: undefined;
631
+ }, {}, {
632
+ length: number | undefined;
633
+ }>;
634
+ seedType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
635
+ name: "seed_type";
636
+ tableName: "versions";
637
+ dataType: "string";
638
+ columnType: "SQLiteText";
639
+ data: string;
640
+ driverParam: string;
641
+ notNull: false;
642
+ hasDefault: false;
643
+ isPrimaryKey: false;
644
+ isAutoincrement: false;
645
+ hasRuntimeDefault: false;
646
+ enumValues: [string, ...string[]];
647
+ baseColumn: never;
648
+ identity: undefined;
649
+ generated: undefined;
650
+ }, {}, {
651
+ length: number | undefined;
652
+ }>;
653
+ note: import("drizzle-orm/sqlite-core").SQLiteColumn<{
654
+ name: "note";
655
+ tableName: "versions";
656
+ dataType: "string";
657
+ columnType: "SQLiteText";
658
+ data: string;
659
+ driverParam: string;
660
+ notNull: false;
661
+ hasDefault: false;
662
+ isPrimaryKey: false;
663
+ isAutoincrement: false;
664
+ hasRuntimeDefault: false;
665
+ enumValues: [string, ...string[]];
666
+ baseColumn: never;
667
+ identity: undefined;
668
+ generated: undefined;
669
+ }, {}, {
670
+ length: number | undefined;
671
+ }>;
672
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
673
+ name: "created_at";
674
+ tableName: "versions";
675
+ dataType: "number";
676
+ columnType: "SQLiteInteger";
677
+ data: number;
678
+ driverParam: number;
679
+ notNull: false;
680
+ hasDefault: false;
681
+ isPrimaryKey: false;
682
+ isAutoincrement: false;
683
+ hasRuntimeDefault: false;
684
+ enumValues: undefined;
685
+ baseColumn: never;
686
+ identity: undefined;
687
+ generated: undefined;
688
+ }, {}, {}>;
689
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
690
+ name: "updated_at";
691
+ tableName: "versions";
692
+ dataType: "number";
693
+ columnType: "SQLiteInteger";
694
+ data: number;
695
+ driverParam: number;
696
+ notNull: false;
697
+ hasDefault: false;
698
+ isPrimaryKey: false;
699
+ isAutoincrement: false;
700
+ hasRuntimeDefault: false;
701
+ enumValues: undefined;
702
+ baseColumn: never;
703
+ identity: undefined;
704
+ generated: undefined;
705
+ }, {}, {}>;
706
+ attestationCreatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
707
+ name: "attestation_created_at";
708
+ tableName: "versions";
709
+ dataType: "number";
710
+ columnType: "SQLiteInteger";
711
+ data: number;
712
+ driverParam: number;
713
+ notNull: false;
714
+ hasDefault: false;
715
+ isPrimaryKey: false;
716
+ isAutoincrement: false;
717
+ hasRuntimeDefault: false;
718
+ enumValues: undefined;
719
+ baseColumn: never;
720
+ identity: undefined;
721
+ generated: undefined;
722
+ }, {}, {}>;
723
+ attestationRaw: import("drizzle-orm/sqlite-core").SQLiteColumn<{
724
+ name: "attestation_raw";
725
+ tableName: "versions";
726
+ dataType: "string";
727
+ columnType: "SQLiteText";
728
+ data: string;
729
+ driverParam: string;
730
+ notNull: false;
731
+ hasDefault: false;
732
+ isPrimaryKey: false;
733
+ isAutoincrement: false;
734
+ hasRuntimeDefault: false;
735
+ enumValues: [string, ...string[]];
736
+ baseColumn: never;
737
+ identity: undefined;
738
+ generated: undefined;
739
+ }, {}, {
740
+ length: number | undefined;
741
+ }>;
742
+ publisher: import("drizzle-orm/sqlite-core").SQLiteColumn<{
743
+ name: "publisher";
744
+ tableName: "versions";
745
+ dataType: "string";
746
+ columnType: "SQLiteText";
747
+ data: string;
748
+ driverParam: string;
749
+ notNull: false;
750
+ hasDefault: false;
751
+ isPrimaryKey: false;
752
+ isAutoincrement: false;
753
+ hasRuntimeDefault: false;
754
+ enumValues: [string, ...string[]];
755
+ baseColumn: never;
756
+ identity: undefined;
757
+ generated: undefined;
758
+ }, {}, {
759
+ length: number | undefined;
760
+ }>;
761
+ revokedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
762
+ name: "revoked_at";
763
+ tableName: "versions";
764
+ dataType: "number";
765
+ columnType: "SQLiteInteger";
766
+ data: number;
767
+ driverParam: number;
768
+ notNull: false;
769
+ hasDefault: false;
770
+ isPrimaryKey: false;
771
+ isAutoincrement: false;
772
+ hasRuntimeDefault: false;
773
+ enumValues: undefined;
774
+ baseColumn: never;
775
+ identity: undefined;
776
+ generated: undefined;
777
+ }, {}, {}>;
778
+ };
779
+ dialect: "sqlite";
780
+ }>;
781
+ /**
782
+ * Reverse of listRelationStoragePropertyName: maps DB/EAS name `authorIdentityIds` to schema key `authors`.
783
+ */
784
+ declare function resolveStorageNameToSchemaName(propertySchemas: any, storagePropertyName: any): string | undefined;
785
+ /**
786
+ * Thrown when a model name exists in more than one schema and nothing says which one is meant.
787
+ * Model names are only unique within a schema; pass `schemaName` (or `modelFileId`) to choose.
788
+ */
789
+ declare class AmbiguousModelError extends Error {
790
+ constructor(modelName: any, schemaNames: any);
791
+ modelName: any;
792
+ schemaNames: any[];
793
+ }
794
+ declare const eventEmitter: SeedEventEmitter;
795
+ /** The levels, loaded once and reused until a schema write clears them. */
796
+ declare function nameMatchLevels(db?: any): Promise<any>;
797
+ /**
798
+ * Resolve property_id from model name/type and property name.
799
+ * Handles property name variants (e.g. htmlId -> html, avatarImageIds -> avatarImages).
800
+ * @param modelNameOrType - Model name (PascalCase) or model type (snake_case)
801
+ * @param propertyName - Property name as stored in metadata (may have Id/Ids suffix)
802
+ * @param scope - Which model is meant when several schemas define one with this name
803
+ * @returns properties.id or null if not found
804
+ */
805
+ declare function getPropertyIdForModelAndName(modelNameOrType: any, propertyName: any, scope?: {}): Promise<any>;
806
+ /**
807
+ * Work out which model (schemaFileId) an item belongs to from whatever is at hand: an explicit
808
+ * modelFileId, the seed's model_file_id, or a metadata row's property_id → properties.model_id.
809
+ */
810
+ declare function resolveItemModelFileId(hints: any, db?: any): Promise<any>;
811
+ /**
812
+ * Enum for all property data types
813
+ */
814
+ declare var ModelPropertyDataTypes: any;
815
+ /**
816
+ * Adds models and their properties to the database.
817
+ * Optionally connects models to a schema via join records.
818
+ * @param models - The model definitions to add
819
+ * @param schema - Optional schema to connect models to
820
+ * @param modelRenames - Optional map of old model names to new model names for handling renames
821
+ * @param schemaFileData - Optional object containing schemaFileId mappings from JSON file: { schemaFileId, modelFileIds: Map<modelName, id>, propertyFileIds: Map<modelName, Map<propertyName, id>> }
822
+ */
823
+ declare function addModelsToDb(models$1: any, schema: any, modelRenames: any, schemaFileData: any): Promise<void>;
824
+ declare const INIT_SCRIPT_SUCCESS_MESSAGE: "[Seed Protocol] Finished running init script";
825
+ declare namespace Property {
826
+ export function Text(storageType: any, localStorageDir: any, filenameSuffix: any): {
827
+ dataType: any;
828
+ storageType: any;
829
+ localStorageDir: any;
830
+ filenameSuffix: any;
831
+ TObject: import("@sinclair/typebox").TString;
832
+ };
833
+ export function Json(): {
834
+ dataType: any;
835
+ };
836
+ export function File(): {
837
+ dataType: any;
838
+ };
839
+ export function Number(): {
840
+ dataType: any;
841
+ };
842
+ export function List(refValueType: any, ref: any): {
843
+ dataType: any;
844
+ ref: any;
845
+ refValueType: any;
846
+ };
847
+ export function Relation(ref: any, refValueType: any, required: any): {
848
+ dataType: any;
849
+ ref: any;
850
+ refValueType: any;
851
+ required: any;
852
+ };
853
+ export function Image(): {
854
+ dataType: any;
855
+ };
856
+ export function Boolean(): {
857
+ dataType: any;
858
+ };
859
+ export function Date(): {
860
+ dataType: any;
861
+ };
862
+ export { htmlPropertyFactory as Html };
863
+ }
864
+ declare function getCorrectId(localIdOrUid: any): {
865
+ localId: undefined;
866
+ uid: undefined;
867
+ };
868
+ /**
869
+ * True when a relation ref is an attested seed uid (0x…) rather than a local id. A uid only exists once
870
+ * the seed is on EAS, so publish can attest the uid as-is when no local copy exists (e.g. a server
871
+ * publishing on someone's behalf that only holds the uids it was given). Callers must not walk into it.
872
+ */
873
+ declare function isPublishedSeedRef(value: any): boolean;
874
+ declare const SCHEMA_TS: "seed.config.ts";
875
+ /** How publish handles `data:image/*` URIs inside Html storage. Only applies when `dataType === 'Html'`. */
876
+ declare const THtmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>;
877
+ /** Relation/image refs may be string ids or `{ seedLocalId?, seedUid? }`. */
878
+ declare function normalizeRelationPropertyValue(value: any): any;
879
+ /** Resolve seed ids from a single string (context propertyValue or DB row). */
880
+ declare function resolveSeedIdsFromRefString(s: any): {
881
+ seedLocalId: undefined;
882
+ seedUid: undefined;
883
+ } | {
884
+ seedLocalId: any;
885
+ seedUid?: undefined;
886
+ } | {
887
+ seedLocalId?: undefined;
888
+ seedUid?: undefined;
889
+ };
890
+ /**
891
+ * Constructs an Arweave URL for a storage transaction ID
892
+ * @param storageTransactionId - The Arweave transaction ID
893
+ * @returns The full URL to access the transaction data on Arweave (e.g., https://arweave.net/raw/{transactionId})
894
+ * @deprecated Use BaseArweaveClient.getRawUrl() instead for better consistency and testability
895
+ */
896
+ declare function getArweaveUrlForTransaction(storageTransactionId: any): string;
897
+ declare namespace INTERNAL_STORAGE_MODEL_FILE_IDS {
898
+ let image: string;
899
+ let file: string;
900
+ let html: string;
901
+ }
902
+ /** Absolute directory for a storage seed's file (`images/`, `files/`, `html/` or `json/` under the files root). */
903
+ declare function getStorageDirForDataType(dataType: any): string;
904
+ /**
905
+ * Lowercase hex SHA-256 of `data`: the value of the {@link CONTENT_SHA256_TAG} tag.
906
+ *
907
+ * Uses @noble/hashes rather than WebCrypto so it also works outside secure contexts (WebCrypto's
908
+ * `crypto.subtle` is missing on plain-http origins); the digest is the same.
909
+ *
910
+ * In SDK 0.7.2 and earlier the L1 transaction path (`getPublishUploads`) wrote SHA3-256 under this tag name
911
+ * while the bundler path wrote SHA-256. Uploads from that path still carry SHA3-256 digests; use
912
+ * {@link contentSha256TagMatches} to check a tag value against bytes.
913
+ */
914
+ declare function getContentSha256(data: any): string;
915
+ /**
916
+ * Tags for one upload, in the order every upload uses: content hash, content type, then any
917
+ * configured extra tags (e.g. App-Name from `arweaveUploadTags`).
918
+ */
919
+ declare function buildArweaveContentTags(contentHash: any, contentType: any, extra: any): any[];
920
+ declare const TProperty: import("@sinclair/typebox").TObject<{
921
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
922
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
923
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
924
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
925
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
926
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
927
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
928
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
929
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
930
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
931
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
932
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
933
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
934
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
935
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
936
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
937
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
938
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
939
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
940
+ }>>;
941
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
942
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
943
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
944
+ }>;
945
+ /**
946
+ * Schema property name from metadata name (strip Id/Ids suffix).
947
+ */
948
+ declare function toSchemaPropertyName(propertyName: any): any;
949
+ /**
950
+ * File name a local save gives an ItemStorage property: `<seedUid or seedLocalId><extension>`
951
+ * (see saveItemStorage). Downloaded content is named after its transaction instead
952
+ * (`<txId><extension>`, see syncDbWithEas), which is what the metadata row's refResolvedValue says.
953
+ */
954
+ declare function getItemStorageLocalFileName(seedId: any, filenameSuffix: any): string;
955
+ declare function isNode(): boolean;
956
+ declare const ZERO_BYTES32: "0x0000000000000000000000000000000000000000000000000000000000000000";
957
+ /**
958
+ * Resolve a models row from a model name plus whatever scope is known, most specific first:
959
+ * modelFileId, modelId, then schemaId/schemaName + name, then the name alone. The name alone is
960
+ * only accepted when it is unambiguous; otherwise this throws AmbiguousModelError.
961
+ */
962
+ declare function resolveModelRecord(modelName: any, scope?: {}, db?: any): Promise<any>;
963
+ /** ModelScope for an Item (or ItemProperty) instance: its recorded modelFileId (context or seed row) and schemaName. */
964
+ declare function getItemModelScope(item: any): Promise<{
965
+ modelFileId: any;
966
+ schemaName: any;
967
+ }>;
968
+ /**
969
+ * UID of {@link VERSION_SCHEMA_DEF}. Schema UIDs hash the definition, resolver and revocable flag,
970
+ * so this is the same on every chain; the schema must still be registered on each one.
971
+ */
972
+ declare const VERSION_SCHEMA_UID: "0x13c0fd59d69dbce40501a41f8b37768d26dd2e2bb0cad64615334d84f7b9bdf6";
973
+ declare const INTERNAL_PROPERTY_NAMES: string[];
974
+ /** True when a File/Image/Html value is already a storage seed reference rather than raw content. */
975
+ declare function isStorageSeedRef(value: any): boolean;
976
+ declare namespace defaultAttestationData {
977
+ export { ZERO_ADDRESS as recipient };
978
+ export let revocable: boolean;
979
+ export let value: bigint;
980
+ export { ZERO_BYTES32 as refUID };
981
+ export let expirationTime: bigint;
982
+ export { ZERO_BYTES as data };
983
+ }
984
+ declare namespace INTERNAL_DATA_TYPES {
985
+ export namespace Text_1 {
986
+ let eas: string;
987
+ }
988
+ export { Text_1 as Text };
989
+ export namespace Number_1 {
990
+ let eas_1: string;
991
+ export { eas_1 as eas };
992
+ }
993
+ export { Number_1 as Number };
994
+ export namespace Image_1 {
995
+ let eas_2: string;
996
+ export { eas_2 as eas };
997
+ }
998
+ export { Image_1 as Image };
999
+ export namespace Relation_1 {
1000
+ let eas_3: string;
1001
+ export { eas_3 as eas };
1002
+ }
1003
+ export { Relation_1 as Relation };
1004
+ export namespace List_1 {
1005
+ let eas_4: string;
1006
+ export { eas_4 as eas };
1007
+ }
1008
+ export { List_1 as List };
1009
+ export namespace File_1 {
1010
+ let eas_5: string;
1011
+ export { eas_5 as eas };
1012
+ }
1013
+ export { File_1 as File };
1014
+ export namespace Json_1 {
1015
+ let eas_6: string;
1016
+ export { eas_6 as eas };
1017
+ }
1018
+ export { Json_1 as Json };
1019
+ export namespace Blob {
1020
+ let eas_7: string;
1021
+ export { eas_7 as eas };
1022
+ }
1023
+ export namespace Boolean_1 {
1024
+ let eas_8: string;
1025
+ export { eas_8 as eas };
1026
+ }
1027
+ export { Boolean_1 as Boolean };
1028
+ export namespace Date_1 {
1029
+ let eas_9: string;
1030
+ export { eas_9 as eas };
1031
+ }
1032
+ export { Date_1 as Date };
1033
+ export namespace Html {
1034
+ let eas_10: string;
1035
+ export { eas_10 as eas };
1036
+ }
1037
+ }
1038
+ /**
1039
+ * True when `tagValue` (a {@link CONTENT_SHA256_TAG} value read from Arweave) is the digest of
1040
+ * `data`. Accepts SHA-256 and, for uploads made by SDK 0.7.2 and earlier through the L1 transaction path,
1041
+ * SHA3-256.
1042
+ */
1043
+ declare function contentSha256TagMatches(data: any, tagValue: any): boolean;
1044
+ /**
1045
+ * Ensure an image original exists in OPFS (downloading from Arweave if needed)
1046
+ * and create only the requested ImageSize variant(s) for that one file.
1047
+ */
1048
+ declare function ensureImageLocal(params: any): Promise<any>;
1049
+ /**
1050
+ * Returns persisted owned or watched addresses for list filters.
1051
+ * Does not include `getAdditionalSyncAddresses` (those are extra EAS indexers).
1052
+ */
1053
+ declare function getAddressesForItemsFilter(addressFilter: any): Promise<any>;
1054
+ /**
1055
+ * Read a string field from a parsed item, trying camelCase and snake_case keys.
1056
+ */
1057
+ declare function getFeedItemStringField(item: any, key: any): string;
1058
+ /**
1059
+ * Normalizes AddressConfiguration to { owned, watched }.
1060
+ * - string[] -> { owned: addresses, watched: [] }
1061
+ * - { owned, watched? } -> { owned, watched: watched ?? [] }
1062
+ * Addresses are lowercased and deduped.
1063
+ */
1064
+ declare function normalizeAddressConfig(addresses: any): {
1065
+ owned: any[];
1066
+ watched: any[];
1067
+ };
1068
+ /**
1069
+ * Lowercase, drop empties, and dedupe (first-seen order).
1070
+ */
1071
+ declare function normalizeAddressList(addrs: any): any[];
1072
+ declare function normalizeArweaveTxIdForEnsure(raw: any): string | undefined;
1073
+ /**
1074
+ * Apply a field manifest to a plain feed item: classify media/file fields; pass through html/text.
1075
+ */
1076
+ declare function normalizeFeedItemFields(item: any, manifest: any): {};
1077
+ /**
1078
+ * Resolve a classified media reference to a display URL (https/blob/data), using local files when present.
1079
+ */
1080
+ declare function resolveMediaRef(raw: any, options: any): Promise<{
1081
+ status: string;
1082
+ href?: undefined;
1083
+ source?: undefined;
1084
+ reason?: undefined;
1085
+ classification?: undefined;
1086
+ } | {
1087
+ status: string;
1088
+ href: string | undefined;
1089
+ source: string;
1090
+ reason?: undefined;
1091
+ classification?: undefined;
1092
+ } | {
1093
+ status: string;
1094
+ reason: string;
1095
+ classification: {
1096
+ kind: string;
1097
+ href?: undefined;
1098
+ raw?: undefined;
1099
+ localId?: undefined;
1100
+ uid?: undefined;
1101
+ txId?: undefined;
1102
+ } | {
1103
+ kind: string;
1104
+ href: string;
1105
+ raw?: undefined;
1106
+ localId?: undefined;
1107
+ uid?: undefined;
1108
+ txId?: undefined;
1109
+ } | {
1110
+ kind: string;
1111
+ raw: string;
1112
+ href?: undefined;
1113
+ localId?: undefined;
1114
+ uid?: undefined;
1115
+ txId?: undefined;
1116
+ } | {
1117
+ kind: string;
1118
+ localId: any;
1119
+ href?: undefined;
1120
+ raw?: undefined;
1121
+ uid?: undefined;
1122
+ txId?: undefined;
1123
+ } | {
1124
+ kind: string;
1125
+ uid: any;
1126
+ href?: undefined;
1127
+ raw?: undefined;
1128
+ localId?: undefined;
1129
+ txId?: undefined;
1130
+ } | {
1131
+ kind: string;
1132
+ txId: any;
1133
+ href?: undefined;
1134
+ raw?: undefined;
1135
+ localId?: undefined;
1136
+ uid?: undefined;
1137
+ };
1138
+ href?: undefined;
1139
+ source?: undefined;
1140
+ }>;
1141
+ /**
1142
+ * Check if a schema is an internal SDK schema that should not be created in app files
1143
+ */
1144
+ declare function isInternalSchema(schemaName: any, schemaId: any): boolean;
1145
+ /**
1146
+ * Write model to database and create model_schemas join entry
1147
+ * @param modelFileId - The model file ID (schema_file_id)
1148
+ * @param data - Model data including modelName, schemaId, and optional properties
1149
+ */
1150
+ declare function writeModelToDb(modelFileId: any, data: any): Promise<void>;
1151
+ /**
1152
+ * Write property to database
1153
+ * @param propertyFileId - The property file ID (schema_file_id)
1154
+ * @param data - Property data including modelId, name, dataType, and other property fields
1155
+ * @param isEdited - Optional flag indicating if property has been edited locally (default: false)
1156
+ */
1157
+ declare function writePropertyToDb(propertyFileId: any, data: any, isEdited?: boolean): Promise<void>;
1158
+ /**
1159
+ * Searches the database for an existing schema by schemaFileId (preferred) or name and creates it if it doesn't exist
1160
+ * @param schema - The schema to add to the database
1161
+ * @param schemaFileId - Optional schemaFileId from JSON file for change tracking
1162
+ * @param schemaData - Optional full schema content as JSON string (SchemaFileFormat)
1163
+ * @param isDraft - Optional flag indicating if schema is in draft state (default: false)
1164
+ * @param isEdited - Optional flag indicating if schema has been edited locally (default: false)
1165
+ * @returns The schema record (either existing or newly created)
1166
+ */
1167
+ declare function addSchemaToDb(schema: any, schemaFileId: any, schemaData: any, isDraft: any, isEdited: any): Promise<any>;
1168
+ /**
1169
+ * Rename a model in the database
1170
+ * Updates the model name and all properties that reference it
1171
+ * @param oldName - The current model name
1172
+ * @param newName - The new model name
1173
+ * @param schemaNameOrId - Schema name or schema ID to scope the rename (required when multiple schemas have models with the same name)
1174
+ * @returns The updated model record
1175
+ */
1176
+ declare function renameModelInDb(oldName: any, newName: any, schemaNameOrId: any): Promise<any>;
1177
+ /**
1178
+ * The last loaded levels, for synchronous callers (Model.findByModelType). Sync and the post-init
1179
+ * model type pass load them; before that every name is at DEFAULT_NAME_MATCH_LEVEL.
1180
+ */
1181
+ declare function currentNameMatchLevels(): any;
1182
+ /**
1183
+ * Loads models from the database for a given schema by querying the model_schemas join table.
1184
+ * This ensures that models added to the database (via model_schemas) are included even if
1185
+ * they're not in the schemaData JSON.
1186
+ * @param schemaId - The ID of the schema record in the database
1187
+ * @returns A map of model names to model data (compatible with SchemaFileFormat.models)
1188
+ */
1189
+ declare function loadModelsFromDbForSchema(schemaId: any): Promise<{}>;
1190
+ /**
1191
+ * Merges the models {@link loadModelsFromDbForSchema} read from the database into a schema's
1192
+ * models. The database decides which models and properties exist and their stored fields; the
1193
+ * schema keeps what only it holds (nameMatch, description, validation, ...), found by id first so
1194
+ * a property renamed in the database keeps them. A schema property whose id a database property
1195
+ * has is dropped under its old name.
1196
+ */
1197
+ declare function mergeDbModelsIntoSchemaModels(schemaModels: any, dbModels: any): any;
1198
+ /** Called when a schema row or its models are written, so the next read reloads. */
1199
+ declare function clearNameMatchLevels(): void;
1200
+ /**
1201
+ * NODE_ENV is 'test' or IS_SEED_DEV is set. Bundlers compile `process.env.NODE_ENV` in, but
1202
+ * not IS_SEED_DEV, so that is only read where a `process` global exists: browsers have none.
1203
+ */
1204
+ declare function isTestOrSeedDev(): boolean;
1205
+ declare function downloadAllFilesRequestHandler({ endpoints, eventId, }: {
1206
+ endpoints: any;
1207
+ eventId: any;
1208
+ }): Promise<void>;
1209
+ declare function downloadAllFilesBinaryRequestHandler(addressesHintOrPayload: any): Promise<void>;
1210
+ /** Warns about {@link invalidNameMatchValues}. */
1211
+ declare function warnOnInvalidNameMatch(file: any): any[];
1212
+ declare const INTERNAL_SCHEMA_IDS: string[];
1213
+ /**
1214
+ * Insert the `model_schemas` row linking a model to a schema, unless it already exists.
1215
+ *
1216
+ * `model_schemas` has no unique constraint, and several writers link the same model during one
1217
+ * import (importJsonSchema's addModelsToDb and the write service's writeModelToDb). Each used to
1218
+ * check-then-insert on its own, so concurrent writers inserted the link twice. The check and insert
1219
+ * run serialized per (model, schema) here.
1220
+ *
1221
+ * @returns true when this call inserted the link
1222
+ */
1223
+ declare function linkModelToSchema(db: any, modelId: any, schemaId: any): any;
1224
+ declare function getWatchedAddressesFromDb(): Promise<any>;
1225
+ declare function getOwnedAddressesFromDb(): Promise<any>;
1226
+ declare const CLIENT_NOT_INITIALIZED: "ClientManager is not initialized. Please call init() first.";
1227
+ /**
1228
+ * Storage/EAS name for a List-of-relation property (`authorIdentityIds`), given either its
1229
+ * schema key (`authors`) or its storage name. A name already in storage form is returned as-is,
1230
+ * so this is safe on ItemProperties built before their schema was known.
1231
+ * Returns undefined when propDef is not a List of Relation.
1232
+ */
1233
+ declare function listRelationEasPropertyName(propertyName: any, propDef: any): any;
1234
+ /**
1235
+ * The EAS property name publish writes for an item property (ADR 0008 §3), already in EAS form:
1236
+ *
1237
+ * - List of relations: its `<name><Model>Ids` storage name (`author_identity_ids`).
1238
+ * - Single Relation, Image, File or Html: its schema key (`author`), never the local `<name>Id`
1239
+ * storage name. The key is `propertyDef.name` when known, else `propertyName` without its `Id`.
1240
+ * - Anything else: the property name.
1241
+ */
1242
+ declare function easPropertyNameForPublish(propertyName: any, propertyDef: any): string;
1243
+ declare function isBrowser(): boolean;
1244
+ /** Fired after `syncDbWithEas` persists EAS seeds/versions/metadata to SQLite (see `Item.rehydrateCachedItemsFromDbAfterEasSync`). */
1245
+ declare const EAS_SEED_DATA_SYNCED_TO_DB_EVENT: "easSeedDataSyncedToDb";
1246
+ /**
1247
+ * Lowercase a publisher stamp. Empty / null → undefined (omit on write).
1248
+ */
1249
+ declare function normalizePublisher(publisher: any): any;
1250
+ /**
1251
+ * Returns owned + watched addresses. Use for EAS sync and file download.
1252
+ */
1253
+ declare function getAllAddressesFromDb(): Promise<any[]>;
1254
+ /** Reads the levels from the schema files stored with each model's schema row (schemas.schema_data). */
1255
+ declare function loadNameMatchLevels(db?: any): Promise<{
1256
+ model: (modelName: any) => any;
1257
+ property: (modelName: any, propertyName: any, modelFileId: any) => any;
1258
+ }>;
1259
+ declare function scheduleBulkFilesDownloadFromEasSync(addressesHint: any): void;
1260
+ /**
1261
+ * A 10-character local id. Never starts with "0x" (about 1 in 3,844 random ids would), so code that
1262
+ * tells local ids from EAS uids by that prefix can't mistake one for the other.
1263
+ */
1264
+ declare function generateId(): string;
1265
+ /**
1266
+ * Lowercase + trim an address for persist and compare.
1267
+ * Does not checksum or validate — test and placeholder addresses must keep working.
1268
+ */
1269
+ declare function normalizeHexAddress(addr: any): any;
1270
+ /**
1271
+ * Canonical metadata property name for WRITES.
1272
+ * Use when creating/updating metadata.
1273
+ */
1274
+ declare function toMetadataPropertyName(propertyName: any, dataType: any, refValueType: any): any;
1275
+ /**
1276
+ * A model's ItemStorage properties as stored in `properties` (storage_type 'ItemStorage'), with
1277
+ * their storage path and extension. Reads the table, not ModelProperty instances, so it doesn't
1278
+ * depend on whether (or from where) the model's property instances have loaded.
1279
+ */
1280
+ declare function getItemStoragePropertiesForModel(modelNameOrType: any, scope?: {}): Promise<any>;
1281
+ declare const SEED_CONFIG_FILE: "seed.config.ts";
1282
+ declare const SEED_CONFIG_FALLBACKS: string[];
1283
+ /**
1284
+ * Get model database ID from modelFileId
1285
+ * @param modelFileId - The model file ID (schema_file_id)
1286
+ * @returns Model database ID
1287
+ * @throws Error if model not found
1288
+ */
1289
+ declare function getModelIdByFileId(modelFileId: any): Promise<any>;
1290
+ /**
1291
+ * Get model database ID from model name or modelFileId
1292
+ * @param modelNameOrFileId - Model name (string) or modelFileId (string)
1293
+ * @param schemaNameOrId - Optional schema name or ID to narrow search
1294
+ * @returns Model database ID
1295
+ * @throws Error if model not found
1296
+ */
1297
+ declare function getModelId(modelNameOrFileId: any, schemaNameOrId: any): Promise<any>;
1298
+ declare function setCachedPropertyRefresher(fn: any): void;
1299
+ /**
1300
+ * Tag every Seed upload carries with the hex digest of its data. Producers: the SDK's
1301
+ * `getPublishUploadData` / `getPublishUploads` (and through them both the L1 transaction path and
1302
+ * the bundler / DataItem path in `@seedprotocol/publish`). Consumer: the files download
1303
+ * (`events/files/download.ts` and the download worker), which verifies downloaded bytes against it
1304
+ * and copies a verified value into `metadata.content_hash`.
1305
+ */
1306
+ declare const CONTENT_SHA256_TAG: "Content-SHA-256";
1307
+ declare const CONTENT_TYPE_TAG: "Content-Type";
1308
+ declare var ImageSize: any;
1309
+ declare const SEED_PROTOCOL_SCHEMA_NAME: "Seed Protocol";
1310
+ declare var SeedModels: any;
1311
+ /** Schema definition of the Version attestation (zero resolver, revocable). */
1312
+ declare const VERSION_SCHEMA_DEF: "bytes32 version";
1313
+ /** @deprecated The UID is chain-independent. Use {@link VERSION_SCHEMA_UID}. */
1314
+ declare const VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA: "0x13c0fd59d69dbce40501a41f8b37768d26dd2e2bb0cad64615334d84f7b9bdf6";
1315
+ /**
1316
+ * Pure, sync classification of a media-related string from feeds or XML.
1317
+ */
1318
+ declare function classifyMediaRef(raw: any, options: any): {
1319
+ kind: string;
1320
+ href?: undefined;
1321
+ raw?: undefined;
1322
+ localId?: undefined;
1323
+ uid?: undefined;
1324
+ txId?: undefined;
1325
+ } | {
1326
+ kind: string;
1327
+ href: string;
1328
+ raw?: undefined;
1329
+ localId?: undefined;
1330
+ uid?: undefined;
1331
+ txId?: undefined;
1332
+ } | {
1333
+ kind: string;
1334
+ raw: string;
1335
+ href?: undefined;
1336
+ localId?: undefined;
1337
+ uid?: undefined;
1338
+ txId?: undefined;
1339
+ } | {
1340
+ kind: string;
1341
+ localId: any;
1342
+ href?: undefined;
1343
+ raw?: undefined;
1344
+ uid?: undefined;
1345
+ txId?: undefined;
1346
+ } | {
1347
+ kind: string;
1348
+ uid: any;
1349
+ href?: undefined;
1350
+ raw?: undefined;
1351
+ localId?: undefined;
1352
+ txId?: undefined;
1353
+ } | {
1354
+ kind: string;
1355
+ txId: any;
1356
+ href?: undefined;
1357
+ raw?: undefined;
1358
+ localId?: undefined;
1359
+ uid?: undefined;
1360
+ };
1361
+ declare function closestImageSize(width: any): any;
1362
+ declare const TPropertyConstructor: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
1363
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1364
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1365
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1366
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
1367
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1368
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
1369
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1370
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1371
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1372
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
1373
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
1374
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1375
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1376
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1377
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1378
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
1379
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
1380
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
1381
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1382
+ }>>;
1383
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1384
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
1385
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
1386
+ }>>;
1387
+ /**
1388
+ * The EAS schema definition publish attests a property under (`string title`, `bytes32 author`),
1389
+ * or undefined when its data type has no EAS type. Look schemas up by this, not by name: a name
1390
+ * can have schemas of several types (Optimism Sepolia has `bytes32 storage_transaction_id` beside
1391
+ * `string storage_transaction_id`).
1392
+ */
1393
+ declare function easSchemaDefinitionForProperty(propertyName: any, propertyDef: any): string | undefined;
1394
+ declare function getStorageTransactionIdForSeedUid(seedUid: any): Promise<any>;
1395
+ declare function convertTxIdToImage(txId: any): Promise<string | undefined>;
1396
+ /**
1397
+ * For READS: property names to include in OR query (both variants).
1398
+ * When dataType is undefined, includes all variants for safety (backwards compat with getPropertyData).
1399
+ */
1400
+ declare function getMetadataPropertyNamesForQuery(propertyName: any, dataType: any, refValueType: any): any[];
1401
+ declare function downloadTransactionIdWithDedupe(transactionId: any): Promise<any>;
1402
+ /**
1403
+ * Resolve the best metadata record when multiple variants exist (base + Id).
1404
+ * For Image/File/Html: prefer the record with refResolvedValue (Id variant has filename).
1405
+ */
1406
+ declare function resolveMetadataRecord(records: any, preferredPropertyName: any, dataType: any, refValueType: any): any;
1407
+ /**
1408
+ * Resolve property_id (integer properties.id) from a property's schemaFileId (the string `id` in
1409
+ * schema files and propertyRecordSchema). Scoped to the model since schemaFileIds are per schema file.
1410
+ * @returns properties.id or null if not found
1411
+ */
1412
+ declare function getPropertyIdForSchemaFileId(modelNameOrType: any, schemaFileId: any, scope?: {}): Promise<any>;
1413
+ declare function getDataTypeFromString(data: any): "imageBase64" | "base64" | "url" | null;
1414
+ declare function getMimeType(base64: any): any;
1415
+ /**
1416
+ * For a schema property key like `authors` (List of Relation to Identity), returns the
1417
+ * internal storage/EAS name: `authorIdentityIds` (singular + ref + Ids).
1418
+ */
1419
+ declare function listRelationStoragePropertyName(propertySchemas: any, schemaPropertyKey: any): any;
1420
+ /** Full property names ending in `Id` that must not be stripped to a “base” name for `allProperties` keys. */
1421
+ declare const PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP: Set<string>;
1422
+ /**
1423
+ * Alternate property name for instance lookup (base <-> Id variant).
1424
+ */
1425
+ declare function getAlternatePropertyNameForInstanceLookup(propertyName: any): any;
1426
+ declare var BaseDb$1: Readonly<{
1427
+ __proto__: null;
1428
+ BaseDb: typeof BaseDb;
1429
+ }>;
1430
+ declare var ModelSchema: Readonly<{
1431
+ __proto__: null;
1432
+ models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1433
+ name: "models";
1434
+ schema: undefined;
1435
+ columns: {
1436
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1437
+ name: "id";
1438
+ tableName: "models";
1439
+ dataType: "number";
1440
+ columnType: "SQLiteInteger";
1441
+ data: number;
1442
+ driverParam: number;
1443
+ notNull: true;
1444
+ hasDefault: true;
1445
+ isPrimaryKey: true;
1446
+ isAutoincrement: false;
1447
+ hasRuntimeDefault: false;
1448
+ enumValues: undefined;
1449
+ baseColumn: never;
1450
+ identity: undefined;
1451
+ generated: undefined;
1452
+ }, {}, {}>;
1453
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1454
+ name: "name";
1455
+ tableName: "models";
1456
+ dataType: "string";
1457
+ columnType: "SQLiteText";
1458
+ data: string;
1459
+ driverParam: string;
1460
+ notNull: true;
1461
+ hasDefault: false;
1462
+ isPrimaryKey: false;
1463
+ isAutoincrement: false;
1464
+ hasRuntimeDefault: false;
1465
+ enumValues: [string, ...string[]];
1466
+ baseColumn: never;
1467
+ identity: undefined;
1468
+ generated: undefined;
1469
+ }, {}, {
1470
+ length: number | undefined;
1471
+ }>;
1472
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1473
+ name: "schema_file_id";
1474
+ tableName: "models";
1475
+ dataType: "string";
1476
+ columnType: "SQLiteText";
1477
+ data: string;
1478
+ driverParam: string;
1479
+ notNull: false;
1480
+ hasDefault: false;
1481
+ isPrimaryKey: false;
1482
+ isAutoincrement: false;
1483
+ hasRuntimeDefault: false;
1484
+ enumValues: [string, ...string[]];
1485
+ baseColumn: never;
1486
+ identity: undefined;
1487
+ generated: undefined;
1488
+ }, {}, {
1489
+ length: number | undefined;
1490
+ }>;
1491
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1492
+ name: "is_edited";
1493
+ tableName: "models";
1494
+ dataType: "boolean";
1495
+ columnType: "SQLiteBoolean";
1496
+ data: boolean;
1497
+ driverParam: number;
1498
+ notNull: false;
1499
+ hasDefault: false;
1500
+ isPrimaryKey: false;
1501
+ isAutoincrement: false;
1502
+ hasRuntimeDefault: false;
1503
+ enumValues: undefined;
1504
+ baseColumn: never;
1505
+ identity: undefined;
1506
+ generated: undefined;
1507
+ }, {}, {}>;
1508
+ };
1509
+ dialect: "sqlite";
1510
+ }>;
1511
+ modelsRelations: import("drizzle-orm").Relations<"models", {
1512
+ properties: import("drizzle-orm").Many<"properties">;
1513
+ }>;
1514
+ properties: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1515
+ name: "properties";
1516
+ schema: undefined;
1517
+ columns: {
1518
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1519
+ name: "id";
1520
+ tableName: "properties";
1521
+ dataType: "number";
1522
+ columnType: "SQLiteInteger";
1523
+ data: number;
1524
+ driverParam: number;
1525
+ notNull: true;
1526
+ hasDefault: true;
1527
+ isPrimaryKey: true;
1528
+ isAutoincrement: false;
1529
+ hasRuntimeDefault: false;
1530
+ enumValues: undefined;
1531
+ baseColumn: never;
1532
+ identity: undefined;
1533
+ generated: undefined;
1534
+ }, {}, {}>;
1535
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1536
+ name: "name";
1537
+ tableName: "properties";
1538
+ dataType: "string";
1539
+ columnType: "SQLiteText";
1540
+ data: string;
1541
+ driverParam: string;
1542
+ notNull: true;
1543
+ hasDefault: false;
1544
+ isPrimaryKey: false;
1545
+ isAutoincrement: false;
1546
+ hasRuntimeDefault: false;
1547
+ enumValues: [string, ...string[]];
1548
+ baseColumn: never;
1549
+ identity: undefined;
1550
+ generated: undefined;
1551
+ }, {}, {
1552
+ length: number | undefined;
1553
+ }>;
1554
+ dataType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1555
+ name: "data_type";
1556
+ tableName: "properties";
1557
+ dataType: "string";
1558
+ columnType: "SQLiteText";
1559
+ data: string;
1560
+ driverParam: string;
1561
+ notNull: true;
1562
+ hasDefault: false;
1563
+ isPrimaryKey: false;
1564
+ isAutoincrement: false;
1565
+ hasRuntimeDefault: false;
1566
+ enumValues: [string, ...string[]];
1567
+ baseColumn: never;
1568
+ identity: undefined;
1569
+ generated: undefined;
1570
+ }, {}, {
1571
+ length: number | undefined;
1572
+ }>;
1573
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1574
+ name: "model_id";
1575
+ tableName: "properties";
1576
+ dataType: "number";
1577
+ columnType: "SQLiteInteger";
1578
+ data: number;
1579
+ driverParam: number;
1580
+ notNull: true;
1581
+ hasDefault: false;
1582
+ isPrimaryKey: false;
1583
+ isAutoincrement: false;
1584
+ hasRuntimeDefault: false;
1585
+ enumValues: undefined;
1586
+ baseColumn: never;
1587
+ identity: undefined;
1588
+ generated: undefined;
1589
+ }, {}, {}>;
1590
+ refModelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1591
+ name: "ref_model_id";
1592
+ tableName: "properties";
1593
+ dataType: "number";
1594
+ columnType: "SQLiteInteger";
1595
+ data: number;
1596
+ driverParam: number;
1597
+ notNull: false;
1598
+ hasDefault: false;
1599
+ isPrimaryKey: false;
1600
+ isAutoincrement: false;
1601
+ hasRuntimeDefault: false;
1602
+ enumValues: undefined;
1603
+ baseColumn: never;
1604
+ identity: undefined;
1605
+ generated: undefined;
1606
+ }, {}, {}>;
1607
+ refValueType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1608
+ name: "ref_value_type";
1609
+ tableName: "properties";
1610
+ dataType: "string";
1611
+ columnType: "SQLiteText";
1612
+ data: string;
1613
+ driverParam: string;
1614
+ notNull: false;
1615
+ hasDefault: false;
1616
+ isPrimaryKey: false;
1617
+ isAutoincrement: false;
1618
+ hasRuntimeDefault: false;
1619
+ enumValues: [string, ...string[]];
1620
+ baseColumn: never;
1621
+ identity: undefined;
1622
+ generated: undefined;
1623
+ }, {}, {
1624
+ length: number | undefined;
1625
+ }>;
1626
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1627
+ name: "schema_file_id";
1628
+ tableName: "properties";
1629
+ dataType: "string";
1630
+ columnType: "SQLiteText";
1631
+ data: string;
1632
+ driverParam: string;
1633
+ notNull: false;
1634
+ hasDefault: false;
1635
+ isPrimaryKey: false;
1636
+ isAutoincrement: false;
1637
+ hasRuntimeDefault: false;
1638
+ enumValues: [string, ...string[]];
1639
+ baseColumn: never;
1640
+ identity: undefined;
1641
+ generated: undefined;
1642
+ }, {}, {
1643
+ length: number | undefined;
1644
+ }>;
1645
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1646
+ name: "is_edited";
1647
+ tableName: "properties";
1648
+ dataType: "boolean";
1649
+ columnType: "SQLiteBoolean";
1650
+ data: boolean;
1651
+ driverParam: number;
1652
+ notNull: false;
1653
+ hasDefault: false;
1654
+ isPrimaryKey: false;
1655
+ isAutoincrement: false;
1656
+ hasRuntimeDefault: false;
1657
+ enumValues: undefined;
1658
+ baseColumn: never;
1659
+ identity: undefined;
1660
+ generated: undefined;
1661
+ }, {}, {}>;
1662
+ required: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1663
+ name: "required";
1664
+ tableName: "properties";
1665
+ dataType: "boolean";
1666
+ columnType: "SQLiteBoolean";
1667
+ data: boolean;
1668
+ driverParam: number;
1669
+ notNull: false;
1670
+ hasDefault: false;
1671
+ isPrimaryKey: false;
1672
+ isAutoincrement: false;
1673
+ hasRuntimeDefault: false;
1674
+ enumValues: undefined;
1675
+ baseColumn: never;
1676
+ identity: undefined;
1677
+ generated: undefined;
1678
+ }, {}, {}>;
1679
+ storageType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1680
+ name: "storage_type";
1681
+ tableName: "properties";
1682
+ dataType: "string";
1683
+ columnType: "SQLiteText";
1684
+ data: string;
1685
+ driverParam: string;
1686
+ notNull: false;
1687
+ hasDefault: false;
1688
+ isPrimaryKey: false;
1689
+ isAutoincrement: false;
1690
+ hasRuntimeDefault: false;
1691
+ enumValues: [string, ...string[]];
1692
+ baseColumn: never;
1693
+ identity: undefined;
1694
+ generated: undefined;
1695
+ }, {}, {
1696
+ length: number | undefined;
1697
+ }>;
1698
+ localStorageDir: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1699
+ name: "local_storage_dir";
1700
+ tableName: "properties";
1701
+ dataType: "string";
1702
+ columnType: "SQLiteText";
1703
+ data: string;
1704
+ driverParam: string;
1705
+ notNull: false;
1706
+ hasDefault: false;
1707
+ isPrimaryKey: false;
1708
+ isAutoincrement: false;
1709
+ hasRuntimeDefault: false;
1710
+ enumValues: [string, ...string[]];
1711
+ baseColumn: never;
1712
+ identity: undefined;
1713
+ generated: undefined;
1714
+ }, {}, {
1715
+ length: number | undefined;
1716
+ }>;
1717
+ filenameSuffix: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1718
+ name: "filename_suffix";
1719
+ tableName: "properties";
1720
+ dataType: "string";
1721
+ columnType: "SQLiteText";
1722
+ data: string;
1723
+ driverParam: string;
1724
+ notNull: false;
1725
+ hasDefault: false;
1726
+ isPrimaryKey: false;
1727
+ isAutoincrement: false;
1728
+ hasRuntimeDefault: false;
1729
+ enumValues: [string, ...string[]];
1730
+ baseColumn: never;
1731
+ identity: undefined;
1732
+ generated: undefined;
1733
+ }, {}, {
1734
+ length: number | undefined;
1735
+ }>;
1736
+ };
1737
+ dialect: "sqlite";
1738
+ }>;
1739
+ propertiesRelations: import("drizzle-orm").Relations<"properties", {
1740
+ model: import("drizzle-orm").One<"models", false>;
1741
+ refModel: import("drizzle-orm").One<"models", false>;
1742
+ }>;
1743
+ }>;
1744
+ declare var BaseFileManager$1: Readonly<{
1745
+ __proto__: null;
1746
+ BaseFileManager: typeof BaseFileManager;
1747
+ }>;
1748
+ declare var SchemaSchema: Readonly<{
1749
+ __proto__: null;
1750
+ schemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1751
+ name: "schemas";
1752
+ schema: undefined;
1753
+ columns: {
1754
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1755
+ name: "id";
1756
+ tableName: "schemas";
1757
+ dataType: "number";
1758
+ columnType: "SQLiteInteger";
1759
+ data: number;
1760
+ driverParam: number;
1761
+ notNull: true;
1762
+ hasDefault: true;
1763
+ isPrimaryKey: true;
1764
+ isAutoincrement: false;
1765
+ hasRuntimeDefault: false;
1766
+ enumValues: undefined;
1767
+ baseColumn: never;
1768
+ identity: undefined;
1769
+ generated: undefined;
1770
+ }, {}, {}>;
1771
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1772
+ name: "name";
1773
+ tableName: "schemas";
1774
+ dataType: "string";
1775
+ columnType: "SQLiteText";
1776
+ data: string;
1777
+ driverParam: string;
1778
+ notNull: true;
1779
+ hasDefault: false;
1780
+ isPrimaryKey: false;
1781
+ isAutoincrement: false;
1782
+ hasRuntimeDefault: false;
1783
+ enumValues: [string, ...string[]];
1784
+ baseColumn: never;
1785
+ identity: undefined;
1786
+ generated: undefined;
1787
+ }, {}, {
1788
+ length: number | undefined;
1789
+ }>;
1790
+ version: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1791
+ name: "version";
1792
+ tableName: "schemas";
1793
+ dataType: "number";
1794
+ columnType: "SQLiteInteger";
1795
+ data: number;
1796
+ driverParam: number;
1797
+ notNull: true;
1798
+ hasDefault: false;
1799
+ isPrimaryKey: false;
1800
+ isAutoincrement: false;
1801
+ hasRuntimeDefault: false;
1802
+ enumValues: undefined;
1803
+ baseColumn: never;
1804
+ identity: undefined;
1805
+ generated: undefined;
1806
+ }, {}, {}>;
1807
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1808
+ name: "schema_file_id";
1809
+ tableName: "schemas";
1810
+ dataType: "string";
1811
+ columnType: "SQLiteText";
1812
+ data: string;
1813
+ driverParam: string;
1814
+ notNull: false;
1815
+ hasDefault: false;
1816
+ isPrimaryKey: false;
1817
+ isAutoincrement: false;
1818
+ hasRuntimeDefault: false;
1819
+ enumValues: [string, ...string[]];
1820
+ baseColumn: never;
1821
+ identity: undefined;
1822
+ generated: undefined;
1823
+ }, {}, {
1824
+ length: number | undefined;
1825
+ }>;
1826
+ schemaData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1827
+ name: "schema_data";
1828
+ tableName: "schemas";
1829
+ dataType: "string";
1830
+ columnType: "SQLiteText";
1831
+ data: string;
1832
+ driverParam: string;
1833
+ notNull: false;
1834
+ hasDefault: false;
1835
+ isPrimaryKey: false;
1836
+ isAutoincrement: false;
1837
+ hasRuntimeDefault: false;
1838
+ enumValues: [string, ...string[]];
1839
+ baseColumn: never;
1840
+ identity: undefined;
1841
+ generated: undefined;
1842
+ }, {}, {
1843
+ length: number | undefined;
1844
+ }>;
1845
+ isDraft: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1846
+ name: "is_draft";
1847
+ tableName: "schemas";
1848
+ dataType: "boolean";
1849
+ columnType: "SQLiteBoolean";
1850
+ data: boolean;
1851
+ driverParam: number;
1852
+ notNull: false;
1853
+ hasDefault: false;
1854
+ isPrimaryKey: false;
1855
+ isAutoincrement: false;
1856
+ hasRuntimeDefault: false;
1857
+ enumValues: undefined;
1858
+ baseColumn: never;
1859
+ identity: undefined;
1860
+ generated: undefined;
1861
+ }, {}, {}>;
1862
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1863
+ name: "is_edited";
1864
+ tableName: "schemas";
1865
+ dataType: "boolean";
1866
+ columnType: "SQLiteBoolean";
1867
+ data: boolean;
1868
+ driverParam: number;
1869
+ notNull: false;
1870
+ hasDefault: false;
1871
+ isPrimaryKey: false;
1872
+ isAutoincrement: false;
1873
+ hasRuntimeDefault: false;
1874
+ enumValues: undefined;
1875
+ baseColumn: never;
1876
+ identity: undefined;
1877
+ generated: undefined;
1878
+ }, {}, {}>;
1879
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1880
+ name: "created_at";
1881
+ tableName: "schemas";
1882
+ dataType: "number";
1883
+ columnType: "SQLiteInteger";
1884
+ data: number;
1885
+ driverParam: number;
1886
+ notNull: false;
1887
+ hasDefault: false;
1888
+ isPrimaryKey: false;
1889
+ isAutoincrement: false;
1890
+ hasRuntimeDefault: false;
1891
+ enumValues: undefined;
1892
+ baseColumn: never;
1893
+ identity: undefined;
1894
+ generated: undefined;
1895
+ }, {}, {}>;
1896
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1897
+ name: "updated_at";
1898
+ tableName: "schemas";
1899
+ dataType: "number";
1900
+ columnType: "SQLiteInteger";
1901
+ data: number;
1902
+ driverParam: number;
1903
+ notNull: false;
1904
+ hasDefault: false;
1905
+ isPrimaryKey: false;
1906
+ isAutoincrement: false;
1907
+ hasRuntimeDefault: false;
1908
+ enumValues: undefined;
1909
+ baseColumn: never;
1910
+ identity: undefined;
1911
+ generated: undefined;
1912
+ }, {}, {}>;
1913
+ };
1914
+ dialect: "sqlite";
1915
+ }>;
1916
+ }>;
1917
+ declare var ModelSchemaSchema: Readonly<{
1918
+ __proto__: null;
1919
+ modelSchemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1920
+ name: "model_schemas";
1921
+ schema: undefined;
1922
+ columns: {
1923
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1924
+ name: "id";
1925
+ tableName: "model_schemas";
1926
+ dataType: "number";
1927
+ columnType: "SQLiteInteger";
1928
+ data: number;
1929
+ driverParam: number;
1930
+ notNull: true;
1931
+ hasDefault: true;
1932
+ isPrimaryKey: true;
1933
+ isAutoincrement: false;
1934
+ hasRuntimeDefault: false;
1935
+ enumValues: undefined;
1936
+ baseColumn: never;
1937
+ identity: undefined;
1938
+ generated: undefined;
1939
+ }, {}, {}>;
1940
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1941
+ name: "model_id";
1942
+ tableName: "model_schemas";
1943
+ dataType: "number";
1944
+ columnType: "SQLiteInteger";
1945
+ data: number;
1946
+ driverParam: number;
1947
+ notNull: false;
1948
+ hasDefault: false;
1949
+ isPrimaryKey: false;
1950
+ isAutoincrement: false;
1951
+ hasRuntimeDefault: false;
1952
+ enumValues: undefined;
1953
+ baseColumn: never;
1954
+ identity: undefined;
1955
+ generated: undefined;
1956
+ }, {}, {}>;
1957
+ schemaId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1958
+ name: "schema_id";
1959
+ tableName: "model_schemas";
1960
+ dataType: "number";
1961
+ columnType: "SQLiteInteger";
1962
+ data: number;
1963
+ driverParam: number;
1964
+ notNull: false;
1965
+ hasDefault: false;
1966
+ isPrimaryKey: false;
1967
+ isAutoincrement: false;
1968
+ hasRuntimeDefault: false;
1969
+ enumValues: undefined;
1970
+ baseColumn: never;
1971
+ identity: undefined;
1972
+ generated: undefined;
1973
+ }, {}, {}>;
1974
+ };
1975
+ dialect: "sqlite";
1976
+ }>;
1977
+ }>;
1978
+ declare var resolveModelRecord$1: Readonly<{
1979
+ __proto__: null;
1980
+ getItemModelScope: (item: any) => Promise<{
1981
+ modelFileId: any;
1982
+ schemaName: any;
1983
+ }>;
1984
+ resolveItemModelFileId: (hints: any, db?: any) => Promise<any>;
1985
+ resolveModelRecord: (modelName: any, scope?: {}, db?: any) => Promise<any>;
1986
+ resolveModelRecordByNameOrType: (nameOrType: any, scope?: {}, db?: any) => Promise<any>;
1987
+ resolveRefModelRecord: (refModelName: any, owner: any, db?: any) => Promise<any>;
1988
+ }>;
1989
+ declare var db: Readonly<{
1990
+ __proto__: null;
1991
+ addModelsToDb: (models$1: any, schema: any, modelRenames: any, schemaFileData: any) => Promise<void>;
1992
+ addSchemaToDb: (schema: any, schemaFileId: any, schemaData: any, isDraft: any, isEdited: any) => Promise<any>;
1993
+ createOrUpdate: (db: any, table: any, values: any) => Promise<any>;
1994
+ getAddressesForItemsFilter: (addressFilter: any) => Promise<any>;
1995
+ getAddressesFromDb: () => Promise<any>;
1996
+ getAddressesFromDbOptional: () => Promise<any>;
1997
+ getAllAddressesFromDb: () => Promise<any[]>;
1998
+ getItemStoragePropertiesForModel: typeof getItemStoragePropertiesForModel;
1999
+ getModelId: typeof getModelId;
2000
+ getModelIdByFileId: typeof getModelIdByFileId;
2001
+ getModelNameByModelId: typeof getModelNameByModelId;
2002
+ getObjectForRow: (row: any) => {};
2003
+ getOwnedAddressesFromDb: () => Promise<any>;
2004
+ getPropertyIdForModelAndName: typeof getPropertyIdForModelAndName;
2005
+ getPropertyIdForSchemaFileId: typeof getPropertyIdForSchemaFileId;
2006
+ getPropertyModelNameAndDataType: typeof getPropertyModelNameAndDataType;
2007
+ getSchemaId: typeof getSchemaId;
2008
+ getSchemaIdByFileId: typeof getSchemaIdByFileId;
2009
+ getSqlResultObject: (queryResult: any) => any;
2010
+ getWatchedAddressesFromDb: () => Promise<any>;
2011
+ loadModelsFromDbForSchema: (schemaId: any) => Promise<{}>;
2012
+ mergeDbModelsIntoSchemaModels: (schemaModels: any, dbModels: any) => any;
2013
+ migrateMetadataForPropertyRename: typeof migrateMetadataForPropertyRename;
2014
+ moveMetadataToRenamedProperty: typeof moveMetadataToRenamedProperty;
2015
+ propertyStorageColumns: typeof propertyStorageColumns;
2016
+ renameModelInDb: (oldName: any, newName: any, schemaNameOrId: any) => Promise<any>;
2017
+ savePropertyToDb: (property: any) => Promise<void>;
2018
+ writeModelToDb: typeof writeModelToDb;
2019
+ writePropertyToDb: typeof writePropertyToDb;
2020
+ }>;
2021
+ declare var download: Readonly<{
2022
+ __proto__: null;
2023
+ downloadAllFilesBinaryRequestHandler: (addressesHintOrPayload: any) => Promise<void>;
2024
+ downloadAllFilesRequestHandler: ({ endpoints, eventId, }: {
2025
+ endpoints: any;
2026
+ eventId: any;
2027
+ }) => Promise<void>;
2028
+ downloadTransactionIdWithDedupe: (transactionId: any) => Promise<any>;
2029
+ scheduleBulkFilesDownloadFromEasSync: (addressesHint: any) => void;
2030
+ }>;
2031
+ declare var generateId$1: Readonly<{
2032
+ __proto__: null;
2033
+ generateId: () => string;
2034
+ }>;
2035
+ declare const TPropertyDataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2036
+ declare const TPropertyDefs: import("@sinclair/typebox").TObject<{
2037
+ Text: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2038
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2039
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2040
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2041
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2042
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2043
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2044
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2045
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2046
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2047
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2048
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2049
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2050
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2051
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2052
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2053
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2054
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2055
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2056
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2057
+ }>>;
2058
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2059
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2060
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2061
+ }>>;
2062
+ Number: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2063
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2064
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2065
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2066
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2067
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2068
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2069
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2070
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2071
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2072
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2073
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2074
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2075
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2076
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2077
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2078
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2079
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2080
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2081
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2082
+ }>>;
2083
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2084
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2085
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2086
+ }>>;
2087
+ List: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2088
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2089
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2090
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2091
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2092
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2093
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2094
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2095
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2096
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2097
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2098
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2099
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2100
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2101
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2102
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2103
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2104
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2105
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2106
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2107
+ }>>;
2108
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2109
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2110
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2111
+ }>>;
2112
+ Relation: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2113
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2114
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2115
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2116
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2117
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2118
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2119
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2120
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2121
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2122
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2123
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2124
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2125
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2126
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2127
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2128
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2129
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2130
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2131
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2132
+ }>>;
2133
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2134
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2135
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2136
+ }>>;
2137
+ Image: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2138
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2139
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2140
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2141
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2142
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2143
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2144
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2145
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2146
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2147
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2148
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2149
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2150
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2151
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2152
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2153
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2154
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2155
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2156
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2157
+ }>>;
2158
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2159
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2160
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2161
+ }>>;
2162
+ Json: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2163
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2164
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2165
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2166
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2167
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2168
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2169
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2170
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2171
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2172
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2173
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2174
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2175
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2176
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2177
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2178
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2179
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2180
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2181
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2182
+ }>>;
2183
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2184
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2185
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2186
+ }>>;
2187
+ File: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2188
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2189
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2190
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2191
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2192
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2193
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2194
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2195
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2196
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2197
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2198
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2199
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2200
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2201
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2202
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2203
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2204
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2205
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2206
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2207
+ }>>;
2208
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2209
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2210
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2211
+ }>>;
2212
+ Boolean: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2213
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2214
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2215
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2216
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2217
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2218
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2219
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2220
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2221
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2222
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2223
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2224
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2225
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2226
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2227
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2228
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2229
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2230
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2231
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2232
+ }>>;
2233
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2234
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2235
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2236
+ }>>;
2237
+ Date: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2238
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2239
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2240
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2241
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2242
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2243
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2244
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2245
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2246
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2247
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2248
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2249
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2250
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2251
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2252
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2253
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2254
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2255
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2256
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2257
+ }>>;
2258
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2259
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2260
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2261
+ }>>;
2262
+ Html: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
2263
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2264
+ _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2265
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2266
+ dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
2267
+ ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2268
+ modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
2269
+ modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2270
+ refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
2271
+ refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2272
+ refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
2273
+ storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
2274
+ localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2275
+ filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2276
+ validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2277
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2278
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2279
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2280
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2281
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2282
+ }>>;
2283
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2284
+ /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
2285
+ htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
2286
+ }>>;
2287
+ }>;
2288
+ declare const TStorageType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>;
2289
+ /**
2290
+ * TypeBox schema for ValidationRules
2291
+ */
2292
+ declare const TValidationRules: import("@sinclair/typebox").TObject<{
2293
+ pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2294
+ minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2295
+ maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2296
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
2297
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2298
+ }>;
2299
+ /**
2300
+ * Normalize a property definition to the internal shape ItemProperty reads (`dataType`,
2301
+ * `refValueType`, `ref`, `storageType`, ...). Accepts schema-file shape (`type`, `model`,
2302
+ * `items`, `storage`) and any casing. Mirrors the conversion in imports/json createModelFromJson
2303
+ * for the fallback paths that read schema-file properties directly.
2304
+ */
2305
+ declare function normalizePropertyRecordSchema(def: any): any;
2306
+ declare class BaseFileManager {
2307
+ static configure(impl: any): void;
2308
+ static requireImpl(): any;
2309
+ /**
2310
+ * Clears FS init flags so a later call can retry. Used after a failed init
2311
+ * and by tests. Does not unmount or delete any files.
2312
+ */
2313
+ static resetInitializationState(): void;
2314
+ static initializeFileSystem(workingDir: any): Promise<void>;
2315
+ static runInitializeFileSystem(workingDir: any): Promise<void>;
2316
+ static getWorkingDir(): any;
2317
+ /**
2318
+ * Build a path under the configured files root (e.g. /app-files).
2319
+ * Use this instead of hardcoding /files/ for images, html, json, etc.
2320
+ * @param subpaths - path segments to join (e.g. 'images', fileName)
2321
+ * @returns full path like /app-files/images/egg.jpg
2322
+ */
2323
+ static getFilesPath(...subpaths: any[]): string;
2324
+ static getContentUrlFromPath(path: any): any;
2325
+ static downloadAllFiles(params: any): any;
2326
+ static downloadFileByTransactionId({ transactionId, arweaveHost, arweaveBaseUrls, excludedTransactions, expectedContentHash, compositeChildPaths, }: {
2327
+ transactionId: any;
2328
+ arweaveHost: any;
2329
+ arweaveBaseUrls: any;
2330
+ excludedTransactions: any;
2331
+ expectedContentHash: any;
2332
+ compositeChildPaths: any;
2333
+ }): any;
2334
+ static resizeImage({ filePath, width, height }: {
2335
+ filePath: any;
2336
+ width: any;
2337
+ height: any;
2338
+ }): any;
2339
+ static resizeAllImages({ width, height }: {
2340
+ width: any;
2341
+ height: any;
2342
+ }): any;
2343
+ static pathExists(filePath: any): any;
2344
+ static invalidateCachedPaths(filePaths: any): any;
2345
+ /** File size in bytes, or null if the path does not exist / cannot be stated. */
2346
+ static getFileSize(filePath: any): any;
2347
+ /**
2348
+ * Returns a list of filenames in the given directory (e.g. 'images', 'files').
2349
+ */
2350
+ static listFiles(dir: any): any;
2351
+ /**
2352
+ * Returns a list of image filenames in the images folder (originals only, excludes size subdirs).
2353
+ * Use this to get all stored images without traversing 480/760/1024/1440/1920 subdirectories.
2354
+ */
2355
+ static listImageFiles(): any;
2356
+ static createDirIfNotExists(filePath: any): any;
2357
+ static waitForFile(filePath: any): Promise<any>;
2358
+ static waitForFileWithContent(filePath: any, interval: any, timeout: any): Promise<any>;
2359
+ static saveFile(filePath: any, content: any): Promise<any>;
2360
+ static saveFileSync(filePath: any, content: any): any;
2361
+ static readFile(filePath: any): Promise<any>;
2362
+ static readFileSync(filePath: any): any;
2363
+ static readFileAsBuffer(filePath: any): Promise<any>;
2364
+ static readFileAsString(filePath: any): Promise<any>;
2365
+ static getFs(): Promise<any>;
2366
+ static getFsSync(): any;
2367
+ static getPathModule(): any;
2368
+ static getParentDirPath(filePath: any): any;
2369
+ static getFilenameFromPath(filePath: any): any;
2370
+ }
2371
+ declare namespace BaseFileManager {
2372
+ export let fileSystemInitialized: boolean | undefined;
2373
+ export let initializing: boolean | undefined;
2374
+ export let initializePromise: Promise<void> | null | undefined;
2375
+ export let workingDir: any;
2376
+ let _impl_1: any;
2377
+ export { _impl_1 as _impl };
2378
+ }
2379
+ /**
2380
+ * Case-insensitive dataType check. Use instead of `dataType === 'List'` so schemas
2381
+ * (or existing DB rows) with lowercase types like "list" still match.
2382
+ */
2383
+ declare function isDataType(value: any, expected: any): boolean;
2384
+ declare const appState: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2385
+ name: "appState";
2386
+ schema: undefined;
2387
+ columns: {
2388
+ key: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2389
+ name: "key";
2390
+ tableName: "appState";
2391
+ dataType: "string";
2392
+ columnType: "SQLiteText";
2393
+ data: string;
2394
+ driverParam: string;
2395
+ notNull: false;
2396
+ hasDefault: false;
2397
+ isPrimaryKey: false;
2398
+ isAutoincrement: false;
2399
+ hasRuntimeDefault: false;
2400
+ enumValues: [string, ...string[]];
2401
+ baseColumn: never;
2402
+ identity: undefined;
2403
+ generated: undefined;
2404
+ }, {}, {
2405
+ length: number | undefined;
2406
+ }>;
2407
+ value: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2408
+ name: "value";
2409
+ tableName: "appState";
2410
+ dataType: "string";
2411
+ columnType: "SQLiteText";
2412
+ data: string;
2413
+ driverParam: string;
2414
+ notNull: false;
2415
+ hasDefault: false;
2416
+ isPrimaryKey: false;
2417
+ isAutoincrement: false;
2418
+ hasRuntimeDefault: false;
2419
+ enumValues: [string, ...string[]];
2420
+ baseColumn: never;
2421
+ identity: undefined;
2422
+ generated: undefined;
2423
+ }, {}, {
2424
+ length: number | undefined;
2425
+ }>;
2426
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2427
+ name: "created_at";
2428
+ tableName: "appState";
2429
+ dataType: "number";
2430
+ columnType: "SQLiteInteger";
2431
+ data: number;
2432
+ driverParam: number;
2433
+ notNull: false;
2434
+ hasDefault: false;
2435
+ isPrimaryKey: false;
2436
+ isAutoincrement: false;
2437
+ hasRuntimeDefault: false;
2438
+ enumValues: undefined;
2439
+ baseColumn: never;
2440
+ identity: undefined;
2441
+ generated: undefined;
2442
+ }, {}, {}>;
2443
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2444
+ name: "updated_at";
2445
+ tableName: "appState";
2446
+ dataType: "number";
2447
+ columnType: "SQLiteInteger";
2448
+ data: number;
2449
+ driverParam: number;
2450
+ notNull: false;
2451
+ hasDefault: false;
2452
+ isPrimaryKey: false;
2453
+ isAutoincrement: false;
2454
+ hasRuntimeDefault: false;
2455
+ enumValues: undefined;
2456
+ baseColumn: never;
2457
+ identity: undefined;
2458
+ generated: undefined;
2459
+ }, {}, {}>;
2460
+ };
2461
+ dialect: "sqlite";
2462
+ }>;
2463
+ /** Background job: resolve L1 tx id and wait for L1 confirmation after bundler publish. */
2464
+ declare const arweaveL1FinalizeJobs: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2465
+ name: "arweave_l1_finalize_jobs";
2466
+ schema: undefined;
2467
+ columns: {
2468
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2469
+ name: "id";
2470
+ tableName: "arweave_l1_finalize_jobs";
2471
+ dataType: "number";
2472
+ columnType: "SQLiteInteger";
2473
+ data: number;
2474
+ driverParam: number;
2475
+ notNull: true;
2476
+ hasDefault: true;
2477
+ isPrimaryKey: true;
2478
+ isAutoincrement: false;
2479
+ hasRuntimeDefault: false;
2480
+ enumValues: undefined;
2481
+ baseColumn: never;
2482
+ identity: undefined;
2483
+ generated: undefined;
2484
+ }, {}, {}>;
2485
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2486
+ name: "seed_local_id";
2487
+ tableName: "arweave_l1_finalize_jobs";
2488
+ dataType: "string";
2489
+ columnType: "SQLiteText";
2490
+ data: string;
2491
+ driverParam: string;
2492
+ notNull: true;
2493
+ hasDefault: false;
2494
+ isPrimaryKey: false;
2495
+ isAutoincrement: false;
2496
+ hasRuntimeDefault: false;
2497
+ enumValues: [string, ...string[]];
2498
+ baseColumn: never;
2499
+ identity: undefined;
2500
+ generated: undefined;
2501
+ }, {}, {
2502
+ length: number | undefined;
2503
+ }>;
2504
+ dataItemId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2505
+ name: "data_item_id";
2506
+ tableName: "arweave_l1_finalize_jobs";
2507
+ dataType: "string";
2508
+ columnType: "SQLiteText";
2509
+ data: string;
2510
+ driverParam: string;
2511
+ notNull: true;
2512
+ hasDefault: false;
2513
+ isPrimaryKey: false;
2514
+ isAutoincrement: false;
2515
+ hasRuntimeDefault: false;
2516
+ enumValues: [string, ...string[]];
2517
+ baseColumn: never;
2518
+ identity: undefined;
2519
+ generated: undefined;
2520
+ }, {}, {
2521
+ length: number | undefined;
2522
+ }>;
2523
+ l1TransactionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2524
+ name: "l1_transaction_id";
2525
+ tableName: "arweave_l1_finalize_jobs";
2526
+ dataType: "string";
2527
+ columnType: "SQLiteText";
2528
+ data: string;
2529
+ driverParam: string;
2530
+ notNull: false;
2531
+ hasDefault: false;
2532
+ isPrimaryKey: false;
2533
+ isAutoincrement: false;
2534
+ hasRuntimeDefault: false;
2535
+ enumValues: [string, ...string[]];
2536
+ baseColumn: never;
2537
+ identity: undefined;
2538
+ generated: undefined;
2539
+ }, {}, {
2540
+ length: number | undefined;
2541
+ }>;
2542
+ bundleId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2543
+ name: "bundle_id";
2544
+ tableName: "arweave_l1_finalize_jobs";
2545
+ dataType: "string";
2546
+ columnType: "SQLiteText";
2547
+ data: string;
2548
+ driverParam: string;
2549
+ notNull: false;
2550
+ hasDefault: false;
2551
+ isPrimaryKey: false;
2552
+ isAutoincrement: false;
2553
+ hasRuntimeDefault: false;
2554
+ enumValues: [string, ...string[]];
2555
+ baseColumn: never;
2556
+ identity: undefined;
2557
+ generated: undefined;
2558
+ }, {}, {
2559
+ length: number | undefined;
2560
+ }>;
2561
+ versionLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2562
+ name: "version_local_id";
2563
+ tableName: "arweave_l1_finalize_jobs";
2564
+ dataType: "string";
2565
+ columnType: "SQLiteText";
2566
+ data: string;
2567
+ driverParam: string;
2568
+ notNull: false;
2569
+ hasDefault: false;
2570
+ isPrimaryKey: false;
2571
+ isAutoincrement: false;
2572
+ hasRuntimeDefault: false;
2573
+ enumValues: [string, ...string[]];
2574
+ baseColumn: never;
2575
+ identity: undefined;
2576
+ generated: undefined;
2577
+ }, {}, {
2578
+ length: number | undefined;
2579
+ }>;
2580
+ itemPropertyName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2581
+ name: "item_property_name";
2582
+ tableName: "arweave_l1_finalize_jobs";
2583
+ dataType: "string";
2584
+ columnType: "SQLiteText";
2585
+ data: string;
2586
+ driverParam: string;
2587
+ notNull: false;
2588
+ hasDefault: false;
2589
+ isPrimaryKey: false;
2590
+ isAutoincrement: false;
2591
+ hasRuntimeDefault: false;
2592
+ enumValues: [string, ...string[]];
2593
+ baseColumn: never;
2594
+ identity: undefined;
2595
+ generated: undefined;
2596
+ }, {}, {
2597
+ length: number | undefined;
2598
+ }>;
2599
+ phase: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2600
+ name: "phase";
2601
+ tableName: "arweave_l1_finalize_jobs";
2602
+ dataType: "string";
2603
+ columnType: "SQLiteText";
2604
+ data: string;
2605
+ driverParam: string;
2606
+ notNull: true;
2607
+ hasDefault: false;
2608
+ isPrimaryKey: false;
2609
+ isAutoincrement: false;
2610
+ hasRuntimeDefault: false;
2611
+ enumValues: [string, ...string[]];
2612
+ baseColumn: never;
2613
+ identity: undefined;
2614
+ generated: undefined;
2615
+ }, {}, {
2616
+ length: number | undefined;
2617
+ }>;
2618
+ statusJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2619
+ name: "status_json";
2620
+ tableName: "arweave_l1_finalize_jobs";
2621
+ dataType: "string";
2622
+ columnType: "SQLiteText";
2623
+ data: string;
2624
+ driverParam: string;
2625
+ notNull: false;
2626
+ hasDefault: false;
2627
+ isPrimaryKey: false;
2628
+ isAutoincrement: false;
2629
+ hasRuntimeDefault: false;
2630
+ enumValues: [string, ...string[]];
2631
+ baseColumn: never;
2632
+ identity: undefined;
2633
+ generated: undefined;
2634
+ }, {}, {
2635
+ length: number | undefined;
2636
+ }>;
2637
+ errorMessage: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2638
+ name: "error_message";
2639
+ tableName: "arweave_l1_finalize_jobs";
2640
+ dataType: "string";
2641
+ columnType: "SQLiteText";
2642
+ data: string;
2643
+ driverParam: string;
2644
+ notNull: false;
2645
+ hasDefault: false;
2646
+ isPrimaryKey: false;
2647
+ isAutoincrement: false;
2648
+ hasRuntimeDefault: false;
2649
+ enumValues: [string, ...string[]];
2650
+ baseColumn: never;
2651
+ identity: undefined;
2652
+ generated: undefined;
2653
+ }, {}, {
2654
+ length: number | undefined;
2655
+ }>;
2656
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2657
+ name: "created_at";
2658
+ tableName: "arweave_l1_finalize_jobs";
2659
+ dataType: "number";
2660
+ columnType: "SQLiteInteger";
2661
+ data: number;
2662
+ driverParam: number;
2663
+ notNull: true;
2664
+ hasDefault: false;
2665
+ isPrimaryKey: false;
2666
+ isAutoincrement: false;
2667
+ hasRuntimeDefault: false;
2668
+ enumValues: undefined;
2669
+ baseColumn: never;
2670
+ identity: undefined;
2671
+ generated: undefined;
2672
+ }, {}, {}>;
2673
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2674
+ name: "updated_at";
2675
+ tableName: "arweave_l1_finalize_jobs";
2676
+ dataType: "number";
2677
+ columnType: "SQLiteInteger";
2678
+ data: number;
2679
+ driverParam: number;
2680
+ notNull: true;
2681
+ hasDefault: false;
2682
+ isPrimaryKey: false;
2683
+ isAutoincrement: false;
2684
+ hasRuntimeDefault: false;
2685
+ enumValues: undefined;
2686
+ baseColumn: never;
2687
+ identity: undefined;
2688
+ generated: undefined;
2689
+ }, {}, {}>;
2690
+ };
2691
+ dialect: "sqlite";
2692
+ }>;
2693
+ declare const config: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2694
+ name: "config";
2695
+ schema: undefined;
2696
+ columns: {
2697
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2698
+ name: "id";
2699
+ tableName: "config";
2700
+ dataType: "number";
2701
+ columnType: "SQLiteInteger";
2702
+ data: number;
2703
+ driverParam: number;
2704
+ notNull: true;
2705
+ hasDefault: true;
2706
+ isPrimaryKey: true;
2707
+ isAutoincrement: false;
2708
+ hasRuntimeDefault: false;
2709
+ enumValues: undefined;
2710
+ baseColumn: never;
2711
+ identity: undefined;
2712
+ generated: undefined;
2713
+ }, {}, {}>;
2714
+ key: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2715
+ name: "key";
2716
+ tableName: "config";
2717
+ dataType: "string";
2718
+ columnType: "SQLiteText";
2719
+ data: string;
2720
+ driverParam: string;
2721
+ notNull: true;
2722
+ hasDefault: false;
2723
+ isPrimaryKey: false;
2724
+ isAutoincrement: false;
2725
+ hasRuntimeDefault: false;
2726
+ enumValues: [string, ...string[]];
2727
+ baseColumn: never;
2728
+ identity: undefined;
2729
+ generated: undefined;
2730
+ }, {}, {
2731
+ length: number | undefined;
2732
+ }>;
2733
+ text: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2734
+ name: "text";
2735
+ tableName: "config";
2736
+ dataType: "string";
2737
+ columnType: "SQLiteText";
2738
+ data: string;
2739
+ driverParam: string;
2740
+ notNull: false;
2741
+ hasDefault: false;
2742
+ isPrimaryKey: false;
2743
+ isAutoincrement: false;
2744
+ hasRuntimeDefault: false;
2745
+ enumValues: [string, ...string[]];
2746
+ baseColumn: never;
2747
+ identity: undefined;
2748
+ generated: undefined;
2749
+ }, {}, {
2750
+ length: number | undefined;
2751
+ }>;
2752
+ json: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2753
+ name: "json";
2754
+ tableName: "config";
2755
+ dataType: "string";
2756
+ columnType: "SQLiteText";
2757
+ data: string;
2758
+ driverParam: string;
2759
+ notNull: false;
2760
+ hasDefault: false;
2761
+ isPrimaryKey: false;
2762
+ isAutoincrement: false;
2763
+ hasRuntimeDefault: false;
2764
+ enumValues: [string, ...string[]];
2765
+ baseColumn: never;
2766
+ identity: undefined;
2767
+ generated: undefined;
2768
+ }, {}, {
2769
+ length: number | undefined;
2770
+ }>;
2771
+ blob: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2772
+ name: "blob";
2773
+ tableName: "config";
2774
+ dataType: "json";
2775
+ columnType: "SQLiteBlobJson";
2776
+ data: unknown;
2777
+ driverParam: Buffer<ArrayBufferLike>;
2778
+ notNull: false;
2779
+ hasDefault: false;
2780
+ isPrimaryKey: false;
2781
+ isAutoincrement: false;
2782
+ hasRuntimeDefault: false;
2783
+ enumValues: undefined;
2784
+ baseColumn: never;
2785
+ identity: undefined;
2786
+ generated: undefined;
2787
+ }, {}, {}>;
2788
+ };
2789
+ dialect: "sqlite";
2790
+ }>;
2791
+ declare const metadata: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2792
+ name: "metadata";
2793
+ schema: undefined;
2794
+ columns: {
2795
+ localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2796
+ name: "local_id";
2797
+ tableName: "metadata";
2798
+ dataType: "string";
2799
+ columnType: "SQLiteText";
2800
+ data: string;
2801
+ driverParam: string;
2802
+ notNull: false;
2803
+ hasDefault: false;
2804
+ isPrimaryKey: false;
2805
+ isAutoincrement: false;
2806
+ hasRuntimeDefault: false;
2807
+ enumValues: [string, ...string[]];
2808
+ baseColumn: never;
2809
+ identity: undefined;
2810
+ generated: undefined;
2811
+ }, {}, {
2812
+ length: number | undefined;
2813
+ }>;
2814
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2815
+ name: "uid";
2816
+ tableName: "metadata";
2817
+ dataType: "string";
2818
+ columnType: "SQLiteText";
2819
+ data: string;
2820
+ driverParam: string;
2821
+ notNull: false;
2822
+ hasDefault: false;
2823
+ isPrimaryKey: false;
2824
+ isAutoincrement: false;
2825
+ hasRuntimeDefault: false;
2826
+ enumValues: [string, ...string[]];
2827
+ baseColumn: never;
2828
+ identity: undefined;
2829
+ generated: undefined;
2830
+ }, {}, {
2831
+ length: number | undefined;
2832
+ }>;
2833
+ propertyId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2834
+ name: "property_id";
2835
+ tableName: "metadata";
2836
+ dataType: "number";
2837
+ columnType: "SQLiteInteger";
2838
+ data: number;
2839
+ driverParam: number;
2840
+ notNull: false;
2841
+ hasDefault: false;
2842
+ isPrimaryKey: false;
2843
+ isAutoincrement: false;
2844
+ hasRuntimeDefault: false;
2845
+ enumValues: undefined;
2846
+ baseColumn: never;
2847
+ identity: undefined;
2848
+ generated: undefined;
2849
+ }, {}, {}>;
2850
+ propertyName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2851
+ name: "property_name";
2852
+ tableName: "metadata";
2853
+ dataType: "string";
2854
+ columnType: "SQLiteText";
2855
+ data: string;
2856
+ driverParam: string;
2857
+ notNull: false;
2858
+ hasDefault: false;
2859
+ isPrimaryKey: false;
2860
+ isAutoincrement: false;
2861
+ hasRuntimeDefault: false;
2862
+ enumValues: [string, ...string[]];
2863
+ baseColumn: never;
2864
+ identity: undefined;
2865
+ generated: undefined;
2866
+ }, {}, {
2867
+ length: number | undefined;
2868
+ }>;
2869
+ propertyValue: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2870
+ name: "property_value";
2871
+ tableName: "metadata";
2872
+ dataType: "string";
2873
+ columnType: "SQLiteText";
2874
+ data: string;
2875
+ driverParam: string;
2876
+ notNull: false;
2877
+ hasDefault: false;
2878
+ isPrimaryKey: false;
2879
+ isAutoincrement: false;
2880
+ hasRuntimeDefault: false;
2881
+ enumValues: [string, ...string[]];
2882
+ baseColumn: never;
2883
+ identity: undefined;
2884
+ generated: undefined;
2885
+ }, {}, {
2886
+ length: number | undefined;
2887
+ }>;
2888
+ schemaUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2889
+ name: "schema_uid";
2890
+ tableName: "metadata";
2891
+ dataType: "string";
2892
+ columnType: "SQLiteText";
2893
+ data: string;
2894
+ driverParam: string;
2895
+ notNull: false;
2896
+ hasDefault: false;
2897
+ isPrimaryKey: false;
2898
+ isAutoincrement: false;
2899
+ hasRuntimeDefault: false;
2900
+ enumValues: [string, ...string[]];
2901
+ baseColumn: never;
2902
+ identity: undefined;
2903
+ generated: undefined;
2904
+ }, {}, {
2905
+ length: number | undefined;
2906
+ }>;
2907
+ modelType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2908
+ name: "model_type";
2909
+ tableName: "metadata";
2910
+ dataType: "string";
2911
+ columnType: "SQLiteText";
2912
+ data: string;
2913
+ driverParam: string;
2914
+ notNull: false;
2915
+ hasDefault: false;
2916
+ isPrimaryKey: false;
2917
+ isAutoincrement: false;
2918
+ hasRuntimeDefault: false;
2919
+ enumValues: [string, ...string[]];
2920
+ baseColumn: never;
2921
+ identity: undefined;
2922
+ generated: undefined;
2923
+ }, {}, {
2924
+ length: number | undefined;
2925
+ }>;
2926
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2927
+ name: "seed_local_id";
2928
+ tableName: "metadata";
2929
+ dataType: "string";
2930
+ columnType: "SQLiteText";
2931
+ data: string;
2932
+ driverParam: string;
2933
+ notNull: false;
2934
+ hasDefault: false;
2935
+ isPrimaryKey: false;
2936
+ isAutoincrement: false;
2937
+ hasRuntimeDefault: false;
2938
+ enumValues: [string, ...string[]];
2939
+ baseColumn: never;
2940
+ identity: undefined;
2941
+ generated: undefined;
2942
+ }, {}, {
2943
+ length: number | undefined;
2944
+ }>;
2945
+ seedUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2946
+ name: "seed_uid";
2947
+ tableName: "metadata";
2948
+ dataType: "string";
2949
+ columnType: "SQLiteText";
2950
+ data: string;
2951
+ driverParam: string;
2952
+ notNull: false;
2953
+ hasDefault: false;
2954
+ isPrimaryKey: false;
2955
+ isAutoincrement: false;
2956
+ hasRuntimeDefault: false;
2957
+ enumValues: [string, ...string[]];
2958
+ baseColumn: never;
2959
+ identity: undefined;
2960
+ generated: undefined;
2961
+ }, {}, {
2962
+ length: number | undefined;
2963
+ }>;
2964
+ versionLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2965
+ name: "version_local_id";
2966
+ tableName: "metadata";
2967
+ dataType: "string";
2968
+ columnType: "SQLiteText";
2969
+ data: string;
2970
+ driverParam: string;
2971
+ notNull: false;
2972
+ hasDefault: false;
2973
+ isPrimaryKey: false;
2974
+ isAutoincrement: false;
2975
+ hasRuntimeDefault: false;
2976
+ enumValues: [string, ...string[]];
2977
+ baseColumn: never;
2978
+ identity: undefined;
2979
+ generated: undefined;
2980
+ }, {}, {
2981
+ length: number | undefined;
2982
+ }>;
2983
+ versionUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2984
+ name: "version_uid";
2985
+ tableName: "metadata";
2986
+ dataType: "string";
2987
+ columnType: "SQLiteText";
2988
+ data: string;
2989
+ driverParam: string;
2990
+ notNull: false;
2991
+ hasDefault: false;
2992
+ isPrimaryKey: false;
2993
+ isAutoincrement: false;
2994
+ hasRuntimeDefault: false;
2995
+ enumValues: [string, ...string[]];
2996
+ baseColumn: never;
2997
+ identity: undefined;
2998
+ generated: undefined;
2999
+ }, {}, {
3000
+ length: number | undefined;
3001
+ }>;
3002
+ easDataType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3003
+ name: "eas_data_type";
3004
+ tableName: "metadata";
3005
+ dataType: "string";
3006
+ columnType: "SQLiteText";
3007
+ data: string;
3008
+ driverParam: string;
3009
+ notNull: false;
3010
+ hasDefault: false;
3011
+ isPrimaryKey: false;
3012
+ isAutoincrement: false;
3013
+ hasRuntimeDefault: false;
3014
+ enumValues: [string, ...string[]];
3015
+ baseColumn: never;
3016
+ identity: undefined;
3017
+ generated: undefined;
3018
+ }, {}, {
3019
+ length: number | undefined;
3020
+ }>;
3021
+ refValueType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3022
+ name: "ref_value_type";
3023
+ tableName: "metadata";
3024
+ dataType: "string";
3025
+ columnType: "SQLiteText";
3026
+ data: string;
3027
+ driverParam: string;
3028
+ notNull: false;
3029
+ hasDefault: false;
3030
+ isPrimaryKey: false;
3031
+ isAutoincrement: false;
3032
+ hasRuntimeDefault: false;
3033
+ enumValues: [string, ...string[]];
3034
+ baseColumn: never;
3035
+ identity: undefined;
3036
+ generated: undefined;
3037
+ }, {}, {
3038
+ length: number | undefined;
3039
+ }>;
3040
+ refModelUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3041
+ name: "ref_schema_uid";
3042
+ tableName: "metadata";
3043
+ dataType: "string";
3044
+ columnType: "SQLiteText";
3045
+ data: string;
3046
+ driverParam: string;
3047
+ notNull: false;
3048
+ hasDefault: false;
3049
+ isPrimaryKey: false;
3050
+ isAutoincrement: false;
3051
+ hasRuntimeDefault: false;
3052
+ enumValues: [string, ...string[]];
3053
+ baseColumn: never;
3054
+ identity: undefined;
3055
+ generated: undefined;
3056
+ }, {}, {
3057
+ length: number | undefined;
3058
+ }>;
3059
+ refSeedType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3060
+ name: "ref_seed_type";
3061
+ tableName: "metadata";
3062
+ dataType: "string";
3063
+ columnType: "SQLiteText";
3064
+ data: string;
3065
+ driverParam: string;
3066
+ notNull: false;
3067
+ hasDefault: false;
3068
+ isPrimaryKey: false;
3069
+ isAutoincrement: false;
3070
+ hasRuntimeDefault: false;
3071
+ enumValues: [string, ...string[]];
3072
+ baseColumn: never;
3073
+ identity: undefined;
3074
+ generated: undefined;
3075
+ }, {}, {
3076
+ length: number | undefined;
3077
+ }>;
3078
+ refResolvedValue: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3079
+ name: "ref_resolved_value";
3080
+ tableName: "metadata";
3081
+ dataType: "string";
3082
+ columnType: "SQLiteText";
3083
+ data: string;
3084
+ driverParam: string;
3085
+ notNull: false;
3086
+ hasDefault: false;
3087
+ isPrimaryKey: false;
3088
+ isAutoincrement: false;
3089
+ hasRuntimeDefault: false;
3090
+ enumValues: [string, ...string[]];
3091
+ baseColumn: never;
3092
+ identity: undefined;
3093
+ generated: undefined;
3094
+ }, {}, {
3095
+ length: number | undefined;
3096
+ }>;
3097
+ refResolvedDisplayValue: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3098
+ name: "ref_resolved_display_value";
3099
+ tableName: "metadata";
3100
+ dataType: "string";
3101
+ columnType: "SQLiteText";
3102
+ data: string;
3103
+ driverParam: string;
3104
+ notNull: false;
3105
+ hasDefault: false;
3106
+ isPrimaryKey: false;
3107
+ isAutoincrement: false;
3108
+ hasRuntimeDefault: false;
3109
+ enumValues: [string, ...string[]];
3110
+ baseColumn: never;
3111
+ identity: undefined;
3112
+ generated: undefined;
3113
+ }, {}, {
3114
+ length: number | undefined;
3115
+ }>;
3116
+ localStorageDir: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3117
+ name: "local_storage_dir";
3118
+ tableName: "metadata";
3119
+ dataType: "string";
3120
+ columnType: "SQLiteText";
3121
+ data: string;
3122
+ driverParam: string;
3123
+ notNull: false;
3124
+ hasDefault: false;
3125
+ isPrimaryKey: false;
3126
+ isAutoincrement: false;
3127
+ hasRuntimeDefault: false;
3128
+ enumValues: [string, ...string[]];
3129
+ baseColumn: never;
3130
+ identity: undefined;
3131
+ generated: undefined;
3132
+ }, {}, {
3133
+ length: number | undefined;
3134
+ }>;
3135
+ attestationRaw: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3136
+ name: "attestation_raw";
3137
+ tableName: "metadata";
3138
+ dataType: "string";
3139
+ columnType: "SQLiteText";
3140
+ data: string;
3141
+ driverParam: string;
3142
+ notNull: false;
3143
+ hasDefault: false;
3144
+ isPrimaryKey: false;
3145
+ isAutoincrement: false;
3146
+ hasRuntimeDefault: false;
3147
+ enumValues: [string, ...string[]];
3148
+ baseColumn: never;
3149
+ identity: undefined;
3150
+ generated: undefined;
3151
+ }, {}, {
3152
+ length: number | undefined;
3153
+ }>;
3154
+ attestationCreatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3155
+ name: "attestation_created_at";
3156
+ tableName: "metadata";
3157
+ dataType: "number";
3158
+ columnType: "SQLiteInteger";
3159
+ data: number;
3160
+ driverParam: number;
3161
+ notNull: false;
3162
+ hasDefault: false;
3163
+ isPrimaryKey: false;
3164
+ isAutoincrement: false;
3165
+ hasRuntimeDefault: false;
3166
+ enumValues: undefined;
3167
+ baseColumn: never;
3168
+ identity: undefined;
3169
+ generated: undefined;
3170
+ }, {}, {}>;
3171
+ contentHash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3172
+ name: "content_hash";
3173
+ tableName: "metadata";
3174
+ dataType: "string";
3175
+ columnType: "SQLiteText";
3176
+ data: string;
3177
+ driverParam: string;
3178
+ notNull: false;
3179
+ hasDefault: false;
3180
+ isPrimaryKey: false;
3181
+ isAutoincrement: false;
3182
+ hasRuntimeDefault: false;
3183
+ enumValues: [string, ...string[]];
3184
+ baseColumn: never;
3185
+ identity: undefined;
3186
+ generated: undefined;
3187
+ }, {}, {
3188
+ length: number | undefined;
3189
+ }>;
3190
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3191
+ name: "created_at";
3192
+ tableName: "metadata";
3193
+ dataType: "number";
3194
+ columnType: "SQLiteInteger";
3195
+ data: number;
3196
+ driverParam: number;
3197
+ notNull: false;
3198
+ hasDefault: false;
3199
+ isPrimaryKey: false;
3200
+ isAutoincrement: false;
3201
+ hasRuntimeDefault: false;
3202
+ enumValues: undefined;
3203
+ baseColumn: never;
3204
+ identity: undefined;
3205
+ generated: undefined;
3206
+ }, {}, {}>;
3207
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3208
+ name: "updated_at";
3209
+ tableName: "metadata";
3210
+ dataType: "number";
3211
+ columnType: "SQLiteInteger";
3212
+ data: number;
3213
+ driverParam: number;
3214
+ notNull: false;
3215
+ hasDefault: false;
3216
+ isPrimaryKey: false;
3217
+ isAutoincrement: false;
3218
+ hasRuntimeDefault: false;
3219
+ enumValues: undefined;
3220
+ baseColumn: never;
3221
+ identity: undefined;
3222
+ generated: undefined;
3223
+ }, {}, {}>;
3224
+ publisher: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3225
+ name: "publisher";
3226
+ tableName: "metadata";
3227
+ dataType: "string";
3228
+ columnType: "SQLiteText";
3229
+ data: string;
3230
+ driverParam: string;
3231
+ notNull: false;
3232
+ hasDefault: false;
3233
+ isPrimaryKey: false;
3234
+ isAutoincrement: false;
3235
+ hasRuntimeDefault: false;
3236
+ enumValues: [string, ...string[]];
3237
+ baseColumn: never;
3238
+ identity: undefined;
3239
+ generated: undefined;
3240
+ }, {}, {
3241
+ length: number | undefined;
3242
+ }>;
3243
+ revokedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3244
+ name: "revoked_at";
3245
+ tableName: "metadata";
3246
+ dataType: "number";
3247
+ columnType: "SQLiteInteger";
3248
+ data: number;
3249
+ driverParam: number;
3250
+ notNull: false;
3251
+ hasDefault: false;
3252
+ isPrimaryKey: false;
3253
+ isAutoincrement: false;
3254
+ hasRuntimeDefault: false;
3255
+ enumValues: undefined;
3256
+ baseColumn: never;
3257
+ identity: undefined;
3258
+ generated: undefined;
3259
+ }, {}, {}>;
3260
+ derivedFromUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3261
+ name: "derived_from_uid";
3262
+ tableName: "metadata";
3263
+ dataType: "string";
3264
+ columnType: "SQLiteText";
3265
+ data: string;
3266
+ driverParam: string;
3267
+ notNull: false;
3268
+ hasDefault: false;
3269
+ isPrimaryKey: false;
3270
+ isAutoincrement: false;
3271
+ hasRuntimeDefault: false;
3272
+ enumValues: [string, ...string[]];
3273
+ baseColumn: never;
3274
+ identity: undefined;
3275
+ generated: undefined;
3276
+ }, {}, {
3277
+ length: number | undefined;
3278
+ }>;
3279
+ };
3280
+ dialect: "sqlite";
3281
+ }>;
3282
+ /**
3283
+ * Normalize dataType to canonical PascalCase form.
3284
+ * Accepts lowercase (e.g. 'text') or mixed case and returns 'Text'.
3285
+ * Use when ingesting dataType from JSON schema files.
3286
+ */
3287
+ declare function normalizeDataType(value: any): any;
3288
+ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3289
+ name: "eas_sync_processes";
3290
+ schema: undefined;
3291
+ columns: {
3292
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3293
+ name: "id";
3294
+ tableName: "eas_sync_processes";
3295
+ dataType: "number";
3296
+ columnType: "SQLiteInteger";
3297
+ data: number;
3298
+ driverParam: number;
3299
+ notNull: true;
3300
+ hasDefault: true;
3301
+ isPrimaryKey: true;
3302
+ isAutoincrement: false;
3303
+ hasRuntimeDefault: false;
3304
+ enumValues: undefined;
3305
+ baseColumn: never;
3306
+ identity: undefined;
3307
+ generated: undefined;
3308
+ }, {}, {}>;
3309
+ status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3310
+ name: "status";
3311
+ tableName: "eas_sync_processes";
3312
+ dataType: "string";
3313
+ columnType: "SQLiteText";
3314
+ data: string;
3315
+ driverParam: string;
3316
+ notNull: true;
3317
+ hasDefault: false;
3318
+ isPrimaryKey: false;
3319
+ isAutoincrement: false;
3320
+ hasRuntimeDefault: false;
3321
+ enumValues: [string, ...string[]];
3322
+ baseColumn: never;
3323
+ identity: undefined;
3324
+ generated: undefined;
3325
+ }, {}, {
3326
+ length: number | undefined;
3327
+ }>;
3328
+ startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3329
+ name: "started_at";
3330
+ tableName: "eas_sync_processes";
3331
+ dataType: "number";
3332
+ columnType: "SQLiteInteger";
3333
+ data: number;
3334
+ driverParam: number;
3335
+ notNull: true;
3336
+ hasDefault: false;
3337
+ isPrimaryKey: false;
3338
+ isAutoincrement: false;
3339
+ hasRuntimeDefault: false;
3340
+ enumValues: undefined;
3341
+ baseColumn: never;
3342
+ identity: undefined;
3343
+ generated: undefined;
3344
+ }, {}, {}>;
3345
+ completedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3346
+ name: "completed_at";
3347
+ tableName: "eas_sync_processes";
3348
+ dataType: "number";
3349
+ columnType: "SQLiteInteger";
3350
+ data: number;
3351
+ driverParam: number;
3352
+ notNull: false;
3353
+ hasDefault: false;
3354
+ isPrimaryKey: false;
3355
+ isAutoincrement: false;
3356
+ hasRuntimeDefault: false;
3357
+ enumValues: undefined;
3358
+ baseColumn: never;
3359
+ identity: undefined;
3360
+ generated: undefined;
3361
+ }, {}, {}>;
3362
+ requestPayload: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3363
+ name: "request_payload";
3364
+ tableName: "eas_sync_processes";
3365
+ dataType: "string";
3366
+ columnType: "SQLiteText";
3367
+ data: string;
3368
+ driverParam: string;
3369
+ notNull: true;
3370
+ hasDefault: false;
3371
+ isPrimaryKey: false;
3372
+ isAutoincrement: false;
3373
+ hasRuntimeDefault: false;
3374
+ enumValues: [string, ...string[]];
3375
+ baseColumn: never;
3376
+ identity: undefined;
3377
+ generated: undefined;
3378
+ }, {}, {
3379
+ length: number | undefined;
3380
+ }>;
3381
+ errorMessage: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3382
+ name: "error_message";
3383
+ tableName: "eas_sync_processes";
3384
+ dataType: "string";
3385
+ columnType: "SQLiteText";
3386
+ data: string;
3387
+ driverParam: string;
3388
+ notNull: false;
3389
+ hasDefault: false;
3390
+ isPrimaryKey: false;
3391
+ isAutoincrement: false;
3392
+ hasRuntimeDefault: false;
3393
+ enumValues: [string, ...string[]];
3394
+ baseColumn: never;
3395
+ identity: undefined;
3396
+ generated: undefined;
3397
+ }, {}, {
3398
+ length: number | undefined;
3399
+ }>;
3400
+ errorDetails: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3401
+ name: "error_details";
3402
+ tableName: "eas_sync_processes";
3403
+ dataType: "string";
3404
+ columnType: "SQLiteText";
3405
+ data: string;
3406
+ driverParam: string;
3407
+ notNull: false;
3408
+ hasDefault: false;
3409
+ isPrimaryKey: false;
3410
+ isAutoincrement: false;
3411
+ hasRuntimeDefault: false;
3412
+ enumValues: [string, ...string[]];
3413
+ baseColumn: never;
3414
+ identity: undefined;
3415
+ generated: undefined;
3416
+ }, {}, {
3417
+ length: number | undefined;
3418
+ }>;
3419
+ persistedSnapshot: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3420
+ name: "persisted_snapshot";
3421
+ tableName: "eas_sync_processes";
3422
+ dataType: "string";
3423
+ columnType: "SQLiteText";
3424
+ data: string;
3425
+ driverParam: string;
3426
+ notNull: true;
3427
+ hasDefault: false;
3428
+ isPrimaryKey: false;
3429
+ isAutoincrement: false;
3430
+ hasRuntimeDefault: false;
3431
+ enumValues: [string, ...string[]];
3432
+ baseColumn: never;
3433
+ identity: undefined;
3434
+ generated: undefined;
3435
+ }, {}, {
3436
+ length: number | undefined;
3437
+ }>;
3438
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3439
+ name: "created_at";
3440
+ tableName: "eas_sync_processes";
3441
+ dataType: "number";
3442
+ columnType: "SQLiteInteger";
3443
+ data: number;
3444
+ driverParam: number;
3445
+ notNull: false;
3446
+ hasDefault: false;
3447
+ isPrimaryKey: false;
3448
+ isAutoincrement: false;
3449
+ hasRuntimeDefault: false;
3450
+ enumValues: undefined;
3451
+ baseColumn: never;
3452
+ identity: undefined;
3453
+ generated: undefined;
3454
+ }, {}, {}>;
3455
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3456
+ name: "updated_at";
3457
+ tableName: "eas_sync_processes";
3458
+ dataType: "number";
3459
+ columnType: "SQLiteInteger";
3460
+ data: number;
3461
+ driverParam: number;
3462
+ notNull: false;
3463
+ hasDefault: false;
3464
+ isPrimaryKey: false;
3465
+ isAutoincrement: false;
3466
+ hasRuntimeDefault: false;
3467
+ enumValues: undefined;
3468
+ baseColumn: never;
3469
+ identity: undefined;
3470
+ generated: undefined;
3471
+ }, {}, {}>;
3472
+ };
3473
+ dialect: "sqlite";
3474
+ }>;
3475
+ /**
3476
+ * Links Image seeds materialized from Html `data:image/*` URIs to the parent Item seed for co-publish.
3477
+ * Rows are removed after a successful publish (see clearHtmlEmbeddedImageCoPublishRows).
3478
+ */
3479
+ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3480
+ name: "html_embedded_image_co_publish";
3481
+ schema: undefined;
3482
+ columns: {
3483
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3484
+ name: "id";
3485
+ tableName: "html_embedded_image_co_publish";
3486
+ dataType: "number";
3487
+ columnType: "SQLiteInteger";
3488
+ data: number;
3489
+ driverParam: number;
3490
+ notNull: true;
3491
+ hasDefault: true;
3492
+ isPrimaryKey: true;
3493
+ isAutoincrement: false;
3494
+ hasRuntimeDefault: false;
3495
+ enumValues: undefined;
3496
+ baseColumn: never;
3497
+ identity: undefined;
3498
+ generated: undefined;
3499
+ }, {}, {}>;
3500
+ parentSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3501
+ name: "parent_seed_local_id";
3502
+ tableName: "html_embedded_image_co_publish";
3503
+ dataType: "string";
3504
+ columnType: "SQLiteText";
3505
+ data: string;
3506
+ driverParam: string;
3507
+ notNull: true;
3508
+ hasDefault: false;
3509
+ isPrimaryKey: false;
3510
+ isAutoincrement: false;
3511
+ hasRuntimeDefault: false;
3512
+ enumValues: [string, ...string[]];
3513
+ baseColumn: never;
3514
+ identity: undefined;
3515
+ generated: undefined;
3516
+ }, {}, {
3517
+ length: number | undefined;
3518
+ }>;
3519
+ htmlSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3520
+ name: "html_seed_local_id";
3521
+ tableName: "html_embedded_image_co_publish";
3522
+ dataType: "string";
3523
+ columnType: "SQLiteText";
3524
+ data: string;
3525
+ driverParam: string;
3526
+ notNull: true;
3527
+ hasDefault: false;
3528
+ isPrimaryKey: false;
3529
+ isAutoincrement: false;
3530
+ hasRuntimeDefault: false;
3531
+ enumValues: [string, ...string[]];
3532
+ baseColumn: never;
3533
+ identity: undefined;
3534
+ generated: undefined;
3535
+ }, {}, {
3536
+ length: number | undefined;
3537
+ }>;
3538
+ imageSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3539
+ name: "image_seed_local_id";
3540
+ tableName: "html_embedded_image_co_publish";
3541
+ dataType: "string";
3542
+ columnType: "SQLiteText";
3543
+ data: string;
3544
+ driverParam: string;
3545
+ notNull: true;
3546
+ hasDefault: false;
3547
+ isPrimaryKey: false;
3548
+ isAutoincrement: false;
3549
+ hasRuntimeDefault: false;
3550
+ enumValues: [string, ...string[]];
3551
+ baseColumn: never;
3552
+ identity: undefined;
3553
+ generated: undefined;
3554
+ }, {}, {
3555
+ length: number | undefined;
3556
+ }>;
3557
+ stableKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3558
+ name: "stable_key";
3559
+ tableName: "html_embedded_image_co_publish";
3560
+ dataType: "string";
3561
+ columnType: "SQLiteText";
3562
+ data: string;
3563
+ driverParam: string;
3564
+ notNull: true;
3565
+ hasDefault: false;
3566
+ isPrimaryKey: false;
3567
+ isAutoincrement: false;
3568
+ hasRuntimeDefault: false;
3569
+ enumValues: [string, ...string[]];
3570
+ baseColumn: never;
3571
+ identity: undefined;
3572
+ generated: undefined;
3573
+ }, {}, {
3574
+ length: number | undefined;
3575
+ }>;
3576
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3577
+ name: "created_at";
3578
+ tableName: "html_embedded_image_co_publish";
3579
+ dataType: "number";
3580
+ columnType: "SQLiteInteger";
3581
+ data: number;
3582
+ driverParam: number;
3583
+ notNull: true;
3584
+ hasDefault: false;
3585
+ isPrimaryKey: false;
3586
+ isAutoincrement: false;
3587
+ hasRuntimeDefault: false;
3588
+ enumValues: undefined;
3589
+ baseColumn: never;
3590
+ identity: undefined;
3591
+ generated: undefined;
3592
+ }, {}, {}>;
3593
+ };
3594
+ dialect: "sqlite";
3595
+ }>;
3596
+ declare const modelRelations: import("drizzle-orm").Relations<"model_uids", {
3597
+ model: import("drizzle-orm").One<"models", false>;
3598
+ }>;
3599
+ declare const modelSchemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3600
+ name: "model_schemas";
3601
+ schema: undefined;
3602
+ columns: {
3603
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3604
+ name: "id";
3605
+ tableName: "model_schemas";
3606
+ dataType: "number";
3607
+ columnType: "SQLiteInteger";
3608
+ data: number;
3609
+ driverParam: number;
3610
+ notNull: true;
3611
+ hasDefault: true;
3612
+ isPrimaryKey: true;
3613
+ isAutoincrement: false;
3614
+ hasRuntimeDefault: false;
3615
+ enumValues: undefined;
3616
+ baseColumn: never;
3617
+ identity: undefined;
3618
+ generated: undefined;
3619
+ }, {}, {}>;
3620
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3621
+ name: "model_id";
3622
+ tableName: "model_schemas";
3623
+ dataType: "number";
3624
+ columnType: "SQLiteInteger";
3625
+ data: number;
3626
+ driverParam: number;
3627
+ notNull: false;
3628
+ hasDefault: false;
3629
+ isPrimaryKey: false;
3630
+ isAutoincrement: false;
3631
+ hasRuntimeDefault: false;
3632
+ enumValues: undefined;
3633
+ baseColumn: never;
3634
+ identity: undefined;
3635
+ generated: undefined;
3636
+ }, {}, {}>;
3637
+ schemaId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3638
+ name: "schema_id";
3639
+ tableName: "model_schemas";
3640
+ dataType: "number";
3641
+ columnType: "SQLiteInteger";
3642
+ data: number;
3643
+ driverParam: number;
3644
+ notNull: false;
3645
+ hasDefault: false;
3646
+ isPrimaryKey: false;
3647
+ isAutoincrement: false;
3648
+ hasRuntimeDefault: false;
3649
+ enumValues: undefined;
3650
+ baseColumn: never;
3651
+ identity: undefined;
3652
+ generated: undefined;
3653
+ }, {}, {}>;
3654
+ };
3655
+ dialect: "sqlite";
3656
+ }>;
3657
+ declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3658
+ name: "model_uids";
3659
+ schema: undefined;
3660
+ columns: {
3661
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3662
+ name: "id";
3663
+ tableName: "model_uids";
3664
+ dataType: "number";
3665
+ columnType: "SQLiteInteger";
3666
+ data: number;
3667
+ driverParam: number;
3668
+ notNull: true;
3669
+ hasDefault: true;
3670
+ isPrimaryKey: true;
3671
+ isAutoincrement: false;
3672
+ hasRuntimeDefault: false;
3673
+ enumValues: undefined;
3674
+ baseColumn: never;
3675
+ identity: undefined;
3676
+ generated: undefined;
3677
+ }, {}, {}>;
3678
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3679
+ name: "uid";
3680
+ tableName: "model_uids";
3681
+ dataType: "string";
3682
+ columnType: "SQLiteText";
3683
+ data: string;
3684
+ driverParam: string;
3685
+ notNull: true;
3686
+ hasDefault: false;
3687
+ isPrimaryKey: false;
3688
+ isAutoincrement: false;
3689
+ hasRuntimeDefault: false;
3690
+ enumValues: [string, ...string[]];
3691
+ baseColumn: never;
3692
+ identity: undefined;
3693
+ generated: undefined;
3694
+ }, {}, {
3695
+ length: number | undefined;
3696
+ }>;
3697
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3698
+ name: "model_id";
3699
+ tableName: "model_uids";
3700
+ dataType: "number";
3701
+ columnType: "SQLiteInteger";
3702
+ data: number;
3703
+ driverParam: number;
3704
+ notNull: true;
3705
+ hasDefault: false;
3706
+ isPrimaryKey: false;
3707
+ isAutoincrement: false;
3708
+ hasRuntimeDefault: false;
3709
+ enumValues: undefined;
3710
+ baseColumn: never;
3711
+ identity: undefined;
3712
+ generated: undefined;
3713
+ }, {}, {}>;
3714
+ };
3715
+ dialect: "sqlite";
3716
+ }>;
3717
+ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3718
+ name: "models";
3719
+ schema: undefined;
3720
+ columns: {
3721
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3722
+ name: "id";
3723
+ tableName: "models";
3724
+ dataType: "number";
3725
+ columnType: "SQLiteInteger";
3726
+ data: number;
3727
+ driverParam: number;
3728
+ notNull: true;
3729
+ hasDefault: true;
3730
+ isPrimaryKey: true;
3731
+ isAutoincrement: false;
3732
+ hasRuntimeDefault: false;
3733
+ enumValues: undefined;
3734
+ baseColumn: never;
3735
+ identity: undefined;
3736
+ generated: undefined;
3737
+ }, {}, {}>;
3738
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3739
+ name: "name";
3740
+ tableName: "models";
3741
+ dataType: "string";
3742
+ columnType: "SQLiteText";
3743
+ data: string;
3744
+ driverParam: string;
3745
+ notNull: true;
3746
+ hasDefault: false;
3747
+ isPrimaryKey: false;
3748
+ isAutoincrement: false;
3749
+ hasRuntimeDefault: false;
3750
+ enumValues: [string, ...string[]];
3751
+ baseColumn: never;
3752
+ identity: undefined;
3753
+ generated: undefined;
3754
+ }, {}, {
3755
+ length: number | undefined;
3756
+ }>;
3757
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3758
+ name: "schema_file_id";
3759
+ tableName: "models";
3760
+ dataType: "string";
3761
+ columnType: "SQLiteText";
3762
+ data: string;
3763
+ driverParam: string;
3764
+ notNull: false;
3765
+ hasDefault: false;
3766
+ isPrimaryKey: false;
3767
+ isAutoincrement: false;
3768
+ hasRuntimeDefault: false;
3769
+ enumValues: [string, ...string[]];
3770
+ baseColumn: never;
3771
+ identity: undefined;
3772
+ generated: undefined;
3773
+ }, {}, {
3774
+ length: number | undefined;
3775
+ }>;
3776
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3777
+ name: "is_edited";
3778
+ tableName: "models";
3779
+ dataType: "boolean";
3780
+ columnType: "SQLiteBoolean";
3781
+ data: boolean;
3782
+ driverParam: number;
3783
+ notNull: false;
3784
+ hasDefault: false;
3785
+ isPrimaryKey: false;
3786
+ isAutoincrement: false;
3787
+ hasRuntimeDefault: false;
3788
+ enumValues: undefined;
3789
+ baseColumn: never;
3790
+ identity: undefined;
3791
+ generated: undefined;
3792
+ }, {}, {}>;
3793
+ };
3794
+ dialect: "sqlite";
3795
+ }>;
3796
+ declare const modelsRelations: import("drizzle-orm").Relations<"models", {
3797
+ properties: import("drizzle-orm").Many<"properties">;
3798
+ }>;
3799
+ declare const properties: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3800
+ name: "properties";
3801
+ schema: undefined;
3802
+ columns: {
3803
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3804
+ name: "id";
3805
+ tableName: "properties";
3806
+ dataType: "number";
3807
+ columnType: "SQLiteInteger";
3808
+ data: number;
3809
+ driverParam: number;
3810
+ notNull: true;
3811
+ hasDefault: true;
3812
+ isPrimaryKey: true;
3813
+ isAutoincrement: false;
3814
+ hasRuntimeDefault: false;
3815
+ enumValues: undefined;
3816
+ baseColumn: never;
3817
+ identity: undefined;
3818
+ generated: undefined;
3819
+ }, {}, {}>;
3820
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3821
+ name: "name";
3822
+ tableName: "properties";
3823
+ dataType: "string";
3824
+ columnType: "SQLiteText";
3825
+ data: string;
3826
+ driverParam: string;
3827
+ notNull: true;
3828
+ hasDefault: false;
3829
+ isPrimaryKey: false;
3830
+ isAutoincrement: false;
3831
+ hasRuntimeDefault: false;
3832
+ enumValues: [string, ...string[]];
3833
+ baseColumn: never;
3834
+ identity: undefined;
3835
+ generated: undefined;
3836
+ }, {}, {
3837
+ length: number | undefined;
3838
+ }>;
3839
+ dataType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3840
+ name: "data_type";
3841
+ tableName: "properties";
3842
+ dataType: "string";
3843
+ columnType: "SQLiteText";
3844
+ data: string;
3845
+ driverParam: string;
3846
+ notNull: true;
3847
+ hasDefault: false;
3848
+ isPrimaryKey: false;
3849
+ isAutoincrement: false;
3850
+ hasRuntimeDefault: false;
3851
+ enumValues: [string, ...string[]];
3852
+ baseColumn: never;
3853
+ identity: undefined;
3854
+ generated: undefined;
3855
+ }, {}, {
3856
+ length: number | undefined;
3857
+ }>;
3858
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3859
+ name: "model_id";
3860
+ tableName: "properties";
3861
+ dataType: "number";
3862
+ columnType: "SQLiteInteger";
3863
+ data: number;
3864
+ driverParam: number;
3865
+ notNull: true;
3866
+ hasDefault: false;
3867
+ isPrimaryKey: false;
3868
+ isAutoincrement: false;
3869
+ hasRuntimeDefault: false;
3870
+ enumValues: undefined;
3871
+ baseColumn: never;
3872
+ identity: undefined;
3873
+ generated: undefined;
3874
+ }, {}, {}>;
3875
+ refModelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3876
+ name: "ref_model_id";
3877
+ tableName: "properties";
3878
+ dataType: "number";
3879
+ columnType: "SQLiteInteger";
3880
+ data: number;
3881
+ driverParam: number;
3882
+ notNull: false;
3883
+ hasDefault: false;
3884
+ isPrimaryKey: false;
3885
+ isAutoincrement: false;
3886
+ hasRuntimeDefault: false;
3887
+ enumValues: undefined;
3888
+ baseColumn: never;
3889
+ identity: undefined;
3890
+ generated: undefined;
3891
+ }, {}, {}>;
3892
+ refValueType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3893
+ name: "ref_value_type";
3894
+ tableName: "properties";
3895
+ dataType: "string";
3896
+ columnType: "SQLiteText";
3897
+ data: string;
3898
+ driverParam: string;
3899
+ notNull: false;
3900
+ hasDefault: false;
3901
+ isPrimaryKey: false;
3902
+ isAutoincrement: false;
3903
+ hasRuntimeDefault: false;
3904
+ enumValues: [string, ...string[]];
3905
+ baseColumn: never;
3906
+ identity: undefined;
3907
+ generated: undefined;
3908
+ }, {}, {
3909
+ length: number | undefined;
3910
+ }>;
3911
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3912
+ name: "schema_file_id";
3913
+ tableName: "properties";
3914
+ dataType: "string";
3915
+ columnType: "SQLiteText";
3916
+ data: string;
3917
+ driverParam: string;
3918
+ notNull: false;
3919
+ hasDefault: false;
3920
+ isPrimaryKey: false;
3921
+ isAutoincrement: false;
3922
+ hasRuntimeDefault: false;
3923
+ enumValues: [string, ...string[]];
3924
+ baseColumn: never;
3925
+ identity: undefined;
3926
+ generated: undefined;
3927
+ }, {}, {
3928
+ length: number | undefined;
3929
+ }>;
3930
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3931
+ name: "is_edited";
3932
+ tableName: "properties";
3933
+ dataType: "boolean";
3934
+ columnType: "SQLiteBoolean";
3935
+ data: boolean;
3936
+ driverParam: number;
3937
+ notNull: false;
3938
+ hasDefault: false;
3939
+ isPrimaryKey: false;
3940
+ isAutoincrement: false;
3941
+ hasRuntimeDefault: false;
3942
+ enumValues: undefined;
3943
+ baseColumn: never;
3944
+ identity: undefined;
3945
+ generated: undefined;
3946
+ }, {}, {}>;
3947
+ required: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3948
+ name: "required";
3949
+ tableName: "properties";
3950
+ dataType: "boolean";
3951
+ columnType: "SQLiteBoolean";
3952
+ data: boolean;
3953
+ driverParam: number;
3954
+ notNull: false;
3955
+ hasDefault: false;
3956
+ isPrimaryKey: false;
3957
+ isAutoincrement: false;
3958
+ hasRuntimeDefault: false;
3959
+ enumValues: undefined;
3960
+ baseColumn: never;
3961
+ identity: undefined;
3962
+ generated: undefined;
3963
+ }, {}, {}>;
3964
+ storageType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3965
+ name: "storage_type";
3966
+ tableName: "properties";
3967
+ dataType: "string";
3968
+ columnType: "SQLiteText";
3969
+ data: string;
3970
+ driverParam: string;
3971
+ notNull: false;
3972
+ hasDefault: false;
3973
+ isPrimaryKey: false;
3974
+ isAutoincrement: false;
3975
+ hasRuntimeDefault: false;
3976
+ enumValues: [string, ...string[]];
3977
+ baseColumn: never;
3978
+ identity: undefined;
3979
+ generated: undefined;
3980
+ }, {}, {
3981
+ length: number | undefined;
3982
+ }>;
3983
+ localStorageDir: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3984
+ name: "local_storage_dir";
3985
+ tableName: "properties";
3986
+ dataType: "string";
3987
+ columnType: "SQLiteText";
3988
+ data: string;
3989
+ driverParam: string;
3990
+ notNull: false;
3991
+ hasDefault: false;
3992
+ isPrimaryKey: false;
3993
+ isAutoincrement: false;
3994
+ hasRuntimeDefault: false;
3995
+ enumValues: [string, ...string[]];
3996
+ baseColumn: never;
3997
+ identity: undefined;
3998
+ generated: undefined;
3999
+ }, {}, {
4000
+ length: number | undefined;
4001
+ }>;
4002
+ filenameSuffix: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4003
+ name: "filename_suffix";
4004
+ tableName: "properties";
4005
+ dataType: "string";
4006
+ columnType: "SQLiteText";
4007
+ data: string;
4008
+ driverParam: string;
4009
+ notNull: false;
4010
+ hasDefault: false;
4011
+ isPrimaryKey: false;
4012
+ isAutoincrement: false;
4013
+ hasRuntimeDefault: false;
4014
+ enumValues: [string, ...string[]];
4015
+ baseColumn: never;
4016
+ identity: undefined;
4017
+ generated: undefined;
4018
+ }, {}, {
4019
+ length: number | undefined;
4020
+ }>;
4021
+ };
4022
+ dialect: "sqlite";
4023
+ }>;
4024
+ declare const propertiesRelations: import("drizzle-orm").Relations<"properties", {
4025
+ model: import("drizzle-orm").One<"models", false>;
4026
+ refModel: import("drizzle-orm").One<"models", false>;
4027
+ }>;
4028
+ declare const propertyUidRelations: import("drizzle-orm").Relations<"property_uids", {
4029
+ property: import("drizzle-orm").One<"properties", false>;
4030
+ }>;
4031
+ declare const propertyUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4032
+ name: "property_uids";
4033
+ schema: undefined;
4034
+ columns: {
4035
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4036
+ name: "id";
4037
+ tableName: "property_uids";
4038
+ dataType: "number";
4039
+ columnType: "SQLiteInteger";
4040
+ data: number;
4041
+ driverParam: number;
4042
+ notNull: true;
4043
+ hasDefault: true;
4044
+ isPrimaryKey: true;
4045
+ isAutoincrement: false;
4046
+ hasRuntimeDefault: false;
4047
+ enumValues: undefined;
4048
+ baseColumn: never;
4049
+ identity: undefined;
4050
+ generated: undefined;
4051
+ }, {}, {}>;
4052
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4053
+ name: "uid";
4054
+ tableName: "property_uids";
4055
+ dataType: "string";
4056
+ columnType: "SQLiteText";
4057
+ data: string;
4058
+ driverParam: string;
4059
+ notNull: true;
4060
+ hasDefault: false;
4061
+ isPrimaryKey: false;
4062
+ isAutoincrement: false;
4063
+ hasRuntimeDefault: false;
4064
+ enumValues: [string, ...string[]];
4065
+ baseColumn: never;
4066
+ identity: undefined;
4067
+ generated: undefined;
4068
+ }, {}, {
4069
+ length: number | undefined;
4070
+ }>;
4071
+ propertyId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4072
+ name: "property_id";
4073
+ tableName: "property_uids";
4074
+ dataType: "number";
4075
+ columnType: "SQLiteInteger";
4076
+ data: number;
4077
+ driverParam: number;
4078
+ notNull: true;
4079
+ hasDefault: false;
4080
+ isPrimaryKey: false;
4081
+ isAutoincrement: false;
4082
+ hasRuntimeDefault: false;
4083
+ enumValues: undefined;
4084
+ baseColumn: never;
4085
+ identity: undefined;
4086
+ generated: undefined;
4087
+ }, {}, {}>;
4088
+ };
4089
+ dialect: "sqlite";
4090
+ }>;
4091
+ declare const publishProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4092
+ name: "publish_processes";
4093
+ schema: undefined;
4094
+ columns: {
4095
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4096
+ name: "id";
4097
+ tableName: "publish_processes";
4098
+ dataType: "number";
4099
+ columnType: "SQLiteInteger";
4100
+ data: number;
4101
+ driverParam: number;
4102
+ notNull: true;
4103
+ hasDefault: true;
4104
+ isPrimaryKey: true;
4105
+ isAutoincrement: false;
4106
+ hasRuntimeDefault: false;
4107
+ enumValues: undefined;
4108
+ baseColumn: never;
4109
+ identity: undefined;
4110
+ generated: undefined;
4111
+ }, {}, {}>;
4112
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4113
+ name: "seed_local_id";
4114
+ tableName: "publish_processes";
4115
+ dataType: "string";
4116
+ columnType: "SQLiteText";
4117
+ data: string;
4118
+ driverParam: string;
4119
+ notNull: true;
4120
+ hasDefault: false;
4121
+ isPrimaryKey: false;
4122
+ isAutoincrement: false;
4123
+ hasRuntimeDefault: false;
4124
+ enumValues: [string, ...string[]];
4125
+ baseColumn: never;
4126
+ identity: undefined;
4127
+ generated: undefined;
4128
+ }, {}, {
4129
+ length: number | undefined;
4130
+ }>;
4131
+ modelName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4132
+ name: "model_name";
4133
+ tableName: "publish_processes";
4134
+ dataType: "string";
4135
+ columnType: "SQLiteText";
4136
+ data: string;
4137
+ driverParam: string;
4138
+ notNull: true;
4139
+ hasDefault: false;
4140
+ isPrimaryKey: false;
4141
+ isAutoincrement: false;
4142
+ hasRuntimeDefault: false;
4143
+ enumValues: [string, ...string[]];
4144
+ baseColumn: never;
4145
+ identity: undefined;
4146
+ generated: undefined;
4147
+ }, {}, {
4148
+ length: number | undefined;
4149
+ }>;
4150
+ schemaId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4151
+ name: "schema_id";
4152
+ tableName: "publish_processes";
4153
+ dataType: "string";
4154
+ columnType: "SQLiteText";
4155
+ data: string;
4156
+ driverParam: string;
4157
+ notNull: false;
4158
+ hasDefault: false;
4159
+ isPrimaryKey: false;
4160
+ isAutoincrement: false;
4161
+ hasRuntimeDefault: false;
4162
+ enumValues: [string, ...string[]];
4163
+ baseColumn: never;
4164
+ identity: undefined;
4165
+ generated: undefined;
4166
+ }, {}, {
4167
+ length: number | undefined;
4168
+ }>;
4169
+ status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4170
+ name: "status";
4171
+ tableName: "publish_processes";
4172
+ dataType: "string";
4173
+ columnType: "SQLiteText";
4174
+ data: string;
4175
+ driverParam: string;
4176
+ notNull: true;
4177
+ hasDefault: false;
4178
+ isPrimaryKey: false;
4179
+ isAutoincrement: false;
4180
+ hasRuntimeDefault: false;
4181
+ enumValues: [string, ...string[]];
4182
+ baseColumn: never;
4183
+ identity: undefined;
4184
+ generated: undefined;
4185
+ }, {}, {
4186
+ length: number | undefined;
4187
+ }>;
4188
+ startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4189
+ name: "started_at";
4190
+ tableName: "publish_processes";
4191
+ dataType: "number";
4192
+ columnType: "SQLiteInteger";
4193
+ data: number;
4194
+ driverParam: number;
4195
+ notNull: true;
4196
+ hasDefault: false;
4197
+ isPrimaryKey: false;
4198
+ isAutoincrement: false;
4199
+ hasRuntimeDefault: false;
4200
+ enumValues: undefined;
4201
+ baseColumn: never;
4202
+ identity: undefined;
4203
+ generated: undefined;
4204
+ }, {}, {}>;
4205
+ completedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4206
+ name: "completed_at";
4207
+ tableName: "publish_processes";
4208
+ dataType: "number";
4209
+ columnType: "SQLiteInteger";
4210
+ data: number;
4211
+ driverParam: number;
4212
+ notNull: false;
4213
+ hasDefault: false;
4214
+ isPrimaryKey: false;
4215
+ isAutoincrement: false;
4216
+ hasRuntimeDefault: false;
4217
+ enumValues: undefined;
4218
+ baseColumn: never;
4219
+ identity: undefined;
4220
+ generated: undefined;
4221
+ }, {}, {}>;
4222
+ errorMessage: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4223
+ name: "error_message";
4224
+ tableName: "publish_processes";
4225
+ dataType: "string";
4226
+ columnType: "SQLiteText";
4227
+ data: string;
4228
+ driverParam: string;
4229
+ notNull: false;
4230
+ hasDefault: false;
4231
+ isPrimaryKey: false;
4232
+ isAutoincrement: false;
4233
+ hasRuntimeDefault: false;
4234
+ enumValues: [string, ...string[]];
4235
+ baseColumn: never;
4236
+ identity: undefined;
4237
+ generated: undefined;
4238
+ }, {}, {
4239
+ length: number | undefined;
4240
+ }>;
4241
+ errorStep: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4242
+ name: "error_step";
4243
+ tableName: "publish_processes";
4244
+ dataType: "string";
4245
+ columnType: "SQLiteText";
4246
+ data: string;
4247
+ driverParam: string;
4248
+ notNull: false;
4249
+ hasDefault: false;
4250
+ isPrimaryKey: false;
4251
+ isAutoincrement: false;
4252
+ hasRuntimeDefault: false;
4253
+ enumValues: [string, ...string[]];
4254
+ baseColumn: never;
4255
+ identity: undefined;
4256
+ generated: undefined;
4257
+ }, {}, {
4258
+ length: number | undefined;
4259
+ }>;
4260
+ errorDetails: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4261
+ name: "error_details";
4262
+ tableName: "publish_processes";
4263
+ dataType: "string";
4264
+ columnType: "SQLiteText";
4265
+ data: string;
4266
+ driverParam: string;
4267
+ notNull: false;
4268
+ hasDefault: false;
4269
+ isPrimaryKey: false;
4270
+ isAutoincrement: false;
4271
+ hasRuntimeDefault: false;
4272
+ enumValues: [string, ...string[]];
4273
+ baseColumn: never;
4274
+ identity: undefined;
4275
+ generated: undefined;
4276
+ }, {}, {
4277
+ length: number | undefined;
4278
+ }>;
4279
+ errorCode: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4280
+ name: "error_code";
4281
+ tableName: "publish_processes";
4282
+ dataType: "string";
4283
+ columnType: "SQLiteText";
4284
+ data: string;
4285
+ driverParam: string;
4286
+ notNull: false;
4287
+ hasDefault: false;
4288
+ isPrimaryKey: false;
4289
+ isAutoincrement: false;
4290
+ hasRuntimeDefault: false;
4291
+ enumValues: [string, ...string[]];
4292
+ baseColumn: never;
4293
+ identity: undefined;
4294
+ generated: undefined;
4295
+ }, {}, {
4296
+ length: number | undefined;
4297
+ }>;
4298
+ persistedSnapshot: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4299
+ name: "persisted_snapshot";
4300
+ tableName: "publish_processes";
4301
+ dataType: "string";
4302
+ columnType: "SQLiteText";
4303
+ data: string;
4304
+ driverParam: string;
4305
+ notNull: true;
4306
+ hasDefault: false;
4307
+ isPrimaryKey: false;
4308
+ isAutoincrement: false;
4309
+ hasRuntimeDefault: false;
4310
+ enumValues: [string, ...string[]];
4311
+ baseColumn: never;
4312
+ identity: undefined;
4313
+ generated: undefined;
4314
+ }, {}, {
4315
+ length: number | undefined;
4316
+ }>;
4317
+ seedId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4318
+ name: "seed_id";
4319
+ tableName: "publish_processes";
4320
+ dataType: "string";
4321
+ columnType: "SQLiteText";
4322
+ data: string;
4323
+ driverParam: string;
4324
+ notNull: false;
4325
+ hasDefault: false;
4326
+ isPrimaryKey: false;
4327
+ isAutoincrement: false;
4328
+ hasRuntimeDefault: false;
4329
+ enumValues: [string, ...string[]];
4330
+ baseColumn: never;
4331
+ identity: undefined;
4332
+ generated: undefined;
4333
+ }, {}, {
4334
+ length: number | undefined;
4335
+ }>;
4336
+ existingSeedUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4337
+ name: "existing_seed_uid";
4338
+ tableName: "publish_processes";
4339
+ dataType: "string";
4340
+ columnType: "SQLiteText";
4341
+ data: string;
4342
+ driverParam: string;
4343
+ notNull: false;
4344
+ hasDefault: false;
4345
+ isPrimaryKey: false;
4346
+ isAutoincrement: false;
4347
+ hasRuntimeDefault: false;
4348
+ enumValues: [string, ...string[]];
4349
+ baseColumn: never;
4350
+ identity: undefined;
4351
+ generated: undefined;
4352
+ }, {}, {
4353
+ length: number | undefined;
4354
+ }>;
4355
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4356
+ name: "created_at";
4357
+ tableName: "publish_processes";
4358
+ dataType: "number";
4359
+ columnType: "SQLiteInteger";
4360
+ data: number;
4361
+ driverParam: number;
4362
+ notNull: false;
4363
+ hasDefault: false;
4364
+ isPrimaryKey: false;
4365
+ isAutoincrement: false;
4366
+ hasRuntimeDefault: false;
4367
+ enumValues: undefined;
4368
+ baseColumn: never;
4369
+ identity: undefined;
4370
+ generated: undefined;
4371
+ }, {}, {}>;
4372
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4373
+ name: "updated_at";
4374
+ tableName: "publish_processes";
4375
+ dataType: "number";
4376
+ columnType: "SQLiteInteger";
4377
+ data: number;
4378
+ driverParam: number;
4379
+ notNull: false;
4380
+ hasDefault: false;
4381
+ isPrimaryKey: false;
4382
+ isAutoincrement: false;
4383
+ hasRuntimeDefault: false;
4384
+ enumValues: undefined;
4385
+ baseColumn: never;
4386
+ identity: undefined;
4387
+ generated: undefined;
4388
+ }, {}, {}>;
4389
+ };
4390
+ dialect: "sqlite";
4391
+ }>;
4392
+ declare class SeedEventEmitter {
4393
+ listeners: Map<any, any>;
4394
+ on(event: any, listener: any): this;
4395
+ addListener(event: any, listener: any): this;
4396
+ once(event: any, listener: any): this;
4397
+ off(event: any, listener: any): this;
4398
+ removeListener(event: any, listener: any): this;
4399
+ removeAllListeners(event: any): this;
4400
+ /**
4401
+ * Calls every listener. A listener that throws is logged and skipped: the others still
4402
+ * run, and the error never reaches the SDK code that emitted the event (which may be
4403
+ * midway through a save).
4404
+ */
4405
+ emit(event: any, ...args: any[]): boolean;
4406
+ }
4407
+ declare function htmlPropertyFactory(opts: any): {
4408
+ htmlEmbeddedDataUriPolicy?: any;
4409
+ dataType: any;
4410
+ };
4411
+ declare const ZERO_ADDRESS: "0x0000000000000000000000000000000000000000";
4412
+ declare const ZERO_BYTES: "0x";
4413
+ /**
4414
+ * Returns model name by database model ID.
4415
+ */
4416
+ declare function getModelNameByModelId(modelId: any): Promise<any>;
4417
+ /**
4418
+ * Resolves modelName and dataType for a property by its schemaFileId (e.g. context.id).
4419
+ * Used when machine context lacks these (e.g. just-created property renamed before full context is set).
4420
+ */
4421
+ declare function getPropertyModelNameAndDataType(schemaFileId: any): Promise<{
4422
+ modelName: any;
4423
+ dataType: any;
4424
+ } | undefined>;
4425
+ /**
4426
+ * Get schema database ID from schema name or schemaFileId
4427
+ * @param schemaNameOrFileId - Schema name (string) or schemaFileId (string)
4428
+ * @returns Schema database ID
4429
+ * @throws Error if schema not found
4430
+ */
4431
+ declare function getSchemaId(schemaNameOrFileId: any): Promise<any>;
4432
+ /**
4433
+ * Get schema database ID from schemaFileId
4434
+ * @param schemaFileId - The schema file ID
4435
+ * @returns Schema database ID
4436
+ * @throws Error if schema not found
4437
+ */
4438
+ declare function getSchemaIdByFileId(schemaFileId: any): Promise<any>;
4439
+ /**
4440
+ * Migrate metadata rows when a property is renamed.
4441
+ * Updates metadata.propertyName from old to new for all rows that reference the renamed property.
4442
+ * Called from renameModelProperty to prevent duplicate ItemProperties.
4443
+ * @param modelName - Model name (PascalCase)
4444
+ * @param oldPropertyName - Current property name before rename
4445
+ * @param newPropertyName - New property name after rename
4446
+ * @param propertySchemaFileId - Optional schema file ID for the property (most reliable lookup)
4447
+ * @returns Count of metadata rows updated
4448
+ */
4449
+ declare function migrateMetadataForPropertyRename(modelName: any, oldPropertyName: any, newPropertyName: any, propertySchemaFileId: any, scope?: {}): Promise<any>;
4450
+ /**
4451
+ * Moves a renamed property's metadata rows to its new name: rows linked by propertyId, and legacy
4452
+ * rows without one by name and model type. Each stored form of the name moves to the same form of
4453
+ * the new one: the key (`author` → `writer`), a single relation's `<key>Id` (`authorId` →
4454
+ * `writerId`), a list relation's storage name (`authorIdentityIds` → `writerIdentityIds`).
4455
+ * Returns the number of rows moved.
4456
+ */
4457
+ declare function moveMetadataToRenamedProperty(db: any, { propertyId, modelType, oldName, newName, propertyDef, }: {
4458
+ propertyId: any;
4459
+ modelType: any;
4460
+ oldName: any;
4461
+ newName: any;
4462
+ propertyDef: any;
4463
+ }): Promise<number>;
4464
+ /**
4465
+ * The `properties` storage columns for a property definition, in either the internal shape
4466
+ * (`storageType`, `localStorageDir`, `filenameSuffix`) or the schema-file shape
4467
+ * (`storage: { type, path, extension }`). All null when the definition has no storage config.
4468
+ */
4469
+ declare function propertyStorageColumns(def: any): {
4470
+ storageType: any;
4471
+ localStorageDir: any;
4472
+ filenameSuffix: any;
4473
+ };
4474
+ export { getItemStorageSubdir as $, schemas as A, BaseDb as B, seeds as C, DEFAULT_TEXT_MAX_LENGTH as D, uploadProcesses as E, versions as F, resolveStorageNameToSchemaName as G, AmbiguousModelError as H, eventEmitter as I, nameMatchLevels as J, getPropertyIdForModelAndName as K, resolveItemModelFileId as L, ModelPropertyDataTypes as M, addModelsToDb as N, INIT_SCRIPT_SUCCESS_MESSAGE as O, Property as P, getCorrectId as Q, isPublishedSeedRef as R, SCHEMA_TS as S, THtmlEmbeddedDataUriPolicy as T, normalizeRelationPropertyValue as U, resolveSeedIdsFromRefString as V, getArweaveUrlForTransaction as W, INTERNAL_STORAGE_MODEL_FILE_IDS as X, getStorageDirForDataType as Y, getContentSha256 as Z, buildArweaveContentTags as _, TProperty as a, toSchemaPropertyName as a$, getItemStorageLocalFileName as a0, isNode as a1, ZERO_BYTES32 as a2, resolveModelRecord as a3, getItemModelScope as a4, VERSION_SCHEMA_UID as a5, INTERNAL_PROPERTY_NAMES as a6, isStorageSeedRef as a7, defaultAttestationData as a8, INTERNAL_DATA_TYPES as a9, contentSha256TagMatches as aA, ensureImageLocal as aB, getAddressesForItemsFilter as aC, getFeedItemStringField as aD, normalizeAddressConfig as aE, normalizeAddressList as aF, normalizeArweaveTxIdForEnsure as aG, normalizeFeedItemFields as aH, resolveMediaRef as aI, isInternalSchema as aJ, writeModelToDb as aK, writePropertyToDb as aL, addSchemaToDb as aM, renameModelInDb as aN, currentNameMatchLevels as aO, loadModelsFromDbForSchema as aP, mergeDbModelsIntoSchemaModels as aQ, clearNameMatchLevels as aR, isTestOrSeedDev as aS, downloadAllFilesRequestHandler as aT, downloadAllFilesBinaryRequestHandler as aU, warnOnInvalidNameMatch as aV, INTERNAL_SCHEMA_IDS as aW, linkModelToSchema as aX, getWatchedAddressesFromDb as aY, getOwnedAddressesFromDb as aZ, CLIENT_NOT_INITIALIZED as a_, listRelationEasPropertyName as aa, easPropertyNameForPublish as ab, isBrowser as ac, EAS_SEED_DATA_SYNCED_TO_DB_EVENT as ad, normalizePublisher as ae, getAllAddressesFromDb as af, loadNameMatchLevels as ag, scheduleBulkFilesDownloadFromEasSync as ah, generateId as ai, normalizeHexAddress as aj, toMetadataPropertyName as ak, getItemStoragePropertiesForModel as al, SEED_CONFIG_FILE as am, SEED_CONFIG_FALLBACKS as an, getModelIdByFileId as ao, getModelId as ap, setCachedPropertyRefresher as aq, CONTENT_SHA256_TAG as ar, CONTENT_TYPE_TAG as as, ImageSize as at, SEED_PROTOCOL_SCHEMA_NAME as au, SeedModels as av, VERSION_SCHEMA_DEF as aw, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as ax, classifyMediaRef as ay, closestImageSize as az, TPropertyConstructor as b, easSchemaDefinitionForProperty as b0, getStorageTransactionIdForSeedUid as b1, convertTxIdToImage as b2, getMetadataPropertyNamesForQuery as b3, downloadTransactionIdWithDedupe as b4, resolveMetadataRecord as b5, getPropertyIdForSchemaFileId as b6, getDataTypeFromString as b7, getMimeType as b8, listRelationStoragePropertyName as b9, PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP as ba, getAlternatePropertyNameForInstanceLookup as bb, BaseDb$1 as bc, ModelSchema as bd, BaseFileManager$1 as be, SchemaSchema as bf, ModelSchemaSchema as bg, resolveModelRecord$1 as bh, db as bi, download as bj, generateId$1 as bk, TPropertyDataType as c, TPropertyDefs as d, TStorageType as e, TValidationRules as f, normalizePropertyRecordSchema as g, BaseFileManager as h, isDataType as i, appState as j, arweaveL1FinalizeJobs as k, config as l, metadata as m, normalizeDataType as n, easSyncProcesses as o, htmlEmbeddedImageCoPublish as p, modelRelations as q, modelSchemas as r, modelUids as s, models as t, modelsRelations as u, properties as v, propertiesRelations as w, propertyUidRelations as x, propertyUids as y, publishProcesses as z };
4475
+ //# sourceMappingURL=index-CrvIcVFJ.d.ts.map