@walde.ai/walde-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +5 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/sdk/contracts/frontend-content/v1/content-format-v1.d.ts +8 -0
  8. package/dist/sdk/contracts/frontend-content/v1/content-format-v1.d.ts.map +1 -0
  9. package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js +2 -0
  10. package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js.map +1 -0
  11. package/dist/sdk/contracts/frontend-content/v1/content-part-v1.d.ts +8 -0
  12. package/dist/sdk/contracts/frontend-content/v1/content-part-v1.d.ts.map +1 -0
  13. package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js +2 -0
  14. package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js.map +1 -0
  15. package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.d.ts +13 -0
  16. package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.d.ts.map +1 -0
  17. package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js +2 -0
  18. package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js.map +1 -0
  19. package/dist/sdk/contracts/manifest/v1/manifest-content-v1.d.ts +12 -0
  20. package/dist/sdk/contracts/manifest/v1/manifest-content-v1.d.ts.map +1 -0
  21. package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js +2 -0
  22. package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js.map +1 -0
  23. package/dist/sdk/contracts/manifest/v1/manifest-v1.d.ts +9 -0
  24. package/dist/sdk/contracts/manifest/v1/manifest-v1.d.ts.map +1 -0
  25. package/dist/sdk/contracts/manifest/v1/manifest-v1.js +2 -0
  26. package/dist/sdk/contracts/manifest/v1/manifest-v1.js.map +1 -0
  27. package/dist/sdk/domain/entities/content-format.d.ts +9 -0
  28. package/dist/sdk/domain/entities/content-format.d.ts.map +1 -0
  29. package/dist/sdk/domain/entities/content-format.js +12 -0
  30. package/dist/sdk/domain/entities/content-format.js.map +1 -0
  31. package/dist/sdk/domain/entities/content-part.d.ts +26 -0
  32. package/dist/sdk/domain/entities/content-part.d.ts.map +1 -0
  33. package/dist/sdk/domain/entities/content-part.js +36 -0
  34. package/dist/sdk/domain/entities/content-part.js.map +1 -0
  35. package/dist/sdk/domain/entities/content-state.d.ts +8 -0
  36. package/dist/sdk/domain/entities/content-state.d.ts.map +1 -0
  37. package/dist/sdk/domain/entities/content-state.js +9 -0
  38. package/dist/sdk/domain/entities/content-state.js.map +1 -0
  39. package/dist/sdk/domain/entities/content-version.d.ts +27 -0
  40. package/dist/sdk/domain/entities/content-version.d.ts.map +1 -0
  41. package/dist/sdk/domain/entities/content-version.js +37 -0
  42. package/dist/sdk/domain/entities/content-version.js.map +1 -0
  43. package/dist/sdk/domain/entities/content.d.ts +21 -0
  44. package/dist/sdk/domain/entities/content.d.ts.map +1 -0
  45. package/dist/sdk/domain/entities/content.js +26 -0
  46. package/dist/sdk/domain/entities/content.js.map +1 -0
  47. package/dist/sdk/domain/entities/credentials.d.ts +14 -0
  48. package/dist/sdk/domain/entities/credentials.d.ts.map +1 -0
  49. package/dist/sdk/domain/entities/credentials.js +20 -0
  50. package/dist/sdk/domain/entities/credentials.js.map +1 -0
  51. package/dist/sdk/domain/entities/dns-entry.d.ts +10 -0
  52. package/dist/sdk/domain/entities/dns-entry.d.ts.map +1 -0
  53. package/dist/sdk/domain/entities/dns-entry.js +14 -0
  54. package/dist/sdk/domain/entities/dns-entry.js.map +1 -0
  55. package/dist/sdk/domain/entities/file.d.ts +14 -0
  56. package/dist/sdk/domain/entities/file.d.ts.map +1 -0
  57. package/dist/sdk/domain/entities/file.js +17 -0
  58. package/dist/sdk/domain/entities/file.js.map +1 -0
  59. package/dist/sdk/domain/entities/format-part.d.ts +16 -0
  60. package/dist/sdk/domain/entities/format-part.d.ts.map +1 -0
  61. package/dist/sdk/domain/entities/format-part.js +2 -0
  62. package/dist/sdk/domain/entities/format-part.js.map +1 -0
  63. package/dist/sdk/domain/entities/format.d.ts +14 -0
  64. package/dist/sdk/domain/entities/format.d.ts.map +1 -0
  65. package/dist/sdk/domain/entities/format.js +23 -0
  66. package/dist/sdk/domain/entities/format.js.map +1 -0
  67. package/dist/sdk/domain/entities/frontend-content.d.ts +13 -0
  68. package/dist/sdk/domain/entities/frontend-content.d.ts.map +1 -0
  69. package/dist/sdk/domain/entities/frontend-content.js +16 -0
  70. package/dist/sdk/domain/entities/frontend-content.js.map +1 -0
  71. package/dist/sdk/domain/entities/key-value-part.d.ts +20 -0
  72. package/dist/sdk/domain/entities/key-value-part.d.ts.map +1 -0
  73. package/dist/sdk/domain/entities/key-value-part.js +31 -0
  74. package/dist/sdk/domain/entities/key-value-part.js.map +1 -0
  75. package/dist/sdk/domain/entities/manifest-content.d.ts +12 -0
  76. package/dist/sdk/domain/entities/manifest-content.d.ts.map +1 -0
  77. package/dist/sdk/domain/entities/manifest-content.js +18 -0
  78. package/dist/sdk/domain/entities/manifest-content.js.map +1 -0
  79. package/dist/sdk/domain/entities/manifest.d.ts +9 -0
  80. package/dist/sdk/domain/entities/manifest.d.ts.map +1 -0
  81. package/dist/sdk/domain/entities/manifest.js +10 -0
  82. package/dist/sdk/domain/entities/manifest.js.map +1 -0
  83. package/dist/sdk/domain/entities/markdown-part.d.ts +14 -0
  84. package/dist/sdk/domain/entities/markdown-part.d.ts.map +1 -0
  85. package/dist/sdk/domain/entities/markdown-part.js +15 -0
  86. package/dist/sdk/domain/entities/markdown-part.js.map +1 -0
  87. package/dist/sdk/domain/entities/site.d.ts +16 -0
  88. package/dist/sdk/domain/entities/site.d.ts.map +1 -0
  89. package/dist/sdk/domain/entities/site.js +21 -0
  90. package/dist/sdk/domain/entities/site.js.map +1 -0
  91. package/dist/sdk/domain/entities/string-part.d.ts +14 -0
  92. package/dist/sdk/domain/entities/string-part.d.ts.map +1 -0
  93. package/dist/sdk/domain/entities/string-part.js +15 -0
  94. package/dist/sdk/domain/entities/string-part.js.map +1 -0
  95. package/dist/sdk/domain/entities/ui-upload-credentials.d.ts +22 -0
  96. package/dist/sdk/domain/entities/ui-upload-credentials.d.ts.map +1 -0
  97. package/dist/sdk/domain/entities/ui-upload-credentials.js +38 -0
  98. package/dist/sdk/domain/entities/ui-upload-credentials.js.map +1 -0
  99. package/dist/sdk/domain/entities/walde-admin-config.d.ts +51 -0
  100. package/dist/sdk/domain/entities/walde-admin-config.d.ts.map +1 -0
  101. package/dist/sdk/domain/entities/walde-admin-config.js +69 -0
  102. package/dist/sdk/domain/entities/walde-admin-config.js.map +1 -0
  103. package/dist/sdk/domain/entities/workspace-config.d.ts +20 -0
  104. package/dist/sdk/domain/entities/workspace-config.d.ts.map +1 -0
  105. package/dist/sdk/domain/entities/workspace-config.js +17 -0
  106. package/dist/sdk/domain/entities/workspace-config.js.map +1 -0
  107. package/dist/sdk/domain/errors/index.d.ts +11 -0
  108. package/dist/sdk/domain/errors/index.d.ts.map +1 -0
  109. package/dist/sdk/domain/errors/index.js +11 -0
  110. package/dist/sdk/domain/errors/index.js.map +1 -0
  111. package/dist/sdk/domain/errors/walde-authentication-error.d.ts +21 -0
  112. package/dist/sdk/domain/errors/walde-authentication-error.d.ts.map +1 -0
  113. package/dist/sdk/domain/errors/walde-authentication-error.js +23 -0
  114. package/dist/sdk/domain/errors/walde-authentication-error.js.map +1 -0
  115. package/dist/sdk/domain/errors/walde-configuration-error.d.ts +21 -0
  116. package/dist/sdk/domain/errors/walde-configuration-error.d.ts.map +1 -0
  117. package/dist/sdk/domain/errors/walde-configuration-error.js +23 -0
  118. package/dist/sdk/domain/errors/walde-configuration-error.js.map +1 -0
  119. package/dist/sdk/domain/errors/walde-error.d.ts +9 -0
  120. package/dist/sdk/domain/errors/walde-error.d.ts.map +1 -0
  121. package/dist/sdk/domain/errors/walde-error.js +12 -0
  122. package/dist/sdk/domain/errors/walde-error.js.map +1 -0
  123. package/dist/sdk/domain/errors/walde-local-error.d.ts +22 -0
  124. package/dist/sdk/domain/errors/walde-local-error.d.ts.map +1 -0
  125. package/dist/sdk/domain/errors/walde-local-error.js +24 -0
  126. package/dist/sdk/domain/errors/walde-local-error.js.map +1 -0
  127. package/dist/sdk/domain/errors/walde-network-error.d.ts +21 -0
  128. package/dist/sdk/domain/errors/walde-network-error.d.ts.map +1 -0
  129. package/dist/sdk/domain/errors/walde-network-error.js +23 -0
  130. package/dist/sdk/domain/errors/walde-network-error.js.map +1 -0
  131. package/dist/sdk/domain/errors/walde-system-error.d.ts +10 -0
  132. package/dist/sdk/domain/errors/walde-system-error.d.ts.map +1 -0
  133. package/dist/sdk/domain/errors/walde-system-error.js +13 -0
  134. package/dist/sdk/domain/errors/walde-system-error.js.map +1 -0
  135. package/dist/sdk/domain/errors/walde-unexpected-error.d.ts +21 -0
  136. package/dist/sdk/domain/errors/walde-unexpected-error.d.ts.map +1 -0
  137. package/dist/sdk/domain/errors/walde-unexpected-error.js +23 -0
  138. package/dist/sdk/domain/errors/walde-unexpected-error.js.map +1 -0
  139. package/dist/sdk/domain/errors/walde-usage-error.d.ts +21 -0
  140. package/dist/sdk/domain/errors/walde-usage-error.d.ts.map +1 -0
  141. package/dist/sdk/domain/errors/walde-usage-error.js +23 -0
  142. package/dist/sdk/domain/errors/walde-usage-error.js.map +1 -0
  143. package/dist/sdk/domain/errors/walde-user-error.d.ts +9 -0
  144. package/dist/sdk/domain/errors/walde-user-error.d.ts.map +1 -0
  145. package/dist/sdk/domain/errors/walde-user-error.js +11 -0
  146. package/dist/sdk/domain/errors/walde-user-error.js.map +1 -0
  147. package/dist/sdk/domain/errors/walde-validation-error.d.ts +20 -0
  148. package/dist/sdk/domain/errors/walde-validation-error.d.ts.map +1 -0
  149. package/dist/sdk/domain/errors/walde-validation-error.js +22 -0
  150. package/dist/sdk/domain/errors/walde-validation-error.js.map +1 -0
  151. package/dist/sdk/domain/interactors/api-call.d.ts +19 -0
  152. package/dist/sdk/domain/interactors/api-call.d.ts.map +1 -0
  153. package/dist/sdk/domain/interactors/api-call.js +31 -0
  154. package/dist/sdk/domain/interactors/api-call.js.map +1 -0
  155. package/dist/sdk/domain/interactors/associate-site-certificates.d.ts +11 -0
  156. package/dist/sdk/domain/interactors/associate-site-certificates.d.ts.map +1 -0
  157. package/dist/sdk/domain/interactors/associate-site-certificates.js +20 -0
  158. package/dist/sdk/domain/interactors/associate-site-certificates.js.map +1 -0
  159. package/dist/sdk/domain/interactors/content/list-contents.d.ts +16 -0
  160. package/dist/sdk/domain/interactors/content/list-contents.d.ts.map +1 -0
  161. package/dist/sdk/domain/interactors/content/list-contents.js +18 -0
  162. package/dist/sdk/domain/interactors/content/list-contents.js.map +1 -0
  163. package/dist/sdk/domain/interactors/content/parse-content-file.d.ts +19 -0
  164. package/dist/sdk/domain/interactors/content/parse-content-file.d.ts.map +1 -0
  165. package/dist/sdk/domain/interactors/content/parse-content-file.js +68 -0
  166. package/dist/sdk/domain/interactors/content/parse-content-file.js.map +1 -0
  167. package/dist/sdk/domain/interactors/content/push-content.d.ts +21 -0
  168. package/dist/sdk/domain/interactors/content/push-content.d.ts.map +1 -0
  169. package/dist/sdk/domain/interactors/content/push-content.js +31 -0
  170. package/dist/sdk/domain/interactors/content/push-content.js.map +1 -0
  171. package/dist/sdk/domain/interactors/create-site.d.ts +9 -0
  172. package/dist/sdk/domain/interactors/create-site.d.ts.map +1 -0
  173. package/dist/sdk/domain/interactors/create-site.js +19 -0
  174. package/dist/sdk/domain/interactors/create-site.js.map +1 -0
  175. package/dist/sdk/domain/interactors/get-credentials.d.ts +14 -0
  176. package/dist/sdk/domain/interactors/get-credentials.d.ts.map +1 -0
  177. package/dist/sdk/domain/interactors/get-credentials.js +16 -0
  178. package/dist/sdk/domain/interactors/get-credentials.js.map +1 -0
  179. package/dist/sdk/domain/interactors/get-token.d.ts +13 -0
  180. package/dist/sdk/domain/interactors/get-token.d.ts.map +1 -0
  181. package/dist/sdk/domain/interactors/get-token.js +21 -0
  182. package/dist/sdk/domain/interactors/get-token.js.map +1 -0
  183. package/dist/sdk/domain/interactors/list-sites.d.ts +9 -0
  184. package/dist/sdk/domain/interactors/list-sites.d.ts.map +1 -0
  185. package/dist/sdk/domain/interactors/list-sites.js +17 -0
  186. package/dist/sdk/domain/interactors/list-sites.js.map +1 -0
  187. package/dist/sdk/domain/interactors/refresh-credentials.d.ts +16 -0
  188. package/dist/sdk/domain/interactors/refresh-credentials.d.ts.map +1 -0
  189. package/dist/sdk/domain/interactors/refresh-credentials.js +25 -0
  190. package/dist/sdk/domain/interactors/refresh-credentials.js.map +1 -0
  191. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts +24 -0
  192. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts.map +1 -0
  193. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js +58 -0
  194. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js.map +1 -0
  195. package/dist/sdk/domain/interactors/update-site.d.ts +9 -0
  196. package/dist/sdk/domain/interactors/update-site.d.ts.map +1 -0
  197. package/dist/sdk/domain/interactors/update-site.js +19 -0
  198. package/dist/sdk/domain/interactors/update-site.js.map +1 -0
  199. package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts +19 -0
  200. package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts.map +1 -0
  201. package/dist/sdk/domain/interactors/workspace/init-workspace.js +26 -0
  202. package/dist/sdk/domain/interactors/workspace/init-workspace.js.map +1 -0
  203. package/dist/sdk/domain/ports/backend/backend-client.d.ts +7 -0
  204. package/dist/sdk/domain/ports/backend/backend-client.d.ts.map +1 -0
  205. package/dist/sdk/domain/ports/backend/backend-client.js +2 -0
  206. package/dist/sdk/domain/ports/backend/backend-client.js.map +1 -0
  207. package/dist/sdk/domain/ports/in/content-file-reader.d.ts +15 -0
  208. package/dist/sdk/domain/ports/in/content-file-reader.d.ts.map +1 -0
  209. package/dist/sdk/domain/ports/in/content-file-reader.js +2 -0
  210. package/dist/sdk/domain/ports/in/content-file-reader.js.map +1 -0
  211. package/dist/sdk/domain/ports/in/token-provider.d.ts +10 -0
  212. package/dist/sdk/domain/ports/in/token-provider.d.ts.map +1 -0
  213. package/dist/sdk/domain/ports/in/token-provider.js +2 -0
  214. package/dist/sdk/domain/ports/in/token-provider.js.map +1 -0
  215. package/dist/sdk/domain/ports/out/backend-communication.d.ts +22 -0
  216. package/dist/sdk/domain/ports/out/backend-communication.d.ts.map +1 -0
  217. package/dist/sdk/domain/ports/out/backend-communication.js +2 -0
  218. package/dist/sdk/domain/ports/out/backend-communication.js.map +1 -0
  219. package/dist/sdk/domain/ports/out/content-file-writer.d.ts +12 -0
  220. package/dist/sdk/domain/ports/out/content-file-writer.d.ts.map +1 -0
  221. package/dist/sdk/domain/ports/out/content-file-writer.js +2 -0
  222. package/dist/sdk/domain/ports/out/content-file-writer.js.map +1 -0
  223. package/dist/sdk/domain/ports/out/content-repo.d.ts +27 -0
  224. package/dist/sdk/domain/ports/out/content-repo.d.ts.map +1 -0
  225. package/dist/sdk/domain/ports/out/content-repo.js +2 -0
  226. package/dist/sdk/domain/ports/out/content-repo.js.map +1 -0
  227. package/dist/sdk/domain/ports/out/credentials-provider.d.ts +15 -0
  228. package/dist/sdk/domain/ports/out/credentials-provider.d.ts.map +1 -0
  229. package/dist/sdk/domain/ports/out/credentials-provider.js +2 -0
  230. package/dist/sdk/domain/ports/out/credentials-provider.js.map +1 -0
  231. package/dist/sdk/domain/ports/out/file-system-reader.d.ts +13 -0
  232. package/dist/sdk/domain/ports/out/file-system-reader.d.ts.map +1 -0
  233. package/dist/sdk/domain/ports/out/file-system-reader.js +2 -0
  234. package/dist/sdk/domain/ports/out/file-system-reader.js.map +1 -0
  235. package/dist/sdk/domain/ports/out/remote-files-repo.d.ts +20 -0
  236. package/dist/sdk/domain/ports/out/remote-files-repo.d.ts.map +1 -0
  237. package/dist/sdk/domain/ports/out/remote-files-repo.js +2 -0
  238. package/dist/sdk/domain/ports/out/remote-files-repo.js.map +1 -0
  239. package/dist/sdk/domain/ports/out/site-repository.d.ts +35 -0
  240. package/dist/sdk/domain/ports/out/site-repository.d.ts.map +1 -0
  241. package/dist/sdk/domain/ports/out/site-repository.js +2 -0
  242. package/dist/sdk/domain/ports/out/site-repository.js.map +1 -0
  243. package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts +11 -0
  244. package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts.map +1 -0
  245. package/dist/sdk/domain/ports/out/token-refresh-provider.js +2 -0
  246. package/dist/sdk/domain/ports/out/token-refresh-provider.js.map +1 -0
  247. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts +11 -0
  248. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts.map +1 -0
  249. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js +2 -0
  250. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js.map +1 -0
  251. package/dist/sdk/domain/ports/out/upload-progress-callback.d.ts +26 -0
  252. package/dist/sdk/domain/ports/out/upload-progress-callback.d.ts.map +1 -0
  253. package/dist/sdk/domain/ports/out/upload-progress-callback.js +2 -0
  254. package/dist/sdk/domain/ports/out/upload-progress-callback.js.map +1 -0
  255. package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts +25 -0
  256. package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts.map +1 -0
  257. package/dist/sdk/domain/ports/out/workspace-config-repo.js +2 -0
  258. package/dist/sdk/domain/ports/out/workspace-config-repo.js.map +1 -0
  259. package/dist/sdk/index.d.ts +35 -0
  260. package/dist/sdk/index.d.ts.map +1 -0
  261. package/dist/sdk/index.js +35 -0
  262. package/dist/sdk/index.js.map +1 -0
  263. package/dist/sdk/infra/adapters/api-client.d.ts +58 -0
  264. package/dist/sdk/infra/adapters/api-client.d.ts.map +1 -0
  265. package/dist/sdk/infra/adapters/api-client.js +73 -0
  266. package/dist/sdk/infra/adapters/api-client.js.map +1 -0
  267. package/dist/sdk/infra/adapters/base-http-client.d.ts +25 -0
  268. package/dist/sdk/infra/adapters/base-http-client.d.ts.map +1 -0
  269. package/dist/sdk/infra/adapters/base-http-client.js +110 -0
  270. package/dist/sdk/infra/adapters/base-http-client.js.map +1 -0
  271. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts +16 -0
  272. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts.map +1 -0
  273. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js +46 -0
  274. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js.map +1 -0
  275. package/dist/sdk/infra/adapters/default-http-client.d.ts +38 -0
  276. package/dist/sdk/infra/adapters/default-http-client.d.ts.map +1 -0
  277. package/dist/sdk/infra/adapters/default-http-client.js +133 -0
  278. package/dist/sdk/infra/adapters/default-http-client.js.map +1 -0
  279. package/dist/sdk/infra/adapters/default-token-provider.d.ts +14 -0
  280. package/dist/sdk/infra/adapters/default-token-provider.d.ts.map +1 -0
  281. package/dist/sdk/infra/adapters/default-token-provider.js +23 -0
  282. package/dist/sdk/infra/adapters/default-token-provider.js.map +1 -0
  283. package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts +16 -0
  284. package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts.map +1 -0
  285. package/dist/sdk/infra/adapters/filesystem/file-content-reader.js +27 -0
  286. package/dist/sdk/infra/adapters/filesystem/file-content-reader.js.map +1 -0
  287. package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts +13 -0
  288. package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts.map +1 -0
  289. package/dist/sdk/infra/adapters/filesystem/file-content-writer.js +36 -0
  290. package/dist/sdk/infra/adapters/filesystem/file-content-writer.js.map +1 -0
  291. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts +21 -0
  292. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts.map +1 -0
  293. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js +52 -0
  294. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js.map +1 -0
  295. package/dist/sdk/infra/adapters/frontend-http-client.d.ts +12 -0
  296. package/dist/sdk/infra/adapters/frontend-http-client.d.ts.map +1 -0
  297. package/dist/sdk/infra/adapters/frontend-http-client.js +18 -0
  298. package/dist/sdk/infra/adapters/frontend-http-client.js.map +1 -0
  299. package/dist/sdk/infra/adapters/http/http-content-repo.d.ts +33 -0
  300. package/dist/sdk/infra/adapters/http/http-content-repo.d.ts.map +1 -0
  301. package/dist/sdk/infra/adapters/http/http-content-repo.js +85 -0
  302. package/dist/sdk/infra/adapters/http/http-content-repo.js.map +1 -0
  303. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts +22 -0
  304. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts.map +1 -0
  305. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js +73 -0
  306. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js.map +1 -0
  307. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts +18 -0
  308. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts.map +1 -0
  309. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js +41 -0
  310. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js.map +1 -0
  311. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.d.ts +11 -0
  312. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.d.ts.map +1 -0
  313. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js +20 -0
  314. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js.map +1 -0
  315. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts +11 -0
  316. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts.map +1 -0
  317. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js +38 -0
  318. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js.map +1 -0
  319. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts +26 -0
  320. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts.map +1 -0
  321. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js +86 -0
  322. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js.map +1 -0
  323. package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts +15 -0
  324. package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts.map +1 -0
  325. package/dist/sdk/infra/adapters/repositories/http-site-repo.js +51 -0
  326. package/dist/sdk/infra/adapters/repositories/http-site-repo.js.map +1 -0
  327. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts +9 -0
  328. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts.map +1 -0
  329. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js +13 -0
  330. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js.map +1 -0
  331. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts +15 -0
  332. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts.map +1 -0
  333. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js +25 -0
  334. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js.map +1 -0
  335. package/dist/sdk/infra/backend/walde-client.d.ts +13 -0
  336. package/dist/sdk/infra/backend/walde-client.d.ts.map +1 -0
  337. package/dist/sdk/infra/backend/walde-client.js +29 -0
  338. package/dist/sdk/infra/backend/walde-client.js.map +1 -0
  339. package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts +9 -0
  340. package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts.map +1 -0
  341. package/dist/sdk/infra/factories/s3-files-repo-factory.js +10 -0
  342. package/dist/sdk/infra/factories/s3-files-repo-factory.js.map +1 -0
  343. package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts +24 -0
  344. package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts.map +1 -0
  345. package/dist/sdk/infra/factories/walde-admin-config-factory.js +99 -0
  346. package/dist/sdk/infra/factories/walde-admin-config-factory.js.map +1 -0
  347. package/dist/sdk/infra/factories/walde-admin-factory.d.ts +17 -0
  348. package/dist/sdk/infra/factories/walde-admin-factory.d.ts.map +1 -0
  349. package/dist/sdk/infra/factories/walde-admin-factory.js +42 -0
  350. package/dist/sdk/infra/factories/walde-admin-factory.js.map +1 -0
  351. package/dist/sdk/infra/factories/walde-factory.d.ts +13 -0
  352. package/dist/sdk/infra/factories/walde-factory.d.ts.map +1 -0
  353. package/dist/sdk/infra/factories/walde-factory.js +19 -0
  354. package/dist/sdk/infra/factories/walde-factory.js.map +1 -0
  355. package/dist/sdk/infra/futures/api-future.d.ts +15 -0
  356. package/dist/sdk/infra/futures/api-future.d.ts.map +1 -0
  357. package/dist/sdk/infra/futures/api-future.js +28 -0
  358. package/dist/sdk/infra/futures/api-future.js.map +1 -0
  359. package/dist/sdk/infra/futures/content-future.d.ts +26 -0
  360. package/dist/sdk/infra/futures/content-future.d.ts.map +1 -0
  361. package/dist/sdk/infra/futures/content-future.js +63 -0
  362. package/dist/sdk/infra/futures/content-future.js.map +1 -0
  363. package/dist/sdk/infra/futures/content-item-future.d.ts +25 -0
  364. package/dist/sdk/infra/futures/content-item-future.d.ts.map +1 -0
  365. package/dist/sdk/infra/futures/content-item-future.js +47 -0
  366. package/dist/sdk/infra/futures/content-item-future.js.map +1 -0
  367. package/dist/sdk/infra/futures/content-iterator.d.ts +44 -0
  368. package/dist/sdk/infra/futures/content-iterator.d.ts.map +1 -0
  369. package/dist/sdk/infra/futures/content-iterator.js +123 -0
  370. package/dist/sdk/infra/futures/content-iterator.js.map +1 -0
  371. package/dist/sdk/infra/futures/content-list-future.d.ts +16 -0
  372. package/dist/sdk/infra/futures/content-list-future.d.ts.map +1 -0
  373. package/dist/sdk/infra/futures/content-list-future.js +19 -0
  374. package/dist/sdk/infra/futures/content-list-future.js.map +1 -0
  375. package/dist/sdk/infra/futures/contents-future.d.ts +23 -0
  376. package/dist/sdk/infra/futures/contents-future.d.ts.map +1 -0
  377. package/dist/sdk/infra/futures/contents-future.js +33 -0
  378. package/dist/sdk/infra/futures/contents-future.js.map +1 -0
  379. package/dist/sdk/infra/futures/credentials-future.d.ts +14 -0
  380. package/dist/sdk/infra/futures/credentials-future.d.ts.map +1 -0
  381. package/dist/sdk/infra/futures/credentials-future.js +67 -0
  382. package/dist/sdk/infra/futures/credentials-future.js.map +1 -0
  383. package/dist/sdk/infra/futures/frontend-contents-future.d.ts +37 -0
  384. package/dist/sdk/infra/futures/frontend-contents-future.d.ts.map +1 -0
  385. package/dist/sdk/infra/futures/frontend-contents-future.js +62 -0
  386. package/dist/sdk/infra/futures/frontend-contents-future.js.map +1 -0
  387. package/dist/sdk/infra/futures/manifest-future.d.ts +18 -0
  388. package/dist/sdk/infra/futures/manifest-future.d.ts.map +1 -0
  389. package/dist/sdk/infra/futures/manifest-future.js +28 -0
  390. package/dist/sdk/infra/futures/manifest-future.js.map +1 -0
  391. package/dist/sdk/infra/futures/site-future.d.ts +41 -0
  392. package/dist/sdk/infra/futures/site-future.d.ts.map +1 -0
  393. package/dist/sdk/infra/futures/site-future.js +113 -0
  394. package/dist/sdk/infra/futures/site-future.js.map +1 -0
  395. package/dist/sdk/infra/futures/sites-future.d.ts +19 -0
  396. package/dist/sdk/infra/futures/sites-future.d.ts.map +1 -0
  397. package/dist/sdk/infra/futures/sites-future.js +35 -0
  398. package/dist/sdk/infra/futures/sites-future.js.map +1 -0
  399. package/dist/sdk/infra/futures/ui-future.d.ts +25 -0
  400. package/dist/sdk/infra/futures/ui-future.d.ts.map +1 -0
  401. package/dist/sdk/infra/futures/ui-future.js +35 -0
  402. package/dist/sdk/infra/futures/ui-future.js.map +1 -0
  403. package/dist/sdk/infra/futures/walde-admin-future.d.ts +41 -0
  404. package/dist/sdk/infra/futures/walde-admin-future.d.ts.map +1 -0
  405. package/dist/sdk/infra/futures/walde-admin-future.js +50 -0
  406. package/dist/sdk/infra/futures/walde-admin-future.js.map +1 -0
  407. package/dist/sdk/infra/futures/walde-future.d.ts +40 -0
  408. package/dist/sdk/infra/futures/walde-future.d.ts.map +1 -0
  409. package/dist/sdk/infra/futures/walde-future.js +66 -0
  410. package/dist/sdk/infra/futures/walde-future.js.map +1 -0
  411. package/dist/sdk/infra/futures/workspace-future.d.ts +38 -0
  412. package/dist/sdk/infra/futures/workspace-future.d.ts.map +1 -0
  413. package/dist/sdk/infra/futures/workspace-future.js +45 -0
  414. package/dist/sdk/infra/futures/workspace-future.js.map +1 -0
  415. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts +20 -0
  416. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts.map +1 -0
  417. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js +54 -0
  418. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js.map +1 -0
  419. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts +24 -0
  420. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts.map +1 -0
  421. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js +49 -0
  422. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js.map +1 -0
  423. package/dist/sdk/make-walde-admin.d.ts +15 -0
  424. package/dist/sdk/make-walde-admin.d.ts.map +1 -0
  425. package/dist/sdk/make-walde-admin.js +8 -0
  426. package/dist/sdk/make-walde-admin.js.map +1 -0
  427. package/dist/sdk/make-walde.d.ts +12 -0
  428. package/dist/sdk/make-walde.d.ts.map +1 -0
  429. package/dist/sdk/make-walde.js +8 -0
  430. package/dist/sdk/make-walde.js.map +1 -0
  431. package/dist/std/domain/entities/future.d.ts +28 -0
  432. package/dist/std/domain/entities/future.d.ts.map +1 -0
  433. package/dist/std/domain/entities/future.js +21 -0
  434. package/dist/std/domain/entities/future.js.map +1 -0
  435. package/dist/std/domain/entities/option.d.ts +53 -0
  436. package/dist/std/domain/entities/option.d.ts.map +1 -0
  437. package/dist/std/domain/entities/option.js +58 -0
  438. package/dist/std/domain/entities/option.js.map +1 -0
  439. package/dist/std/domain/entities/result.d.ts +87 -0
  440. package/dist/std/domain/entities/result.d.ts.map +1 -0
  441. package/dist/std/domain/entities/result.js +104 -0
  442. package/dist/std/domain/entities/result.js.map +1 -0
  443. package/dist/std/index.d.ts +6 -0
  444. package/dist/std/index.d.ts.map +1 -0
  445. package/dist/std/index.js +4 -0
  446. package/dist/std/index.js.map +1 -0
  447. package/package.json +33 -0
