@geekmidas/cli 10.0.0-alpha.12 → 10.0.0-alpha.13

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 (241) hide show
  1. package/dist/{HostingerProvider-BcyFRbqV.mjs → HostingerProvider-BY26bWwB.mjs} +20 -21
  2. package/dist/HostingerProvider-BY26bWwB.mjs.map +1 -0
  3. package/dist/{HostingerProvider-BOvsgATO.cjs → HostingerProvider-BZFGYYVA.cjs} +21 -22
  4. package/dist/HostingerProvider-BZFGYYVA.cjs.map +1 -0
  5. package/dist/{LocalStateProvider-yjXZXZDM.cjs → LocalStateProvider-7HR6SS2t.cjs} +11 -6
  6. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +1 -0
  7. package/dist/{LocalStateProvider-Bq-0C0sg.mjs → LocalStateProvider-D7QyJoLM.mjs} +10 -4
  8. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +1 -0
  9. package/dist/{Route53Provider-C0xmer8U.mjs → Route53Provider-Cvj40A8I.mjs} +12 -12
  10. package/dist/Route53Provider-Cvj40A8I.mjs.map +1 -0
  11. package/dist/{Route53Provider-CH9XH7bz.cjs → Route53Provider-DVILBsvV.cjs} +20 -21
  12. package/dist/Route53Provider-DVILBsvV.cjs.map +1 -0
  13. package/dist/{SSMStateProvider-DOZifZfE.mjs → SSMStateProvider-B0Hu1MKZ.mjs} +13 -4
  14. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +1 -0
  15. package/dist/{SSMStateProvider-CXtNgPfy.cjs → SSMStateProvider-VrQ-yeqd.cjs} +17 -9
  16. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +1 -0
  17. package/dist/{backup-provisioner-cE2PuCTb.cjs → backup-provisioner-BmhIO_Yr.cjs} +21 -19
  18. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +1 -0
  19. package/dist/{backup-provisioner-DXXg6FIL.mjs → backup-provisioner-DIVCbfee.mjs} +10 -7
  20. package/dist/backup-provisioner-DIVCbfee.mjs.map +1 -0
  21. package/dist/{bundler-BMekgx7a.cjs → bundler-BeNDZdHQ.cjs} +9 -12
  22. package/dist/bundler-BeNDZdHQ.cjs.map +1 -0
  23. package/dist/{bundler-Bux2iF-v.mjs → bundler-BodTL4kf.mjs} +8 -10
  24. package/dist/bundler-BodTL4kf.mjs.map +1 -0
  25. package/dist/{config-RYR9j6EF.cjs → config-Q1rvKHvw.cjs} +74 -69
  26. package/dist/config-Q1rvKHvw.cjs.map +1 -0
  27. package/dist/{config-DTsVjKZD.mjs → config-pqGD3hF9.mjs} +26 -14
  28. package/dist/config-pqGD3hF9.mjs.map +1 -0
  29. package/dist/config.cjs +4 -5
  30. package/dist/config.d.cts +14 -17
  31. package/dist/config.d.cts.map +1 -1
  32. package/dist/config.d.mts +14 -17
  33. package/dist/config.d.mts.map +1 -1
  34. package/dist/config.mjs +3 -5
  35. package/dist/{credentials-jMJC63qs.mjs → credentials-BekkKtY_.mjs} +234 -79
  36. package/dist/credentials-BekkKtY_.mjs.map +1 -0
  37. package/dist/{credentials-DQRvPz2S.cjs → credentials-Q6F0uqJq.cjs} +384 -236
  38. package/dist/credentials-Q6F0uqJq.cjs.map +1 -0
  39. package/dist/deploy/sniffer-envkit-patch.cjs +18 -10
  40. package/dist/deploy/sniffer-envkit-patch.cjs.map +1 -1
  41. package/dist/deploy/sniffer-envkit-patch.d.cts +0 -2
  42. package/dist/deploy/sniffer-envkit-patch.d.cts.map +1 -1
  43. package/dist/deploy/sniffer-envkit-patch.d.mts +0 -2
  44. package/dist/deploy/sniffer-envkit-patch.d.mts.map +1 -1
  45. package/dist/deploy/sniffer-envkit-patch.mjs +10 -2
  46. package/dist/deploy/sniffer-envkit-patch.mjs.map +1 -1
  47. package/dist/deploy/sniffer-hooks.cjs +13 -7
  48. package/dist/deploy/sniffer-hooks.cjs.map +1 -1
  49. package/dist/deploy/sniffer-hooks.d.cts +1 -2
  50. package/dist/deploy/sniffer-hooks.d.cts.map +1 -1
  51. package/dist/deploy/sniffer-hooks.d.mts +1 -2
  52. package/dist/deploy/sniffer-hooks.d.mts.map +1 -1
  53. package/dist/deploy/sniffer-hooks.mjs +9 -2
  54. package/dist/deploy/sniffer-hooks.mjs.map +1 -1
  55. package/dist/deploy/sniffer-loader.cjs +16 -7
  56. package/dist/deploy/sniffer-loader.cjs.map +1 -1
  57. package/dist/deploy/sniffer-loader.d.cts +1 -1
  58. package/dist/deploy/sniffer-loader.d.mts +1 -1
  59. package/dist/deploy/sniffer-loader.mjs +13 -2
  60. package/dist/deploy/sniffer-loader.mjs.map +1 -1
  61. package/dist/deploy/sniffer-routes-worker.cjs +11 -11
  62. package/dist/deploy/sniffer-routes-worker.cjs.map +1 -1
  63. package/dist/deploy/sniffer-routes-worker.d.cts +1 -1
  64. package/dist/deploy/sniffer-routes-worker.d.mts +1 -1
  65. package/dist/deploy/sniffer-routes-worker.mjs +2 -2
  66. package/dist/deploy/sniffer-routes-worker.mjs.map +1 -1
  67. package/dist/deploy/sniffer-worker.cjs +15 -6
  68. package/dist/deploy/sniffer-worker.cjs.map +1 -1
  69. package/dist/deploy/sniffer-worker.d.cts +1 -3
  70. package/dist/deploy/sniffer-worker.d.cts.map +1 -1
  71. package/dist/deploy/sniffer-worker.d.mts +1 -3
  72. package/dist/deploy/sniffer-worker.d.mts.map +1 -1
  73. package/dist/deploy/sniffer-worker.mjs +15 -4
  74. package/dist/deploy/sniffer-worker.mjs.map +1 -1
  75. package/dist/{discover-DmW9Bscc.cjs → discover-BERGFg8v.cjs} +68 -70
  76. package/dist/discover-BERGFg8v.cjs.map +1 -0
  77. package/dist/{discover-BYHQwQqu.mjs → discover-CK-n3w6b.mjs} +22 -20
  78. package/dist/discover-CK-n3w6b.mjs.map +1 -0
  79. package/dist/{emit-CUD1BWls.cjs → emit-BdoPFjZf.cjs} +53 -36
  80. package/dist/emit-BdoPFjZf.cjs.map +1 -0
  81. package/dist/{emit-CIlvnDvV.mjs → emit-Bzq7JsMP.mjs} +24 -6
  82. package/dist/emit-Bzq7JsMP.mjs.map +1 -0
  83. package/dist/{fullstack-secrets-B6KBHf-g.mjs → fullstack-secrets-BET8gqwK.mjs} +9 -15
  84. package/dist/fullstack-secrets-BET8gqwK.mjs.map +1 -0
  85. package/dist/{fullstack-secrets-DL8v0y4D.cjs → fullstack-secrets-DXsWO-5m.cjs} +19 -26
  86. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +1 -0
  87. package/dist/{generator-VE2JrFlY.mjs → generator-LfZU7NlU.mjs} +8 -14
  88. package/dist/generator-LfZU7NlU.mjs.map +1 -0
  89. package/dist/{generator-CNzBw7g5.cjs → generator-Wdfp0jCS.cjs} +38 -45
  90. package/dist/generator-Wdfp0jCS.cjs.map +1 -0
  91. package/dist/{github-BThvbf2W.cjs → github-BfflNPVe.cjs} +36 -30
  92. package/dist/{github-BThvbf2W.cjs.map → github-BfflNPVe.cjs.map} +1 -1
  93. package/dist/{github-DpMZurEK.mjs → github-CRwnxKmD.mjs} +27 -20
  94. package/dist/github-CRwnxKmD.mjs.map +1 -0
  95. package/dist/{index-BzJ7QJ9c.d.mts → index-Cd-qeOam.d.mts} +3 -8
  96. package/dist/index-Cd-qeOam.d.mts.map +1 -0
  97. package/dist/{index-CfMjtdVC.d.cts → index-D-iAVHx-.d.cts} +3 -8
  98. package/dist/index-D-iAVHx-.d.cts.map +1 -0
  99. package/dist/index.cjs +2894 -1582
  100. package/dist/index.cjs.map +1 -1
  101. package/dist/index.d.cts +1 -1
  102. package/dist/index.d.mts +1 -1
  103. package/dist/index.mjs +2765 -1470
  104. package/dist/index.mjs.map +1 -1
  105. package/dist/{keystore-TxeYM7an.mjs → keystore-B4PRlbgE.mjs} +5 -7
  106. package/dist/keystore-B4PRlbgE.mjs.map +1 -0
  107. package/dist/{keystore-C9rint2E.cjs → keystore-DgGRj2Yy.cjs} +23 -26
  108. package/dist/keystore-DgGRj2Yy.cjs.map +1 -0
  109. package/dist/{openapi-DWLTsYLL.cjs → openapi-Dcbme-Us.cjs} +134 -171
  110. package/dist/openapi-Dcbme-Us.cjs.map +1 -0
  111. package/dist/openapi-react-query.cjs +156 -2
  112. package/dist/openapi-react-query.cjs.map +1 -0
  113. package/dist/openapi-react-query.d.cts +1 -3
  114. package/dist/openapi-react-query.d.cts.map +1 -1
  115. package/dist/openapi-react-query.d.mts +1 -3
  116. package/dist/openapi-react-query.d.mts.map +1 -1
  117. package/dist/openapi-react-query.mjs +156 -2
  118. package/dist/openapi-react-query.mjs.map +1 -0
  119. package/dist/{openapi-Bs3-5q_r.mjs → openapi-vy4JzhUv.mjs} +76 -106
  120. package/dist/openapi-vy4JzhUv.mjs.map +1 -0
  121. package/dist/openapi.cjs +3 -6
  122. package/dist/openapi.d.cts +8 -11
  123. package/dist/openapi.d.cts.map +1 -1
  124. package/dist/openapi.d.mts +8 -11
  125. package/dist/openapi.d.mts.map +1 -1
  126. package/dist/openapi.mjs +2 -6
  127. package/dist/reconcile/public.cjs +4 -4
  128. package/dist/reconcile/public.d.cts +8 -26
  129. package/dist/reconcile/public.d.cts.map +1 -1
  130. package/dist/reconcile/public.d.mts +8 -26
  131. package/dist/reconcile/public.d.mts.map +1 -1
  132. package/dist/reconcile/public.mjs +3 -4
  133. package/dist/{reconcile-Bhw5fmKu.cjs → reconcile-Dd2iyILf.cjs} +4 -7
  134. package/dist/reconcile-Dd2iyILf.cjs.map +1 -0
  135. package/dist/{reconcile-BI0tWkwz.mjs → reconcile-DhQ00DpU.mjs} +4 -7
  136. package/dist/reconcile-DhQ00DpU.mjs.map +1 -0
  137. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  138. package/dist/{chunk-CUT6urMc.cjs → rolldown-runtime-C0BPl7ul.cjs} +23 -10
  139. package/dist/{storage-CSNplaJn.cjs → storage-C-30BD1e.cjs} +59 -69
  140. package/dist/storage-C-30BD1e.cjs.map +1 -0
  141. package/dist/{storage-B020InPW.mjs → storage-P_b3w7uj.mjs} +22 -13
  142. package/dist/storage-P_b3w7uj.mjs.map +1 -0
  143. package/dist/{sync-CzHXiR9c.mjs → sync-B3xxXtJT.mjs} +18 -6
  144. package/dist/sync-B3xxXtJT.mjs.map +1 -0
  145. package/dist/{sync-0ILCb-1S.cjs → sync-D7uTIIEi.cjs} +43 -25
  146. package/dist/sync-D7uTIIEi.cjs.map +1 -0
  147. package/dist/types-BGo5TaNE.d.mts +6164 -0
  148. package/dist/types-BGo5TaNE.d.mts.map +1 -0
  149. package/dist/types-C5ZNpUad.d.cts +6165 -0
  150. package/dist/types-C5ZNpUad.d.cts.map +1 -0
  151. package/dist/workspace/index.cjs +3 -3
  152. package/dist/workspace/index.d.cts +3 -3
  153. package/dist/workspace/index.d.mts +3 -3
  154. package/dist/workspace/index.mjs +2 -3
  155. package/dist/{workspace-CtnZnWsa.mjs → workspace-CgwmXEtc.mjs} +712 -806
  156. package/dist/workspace-CgwmXEtc.mjs.map +1 -0
  157. package/dist/{workspace-DPV7FtAv.cjs → workspace-mFpI_ky_.cjs} +881 -976
  158. package/dist/workspace-mFpI_ky_.cjs.map +1 -0
  159. package/package.json +14 -14
  160. package/dist/CachedStateProvider-BEBl2wQT.cjs +0 -60
  161. package/dist/CachedStateProvider-BEBl2wQT.cjs.map +0 -1
  162. package/dist/CachedStateProvider-C-8wtlto.mjs +0 -3
  163. package/dist/CachedStateProvider-Co4n5Wvs.mjs +0 -54
  164. package/dist/CachedStateProvider-Co4n5Wvs.mjs.map +0 -1
  165. package/dist/CachedStateProvider-DqhGpzsm.cjs +0 -3
  166. package/dist/HostingerProvider-BOvsgATO.cjs.map +0 -1
  167. package/dist/HostingerProvider-BcyFRbqV.mjs.map +0 -1
  168. package/dist/LocalStateProvider-Bq-0C0sg.mjs.map +0 -1
  169. package/dist/LocalStateProvider-yjXZXZDM.cjs.map +0 -1
  170. package/dist/Route53Provider-C0xmer8U.mjs.map +0 -1
  171. package/dist/Route53Provider-CH9XH7bz.cjs.map +0 -1
  172. package/dist/SSMStateProvider-CXtNgPfy.cjs.map +0 -1
  173. package/dist/SSMStateProvider-DOZifZfE.mjs.map +0 -1
  174. package/dist/backup-provisioner-DXXg6FIL.mjs.map +0 -1
  175. package/dist/backup-provisioner-cE2PuCTb.cjs.map +0 -1
  176. package/dist/bundler-BMekgx7a.cjs.map +0 -1
  177. package/dist/bundler-Bux2iF-v.mjs.map +0 -1
  178. package/dist/chunk-Duj1WY3L.mjs +0 -7
  179. package/dist/config-DTsVjKZD.mjs.map +0 -1
  180. package/dist/config-RYR9j6EF.cjs.map +0 -1
  181. package/dist/credentials-B5zRHdAl.mjs +0 -141
  182. package/dist/credentials-B5zRHdAl.mjs.map +0 -1
  183. package/dist/credentials-BapzjyV5.cjs +0 -195
  184. package/dist/credentials-BapzjyV5.cjs.map +0 -1
  185. package/dist/credentials-DQRvPz2S.cjs.map +0 -1
  186. package/dist/credentials-jMJC63qs.mjs.map +0 -1
  187. package/dist/discover-BYHQwQqu.mjs.map +0 -1
  188. package/dist/discover-DmW9Bscc.cjs.map +0 -1
  189. package/dist/dokploy-api-5cK2InBm.cjs +0 -3
  190. package/dist/dokploy-api-D2Ny4Jrc.mjs +0 -3
  191. package/dist/dokploy-api-pdaBryoY.mjs +0 -706
  192. package/dist/dokploy-api-pdaBryoY.mjs.map +0 -1
  193. package/dist/dokploy-api-zqKe9lHH.cjs +0 -718
  194. package/dist/dokploy-api-zqKe9lHH.cjs.map +0 -1
  195. package/dist/emit-CIlvnDvV.mjs.map +0 -1
  196. package/dist/emit-CUD1BWls.cjs.map +0 -1
  197. package/dist/encryption-D2pL3tHH.cjs +0 -54
  198. package/dist/encryption-D2pL3tHH.cjs.map +0 -1
  199. package/dist/encryption-YDsXXi6w.mjs +0 -3
  200. package/dist/encryption-_4zwjOAR.mjs +0 -42
  201. package/dist/encryption-_4zwjOAR.mjs.map +0 -1
  202. package/dist/encryption-sQ2Oxx0d.cjs +0 -4
  203. package/dist/fullstack-secrets-B6KBHf-g.mjs.map +0 -1
  204. package/dist/fullstack-secrets-DL8v0y4D.cjs.map +0 -1
  205. package/dist/generator-CNzBw7g5.cjs.map +0 -1
  206. package/dist/generator-VE2JrFlY.mjs.map +0 -1
  207. package/dist/github-DpMZurEK.mjs.map +0 -1
  208. package/dist/index-BzJ7QJ9c.d.mts.map +0 -1
  209. package/dist/index-CfMjtdVC.d.cts.map +0 -1
  210. package/dist/keystore-C9rint2E.cjs.map +0 -1
  211. package/dist/keystore-TxeYM7an.mjs.map +0 -1
  212. package/dist/openapi-Bs3-5q_r.mjs.map +0 -1
  213. package/dist/openapi-DWLTsYLL.cjs.map +0 -1
  214. package/dist/openapi-react-query-Byltvm_7.mjs +0 -167
  215. package/dist/openapi-react-query-Byltvm_7.mjs.map +0 -1
  216. package/dist/openapi-react-query-CmJ1xDbn.cjs +0 -173
  217. package/dist/openapi-react-query-CmJ1xDbn.cjs.map +0 -1
  218. package/dist/reconcile-BI0tWkwz.mjs.map +0 -1
  219. package/dist/reconcile-Bhw5fmKu.cjs.map +0 -1
  220. package/dist/setup-BmLoNrDX.mjs +0 -12
  221. package/dist/setup-BrR1_xGy.cjs +0 -12
  222. package/dist/setup-BsNR2LBG.cjs +0 -467
  223. package/dist/setup-BsNR2LBG.cjs.map +0 -1
  224. package/dist/setup-D5-JMknk.mjs +0 -437
  225. package/dist/setup-D5-JMknk.mjs.map +0 -1
  226. package/dist/storage-B020InPW.mjs.map +0 -1
  227. package/dist/storage-CSNplaJn.cjs.map +0 -1
  228. package/dist/storage-DGBzMLZa.mjs +0 -4
  229. package/dist/storage-DlVol_oj.cjs +0 -8
  230. package/dist/sync-0ILCb-1S.cjs.map +0 -1
  231. package/dist/sync-CzHXiR9c.mjs.map +0 -1
  232. package/dist/sync-DYENfOt4.cjs +0 -4
  233. package/dist/sync-HAau6h_R.mjs +0 -3
  234. package/dist/types-DVIx8I1N.d.mts +0 -1950
  235. package/dist/types-DVIx8I1N.d.mts.map +0 -1
  236. package/dist/types-PMP_qXRY.d.cts +0 -1950
  237. package/dist/types-PMP_qXRY.d.cts.map +0 -1
  238. package/dist/workspace-Cji6lE8E.cjs +0 -10
  239. package/dist/workspace-CkJAtRIX.mjs +0 -9
  240. package/dist/workspace-CtnZnWsa.mjs.map +0 -1
  241. package/dist/workspace-DPV7FtAv.cjs.map +0 -1
