@geekmidas/cli 10.0.0-alpha.15 → 10.0.0-alpha.17

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 (89) hide show
  1. package/dist/{bundler-BeNDZdHQ.cjs → bundler-mjqGAvu1.cjs} +2 -2
  2. package/dist/{bundler-BeNDZdHQ.cjs.map → bundler-mjqGAvu1.cjs.map} +1 -1
  3. package/dist/{bundler-BodTL4kf.mjs → bundler-mwH7WOb1.mjs} +2 -2
  4. package/dist/{bundler-BodTL4kf.mjs.map → bundler-mwH7WOb1.mjs.map} +1 -1
  5. package/dist/{config-Q1rvKHvw.cjs → config-CdTMeMU_.cjs} +2 -2
  6. package/dist/{config-Q1rvKHvw.cjs.map → config-CdTMeMU_.cjs.map} +1 -1
  7. package/dist/{config-pqGD3hF9.mjs → config-DPnPkWyH.mjs} +2 -2
  8. package/dist/{config-pqGD3hF9.mjs.map → config-DPnPkWyH.mjs.map} +1 -1
  9. package/dist/config.cjs +2 -2
  10. package/dist/config.d.cts +2 -2
  11. package/dist/config.d.mts +2 -2
  12. package/dist/config.mjs +2 -2
  13. package/dist/{credentials-BekkKtY_.mjs → credentials-fJP5-fa1.mjs} +4 -4
  14. package/dist/{credentials-BekkKtY_.mjs.map → credentials-fJP5-fa1.mjs.map} +1 -1
  15. package/dist/{credentials-Q6F0uqJq.cjs → credentials-tvyReUAd.cjs} +4 -4
  16. package/dist/{credentials-Q6F0uqJq.cjs.map → credentials-tvyReUAd.cjs.map} +1 -1
  17. package/dist/discover-BERGFg8v.cjs.map +1 -1
  18. package/dist/discover-CK-n3w6b.mjs.map +1 -1
  19. package/dist/{github-CRwnxKmD.mjs → github-CAfKyYPN.mjs} +21 -8
  20. package/dist/github-CAfKyYPN.mjs.map +1 -0
  21. package/dist/{github-BfflNPVe.cjs → github-DVE8Gg_F.cjs} +22 -9
  22. package/dist/github-DVE8Gg_F.cjs.map +1 -0
  23. package/dist/{index-D-iAVHx-.d.cts → index-B4H4XF7A.d.mts} +3 -3
  24. package/dist/{index-Cd-qeOam.d.mts.map → index-B4H4XF7A.d.mts.map} +1 -1
  25. package/dist/{index-Cd-qeOam.d.mts → index-RCUizGxL.d.cts} +3 -3
  26. package/dist/{index-D-iAVHx-.d.cts.map → index-RCUizGxL.d.cts.map} +1 -1
  27. package/dist/index.cjs +161 -168
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.mjs +156 -163
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{openapi-Dcbme-Us.cjs → openapi-BeckoaP9.cjs} +2 -2
  32. package/dist/{openapi-Dcbme-Us.cjs.map → openapi-BeckoaP9.cjs.map} +1 -1
  33. package/dist/{openapi-vy4JzhUv.mjs → openapi-DolhBm6r.mjs} +2 -2
  34. package/dist/{openapi-vy4JzhUv.mjs.map → openapi-DolhBm6r.mjs.map} +1 -1
  35. package/dist/openapi.cjs +1 -1
  36. package/dist/openapi.d.cts +1 -1
  37. package/dist/openapi.d.mts +1 -1
  38. package/dist/openapi.mjs +1 -1
  39. package/dist/reconcile/public.d.cts +1 -1
  40. package/dist/reconcile/public.d.mts +1 -1
  41. package/dist/{fullstack-secrets-DXsWO-5m.cjs → reconcile-Cq4cO83R.cjs} +45 -1
  42. package/dist/reconcile-Cq4cO83R.cjs.map +1 -0
  43. package/dist/{fullstack-secrets-BET8gqwK.mjs → reconcile-fmoluZmZ.mjs} +34 -2
  44. package/dist/reconcile-fmoluZmZ.mjs.map +1 -0
  45. package/dist/ssm-BKN1Cg4z.mjs +60 -0
  46. package/dist/ssm-BKN1Cg4z.mjs.map +1 -0
  47. package/dist/ssm-FxeSAt35.cjs +60 -0
  48. package/dist/ssm-FxeSAt35.cjs.map +1 -0
  49. package/dist/{storage-C-30BD1e.cjs → storage-DgypfSD6.cjs} +83 -4
  50. package/dist/storage-DgypfSD6.cjs.map +1 -0
  51. package/dist/{storage-P_b3w7uj.mjs → storage-TP0x118M.mjs} +77 -4
  52. package/dist/storage-TP0x118M.mjs.map +1 -0
  53. package/dist/transfer-4A4S2hcw.mjs +122 -0
  54. package/dist/transfer-4A4S2hcw.mjs.map +1 -0
  55. package/dist/transfer-DdmtKLzi.cjs +151 -0
  56. package/dist/transfer-DdmtKLzi.cjs.map +1 -0
  57. package/dist/{types-C5ZNpUad.d.cts → types-7R81hu0i.d.mts} +228 -91
  58. package/dist/types-7R81hu0i.d.mts.map +1 -0
  59. package/dist/{types-BGo5TaNE.d.mts → types-N7c2O2m7.d.cts} +230 -91
  60. package/dist/types-N7c2O2m7.d.cts.map +1 -0
  61. package/dist/workspace/index.cjs +1 -1
  62. package/dist/workspace/index.d.cts +2 -2
  63. package/dist/workspace/index.d.mts +2 -2
  64. package/dist/workspace/index.mjs +1 -1
  65. package/dist/{workspace-mFpI_ky_.cjs → workspace-B8NLb54N.cjs} +13 -2
  66. package/dist/{workspace-mFpI_ky_.cjs.map → workspace-B8NLb54N.cjs.map} +1 -1
  67. package/dist/{workspace-CgwmXEtc.mjs → workspace-DI-M3BnN.mjs} +13 -2
  68. package/dist/{workspace-CgwmXEtc.mjs.map → workspace-DI-M3BnN.mjs.map} +1 -1
  69. package/package.json +12 -12
  70. package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
  71. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
  72. package/dist/github-BfflNPVe.cjs.map +0 -1
  73. package/dist/github-CRwnxKmD.mjs.map +0 -1
  74. package/dist/keystore-B4PRlbgE.mjs +0 -81
  75. package/dist/keystore-B4PRlbgE.mjs.map +0 -1
  76. package/dist/keystore-DgGRj2Yy.cjs +0 -98
  77. package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
  78. package/dist/reconcile-Dd2iyILf.cjs +0 -34
  79. package/dist/reconcile-Dd2iyILf.cjs.map +0 -1
  80. package/dist/reconcile-DhQ00DpU.mjs +0 -34
  81. package/dist/reconcile-DhQ00DpU.mjs.map +0 -1
  82. package/dist/storage-C-30BD1e.cjs.map +0 -1
  83. package/dist/storage-P_b3w7uj.mjs.map +0 -1
  84. package/dist/sync-B3xxXtJT.mjs +0 -88
  85. package/dist/sync-B3xxXtJT.mjs.map +0 -1
  86. package/dist/sync-D7uTIIEi.cjs +0 -111
  87. package/dist/sync-D7uTIIEi.cjs.map +0 -1
  88. package/dist/types-BGo5TaNE.d.mts.map +0 -1
  89. package/dist/types-C5ZNpUad.d.cts.map +0 -1