@@ -0,0 +1,21 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents authentication errors in the Walde SDK.
4
+ *
5
+ * Thrown when authentication-related operations fail due to:
6
+ * - No valid credentials available
7
+ * - No refresh token available
8
+ * - Credentials file not found
9
+ *
10
+ * This indicates the user needs to authenticate or re-authenticate
11
+ * with the system before proceeding.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeAuthenticationError('No valid credentials available', { credentialsPath: '~/.walde/credentials.json' });
16
+ * ```
17
+ */
18
+ export declare class WaldeAuthenticationError extends WaldeUserError {
19
+ constructor(message: string, details?: Record<string, unknown>);
20
+ }
21
+ //# sourceMappingURL=walde-authentication-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-authentication-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-authentication-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,wBAAyB,SAAQ,cAAc;gBAC9C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,23 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents authentication errors in the Walde SDK.
4
+ *
5
+ * Thrown when authentication-related operations fail due to:
6
+ * - No valid credentials available
7
+ * - No refresh token available
8
+ * - Credentials file not found
9
+ *
10
+ * This indicates the user needs to authenticate or re-authenticate
11
+ * with the system before proceeding.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeAuthenticationError('No valid credentials available', { credentialsPath: '~/.walde/credentials.json' });
16
+ * ```
17
+ */
18
+ export class WaldeAuthenticationError extends WaldeUserError {
19
+ constructor(message, details) {
20
+ super(message, details);
21
+ }
22
+ }
23
+ //# sourceMappingURL=walde-authentication-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-authentication-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-authentication-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAC1D,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents configuration errors in the Walde SDK.
4
+ *
5
+ * Thrown when required configuration is missing or invalid, such as:
6
+ * - Cognito client ID not configured
7
+ * - WorkspaceConfigRepo or BackendCommunication not configured
8
+ * - Site ID required for operations but not provided
9
+ *
10
+ * This indicates the system is not properly configured and the user
11
+ * needs to provide the required configuration before proceeding.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeConfigurationError('Site ID required for content operations', { operation: 'content.list' });
16
+ * ```
17
+ */
18
+ export declare class WaldeConfigurationError extends WaldeUserError {
19
+ constructor(message: string, details?: Record<string, unknown>);
20
+ }
21
+ //# sourceMappingURL=walde-configuration-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-configuration-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-configuration-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,uBAAwB,SAAQ,cAAc;gBAC7C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,23 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents configuration errors in the Walde SDK.
4
+ *
5
+ * Thrown when required configuration is missing or invalid, such as:
6
+ * - Cognito client ID not configured
7
+ * - WorkspaceConfigRepo or BackendCommunication not configured
8
+ * - Site ID required for operations but not provided
9
+ *
10
+ * This indicates the system is not properly configured and the user
11
+ * needs to provide the required configuration before proceeding.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeConfigurationError('Site ID required for content operations', { operation: 'content.list' });
16
+ * ```
17
+ */
18
+ export class WaldeConfigurationError extends WaldeUserError {
19
+ constructor(message, details) {
20
+ super(message, details);
21
+ }
22
+ }
23
+ //# sourceMappingURL=walde-configuration-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-configuration-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-configuration-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,uBAAwB,SAAQ,cAAc;IACzD,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Base error class for the Walde SDK.
3
+ * Used to identify errors that have been processed through the standard error system.
4
+ */
5
+ export declare class WaldeError extends Error {
6
+ readonly details?: Record<string, unknown>;
7
+ constructor(message: string, details?: Record<string, unknown>);
8
+ }
9
+ //# sourceMappingURL=walde-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAEtC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI/D"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Base error class for the Walde SDK.
3
+ * Used to identify errors that have been processed through the standard error system.
4
+ */
5
+ export class WaldeError extends Error {
6
+ details;
7
+ constructor(message, details) {
8
+ super(message);
9
+ this.details = details;
10
+ }
11
+ }
12
+ //# sourceMappingURL=walde-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnB,OAAO,CAA2B;IAElD,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents local system errors in the Walde SDK.
4
+ *
5
+ * Thrown when local file system or storage operations fail, such as:
6
+ * - Failed to read or write content files
7
+ * - Failed to read directories
8
+ * - Failed to save or load workspace configuration
9
+ * - Failed to upload files to S3
10
+ *
11
+ * This indicates a system-level issue with local resources
12
+ * such as file permissions, disk space, or storage access.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * throw new WaldeLocalError('Failed to read content file', originalError, { filePath: '/path/to/file.md', operation: 'read' });
17
+ * ```
18
+ */
19
+ export declare class WaldeLocalError extends WaldeSystemError {
20
+ constructor(message: string, cause: Error, details?: Record<string, unknown>);
21
+ }
22
+ //# sourceMappingURL=walde-local-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-local-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-local-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,eAAgB,SAAQ,gBAAgB;gBACvC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7E"}
@@ -0,0 +1,24 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents local system errors in the Walde SDK.
4
+ *
5
+ * Thrown when local file system or storage operations fail, such as:
6
+ * - Failed to read or write content files
7
+ * - Failed to read directories
8
+ * - Failed to save or load workspace configuration
9
+ * - Failed to upload files to S3
10
+ *
11
+ * This indicates a system-level issue with local resources
12
+ * such as file permissions, disk space, or storage access.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * throw new WaldeLocalError('Failed to read content file', originalError, { filePath: '/path/to/file.md', operation: 'read' });
17
+ * ```
18
+ */
19
+ export class WaldeLocalError extends WaldeSystemError {
20
+ constructor(message, cause, details) {
21
+ super(message, cause, details);
22
+ }
23
+ }
24
+ //# sourceMappingURL=walde-local-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-local-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-local-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,eAAgB,SAAQ,gBAAgB;IACnD,YAAY,OAAe,EAAE,KAAY,EAAE,OAAiC;QAC1E,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents network-related errors in the Walde SDK.
4
+ *
5
+ * Thrown when network operations fail, such as:
6
+ * - HTTP error responses from the server
7
+ * - Failed to parse network response data
8
+ * - Network connectivity issues
9
+ *
10
+ * This indicates a system-level issue with network communication
11
+ * that is typically outside the user's direct control.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeNetworkError('HTTP error response', originalError, { statusCode: 500, url: '/api/sites' });
16
+ * ```
17
+ */
18
+ export declare class WaldeNetworkError extends WaldeSystemError {
19
+ constructor(message: string, cause: Error | undefined, details?: Record<string, unknown>);
20
+ }
21
+ //# sourceMappingURL=walde-network-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-network-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-network-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAkB,SAAQ,gBAAgB;gBACzC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGzF"}
@@ -0,0 +1,23 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents network-related errors in the Walde SDK.
4
+ *
5
+ * Thrown when network operations fail, such as:
6
+ * - HTTP error responses from the server
7
+ * - Failed to parse network response data
8
+ * - Network connectivity issues
9
+ *
10
+ * This indicates a system-level issue with network communication
11
+ * that is typically outside the user's direct control.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeNetworkError('HTTP error response', originalError, { statusCode: 500, url: '/api/sites' });
16
+ * ```
17
+ */
18
+ export class WaldeNetworkError extends WaldeSystemError {
19
+ constructor(message, cause, details) {
20
+ super(message, cause, details);
21
+ }
22
+ }
23
+ //# sourceMappingURL=walde-network-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-network-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-network-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,iBAAkB,SAAQ,gBAAgB;IACrD,YAAY,OAAe,EAAE,KAAwB,EAAE,OAAiC;QACtF,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ import { WaldeError } from './walde-error';
2
+ /**
3
+ * Base error class for system-caused errors in the Walde SDK.
4
+ * Represents faults within the app, such as network failures or internal processing errors.
5
+ */
6
+ export declare class WaldeSystemError extends WaldeError {
7
+ readonly cause: Error | undefined;
8
+ constructor(message: string, cause: Error | undefined, details?: Record<string, unknown>);
9
+ }
10
+ //# sourceMappingURL=walde-system-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-system-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-system-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,SAAgB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;gBAE7B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAIzF"}
@@ -0,0 +1,13 @@
1
+ import { WaldeError } from './walde-error';
2
+ /**
3
+ * Base error class for system-caused errors in the Walde SDK.
4
+ * Represents faults within the app, such as network failures or internal processing errors.
5
+ */
6
+ export class WaldeSystemError extends WaldeError {
7
+ cause;
8
+ constructor(message, cause, details) {
9
+ super(message, details);
10
+ this.cause = cause;
11
+ }
12
+ }
13
+ //# sourceMappingURL=walde-system-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-system-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-system-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAC9B,KAAK,CAAoB;IAEzC,YAAY,OAAe,EAAE,KAAwB,EAAE,OAAiC;QACtF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents unexpected system errors in the Walde SDK.
4
+ *
5
+ * Used for errors that indicate the system is in an unexpected state or
6
+ * when wrapping errors from external libraries that should not occur
7
+ * during normal operation.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * try {
12
+ * // external operation
13
+ * } catch (error) {
14
+ * throw new WaldeUnexpectedError('Operation failed unexpectedly', error, { operation: 'parseJSON', input: rawData });
15
+ * }
16
+ * ```
17
+ */
18
+ export declare class WaldeUnexpectedError extends WaldeSystemError {
19
+ constructor(message: string, cause: Error, details?: Record<string, unknown>);
20
+ }
21
+ //# sourceMappingURL=walde-unexpected-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-unexpected-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-unexpected-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;gBAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7E"}
@@ -0,0 +1,23 @@
1
+ import { WaldeSystemError } from './walde-system-error';
2
+ /**
3
+ * Represents unexpected system errors in the Walde SDK.
4
+ *
5
+ * Used for errors that indicate the system is in an unexpected state or
6
+ * when wrapping errors from external libraries that should not occur
7
+ * during normal operation.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * try {
12
+ * // external operation
13
+ * } catch (error) {
14
+ * throw new WaldeUnexpectedError('Operation failed unexpectedly', error, { operation: 'parseJSON', input: rawData });
15
+ * }
16
+ * ```
17
+ */
18
+ export class WaldeUnexpectedError extends WaldeSystemError {
19
+ constructor(message, cause, details) {
20
+ super(message, cause, details);
21
+ }
22
+ }
23
+ //# sourceMappingURL=walde-unexpected-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-unexpected-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-unexpected-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,oBAAqB,SAAQ,gBAAgB;IACxD,YAAY,OAAe,EAAE,KAAY,EAAE,OAAiC;QAC1E,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents usage errors in the Walde SDK.
4
+ *
5
+ * Thrown when the SDK is used incorrectly, such as:
6
+ * - Unsupported HTTP methods
7
+ * - Attempting to resolve futures that are not directly resolvable
8
+ * - Calling operations without specifying required parameters
9
+ *
10
+ * This indicates incorrect API usage by the developer and should be
11
+ * resolved by following the correct usage patterns.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeUsageError('Unsupported HTTP method', { method: 'PATCH', supportedMethods: ['GET', 'POST', 'PUT', 'DELETE'] });
16
+ * ```
17
+ */
18
+ export declare class WaldeUsageError extends WaldeUserError {
19
+ constructor(message: string, details?: Record<string, unknown>);
20
+ }
21
+ //# sourceMappingURL=walde-usage-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-usage-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-usage-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,eAAgB,SAAQ,cAAc;gBACrC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,23 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents usage errors in the Walde SDK.
4
+ *
5
+ * Thrown when the SDK is used incorrectly, such as:
6
+ * - Unsupported HTTP methods
7
+ * - Attempting to resolve futures that are not directly resolvable
8
+ * - Calling operations without specifying required parameters
9
+ *
10
+ * This indicates incorrect API usage by the developer and should be
11
+ * resolved by following the correct usage patterns.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * throw new WaldeUsageError('Unsupported HTTP method', { method: 'PATCH', supportedMethods: ['GET', 'POST', 'PUT', 'DELETE'] });
16
+ * ```
17
+ */
18
+ export class WaldeUsageError extends WaldeUserError {
19
+ constructor(message, details) {
20
+ super(message, details);
21
+ }
22
+ }
23
+ //# sourceMappingURL=walde-usage-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-usage-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-usage-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import { WaldeError } from './walde-error';
2
+ /**
3
+ * Base error class for user-caused errors in the Walde SDK.
4
+ * Represents incorrect usage of the app, such as missing required parameters or incorrect method usage.
5
+ */
6
+ export declare class WaldeUserError extends WaldeError {
7
+ constructor(message: string, details?: Record<string, unknown>);
8
+ }
9
+ //# sourceMappingURL=walde-user-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-user-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-user-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,qBAAa,cAAe,SAAQ,UAAU;gBAChC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,11 @@
1
+ import { WaldeError } from './walde-error';
2
+ /**
3
+ * Base error class for user-caused errors in the Walde SDK.
4
+ * Represents incorrect usage of the app, such as missing required parameters or incorrect method usage.
5
+ */
6
+ export class WaldeUserError extends WaldeError {
7
+ constructor(message, details) {
8
+ super(message, details);
9
+ }
10
+ }
11
+ //# sourceMappingURL=walde-user-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-user-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-user-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents validation errors in the Walde SDK.
4
+ *
5
+ * Thrown when required parameters are missing or invalid, such as:
6
+ * - Missing content name, key, format, or state in frontmatter
7
+ * - Missing required parameters in future operations
8
+ *
9
+ * This indicates incorrect usage by the developer and should be resolved
10
+ * by providing the required parameters or correcting the input data.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * throw new WaldeValidationError('Content name is required in frontmatter', { field: 'name' });
15
+ * ```
16
+ */
17
+ export declare class WaldeValidationError extends WaldeUserError {
18
+ constructor(message: string, details?: Record<string, unknown>);
19
+ }
20
+ //# sourceMappingURL=walde-validation-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-validation-error.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-validation-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;gBAC1C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,22 @@
1
+ import { WaldeUserError } from './walde-user-error';
2
+ /**
3
+ * Represents validation errors in the Walde SDK.
4
+ *
5
+ * Thrown when required parameters are missing or invalid, such as:
6
+ * - Missing content name, key, format, or state in frontmatter
7
+ * - Missing required parameters in future operations
8
+ *
9
+ * This indicates incorrect usage by the developer and should be resolved
10
+ * by providing the required parameters or correcting the input data.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * throw new WaldeValidationError('Content name is required in frontmatter', { field: 'name' });
15
+ * ```
16
+ */
17
+ export class WaldeValidationError extends WaldeUserError {
18
+ constructor(message, details) {
19
+ super(message, details);
20
+ }
21
+ }
22
+ //# sourceMappingURL=walde-validation-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walde-validation-error.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/walde-validation-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import { BackendCommunication } from '@/sdk/domain/ports/out/backend-communication';
2
+ export interface ApiCallParams {
3
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE';
4
+ endpoint: string;
5
+ data?: any;
6
+ headers?: Record<string, string>;
7
+ }
8
+ /**
9
+ * Interactor for making authenticated API calls
10
+ */
11
+ export declare class ApiCall {
12
+ private readonly backendCommunication;
13
+ constructor(backendCommunication: BackendCommunication);
14
+ /**
15
+ * Execute authenticated API call
16
+ */
17
+ execute(params: ApiCallParams): Promise<any>;
18
+ }
19
+ //# sourceMappingURL=api-call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-call.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/api-call.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAGpF,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,qBAAa,OAAO;IACN,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAEvE;;OAEG;IACU,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC;CAmB1D"}
@@ -0,0 +1,31 @@
1
+ import { WaldeUsageError } from '@/sdk/domain/errors';
2
+ /**
3
+ * Interactor for making authenticated API calls
4
+ */
5
+ export class ApiCall {
6
+ backendCommunication;
7
+ constructor(backendCommunication) {
8
+ this.backendCommunication = backendCommunication;
9
+ }
10
+ /**
11
+ * Execute authenticated API call
12
+ */
13
+ async execute(params) {
14
+ const { method, endpoint, data, headers } = params;
15
+ // Ensure endpoint starts with /
16
+ const apiPath = endpoint.startsWith('/') ? endpoint : `/${endpoint}`;
17
+ switch (method) {
18
+ case 'GET':
19
+ return await this.backendCommunication.get(apiPath, headers);
20
+ case 'POST':
21
+ return await this.backendCommunication.post(apiPath, data, headers);
22
+ case 'PUT':
23
+ return await this.backendCommunication.put(apiPath, data, headers);
24
+ case 'DELETE':
25
+ return await this.backendCommunication.delete(apiPath, headers);
26
+ default:
27
+ throw new WaldeUsageError('Unsupported HTTP method', { method });
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=api-call.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-call.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/api-call.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAStD;;GAEG;AACH,MAAM,OAAO,OAAO;IACW;IAA7B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E;;OAEG;IACI,KAAK,CAAC,OAAO,CAAC,MAAqB;QACxC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAEnD,gCAAgC;QAChC,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;QAErE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,KAAK;gBACR,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC/D,KAAK,MAAM;gBACT,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;YACtE,KAAK,KAAK;gBACR,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;YACrE,KAAK,QAAQ;gBACX,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAClE;gBACE,MAAM,IAAI,eAAe,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ import { Result } from '@/std';
2
+ import { SiteRepository, CertificateAssociationsResult } from '@/sdk/domain/ports/out/site-repository';
3
+ /**
4
+ * Associates certificates for a site's custom domain
5
+ */
6
+ export declare class AssociateSiteCertificates {
7
+ private readonly siteRepository;
8
+ constructor(siteRepository: SiteRepository);
9
+ execute(siteId: string): Promise<Result<CertificateAssociationsResult, string>>;
10
+ }
11
+ //# sourceMappingURL=associate-site-certificates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"associate-site-certificates.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/associate-site-certificates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvG;;GAEG;AACH,qBAAa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAErD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;CAQtF"}
@@ -0,0 +1,20 @@
1
+ import { ok, err } from '@/std';
2
+ /**
3
+ * Associates certificates for a site's custom domain
4
+ */
5
+ export class AssociateSiteCertificates {
6
+ siteRepository;
7
+ constructor(siteRepository) {
8
+ this.siteRepository = siteRepository;
9
+ }
10
+ async execute(siteId) {
11
+ try {
12
+ const result = await this.siteRepository.associateCertificates(siteId);
13
+ return ok(result);
14
+ }
15
+ catch (error) {
16
+ return err(`Failed to associate certificates: ${error instanceof Error ? error.message : String(error)}`);
17
+ }
18
+ }
19
+ }
20
+ //# sourceMappingURL=associate-site-certificates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"associate-site-certificates.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/associate-site-certificates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGxC;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACP;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CAAC,MAAc;QAC1B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YACvE,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,qCAAqC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC5G,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import { Content } from '@/sdk/domain/entities/content';
2
+ import { ContentRepo } from '@/sdk/domain/ports/out/content-repo';
3
+ /**
4
+ * Lists contents for a site
5
+ */
6
+ export declare class ListContents {
7
+ private readonly contentRepo;
8
+ constructor(contentRepo: ContentRepo);
9
+ /**
10
+ * Lists all contents for a site
11
+ * @param siteId - The site identifier
12
+ * @returns Array of contents
13
+ */
14
+ execute(siteId: string): Promise<Content[]>;
15
+ }
16
+ //# sourceMappingURL=list-contents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-contents.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/list-contents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE;;GAEG;AACH,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAErD;;;;OAIG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAGlD"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Lists contents for a site
3
+ */
4
+ export class ListContents {
5
+ contentRepo;
6
+ constructor(contentRepo) {
7
+ this.contentRepo = contentRepo;
8
+ }
9
+ /**
10
+ * Lists all contents for a site
11
+ * @param siteId - The site identifier
12
+ * @returns Array of contents
13
+ */
14
+ async execute(siteId) {
15
+ return await this.contentRepo.list(siteId);
16
+ }
17
+ }
18
+ //# sourceMappingURL=list-contents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-contents.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/list-contents.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,YAAY;IACM;IAA7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAEzD;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc;QAC1B,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;CACF"}