@etohq/types 1.3.0 → 1.5.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 (312) hide show
  1. package/LICENSE +21 -0
  2. package/dist/analytics/index.d.ts +5 -0
  3. package/dist/analytics/index.d.ts.map +1 -0
  4. package/dist/analytics/index.js +21 -0
  5. package/dist/analytics/index.js.map +1 -0
  6. package/dist/analytics/mutations.d.ts +71 -0
  7. package/dist/analytics/mutations.d.ts.map +1 -0
  8. package/dist/{index-data/sotrage-provider.js → analytics/mutations.js} +1 -1
  9. package/dist/analytics/mutations.js.map +1 -0
  10. package/dist/analytics/provider.d.ts +41 -0
  11. package/dist/analytics/provider.d.ts.map +1 -0
  12. package/dist/analytics/provider.js +3 -0
  13. package/dist/analytics/provider.js.map +1 -0
  14. package/dist/analytics/providers/index.d.ts +3 -0
  15. package/dist/analytics/providers/index.d.ts.map +1 -0
  16. package/dist/analytics/providers/index.js +19 -0
  17. package/dist/analytics/providers/index.js.map +1 -0
  18. package/dist/analytics/providers/local.d.ts +3 -0
  19. package/dist/analytics/providers/local.d.ts.map +1 -0
  20. package/dist/analytics/providers/local.js +3 -0
  21. package/dist/analytics/providers/local.js.map +1 -0
  22. package/dist/analytics/providers/posthog.d.ts +11 -0
  23. package/dist/analytics/providers/posthog.d.ts.map +1 -0
  24. package/dist/analytics/providers/posthog.js +3 -0
  25. package/dist/analytics/providers/posthog.js.map +1 -0
  26. package/dist/analytics/service.d.ts +51 -0
  27. package/dist/analytics/service.d.ts.map +1 -0
  28. package/dist/{link-modules-sdk → analytics}/service.js.map +1 -1
  29. package/dist/api-key/mutations/api-key.d.ts +2 -0
  30. package/dist/api-key/mutations/api-key.d.ts.map +1 -1
  31. package/dist/auth/common/auth-identity.d.ts +1 -1
  32. package/dist/auth/common/auth-identity.d.ts.map +1 -1
  33. package/dist/auth/provider.d.ts +1 -7
  34. package/dist/auth/provider.d.ts.map +1 -1
  35. package/dist/auth/service.d.ts +50 -0
  36. package/dist/auth/service.d.ts.map +1 -1
  37. package/dist/bundles.d.ts +2 -1
  38. package/dist/bundles.d.ts.map +1 -1
  39. package/dist/bundles.js +3 -2
  40. package/dist/bundles.js.map +1 -1
  41. package/dist/cache/service.d.ts +27 -0
  42. package/dist/cache/service.d.ts.map +1 -1
  43. package/dist/cart/common.d.ts +1125 -0
  44. package/dist/cart/common.d.ts.map +1 -0
  45. package/dist/cart/common.js +3 -0
  46. package/dist/cart/common.js.map +1 -0
  47. package/dist/cart/index.d.ts +5 -0
  48. package/dist/cart/index.d.ts.map +1 -0
  49. package/dist/cart/index.js +21 -0
  50. package/dist/cart/index.js.map +1 -0
  51. package/dist/cart/mutations.d.ts +734 -0
  52. package/dist/cart/mutations.d.ts.map +1 -0
  53. package/dist/cart/mutations.js +4 -0
  54. package/dist/cart/mutations.js.map +1 -0
  55. package/dist/cart/service.d.ts +1888 -0
  56. package/dist/cart/service.d.ts.map +1 -0
  57. package/dist/cart/service.js +3 -0
  58. package/dist/cart/service.js.map +1 -0
  59. package/dist/cart/workflows.d.ts +480 -0
  60. package/dist/cart/workflows.d.ts.map +1 -0
  61. package/dist/cart/workflows.js +3 -0
  62. package/dist/cart/workflows.js.map +1 -0
  63. package/dist/common/batch.d.ts +47 -0
  64. package/dist/common/batch.d.ts.map +1 -1
  65. package/dist/common/common.d.ts +11 -1
  66. package/dist/common/common.d.ts.map +1 -1
  67. package/dist/common/config-module.d.ts +222 -63
  68. package/dist/common/config-module.d.ts.map +1 -1
  69. package/dist/common/modules.d.ts +133 -15
  70. package/dist/common/modules.d.ts.map +1 -1
  71. package/dist/dal/repository-service.d.ts +2 -2
  72. package/dist/dal/repository-service.d.ts.map +1 -1
  73. package/dist/dml/index.d.ts +8 -0
  74. package/dist/dml/index.d.ts.map +1 -1
  75. package/dist/event-bus/common.d.ts +24 -0
  76. package/dist/event-bus/common.d.ts.map +1 -1
  77. package/dist/event-bus/event-bus-module.d.ts +58 -0
  78. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  79. package/dist/file/common.d.ts +22 -2
  80. package/dist/file/common.d.ts.map +1 -1
  81. package/dist/file/mutations.d.ts +21 -3
  82. package/dist/file/mutations.d.ts.map +1 -1
  83. package/dist/file/provider.d.ts +75 -7
  84. package/dist/file/provider.d.ts.map +1 -1
  85. package/dist/file/service.d.ts +83 -11
  86. package/dist/file/service.d.ts.map +1 -1
  87. package/dist/http/auth/payloads.d.ts +3 -0
  88. package/dist/http/auth/payloads.d.ts.map +1 -1
  89. package/dist/http/common/additional_data.d.ts +9 -2
  90. package/dist/http/common/additional_data.d.ts.map +1 -1
  91. package/dist/http/common/request.d.ts +29 -6
  92. package/dist/http/common/request.d.ts.map +1 -1
  93. package/dist/http/common/response.d.ts +28 -0
  94. package/dist/http/common/response.d.ts.map +1 -1
  95. package/dist/http/currency/admin/entities.d.ts +4 -0
  96. package/dist/http/currency/admin/entities.d.ts.map +1 -0
  97. package/dist/http/currency/admin/entities.js +3 -0
  98. package/dist/http/currency/admin/entities.js.map +1 -0
  99. package/dist/http/currency/admin/index.d.ts +4 -0
  100. package/dist/http/currency/admin/index.d.ts.map +1 -0
  101. package/dist/http/currency/admin/index.js +20 -0
  102. package/dist/http/currency/admin/index.js.map +1 -0
  103. package/dist/http/currency/admin/queries.d.ts +15 -0
  104. package/dist/http/currency/admin/queries.d.ts.map +1 -0
  105. package/dist/http/currency/admin/queries.js +3 -0
  106. package/dist/http/currency/admin/queries.js.map +1 -0
  107. package/dist/http/currency/admin/responses.d.ts +16 -0
  108. package/dist/http/currency/admin/responses.d.ts.map +1 -0
  109. package/dist/http/currency/admin/responses.js +3 -0
  110. package/dist/http/currency/admin/responses.js.map +1 -0
  111. package/dist/http/currency/common.d.ts +48 -0
  112. package/dist/http/currency/common.d.ts.map +1 -0
  113. package/dist/http/currency/common.js +3 -0
  114. package/dist/http/currency/common.js.map +1 -0
  115. package/dist/http/currency/index.d.ts +2 -0
  116. package/dist/http/currency/index.d.ts.map +1 -0
  117. package/dist/http/currency/index.js +18 -0
  118. package/dist/http/currency/index.js.map +1 -0
  119. package/dist/http/encore/encore.d.ts +4 -2
  120. package/dist/http/encore/encore.d.ts.map +1 -1
  121. package/dist/http/encore/encore.js.map +1 -1
  122. package/dist/http/file/admin/payloads.d.ts +18 -0
  123. package/dist/http/file/admin/payloads.d.ts.map +1 -1
  124. package/dist/http/file/admin/responses.d.ts +33 -0
  125. package/dist/http/file/admin/responses.d.ts.map +1 -1
  126. package/dist/http/file/common.d.ts +17 -0
  127. package/dist/http/file/common.d.ts.map +1 -1
  128. package/dist/http/invite/admin/entities.d.ts +35 -0
  129. package/dist/http/invite/admin/entities.d.ts.map +1 -0
  130. package/dist/http/invite/admin/entities.js +3 -0
  131. package/dist/http/invite/admin/entities.js.map +1 -0
  132. package/dist/http/invite/admin/index.d.ts +5 -0
  133. package/dist/http/invite/admin/index.d.ts.map +1 -0
  134. package/dist/http/invite/admin/index.js +21 -0
  135. package/dist/http/invite/admin/index.js.map +1 -0
  136. package/dist/http/invite/admin/payloads.d.ts +25 -0
  137. package/dist/http/invite/admin/payloads.d.ts.map +1 -0
  138. package/dist/http/invite/admin/payloads.js +3 -0
  139. package/dist/http/invite/admin/payloads.js.map +1 -0
  140. package/dist/http/invite/admin/queries.d.ts +11 -0
  141. package/dist/http/invite/admin/queries.d.ts.map +1 -0
  142. package/dist/http/invite/admin/queries.js +3 -0
  143. package/dist/http/invite/admin/queries.js.map +1 -0
  144. package/dist/http/invite/admin/responses.d.ts +28 -0
  145. package/dist/http/invite/admin/responses.d.ts.map +1 -0
  146. package/dist/http/invite/admin/responses.js +3 -0
  147. package/dist/http/invite/admin/responses.js.map +1 -0
  148. package/dist/http/invite/index.d.ts +2 -0
  149. package/dist/http/invite/index.d.ts.map +1 -0
  150. package/dist/http/invite/index.js +18 -0
  151. package/dist/http/invite/index.js.map +1 -0
  152. package/dist/http/notification/admin/entities.d.ts +68 -0
  153. package/dist/http/notification/admin/entities.d.ts.map +1 -0
  154. package/dist/http/notification/admin/entities.js +3 -0
  155. package/dist/http/notification/admin/entities.js.map +1 -0
  156. package/dist/http/notification/admin/index.d.ts +4 -0
  157. package/dist/http/notification/admin/index.d.ts.map +1 -0
  158. package/dist/http/notification/admin/index.js +20 -0
  159. package/dist/http/notification/admin/index.js.map +1 -0
  160. package/dist/http/notification/admin/queries.d.ts +19 -0
  161. package/dist/http/notification/admin/queries.d.ts.map +1 -0
  162. package/dist/http/notification/admin/queries.js +3 -0
  163. package/dist/http/notification/admin/queries.js.map +1 -0
  164. package/dist/http/notification/admin/responses.d.ts +16 -0
  165. package/dist/http/notification/admin/responses.d.ts.map +1 -0
  166. package/dist/http/notification/admin/responses.js +3 -0
  167. package/dist/http/notification/admin/responses.js.map +1 -0
  168. package/dist/http/notification/index.d.ts +2 -0
  169. package/dist/http/notification/index.d.ts.map +1 -0
  170. package/dist/http/notification/index.js +18 -0
  171. package/dist/http/notification/index.js.map +1 -0
  172. package/dist/http/payment/admin/queries.d.ts +6 -0
  173. package/dist/http/payment/admin/queries.d.ts.map +1 -1
  174. package/dist/http/payment/admin/responses.d.ts +3 -0
  175. package/dist/http/payment/admin/responses.d.ts.map +1 -1
  176. package/dist/http/payment/common.d.ts +1 -21
  177. package/dist/http/payment/common.d.ts.map +1 -1
  178. package/dist/http/payment/store/payloads.d.ts +0 -5
  179. package/dist/http/payment/store/payloads.d.ts.map +1 -1
  180. package/dist/http/plugins/admin/responses.d.ts +13 -0
  181. package/dist/http/plugins/admin/responses.d.ts.map +1 -0
  182. package/dist/http/plugins/admin/responses.js +3 -0
  183. package/dist/http/plugins/admin/responses.js.map +1 -0
  184. package/dist/http/plugins/index.d.ts +2 -0
  185. package/dist/http/plugins/index.d.ts.map +1 -0
  186. package/dist/http/plugins/index.js +18 -0
  187. package/dist/http/plugins/index.js.map +1 -0
  188. package/dist/http/user/admin/entities.d.ts +27 -0
  189. package/dist/http/user/admin/entities.d.ts.map +1 -1
  190. package/dist/http/user/admin/payloads.d.ts +12 -0
  191. package/dist/http/user/admin/payloads.d.ts.map +1 -1
  192. package/dist/http/user/admin/queries.d.ts +24 -0
  193. package/dist/http/user/admin/queries.d.ts.map +1 -1
  194. package/dist/http/user/admin/responses.d.ts +6 -0
  195. package/dist/http/user/admin/responses.d.ts.map +1 -1
  196. package/dist/http/workflow-execution/admin/entities.d.ts +142 -2
  197. package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
  198. package/dist/http/workflow-execution/admin/queries.d.ts +10 -0
  199. package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
  200. package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
  201. package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
  202. package/dist/index-data/common.d.ts +11 -0
  203. package/dist/index-data/common.d.ts.map +1 -1
  204. package/dist/index-data/index-operator-map.d.ts +10 -10
  205. package/dist/index-data/index-operator-map.d.ts.map +1 -1
  206. package/dist/index-data/index.d.ts +1 -1
  207. package/dist/index-data/index.js +1 -1
  208. package/dist/index-data/query-config/query-input-config-fields.d.ts +3 -1
  209. package/dist/index-data/query-config/query-input-config-fields.d.ts.map +1 -1
  210. package/dist/index-data/query-config/query-input-config-filters.d.ts +1 -1
  211. package/dist/index-data/query-config/query-input-config-filters.d.ts.map +1 -1
  212. package/dist/index-data/query-config/query-input-config.d.ts +50 -6
  213. package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
  214. package/dist/index-data/{sotrage-provider.d.ts → storage-provider.d.ts} +1 -1
  215. package/dist/index-data/{sotrage-provider.d.ts.map → storage-provider.d.ts.map} +1 -1
  216. package/dist/index-data/storage-provider.js +3 -0
  217. package/dist/index-data/storage-provider.js.map +1 -0
  218. package/dist/index.d.ts +4 -2
  219. package/dist/index.d.ts.map +1 -1
  220. package/dist/index.js +3 -2
  221. package/dist/index.js.map +1 -1
  222. package/dist/joiner/index.d.ts +3 -0
  223. package/dist/joiner/index.d.ts.map +1 -1
  224. package/dist/link-modules/index.d.ts.map +1 -0
  225. package/dist/link-modules/index.js.map +1 -0
  226. package/dist/link-modules/migrations.d.ts.map +1 -0
  227. package/dist/link-modules/migrations.js.map +1 -0
  228. package/dist/{link-modules-sdk → link-modules}/service.d.ts +1 -1
  229. package/dist/link-modules/service.d.ts.map +1 -0
  230. package/dist/link-modules/service.js +3 -0
  231. package/dist/link-modules/service.js.map +1 -0
  232. package/dist/locking/index.d.ts +466 -0
  233. package/dist/locking/index.d.ts.map +1 -1
  234. package/dist/modules-sdk/eto-internal-service.d.ts +5 -5
  235. package/dist/modules-sdk/eto-internal-service.d.ts.map +1 -1
  236. package/dist/modules-sdk/index.d.ts +25 -5
  237. package/dist/modules-sdk/index.d.ts.map +1 -1
  238. package/dist/modules-sdk/remote-query-object-from-string.d.ts +55 -4
  239. package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
  240. package/dist/modules-sdk/remote-query.d.ts +14 -0
  241. package/dist/modules-sdk/remote-query.d.ts.map +1 -1
  242. package/dist/modules-sdk/to-remote-query.d.ts +8 -2
  243. package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
  244. package/dist/notification/common.d.ts +1 -1
  245. package/dist/notification/common.d.ts.map +1 -1
  246. package/dist/notification/mutations.d.ts +10 -5
  247. package/dist/notification/mutations.d.ts.map +1 -1
  248. package/dist/notification/service.d.ts +23 -5
  249. package/dist/notification/service.d.ts.map +1 -1
  250. package/dist/payment/common.d.ts +78 -48
  251. package/dist/payment/common.d.ts.map +1 -1
  252. package/dist/payment/mutations.d.ts +73 -47
  253. package/dist/payment/mutations.d.ts.map +1 -1
  254. package/dist/payment/provider.d.ts +450 -76
  255. package/dist/payment/provider.d.ts.map +1 -1
  256. package/dist/payment/service.d.ts +351 -14
  257. package/dist/payment/service.d.ts.map +1 -1
  258. package/dist/shared-context.d.ts +8 -0
  259. package/dist/shared-context.d.ts.map +1 -1
  260. package/dist/totals/big-number.d.ts +15 -0
  261. package/dist/totals/big-number.d.ts.map +1 -0
  262. package/dist/totals/big-number.js +3 -0
  263. package/dist/totals/big-number.js.map +1 -0
  264. package/dist/totals/index.d.ts +26 -0
  265. package/dist/totals/index.d.ts.map +1 -0
  266. package/dist/totals/index.js +18 -0
  267. package/dist/totals/index.js.map +1 -0
  268. package/dist/tsconfig.tsbuildinfo +1 -1
  269. package/dist/workflow/index.d.ts +1 -0
  270. package/dist/workflow/index.d.ts.map +1 -1
  271. package/dist/workflow/index.js +2 -1
  272. package/dist/workflow/index.js.map +1 -1
  273. package/dist/workflow/invite/accept-invite.d.ts +39 -0
  274. package/dist/workflow/invite/accept-invite.d.ts.map +1 -0
  275. package/dist/workflow/invite/accept-invite.js +3 -0
  276. package/dist/workflow/invite/accept-invite.js.map +1 -0
  277. package/dist/workflow/invite/create-invite.d.ts +11 -0
  278. package/dist/workflow/invite/create-invite.d.ts.map +1 -0
  279. package/dist/workflow/invite/create-invite.js +3 -0
  280. package/dist/workflow/invite/create-invite.js.map +1 -0
  281. package/dist/workflow/invite/delete-invite.d.ts +10 -0
  282. package/dist/workflow/invite/delete-invite.d.ts.map +1 -0
  283. package/dist/workflow/invite/delete-invite.js +3 -0
  284. package/dist/workflow/invite/delete-invite.js.map +1 -0
  285. package/dist/workflow/invite/index.d.ts +5 -0
  286. package/dist/workflow/invite/index.d.ts.map +1 -0
  287. package/dist/workflow/invite/index.js +21 -0
  288. package/dist/workflow/invite/index.js.map +1 -0
  289. package/dist/workflow/invite/resend-invite.d.ts +10 -0
  290. package/dist/workflow/invite/resend-invite.d.ts.map +1 -0
  291. package/dist/workflow/invite/resend-invite.js +3 -0
  292. package/dist/workflow/invite/resend-invite.js.map +1 -0
  293. package/dist/workflow/user/create-user.d.ts +6 -0
  294. package/dist/workflow/user/create-user.d.ts.map +1 -1
  295. package/dist/workflow/user/update-user.d.ts +6 -0
  296. package/dist/workflow/user/update-user.d.ts.map +1 -1
  297. package/dist/workflows-sdk/common.d.ts +6 -4
  298. package/dist/workflows-sdk/common.d.ts.map +1 -1
  299. package/dist/workflows-sdk/service.d.ts +12 -8
  300. package/dist/workflows-sdk/service.d.ts.map +1 -1
  301. package/package.json +25 -22
  302. package/dist/index-data/sotrage-provider.js.map +0 -1
  303. package/dist/link-modules-sdk/index.d.ts.map +0 -1
  304. package/dist/link-modules-sdk/index.js.map +0 -1
  305. package/dist/link-modules-sdk/migrations.d.ts.map +0 -1
  306. package/dist/link-modules-sdk/migrations.js.map +0 -1
  307. package/dist/link-modules-sdk/service.d.ts.map +0 -1
  308. /package/dist/{link-modules-sdk → analytics}/service.js +0 -0
  309. /package/dist/{link-modules-sdk → link-modules}/index.d.ts +0 -0
  310. /package/dist/{link-modules-sdk → link-modules}/index.js +0 -0
  311. /package/dist/{link-modules-sdk → link-modules}/migrations.d.ts +0 -0
  312. /package/dist/{link-modules-sdk → link-modules}/migrations.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA;AAEN;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG;KAC1D,QAAQ,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC;CAC/B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;KAC7C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAChB,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;CACjB;AAED;;GAEG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M,CAAA;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,MAAM,IAAI;KAC1D,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GACtD,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACnC,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACnB,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAClC,CAAC,CAAC,CAAC,CAAC;CACT,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IACnD,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import { ExternalModuleDeclaration, InternalModuleDeclaration, DefaultModulesDefinition } from "../modules-sdk";