@@ -1,1950 +0,0 @@
1
- import { ConstructManifest } from "@geekmidas/manifest";
2
- import { z } from "zod/v4";
3
-
4
- //#region src/deploy/state.d.ts
5
-
6
- /**
7
- * Deploy state management for Dokploy deployments
8
- *
9
- * Stores resource IDs (applications, services) per stage to avoid
10
- * re-creating resources on subsequent deploys.
11
- */
12
- /**
13
- * Per-app database credentials
14
- */
15
- interface AppDbCredentials {
16
- dbUser: string;
17
- dbPassword: string;
18
- }
19
- /**
20
- * DNS verification record for a hostname
21
- */
22
- interface DnsVerificationRecord {
23
- serverIp: string;
24
- verifiedAt: string;
25
- }
26
- /**
27
- * A DNS record that was created during deploy
28
- */
29
- interface CreatedDnsRecord {
30
- /** The domain this record belongs to (e.g., 'example.com') */
31
- domain: string;
32
- /** Record name/subdomain (e.g., 'api' or '@' for root) */
33
- name: string;
34
- /** Record type (A, CNAME, etc.) */
35
- type: string;
36
- /** Record value (IP address, hostname, etc.) */
37
- value: string;
38
- /** TTL in seconds */
39
- ttl: number;
40
- /** When this record was created */
41
- createdAt: string;
42
- }
43
- /**
44
- * Backup destination state
45
- */
46
- interface BackupState {
47
- /** S3 bucket name for backups */
48
- bucketName: string;
49
- /** S3 bucket ARN */
50
- bucketArn: string;
51
- /** IAM user name created for backup access */
52
- iamUserName: string;
53
- /** IAM access key ID */
54
- iamAccessKeyId: string;
55
- /** IAM secret access key */
56
- iamSecretAccessKey: string;
57
- /** Dokploy destination ID */
58
- destinationId: string;
59
- /** Dokploy backup schedule ID for postgres (if configured) */
60
- postgresBackupId?: string;
61
- /** AWS region where bucket was created */
62
- region: string;
63
- /** Timestamp when backup was configured */
64
- createdAt: string;
65
- }
66
- /**
67
- * State for a single stage deployment
68
- */
69
- interface DokployStageState {
70
- provider: 'dokploy';
71
- stage: string;
72
- /** Dokploy project ID - created on first deploy */
73
- projectId: string;
74
- environmentId: string;
75
- applications: Record<string, string>;
76
- services: {
77
- postgresId?: string;
78
- redisId?: string;
79
- };
80
- /** Per-app database credentials for reuse on subsequent deploys */
81
- appCredentials?: Record<string, AppDbCredentials>;
82
- /** Auto-generated secrets per app (e.g., BETTER_AUTH_SECRET) */
83
- generatedSecrets?: Record<string, Record<string, string>>;
84
- /** DNS verification state per hostname */
85
- dnsVerified?: Record<string, DnsVerificationRecord>;
86
- /** DNS records created during deploy (keyed by "name:type", e.g., "api:A") */
87
- dnsRecords?: Record<string, CreatedDnsRecord>;
88
- /** Backup destination state */
89
- backups?: BackupState;
90
- lastDeployedAt: string;
91
- }
92
- /**
93
- * Read the deploy state for a stage
94
- * Returns null if state file doesn't exist
95
- */
96
- //#endregion
97
- //#region src/deploy/StateProvider.d.ts
98
- /**
99
- * Interface for deployment state storage providers.
100
- *
101
- * Implementations must handle:
102
- * - Reading state for a stage (returns null if not found)
103
- * - Writing state for a stage (creates or updates)
104
- */
105
- interface StateProvider {
106
- /**
107
- * Read deployment state for a stage.
108
- *
109
- * @param stage - The deployment stage (e.g., 'development', 'production')
110
- * @returns The state object or null if not found
111
- */
112
- read(stage: string): Promise<DokployStageState | null>;
113
- /**
114
- * Write deployment state for a stage.
115
- *
116
- * @param stage - The deployment stage
117
- * @param state - The state object to persist
118
- */
119
- write(stage: string, state: DokployStageState): Promise<void>;
120
- }
121
- /**
122
- * Valid AWS regions.
123
- */
124
- type AwsRegion = 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'af-south-1' | 'ap-east-1' | 'ap-south-1' | 'ap-south-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-southeast-3' | 'ap-southeast-4' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-south-1' | 'eu-south-2' | 'eu-north-1' | 'me-south-1' | 'me-central-1' | 'sa-east-1';
125
- /**
126
- * Local state provider config.
127
- */
128
- interface LocalStateConfig {
129
- provider: 'local';
130
- }
131
- /**
132
- * SSM state provider config (requires region).
133
- */
134
- interface SSMStateConfig {
135
- provider: 'ssm';
136
- /** AWS region (required for SSM provider) */
137
- region: AwsRegion;
138
- /** AWS profile name (optional - uses default credential chain if not provided) */
139
- profile?: string;
140
- }
141
- /**
142
- * Custom state provider config.
143
- */
144
- interface CustomStateConfig {
145
- /** Custom StateProvider implementation */
146
- provider: StateProvider;
147
- }
148
- /**
149
- * State configuration types.
150
- */
151
- type StateConfig = LocalStateConfig | SSMStateConfig | CustomStateConfig;
152
- /**
153
- * Check if value is a StateProvider implementation.
154
- */
155
- //#endregion
156
- //#region src/workspace/schema.d.ts
157
- /**
158
- * Backend framework schema for non-gkm apps.
159
- */
160
- declare const BackendFrameworkSchema: z.ZodEnum<{
161
- hono: "hono";
162
- "better-auth": "better-auth";
163
- express: "express";
164
- fastify: "fastify";
165
- }>;
166
- /**
167
- * Backend framework types for apps that don't use gkm routes.
168
- * Derived from {@link BackendFrameworkSchema}.
169
- *
170
- * Used with `entry` to specify the framework for proper Docker builds.
171
- *
172
- * @example
173
- * ```ts
174
- * // Better Auth server
175
- * {
176
- * entry: './src/index.ts',
177
- * framework: 'better-auth',
178
- * port: 3001,
179
- * }
180
- *
181
- * // Hono app without gkm routes
182
- * {
183
- * entry: './src/server.ts',
184
- * framework: 'hono',
185
- * port: 3000,
186
- * }
187
- * ```
188
- */
189
- type BackendFramework = z.infer<typeof BackendFrameworkSchema>;
190
- /**
191
- * Frontend framework schema.
192
- */
193
- declare const FrontendFrameworkSchema: z.ZodEnum<{
194
- nextjs: "nextjs";
195
- remix: "remix";
196
- vite: "vite";
197
- "tanstack-start": "tanstack-start";
198
- }>;
199
- /**
200
- * Frontend framework types. Derived from {@link FrontendFrameworkSchema}.
201
- *
202
- * @example
203
- * ```ts
204
- * // Next.js app
205
- * {
206
- * type: 'web',
207
- * framework: 'nextjs',
208
- * port: 3000,
209
- * }
210
- *
211
- * // Vite SPA
212
- * {
213
- * type: 'web',
214
- * framework: 'vite',
215
- * port: 5173,
216
- * }
217
- *
218
- * // TanStack Start (Vite-based, full-stack)
219
- * {
220
- * type: 'web',
221
- * framework: 'tanstack-start',
222
- * port: 3000,
223
- * }
224
- * ```
225
- */
226
- type FrontendFramework = z.infer<typeof FrontendFrameworkSchema>;
227
- /**
228
- * Mobile framework schema.
229
- */
230
- declare const MobileFrameworkSchema: z.ZodEnum<{
231
- expo: "expo";
232
- }>;
233
- /**
234
- * Mobile framework types. Derived from {@link MobileFrameworkSchema}.
235
- *
236
- * Mobile apps deploy via their own toolchain (e.g. EAS Build for Expo)
237
- * rather than Docker/Dokploy. Only build-time public env vars
238
- * (e.g. `EXPO_PUBLIC_*`) reach the device — server secrets are dropped.
239
- *
240
- * @example
241
- * ```ts
242
- * {
243
- * type: 'mobile',
244
- * framework: 'expo',
245
- * path: 'apps/mobile',
246
- * port: 8081,
247
- * dependencies: ['api'],
248
- * }
249
- * ```
250
- */
251
- type MobileFramework = z.infer<typeof MobileFrameworkSchema>;
252
- /**
253
- * Combined framework schema (backend, frontend, or mobile).
254
- */
255
- declare const FrameworkSchema: z.ZodUnion<readonly [z.ZodEnum<{
256
- hono: "hono";
257
- "better-auth": "better-auth";
258
- express: "express";
259
- fastify: "fastify";
260
- }>, z.ZodEnum<{
261
- nextjs: "nextjs";
262
- remix: "remix";
263
- vite: "vite";
264
- "tanstack-start": "tanstack-start";
265
- }>, z.ZodEnum<{
266
- expo: "expo";
267
- }>]>;
268
- /**
269
- * Any framework value across backend, frontend, or mobile.
270
- * Derived from {@link FrameworkSchema}.
271
- */
272
- type Framework = z.infer<typeof FrameworkSchema>;
273
- /**
274
- * Supported deploy targets (Phase 1).
275
- */
276
- declare const SUPPORTED_DEPLOY_TARGETS: readonly ["dokploy"];
277
- /**
278
- * Phase 2 deploy targets (not yet implemented).
279
- */
280
- declare const PHASE_2_DEPLOY_TARGETS: readonly ["vercel", "cloudflare"];
281
- /**
282
- * Check if a deploy target is supported.
283
- */
284
- declare function isDeployTargetSupported(target: string): boolean;
285
- /**
286
- * Check if a deploy target is planned for Phase 2.
287
- */
288
- declare function isPhase2DeployTarget(target: string): boolean;
289
- /**
290
- * Get error message for unsupported deploy targets.
291
- */
292
- declare function getDeployTargetError(target: string, appName?: string): string;
293
- /**
294
- * DNS record types supported across providers.
295
- */
296
-
297
- /**
298
- * Combined DNS config that supports both new multi-domain and legacy single-domain formats.
299
- */
300
- declare const DnsConfigWithLegacySchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
301
- provider: z.ZodLiteral<"hostinger">;
302
- ttl: z.ZodOptional<z.ZodNumber>;
303
- }, z.core.$strip>, z.ZodObject<{
304
- provider: z.ZodLiteral<"route53">;
305
- region: z.ZodOptional<z.ZodEnum<{
306
- "us-east-1": "us-east-1";
307
- "us-east-2": "us-east-2";
308
- "us-west-1": "us-west-1";
309
- "us-west-2": "us-west-2";
310
- "af-south-1": "af-south-1";
311
- "ap-east-1": "ap-east-1";
312
- "ap-south-1": "ap-south-1";
313
- "ap-south-2": "ap-south-2";
314
- "ap-southeast-1": "ap-southeast-1";
315
- "ap-southeast-2": "ap-southeast-2";
316
- "ap-southeast-3": "ap-southeast-3";
317
- "ap-southeast-4": "ap-southeast-4";
318
- "ap-northeast-1": "ap-northeast-1";
319
- "ap-northeast-2": "ap-northeast-2";
320
- "ap-northeast-3": "ap-northeast-3";
321
- "ca-central-1": "ca-central-1";
322
- "eu-central-1": "eu-central-1";
323
- "eu-central-2": "eu-central-2";
324
- "eu-west-1": "eu-west-1";
325
- "eu-west-2": "eu-west-2";
326
- "eu-west-3": "eu-west-3";
327
- "eu-south-1": "eu-south-1";
328
- "eu-south-2": "eu-south-2";
329
- "eu-north-1": "eu-north-1";
330
- "me-south-1": "me-south-1";
331
- "me-central-1": "me-central-1";
332
- "sa-east-1": "sa-east-1";
333
- }>>;
334
- profile: z.ZodOptional<z.ZodString>;
335
- hostedZoneId: z.ZodOptional<z.ZodString>;
336
- ttl: z.ZodOptional<z.ZodNumber>;
337
- }, z.core.$strip>, z.ZodObject<{
338
- provider: z.ZodLiteral<"cloudflare">;
339
- ttl: z.ZodOptional<z.ZodNumber>;
340
- }, z.core.$strip>, z.ZodObject<{
341
- provider: z.ZodLiteral<"manual">;
342
- }, z.core.$strip>], "provider">, z.ZodObject<{
343
- provider: z.ZodCustom<{
344
- name: string;
345
- getRecords: Function;
346
- upsertRecords: Function;
347
- }, {
348
- name: string;
349
- getRecords: Function;
350
- upsertRecords: Function;
351
- }>;
352
- ttl: z.ZodOptional<z.ZodNumber>;
353
- }, z.core.$strip>]>>, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
354
- provider: z.ZodLiteral<"hostinger">;
355
- ttl: z.ZodOptional<z.ZodNumber>;
356
- domain: z.ZodString;
357
- }, z.core.$strip>, z.ZodObject<{
358
- provider: z.ZodLiteral<"route53">;
359
- region: z.ZodOptional<z.ZodEnum<{
360
- "us-east-1": "us-east-1";
361
- "us-east-2": "us-east-2";
362
- "us-west-1": "us-west-1";
363
- "us-west-2": "us-west-2";
364
- "af-south-1": "af-south-1";
365
- "ap-east-1": "ap-east-1";
366
- "ap-south-1": "ap-south-1";
367
- "ap-south-2": "ap-south-2";
368
- "ap-southeast-1": "ap-southeast-1";
369
- "ap-southeast-2": "ap-southeast-2";
370
- "ap-southeast-3": "ap-southeast-3";
371
- "ap-southeast-4": "ap-southeast-4";
372
- "ap-northeast-1": "ap-northeast-1";
373
- "ap-northeast-2": "ap-northeast-2";
374
- "ap-northeast-3": "ap-northeast-3";
375
- "ca-central-1": "ca-central-1";
376
- "eu-central-1": "eu-central-1";
377
- "eu-central-2": "eu-central-2";
378
- "eu-west-1": "eu-west-1";
379
- "eu-west-2": "eu-west-2";
380
- "eu-west-3": "eu-west-3";
381
- "eu-south-1": "eu-south-1";
382
- "eu-south-2": "eu-south-2";
383
- "eu-north-1": "eu-north-1";
384
- "me-south-1": "me-south-1";
385
- "me-central-1": "me-central-1";
386
- "sa-east-1": "sa-east-1";
387
- }>>;
388
- profile: z.ZodOptional<z.ZodString>;
389
- hostedZoneId: z.ZodOptional<z.ZodString>;
390
- ttl: z.ZodOptional<z.ZodNumber>;
391
- domain: z.ZodString;
392
- }, z.core.$strip>, z.ZodObject<{
393
- provider: z.ZodLiteral<"cloudflare">;
394
- ttl: z.ZodOptional<z.ZodNumber>;
395
- domain: z.ZodString;
396
- }, z.core.$strip>, z.ZodObject<{
397
- provider: z.ZodLiteral<"manual">;
398
- domain: z.ZodString;
399
- }, z.core.$strip>], "provider">, z.ZodObject<{
400
- provider: z.ZodCustom<{
401
- name: string;
402
- getRecords: Function;
403
- upsertRecords: Function;
404
- }, {
405
- name: string;
406
- getRecords: Function;
407
- upsertRecords: Function;
408
- }>;
409
- ttl: z.ZodOptional<z.ZodNumber>;
410
- domain: z.ZodString;
411
- }, z.core.$strip>]>]>;
412
- type DnsConfig = z.infer<typeof DnsConfigWithLegacySchema>;
413
- /**
414
- * Backups configuration schema.
415
- *
416
- * Configures automatic backup destinations for database services.
417
- * On first deploy, creates S3 bucket with unique name and IAM credentials.
418
- */
419
- declare const BackupsConfigSchema: z.ZodObject<{
420
- type: z.ZodLiteral<"s3">;
421
- profile: z.ZodOptional<z.ZodString>;
422
- region: z.ZodEnum<{
423
- "us-east-1": "us-east-1";
424
- "us-east-2": "us-east-2";
425
- "us-west-1": "us-west-1";
426
- "us-west-2": "us-west-2";
427
- "af-south-1": "af-south-1";
428
- "ap-east-1": "ap-east-1";
429
- "ap-south-1": "ap-south-1";
430
- "ap-south-2": "ap-south-2";
431
- "ap-southeast-1": "ap-southeast-1";
432
- "ap-southeast-2": "ap-southeast-2";
433
- "ap-southeast-3": "ap-southeast-3";
434
- "ap-southeast-4": "ap-southeast-4";
435
- "ap-northeast-1": "ap-northeast-1";
436
- "ap-northeast-2": "ap-northeast-2";
437
- "ap-northeast-3": "ap-northeast-3";
438
- "ca-central-1": "ca-central-1";
439
- "eu-central-1": "eu-central-1";
440
- "eu-central-2": "eu-central-2";
441
- "eu-west-1": "eu-west-1";
442
- "eu-west-2": "eu-west-2";
443
- "eu-west-3": "eu-west-3";
444
- "eu-south-1": "eu-south-1";
445
- "eu-south-2": "eu-south-2";
446
- "eu-north-1": "eu-north-1";
447
- "me-south-1": "me-south-1";
448
- "me-central-1": "me-central-1";
449
- "sa-east-1": "sa-east-1";
450
- }>;
451
- schedule: z.ZodOptional<z.ZodString>;
452
- retention: z.ZodOptional<z.ZodNumber>;
453
- }, z.core.$strip>;
454
- type BackupsConfig = z.infer<typeof BackupsConfigSchema>;
455
- /**
456
- * Workspace configuration schema.
457
- */
458
- declare const WorkspaceConfigSchema: z.ZodObject<{
459
- name: z.ZodOptional<z.ZodString>;
460
- constructs: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
461
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
462
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
463
- }, z.core.$strip>]>>;
464
- apps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
465
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
466
- backend: "backend";
467
- web: "web";
468
- mobile: "mobile";
469
- }>>>;
470
- path: z.ZodString;
471
- port: z.ZodNumber;
472
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
473
- deploy: z.ZodOptional<z.ZodEnum<{
474
- dokploy: "dokploy";
475
- vercel: "vercel";
476
- cloudflare: "cloudflare";
477
- }>>;
478
- constructs: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
479
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
480
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
481
- }, z.core.$strip>]>>;
482
- routes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
483
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
484
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
485
- }, z.core.$strip>]>>;
486
- functions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
487
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
488
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
489
- }, z.core.$strip>]>>;
490
- crons: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
491
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
492
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
493
- }, z.core.$strip>]>>;
494
- queues: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
495
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
496
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
497
- }, z.core.$strip>]>>;
498
- topics: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
499
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
500
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
501
- }, z.core.$strip>]>>;
502
- subscribers: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
503
- paths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
504
- partition: z.ZodCustom<(filepath: string) => string, (filepath: string) => string>;
505
- }, z.core.$strip>]>>;
506
- envParser: z.ZodOptional<z.ZodString>;
507
- logger: z.ZodOptional<z.ZodString>;
508
- hooks: z.ZodOptional<z.ZodObject<{
509
- server: z.ZodOptional<z.ZodString>;
510
- }, z.core.$strip>>;
511
- telescope: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodObject<{
512
- enabled: z.ZodOptional<z.ZodBoolean>;
513
- port: z.ZodOptional<z.ZodNumber>;
514
- path: z.ZodOptional<z.ZodString>;
515
- ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
516
- recordBody: z.ZodOptional<z.ZodBoolean>;
517
- maxEntries: z.ZodOptional<z.ZodNumber>;
518
- websocket: z.ZodOptional<z.ZodBoolean>;
519
- }, z.core.$strip>]>>;
520
- studio: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodObject<{
521
- enabled: z.ZodOptional<z.ZodBoolean>;
522
- path: z.ZodOptional<z.ZodString>;
523
- schema: z.ZodOptional<z.ZodString>;
524
- }, z.core.$strip>]>>;
525
- openapi: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
526
- enabled: z.ZodOptional<z.ZodBoolean>;
527
- title: z.ZodOptional<z.ZodString>;
528
- version: z.ZodOptional<z.ZodString>;
529
- description: z.ZodOptional<z.ZodString>;
530
- }, z.core.$strip>]>>;
531
- runtime: z.ZodOptional<z.ZodEnum<{
532
- node: "node";
533
- bun: "bun";
534
- }>>;
535
- env: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
536
- entry: z.ZodOptional<z.ZodString>;
537
- framework: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
538
- hono: "hono";
539
- "better-auth": "better-auth";
540
- express: "express";
541
- fastify: "fastify";
542
- }>, z.ZodEnum<{
543
- nextjs: "nextjs";
544
- remix: "remix";
545
- vite: "vite";
546
- "tanstack-start": "tanstack-start";
547
- }>, z.ZodEnum<{
548
- expo: "expo";
549
- }>]>>;
550
- config: z.ZodOptional<z.ZodObject<{
551
- client: z.ZodOptional<z.ZodString>;
552
- server: z.ZodOptional<z.ZodString>;
553
- }, z.core.$strip>>;
554
- }, z.core.$strip>>>;
555
- shared: z.ZodOptional<z.ZodObject<{
556
- packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
557
- models: z.ZodOptional<z.ZodObject<{
558
- path: z.ZodOptional<z.ZodString>;
559
- schema: z.ZodOptional<z.ZodEnum<{
560
- zod: "zod";
561
- }>>;
562
- }, z.core.$strip>>;
563
- }, z.core.$strip>>;
564
- deploy: z.ZodOptional<z.ZodObject<{
565
- default: z.ZodOptional<z.ZodEnum<{
566
- dokploy: "dokploy";
567
- vercel: "vercel";
568
- cloudflare: "cloudflare";
569
- }>>;
570
- dokploy: z.ZodOptional<z.ZodObject<{
571
- endpoint: z.ZodOptional<z.ZodURL>;
572
- endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodURL>>;
573
- registry: z.ZodOptional<z.ZodString>;
574
- registryId: z.ZodOptional<z.ZodString>;
575
- domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
576
- }, z.core.$strip>>;
577
- dns: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
578
- provider: z.ZodLiteral<"hostinger">;
579
- ttl: z.ZodOptional<z.ZodNumber>;
580
- }, z.core.$strip>, z.ZodObject<{
581
- provider: z.ZodLiteral<"route53">;
582
- region: z.ZodOptional<z.ZodEnum<{
583
- "us-east-1": "us-east-1";
584
- "us-east-2": "us-east-2";
585
- "us-west-1": "us-west-1";
586
- "us-west-2": "us-west-2";
587
- "af-south-1": "af-south-1";
588
- "ap-east-1": "ap-east-1";
589
- "ap-south-1": "ap-south-1";
590
- "ap-south-2": "ap-south-2";
591
- "ap-southeast-1": "ap-southeast-1";
592
- "ap-southeast-2": "ap-southeast-2";
593
- "ap-southeast-3": "ap-southeast-3";
594
- "ap-southeast-4": "ap-southeast-4";
595
- "ap-northeast-1": "ap-northeast-1";
596
- "ap-northeast-2": "ap-northeast-2";
597
- "ap-northeast-3": "ap-northeast-3";
598
- "ca-central-1": "ca-central-1";
599
- "eu-central-1": "eu-central-1";
600
- "eu-central-2": "eu-central-2";
601
- "eu-west-1": "eu-west-1";
602
- "eu-west-2": "eu-west-2";
603
- "eu-west-3": "eu-west-3";
604
- "eu-south-1": "eu-south-1";
605
- "eu-south-2": "eu-south-2";
606
- "eu-north-1": "eu-north-1";
607
- "me-south-1": "me-south-1";
608
- "me-central-1": "me-central-1";
609
- "sa-east-1": "sa-east-1";
610
- }>>;
611
- profile: z.ZodOptional<z.ZodString>;
612
- hostedZoneId: z.ZodOptional<z.ZodString>;
613
- ttl: z.ZodOptional<z.ZodNumber>;
614
- }, z.core.$strip>, z.ZodObject<{
615
- provider: z.ZodLiteral<"cloudflare">;
616
- ttl: z.ZodOptional<z.ZodNumber>;
617
- }, z.core.$strip>, z.ZodObject<{
618
- provider: z.ZodLiteral<"manual">;
619
- }, z.core.$strip>], "provider">, z.ZodObject<{
620
- provider: z.ZodCustom<{
621
- name: string;
622
- getRecords: Function;
623
- upsertRecords: Function;
624
- }, {
625
- name: string;
626
- getRecords: Function;
627
- upsertRecords: Function;
628
- }>;
629
- ttl: z.ZodOptional<z.ZodNumber>;
630
- }, z.core.$strip>]>>, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
631
- provider: z.ZodLiteral<"hostinger">;
632
- ttl: z.ZodOptional<z.ZodNumber>;
633
- domain: z.ZodString;
634
- }, z.core.$strip>, z.ZodObject<{
635
- provider: z.ZodLiteral<"route53">;
636
- region: z.ZodOptional<z.ZodEnum<{
637
- "us-east-1": "us-east-1";
638
- "us-east-2": "us-east-2";
639
- "us-west-1": "us-west-1";
640
- "us-west-2": "us-west-2";
641
- "af-south-1": "af-south-1";
642
- "ap-east-1": "ap-east-1";
643
- "ap-south-1": "ap-south-1";
644
- "ap-south-2": "ap-south-2";
645
- "ap-southeast-1": "ap-southeast-1";
646
- "ap-southeast-2": "ap-southeast-2";
647
- "ap-southeast-3": "ap-southeast-3";
648
- "ap-southeast-4": "ap-southeast-4";
649
- "ap-northeast-1": "ap-northeast-1";
650
- "ap-northeast-2": "ap-northeast-2";
651
- "ap-northeast-3": "ap-northeast-3";
652
- "ca-central-1": "ca-central-1";
653
- "eu-central-1": "eu-central-1";
654
- "eu-central-2": "eu-central-2";
655
- "eu-west-1": "eu-west-1";
656
- "eu-west-2": "eu-west-2";
657
- "eu-west-3": "eu-west-3";
658
- "eu-south-1": "eu-south-1";
659
- "eu-south-2": "eu-south-2";
660
- "eu-north-1": "eu-north-1";
661
- "me-south-1": "me-south-1";
662
- "me-central-1": "me-central-1";
663
- "sa-east-1": "sa-east-1";
664
- }>>;
665
- profile: z.ZodOptional<z.ZodString>;
666
- hostedZoneId: z.ZodOptional<z.ZodString>;
667
- ttl: z.ZodOptional<z.ZodNumber>;
668
- domain: z.ZodString;
669
- }, z.core.$strip>, z.ZodObject<{
670
- provider: z.ZodLiteral<"cloudflare">;
671
- ttl: z.ZodOptional<z.ZodNumber>;
672
- domain: z.ZodString;
673
- }, z.core.$strip>, z.ZodObject<{
674
- provider: z.ZodLiteral<"manual">;
675
- domain: z.ZodString;
676
- }, z.core.$strip>], "provider">, z.ZodObject<{
677
- provider: z.ZodCustom<{
678
- name: string;
679
- getRecords: Function;
680
- upsertRecords: Function;
681
- }, {
682
- name: string;
683
- getRecords: Function;
684
- upsertRecords: Function;
685
- }>;
686
- ttl: z.ZodOptional<z.ZodNumber>;
687
- domain: z.ZodString;
688
- }, z.core.$strip>]>]>>;
689
- backups: z.ZodOptional<z.ZodObject<{
690
- type: z.ZodLiteral<"s3">;
691
- profile: z.ZodOptional<z.ZodString>;
692
- region: z.ZodEnum<{
693
- "us-east-1": "us-east-1";
694
- "us-east-2": "us-east-2";
695
- "us-west-1": "us-west-1";
696
- "us-west-2": "us-west-2";
697
- "af-south-1": "af-south-1";
698
- "ap-east-1": "ap-east-1";
699
- "ap-south-1": "ap-south-1";
700
- "ap-south-2": "ap-south-2";
701
- "ap-southeast-1": "ap-southeast-1";
702
- "ap-southeast-2": "ap-southeast-2";
703
- "ap-southeast-3": "ap-southeast-3";
704
- "ap-southeast-4": "ap-southeast-4";
705
- "ap-northeast-1": "ap-northeast-1";
706
- "ap-northeast-2": "ap-northeast-2";
707
- "ap-northeast-3": "ap-northeast-3";
708
- "ca-central-1": "ca-central-1";
709
- "eu-central-1": "eu-central-1";
710
- "eu-central-2": "eu-central-2";
711
- "eu-west-1": "eu-west-1";
712
- "eu-west-2": "eu-west-2";
713
- "eu-west-3": "eu-west-3";
714
- "eu-south-1": "eu-south-1";
715
- "eu-south-2": "eu-south-2";
716
- "eu-north-1": "eu-north-1";
717
- "me-south-1": "me-south-1";
718
- "me-central-1": "me-central-1";
719
- "sa-east-1": "sa-east-1";
720
- }>;
721
- schedule: z.ZodOptional<z.ZodString>;
722
- retention: z.ZodOptional<z.ZodNumber>;
723
- }, z.core.$strip>>;
724
- }, z.core.$strip>>;
725
- stages: z.ZodObject<{
726
- local: z.ZodString;
727
- deployed: z.ZodArray<z.ZodString>;
728
- protected: z.ZodOptional<z.ZodArray<z.ZodString>>;
729
- }, z.core.$strip>;
730
- secrets: z.ZodOptional<z.ZodObject<{
731
- enabled: z.ZodOptional<z.ZodBoolean>;
732
- algorithm: z.ZodOptional<z.ZodString>;
733
- kdf: z.ZodOptional<z.ZodEnum<{
734
- scrypt: "scrypt";
735
- pbkdf2: "pbkdf2";
736
- }>>;
737
- }, z.core.$strip>>;
738
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
739
- provider: z.ZodLiteral<"local">;
740
- }, z.core.$strip>, z.ZodObject<{
741
- provider: z.ZodLiteral<"ssm">;
742
- region: z.ZodEnum<{
743
- "us-east-1": "us-east-1";
744
- "us-east-2": "us-east-2";
745
- "us-west-1": "us-west-1";
746
- "us-west-2": "us-west-2";
747
- "af-south-1": "af-south-1";
748
- "ap-east-1": "ap-east-1";
749
- "ap-south-1": "ap-south-1";
750
- "ap-south-2": "ap-south-2";
751
- "ap-southeast-1": "ap-southeast-1";
752
- "ap-southeast-2": "ap-southeast-2";
753
- "ap-southeast-3": "ap-southeast-3";
754
- "ap-southeast-4": "ap-southeast-4";
755
- "ap-northeast-1": "ap-northeast-1";
756
- "ap-northeast-2": "ap-northeast-2";
757
- "ap-northeast-3": "ap-northeast-3";
758
- "ca-central-1": "ca-central-1";
759
- "eu-central-1": "eu-central-1";
760
- "eu-central-2": "eu-central-2";
761
- "eu-west-1": "eu-west-1";
762
- "eu-west-2": "eu-west-2";
763
- "eu-west-3": "eu-west-3";
764
- "eu-south-1": "eu-south-1";
765
- "eu-south-2": "eu-south-2";
766
- "eu-north-1": "eu-north-1";
767
- "me-south-1": "me-south-1";
768
- "me-central-1": "me-central-1";
769
- "sa-east-1": "sa-east-1";
770
- }>;
771
- profile: z.ZodOptional<z.ZodString>;
772
- }, z.core.$strip>], "provider">, z.ZodObject<{
773
- provider: z.ZodCustom<{
774
- read: Function;
775
- write: Function;
776
- }, {
777
- read: Function;
778
- write: Function;
779
- }>;
780
- }, z.core.$strip>]>>;
781
- }, z.core.$strict>;
782
- /**
783
- * Validate workspace configuration.
784
- * Throws ZodError with detailed messages on validation failure.
785
- */
786
- declare function validateWorkspaceConfig(config: unknown): z.infer<typeof WorkspaceConfigSchema>;
787
- /**
788
- * Safe validation that returns result instead of throwing.
789
- */
790
- declare function safeValidateWorkspaceConfig(config: unknown): {
791
- success: boolean;
792
- data?: z.infer<typeof WorkspaceConfigSchema>;
793
- error?: z.ZodError;
794
- };
795
- /**
796
- * Format Zod errors into user-friendly messages.
797
- */
798
- declare function formatValidationErrors(error: z.ZodError): string;
799
- //#endregion
800
- //#region src/workspace/types.d.ts
801
- /**
802
- * Deploy target for an app.
803
- *
804
- * Specifies where the app will be deployed.
805
- *
806
- * @example
807
- * ```ts
808
- * // Currently supported
809
- * deploy: 'dokploy'
810
- *
811
- * // Future support (not yet implemented)
812
- * deploy: 'vercel'
813
- * deploy: 'cloudflare'
814
- * ```
815
- */
816
- type DeployTarget = 'dokploy' | 'vercel' | 'cloudflare';
817
- /**
818
- * Stage-based domain configuration.
819
- *
820
- * Maps deployment stages to base domains. The main frontend app
821
- * gets the base domain, other apps get `{appName}.{baseDomain}`.
822
- *
823
- * @example
824
- * ```ts
825
- * domains: {
826
- * development: 'dev.myapp.com',
827
- * staging: 'staging.myapp.com',
828
- * production: 'myapp.com',
829
- * }
830
- *
831
- * // Result for production stage:
832
- * // - web (main frontend): myapp.com
833
- * // - api: api.myapp.com
834
- * // - auth: auth.myapp.com
835
- * ```
836
- */
837
- type DokployDomainsConfig = Record<string, string>;
838
- /**
839
- * Per-app domain override configuration.
840
- *
841
- * Can be a single domain string (used for all stages) or
842
- * stage-specific domains.
843
- *
844
- * @example
845
- * ```ts
846
- * // Single domain for all stages
847
- * domain: 'api.custom.com'
848
- *
849
- * // Stage-specific domains
850
- * domain: {
851
- * development: 'api.dev.custom.com',
852
- * staging: 'api.staging.custom.com',
853
- * production: 'api.custom.com',
854
- * }
855
- * ```
856
- */
857
- type AppDomainConfig = string | Record<string, string>;
858
- /**
859
- * Dokploy workspace deployment configuration.
860
- *
861
- * Configures how the workspace is deployed to a Dokploy server.
862
- * One workspace maps to one Dokploy project with stage-based environments.
863
- * Project IDs are stored in deploy state (not config) and created on first deploy.
864
- *
865
- * @example Single endpoint for all stages:
866
- * ```ts
867
- * deploy: {
868
- * default: 'dokploy',
869
- * dokploy: {
870
- * endpoint: 'https://dokploy.myserver.com',
871
- * registry: 'ghcr.io/myorg',
872
- * },
873
- * }
874
- * ```
875
- *
876
- * @example Per-stage endpoints (different Dokploy servers):
877
- * ```ts
878
- * deploy: {
879
- * default: 'dokploy',
880
- * dokploy: {
881
- * endpoints: {
882
- * development: 'https://dev-dokploy.myserver.com',
883
- * production: 'https://dokploy.myserver.com',
884
- * },
885
- * registry: 'ghcr.io/myorg',
886
- * },
887
- * }
888
- * ```
889
- */
890
- interface DokployWorkspaceConfig {
891
- /** Dokploy API endpoint for all stages */
892
- endpoint?: string;
893
- /** Per-stage Dokploy API endpoints (overrides endpoint) */
894
- endpoints?: Record<string, string>;
895
- /** Container registry for Docker images (e.g., 'ghcr.io/myorg') */
896
- registry?: string;
897
- /** Registry ID in Dokploy (auto-configured) */
898
- registryId?: string;
899
- /**
900
- * Stage-based domain configuration.
901
- * The main frontend app gets the base domain.
902
- * Other apps get {appName}.{baseDomain} by default.
903
- */
904
- domains?: DokployDomainsConfig;
905
- }
906
- /**
907
- * DNS provider types for automatic DNS record creation.
908
- */
909
-
910
- /**
911
- * Deployment configuration for the workspace.
912
- *
913
- * @example
914
- * ```ts
915
- * // Minimal - just set default target
916
- * deploy: {
917
- * default: 'dokploy',
918
- * }
919
- *
920
- * // Full configuration with DNS and backups
921
- * deploy: {
922
- * default: 'dokploy',
923
- * dokploy: {
924
- * endpoint: 'https://dokploy.myserver.com',
925
- * projectId: 'proj_abc123',
926
- * registry: 'ghcr.io/myorg',
927
- * domains: {
928
- * production: 'myapp.com',
929
- * },
930
- * },
931
- * dns: {
932
- * provider: 'hostinger',
933
- * domain: 'myapp.com',
934
- * },
935
- * backups: {
936
- * type: 's3',
937
- * region: 'us-east-1',
938
- * },
939
- * }
940
- * ```
941
- */
942
- interface DeployConfig {
943
- /** Default deploy target for all apps (default: 'dokploy') */
944
- default?: DeployTarget;
945
- /** Dokploy-specific configuration */
946
- dokploy?: DokployWorkspaceConfig;
947
- /** DNS configuration for automatic record creation */
948
- dns?: DnsConfig;
949
- /** Backup destination configuration for database services */
950
- backups?: BackupsConfig;
951
- }
952
- /**
953
- * Models package configuration for shared schemas.
954
- *
955
- * Configures a shared models package containing Zod schemas
956
- * that can be used across backend and frontend apps.
957
- *
958
- * @example
959
- * ```ts
960
- * shared: {
961
- * models: {
962
- * path: 'packages/models',
963
- * schema: 'zod',
964
- * },
965
- * }
966
- * ```
967
- */
968
- interface ModelsConfig {
969
- /** Path to models package relative to workspace root (default: 'packages/models') */
970
- path?: string;
971
- /**
972
- * Schema library to use (default: 'zod').
973
- * Currently only 'zod' is supported.
974
- * Future: any StandardSchema-compatible library
975
- */
976
- schema?: 'zod';
977
- }
978
- /**
979
- * Shared packages configuration.
980
- *
981
- * Configures shared packages in the monorepo that are
982
- * used by multiple apps.
983
- *
984
- * @example
985
- * ```ts
986
- * shared: {
987
- * packages: ['packages/*', 'libs/*'],
988
- * models: {
989
- * path: 'packages/models',
990
- * schema: 'zod',
991
- * },
992
- * }
993
- * ```
994
- */
995
- interface SharedConfig {
996
- /** Glob patterns for shared packages (default: ['packages/*']) */
997
- packages?: string[];
998
- /** Models package configuration */
999
- models?: ModelsConfig;
1000
- }
1001
- /**
1002
- * The project's stages, named by the project.
1003
- *
1004
- * Stage names were literals scattered through the CLI — `gkm dev` ran as
1005
- * `development` and looked for `dev` secrets first, a deploy script said
1006
- * `production` — so a team that called its stages anything else was
1007
- * working against the tool. They are declared once, here, and read.
1008
- *
1009
- * @example
1010
- * ```ts
1011
- * stages: { local: 'dev', deployed: ['staging', 'prod'], protected: ['prod'] }
1012
- * ```
1013
- */
1014
- interface StagesConfig {
1015
- /**
1016
- * What `gkm dev`, `exec`, `setup` and `test` run as: the stage whose
1017
- * secrets are read locally, and whose containers carry no suffix.
1018
- *
1019
- * Never also a deployed stage. Secrets are stored per stage name, so a
1020
- * deployed stage sharing it would share its secrets with every laptop.
1021
- */
1022
- local: string;
1023
- /** The stages `gkm deploy --stage` accepts. */
1024
- deployed: string[];
1025
- /**
1026
- * Deployed stages whose resources outlive the stack that made them —
1027
- * retained on removal and protected, e.g. the stage users are on.
1028
- */
1029
- protected?: string[];
1030
- }
1031
- /**
1032
- * Secrets encryption configuration.
1033
- *
1034
- * Configures how secrets are encrypted for deployment.
1035
- * Secrets are stored encrypted in `.gkm/secrets/{stage}.json`
1036
- * with keys stored separately in `~/.gkm/{project}/{stage}.key`.
1037
- *
1038
- * @example
1039
- * ```ts
1040
- * secrets: {
1041
- * enabled: true,
1042
- * algorithm: 'aes-256-gcm',
1043
- * kdf: 'scrypt',
1044
- * }
1045
- * ```
1046
- */
1047
- interface SecretsConfig {
1048
- /** Enable encrypted secrets (default: true) */
1049
- enabled?: boolean;
1050
- /** Encryption algorithm (default: 'aes-256-gcm') */
1051
- algorithm?: string;
1052
- /** Key derivation function (default: 'scrypt') */
1053
- kdf?: 'scrypt' | 'pbkdf2';
1054
- }
1055
- /**
1056
- * Base app configuration properties (shared between input and normalized).
1057
- *
1058
- * @example
1059
- * ```ts
1060
- * // Backend app with gkm routes
1061
- * api: {
1062
- * type: 'backend',
1063
- * path: 'apps/api',
1064
- * port: 3000,
1065
- * routes: './src/endpoints/**\/*.ts',
1066
- * envParser: './src/config/env',
1067
- * logger: './src/config/logger',
1068
- * }
1069
- *
1070
- * // Backend app with entry point (e.g., Better Auth)
1071
- * auth: {
1072
- * type: 'backend',
1073
- * path: 'apps/auth',
1074
- * port: 3001,
1075
- * entry: './src/index.ts',
1076
- * framework: 'better-auth',
1077
- * requiredEnv: ['DATABASE_URL', 'BETTER_AUTH_SECRET'],
1078
- * }
1079
- *
1080
- * // Frontend app
1081
- * web: {
1082
- * type: 'web',
1083
- * path: 'apps/web',
1084
- * port: 3002,
1085
- * framework: 'nextjs',
1086
- * dependencies: ['api', 'auth'],
1087
- * }
1088
- * ```
1089
- */
1090
- interface AppConfigBase {
1091
- /**
1092
- * App type.
1093
- * - 'backend': Server-side app (API, auth service, etc.)
1094
- * - 'web': Client-side web app (Next.js, Vite, TanStack Start, etc.)
1095
- * - 'mobile': Native mobile app (Expo). Built/deployed via its own
1096
- * toolchain (e.g. EAS Build) — Docker/Dokploy steps are skipped.
1097
- * @default 'backend'
1098
- */
1099
- type?: 'backend' | 'web' | 'mobile';
1100
- /**
1101
- * Path to the app relative to workspace root.
1102
- * @example 'apps/api', 'apps/web', 'services/auth'
1103
- */
1104
- path: string;
1105
- /**
1106
- * Development server port.
1107
- * Must be unique across all apps in the workspace.
1108
- * @example 3000, 3001, 3002
1109
- */
1110
- port: number;
1111
- /**
1112
- * Per-app deploy target override.
1113
- * Overrides `deploy.default` for this specific app.
1114
- * @example 'dokploy', 'vercel'
1115
- */
1116
- deploy?: DeployTarget;
1117
- /**
1118
- * Constructs glob pattern — one glob, every kind.
1119
- *
1120
- * A glob per kind cannot find a resource, because a declared `ObjectStorage`
1121
- * has no kind to be listed under. This one is what reconcile reads to derive
1122
- * the containers a stage needs, and it replaces the per-kind globs below.
1123
- *
1124
- * @example './src/**\/*.ts'
1125
- */
1126
- constructs?: Routes;
1127
- /**
1128
- * Routes glob pattern for gkm endpoints.
1129
- * @example './src/endpoints/**\/*.ts'
1130
- */
1131
- routes?: Routes;
1132
- /**
1133
- * Functions glob pattern for Lambda functions.
1134
- * @example './src/functions/**\/*.ts'
1135
- */
1136
- functions?: Routes;
1137
- /**
1138
- * Crons glob pattern for scheduled tasks.
1139
- * @example './src/crons/**\/*.ts'
1140
- */
1141
- crons?: Routes;
1142
- /**
1143
- * Queues glob pattern for point-to-point workers.
1144
- * @example './src/queues/**\/*.ts'
1145
- */
1146
- queues?: Routes;
1147
- /**
1148
- * Topics glob pattern for the topics subscribers bind to.
1149
- * @example './src/topics/**\/*.ts'
1150
- */
1151
- topics?: Routes;
1152
- /**
1153
- * Subscribers glob pattern for event handlers.
1154
- * @example './src/subscribers/**\/*.ts'
1155
- */
1156
- subscribers?: Routes;
1157
- /**
1158
- * Path to environment parser module.
1159
- * @example './src/config/env'
1160
- */
1161
- envParser?: string;
1162
- /**
1163
- * Path to logger module.
1164
- * @example './src/config/logger'
1165
- */
1166
- logger?: string;
1167
- /** Provider configuration (AWS, Docker, etc.) */
1168
- providers?: ProvidersConfig;
1169
- /**
1170
- * Server lifecycle hooks.
1171
- * @example { beforeSetup: './src/hooks/setup.ts' }
1172
- */
1173
- hooks?: HooksConfig;
1174
- /**
1175
- * Telescope debugging dashboard configuration.
1176
- * @example true, './src/config/telescope', { enabled: true, path: '/__telescope' }
1177
- */
1178
- telescope?: string | boolean | TelescopeConfig;
1179
- /**
1180
- * Studio admin panel configuration.
1181
- * @example true, './src/config/studio'
1182
- */
1183
- studio?: string | boolean | StudioConfig;
1184
- /**
1185
- * OpenAPI documentation configuration.
1186
- * @example true, { output: './src/openapi.ts' }
1187
- */
1188
- openapi?: boolean | OpenApiConfig;
1189
- /**
1190
- * Runtime environment.
1191
- * @default 'node'
1192
- */
1193
- runtime?: Runtime;
1194
- /**
1195
- * Environment file(s) to load during development.
1196
- * @example '.env', ['.env', '.env.local']
1197
- */
1198
- env?: string | string[];
1199
- /**
1200
- * Entry file path for apps that don't use gkm routes.
1201
- *
1202
- * When specified, the app is run directly with tsx in development
1203
- * and bundled with esbuild for production Docker builds.
1204
- *
1205
- * Use this for:
1206
- * - Better Auth servers
1207
- * - Custom Hono/Express apps
1208
- * - Any backend that doesn't use gkm's endpoint builder
1209
- *
1210
- * @example './src/index.ts', './src/server.ts'
1211
- */
1212
- entry?: string;
1213
- /**
1214
- * Framework for the app.
1215
- *
1216
- * Backend frameworks: 'hono', 'better-auth', 'express', 'fastify'
1217
- * Frontend frameworks: 'nextjs', 'remix', 'vite', 'tanstack-start'
1218
- * Mobile frameworks: 'expo'
1219
- *
1220
- * @example 'nextjs', 'better-auth', 'hono', 'expo'
1221
- */
1222
- framework?: Framework;
1223
- /**
1224
- * Config file paths for frontend environment sniffing.
1225
- *
1226
- * Points to file(s) that call EnvironmentParser.parse() at import time.
1227
- * The sniffer imports these files and captures all env vars accessed.
1228
- *
1229
- * Dependencies are auto-generated as public-prefixed URL vars based on
1230
- * the app's framework (e.g. `NEXT_PUBLIC_{DEP}_URL` for Next.js,
1231
- * `VITE_{DEP}_URL` for Vite/TanStack Start, `EXPO_PUBLIC_{DEP}_URL`
1232
- * for Expo).
1233
- *
1234
- * @example
1235
- * ```ts
1236
- * config: {
1237
- * client: './src/config/client.ts', // public-prefixed vars for browser
1238
- * server: './src/config/server.ts', // server-only vars for SSR
1239
- * }
1240
- * ```
1241
- */
1242
- config?: {
1243
- /** Client-side config (public-prefixed vars, available in browser/device) */
1244
- client?: string;
1245
- /** Server-side config (all env vars, for SSR/API routes) */
1246
- server?: string;
1247
- };
1248
- /**
1249
- * Override domain for this app.
1250
- *
1251
- * By default, apps get `{appName}.{baseDomain}` (or just `{baseDomain}`
1252
- * for the main frontend). Use this to specify a custom domain.
1253
- *
1254
- * @example
1255
- * ```ts
1256
- * // Single domain for all stages
1257
- * domain: 'api.custom.com'
1258
- *
1259
- * // Stage-specific domains
1260
- * domain: {
1261
- * production: 'api.custom.com',
1262
- * staging: 'api.staging.custom.com',
1263
- * }
1264
- * ```
1265
- */
1266
- domain?: AppDomainConfig;
1267
- /**
1268
- * Required environment variables for entry-based apps.
1269
- *
1270
- * Use this instead of envParser for apps that don't use gkm routes.
1271
- * The deploy command uses this list to filter which secrets to embed
1272
- * in the Docker image.
1273
- *
1274
- * @example ['DATABASE_URL', 'BETTER_AUTH_SECRET', 'REDIS_URL']
1275
- */
1276
- requiredEnv?: string[];
1277
- }
1278
- /**
1279
- * App configuration input with type-safe dependencies.
1280
- *
1281
- * @template TAppNames - Union of valid app names in the workspace (auto-inferred)
1282
- *
1283
- * @example
1284
- * ```ts
1285
- * // Dependencies are type-checked against app names
1286
- * apps: {
1287
- * api: { path: 'apps/api', port: 3000 },
1288
- * auth: { path: 'apps/auth', port: 3001 },
1289
- * web: {
1290
- * path: 'apps/web',
1291
- * port: 3002,
1292
- * type: 'web',
1293
- * dependencies: ['api', 'auth'], // ✓ Valid
1294
- * // dependencies: ['invalid'], // ✗ Type error
1295
- * },
1296
- * }
1297
- * ```
1298
- */
1299
- interface AppConfigInput<TAppNames extends string = string> extends AppConfigBase {
1300
- /** Dependencies on other apps in the workspace (type-safe) */
1301
- dependencies?: TAppNames[];
1302
- }
1303
- /**
1304
- * App configuration (legacy, for backwards compatibility).
1305
- * @deprecated Use AppConfigInput for new code
1306
- */
1307
- interface AppConfig extends AppConfigBase {
1308
- /** Dependencies on other apps in the workspace */
1309
- dependencies?: string[];
1310
- }
1311
- /**
1312
- * Base app input type for type inference.
1313
- */
1314
- type AppInput = AppConfigBase & {
1315
- dependencies?: readonly string[];
1316
- };
1317
- /**
1318
- * Apps record type for workspace configuration.
1319
- */
1320
- type AppsRecord = Record<string, AppInput>;
1321
- /**
1322
- * Constrain apps so dependencies only reference valid app names.
1323
- * Dependencies must be an array of valid app names from the workspace.
1324
- */
1325
- type ConstrainedApps<TApps extends AppsRecord> = { [K in keyof TApps]: Omit<TApps[K], 'dependencies'> & {
1326
- dependencies?: readonly (keyof TApps & string)[];
1327
- } };
1328
- /**
1329
- * Full workspace input type with constrained dependencies.
1330
- *
1331
- * @example
1332
- * ```ts
1333
- * import { defineWorkspace } from '@geekmidas/cli';
1334
- *
1335
- * export default defineWorkspace({
1336
- * name: 'my-app',
1337
- * apps: {
1338
- * api: {
1339
- * path: 'apps/api',
1340
- * port: 3000,
1341
- * routes: './src/endpoints/**\/*.ts',
1342
- * },
1343
- * web: {
1344
- * type: 'web',
1345
- * path: 'apps/web',
1346
- * port: 3001,
1347
- * framework: 'nextjs',
1348
- * dependencies: ['api'],
1349
- * },
1350
- * },
1351
- * deploy: {
1352
- * default: 'dokploy',
1353
- * },
1354
- * });
1355
- * ```
1356
- */
1357
- type WorkspaceInput<TApps extends AppsRecord> = {
1358
- /**
1359
- * Where the workspace's own constructs live, relative to its root.
1360
- *
1361
- * The product's infrastructure, declared once for every app that consumes
1362
- * it. Additive with an app's own glob rather than replacing it.
1363
- */
1364
- constructs?: Routes;
1365
- /** Workspace name (defaults to root package.json name) */
1366
- name?: string;
1367
- /**
1368
- * Apps that nothing declares.
1369
- *
1370
- * Normally absent: a `site` is an app and so is a `rest-api` that named
1371
- * one, so the list is read off the graph. This is the escape hatch for what
1372
- * no construct describes.
1373
- */
1374
- apps?: ConstrainedApps<TApps>;
1375
- /** Shared packages configuration */
1376
- shared?: SharedConfig;
1377
- /** Deployment configuration */
1378
- deploy?: DeployConfig;
1379
- /** The project's stages: which one is local, which deploy */
1380
- stages: StagesConfig;
1381
- /** Encrypted secrets configuration */
1382
- secrets?: SecretsConfig;
1383
- /** State provider configuration (local filesystem by default, or SSM for team collaboration) */
1384
- state?: StateConfig;
1385
- };
1386
- /**
1387
- * Extract app names from apps record.
1388
- */
1389
- type InferAppNames<TApps extends AppsRecord> = keyof TApps & string;
1390
- /**
1391
- * Inferred workspace config with proper app name types.
1392
- */
1393
- type InferredWorkspaceConfig<TApps extends AppsRecord> = {
1394
- /**
1395
- * Where the workspace's own constructs live, relative to its root.
1396
- *
1397
- * The product's infrastructure, declared once for every app that consumes
1398
- * it. Additive with an app's own glob rather than replacing it.
1399
- */
1400
- constructs?: Routes;
1401
- name?: string;
1402
- apps?: { [K in keyof TApps]: Omit<TApps[K], 'dependencies'> & {
1403
- dependencies?: InferAppNames<TApps>[];
1404
- } };
1405
- shared?: SharedConfig;
1406
- deploy?: DeployConfig;
1407
- stages: StagesConfig;
1408
- secrets?: SecretsConfig;
1409
- state?: StateConfig;
1410
- };
1411
- /** @deprecated Use WorkspaceInput */
1412
-
1413
- /**
1414
- * Workspace configuration for multi-app monorepos.
1415
- *
1416
- * Use `defineWorkspace()` helper for type-safe configuration with
1417
- * auto-completion and dependency validation.
1418
- *
1419
- * @example
1420
- * ```ts
1421
- * // gkm.config.ts
1422
- * import { defineWorkspace } from '@geekmidas/cli';
1423
- *
1424
- * export default defineWorkspace({
1425
- * name: 'my-saas',
1426
- *
1427
- * // App definitions
1428
- * apps: {
1429
- * // Backend API with gkm routes
1430
- * api: {
1431
- * path: 'apps/api',
1432
- * port: 3000,
1433
- * routes: './src/endpoints/**\/*.ts',
1434
- * envParser: './src/config/env',
1435
- * logger: './src/config/logger',
1436
- * telescope: true,
1437
- * },
1438
- *
1439
- * // Better Auth service
1440
- * auth: {
1441
- * path: 'apps/auth',
1442
- * port: 3001,
1443
- * entry: './src/index.ts',
1444
- * framework: 'better-auth',
1445
- * requiredEnv: ['DATABASE_URL', 'BETTER_AUTH_SECRET'],
1446
- * },
1447
- *
1448
- * // Next.js frontend
1449
- * web: {
1450
- * type: 'web',
1451
- * path: 'apps/web',
1452
- * port: 3002,
1453
- * framework: 'nextjs',
1454
- * dependencies: ['api', 'auth'],
1455
- * },
1456
- * },
1457
- *
1458
- * // Deployment configuration
1459
- * deploy: {
1460
- * default: 'dokploy',
1461
- * dokploy: {
1462
- * endpoint: 'https://dokploy.myserver.com',
1463
- * projectId: 'proj_abc123',
1464
- * registry: 'ghcr.io/myorg',
1465
- * domains: {
1466
- * production: 'myapp.com',
1467
- * staging: 'staging.myapp.com',
1468
- * },
1469
- * },
1470
- * },
1471
- *
1472
- * // Shared packages
1473
- * shared: {
1474
- * packages: ['packages/*'],
1475
- * models: { path: 'packages/models' },
1476
- * },
1477
- * });
1478
- * ```
1479
- *
1480
- * @deprecated Use WorkspaceInput with defineWorkspace for type inference
1481
- */
1482
- interface WorkspaceConfig {
1483
- /**
1484
- * Where the workspace's own constructs live, relative to its root.
1485
- *
1486
- * The product's infrastructure, declared once for every app that consumes
1487
- * it. Additive with an app's own glob rather than replacing it.
1488
- */
1489
- constructs?: Routes;
1490
- /** Workspace name (defaults to root package.json name) */
1491
- name?: string;
1492
- /** Apps that nothing declares. Normally absent — see `WorkspaceInput`. */
1493
- apps?: Record<string, AppConfig>;
1494
- /** Shared packages configuration */
1495
- shared?: SharedConfig;
1496
- /** Default deployment configuration */
1497
- deploy?: DeployConfig;
1498
- /** The project's stages: which one is local, which deploy */
1499
- stages: StagesConfig;
1500
- /** Encrypted secrets configuration */
1501
- secrets?: SecretsConfig;
1502
- /** State provider configuration (local filesystem by default, or SSM for team collaboration) */
1503
- state?: StateConfig;
1504
- }
1505
- /**
1506
- * Normalized app configuration with resolved defaults.
1507
- *
1508
- * This is the internal representation after processing user input.
1509
- * All optional fields have been resolved to their defaults.
1510
- */
1511
- interface NormalizedAppConfig extends Omit<AppConfigBase, 'type'> {
1512
- /**
1513
- * Whether the base domain points at this site.
1514
- *
1515
- * Carried from the `site` declaration rather than configured, because which
1516
- * site is primary is structural — its *hostname* is what varies by stage,
1517
- * and that is `domain`.
1518
- */
1519
- root?: boolean;
1520
- /** App type (always defined after normalization) */
1521
- type: 'backend' | 'web' | 'mobile';
1522
- /** Path to the app */
1523
- path: string;
1524
- /** Development server port */
1525
- port: number;
1526
- /** Resolved dependencies array (empty array if none) */
1527
- dependencies: string[];
1528
- /** Resolved deploy target (app.deploy > deploy.default > 'dokploy') */
1529
- resolvedDeployTarget: DeployTarget;
1530
- /** Entry file path for non-gkm apps */
1531
- entry?: string;
1532
- /** Framework for the app */
1533
- framework?: Framework;
1534
- /** Override domain for this app */
1535
- domain?: AppDomainConfig;
1536
- /** Required environment variables for entry-based apps */
1537
- requiredEnv?: string[];
1538
- }
1539
- /**
1540
- * Normalized workspace configuration with resolved defaults.
1541
- *
1542
- * This is the internal representation after processing user input.
1543
- * All optional fields have been resolved to their defaults.
1544
- */
1545
- interface NormalizedWorkspace {
1546
- /** Workspace name (resolved from package.json if not specified) */
1547
- name: string;
1548
- /** Absolute path to workspace root */
1549
- root: string;
1550
- /**
1551
- * The workspace's own constructs glob, relative to `root`.
1552
- *
1553
- * Where the product's shared infrastructure is declared. Additive with each
1554
- * app's glob, so an app can still declare something only it uses.
1555
- */
1556
- constructs?: Routes;
1557
- /** Normalized app configurations */
1558
- apps: Record<string, NormalizedAppConfig>;
1559
- /** Deploy configuration (empty object if not specified) */
1560
- deploy: DeployConfig;
1561
- /** Shared packages configuration (empty object if not specified) */
1562
- shared: SharedConfig;
1563
- /** The project's stages, as declared */
1564
- stages: StagesConfig;
1565
- /** Secrets configuration (empty object if not specified) */
1566
- secrets: SecretsConfig;
1567
- /** State provider configuration (undefined = local filesystem) */
1568
- state?: StateConfig;
1569
- }
1570
- /**
1571
- * Result of loading and processing a configuration.
1572
- */
1573
- interface LoadedConfig {
1574
- /** Whether this is a single-app or workspace config */
1575
- type: 'single' | 'workspace';
1576
- /** The raw configuration as loaded */
1577
- raw: GkmConfig | WorkspaceConfig;
1578
- /** Normalized workspace (always available) */
1579
- workspace: NormalizedWorkspace;
1580
- /**
1581
- * What the workspace's constructs declared, when it has any.
1582
- *
1583
- * Read once at load, because the apps above are derived from it and a
1584
- * caller that re-discovers would be answering the same question twice with
1585
- * two chances to disagree. Absent when the workspace declares no constructs.
1586
- */
1587
- manifest?: ConstructManifest;
1588
- }
1589
- /**
1590
- * Type guard to check if a config is a WorkspaceConfig.
1591
- *
1592
- * @example
1593
- * ```ts
1594
- * const config = await loadConfig();
1595
- * if (isWorkspaceConfig(config)) {
1596
- * // config.apps is available
1597
- * console.log(Object.keys(config.apps));
1598
- * }
1599
- * ```
1600
- */
1601
- declare function isWorkspaceConfig(config: GkmConfig | WorkspaceConfig): config is WorkspaceConfig;
1602
- //# sourceMappingURL=types.d.ts.map
1603
- //#endregion
1604
- //#region src/types.d.ts
1605
- interface PartitionedRoutes {
1606
- paths: string | string[];
1607
- partition: (filepath: string) => string;
1608
- }
1609
- type Routes = string | string[] | PartitionedRoutes;
1610
- interface ProviderConfig {
1611
- enabled?: boolean;
1612
- outputDir?: string;
1613
- }
1614
- interface AWSApiGatewayConfig extends ProviderConfig {}
1615
- interface AWSLambdaConfig extends ProviderConfig {}
1616
- interface ProductionConfig {
1617
- /** Enable production mode (default: false) */
1618
- enabled?: boolean;
1619
- /** Bundle server into single file (default: true) */
1620
- bundle?: boolean;
1621
- /** Minify bundled output (default: true) */
1622
- minify?: boolean;
1623
- /** Health check endpoint path (default: '/health') */
1624
- healthCheck?: string;
1625
- /** Enable graceful shutdown handling (default: true) */
1626
- gracefulShutdown?: boolean;
1627
- /** Packages to exclude from bundling (default: []) */
1628
- external?: string[];
1629
- /** Include subscribers in production build (default: 'exclude' for serverless) */
1630
- subscribers?: 'include' | 'exclude';
1631
- /** Include OpenAPI spec in production (default: false) */
1632
- openapi?: boolean;
1633
- /**
1634
- * Enable build-time optimized handler generation (default: true)
1635
- * Generates specialized handlers based on endpoint tier:
1636
- * - minimal: Near-raw-Hono performance for simple endpoints
1637
- * - standard: Optimized handlers for auth/services
1638
- * - full: Uses HonoEndpoint.addRoutes for complex endpoints
1639
- */
1640
- optimizedHandlers?: boolean;
1641
- }
1642
- /**
1643
- * Supported event backend types.
1644
- *
1645
- * - `pgboss`: Reuses PostgreSQL with a dedicated user/schema. Auto-enables db service.
1646
- * - `sns`: Adds LocalStack container with SNS+SQS services.
1647
- * - `rabbitmq`: Adds RabbitMQ container.
1648
- *
1649
- * All backends generate EVENT_PUBLISHER_CONNECTION_STRING and EVENT_SUBSCRIBER_CONNECTION_STRING.
1650
- */
1651
-
1652
- /**
1653
- * Where a declared cache actually lives.
1654
- *
1655
- * A deployment choice, not an application one — the same code caches into any
1656
- * of these — so it is config here beside `events` rather than a field on the
1657
- * construct. Each backend is consistent between local and deployed, which is
1658
- * the property worth having: a cache that behaves differently in the two places
1659
- * is worse than a slower one.
1660
- *
1661
- * - `upstash` (default) — HTTP with a token. Reachable from a Lambda with no
1662
- * VPC and no connection pool, which is why it is the default; locally the
1663
- * `serverless-redis-http` proxy in front of Redis speaks the same protocol.
1664
- * - `elasticache` — the Redis wire protocol, inside a VPC. Locally, plain Redis.
1665
- * - `db` — a table in the database the app already declared. No infrastructure
1666
- * at all, and the same relationship pg-boss has to Postgres: it creates its
1667
- * own table on first use and needs a declared database to live in.
1668
- */
1669
- type CacheBackend = 'upstash' | 'elasticache' | 'db';
1670
- /**
1671
- * Where a declared bucket actually lives.
1672
- *
1673
- * The fourth of these selectors and the last to arrive, which is why
1674
- * `UPLOADS_URL` had no answer on a container target: there was nothing to
1675
- * choose with. Like the others it changes no application code — the `s3://`
1676
- * scheme picks the driver, and every one of these speaks it.
1677
- *
1678
- * - `s3` — a real bucket. Nothing is created on the host; the URL is composed
1679
- * against credentials you already hold, the same way `resend` is an API key
1680
- * rather than infrastructure.
1681
- * - `r2` — Cloudflare's, reached through the same S3 API and differing only in
1682
- * its endpoint.
1683
- * - `minio` — a container. Everything the app declares lives on the box, which
1684
- * is what makes a single-host deploy self-contained, and what makes it a
1685
- * single disk with no replication. Locally this is what every backend is.
1686
- */
1687
-
1688
- /**
1689
- * Who delivers a declared app's mail.
1690
- *
1691
- * Unlike a cache, this changes *nothing* about the client. Every backend speaks
1692
- * SMTP, so the declaration's `smtp://` URL is true of all of them and only the
1693
- * provisioner differs — which is the same reason the declaration has no
1694
- * `provider` field and there is no `ses://` scheme.
1695
- *
1696
- * - `ses` (default) — the only backend that can be a *chain* of resources: an
1697
- * identity, a user, an access key, and an SMTP password derived from it,
1698
- * because SES issues IAM credentials rather than SMTP ones. Hand it a URL and
1699
- * it uses that instead, which is what you want when the credentials already
1700
- * exist — provisioning a second set of sending credentials for an identity
1701
- * that already has them is not a thing to do by default.
1702
- * - `resend` — an API key you hold, composed into an SMTP URL. Nothing to
1703
- * provision: a SaaS account is not infrastructure.
1704
- * - `smtp` — a URL supplied whole, for a relay somebody else runs.
1705
- *
1706
- * Locally every one of them is Mailpit, because locally none of it matters.
1707
- */
1708
- type EmailBackend = 'resend' | 'ses' | 'smtp';
1709
- /**
1710
- * Who delivers mail when nobody said.
1711
- *
1712
- * Flat, unlike the others, and deliberately: mail is a SaaS on every target.
1713
- * There is no self-hosted preset to default a container deploy to — Mailpit is
1714
- * a development inbox, not a sender — so `server` has no answer of its own to
1715
- * give and would only be `ses` written twice.
1716
- */
1717
-
1718
- interface DockerConfig {
1719
- /** Container registry URL (e.g., 'ghcr.io/myorg') */
1720
- registry?: string;
1721
- /** Docker image name (default: derived from package.json name) */
1722
- imageName?: string;
1723
- /** Base Docker image (default: 'node:22-alpine') */
1724
- baseImage?: string;
1725
- /** Container port (default: 3000) */
1726
- port?: number;
1727
- }
1728
- interface ServerConfig extends ProviderConfig {
1729
- enableOpenApi?: boolean;
1730
- port?: number;
1731
- /** Production build configuration */
1732
- production?: ProductionConfig;
1733
- }
1734
- type Runtime = 'node' | 'bun';
1735
- interface TelescopeConfig {
1736
- /** Enable/disable telescope (default: true in development) */
1737
- enabled?: boolean;
1738
- /** Port for telescope to use (defaults to server port) */
1739
- port?: number;
1740
- /** Path prefix for telescope UI (default: /__telescope) */
1741
- path?: string;
1742
- /** Ignore patterns for telescope (e.g., ['/health', '/metrics']) */
1743
- ignore?: string[];
1744
- /** Record request/response bodies (default: true) */
1745
- recordBody?: boolean;
1746
- /** Maximum entries to keep in memory (default: 1000) */
1747
- maxEntries?: number;
1748
- /** Enable WebSocket for real-time updates (default: true, requires @hono/node-ws for Node.js) */
1749
- websocket?: boolean;
1750
- }
1751
- interface StudioConfig {
1752
- /** Enable/disable studio (default: true in development) */
1753
- enabled?: boolean;
1754
- /** Path prefix for studio UI (default: /__studio) */
1755
- path?: string;
1756
- /** Schema to introspect (default: 'public') */
1757
- schema?: string;
1758
- }
1759
- interface OpenApiConfig {
1760
- /** Enable OpenAPI generation (default: true) */
1761
- enabled?: boolean;
1762
- /** API title */
1763
- title?: string;
1764
- /** API version */
1765
- version?: string;
1766
- /** API description */
1767
- description?: string;
1768
- }
1769
- interface HooksConfig {
1770
- /**
1771
- * Path to a module exporting server lifecycle hooks.
1772
- * The module should export `beforeSetup` and/or `afterSetup` functions.
1773
- *
1774
- * @example
1775
- * ```typescript
1776
- * // src/config/hooks.ts
1777
- * import type { Hono } from 'hono';
1778
- * import type { Logger } from '@geekmidas/logger';
1779
- * import type { EnvironmentParser } from '@geekmidas/envkit';
1780
- *
1781
- * // Called BEFORE gkm endpoints are registered
1782
- * export function beforeSetup(app: Hono, ctx: { envParser: EnvironmentParser; logger: Logger }) {
1783
- * app.use('*', cors());
1784
- * app.get('/custom/health', (c) => c.json({ status: 'ok' }));
1785
- * }
1786
- *
1787
- * // Called AFTER gkm endpoints are registered
1788
- * export function afterSetup(app: Hono, ctx: { envParser: EnvironmentParser; logger: Logger }) {
1789
- * app.notFound((c) => c.json({ error: 'Not found' }, 404));
1790
- * app.onError((err, c) => c.json({ error: err.message }, 500));
1791
- * }
1792
- * ```
1793
- */
1794
- server?: string;
1795
- }
1796
- /** Dokploy deployment configuration */
1797
- interface DokployProviderConfig {
1798
- /** Dokploy API endpoint (e.g., 'https://dokploy.example.com') */
1799
- endpoint: string;
1800
- /** Project ID in Dokploy */
1801
- projectId: string;
1802
- /** Application ID in Dokploy */
1803
- applicationId: string;
1804
- /** Container registry (overrides docker.registry if set) */
1805
- registry?: string;
1806
- /** Registry ID in Dokploy (recommended for private registries) */
1807
- registryId?: string;
1808
- }
1809
- interface ProvidersConfig {
1810
- aws?: {
1811
- apiGateway?: {
1812
- v1?: boolean | AWSApiGatewayConfig;
1813
- v2?: boolean | AWSApiGatewayConfig;
1814
- };
1815
- lambda?: {
1816
- functions?: boolean | AWSLambdaConfig;
1817
- crons?: boolean | AWSLambdaConfig;
1818
- };
1819
- };
1820
- server?: boolean | ServerConfig;
1821
- /** Dokploy deployment configuration */
1822
- dokploy?: boolean | DokployProviderConfig;
1823
- }
1824
- interface GkmConfig {
1825
- /**
1826
- * What this app is called, and therefore how everything it declares is named.
1827
- *
1828
- * The same field `sst.config.ts` carries, doing the same job: every physical
1829
- * name is `{stage}-{name}-{construct}`, so `Database` in the `production`
1830
- * stage of `kitchen-sink` is `production-kitchen-sink-database` on AWS and on
1831
- * Dokploy alike. One statement, in the config, rather than a rule each
1832
- * provider restates.
1833
- *
1834
- * `defineWorkspace` has always had this. A single-app config did not, so its
1835
- * names fell back to whatever the directory happened to be called — the
1836
- * monorepo's package name for the project and the app's for the application,
1837
- * two accidents of layout standing in for a decision.
1838
- *
1839
- * Defaults to the package.json name with any scope stripped, then the
1840
- * directory name.
1841
- */
1842
- name?: string;
1843
- /** The project's stages: which one is local, which deploy */
1844
- stages: StagesConfig;
1845
- /**
1846
- * Constructs glob pattern — one glob, every kind.
1847
- *
1848
- * What reconcile reads to derive the containers a stage needs: a database
1849
- * implies Postgres, objects imply MinIO, mail implies Mailpit. A glob per
1850
- * kind cannot find a resource, because a declared `ObjectStorage` has no
1851
- * kind to be listed under.
1852
- *
1853
- * @example './src/**\/*.ts'
1854
- */
1855
- constructs: Routes;
1856
- providers?: ProvidersConfig;
1857
- /**
1858
- * Server lifecycle hooks for customizing the Hono app.
1859
- * Allows adding custom routes, middleware, error handlers, etc.
1860
- *
1861
- * @example
1862
- * hooks: {
1863
- * server: './src/config/hooks'
1864
- * }
1865
- */
1866
- hooks?: HooksConfig;
1867
- /**
1868
- * Telescope configuration for debugging/monitoring.
1869
- * Can be:
1870
- * - A string path to a module that exports a Telescope instance (recommended)
1871
- * - A boolean to enable/disable with defaults
1872
- * - A TelescopeConfig object for inline configuration
1873
- */
1874
- telescope?: string | boolean | TelescopeConfig;
1875
- /**
1876
- * Studio configuration for database browsing.
1877
- * Can be:
1878
- * - A string path to a module that exports a Studio instance (recommended)
1879
- * - A boolean to enable/disable with defaults
1880
- * - A StudioConfig object for inline configuration
1881
- *
1882
- * Requires a database connection configured via services.
1883
- */
1884
- studio?: string | boolean | StudioConfig;
1885
- /**
1886
- * OpenAPI generation configuration.
1887
- * Can be:
1888
- * - A boolean to enable/disable with defaults (output: ./src/api/openapi.ts)
1889
- * - An OpenApiConfig object for customization
1890
- *
1891
- * When enabled, OpenAPI spec is generated on startup and regenerated on route changes.
1892
- *
1893
- * @example
1894
- * openapi: true
1895
- *
1896
- * @example
1897
- * openapi: {
1898
- * output: './src/api/openapi.ts',
1899
- * title: 'My API',
1900
- * version: '1.0.0',
1901
- * }
1902
- */
1903
- openapi?: boolean | OpenApiConfig;
1904
- /** Runtime to use for dev server (default: 'node') */
1905
- runtime?: Runtime;
1906
- /**
1907
- * Environment file(s) to load for development.
1908
- * Can be:
1909
- * - A string path to a single env file (e.g., '.env.local')
1910
- * - An array of paths to load in order (later files override earlier)
1911
- * - Defaults to '.env' if not specified
1912
- *
1913
- * @example
1914
- * env: '.env.local'
1915
- *
1916
- * @example
1917
- * env: ['.env', '.env.local']
1918
- */
1919
- env?: string | string[];
1920
- /**
1921
- * Docker deployment configuration.
1922
- * Used by `gkm docker` and `gkm prepack` commands.
1923
- *
1924
- * @example
1925
- * docker: {
1926
- * registry: 'ghcr.io/myorg',
1927
- * imageName: 'my-api',
1928
- * compose: {
1929
- * services: ['postgres', 'redis']
1930
- * }
1931
- * }
1932
- */
1933
- docker?: DockerConfig;
1934
- /**
1935
- * Where this app deploys, and what the target needs to know.
1936
- *
1937
- * Absent until now, which meant a single-app project could not configure a
1938
- * Dokploy deploy at all: the wrap that turns one into a workspace hardcoded
1939
- * `{ default: 'dokploy' }` and dropped everything else, so there was no
1940
- * endpoint, no registry and no domain — and `resolveHost` failed with "no
1941
- * domain configured for stage" on a config that had nowhere to put one.
1942
- *
1943
- * The same shape a workspace config uses, so moving from one to the other is
1944
- * a rename rather than a rewrite.
1945
- */
1946
- deploy?: DeployConfig;
1947
- }
1948
- //#endregion
1949
- export { AppConfig, AppConfigInput, AppInput, AppsRecord, BackendFramework, CacheBackend, ConstrainedApps, DeployConfig, DeployTarget, DokployWorkspaceConfig, EmailBackend, Framework, FrontendFramework, GkmConfig, InferAppNames, InferredWorkspaceConfig, LoadedConfig, MobileFramework, ModelsConfig, NormalizedAppConfig, NormalizedWorkspace, OpenApiConfig, PHASE_2_DEPLOY_TARGETS, Routes, SUPPORTED_DEPLOY_TARGETS, SecretsConfig, SharedConfig, WorkspaceConfig, WorkspaceConfigSchema, WorkspaceInput, formatValidationErrors, getDeployTargetError, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, safeValidateWorkspaceConfig, validateWorkspaceConfig };
1950
- //# sourceMappingURL=types-DVIx8I1N.d.mts.map