@@ -1,4 +1,83 @@
1
1
  import { ConstructManifest } from "@geekmidas/manifest";
2
+ //#endregion
3
+ //#region src/secrets/types.d.ts
4
+ /** Credentials for a specific service */
5
+ interface ServiceCredentials {
6
+ host: string;
7
+ port: number;
8
+ username: string;
9
+ password: string;
10
+ /** Database name (for postgres) */
11
+ database?: string;
12
+ /** Virtual host (for rabbitmq) */
13
+ vhost?: string;
14
+ /** Bucket name (for minio) */
15
+ bucket?: string;
16
+ /** Access key ID (for localstack) */
17
+ accessKeyId?: string;
18
+ /** Region (for localstack) */
19
+ region?: string;
20
+ }
21
+ /** Stage secrets configuration */
22
+ interface StageSecrets {
23
+ /** Stage name (e.g., 'production', 'staging') */
24
+ stage: string;
25
+ /** ISO timestamp when secrets were created */
26
+ createdAt: string;
27
+ /** ISO timestamp when secrets were last updated */
28
+ updatedAt: string;
29
+ /** Event backend type (if events are enabled) */
30
+ eventsBackend?: EventsBackend;
31
+ /** Service-specific credentials */
32
+ services: {
33
+ postgres?: ServiceCredentials;
34
+ redis?: ServiceCredentials;
35
+ rabbitmq?: ServiceCredentials;
36
+ minio?: ServiceCredentials;
37
+ mailpit?: ServiceCredentials;
38
+ localstack?: ServiceCredentials;
39
+ pgboss?: ServiceCredentials;
40
+ };
41
+ /** Generated connection URLs */
42
+ urls: {
43
+ DATABASE_URL?: string;
44
+ REDIS_URL?: string;
45
+ RABBITMQ_URL?: string;
46
+ STORAGE_ENDPOINT?: string;
47
+ SMTP_HOST?: string;
48
+ SMTP_PORT?: string;
49
+ EVENT_PUBLISHER_CONNECTION_STRING?: string;
50
+ EVENT_SUBSCRIBER_CONNECTION_STRING?: string;
51
+ };
52
+ /** Custom user-defined secrets */
53
+ custom: Record<string, string>;
54
+ }
55
+ //#endregion
56
+ //#region src/secrets/store.d.ts
57
+ interface SecretsStore {
58
+ /** The stage's secrets, or null if the store holds none for it. */
59
+ pull(stage: string): Promise<StageSecrets | null>;
60
+ /** Replace the stage's secrets in the store. */
61
+ push(stage: string, secrets: StageSecrets): Promise<void>;
62
+ }
63
+ /** Secrets in SSM Parameter Store, in the account of the active credentials. */
64
+ interface SsmSecretsStoreConfig {
65
+ provider: 'ssm';
66
+ region: string;
67
+ }
68
+ /** Any other backend: an object implementing {@link SecretsStore}. */
69
+ interface CustomSecretsStoreConfig {
70
+ provider: SecretsStore;
71
+ }
72
+ /**
73
+ * `secrets.store` in gkm.config.ts.
74
+ *
75
+ * `'file'` — the default — keeps each stage's secrets in the encrypted
76
+ * `.gkm/secrets/<stage>.json` beside its key in `~/.gkm/`. It cannot serve a
77
+ * deploy from CI while `.gkm/` is gitignored; `ssm` or a custom store can.
78
+ */
79
+ type SecretsStoreConfig = 'file' | SsmSecretsStoreConfig | CustomSecretsStoreConfig;
80
+ //#endregion
2
81
  //#region src/deploy/state.d.ts