2
+ import type { SignOptions, Secret, VerifyOptions } from "jsonwebtoken";
2
3
  import type { RedisOptions } from "ioredis";
4
+ import { ConnectionOptions } from "node:tls";
3
5
  import type { InlineConfig } from "vite";
4
6
  /**
5
7
  * @interface
@@ -12,7 +14,7 @@ export interface AdminOptions {
12
14
  * in both development and production environments. The default value is `false`.
13
15
  *
14
16
  * @example
15
- * ```js title="eto-config.js"
17
+ * ```js title="eto-config.ts"
16
18
  * module.exports = defineConfig({
17
19
  * admin: {
18
20
  * disable: process.env.ADMIN_DISABLED === "true" ||
@@ -33,7 +35,7 @@ export interface AdminOptions {
33
35
  * - `/`
34
36
  *
35
37
  * @example
36
- * ```js title="eto-config.js"
38
+ * ```ts title="eto-config.ts"
37
39
  * module.exports = defineConfig({
38
40
  * admin: {
39
41
  * path: process.env.ADMIN_PATH || `/app`,
@@ -42,12 +44,12 @@ export interface AdminOptions {
42
44
  * })
43
45
  * ```
44
46
  */
45
- path?: `/${string}`;
47
+ path: `/${string}`;
46
48
  /**
47
49
  * The URL of your Eto application. Defaults to the browser origin. This is useful to set when running the admin on a separate domain.
48
50
  *
49
51
  * @example
50
- * ```js title="eto-config.js"
52
+ * ```js title="eto-config.ts"
51
53
  * module.exports = defineConfig({
52
54
  * admin: {
53
55
  * backendUrl: process.env.ETO_BACKEND_URL ||
@@ -63,7 +65,7 @@ export interface AdminOptions {
63
65
  * to provide to customers to complete any processes
64
66
  *
65
67
  * @example
66
- * ```js title="eto-config.js"
68
+ * ```js title="eto-config.ts"
67
69
  * module.exports = defineConfig({
68
70
  * admin: {
69
71
  * storefrontUrl: process.env.ETO_STOREFRONT_URL ||
@@ -74,6 +76,11 @@ export interface AdminOptions {
74
76
  * ```
75
77
  */
