@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,118 @@
1
+ /**
2
+ * Service for validating schemas, models, and properties using TypeBox
3
+ */
4
+ export class SchemaValidationService {
5
+ /**
6
+ * Enhance TypeBox error message with expected values for union/literal types
7
+ */
8
+ enhanceErrorMessage(error: any, schema: any, fieldPath: any): any;
9
+ /**
10
+ * Extract expected values from a schema for a given field path
11
+ */
12
+ extractExpectedValues(schema: any, fieldPath: any): any;
13
+ /**
14
+ * Extract literal value from a schema
15
+ */
16
+ extractLiteralValue(schema: any, fieldPath: any): any;
17
+ /**
18
+ * Get the schema for a specific field path
19
+ */
20
+ getSchemaForField(schema: any, fieldPath: any): any;
21
+ /**
22
+ * Validate a property structure against TProperty schema
23
+ */
24
+ validatePropertyStructure(property: any): {
25
+ isValid: boolean;
26
+ errors: {
27
+ field: string;
28
+ message: any;
29
+ code: string;
30
+ severity: string;
31
+ }[];
32
+ };
33
+ /**
34
+ * Validate a property value against its validation rules
35
+ * @param value - The value to validate
36
+ * @param dataType - The property's data type
37
+ * @param validationRules - Optional validation rules (enum, pattern, minLength, maxLength)
38
+ * @param refValueType - For List properties: the element type (Text, Number, etc.). When set, each array element is validated against this type + validationRules.
39
+ */
40
+ validatePropertyValue(value: any, dataType: any, validationRules: any, refValueType: any): any;
41
+ /**
42
+ * Validate a specific property within a schema
43
+ */
44
+ validateProperty(schema: any, modelName: any, propertyName: any, propertyData: any): {
45
+ isValid: boolean;
46
+ errors: {
47
+ field: string;
48
+ message: any;
49
+ code: string;
50
+ severity: string;
51
+ }[];
52
+ };
53
+ /**
54
+ * Validate model structure (basic structure checks)
55
+ */
56
+ validateModelStructure(model: any): {
57
+ isValid: boolean;
58
+ errors: {
59
+ field: string;
60
+ message: string;
61
+ code: string;
62
+ severity: string;
63
+ }[];
64
+ };
65
+ /**
66
+ * Validate a model against a schema WITHOUT requiring it to be in the schema's context
67
+ * This allows validation before registration, preventing update loops
68
+ */
69
+ validateModelAgainstSchema(schema: any, modelName: any, modelData: any): {
70
+ isValid: boolean;
71
+ errors: {
72
+ field: string;
73
+ message: any;
74
+ code: string;
75
+ severity: string;
76
+ }[];
77
+ };
78
+ /**
79
+ * Validate a model within a schema (requires model to already be in schema context)
80
+ */
81
+ validateModel(schema: any, modelName: any, modelData: any): {
82
+ isValid: boolean;
83
+ errors: {
84
+ field: string;
85
+ message: any;
86
+ code: string;
87
+ severity: string;
88
+ }[];
89
+ };
90
+ /**
91
+ * Validate entire schema
92
+ */
93
+ validateSchema(schema: any): {
94
+ isValid: boolean;
95
+ errors: {
96
+ field: string;
97
+ message: any;
98
+ code: string;
99
+ severity: string;
100
+ }[];
101
+ };
102
+ /**
103
+ * Get base TypeBox schema for a data type
104
+ */
105
+ getBaseSchemaForDataType(dataType: any): import("@sinclair/typebox").TString | import("@sinclair/typebox").TNumber | import("@sinclair/typebox").TAny | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny> | import("@sinclair/typebox").TBoolean | import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
106
+ /**
107
+ * Apply validation rules to a TypeBox schema. For Text and Html, pattern, minLength and
108
+ * maxLength combine into one string schema; enum further restricts the value to its list.
109
+ * (Each rule used to replace the schema built so far, so e.g. Text's default maxLength
110
+ * silently dropped any pattern.)
111
+ */
112
+ applyValidationRules(schema: any, dataType: any, rules: any): any;
113
+ /**
114
+ * Validate custom validation rules
115
+ */
116
+ validateCustomRules(value: any, rules: any): any[];
117
+ }
118
+ //# sourceMappingURL=SchemaValidationService-DXQ-D531.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaValidationService-DXQ-D531.d.ts","sourceRoot":"","sources":["../SchemaValidationService-DXQ-D531.js"],"names":[],"mappings":"AA8BA;;GAEG;AACH;IACI;;OAEG;IACH,kEAqBC;IACD;;OAEG;IACH,wDAyDC;IACD;;OAEG;IACH,sDAgBC;IACD;;OAEG;IACH,oDA8BC;IACD;;OAEG;IACH;;;;;;;;MA2HC;IACD;;;;;;OAMG;IACH,+FAsJC;IACD;;OAEG;IACH;;;;;;;;MA2GC;IACD;;OAEG;IACH;;;;;;;;MAiCC;IACD;;;OAGG;IACH;;;;;;;;MAcC;IACD;;OAEG;IACH;;;;;;;;MA4BC;IACD;;OAEG;IACH;;;;;;;;MA4CC;IACD;;OAEG;IACH,mXAsBC;IACD;;;;;OAKG;IACH,kEA0BC;IACD;;OAEG;IACH,mDAOC;CACJ"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Backfill metadata.property_id for rows that have model_type and property_name
3
+ * but property_id is null. Run after migrations. Idempotent - only updates NULL rows.
4
+ * Call after appDb is set (e.g. at end of prepareDb).
5
+ */
6
+ export function backfillMetadataPropertyIds(): Promise<number>;
7
+ //# sourceMappingURL=backfillMetadataPropertyIds-Uhzlwg9X.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backfillMetadataPropertyIds-Uhzlwg9X.d.ts","sourceRoot":"","sources":["../backfillMetadataPropertyIds-Uhzlwg9X.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,+DA4CC"}
@@ -0,0 +1,30 @@
1
+ declare class BasePathResolver {
2
+ static configure(impl: any): void;
3
+ static createForTesting(impl: any): {
4
+ restore(): void;
5
+ };
6
+ static requireImpl(): any;
7
+ /**
8
+ * @deprecated Prefer static facade methods (e.g. BasePathResolver.getDotSeedDir()).
9
+ */
10
+ static getInstance(): any;
11
+ static getRootWithNodeModules(): any;
12
+ static getSdkRootDir(): any;
13
+ static getNodeModulesDir(): any;
14
+ static getDotSeedDir(schemaFileDir: any): any;
15
+ static findConfigFile(searchDir: any): any;
16
+ static getAppPaths(schemaFileDir: any): any;
17
+ }
18
+ declare namespace BasePathResolver {
19
+ let _impl: any;
20
+ }
21
+ declare var configurePlatform$1: Readonly<{
22
+ __proto__: null;
23
+ configurePlatform: typeof configurePlatform;
24
+ }>;
25
+ /**
26
+ * Wire all platform facades to the given service instances.
27
+ */
28
+ declare function configurePlatform(services: any): void;
29
+ export { BasePathResolver as B, configurePlatform$1 as a, configurePlatform as c };
30
+ //# sourceMappingURL=configurePlatform-CVoh3JeR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurePlatform-CVoh3JeR.d.ts","sourceRoot":"","sources":["../configurePlatform-CVoh3JeR.js"],"names":[],"mappings":"AAiBA;IACI,kCAKC;IACD;;MAIC;IACD,0BAKC;IACD;;OAEG;IACH,0BAEC;IACD,qCAEC;IACD,4BAEC;IACD,gCAEC;IACD,8CAEC;IACD,2CAEC;IACD,4CAEC;CACJ;;;;AAeD;;;GAGG;AAfH;;GAEG;AACH,wDAOC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Before deleting model rows: detach their properties' rows (as above), drop the models' EAS
3
+ * uid mappings, and clear relation properties elsewhere that point at them (ref_model_id).
4
+ */
5
+ export function detachModelRows(db: any, modelIds: any): Promise<void>;
6
+ /**
7
+ * Before deleting property rows: unlink stored item values (metadata.property_id → NULL; the
8
+ * values stay, keyed by property name) and drop the properties' EAS uid mappings. Without this,
9
+ * Node (libsql enforces foreign keys) fails the delete as soon as an item has a value, and the
10
+ * browser leaves rows pointing at deleted ids.
11
+ */
12
+ export function detachPropertyRows(db: any, propertyIds: any): Promise<void>;
13
+ //# sourceMappingURL=detachRowsBeforeDelete-CtmIFpgV.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detachRowsBeforeDelete-CtmIFpgV.d.ts","sourceRoot":"","sources":["../detachRowsBeforeDelete-CtmIFpgV.js"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,uEAWC;AA5BD;;;;;GAKG;AACH,6EAMC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Removes a draft that Item.create wrote and then failed to finish: the seed, its versions and
3
+ * property rows, the storage seeds its property rows point at (Html, Image, File), and the files
4
+ * those rows name. Only for a seed created in this call: it deletes rows, it doesn't soft-delete.
5
+ * File deletion is best-effort.
6
+ */
7
+ export function discardNewDraft(seedLocalId: any): Promise<void>;
8
+ //# sourceMappingURL=discardNewDraft-oGYdB5vS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discardNewDraft-oGYdB5vS.d.ts","sourceRoot":"","sources":["../discardNewDraft-oGYdB5vS.js"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,iEA2CC"}
@@ -0,0 +1,12 @@
1
+ /** Stays in SDK: depends on local Model registry. */
2
+ export function getModelSchemasFromEas(): Promise<{
3
+ __typename?: "Schema";
4
+ id: string;
5
+ schema: string;
6
+ schemaNames: Array<{
7
+ __typename?: "SchemaName";
8
+ name: string;
9
+ }>;
10
+ }[]>;
11
+ export { PUBLISHED_BY_SCHEMA_DEF, PUBLISHED_BY_SCHEMA_NAME, decodePublishedByData, getCanonicalItemPropertiesFromEas, getEasSchemaUidBySchemaName, getItemPropertiesFromEas, getItemVersionsFromEas, getPublishedByFromEas, getSeedUidsBySchemaName, getSeedsBySchemaName, getSeedsFromSchemaUids, hashPublishedByBatch, verifyPublishedByBatch } from "@seedprotocol/eas";
12
+ //# sourceMappingURL=eas-CSm5wmry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eas-CSm5wmry.d.ts","sourceRoot":"","sources":["../eas-CSm5wmry.js"],"names":[],"mappings":"AAkBA,qDAAqD;AACrD;;;;;kBAiD8u9F,CAAC;;;KAJ9u9F"}