3
82
  /**
4
83
  * Deploy state management for Dokploy deployments
@@ -4420,10 +4499,10 @@ declare namespace external_d_exports {
4420
4499
  * Backend framework schema for non-gkm apps.
4421
4500
  */
4422
4501
  declare const BackendFrameworkSchema: ZodEnum<{
4423
- hono: "hono";
4424
4502
  "better-auth": "better-auth";
4425
4503
  express: "express";
4426
4504
  fastify: "fastify";
4505
+ hono: "hono";
4427
4506
  }>;
4428
4507
  /**
4429
4508
  * Backend framework types for apps that don't use gkm routes.
@@ -4455,8 +4534,8 @@ type BackendFramework = output$1<typeof BackendFrameworkSchema>;
4455
4534
  declare const FrontendFrameworkSchema: ZodEnum<{
4456
4535
  nextjs: "nextjs";
4457
4536
  remix: "remix";
4458
- vite: "vite";
4459
4537
  "tanstack-start": "tanstack-start";
4538
+ vite: "vite";
4460
4539
  }>;
4461
4540
  /**
4462
4541
  * Frontend framework types. Derived from {@link FrontendFrameworkSchema}.
@@ -4515,15 +4594,15 @@ type MobileFramework = output$1<typeof MobileFrameworkSchema>;
4515
4594
  * Combined framework schema (backend, frontend, or mobile).
4516
4595
  */
4517
4596
  declare const FrameworkSchema: ZodUnion<readonly [ZodEnum<{
4518
- hono: "hono";
4519
4597
  "better-auth": "better-auth";
4520
4598
  express: "express";
4521
4599
  fastify: "fastify";
4600
+ hono: "hono";
4522
4601
  }>, ZodEnum<{
4523
4602
  nextjs: "nextjs";
4524
4603
  remix: "remix";
4525
- vite: "vite";
4526
4604
  "tanstack-start": "tanstack-start";
4605
+ vite: "vite";
4527
4606
  }>, ZodEnum<{
4528
4607
  expo: "expo";
4529
4608
  }>]>;
@@ -4535,11 +4614,11 @@ type Framework = output$1<typeof FrameworkSchema>;
4535
4614
  /**
4536
4615
  * Supported deploy targets (Phase 1).
4537
4616
  */
4538
- declare const SUPPORTED_DEPLOY_TARGETS: readonly ["dokploy"];
4617
+ declare const SUPPORTED_DEPLOY_TARGETS: readonly ['dokploy'];
4539
4618
  /**
4540
4619
  * Phase 2 deploy targets (not yet implemented).
4541
4620
  */
4542
- declare const PHASE_2_DEPLOY_TARGETS: readonly ["vercel", "cloudflare"];
4621
+ declare const PHASE_2_DEPLOY_TARGETS: readonly ['vercel', 'cloudflare'];
4543
4622
  /**
4544
4623
  * Check if a deploy target is supported.
4545
4624
  */