76
78
  storefrontUrl?: string;
79
+ /**
80
+ * The directory where the admin build is output. This is where the build process places the generated files.
81
+ * The default value is `./build`.
82
+ */
83
+ outDir?: string;
77
84
  /**
78
85
  * Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
79
86
  * and returns the modified configuration. The default value is `undefined`.
@@ -87,7 +94,7 @@ export interface AdminOptions {
87
94
  *
88
95
  * Options to pass to `express-session`.
89
96
  */
90
- type SessionOptions = {
97
+ export type SessionOptions = {
91
98
  /**
92
99
  * The name of the session ID cookie to set in the response (and read from in the request). The default value is `connect.sid`.
93
100
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#name) for more details.
@@ -118,6 +125,50 @@ type SessionOptions = {
118
125
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#cookiemaxage) for details.
119
126
  */
120
127
  ttl?: number;
128
+ /**
129
+ * Specify the options for storing session data to dynamoDB. Make
130
+ * sure to install the following dependencies first.
131
+ *
132
+ * - @aws-sdk/client-dynamodb@^3.218.0
133
+ * - connect-dynamodb@^3.0.5
134
+ */
135
+ dynamodbOptions?: {
136
+ clientOptions?: {
137
+ endpoint?: string;
138
+ };
139
+ table?: string;
140
+ /** Defaults to 'sess:' */
141
+ prefix?: string;
142
+ /** Defaults to 'id' */
143
+ hashKey?: string;
144
+ readCapacityUnits?: number;
145
+ writeCapacityUnits?: number;
146
+ specialKeys?: {
147
+ name: string;
148
+ type: string;
149
+ }[];
150
+ skipThrowMissingSpecialKeys?: boolean;
151
+ /**
152
+ * Disable initialization.
153
+ * Useful if the table already exists or if you want to skip existence checks in a serverless environment such as AWS Lambda.
154
+ */
155
+ initialized?: boolean;
156
+ };
157
+ };
158
+ /**
159
+ * @interface
160
+ *
161
+ * Options to pass to `express-session`.
162
+ */
163
+ export type CookieOptions = Record<string, any> & {
164
+ secure?: boolean;
165
+ sameSite?: "lax" | "strict" | "none";
166
+ maxAge?: number;
167
+ httpOnly?: boolean;
168
+ priority?: "low" | "medium" | "high";
169
+ domain?: string;
170
+ path?: string;
171
+ signed?: boolean;
121
172
  };
122
173
  /**
123
174
  * @interface
@@ -158,7 +209,7 @@ export type ProjectConfigOptions = {
158
209
  * [PostgreSQL's documentation](https://www.postgresql.org/docs/current/sql-createdatabase.html).
159
210
  *
160
211
  * @example
161
- * ```js title="eto-config.js"
212
+ * ```js title="eto-config.ts"
162
213
  * module.exports = defineConfig({
163
214
  * projectConfig: {
164
215
  * databaseName: process.env.DATABASE_NAME ||
@@ -194,9 +245,9 @@ export type ProjectConfigOptions = {
194
245
  * DATABASE_URL=postgres://postgres@localhost/eto-store
195
246
  * ```
196
247
  *
197
- * Then, use the value in `eto-config.js`:
248
+ * Then, use the value in `eto-config.ts`:
198
249
  *
199
- * ```js title="eto-config.js"
250
+ * ```js title="eto-config.ts"
200
251
  * module.exports = defineConfig({
201
252
  * projectConfig: {
202
253
  * databaseUrl: process.env.DATABASE_URL,
@@ -210,7 +261,7 @@ export type ProjectConfigOptions = {
210
261
  /**
211
262
  * The database schema to connect to. This is not required to provide if you’re using the default schema, which is `public`.
212
263
  *
213
- * ```js title="eto-config.js"
264
+ * ```js title="eto-config.ts"
214
265
  * module.exports = defineConfig({
215
266
  * projectConfig: {
216
267
  * databaseSchema: process.env.DATABASE_SCHEMA ||
@@ -226,7 +277,7 @@ export type ProjectConfigOptions = {
226
277
  * This configuration specifies whether database messages should be logged.
227
278
  *
228
279
  * @example
229
- * ```js title="eto-config.js"
280
+ * ```js title="eto-config.ts"
230
281
  * module.exports = defineConfig({
231
282
  * projectConfig: {
232
283
  * databaseLogging: false
@@ -251,7 +302,7 @@ export type ProjectConfigOptions = {
251
302
  * :::
252
303
  *
253
304
  * @example
254
- * ```js title="eto-config.js"
305
+ * ```js title="eto-config.ts"
255
306
  * module.exports = defineConfig({
256
307
  * projectConfig: {
257
308
  * databaseDriverOptions: process.env.NODE_ENV !== "development" ?
@@ -267,12 +318,7 @@ export type ProjectConfigOptions = {
267
318
  /**
268
319
  * Configure support for TLS/SSL connection
269
320
  */
270
- ssl?: {
271
- /**
272
- * Whether to fail connection if the server certificate is verified against the list of supplied CAs and the hostname and no match is found.
273
- */
274
- rejectUnauthorized?: false;
275
- };
321
+ ssl?: boolean | ConnectionOptions;
276
322
  };
277
323
  };
278
324
  /**
@@ -293,7 +339,7 @@ export type ProjectConfigOptions = {
293
339
  * For a local Redis installation, the connection URL should be `redis://localhost:6379` unless you’ve made any changes to the Redis configuration during installation.
294
340
  *
295
341
  * @example
296
- * ```js title="eto-config.js"
342
+ * ```js title="eto-config.ts"
297
343
  * module.exports = defineConfig({
298
344
  * projectConfig: {
299
345
  * redisUrl: process.env.REDIS_URL ||
@@ -311,7 +357,7 @@ export type ProjectConfigOptions = {
311
357
  * If this configuration option is provided, it is prepended to `sess:`.
312
358
  *
313
359
  * @example
314
- * ```js title="eto-config.js"
360
+ * ```js title="eto-config.ts"
315
361
  * module.exports = defineConfig({
316
362
  * projectConfig: {
317
363
  * redisPrefix: process.env.REDIS_URL || "eto:",
@@ -327,7 +373,7 @@ export type ProjectConfigOptions = {
327
373
  * for the list of available options.
328
374
  *
329
375
  * @example
330
- * ```js title="eto-config.js"
376
+ * ```js title="eto-config.ts"
331
377
  * module.exports = defineConfig({
332
378
  * projectConfig: {
333
379
  * redisOptions: {
@@ -345,7 +391,7 @@ export type ProjectConfigOptions = {
345
391
  * This configuration defines additional options to pass to [express-session](https://www.npmjs.com/package/express-session), which is used to store the Eto server's session.
346
392
  *
347
393
  * @example
348
- * ```js title="eto-config.js"
394
+ * ```js title="eto-config.ts"
349
395
  * module.exports = defineConfig({
350
396
  * projectConfig: {
351
397
  * sessionOptions: {
@@ -358,11 +404,12 @@ export type ProjectConfigOptions = {
358
404
  * ```
359
405
  */