@@ -4561,33 +4640,33 @@ declare const DnsConfigWithLegacySchema: ZodUnion<readonly [ZodRecord<ZodString,
4561
4640
  }, $strip>, ZodObject<{
4562
4641
  provider: ZodLiteral<"route53">;
4563
4642
  region: ZodOptional<ZodEnum<{
4564
- "us-east-1": "us-east-1";
4565
- "us-east-2": "us-east-2";
4566
- "us-west-1": "us-west-1";
4567
- "us-west-2": "us-west-2";
4568
4643
  "af-south-1": "af-south-1";
4569
4644
  "ap-east-1": "ap-east-1";
4645
+ "ap-northeast-1": "ap-northeast-1";
4646
+ "ap-northeast-2": "ap-northeast-2";
4647
+ "ap-northeast-3": "ap-northeast-3";
4570
4648
  "ap-south-1": "ap-south-1";
4571
4649
  "ap-south-2": "ap-south-2";
4572
4650
  "ap-southeast-1": "ap-southeast-1";
4573
4651
  "ap-southeast-2": "ap-southeast-2";
4574
4652
  "ap-southeast-3": "ap-southeast-3";
4575
4653
  "ap-southeast-4": "ap-southeast-4";
4576
- "ap-northeast-1": "ap-northeast-1";
4577
- "ap-northeast-2": "ap-northeast-2";
4578
- "ap-northeast-3": "ap-northeast-3";
4579
4654
  "ca-central-1": "ca-central-1";
4580
4655
  "eu-central-1": "eu-central-1";
4581
4656
  "eu-central-2": "eu-central-2";
4657
+ "eu-north-1": "eu-north-1";
4658
+ "eu-south-1": "eu-south-1";
4659
+ "eu-south-2": "eu-south-2";
4582
4660
  "eu-west-1": "eu-west-1";
4583
4661
  "eu-west-2": "eu-west-2";
4584
4662
  "eu-west-3": "eu-west-3";
4585
- "eu-south-1": "eu-south-1";
4586
- "eu-south-2": "eu-south-2";
4587
- "eu-north-1": "eu-north-1";
4588
- "me-south-1": "me-south-1";
4589
4663
  "me-central-1": "me-central-1";
4664
+ "me-south-1": "me-south-1";
4590
4665
  "sa-east-1": "sa-east-1";
4666
+ "us-east-1": "us-east-1";
4667
+ "us-east-2": "us-east-2";
4668
+ "us-west-1": "us-west-1";
4669
+ "us-west-2": "us-west-2";
4591
4670
  }>>;
4592
4671
  profile: ZodOptional<ZodString>;
4593
4672
  hostedZoneId: ZodOptional<ZodString>;
@@ -4615,33 +4694,33 @@ declare const DnsConfigWithLegacySchema: ZodUnion<readonly [ZodRecord<ZodString,
4615
4694
  }, $strip>, ZodObject<{
4616
4695
  provider: ZodLiteral<"route53">;
4617
4696
  region: ZodOptional<ZodEnum<{
4618
- "us-east-1": "us-east-1";
4619
- "us-east-2": "us-east-2";
4620
- "us-west-1": "us-west-1";
4621
- "us-west-2": "us-west-2";
4622
4697
  "af-south-1": "af-south-1";
4623
4698
  "ap-east-1": "ap-east-1";
4699
+ "ap-northeast-1": "ap-northeast-1";
4700
+ "ap-northeast-2": "ap-northeast-2";
4701
+ "ap-northeast-3": "ap-northeast-3";
4624
4702
  "ap-south-1": "ap-south-1";
4625
4703
  "ap-south-2": "ap-south-2";
4626
4704
  "ap-southeast-1": "ap-southeast-1";
4627
4705
  "ap-southeast-2": "ap-southeast-2";
4628
4706
  "ap-southeast-3": "ap-southeast-3";
4629
4707
  "ap-southeast-4": "ap-southeast-4";
4630
- "ap-northeast-1": "ap-northeast-1";
4631
- "ap-northeast-2": "ap-northeast-2";
4632
- "ap-northeast-3": "ap-northeast-3";
4633
4708
  "ca-central-1": "ca-central-1";
4634
4709
  "eu-central-1": "eu-central-1";
4635
4710
  "eu-central-2": "eu-central-2";
4711
+ "eu-north-1": "eu-north-1";
4712
+ "eu-south-1": "eu-south-1";
4713
+ "eu-south-2": "eu-south-2";
4636
4714
  "eu-west-1": "eu-west-1";
4637
4715
  "eu-west-2": "eu-west-2";
4638
4716
  "eu-west-3": "eu-west-3";
4639
- "eu-south-1": "eu-south-1";
4640
- "eu-south-2": "eu-south-2";
4641
- "eu-north-1": "eu-north-1";
4642
- "me-south-1": "me-south-1";
4643
4717
  "me-central-1": "me-central-1";
4718
+ "me-south-1": "me-south-1";
4644
4719
  "sa-east-1": "sa-east-1";
4720
+ "us-east-1": "us-east-1";
4721
+ "us-east-2": "us-east-2";
4722
+ "us-west-1": "us-west-1";
4723
+ "us-west-2": "us-west-2";
4645
4724
  }>>;
4646
4725
  profile: ZodOptional<ZodString>;
4647
4726
  hostedZoneId: ZodOptional<ZodString>;
@@ -4678,33 +4757,33 @@ declare const BackupsConfigSchema: ZodObject<{
4678
4757
  type: ZodLiteral<"s3">;
4679
4758
  profile: ZodOptional<ZodString>;
4680
4759
  region: ZodEnum<{
4681
- "us-east-1": "us-east-1";
4682
- "us-east-2": "us-east-2";
4683
- "us-west-1": "us-west-1";
4684
- "us-west-2": "us-west-2";
4685
4760
  "af-south-1": "af-south-1";
4686
4761
  "ap-east-1": "ap-east-1";
4762
+ "ap-northeast-1": "ap-northeast-1";
4763
+ "ap-northeast-2": "ap-northeast-2";
4764
+ "ap-northeast-3": "ap-northeast-3";
4687
4765
  "ap-south-1": "ap-south-1";
4688
4766
  "ap-south-2": "ap-south-2";
4689
4767
  "ap-southeast-1": "ap-southeast-1";
4690
4768
  "ap-southeast-2": "ap-southeast-2";
4691
4769
  "ap-southeast-3": "ap-southeast-3";
4692
4770
  "ap-southeast-4": "ap-southeast-4";
4693
- "ap-northeast-1": "ap-northeast-1";
4694
- "ap-northeast-2": "ap-northeast-2";
4695
- "ap-northeast-3": "ap-northeast-3";
4696
4771
  "ca-central-1": "ca-central-1";
4697
4772
  "eu-central-1": "eu-central-1";
4698
4773
  "eu-central-2": "eu-central-2";
4774
+ "eu-north-1": "eu-north-1";
4775
+ "eu-south-1": "eu-south-1";
4776
+ "eu-south-2": "eu-south-2";
4699
4777
  "eu-west-1": "eu-west-1";
4700
4778
  "eu-west-2": "eu-west-2";
4701
4779
  "eu-west-3": "eu-west-3";
4702
- "eu-south-1": "eu-south-1";
4703
- "eu-south-2": "eu-south-2";
4704
- "eu-north-1": "eu-north-1";
4705
- "me-south-1": "me-south-1";
4706
4780
  "me-central-1": "me-central-1";
4781
+ "me-south-1": "me-south-1";
4707
4782
  "sa-east-1": "sa-east-1";
4783
+ "us-east-1": "us-east-1";
4784
+ "us-east-2": "us-east-2";
4785
+ "us-west-1": "us-west-1";
4786
+ "us-west-2": "us-west-2";
4708
4787
  }>;
4709
4788
  schedule: ZodOptional<ZodString>;
4710
4789
  retention: ZodOptional<ZodNumber>;
@@ -4722,16 +4801,16 @@ declare const WorkspaceConfigSchema: ZodObject<{
4722
4801
  apps: ZodOptional<ZodRecord<ZodString, ZodObject<{
4723
4802
  type: ZodDefault<ZodOptional<ZodEnum<{
4724
4803
  backend: "backend";
4725
- web: "web";
4726
4804
  mobile: "mobile";
4805
+ web: "web";
4727
4806
  }>>>;
4728
4807
  path: ZodString;
4729
4808
  port: ZodNumber;
4730
4809
  dependencies: ZodOptional<ZodArray<ZodString>>;
4731
4810
  deploy: ZodOptional<ZodEnum<{
4811
+ cloudflare: "cloudflare";
4732
4812
  dokploy: "dokploy";
4733
4813
  vercel: "vercel";
4734
- cloudflare: "cloudflare";
4735
4814
  }>>;
4736
4815
  constructs: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>, ZodObject<{
4737
4816
  paths: ZodUnion<readonly [ZodString, ZodArray<ZodString>]>;
@@ -4787,21 +4866,21 @@ declare const WorkspaceConfigSchema: ZodObject<{
4787
4866
  description: ZodOptional<ZodString>;
4788
4867
  }, $strip>]>>;
4789
4868
  runtime: ZodOptional<ZodEnum<{
4790
- node: "node";
4791
4869
  bun: "bun";
4870
+ node: "node";
4792
4871
  }>>;
4793
4872
  env: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
4794
4873
  entry: ZodOptional<ZodString>;
4795
4874
  framework: ZodOptional<ZodUnion<readonly [ZodEnum<{
4796
- hono: "hono";
4797
4875
  "better-auth": "better-auth";
4798
4876
  express: "express";
4799
4877
  fastify: "fastify";
4878
+ hono: "hono";
4800
4879
  }>, ZodEnum<{
4801
4880
  nextjs: "nextjs";
4802
4881
  remix: "remix";
4803
- vite: "vite";
4804
4882
  "tanstack-start": "tanstack-start";
4883
+ vite: "vite";
4805
4884
  }>, ZodEnum<{
4806
4885
  expo: "expo";
4807
4886
  }>]>>;
@@ -4821,9 +4900,9 @@ declare const WorkspaceConfigSchema: ZodObject<{
4821
4900
  }, $strip>>;
4822
4901
  deploy: ZodOptional<ZodObject<{
4823
4902
  default: ZodOptional<ZodEnum<{
4903
+ cloudflare: "cloudflare";
4824
4904
  dokploy: "dokploy";
4825
4905
  vercel: "vercel";
4826
- cloudflare: "cloudflare";
4827
4906
  }>>;
4828
4907
  dokploy: ZodOptional<ZodObject<{
4829
4908
  endpoint: ZodOptional<ZodURL>;
@@ -4838,33 +4917,33 @@ declare const WorkspaceConfigSchema: ZodObject<{
4838
4917
  }, $strip>, ZodObject<{
4839
4918
  provider: ZodLiteral<"route53">;
4840
4919
  region: ZodOptional<ZodEnum<{
4841
- "us-east-1": "us-east-1";
4842
- "us-east-2": "us-east-2";
4843
- "us-west-1": "us-west-1";
4844
- "us-west-2": "us-west-2";
4845
4920
  "af-south-1": "af-south-1";
4846
4921
  "ap-east-1": "ap-east-1";
4922
+ "ap-northeast-1": "ap-northeast-1";
4923
+ "ap-northeast-2": "ap-northeast-2";
4924
+ "ap-northeast-3": "ap-northeast-3";
4847
4925
  "ap-south-1": "ap-south-1";
4848
4926
  "ap-south-2": "ap-south-2";
4849
4927
  "ap-southeast-1": "ap-southeast-1";
4850
4928
  "ap-southeast-2": "ap-southeast-2";
4851
4929
  "ap-southeast-3": "ap-southeast-3";
4852
4930
  "ap-southeast-4": "ap-southeast-4";
4853
- "ap-northeast-1": "ap-northeast-1";
4854
- "ap-northeast-2": "ap-northeast-2";
4855
- "ap-northeast-3": "ap-northeast-3";
4856
4931
  "ca-central-1": "ca-central-1";
4857
4932
  "eu-central-1": "eu-central-1";
4858
4933
  "eu-central-2": "eu-central-2";
4934
+ "eu-north-1": "eu-north-1";
4935
+ "eu-south-1": "eu-south-1";
4936
+ "eu-south-2": "eu-south-2";
4859
4937
  "eu-west-1": "eu-west-1";
4860
4938
  "eu-west-2": "eu-west-2";
4861
4939
  "eu-west-3": "eu-west-3";
4862
- "eu-south-1": "eu-south-1";
4863
- "eu-south-2": "eu-south-2";
4864
- "eu-north-1": "eu-north-1";
4865
- "me-south-1": "me-south-1";
4866
4940
  "me-central-1": "me-central-1";
4941
+ "me-south-1": "me-south-1";
4867
4942
  "sa-east-1": "sa-east-1";
4943
+ "us-east-1": "us-east-1";
4944
+ "us-east-2": "us-east-2";
4945
+ "us-west-1": "us-west-1";
4946
+ "us-west-2": "us-west-2";
4868
4947
  }>>;
4869
4948
  profile: ZodOptional<ZodString>;
4870
4949
  hostedZoneId: ZodOptional<ZodString>;
@@ -4892,33 +4971,33 @@ declare const WorkspaceConfigSchema: ZodObject<{
4892
4971
  }, $strip>, ZodObject<{
4893
4972
  provider: ZodLiteral<"route53">;
4894
4973
  region: ZodOptional<ZodEnum<{
4895
- "us-east-1": "us-east-1";
4896
- "us-east-2": "us-east-2";
4897
- "us-west-1": "us-west-1";
4898
- "us-west-2": "us-west-2";
4899
4974
  "af-south-1": "af-south-1";
4900
4975
  "ap-east-1": "ap-east-1";
4976
+ "ap-northeast-1": "ap-northeast-1";
4977
+ "ap-northeast-2": "ap-northeast-2";
4978
+ "ap-northeast-3": "ap-northeast-3";
4901
4979
  "ap-south-1": "ap-south-1";
4902
4980
  "ap-south-2": "ap-south-2";
4903
4981
  "ap-southeast-1": "ap-southeast-1";
4904
4982
  "ap-southeast-2": "ap-southeast-2";
4905
4983
  "ap-southeast-3": "ap-southeast-3";
4906
4984
  "ap-southeast-4": "ap-southeast-4";
4907
- "ap-northeast-1": "ap-northeast-1";
4908
- "ap-northeast-2": "ap-northeast-2";
4909
- "ap-northeast-3": "ap-northeast-3";
4910
4985
  "ca-central-1": "ca-central-1";
4911
4986
  "eu-central-1": "eu-central-1";
4912
4987
  "eu-central-2": "eu-central-2";
4988
+ "eu-north-1": "eu-north-1";
4989
+ "eu-south-1": "eu-south-1";
4990
+ "eu-south-2": "eu-south-2";
4913
4991
  "eu-west-1": "eu-west-1";
4914
4992
  "eu-west-2": "eu-west-2";
4915
4993
  "eu-west-3": "eu-west-3";
4916
- "eu-south-1": "eu-south-1";
4917
- "eu-south-2": "eu-south-2";
4918
- "eu-north-1": "eu-north-1";
4919
- "me-south-1": "me-south-1";
4920
4994
  "me-central-1": "me-central-1";
4995
+ "me-south-1": "me-south-1";
4921
4996
  "sa-east-1": "sa-east-1";
4997
+ "us-east-1": "us-east-1";
4998
+ "us-east-2": "us-east-2";
4999
+ "us-west-1": "us-west-1";
5000
+ "us-west-2": "us-west-2";
4922
5001
  }>>;
4923
5002
  profile: ZodOptional<ZodString>;
4924
5003
  hostedZoneId: ZodOptional<ZodString>;
@@ -4948,33 +5027,33 @@ declare const WorkspaceConfigSchema: ZodObject<{
4948
5027
  type: ZodLiteral<"s3">;
4949
5028
  profile: ZodOptional<ZodString>;
4950
5029
  region: ZodEnum<{
4951
- "us-east-1": "us-east-1";
4952
- "us-east-2": "us-east-2";
4953
- "us-west-1": "us-west-1";
4954
- "us-west-2": "us-west-2";
4955
5030
  "af-south-1": "af-south-1";
4956
5031
  "ap-east-1": "ap-east-1";
5032
+ "ap-northeast-1": "ap-northeast-1";
5033
+ "ap-northeast-2": "ap-northeast-2";
5034
+ "ap-northeast-3": "ap-northeast-3";
4957
5035
  "ap-south-1": "ap-south-1";
4958
5036
  "ap-south-2": "ap-south-2";
4959
5037
  "ap-southeast-1": "ap-southeast-1";
4960
5038
  "ap-southeast-2": "ap-southeast-2";
4961
5039
  "ap-southeast-3": "ap-southeast-3";
4962
5040
  "ap-southeast-4": "ap-southeast-4";
4963
- "ap-northeast-1": "ap-northeast-1";
4964
- "ap-northeast-2": "ap-northeast-2";
4965
- "ap-northeast-3": "ap-northeast-3";
4966
5041
  "ca-central-1": "ca-central-1";
4967
5042
  "eu-central-1": "eu-central-1";
4968
5043
  "eu-central-2": "eu-central-2";
5044
+ "eu-north-1": "eu-north-1";
5045
+ "eu-south-1": "eu-south-1";
5046
+ "eu-south-2": "eu-south-2";
4969
5047
  "eu-west-1": "eu-west-1";
4970
5048
  "eu-west-2": "eu-west-2";
4971
5049
  "eu-west-3": "eu-west-3";
4972
- "eu-south-1": "eu-south-1";
4973
- "eu-south-2": "eu-south-2";
4974
- "eu-north-1": "eu-north-1";
4975
- "me-south-1": "me-south-1";
4976
5050
  "me-central-1": "me-central-1";
5051
+ "me-south-1": "me-south-1";
4977
5052
  "sa-east-1": "sa-east-1";
5053
+ "us-east-1": "us-east-1";
5054
+ "us-east-2": "us-east-2";
5055
+ "us-west-1": "us-west-1";
5056
+ "us-west-2": "us-west-2";
4978
5057
  }>;
4979
5058
  schedule: ZodOptional<ZodString>;
4980
5059
  retention: ZodOptional<ZodNumber>;
@@ -4987,10 +5066,50 @@ declare const WorkspaceConfigSchema: ZodObject<{
4987
5066
  }, $strip>;
4988
5067
  secrets: ZodOptional<ZodObject<{
4989
5068
  enabled: ZodOptional<ZodBoolean>;
5069
+ store: ZodOptional<ZodUnion<readonly [ZodLiteral<"file">, ZodObject<{
5070
+ provider: ZodLiteral<"ssm">;
5071
+ region: ZodEnum<{
5072
+ "af-south-1": "af-south-1";
5073
+ "ap-east-1": "ap-east-1";
5074
+ "ap-northeast-1": "ap-northeast-1";
5075
+ "ap-northeast-2": "ap-northeast-2";
5076
+ "ap-northeast-3": "ap-northeast-3";
5077
+ "ap-south-1": "ap-south-1";
5078
+ "ap-south-2": "ap-south-2";
5079
+ "ap-southeast-1": "ap-southeast-1";
5080
+ "ap-southeast-2": "ap-southeast-2";
5081
+ "ap-southeast-3": "ap-southeast-3";
5082
+ "ap-southeast-4": "ap-southeast-4";
5083
+ "ca-central-1": "ca-central-1";
5084
+ "eu-central-1": "eu-central-1";
5085
+ "eu-central-2": "eu-central-2";
5086
+ "eu-north-1": "eu-north-1";
5087
+ "eu-south-1": "eu-south-1";
5088
+ "eu-south-2": "eu-south-2";
5089
+ "eu-west-1": "eu-west-1";
5090
+ "eu-west-2": "eu-west-2";
5091
+ "eu-west-3": "eu-west-3";
5092
+ "me-central-1": "me-central-1";
5093
+ "me-south-1": "me-south-1";
5094
+ "sa-east-1": "sa-east-1";
5095
+ "us-east-1": "us-east-1";
5096
+ "us-east-2": "us-east-2";
5097
+ "us-west-1": "us-west-1";
5098
+ "us-west-2": "us-west-2";
5099
+ }>;
5100
+ }, $strict>, ZodObject<{
5101
+ provider: ZodCustom<{
5102
+ pull: Function;
5103
+ push: Function;
5104
+ }, {
5105
+ pull: Function;
5106
+ push: Function;
5107
+ }>;
5108
+ }, $strip>]>>;
4990
5109
  algorithm: ZodOptional<ZodString>;
4991
5110
  kdf: ZodOptional<ZodEnum<{
4992
- scrypt: "scrypt";
4993
5111
  pbkdf2: "pbkdf2";
5112
+ scrypt: "scrypt";
4994
5113
  }>>;
4995
5114
  }, $strip>>;
4996
5115
  state: ZodOptional<ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
@@ -4998,33 +5117,33 @@ declare const WorkspaceConfigSchema: ZodObject<{
4998
5117
  }, $strip>, ZodObject<{
4999
5118
  provider: ZodLiteral<"ssm">;
5000
5119
  region: ZodEnum<{
5001
- "us-east-1": "us-east-1";
5002
- "us-east-2": "us-east-2";
5003
- "us-west-1": "us-west-1";
5004
- "us-west-2": "us-west-2";
5005
5120
  "af-south-1": "af-south-1";
5006
5121
  "ap-east-1": "ap-east-1";
5122
+ "ap-northeast-1": "ap-northeast-1";
5123
+ "ap-northeast-2": "ap-northeast-2";
5124
+ "ap-northeast-3": "ap-northeast-3";
5007
5125
  "ap-south-1": "ap-south-1";
5008
5126
  "ap-south-2": "ap-south-2";
5009
5127
  "ap-southeast-1": "ap-southeast-1";
5010
5128
  "ap-southeast-2": "ap-southeast-2";
5011
5129
  "ap-southeast-3": "ap-southeast-3";
5012
5130
  "ap-southeast-4": "ap-southeast-4";
5013
- "ap-northeast-1": "ap-northeast-1";
5014
- "ap-northeast-2": "ap-northeast-2";
5015
- "ap-northeast-3": "ap-northeast-3";
5016
5131
  "ca-central-1": "ca-central-1";
5017
5132
  "eu-central-1": "eu-central-1";
5018
5133
  "eu-central-2": "eu-central-2";
5134
+ "eu-north-1": "eu-north-1";
5135
+ "eu-south-1": "eu-south-1";
5136
+ "eu-south-2": "eu-south-2";
5019
5137
  "eu-west-1": "eu-west-1";
5020
5138
  "eu-west-2": "eu-west-2";
5021
5139
  "eu-west-3": "eu-west-3";
5022
- "eu-south-1": "eu-south-1";
5023
- "eu-south-2": "eu-south-2";
5024
- "eu-north-1": "eu-north-1";
5025
- "me-south-1": "me-south-1";
5026
5140
  "me-central-1": "me-central-1";
5141
+ "me-south-1": "me-south-1";
5027
5142
  "sa-east-1": "sa-east-1";
5143
+ "us-east-1": "us-east-1";
5144
+ "us-east-2": "us-east-2";
5145
+ "us-west-1": "us-west-1";
5146
+ "us-west-2": "us-west-2";
5028
5147
  }>;
5029
5148
  profile: ZodOptional<ZodString>;
5030
5149
  }, $strip>], "provider">, ZodObject<{
@@ -5301,6 +5420,14 @@ interface StagesConfig {
5301
5420
  interface SecretsConfig {
5302
5421
  /** Enable encrypted secrets (default: true) */
5303
5422
  enabled?: boolean;
5423
+ /**
5424
+ * Where deployed stages' secrets live, so a deploy can reach them from
5425
+ * anywhere: `'file'` (default — the encrypted `.gkm/secrets/<stage>.json`,
5426
+ * which cannot serve CI while `.gkm/` is gitignored), `{ provider: 'ssm',
5427
+ * region }` (each stage's secrets in its own AWS account), or any object
5428
+ * implementing `SecretsStore`. The local stage always uses the file.
5429
+ */
5430
+ store?: SecretsStoreConfig;
5304
5431
  /** Encryption algorithm (default: 'aes-256-gcm') */
5305
5432
  algorithm?: string;
5306
5433
  /** Key derivation function (default: 'scrypt') */
@@ -5890,6 +6017,16 @@ interface ProductionConfig {
5890
6017
  */
5891
6018
  optimizedHandlers?: boolean;
5892
6019
  }
6020
+ /**
6021
+ * Supported event backend types.
6022
+ *
6023
+ * - `pgboss`: Reuses PostgreSQL with a dedicated user/schema. Auto-enables db service.
6024
+ * - `sns`: Adds LocalStack container with SNS+SQS services.
6025
+ * - `rabbitmq`: Adds RabbitMQ container.
6026
+ *
6027
+ * All backends generate EVENT_PUBLISHER_CONNECTION_STRING and EVENT_SUBSCRIBER_CONNECTION_STRING.
6028
+ */
6029
+ type EventsBackend = 'pgboss' | 'sns' | 'rabbitmq';
5893
6030
  /**
5894
6031
  * Where a declared cache actually lives.
5895
6032
  *
@@ -6056,6 +6193,8 @@ interface GkmConfig {
6056
6193
  name?: string;
6057
6194
  /** The project's stages: which one is local, which deploy */
6058
6195
  stages: StagesConfig;
6196
+ /** Encrypted secrets, and where deployed stages' secrets are stored */
6197
+ secrets?: SecretsConfig;
6059
6198
  /**
6060
6199
  * Constructs glob pattern — one glob, every kind.
6061
6200
  *
@@ -6161,4 +6300,4 @@ interface GkmConfig {
6161
6300
  }
6162
6301
  //#endregion
6163
6302
  export { SUPPORTED_DEPLOY_TARGETS as A, WorkspaceInput as C, FrontendFramework as D, Framework as E, isPhase2DeployTarget as F, safeValidateWorkspaceConfig as I, validateWorkspaceConfig as L, formatValidationErrors as M, getDeployTargetError as N, MobileFramework as O, isDeployTargetSupported as P, WorkspaceConfig as S, BackendFramework as T, ModelsConfig as _, Routes as a, SecretsConfig as b, AppInput as c, DeployConfig as d, DeployTarget as f, LoadedConfig as g, InferredWorkspaceConfig as h, OpenApiConfig as i, WorkspaceConfigSchema as j, PHASE_2_DEPLOY_TARGETS as k, AppsRecord as l, InferAppNames as m, EmailBackend as n, AppConfig as o, DokployWorkspaceConfig as p, GkmConfig as r, AppConfigInput as s, CacheBackend as t, ConstrainedApps as u, NormalizedAppConfig as v, isWorkspaceConfig as w, SharedConfig as x, NormalizedWorkspace as y };
6164
- //# sourceMappingURL=types-BGo5TaNE.d.mts.map
6303
+ //# sourceMappingURL=types-N7c2O2m7.d.cts.map