360
406
  sessionOptions?: SessionOptions;
407
+ cookieOptions?: CookieOptions;
361
408
  /**
362
409
  * Configure the number of staged jobs that are polled from the database. Default is `1000`.
363
410
  *
364
411
  * @example
365
- * ```js title="eto-config.js"
412
+ * ```js title="eto-config.ts"
366
413
  * module.exports = defineConfig({
367
414
  * projectConfig: {
368
415
  * jobsBatchSize: 100
@@ -399,7 +446,7 @@ export type ProjectConfigOptions = {
399
446
  * 2. Another having the `workerMode` configuration set to `worker`.
400
447
  *
401
448
  * @example
402
- * ```js title="eto-config.js"
449
+ * ```js title="eto-config.ts"
403
450
  * module.exports = defineConfig({
404
451
  * projectConfig: {
405
452
  * workerMode: process.env.WORKER_MODE || "shared"
@@ -414,7 +461,7 @@ export type ProjectConfigOptions = {
414
461
  * This property configures the application's http-specific settings.
415
462
  *
416
463
  * @example
417
- * ```js title="eto-config.js"
464
+ * ```js title="eto-config.ts"
418
465
  * module.exports = defineConfig({
419
466
  * projectConfig: {
420
467
  * http: {
@@ -437,7 +484,7 @@ export type ProjectConfigOptions = {
437
484
  * error is thrown and the application crashes.
438
485
  *
439
486
  * @example
440
- * ```js title="eto-config.js"
487
+ * ```js title="eto-config.ts"
441
488
  * module.exports = defineConfig({
442
489
  * projectConfig: {
443
490
  * http: {
@@ -449,14 +496,73 @@ export type ProjectConfigOptions = {
449
496
  * })
450
497
  * ```
451
498
  */
452
- jwtSecret?: string;
499
+ jwtSecret?: Secret;
500
+ /**
501
+ * The public key used to verify the JWT token in combination with the JWT secret and the JWT options.
502
+ * Only used when the JWT secret is a secret key for asymetric validation.
503
+ *
504
+ * @example
505
+ * ```js title="eto-config.ts"
506
+ * module.exports = defineConfig({
507
+ * projectConfig: {
508
+ * http: {
509
+ * jwtPublicKey: "public-key"
510
+ * }
511
+ * // ...
512
+ * },
513
+ * // ...
514
+ * })
515
+ * ```
516
+ */
517
+ jwtPublicKey?: Secret;
518
+ /**
519
+ * Options for the JWT token when using asymetric signing private/public key. Will be used for validation if `jwtVerifyOptions` is not provided.
520
+ *
521
+ * @example
522
+ * ```js title="eto-config.ts"
523
+ * module.exports = defineConfig({
524
+ * projectConfig: {
525
+ * http: {
526
+ * jwtOptions: {
527
+ * algorithm: "RS256",
528
+ * expiresIn: "1h",
529
+ * issuer: "eto",
530
+ * keyid: "eto",
531
+ * }
532
+ * }
533
+ * // ...
534
+ * },
535
+ * // ...
536
+ * })
537
+ * ```
538
+ */
539
+ jwtOptions?: SignOptions;
540
+ /**
541
+ * Options for the JWT token when using asymetric validation private/public key.
542
+ *
543
+ * @example
544
+ * ```js title="eto-config.ts"
545
+ * module.exports = defineConfig({
546
+ * projectConfig: {
547
+ * http: {
548
+ * jwtVerifyOptions: {
549
+ * // ...
550
+ * }
551
+ * }
552
+ * // ...
553
+ * },
554
+ * // ...
555
+ * })
556
+ * ```
557
+ */
558
+ jwtVerifyOptions?: VerifyOptions;
453
559
  /**
454
560
  * The expiration time for the JWT token. Its format is based off the [ms package](https://github.com/vercel/ms).
455
561
  *
456
562
  * If not provided, the default value is `24h`.
457
563
  *
458
564
  * @example
459
- * ```js title="eto-config.js"
565
+ * ```js title="eto-config.ts"
460
566
  * module.exports = defineConfig({
461
567
  * projectConfig: {
462
568
  * http: {
@@ -476,7 +582,7 @@ export type ProjectConfigOptions = {
476
582
  * the application crashes.
477
583
  *
478
584
  * @example
479
- * ```js title="eto-config.js"
585
+ * ```js title="eto-config.ts"
480
586
  * module.exports = defineConfig({
481
587
  * projectConfig: {
482
588
  * http: {
@@ -513,9 +619,9 @@ export type ProjectConfigOptions = {
513
619
  * AUTH_CORS=/http:\/\/.+/
514
620
  * ```
515
621
  *
516
- * Then, set the configuration in `eto-config.js`:
622
+ * Then, set the configuration in `eto-config.ts`:
517
623
  *
518
- * ```js title="eto-config.js"
624
+ * ```js title="eto-config.ts"
519
625
  * module.exports = defineConfig({
520
626
  * projectConfig: {
521
627
  * http: {
@@ -527,9 +633,9 @@ export type ProjectConfigOptions = {
527
633
  * })
528
634
  * ```
529
635
  *
530
- * If you’re adding the value directly within `eto-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
636
+ * If you’re adding the value directly within `eto-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
531
637
  *
532
- * ```js title="eto-config.js"
638
+ * ```js title="eto-config.ts"
533
639
  * module.exports = defineConfig({
534
640
  * projectConfig: {
535
641
  * http: {
@@ -551,7 +657,7 @@ export type ProjectConfigOptions = {
551
657
  * Learn more in the [API Reference](https://docs.etohq.com/api/store#http-compression).
552
658
  *
553
659
  * @example
554
- * ```js title="eto-config.js"
660
+ * ```js title="eto-config.ts"
555
661
  * module.exports = defineConfig({
556
662
  * projectConfig: {
557
663
  * http: {
@@ -592,9 +698,9 @@ export type ProjectConfigOptions = {
592
698
  * STORE_CORS=/http:\/\/.+/
593
699
  * ```
594
700
  *
595
- * Then, set the configuration in `eto-config.js`:
701
+ * Then, set the configuration in `eto-config.ts`:
596
702
  *
597
- * ```js title="eto-config.js"
703
+ * ```js title="eto-config.ts"
598
704
  * module.exports = defineConfig({
599
705
  * projectConfig: {
600
706
  * http: {
@@ -606,9 +712,9 @@ export type ProjectConfigOptions = {
606
712
  * })
607
713
  * ```
608
714
  *
609
- * If you’re adding the value directly within `eto-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
715
+ * If you’re adding the value directly within `eto-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
610
716
  *
611
- * ```js title="eto-config.js"
717
+ * ```js title="eto-config.ts"
612
718
  * module.exports = defineConfig({
613
719
  * projectConfig: {
614
720
  * http: {
@@ -645,9 +751,9 @@ export type ProjectConfigOptions = {
645
751
  * ADMIN_CORS=/http:\/\/.+/
646
752
  * ```
647
753
  *
648
- * Then, set the configuration in `eto-config.js`:
754
+ * Then, set the configuration in `eto-config.ts`:
649
755
  *
650
- * ```js title="eto-config.js"
756
+ * ```js title="eto-config.ts"
651
757
  * module.exports = defineConfig({
652
758
  * projectConfig: {
653
759
  * http: {
@@ -659,9 +765,9 @@ export type ProjectConfigOptions = {
659
765
  * })
660
766
  * ```
661
767
  *
662
- * If you’re adding the value directly within `eto-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
768
+ * If you’re adding the value directly within `eto-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
663
769
  *
664
- * ```js title="eto-config.js"
770
+ * ```js title="eto-config.ts"
665
771
  * module.exports = defineConfig({
666
772
  * projectConfig: {
667
773
  * http: {
@@ -683,9 +789,9 @@ export type ProjectConfigOptions = {
683
789
  * @example
684
790
  * Some example values of common use cases:
685
791
  *
686
- * Then, set the configuration in `eto-config.js`:
792
+ * Then, set the configuration in `eto-config.ts`:
687
793
  *
688
- * ```js title="eto-config.js"
794
+ * ```js title="eto-config.ts"
689
795
  * module.exports = defineConfig({
690
796
  * projectConfig: {
691
797
  * http: {
@@ -707,7 +813,7 @@ export type ProjectConfigOptions = {
707
813
  *
708
814
  * @example
709
815
  *
710
- * ```js title="eto-config.js"
816
+ * ```js title="eto-config.ts"
711
817
  * module.exports = defineConfig({
712
818
  * projectConfig: {
713
819
  * http: {
@@ -721,24 +827,46 @@ export type ProjectConfigOptions = {
721
827
  store?: string[];
722
828
  };
723
829
  };
830
+ /**
831
+ * The path to the directory containing service-level migration files.
832
+ * This is used to specify where the application should look for migration scripts
833
+ * that are specific to services or modules.
834
+ *
835
+ * @example
836
+ * ```js title="eto-config.js"
837
+ * module.exports = defineConfig({
838
+ * projectConfig: {
839
+ * serviceMigrationsPath: "./migrations/services"
840
+ * }
841
+ * })
842
+ * ```
843
+ */
844
+ serviceMigrationsPath?: string;
724
845
  };
725
846
  /**
726
847
  * @interface
727
848
  *
728
- * The configurations for your Eto application are in `eto-config.js` located in the root of your Eto project. The configurations include configurations for database, modules, and more.
849
+ * The configurations for your Eto application are set in `eto-config.ts` located in the root of your Eto project. The configurations include configurations for database, modules, and more.
850
+ *
851
+ * :::note
852
+ *
853
+ * Some Eto configurations are set through environment variables, which you can find in [this documentation](https://docs.etohq.com/learn/fundamentals/environment-variables#predefined-eto-environment-variables).
729
854
  *
730
- * `eto-config.js` exports the value returned by the `defineConfig` utility function imported from `@etohq/utils`.
855
+ * :::
856
+ *
857
+ * `eto-config.ts` exports the value returned by the `defineConfig` utility function imported from `@etohq/framework/utils`.
731
858
  *
732
859
  * `defineConfig` accepts as a parameter an object with the following properties:
733
860
  *
734
861
  * - {@link ConfigModule.projectConfig | projectConfig} (required): An object that holds general configurations related to the Eto application, such as database or CORS configurations.
862
+ * - {@link ConfigModule.plugins | plugins}: An array of strings or objects that hold the configurations of the plugins installed in the Eto application.
735
863
  * - {@link ConfigModule.admin | admin}: An object that holds admin-related configurations.
736
864
  * - {@link ConfigModule.modules | modules}: An object that configures the Eto application's modules.
737
865
  * - {@link ConfigModule.featureFlags | featureFlags}: An object that enables or disables features guarded by a feature flag.
738
866
  *
739
867
  * For example:
740
868
  *
741
- * ```js title="eto-config.js"
869
+ * ```ts title="eto-config.ts"
742
870
  * module.exports = defineConfig({
743
871
  * projectConfig: {
744
872
  * // ...
@@ -759,7 +887,7 @@ export type ProjectConfigOptions = {
759
887
  *
760
888
  * ## Environment Variables
761
889
  *
762
- * It's highly recommended to store the values of configurations in environment variables, then reference them within `eto-config.js`.
890
+ * It's highly recommended to store the values of configurations in environment variables, then reference them within `eto-config.ts`.
763
891
  *
764
892
  * During development, you can set your environment variables in the `.env` file at the root of your Eto application project. In production,
765
893
  * setting the environment variables depends on the hosting provider.
@@ -775,7 +903,7 @@ export type ConfigModule<TKey extends string = string> = {
775
903
  * This property holds configurations for the Eto Admin dashboard.
776
904
  *
777
905
  * @example
778
- * ```js title="eto-config.js"
906
+ * ```ts title="eto-config.ts"
779
907
  * module.exports = defineConfig({
780
908
  * admin: {
781
909
  * backendUrl: process.env.ETO_BACKEND_URL ||
@@ -823,7 +951,14 @@ export type ConfigModule<TKey extends string = string> = {
823
951
  * Added the `@\ignore` tag for now so it's not generated in the main docs until we figure out what to do with plugins
824
952
  */
825
953
  plugins: ({
954
+ /**
955
+ * The name of the plugin's package as specified in the plugin's `package.json` file.
956
+ */
826
957
  resolve: string;
958
+ /**
959
+ * An object that includes options to be passed to the modules within the plugin.
960
+ * Learn more in [this documentation](https://docs.etohq.com/learn/fundamentals/modules/options).
961
+ */
827
962
  options: Record<string, unknown>;
828
963
  } | string)[];
829
964
  /**
@@ -831,43 +966,42 @@ export type ConfigModule<TKey extends string = string> = {
831
966
  *
832
967
  * :::note
833
968
  *
834
- * Eto's commerce modules are configured by default, so only
969
+ * Eto's Commerce Modules are configured by default, so only
835
970
  * add them to this property if you're changing their configurations or adding providers to a module.
836
971
  *
837
972
  * :::
838
973
  *
839
- * The keys of the `modules` configuration object refer to the module's registration name. Its value can be one of the following:
974
+ * `modules` is an array of objects, each holding a module's registration configurations. Each object has the following properties:
840
975
  *
841
- * 1. A boolean value indicating whether the module type is enabled. This is only supported for Eto's commerce and architectural modules;
842
- * 2. Or an object having the following properties:
843
- * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./commerce-modules/my-module`.
844
- * 2. `options`: (optional) an object indicating the options to pass to the module.
976
+ * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./modules/my-module`.
977
+ * 2. `options`: (optional) an object indicating the options to pass to the module.
845
978
  *
846
979
  * @example
847
- * ```js title="eto-config.js"
980
+ * ```ts title="eto-config.ts"
848
981
  * module.exports = defineConfig({
849
- * modules: {
850
- * helloModuleService: {
851
- * resolve: "./commerce-modules/hello"
982
+ * modules: [
983
+ * {
984
+ * resolve: "./modules/hello"
852
985
  * }
853
- * }
986
+ * ]
854
987
  * // ...
855
988
  * })
856
989
  * ```
857
990
  */
991
+ inputModules: InputConfigModules<TKey>;
858
992
  modules?: Record<TKey, boolean | Partial<InternalModuleDeclaration | ExternalModuleDeclaration>>;
859
993
  /**
860
994
  * Some features in the Eto application are guarded by a feature flag. This ensures constant shipping of new features while maintaining the engine’s stability.
861
995
  *
862
996
  * You can enable a feature in your application by enabling its feature flag. Feature flags are enabled through either environment
863
- * variables or through this configuration property exported in `eto-config.js`.
997
+ * variables or through this configuration property exported in `eto-config.ts`.
864
998
  *
865
999
  * The `featureFlags`'s value is an object. Its properties are the names of the feature flags, and their value is a boolean indicating whether the feature flag is enabled.
866
1000
  *
867
1001
  * You can find available feature flags and their key name [here](https://github.com/etohq/eto/tree/develop/packages/eto/src/loaders/feature-flags).
868
1002
  *
869
1003
  * @example
870
- * ```js title="eto-config.js"
1004
+ * ```ts title="eto-config.ts"
871
1005
  * module.exports = defineConfig({
872
1006
  * featureFlags: {
873
1007
  * analytics: true,
@@ -885,6 +1019,22 @@ export type ConfigModule<TKey extends string = string> = {
885
1019
  */
886
1020
  featureFlags: Record<string, boolean | string | Record<string, boolean>>;
887
1021
  modulesDefinition: DefaultModulesDefinition<TKey>;
1022
+ /**
1023
+ * The file system path to the directory containing Encore migration files.
1024
+ * This should be an absolute or relative path from the project root where Encore will look for migration scripts.
1025
+ *
1026
+ * @example
1027
+ * ```js title="eto-config.js"
1028
+ * module.exports = defineConfig({
1029
+ * projectConfig: {
1030
+ * serviceMigrationsPath: "./services/admin/nmigrations",
1031
+ * // ...
1032
+ * },
1033
+ * // ...
1034
+ * })
1035
+ * ```
1036
+ */
1037
+ serviceMigrationPath?: string;
888
1038
  };
889
1039
  type InternalModuleDeclarationOverride<TKey = string> = InternalModuleDeclaration & {
890
1040
  /**
@@ -917,13 +1067,22 @@ export type InputConfig<TKey = string> = Partial<Omit<ConfigModule, "admin" | "m
917
1067
  admin: Partial<ConfigModule["admin"]>;
918
1068
  modules: InputConfigModules<TKey>;
919
1069
  }>;
1070
+ type PluginAdminDetails = {
1071
+ type: "local" | "package";
1072
+ resolve: string;
1073
+ };
920
1074
  export type PluginDetails<TKey = string> = {
921
1075
  resolve: string;
922
1076
  name: string;
923
1077
  id: string;
924
1078
  options: Record<string, unknown>;
925
1079
  version: string;
1080
+ admin?: PluginAdminDetails;
926
1081
  modules?: InputConfigModules<TKey>;
927
1082
  };
1083
+ export type ModulesDefinitionOutput<TKey extends string = string> = {
1084
+ modulesDefinition: DefaultModulesDefinition<TKey>;
1085
+ modules: InputConfigModules<TKey>;
1086
+ };
928
1087
  export {};
929
1088
  //# sourceMappingURL=config-module.d.ts.map