@geekmidas/constructs 10.0.0-alpha.170 → 10.0.0-alpha.172

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 (163) hide show
  1. package/dist/{Cron-Ca_qHQu2.d.cts → Cron-BcA8F0S-.d.cts} +2 -2
  2. package/dist/{Cron-Ca_qHQu2.d.cts.map → Cron-BcA8F0S-.d.cts.map} +1 -1
  3. package/dist/{Cron-DPJiR7Lt.d.mts → Cron-z2CiuQT_.d.mts} +2 -2
  4. package/dist/{Cron-DPJiR7Lt.d.mts.map → Cron-z2CiuQT_.d.mts.map} +1 -1
  5. package/dist/{CronBuilder-C3RrAF1-.d.cts → CronBuilder-BZvo34X2.d.cts} +4 -4
  6. package/dist/{CronBuilder-BC4za5Bx.d.mts.map → CronBuilder-BZvo34X2.d.cts.map} +1 -1
  7. package/dist/{CronBuilder-BC4za5Bx.d.mts → CronBuilder-BbgKo8OI.d.mts} +4 -4
  8. package/dist/{CronBuilder-C3RrAF1-.d.cts.map → CronBuilder-BbgKo8OI.d.mts.map} +1 -1
  9. package/dist/{Endpoint-DC7mreOr.d.mts → Endpoint-CIDUreMW.d.mts} +5 -5
  10. package/dist/{Endpoint-BlIZLsBQ.d.cts.map → Endpoint-CIDUreMW.d.mts.map} +1 -1
  11. package/dist/{Endpoint-BlIZLsBQ.d.cts → Endpoint-COisi9jw.d.cts} +5 -5
  12. package/dist/{Endpoint-DC7mreOr.d.mts.map → Endpoint-COisi9jw.d.cts.map} +1 -1
  13. package/dist/{EndpointFactory-DCmnCmkX.d.mts → EndpointFactory-CIM80WIK.d.mts} +5 -5
  14. package/dist/{EndpointFactory-DCmnCmkX.d.mts.map → EndpointFactory-CIM80WIK.d.mts.map} +1 -1
  15. package/dist/{EndpointFactory-cVTb8kCc.d.cts → EndpointFactory-CfBg6jJE.d.cts} +5 -5
  16. package/dist/{EndpointFactory-cVTb8kCc.d.cts.map → EndpointFactory-CfBg6jJE.d.cts.map} +1 -1
  17. package/dist/{ObjectSubscriberBuilder-AwGKoUKy.d.mts → ObjectSubscriberBuilder-Ci_Cc-WZ.d.mts} +2 -2
  18. package/dist/{ObjectSubscriberBuilder-AwGKoUKy.d.mts.map → ObjectSubscriberBuilder-Ci_Cc-WZ.d.mts.map} +1 -1
  19. package/dist/{ObjectSubscriberBuilder-CB6imsX4.d.cts → ObjectSubscriberBuilder-DWtLxfAJ.d.cts} +2 -2
  20. package/dist/{ObjectSubscriberBuilder-CB6imsX4.d.cts.map → ObjectSubscriberBuilder-DWtLxfAJ.d.cts.map} +1 -1
  21. package/dist/{ProcessorBuilder-CwIlm75W.d.mts → ProcessorBuilder-CdLwJK4k.d.mts} +2 -2
  22. package/dist/{ProcessorBuilder-CeEZ2vCx.d.cts.map → ProcessorBuilder-CdLwJK4k.d.mts.map} +1 -1
  23. package/dist/{ProcessorBuilder-CeEZ2vCx.d.cts → ProcessorBuilder-ClD7tmEe.d.cts} +2 -2
  24. package/dist/{ProcessorBuilder-CwIlm75W.d.mts.map → ProcessorBuilder-ClD7tmEe.d.cts.map} +1 -1
  25. package/dist/{QueueBuilder-CUERv8jt.d.mts → QueueBuilder-CjULiiDN.d.mts} +2 -2
  26. package/dist/{QueueBuilder-CUERv8jt.d.mts.map → QueueBuilder-CjULiiDN.d.mts.map} +1 -1
  27. package/dist/{QueueBuilder-CmB1vOgn.d.cts → QueueBuilder-Dacm9qAv.d.cts} +2 -2
  28. package/dist/{QueueBuilder-CmB1vOgn.d.cts.map → QueueBuilder-Dacm9qAv.d.cts.map} +1 -1
  29. package/dist/adaptors/aws.d.cts +2 -2
  30. package/dist/adaptors/aws.d.mts +2 -2
  31. package/dist/adaptors/awsWebsocket.d.cts +1 -1
  32. package/dist/adaptors/awsWebsocket.d.mts +1 -1
  33. package/dist/adaptors/hono.d.cts +1 -1
  34. package/dist/adaptors/hono.d.mts +1 -1
  35. package/dist/adaptors/testing.d.cts +5 -5
  36. package/dist/adaptors/testing.d.mts +5 -5
  37. package/dist/{auth-1yI2wR-4.d.cts → auth-CutSfNlr.d.mts} +6 -6
  38. package/dist/{auth-1yI2wR-4.d.cts.map → auth-CutSfNlr.d.mts.map} +1 -1
  39. package/dist/{auth-D4NMXgLt.d.mts → auth-b9ADezz9.d.cts} +6 -6
  40. package/dist/{auth-D4NMXgLt.d.mts.map → auth-b9ADezz9.d.cts.map} +1 -1
  41. package/dist/auth.d.cts +1 -1
  42. package/dist/auth.d.mts +1 -1
  43. package/dist/{cache-0VoeOTF9.d.mts → cache-9wLNSy3O.d.cts} +3 -3
  44. package/dist/{cache-0VoeOTF9.d.mts.map → cache-9wLNSy3O.d.cts.map} +1 -1
  45. package/dist/{cache-CW-sArzS.d.cts → cache-BFPs_CGs.d.mts} +3 -3
  46. package/dist/{cache-CW-sArzS.d.cts.map → cache-BFPs_CGs.d.mts.map} +1 -1
  47. package/dist/cache.d.cts +1 -1
  48. package/dist/cache.d.mts +1 -1
  49. package/dist/{construct-interface-DhbaONW2.d.cts → construct-interface-CVoejIpo.d.cts} +20 -4
  50. package/dist/construct-interface-CVoejIpo.d.cts.map +1 -0
  51. package/dist/{construct-interface-DxfkFxkl.d.mts → construct-interface-Nw5Dt9AC.d.mts} +20 -4
  52. package/dist/construct-interface-Nw5Dt9AC.d.mts.map +1 -0
  53. package/dist/construct-interface.cjs +17 -2
  54. package/dist/construct-interface.cjs.map +1 -1
  55. package/dist/construct-interface.d.cts +2 -2
  56. package/dist/construct-interface.d.mts +2 -2
  57. package/dist/construct-interface.mjs +17 -3
  58. package/dist/construct-interface.mjs.map +1 -1
  59. package/dist/credential.d.cts +1 -1
  60. package/dist/credential.d.mts +1 -1
  61. package/dist/crons/index.d.cts +2 -2
  62. package/dist/crons/index.d.mts +2 -2
  63. package/dist/database/kysely.d.cts +1 -1
  64. package/dist/database/kysely.d.mts +1 -1
  65. package/dist/email.d.cts +1 -1
  66. package/dist/email.d.mts +1 -1
  67. package/dist/encryption.d.cts +1 -1
  68. package/dist/encryption.d.mts +1 -1
  69. package/dist/endpoints/index.d.cts +2 -2
  70. package/dist/endpoints/index.d.mts +2 -2
  71. package/dist/external-api.d.cts +1 -1
  72. package/dist/external-api.d.mts +1 -1
  73. package/dist/{fake-Djx8E0o1.d.cts → fake-JI5uN1SF.d.cts} +2 -2
  74. package/dist/{fake-BvOXkZmj.d.mts.map → fake-JI5uN1SF.d.cts.map} +1 -1
  75. package/dist/{fake-BvOXkZmj.d.mts → fake-zpuXpBmY.d.mts} +2 -2
  76. package/dist/{fake-Djx8E0o1.d.cts.map → fake-zpuXpBmY.d.mts.map} +1 -1
  77. package/dist/file-server.cjs +6 -37
  78. package/dist/file-server.cjs.map +1 -1
  79. package/dist/file-server.d.cts +4 -4
  80. package/dist/file-server.d.cts.map +1 -1
  81. package/dist/file-server.d.mts +4 -4
  82. package/dist/file-server.d.mts.map +1 -1
  83. package/dist/file-server.mjs +4 -35
  84. package/dist/file-server.mjs.map +1 -1
  85. package/dist/functions/index.d.cts +1 -1
  86. package/dist/functions/index.d.mts +1 -1
  87. package/dist/{inbox-BjvMs7EJ.d.cts → inbox-CXLU7h_8.d.cts} +2 -2
  88. package/dist/{inbox-BjvMs7EJ.d.cts.map → inbox-CXLU7h_8.d.cts.map} +1 -1
  89. package/dist/{inbox-C8bOR9UL.d.mts → inbox-DYFsLd9A.d.mts} +2 -2
  90. package/dist/{inbox-C8bOR9UL.d.mts.map → inbox-DYFsLd9A.d.mts.map} +1 -1
  91. package/dist/inbox.d.cts +1 -1
  92. package/dist/inbox.d.mts +1 -1
  93. package/dist/{index-vCS4HBEG.d.mts → index-BpE9_6l5.d.mts} +2 -2
  94. package/dist/{index-DaK-C7N3.d.cts.map → index-BpE9_6l5.d.mts.map} +1 -1
  95. package/dist/{index-DaK-C7N3.d.cts → index-zRChehJ9.d.cts} +2 -2
  96. package/dist/{index-vCS4HBEG.d.mts.map → index-zRChehJ9.d.cts.map} +1 -1
  97. package/dist/{kysely-BGvpd_ZH.d.mts → kysely-5PAqFBzo.d.mts} +3 -3
  98. package/dist/{kysely-2HqIQ2fC.d.cts.map → kysely-5PAqFBzo.d.mts.map} +1 -1
  99. package/dist/{kysely-2HqIQ2fC.d.cts → kysely-lxNUBSTP.d.cts} +3 -3
  100. package/dist/{kysely-BGvpd_ZH.d.mts.map → kysely-lxNUBSTP.d.cts.map} +1 -1
  101. package/dist/mobile-app.cjs +2 -1
  102. package/dist/mobile-app.cjs.map +1 -1
  103. package/dist/mobile-app.d.cts +3 -2
  104. package/dist/mobile-app.d.cts.map +1 -1
  105. package/dist/mobile-app.d.mts +3 -2
  106. package/dist/mobile-app.d.mts.map +1 -1
  107. package/dist/mobile-app.mjs +2 -1
  108. package/dist/mobile-app.mjs.map +1 -1
  109. package/dist/object-storage.cjs +42 -6
  110. package/dist/object-storage.cjs.map +1 -1
  111. package/dist/object-storage.d.cts +27 -2
  112. package/dist/object-storage.d.cts.map +1 -1
  113. package/dist/object-storage.d.mts +27 -2
  114. package/dist/object-storage.d.mts.map +1 -1
  115. package/dist/object-storage.mjs +39 -4
  116. package/dist/object-storage.mjs.map +1 -1
  117. package/dist/processors/index.d.cts +1 -1
  118. package/dist/processors/index.d.mts +1 -1
  119. package/dist/queue/index.d.cts +1 -1
  120. package/dist/queue/index.d.mts +1 -1
  121. package/dist/random-password.d.cts +1 -1
  122. package/dist/random-password.d.mts +1 -1
  123. package/dist/{expire-CieftS01.cjs → readOnlyStorage-C7bCe-z5.cjs} +35 -1
  124. package/dist/readOnlyStorage-C7bCe-z5.cjs.map +1 -0
  125. package/dist/{expire-CpzUAfr9.mjs → readOnlyStorage-DMCeLuS2.mjs} +30 -2
  126. package/dist/readOnlyStorage-DMCeLuS2.mjs.map +1 -0
  127. package/dist/rest-api.d.cts +4 -4
  128. package/dist/rest-api.d.mts +4 -4
  129. package/dist/site.cjs +5 -2
  130. package/dist/site.cjs.map +1 -1
  131. package/dist/site.d.cts +7 -4
  132. package/dist/site.d.cts.map +1 -1
  133. package/dist/site.d.mts +7 -4
  134. package/dist/site.d.mts.map +1 -1
  135. package/dist/site.mjs +5 -2
  136. package/dist/site.mjs.map +1 -1
  137. package/dist/subscribers/index.d.cts +1 -1
  138. package/dist/subscribers/index.d.mts +1 -1
  139. package/dist/{telemetry-DjJgtQ_N.d.cts → telemetry-BbLyS7ln.d.cts} +22 -5
  140. package/dist/telemetry-BbLyS7ln.d.cts.map +1 -0
  141. package/dist/{telemetry-BirKau0X.d.mts → telemetry-DWX-qKUh.d.mts} +22 -5
  142. package/dist/telemetry-DWX-qKUh.d.mts.map +1 -0
  143. package/dist/telemetry.cjs +11 -3
  144. package/dist/telemetry.cjs.map +1 -1
  145. package/dist/telemetry.d.cts +1 -1
  146. package/dist/telemetry.d.mts +1 -1
  147. package/dist/telemetry.mjs +12 -4
  148. package/dist/telemetry.mjs.map +1 -1
  149. package/dist/{websocket-api-CD-E5Ogr.d.cts → websocket-api-9ndLBolx.d.cts} +3 -3
  150. package/dist/{websocket-api-CD-E5Ogr.d.cts.map → websocket-api-9ndLBolx.d.cts.map} +1 -1
  151. package/dist/{websocket-api-pJJfeTcm.d.mts → websocket-api-BPPXF79i.d.mts} +3 -3
  152. package/dist/{websocket-api-pJJfeTcm.d.mts.map → websocket-api-BPPXF79i.d.mts.map} +1 -1
  153. package/dist/websocket-api.d.cts +1 -1
  154. package/dist/websocket-api.d.mts +1 -1
  155. package/dist/worker.d.cts +8 -8
  156. package/dist/worker.d.mts +8 -8
  157. package/package.json +31 -31
  158. package/dist/construct-interface-DhbaONW2.d.cts.map +0 -1
  159. package/dist/construct-interface-DxfkFxkl.d.mts.map +0 -1
  160. package/dist/expire-CieftS01.cjs.map +0 -1
  161. package/dist/expire-CpzUAfr9.mjs.map +0 -1
  162. package/dist/telemetry-BirKau0X.d.mts.map +0 -1
  163. package/dist/telemetry-DjJgtQ_N.d.cts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-DaK-C7N3.d.cts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
1
+ {"version":3,"file":"index-BpE9_6l5.d.mts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
@@ -1,7 +1,7 @@
1
1
  import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
2
2
  import { a as EventFor, c as Topic, n as ConstructType, o as TopicEvent } from "./Construct-127M7yrl.cjs";
3
3
  import { i as FunctionHandler, n as Function } from "./Function-BIEsY0Hm.cjs";
4
- import { l as ServicesOf, r as Consumable } from "./construct-interface-DhbaONW2.cjs";
4
+ import { r as Consumable, u as ServicesOf } from "./construct-interface-CVoejIpo.cjs";
5
5
  import { Logger } from "@geekmidas/logger";
6
6
  import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
7
7
  import { Service } from "@geekmidas/services";
@@ -112,4 +112,4 @@ declare class FunctionBuilder<TInput extends ComposableStandardSchema, OutSchema
112
112
  }
113
113
  //#endregion
114
114
  export { BaseFunctionBuilder as n, FunctionBuilder as t };
115
- //# sourceMappingURL=index-DaK-C7N3.d.cts.map
115
+ //# sourceMappingURL=index-zRChehJ9.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-vCS4HBEG.d.mts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
1
+ {"version":3,"file":"index-zRChehJ9.d.cts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
@@ -1,5 +1,5 @@
1
- import { n as Construct } from "./construct-interface-DxfkFxkl.mjs";
2
- import { t as Cache } from "./cache-0VoeOTF9.mjs";
1
+ import { n as Construct } from "./construct-interface-Nw5Dt9AC.mjs";
2
+ import { t as Cache } from "./cache-BFPs_CGs.mjs";
3
3
  import { ConstructName, Declaration, PostgresVersion } from "@geekmidas/manifest";
4
4
  import { Service } from "@geekmidas/services";
5
5
  import { Kysely, KyselyConfig } from "kysely";
@@ -213,4 +213,4 @@ declare class KyselyDatabase<DB = unknown, TName extends string = string> implem
213
213
  type ReadOnlyDatabase<DB, TName extends string> = Omit<KyselyDatabase<DB, TName>, 'reader' | 'cache' | 'schema'>;
214
214
  //#endregion
215
215
  export { closeDatabasePools as a, ReadOnlyDatabase as i, KyselyDatabaseOptions as n, PostgresRuntime as r, KyselyDatabase as t };
216
- //# sourceMappingURL=kysely-BGvpd_ZH.d.mts.map
216
+ //# sourceMappingURL=kysely-5PAqFBzo.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kysely-2HqIQ2fC.d.cts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
1
+ {"version":3,"file":"kysely-5PAqFBzo.d.mts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
@@ -1,5 +1,5 @@
1
- import { n as Construct } from "./construct-interface-DhbaONW2.cjs";
2
- import { t as Cache } from "./cache-CW-sArzS.cjs";
1
+ import { n as Construct } from "./construct-interface-CVoejIpo.cjs";
2
+ import { t as Cache } from "./cache-9wLNSy3O.cjs";
3
3
  import { Service } from "@geekmidas/services";
4
4
  import { ConstructName, Declaration, PostgresVersion } from "@geekmidas/manifest";
5
5
  import { Kysely, KyselyConfig } from "kysely";
@@ -213,4 +213,4 @@ declare class KyselyDatabase<DB = unknown, TName extends string = string> implem
213
213
  type ReadOnlyDatabase<DB, TName extends string> = Omit<KyselyDatabase<DB, TName>, 'reader' | 'cache' | 'schema'>;
214
214
  //#endregion
215
215
  export { closeDatabasePools as a, ReadOnlyDatabase as i, KyselyDatabaseOptions as n, PostgresRuntime as r, KyselyDatabase as t };
216
- //# sourceMappingURL=kysely-2HqIQ2fC.d.cts.map
216
+ //# sourceMappingURL=kysely-lxNUBSTP.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kysely-BGvpd_ZH.d.mts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
1
+ {"version":3,"file":"kysely-lxNUBSTP.d.cts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
@@ -50,7 +50,8 @@ var MobileApp = class MobileApp {
50
50
  *
51
51
  * A plain edge to a `FileServer` is to its public face — the address its
52
52
  * objects are served on, inlined — never to the bucket a phone has no
53
- * business holding a key to.
53
+ * business holding a key to. A plain edge to an `ObjectStorage` is to where
54
+ * its links are signed, and nothing else of it.
54
55
  */
55
56
  dependsOn(constructs) {
56
57
  return new MobileApp(this.id, this.config, [...this.dependencies, ...constructs.map(require_construct_interface.frontendEdgeTo)]);
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-app.cjs","names":["canonicalId","providedKeyFor","frontendEdgeTo"],"sources":["../src/mobile-app.ts"],"sourcesContent":["/**\n * `MobileApp` — an Expo app, declared like a site.\n *\n * Its edges are the point, as a site's are. One `.dependsOn([api, auth])` is\n * the fact behind everything a mobile app otherwise has written down by hand:\n *\n * - its `EXPO_PUBLIC_API_URL` and `EXPO_PUBLIC_AUTH_URL`, which locally are\n * the servers' own ports — reachable once the app swaps `localhost` for the\n * address Metro is served from, which is what makes a phone on the LAN work;\n * - with an `Email` among them, Mailpit's inbox on a local stage\n * (`EXPO_PUBLIC_<ID>_INBOX_URL`), so a sign-in link can be opened from the\n * app — unset deployed, where there is no inbox;\n * - its URL scheme (`shop`), the same on every stage;\n * - the scheme in the auth server's and the API's trusted origins — and, on a\n * local stage, the `exp://` origins Expo Go sends from;\n * - Better Auth's Expo plugin on the auth server, and sign-in links an app asks\n * for built on an address the phone can open.\n *\n * ```ts\n * export const app = new MobileApp('App', { path: 'apps/app' })\n * .dependsOn([api, auth]);\n * ```\n *\n * Like a site it has no `.service`: it is built by its own toolchain, and\n * consumes addresses rather than connections. Nothing deploys it — EAS and the\n * stores do — so the targets derive *for* it and never run it.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\ttype Dependency,\n\ttype MobileAppDeclaration,\n\ttype MobileAppStage,\n\tprovidedKeyFor,\n} from '@geekmidas/manifest';\nimport { type Declarable, frontendEdgeTo } from './construct-interface';\n\nexport interface MobileAppConfig {\n\t/**\n\t * Where its source lives, relative to the workspace root — `'apps/app'`.\n\t * Required, the same field a site and a surface take.\n\t */\n\tpath: string;\n\t/**\n\t * The port Metro serves it on locally.\n\t *\n\t * Normally omitted: ports are assigned in a stable order, as a site's are,\n\t * and `gkm exec` hands it to Expo as `RCT_METRO_PORT`.\n\t */\n\tport?: number;\n\t/**\n\t * Modules to import when sniffing which env vars the app reads — its\n\t * values are inlined at build time, as a site's are.\n\t */\n\tconfig?: { client?: string; server?: string };\n\t/**\n\t * Which toolchain builds it — the same field a site names its framework\n\t * by. Expo is the one that ships, and the default.\n\t */\n\tvariant?: MobileAppDeclaration['variant'];\n\t/**\n\t * Its URL scheme.\n\t *\n\t * Normally omitted: it is the project's name — `shop` — on every stage.\n\t * Give one only when the app is known by another name.\n\t */\n\tscheme?: string;\n\t/**\n\t * How a deployed stage ships it, where that differs from the defaults: the\n\t * protected stage reads EAS's `production` environment and submits to\n\t * Play's `production` track, every other deployed stage `preview` and\n\t * `internal`, and every Android release is a `draft` until someone\n\t * releases it in Play Console.\n\t *\n\t * ```ts\n\t * stages: { beta: { environment: 'preview', android: { track: 'alpha' } } }\n\t * ```\n\t */\n\tstages?: Readonly<Record<string, MobileAppStage>>;\n}\n\nexport class MobileApp<TName extends string = string>\n\timplements Declarable<TName>\n{\n\treadonly id: TName;\n\t/** The key its scheme arrives under — what its `app.config.ts` reads. */\n\treadonly keys: { scheme: string };\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly config: MobileAppConfig,\n\t\t/** Internal: how `.dependsOn()` carries edges into the copy it returns. */\n\t\tprivate readonly dependencies: readonly Dependency[] = [],\n\t) {\n\t\tthis.id = canonicalId(id as string) as TName;\n\t\tthis.keys = { scheme: providedKeyFor(this.id, 'mobile-app', 'scheme') };\n\t}\n\n\t/**\n\t * What this app calls — the surfaces it is built with the URLs of, and the\n\t * ones that come to trust its scheme.\n\t *\n\t * Immutable, like every other builder: it returns a new app rather than\n\t * changing this one.\n\t *\n\t * A plain edge to a `FileServer` is to its public face — the address its\n\t * objects are served on, inlined — never to the bucket a phone has no\n\t * business holding a key to.\n\t */\n\tdependsOn(constructs: readonly Declarable[]): MobileApp<TName> {\n\t\treturn new MobileApp<TName>(this.id as ConstructName<TName>, this.config, [\n\t\t\t...this.dependencies,\n\t\t\t...constructs.map(frontendEdgeTo),\n\t\t]);\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'mobile-app',\n\t\t\t\tid: this.id,\n\t\t\t\tvariant: this.config.variant ?? 'expo',\n\t\t\t\tapp: {\n\t\t\t\t\tpath: this.config.path,\n\t\t\t\t\t...(this.config.port ? { port: this.config.port } : {}),\n\t\t\t\t\t...(this.config.config ? { config: this.config.config } : {}),\n\t\t\t\t},\n\t\t\t\t...(this.config.scheme ? { scheme: this.config.scheme } : {}),\n\t\t\t\t...(this.config.stages ? { stages: this.config.stages } : {}),\n\t\t\t\tdependencies: this.dependencies,\n\t\t\t\tprovides: [this.keys.scheme],\n\t\t\t},\n\t\t];\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAa,YAAb,MAAa,UAEb;CAOmB;CAEA;CARlB;;CAEA;CAEA,YACC,IACA,QAEA,eAAuD,CAAC,GACvD;EAHgB,KAAA,SAAA;EAEA,KAAA,eAAA;EAEjB,KAAK,MAAA,GAAKA,oBAAAA,YAAAA,CAAY,EAAY;EAClC,KAAK,OAAO,EAAE,SAAA,GAAQC,oBAAAA,eAAAA,CAAe,KAAK,IAAI,cAAc,QAAQ,EAAE;CACvE;;;;;;;;;;;;CAaA,UAAU,YAAqD;EAC9D,OAAO,IAAI,UAAiB,KAAK,IAA4B,KAAK,QAAQ,CACzE,GAAG,KAAK,cACR,GAAG,WAAW,IAAIC,4BAAAA,cAAc,CACjC,CAAC;CACF;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,SAAS,KAAK,OAAO,WAAW;GAChC,KAAK;IACJ,MAAM,KAAK,OAAO;IAClB,GAAI,KAAK,OAAO,OAAO,EAAE,MAAM,KAAK,OAAO,KAAK,IAAI,CAAC;IACrD,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC5D;GACA,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,cAAc,KAAK;GACnB,UAAU,CAAC,KAAK,KAAK,MAAM;EAC5B,CACD;CACD;AACD"}
1
+ {"version":3,"file":"mobile-app.cjs","names":["canonicalId","providedKeyFor","frontendEdgeTo"],"sources":["../src/mobile-app.ts"],"sourcesContent":["/**\n * `MobileApp` — an Expo app, declared like a site.\n *\n * Its edges are the point, as a site's are. One `.dependsOn([api, auth])` is\n * the fact behind everything a mobile app otherwise has written down by hand:\n *\n * - its `EXPO_PUBLIC_API_URL` and `EXPO_PUBLIC_AUTH_URL`, which locally are\n * the servers' own ports — reachable once the app swaps `localhost` for the\n * address Metro is served from, which is what makes a phone on the LAN work;\n * - with an `Email` among them, Mailpit's inbox on a local stage\n * (`EXPO_PUBLIC_<ID>_INBOX_URL`), so a sign-in link can be opened from the\n * app — unset deployed, where there is no inbox;\n * - its URL scheme (`shop`), the same on every stage;\n * - the scheme in the auth server's and the API's trusted origins — and, on a\n * local stage, the `exp://` origins Expo Go sends from;\n * - Better Auth's Expo plugin on the auth server, and sign-in links an app asks\n * for built on an address the phone can open.\n *\n * ```ts\n * export const app = new MobileApp('App', { path: 'apps/app' })\n * .dependsOn([api, auth]);\n * ```\n *\n * Like a site it has no `.service`: it is built by its own toolchain, and\n * consumes addresses rather than connections. Nothing deploys it — EAS and the\n * stores do — so the targets derive *for* it and never run it.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\ttype Dependency,\n\ttype MobileAppDeclaration,\n\ttype MobileAppStage,\n\tprovidedKeyFor,\n} from '@geekmidas/manifest';\nimport { type Declarable, frontendEdgeTo } from './construct-interface';\n\nexport interface MobileAppConfig {\n\t/**\n\t * Where its source lives, relative to the workspace root — `'apps/app'`.\n\t * Required, the same field a site and a surface take.\n\t */\n\tpath: string;\n\t/**\n\t * The port Metro serves it on locally.\n\t *\n\t * Normally omitted: ports are assigned in a stable order, as a site's are,\n\t * and `gkm exec` hands it to Expo as `RCT_METRO_PORT`.\n\t */\n\tport?: number;\n\t/**\n\t * Modules to import when sniffing which env vars the app reads — its\n\t * values are inlined at build time, as a site's are.\n\t */\n\tconfig?: { client?: string; server?: string };\n\t/**\n\t * Which toolchain builds it — the same field a site names its framework\n\t * by. Expo is the one that ships, and the default.\n\t */\n\tvariant?: MobileAppDeclaration['variant'];\n\t/**\n\t * Its URL scheme.\n\t *\n\t * Normally omitted: it is the project's name — `shop` — on every stage.\n\t * Give one only when the app is known by another name.\n\t */\n\tscheme?: string;\n\t/**\n\t * How a deployed stage ships it, where that differs from the defaults: the\n\t * protected stage reads EAS's `production` environment and submits to\n\t * Play's `production` track, every other deployed stage `preview` and\n\t * `internal`, and every Android release is a `draft` until someone\n\t * releases it in Play Console.\n\t *\n\t * ```ts\n\t * stages: { beta: { environment: 'preview', android: { track: 'alpha' } } }\n\t * ```\n\t */\n\tstages?: Readonly<Record<string, MobileAppStage>>;\n}\n\nexport class MobileApp<TName extends string = string>\n\timplements Declarable<TName>\n{\n\treadonly id: TName;\n\t/** The key its scheme arrives under — what its `app.config.ts` reads. */\n\treadonly keys: { scheme: string };\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly config: MobileAppConfig,\n\t\t/** Internal: how `.dependsOn()` carries edges into the copy it returns. */\n\t\tprivate readonly dependencies: readonly Dependency[] = [],\n\t) {\n\t\tthis.id = canonicalId(id as string) as TName;\n\t\tthis.keys = { scheme: providedKeyFor(this.id, 'mobile-app', 'scheme') };\n\t}\n\n\t/**\n\t * What this app calls — the surfaces it is built with the URLs of, and the\n\t * ones that come to trust its scheme.\n\t *\n\t * Immutable, like every other builder: it returns a new app rather than\n\t * changing this one.\n\t *\n\t * A plain edge to a `FileServer` is to its public face — the address its\n\t * objects are served on, inlined — never to the bucket a phone has no\n\t * business holding a key to. A plain edge to an `ObjectStorage` is to where\n\t * its links are signed, and nothing else of it.\n\t */\n\tdependsOn(constructs: readonly Declarable[]): MobileApp<TName> {\n\t\treturn new MobileApp<TName>(this.id as ConstructName<TName>, this.config, [\n\t\t\t...this.dependencies,\n\t\t\t...constructs.map(frontendEdgeTo),\n\t\t]);\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'mobile-app',\n\t\t\t\tid: this.id,\n\t\t\t\tvariant: this.config.variant ?? 'expo',\n\t\t\t\tapp: {\n\t\t\t\t\tpath: this.config.path,\n\t\t\t\t\t...(this.config.port ? { port: this.config.port } : {}),\n\t\t\t\t\t...(this.config.config ? { config: this.config.config } : {}),\n\t\t\t\t},\n\t\t\t\t...(this.config.scheme ? { scheme: this.config.scheme } : {}),\n\t\t\t\t...(this.config.stages ? { stages: this.config.stages } : {}),\n\t\t\t\tdependencies: this.dependencies,\n\t\t\t\tprovides: [this.keys.scheme],\n\t\t\t},\n\t\t];\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAa,YAAb,MAAa,UAEb;CAOmB;CAEA;CARlB;;CAEA;CAEA,YACC,IACA,QAEA,eAAuD,CAAC,GACvD;EAHgB,KAAA,SAAA;EAEA,KAAA,eAAA;EAEjB,KAAK,MAAA,GAAKA,oBAAAA,YAAAA,CAAY,EAAY;EAClC,KAAK,OAAO,EAAE,SAAA,GAAQC,oBAAAA,eAAAA,CAAe,KAAK,IAAI,cAAc,QAAQ,EAAE;CACvE;;;;;;;;;;;;;CAcA,UAAU,YAAqD;EAC9D,OAAO,IAAI,UAAiB,KAAK,IAA4B,KAAK,QAAQ,CACzE,GAAG,KAAK,cACR,GAAG,WAAW,IAAIC,4BAAAA,cAAc,CACjC,CAAC;CACF;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,SAAS,KAAK,OAAO,WAAW;GAChC,KAAK;IACJ,MAAM,KAAK,OAAO;IAClB,GAAI,KAAK,OAAO,OAAO,EAAE,MAAM,KAAK,OAAO,KAAK,IAAI,CAAC;IACrD,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC5D;GACA,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,cAAc,KAAK;GACnB,UAAU,CAAC,KAAK,KAAK,MAAM;EAC5B,CACD;CACD;AACD"}
@@ -1,4 +1,4 @@
1
- import { i as Declarable } from "./construct-interface-DhbaONW2.cjs";
1
+ import { i as Declarable } from "./construct-interface-CVoejIpo.cjs";
2
2
  import { ConstructName, Declaration, Dependency, MobileAppDeclaration, MobileAppStage } from "@geekmidas/manifest";
3
3
  //#region src/mobile-app.d.ts
4
4
  export interface MobileAppConfig {
@@ -68,7 +68,8 @@ export declare class MobileApp<TName extends string = string> implements Declara
68
68
  *
69
69
  * A plain edge to a `FileServer` is to its public face — the address its
70
70
  * objects are served on, inlined — never to the bucket a phone has no
71
- * business holding a key to.
71
+ * business holding a key to. A plain edge to an `ObjectStorage` is to where
72
+ * its links are signed, and nothing else of it.
72
73
  */
73
74
  dependsOn(constructs: readonly Declarable[]): MobileApp<TName>;
74
75
  declare(): Declaration[];
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-app.d.cts","names":[],"sources":["../src/mobile-app.ts"],"mappings":";;;iBAuCiB;;;;;EAKhB;;;;;;;EAOA;;;;;EAKA;IAAW;IAAiB;;;;;;EAK5B,UAAU;;;;;;;EAOV;;;;;;;;;;;;EAYA,SAAS,SAAS,eAAe;;qBAGrB,UAAU,0CACX,WAAW;mBAQJ;;mBAEA;WART,IAAI;;WAEJ;IAAQ;;EAEjB,YACC,IAAI,cAAc,QACD,QAAQ,iBAER;;EAAA,wBAAuB;;;;;;;;;;;;EAiBzC,UAAU,qBAAqB,eAAe,UAAU;EAOxD,WAAW"}
1
+ {"version":3,"file":"mobile-app.d.cts","names":[],"sources":["../src/mobile-app.ts"],"mappings":";;;iBAuCiB;;;;;EAKhB;;;;;;;EAOA;;;;;EAKA;IAAW;IAAiB;;;;;;EAK5B,UAAU;;;;;;;EAOV;;;;;;;;;;;;EAYA,SAAS,SAAS,eAAe;;qBAGrB,UAAU,0CACX,WAAW;mBAQJ;;mBAEA;WART,IAAI;;WAEJ;IAAQ;;EAEjB,YACC,IAAI,cAAc,QACD,QAAQ,iBAER;;EAAA,wBAAuB;;;;;;;;;;;;;EAkBzC,UAAU,qBAAqB,eAAe,UAAU;EAOxD,WAAW"}
@@ -1,4 +1,4 @@
1
- import { i as Declarable } from "./construct-interface-DxfkFxkl.mjs";
1
+ import { i as Declarable } from "./construct-interface-Nw5Dt9AC.mjs";
2
2
  import { ConstructName, Declaration, Dependency, MobileAppDeclaration, MobileAppStage } from "@geekmidas/manifest";
3
3
  //#region src/mobile-app.d.ts
4
4
  export interface MobileAppConfig {
@@ -68,7 +68,8 @@ export declare class MobileApp<TName extends string = string> implements Declara
68
68
  *
69
69
  * A plain edge to a `FileServer` is to its public face — the address its
70
70
  * objects are served on, inlined — never to the bucket a phone has no
71
- * business holding a key to.
71
+ * business holding a key to. A plain edge to an `ObjectStorage` is to where
72
+ * its links are signed, and nothing else of it.
72
73
  */
73
74
  dependsOn(constructs: readonly Declarable[]): MobileApp<TName>;
74
75
  declare(): Declaration[];
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-app.d.mts","names":[],"sources":["../src/mobile-app.ts"],"mappings":";;;iBAuCiB;;;;;EAKhB;;;;;;;EAOA;;;;;EAKA;IAAW;IAAiB;;;;;;EAK5B,UAAU;;;;;;;EAOV;;;;;;;;;;;;EAYA,SAAS,SAAS,eAAe;;qBAGrB,UAAU,0CACX,WAAW;mBAQJ;;mBAEA;WART,IAAI;;WAEJ;IAAQ;;EAEjB,YACC,IAAI,cAAc,QACD,QAAQ,iBAER;;EAAA,wBAAuB;;;;;;;;;;;;EAiBzC,UAAU,qBAAqB,eAAe,UAAU;EAOxD,WAAW"}
1
+ {"version":3,"file":"mobile-app.d.mts","names":[],"sources":["../src/mobile-app.ts"],"mappings":";;;iBAuCiB;;;;;EAKhB;;;;;;;EAOA;;;;;EAKA;IAAW;IAAiB;;;;;;EAK5B,UAAU;;;;;;;EAOV;;;;;;;;;;;;EAYA,SAAS,SAAS,eAAe;;qBAGrB,UAAU,0CACX,WAAW;mBAQJ;;mBAEA;WART,IAAI;;WAEJ;IAAQ;;EAEjB,YACC,IAAI,cAAc,QACD,QAAQ,iBAER;;EAAA,wBAAuB;;;;;;;;;;;;;EAkBzC,UAAU,qBAAqB,eAAe,UAAU;EAOxD,WAAW"}
@@ -49,7 +49,8 @@ var MobileApp = class MobileApp {
49
49
  *
50
50
  * A plain edge to a `FileServer` is to its public face — the address its
51
51
  * objects are served on, inlined — never to the bucket a phone has no
52
- * business holding a key to.
52
+ * business holding a key to. A plain edge to an `ObjectStorage` is to where
53
+ * its links are signed, and nothing else of it.
53
54
  */
54
55
  dependsOn(constructs) {
55
56
  return new MobileApp(this.id, this.config, [...this.dependencies, ...constructs.map(frontendEdgeTo)]);
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-app.mjs","names":[],"sources":["../src/mobile-app.ts"],"sourcesContent":["/**\n * `MobileApp` — an Expo app, declared like a site.\n *\n * Its edges are the point, as a site's are. One `.dependsOn([api, auth])` is\n * the fact behind everything a mobile app otherwise has written down by hand:\n *\n * - its `EXPO_PUBLIC_API_URL` and `EXPO_PUBLIC_AUTH_URL`, which locally are\n * the servers' own ports — reachable once the app swaps `localhost` for the\n * address Metro is served from, which is what makes a phone on the LAN work;\n * - with an `Email` among them, Mailpit's inbox on a local stage\n * (`EXPO_PUBLIC_<ID>_INBOX_URL`), so a sign-in link can be opened from the\n * app — unset deployed, where there is no inbox;\n * - its URL scheme (`shop`), the same on every stage;\n * - the scheme in the auth server's and the API's trusted origins — and, on a\n * local stage, the `exp://` origins Expo Go sends from;\n * - Better Auth's Expo plugin on the auth server, and sign-in links an app asks\n * for built on an address the phone can open.\n *\n * ```ts\n * export const app = new MobileApp('App', { path: 'apps/app' })\n * .dependsOn([api, auth]);\n * ```\n *\n * Like a site it has no `.service`: it is built by its own toolchain, and\n * consumes addresses rather than connections. Nothing deploys it — EAS and the\n * stores do — so the targets derive *for* it and never run it.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\ttype Dependency,\n\ttype MobileAppDeclaration,\n\ttype MobileAppStage,\n\tprovidedKeyFor,\n} from '@geekmidas/manifest';\nimport { type Declarable, frontendEdgeTo } from './construct-interface';\n\nexport interface MobileAppConfig {\n\t/**\n\t * Where its source lives, relative to the workspace root — `'apps/app'`.\n\t * Required, the same field a site and a surface take.\n\t */\n\tpath: string;\n\t/**\n\t * The port Metro serves it on locally.\n\t *\n\t * Normally omitted: ports are assigned in a stable order, as a site's are,\n\t * and `gkm exec` hands it to Expo as `RCT_METRO_PORT`.\n\t */\n\tport?: number;\n\t/**\n\t * Modules to import when sniffing which env vars the app reads — its\n\t * values are inlined at build time, as a site's are.\n\t */\n\tconfig?: { client?: string; server?: string };\n\t/**\n\t * Which toolchain builds it — the same field a site names its framework\n\t * by. Expo is the one that ships, and the default.\n\t */\n\tvariant?: MobileAppDeclaration['variant'];\n\t/**\n\t * Its URL scheme.\n\t *\n\t * Normally omitted: it is the project's name — `shop` — on every stage.\n\t * Give one only when the app is known by another name.\n\t */\n\tscheme?: string;\n\t/**\n\t * How a deployed stage ships it, where that differs from the defaults: the\n\t * protected stage reads EAS's `production` environment and submits to\n\t * Play's `production` track, every other deployed stage `preview` and\n\t * `internal`, and every Android release is a `draft` until someone\n\t * releases it in Play Console.\n\t *\n\t * ```ts\n\t * stages: { beta: { environment: 'preview', android: { track: 'alpha' } } }\n\t * ```\n\t */\n\tstages?: Readonly<Record<string, MobileAppStage>>;\n}\n\nexport class MobileApp<TName extends string = string>\n\timplements Declarable<TName>\n{\n\treadonly id: TName;\n\t/** The key its scheme arrives under — what its `app.config.ts` reads. */\n\treadonly keys: { scheme: string };\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly config: MobileAppConfig,\n\t\t/** Internal: how `.dependsOn()` carries edges into the copy it returns. */\n\t\tprivate readonly dependencies: readonly Dependency[] = [],\n\t) {\n\t\tthis.id = canonicalId(id as string) as TName;\n\t\tthis.keys = { scheme: providedKeyFor(this.id, 'mobile-app', 'scheme') };\n\t}\n\n\t/**\n\t * What this app calls — the surfaces it is built with the URLs of, and the\n\t * ones that come to trust its scheme.\n\t *\n\t * Immutable, like every other builder: it returns a new app rather than\n\t * changing this one.\n\t *\n\t * A plain edge to a `FileServer` is to its public face — the address its\n\t * objects are served on, inlined — never to the bucket a phone has no\n\t * business holding a key to.\n\t */\n\tdependsOn(constructs: readonly Declarable[]): MobileApp<TName> {\n\t\treturn new MobileApp<TName>(this.id as ConstructName<TName>, this.config, [\n\t\t\t...this.dependencies,\n\t\t\t...constructs.map(frontendEdgeTo),\n\t\t]);\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'mobile-app',\n\t\t\t\tid: this.id,\n\t\t\t\tvariant: this.config.variant ?? 'expo',\n\t\t\t\tapp: {\n\t\t\t\t\tpath: this.config.path,\n\t\t\t\t\t...(this.config.port ? { port: this.config.port } : {}),\n\t\t\t\t\t...(this.config.config ? { config: this.config.config } : {}),\n\t\t\t\t},\n\t\t\t\t...(this.config.scheme ? { scheme: this.config.scheme } : {}),\n\t\t\t\t...(this.config.stages ? { stages: this.config.stages } : {}),\n\t\t\t\tdependencies: this.dependencies,\n\t\t\t\tprovides: [this.keys.scheme],\n\t\t\t},\n\t\t];\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAa,YAAb,MAAa,UAEb;CAOmB;CAEA;CARlB;;CAEA;CAEA,YACC,IACA,QAEA,eAAuD,CAAC,GACvD;EAHgB,KAAA,SAAA;EAEA,KAAA,eAAA;EAEjB,KAAK,KAAK,YAAY,EAAY;EAClC,KAAK,OAAO,EAAE,QAAQ,eAAe,KAAK,IAAI,cAAc,QAAQ,EAAE;CACvE;;;;;;;;;;;;CAaA,UAAU,YAAqD;EAC9D,OAAO,IAAI,UAAiB,KAAK,IAA4B,KAAK,QAAQ,CACzE,GAAG,KAAK,cACR,GAAG,WAAW,IAAI,cAAc,CACjC,CAAC;CACF;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,SAAS,KAAK,OAAO,WAAW;GAChC,KAAK;IACJ,MAAM,KAAK,OAAO;IAClB,GAAI,KAAK,OAAO,OAAO,EAAE,MAAM,KAAK,OAAO,KAAK,IAAI,CAAC;IACrD,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC5D;GACA,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,cAAc,KAAK;GACnB,UAAU,CAAC,KAAK,KAAK,MAAM;EAC5B,CACD;CACD;AACD"}
1
+ {"version":3,"file":"mobile-app.mjs","names":[],"sources":["../src/mobile-app.ts"],"sourcesContent":["/**\n * `MobileApp` — an Expo app, declared like a site.\n *\n * Its edges are the point, as a site's are. One `.dependsOn([api, auth])` is\n * the fact behind everything a mobile app otherwise has written down by hand:\n *\n * - its `EXPO_PUBLIC_API_URL` and `EXPO_PUBLIC_AUTH_URL`, which locally are\n * the servers' own ports — reachable once the app swaps `localhost` for the\n * address Metro is served from, which is what makes a phone on the LAN work;\n * - with an `Email` among them, Mailpit's inbox on a local stage\n * (`EXPO_PUBLIC_<ID>_INBOX_URL`), so a sign-in link can be opened from the\n * app — unset deployed, where there is no inbox;\n * - its URL scheme (`shop`), the same on every stage;\n * - the scheme in the auth server's and the API's trusted origins — and, on a\n * local stage, the `exp://` origins Expo Go sends from;\n * - Better Auth's Expo plugin on the auth server, and sign-in links an app asks\n * for built on an address the phone can open.\n *\n * ```ts\n * export const app = new MobileApp('App', { path: 'apps/app' })\n * .dependsOn([api, auth]);\n * ```\n *\n * Like a site it has no `.service`: it is built by its own toolchain, and\n * consumes addresses rather than connections. Nothing deploys it — EAS and the\n * stores do — so the targets derive *for* it and never run it.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\ttype Dependency,\n\ttype MobileAppDeclaration,\n\ttype MobileAppStage,\n\tprovidedKeyFor,\n} from '@geekmidas/manifest';\nimport { type Declarable, frontendEdgeTo } from './construct-interface';\n\nexport interface MobileAppConfig {\n\t/**\n\t * Where its source lives, relative to the workspace root — `'apps/app'`.\n\t * Required, the same field a site and a surface take.\n\t */\n\tpath: string;\n\t/**\n\t * The port Metro serves it on locally.\n\t *\n\t * Normally omitted: ports are assigned in a stable order, as a site's are,\n\t * and `gkm exec` hands it to Expo as `RCT_METRO_PORT`.\n\t */\n\tport?: number;\n\t/**\n\t * Modules to import when sniffing which env vars the app reads — its\n\t * values are inlined at build time, as a site's are.\n\t */\n\tconfig?: { client?: string; server?: string };\n\t/**\n\t * Which toolchain builds it — the same field a site names its framework\n\t * by. Expo is the one that ships, and the default.\n\t */\n\tvariant?: MobileAppDeclaration['variant'];\n\t/**\n\t * Its URL scheme.\n\t *\n\t * Normally omitted: it is the project's name — `shop` — on every stage.\n\t * Give one only when the app is known by another name.\n\t */\n\tscheme?: string;\n\t/**\n\t * How a deployed stage ships it, where that differs from the defaults: the\n\t * protected stage reads EAS's `production` environment and submits to\n\t * Play's `production` track, every other deployed stage `preview` and\n\t * `internal`, and every Android release is a `draft` until someone\n\t * releases it in Play Console.\n\t *\n\t * ```ts\n\t * stages: { beta: { environment: 'preview', android: { track: 'alpha' } } }\n\t * ```\n\t */\n\tstages?: Readonly<Record<string, MobileAppStage>>;\n}\n\nexport class MobileApp<TName extends string = string>\n\timplements Declarable<TName>\n{\n\treadonly id: TName;\n\t/** The key its scheme arrives under — what its `app.config.ts` reads. */\n\treadonly keys: { scheme: string };\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly config: MobileAppConfig,\n\t\t/** Internal: how `.dependsOn()` carries edges into the copy it returns. */\n\t\tprivate readonly dependencies: readonly Dependency[] = [],\n\t) {\n\t\tthis.id = canonicalId(id as string) as TName;\n\t\tthis.keys = { scheme: providedKeyFor(this.id, 'mobile-app', 'scheme') };\n\t}\n\n\t/**\n\t * What this app calls — the surfaces it is built with the URLs of, and the\n\t * ones that come to trust its scheme.\n\t *\n\t * Immutable, like every other builder: it returns a new app rather than\n\t * changing this one.\n\t *\n\t * A plain edge to a `FileServer` is to its public face — the address its\n\t * objects are served on, inlined — never to the bucket a phone has no\n\t * business holding a key to. A plain edge to an `ObjectStorage` is to where\n\t * its links are signed, and nothing else of it.\n\t */\n\tdependsOn(constructs: readonly Declarable[]): MobileApp<TName> {\n\t\treturn new MobileApp<TName>(this.id as ConstructName<TName>, this.config, [\n\t\t\t...this.dependencies,\n\t\t\t...constructs.map(frontendEdgeTo),\n\t\t]);\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'mobile-app',\n\t\t\t\tid: this.id,\n\t\t\t\tvariant: this.config.variant ?? 'expo',\n\t\t\t\tapp: {\n\t\t\t\t\tpath: this.config.path,\n\t\t\t\t\t...(this.config.port ? { port: this.config.port } : {}),\n\t\t\t\t\t...(this.config.config ? { config: this.config.config } : {}),\n\t\t\t\t},\n\t\t\t\t...(this.config.scheme ? { scheme: this.config.scheme } : {}),\n\t\t\t\t...(this.config.stages ? { stages: this.config.stages } : {}),\n\t\t\t\tdependencies: this.dependencies,\n\t\t\t\tprovides: [this.keys.scheme],\n\t\t\t},\n\t\t];\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAa,YAAb,MAAa,UAEb;CAOmB;CAEA;CARlB;;CAEA;CAEA,YACC,IACA,QAEA,eAAuD,CAAC,GACvD;EAHgB,KAAA,SAAA;EAEA,KAAA,eAAA;EAEjB,KAAK,KAAK,YAAY,EAAY;EAClC,KAAK,OAAO,EAAE,QAAQ,eAAe,KAAK,IAAI,cAAc,QAAQ,EAAE;CACvE;;;;;;;;;;;;;CAcA,UAAU,YAAqD;EAC9D,OAAO,IAAI,UAAiB,KAAK,IAA4B,KAAK,QAAQ,CACzE,GAAG,KAAK,cACR,GAAG,WAAW,IAAI,cAAc,CACjC,CAAC;CACF;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,SAAS,KAAK,OAAO,WAAW;GAChC,KAAK;IACJ,MAAM,KAAK,OAAO;IAClB,GAAI,KAAK,OAAO,OAAO,EAAE,MAAM,KAAK,OAAO,KAAK,IAAI,CAAC;IACrD,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC5D;GACA,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,GAAI,KAAK,OAAO,SAAS,EAAE,QAAQ,KAAK,OAAO,OAAO,IAAI,CAAC;GAC3D,cAAc,KAAK;GACnB,UAAU,CAAC,KAAK,KAAK,MAAM;EAC5B,CACD;CACD;AACD"}
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_expire = require("./expire-CieftS01.cjs");
2
+ const require_construct_interface = require("./construct-interface.cjs");
3
+ const require_readOnlyStorage = require("./readOnlyStorage-C7bCe-z5.cjs");
3
4
  let _geekmidas_manifest = require("@geekmidas/manifest");
4
5
  let _geekmidas_storage = require("@geekmidas/storage");
5
6
  //#region src/object-storage.ts
@@ -11,6 +12,23 @@ let _geekmidas_storage = require("@geekmidas/storage");
11
12
  * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the
12
13
  * injected URL with S3's values, local dev with MinIO's.
13
14
  */
15
+ /**
16
+ * A bucket method called on a client that holds no connection — a site's or
17
+ * a mobile app's plain edge, which holds where the bucket's links are signed
18
+ * and nothing that writes to it.
19
+ */
20
+ var ObjectStorageReadOnly = class extends Error {
21
+ id;
22
+ method;
23
+ key;
24
+ constructor(id, method, key) {
25
+ super(`'${id}' cannot ${method}(): ${key} is not in this process's environment. A site's or app's plain edge to a bucket holds only where its links are signed. A server half that uploads, presigns or reads depends on '${id}'.server instead — .dependsOn([${id.charAt(0).toLowerCase()}${id.slice(1)}.server]).`);
26
+ this.id = id;
27
+ this.method = method;
28
+ this.key = key;
29
+ this.name = "ObjectStorageReadOnly";
30
+ }
31
+ };
14
32
  var ObjectStorage = class {
15
33
  options;
16
34
  id;
@@ -28,7 +46,7 @@ var ObjectStorage = class {
28
46
  const canonical = (0, _geekmidas_manifest.canonicalId)(id);
29
47
  this.id = canonical;
30
48
  this.keys = { connectionString: (0, _geekmidas_manifest.providedKeyFor)(canonical, "objects", "connectionString") };
31
- this.expire = require_expire.expiryDays(canonical, options.expire);
49
+ this.expire = require_readOnlyStorage.expiryDays(canonical, options.expire);
32
50
  this.service = {
33
51
  serviceName: (0, _geekmidas_manifest.serviceKey)(canonical),
34
52
  register: (options) => this.connect(options)
@@ -44,20 +62,38 @@ var ObjectStorage = class {
44
62
  }];
45
63
  }
46
64
  /**
47
- * Builds the client from the connection string the adapter supplied.
65
+ * The bucket, its connection and the key pair that signs for it, for a
66
+ * site's or a mobile app's server half that uploads or presigns:
67
+ * `.dependsOn([documents.server])`.
68
+ *
69
+ * A frontend's plain `.dependsOn([documents])` holds where the bucket's
70
+ * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as
71
+ * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A
72
+ * backend's plain edge is already this one, and a backend cannot name it:
73
+ * it is a `Declarable`, not a `Consumable`.
74
+ */
75
+ get server() {
76
+ return require_construct_interface.serverHalfOf(this);
77
+ }
78
+ /**
79
+ * Builds the client from the connection string the adapter supplied —
80
+ * or, where none was, a client whose every method throws
81
+ * {@link ObjectStorageReadOnly}.
48
82
  *
49
83
  * Its scheme selects the driver, so this construct imports no provider
50
84
  * and an app that never touches S3 never resolves the AWS SDK. Whoever
51
85
  * assembles the application registers the drivers its target needs.
52
86
  */
53
87
  async connect({ envParser }) {
54
- const { connectionString } = envParser.create((get) => ({ connectionString: get(this.keys.connectionString).string() })).parse();
88
+ const { connectionString } = envParser.create((get) => ({ connectionString: get(this.keys.connectionString).string().optional() })).parse();
89
+ if (!connectionString) return require_readOnlyStorage.readOnlyStorage((method) => new ObjectStorageReadOnly(this.id, method, this.keys.connectionString));
55
90
  return (0, _geekmidas_storage.createStorageClient)(connectionString);
56
91
  }
57
92
  };
58
93
  //#endregion
59
- exports.ExpiryDaysInvalid = require_expire.ExpiryDaysInvalid;
60
- exports.ExpiryPrefixInvalid = require_expire.ExpiryPrefixInvalid;
94
+ exports.ExpiryDaysInvalid = require_readOnlyStorage.ExpiryDaysInvalid;
95
+ exports.ExpiryPrefixInvalid = require_readOnlyStorage.ExpiryPrefixInvalid;
61
96
  exports.ObjectStorage = ObjectStorage;
97
+ exports.ObjectStorageReadOnly = ObjectStorageReadOnly;
62
98
 
63
99
  //# sourceMappingURL=object-storage.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"object-storage.cjs","names":["canonicalId","providedKeyFor","expiryDays","serviceKey","createStorageClient"],"sources":["../src/object-storage.ts"],"sourcesContent":["/**\n * `ObjectStorage` — a declared bucket.\n *\n * Where the three packages meet: it implements the construct contract, derives\n * its env key through `@geekmidas/manifest`, and hands back a\n * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the\n * injected URL with S3's values, local dev with MinIO's.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport { createStorageClient, type StorageClient } from '@geekmidas/storage';\nimport type { Construct } from './construct-interface';\nimport { expiryDays, type ObjectExpiry } from './expire';\n\nexport {\n\tExpiryDaysInvalid,\n\tExpiryPrefixInvalid,\n\ttype ObjectExpiry,\n} from './expire';\n\nexport interface ObjectStorageOptions {\n\t/** Keep previous versions of an object. */\n\tversioned?: boolean;\n\t/**\n\t * Delete the objects under each prefix this many days after they were\n\t * written — `{ 'quotes/': { days: 30 } }`.\n\t */\n\texpire?: ObjectExpiry;\n}\n\nexport class ObjectStorage<TName extends string = string>\n\timplements Construct<TName, StorageClient>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, StorageClient>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * build publishes and the key the client reads cannot drift — the whole point\n\t * of the construct owning both faces.\n\t */\n\tprivate readonly keys: { connectionString: string };\n\n\t/** Checked once, at declaration: prefix → days. */\n\tprivate readonly expire: Record<string, number> | undefined;\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly options: ObjectStorageOptions = {},\n\t) {\n\t\t// Canonicalises, so `uploads` and `Uploads` are one construct rather than\n\t\t// two that collide. Throws on anything that cannot become a valid id.\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.keys = {\n\t\t\tconnectionString: providedKeyFor(\n\t\t\t\tcanonical,\n\t\t\t\t'objects',\n\t\t\t\t'connectionString',\n\t\t\t),\n\t\t};\n\t\tthis.expire = expiryDays(canonical, options.expire);\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'objects',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.keys.connectionString],\n\t\t\t\t...(this.options.versioned ? { versioned: true } : {}),\n\t\t\t\t...(this.expire ? { expire: this.expire } : {}),\n\t\t\t},\n\t\t];\n\t}\n\n\t/**\n\t * Builds the client from the connection string the adapter supplied.\n\t *\n\t * Its scheme selects the driver, so this construct imports no provider\n\t * and an app that never touches S3 never resolves the AWS SDK. Whoever\n\t * assembles the application registers the drivers its target needs.\n\t */\n\tprivate async connect({\n\t\tenvParser,\n\t}: ServiceRegisterOptions): Promise<StorageClient> {\n\t\tconst { connectionString } = envParser\n\t\t\t.create((get) => ({\n\t\t\t\tconnectionString: get(this.keys.connectionString).string(),\n\t\t\t}))\n\t\t\t.parse();\n\n\t\treturn createStorageClient(connectionString);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;AAqCA,IAAa,gBAAb,MAEA;CAgBmB;CAflB;CACA;;;;;;CAOA;;CAGA;CAEA,YACC,IACA,UAAiD,CAAC,GACjD;EADgB,KAAA,UAAA;EAIjB,MAAM,aAAA,GAAYA,oBAAAA,YAAAA,CAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,OAAO,EACX,mBAAA,GAAkBC,oBAAAA,eAAAA,CACjB,WACA,WACA,kBACD,EACD;EACA,KAAK,SAASC,eAAAA,WAAW,WAAW,QAAQ,MAAM;EAGlD,KAAK,UAAU;GACd,cAAA,GAAaC,oBAAAA,WAAAA,CAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,KAAK,gBAAgB;GACrC,GAAI,KAAK,QAAQ,YAAY,EAAE,WAAW,KAAK,IAAI,CAAC;GACpD,GAAI,KAAK,SAAS,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;EAC9C,CACD;CACD;;;;;;;;CASA,MAAc,QAAQ,EACrB,aACkD;EAClD,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,KAAK,KAAK,gBAAgB,CAAC,CAAC,OAAO,EAC1D,EAAE,CAAC,CACF,MAAM;EAER,QAAA,GAAOC,mBAAAA,oBAAAA,CAAoB,gBAAgB;CAC5C;AACD"}
1
+ {"version":3,"file":"object-storage.cjs","names":["canonicalId","providedKeyFor","expiryDays","serviceKey","serverHalfOf","readOnlyStorage","createStorageClient"],"sources":["../src/object-storage.ts"],"sourcesContent":["/**\n * `ObjectStorage` — a declared bucket.\n *\n * Where the three packages meet: it implements the construct contract, derives\n * its env key through `@geekmidas/manifest`, and hands back a\n * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the\n * injected URL with S3's values, local dev with MinIO's.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport { createStorageClient, type StorageClient } from '@geekmidas/storage';\nimport {\n\ttype Construct,\n\ttype ServerHalf,\n\tserverHalfOf,\n} from './construct-interface';\nimport { expiryDays, type ObjectExpiry } from './expire';\nimport { readOnlyStorage } from './readOnlyStorage';\n\nexport {\n\tExpiryDaysInvalid,\n\tExpiryPrefixInvalid,\n\ttype ObjectExpiry,\n} from './expire';\n\nexport interface ObjectStorageOptions {\n\t/** Keep previous versions of an object. */\n\tversioned?: boolean;\n\t/**\n\t * Delete the objects under each prefix this many days after they were\n\t * written — `{ 'quotes/': { days: 30 } }`.\n\t */\n\texpire?: ObjectExpiry;\n}\n\n/**\n * A bucket method called on a client that holds no connection — a site's or\n * a mobile app's plain edge, which holds where the bucket's links are signed\n * and nothing that writes to it.\n */\nexport class ObjectStorageReadOnly extends Error {\n\tconstructor(\n\t\treadonly id: string,\n\t\treadonly method: string,\n\t\treadonly key: string,\n\t) {\n\t\tsuper(\n\t\t\t`'${id}' cannot ${method}(): ${key} is not in this process's ` +\n\t\t\t\t`environment. A site's or app's plain edge to a bucket holds only ` +\n\t\t\t\t`where its links are signed. A server half that uploads, presigns ` +\n\t\t\t\t`or reads depends on '${id}'.server instead — ` +\n\t\t\t\t`.dependsOn([${id.charAt(0).toLowerCase()}${id.slice(1)}.server]).`,\n\t\t);\n\t\tthis.name = 'ObjectStorageReadOnly';\n\t}\n}\n\nexport class ObjectStorage<TName extends string = string>\n\timplements Construct<TName, StorageClient>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, StorageClient>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * build publishes and the key the client reads cannot drift — the whole point\n\t * of the construct owning both faces.\n\t */\n\tprivate readonly keys: { connectionString: string };\n\n\t/** Checked once, at declaration: prefix → days. */\n\tprivate readonly expire: Record<string, number> | undefined;\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly options: ObjectStorageOptions = {},\n\t) {\n\t\t// Canonicalises, so `uploads` and `Uploads` are one construct rather than\n\t\t// two that collide. Throws on anything that cannot become a valid id.\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.keys = {\n\t\t\tconnectionString: providedKeyFor(\n\t\t\t\tcanonical,\n\t\t\t\t'objects',\n\t\t\t\t'connectionString',\n\t\t\t),\n\t\t};\n\t\tthis.expire = expiryDays(canonical, options.expire);\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'objects',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.keys.connectionString],\n\t\t\t\t...(this.options.versioned ? { versioned: true } : {}),\n\t\t\t\t...(this.expire ? { expire: this.expire } : {}),\n\t\t\t},\n\t\t];\n\t}\n\n\t/**\n\t * The bucket, its connection and the key pair that signs for it, for a\n\t * site's or a mobile app's server half that uploads or presigns:\n\t * `.dependsOn([documents.server])`.\n\t *\n\t * A frontend's plain `.dependsOn([documents])` holds where the bucket's\n\t * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as\n\t * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A\n\t * backend's plain edge is already this one, and a backend cannot name it:\n\t * it is a `Declarable`, not a `Consumable`.\n\t */\n\tget server(): ServerHalf {\n\t\treturn serverHalfOf(this);\n\t}\n\n\t/**\n\t * Builds the client from the connection string the adapter supplied —\n\t * or, where none was, a client whose every method throws\n\t * {@link ObjectStorageReadOnly}.\n\t *\n\t * Its scheme selects the driver, so this construct imports no provider\n\t * and an app that never touches S3 never resolves the AWS SDK. Whoever\n\t * assembles the application registers the drivers its target needs.\n\t */\n\tprivate async connect({\n\t\tenvParser,\n\t}: ServiceRegisterOptions): Promise<StorageClient> {\n\t\tconst { connectionString } = envParser\n\t\t\t.create((get) => ({\n\t\t\t\tconnectionString: get(this.keys.connectionString).string().optional(),\n\t\t\t}))\n\t\t\t.parse();\n\n\t\t// A frontend's plain edge holds no connection, so its client has\n\t\t// nothing to call: every method says to depend on `.server`.\n\t\tif (!connectionString) {\n\t\t\treturn readOnlyStorage(\n\t\t\t\t(method) =>\n\t\t\t\t\tnew ObjectStorageReadOnly(\n\t\t\t\t\t\tthis.id,\n\t\t\t\t\t\tmethod,\n\t\t\t\t\t\tthis.keys.connectionString,\n\t\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn createStorageClient(connectionString);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA+CA,IAAa,wBAAb,cAA2C,MAAM;CAEtC;CACA;CACA;CAHV,YACC,IACA,QACA,KACC;EACD,MACC,IAAI,GAAG,WAAW,OAAO,MAAM,IAAI,mLAGV,GAAG,iCACZ,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,GAAG,MAAM,CAAC,EAAE,WAC1D;EAVS,KAAA,KAAA;EACA,KAAA,SAAA;EACA,KAAA,MAAA;EAST,KAAK,OAAO;CACb;AACD;AAEA,IAAa,gBAAb,MAEA;CAgBmB;CAflB;CACA;;;;;;CAOA;;CAGA;CAEA,YACC,IACA,UAAiD,CAAC,GACjD;EADgB,KAAA,UAAA;EAIjB,MAAM,aAAA,GAAYA,oBAAAA,YAAAA,CAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,OAAO,EACX,mBAAA,GAAkBC,oBAAAA,eAAAA,CACjB,WACA,WACA,kBACD,EACD;EACA,KAAK,SAASC,wBAAAA,WAAW,WAAW,QAAQ,MAAM;EAGlD,KAAK,UAAU;GACd,cAAA,GAAaC,oBAAAA,WAAAA,CAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,KAAK,gBAAgB;GACrC,GAAI,KAAK,QAAQ,YAAY,EAAE,WAAW,KAAK,IAAI,CAAC;GACpD,GAAI,KAAK,SAAS,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;EAC9C,CACD;CACD;;;;;;;;;;;;CAaA,IAAI,SAAqB;EACxB,OAAOC,4BAAAA,aAAa,IAAI;CACzB;;;;;;;;;;CAWA,MAAc,QAAQ,EACrB,aACkD;EAClD,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,KAAK,KAAK,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EACrE,EAAE,CAAC,CACF,MAAM;EAIR,IAAI,CAAC,kBACJ,OAAOC,wBAAAA,iBACL,WACA,IAAI,sBACH,KAAK,IACL,QACA,KAAK,KAAK,gBACX,CACF;EAGD,QAAA,GAAOC,mBAAAA,oBAAAA,CAAoB,gBAAgB;CAC5C;AACD"}
@@ -1,4 +1,4 @@
1
- import { n as Construct } from "./construct-interface-DhbaONW2.cjs";
1
+ import { l as ServerHalf, n as Construct } from "./construct-interface-CVoejIpo.cjs";
2
2
  import { n as ExpiryPrefixInvalid, r as ObjectExpiry, t as ExpiryDaysInvalid } from "./expire-C586zznE.cjs";
3
3
  import { Service } from "@geekmidas/services";
4
4
  import { ConstructName, Declaration } from "@geekmidas/manifest";
@@ -13,6 +13,17 @@ export interface ObjectStorageOptions {
13
13
  */
14
14
  expire?: ObjectExpiry;
15
15
  }
16
+ /**
17
+ * A bucket method called on a client that holds no connection — a site's or
18
+ * a mobile app's plain edge, which holds where the bucket's links are signed
19
+ * and nothing that writes to it.
20
+ */
21
+ export declare class ObjectStorageReadOnly extends Error {
22
+ readonly id: string;
23
+ readonly method: string;
24
+ readonly key: string;
25
+ constructor(id: string, method: string, key: string);
26
+ }
16
27
  export declare class ObjectStorage<TName extends string = string> implements Construct<TName, StorageClient> {
17
28
  private readonly options;
18
29
  readonly id: TName;
@@ -28,7 +39,21 @@ export declare class ObjectStorage<TName extends string = string> implements Con
28
39
  constructor(id: ConstructName<TName>, options?: ObjectStorageOptions);
29
40
  declare(): Declaration[];
30
41
  /**
31
- * Builds the client from the connection string the adapter supplied.
42
+ * The bucket, its connection and the key pair that signs for it, for a
43
+ * site's or a mobile app's server half that uploads or presigns:
44
+ * `.dependsOn([documents.server])`.
45
+ *
46
+ * A frontend's plain `.dependsOn([documents])` holds where the bucket's
47
+ * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as
48
+ * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A
49
+ * backend's plain edge is already this one, and a backend cannot name it:
50
+ * it is a `Declarable`, not a `Consumable`.
51
+ */
52
+ get server(): ServerHalf;
53
+ /**
54
+ * Builds the client from the connection string the adapter supplied —
55
+ * or, where none was, a client whose every method throws
56
+ * {@link ObjectStorageReadOnly}.
32
57
  *
33
58
  * Its scheme selects the driver, so this construct imports no provider
34
59
  * and an app that never touches S3 never resolves the AWS SDK. Whoever
@@ -1 +1 @@
1
- {"version":3,"file":"object-storage.d.cts","names":[],"sources":["../src/object-storage.ts"],"mappings":";;;;;;iBA2BiB;;EAEhB;;;;;EAKA,SAAS;;qBAGG,cAAc,0CACf,UAAU,OAAO;mBAiBV;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;;mBAO9B;;mBAGA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAuB3B,WAAW;;;;;;;;UAmBG"}
1
+ {"version":3,"file":"object-storage.d.cts","names":[],"sources":["../src/object-storage.ts"],"mappings":";;;;;;iBAgCiB;;EAEhB;;;;;EAKA,SAAS;;;;;;;qBAQG,8BAA8B;WAEhC;WACA;WACA;EAHV,YACU,YACA,gBACA;;qBAaE,cAAc,0CACf,UAAU,OAAO;mBAiBV;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;;mBAO9B;;mBAGA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAuB3B,WAAW;;;;;;;;;;;;MAuBP,UAAU;;;;;;;;;;UAaA"}
@@ -1,4 +1,4 @@
1
- import { n as Construct } from "./construct-interface-DxfkFxkl.mjs";
1
+ import { l as ServerHalf, n as Construct } from "./construct-interface-Nw5Dt9AC.mjs";
2
2
  import { n as ExpiryPrefixInvalid, r as ObjectExpiry, t as ExpiryDaysInvalid } from "./expire-C586zznE.mjs";
3
3
  import { ConstructName, Declaration } from "@geekmidas/manifest";
4
4
  import { StorageClient } from "@geekmidas/storage";
@@ -13,6 +13,17 @@ export interface ObjectStorageOptions {
13
13
  */
14
14
  expire?: ObjectExpiry;
15
15
  }
16
+ /**
17
+ * A bucket method called on a client that holds no connection — a site's or
18
+ * a mobile app's plain edge, which holds where the bucket's links are signed
19
+ * and nothing that writes to it.
20
+ */
21
+ export declare class ObjectStorageReadOnly extends Error {
22
+ readonly id: string;
23
+ readonly method: string;
24
+ readonly key: string;
25
+ constructor(id: string, method: string, key: string);
26
+ }
16
27
  export declare class ObjectStorage<TName extends string = string> implements Construct<TName, StorageClient> {
17
28
  private readonly options;
18
29
  readonly id: TName;
@@ -28,7 +39,21 @@ export declare class ObjectStorage<TName extends string = string> implements Con
28
39
  constructor(id: ConstructName<TName>, options?: ObjectStorageOptions);
29
40
  declare(): Declaration[];
30
41
  /**
31
- * Builds the client from the connection string the adapter supplied.
42
+ * The bucket, its connection and the key pair that signs for it, for a
43
+ * site's or a mobile app's server half that uploads or presigns:
44
+ * `.dependsOn([documents.server])`.
45
+ *
46
+ * A frontend's plain `.dependsOn([documents])` holds where the bucket's
47
+ * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as
48
+ * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A
49
+ * backend's plain edge is already this one, and a backend cannot name it:
50
+ * it is a `Declarable`, not a `Consumable`.
51
+ */
52
+ get server(): ServerHalf;
53
+ /**
54
+ * Builds the client from the connection string the adapter supplied —
55
+ * or, where none was, a client whose every method throws
56
+ * {@link ObjectStorageReadOnly}.
32
57
  *
33
58
  * Its scheme selects the driver, so this construct imports no provider
34
59
  * and an app that never touches S3 never resolves the AWS SDK. Whoever
@@ -1 +1 @@
1
- {"version":3,"file":"object-storage.d.mts","names":[],"sources":["../src/object-storage.ts"],"mappings":";;;;;;iBA2BiB;;EAEhB;;;;;EAKA,SAAS;;qBAGG,cAAc,0CACf,UAAU,OAAO;mBAiBV;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;;mBAO9B;;mBAGA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAuB3B,WAAW;;;;;;;;UAmBG"}
1
+ {"version":3,"file":"object-storage.d.mts","names":[],"sources":["../src/object-storage.ts"],"mappings":";;;;;;iBAgCiB;;EAEhB;;;;;EAKA,SAAS;;;;;;;qBAQG,8BAA8B;WAEhC;WACA;WACA;EAHV,YACU,YACA,gBACA;;qBAaE,cAAc,0CACf,UAAU,OAAO;mBAiBV;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;;mBAO9B;;mBAGA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAuB3B,WAAW;;;;;;;;;;;;MAuBP,UAAU;;;;;;;;;;UAaA"}
@@ -1,4 +1,5 @@
1
- import { n as ExpiryPrefixInvalid, r as expiryDays, t as ExpiryDaysInvalid } from "./expire-CpzUAfr9.mjs";
1
+ import { serverHalfOf } from "./construct-interface.mjs";
2
+ import { i as expiryDays, n as ExpiryDaysInvalid, r as ExpiryPrefixInvalid, t as readOnlyStorage } from "./readOnlyStorage-DMCeLuS2.mjs";
2
3
  import { canonicalId, providedKeyFor, serviceKey } from "@geekmidas/manifest";
3
4
  import { createStorageClient } from "@geekmidas/storage";
4
5
  //#region src/object-storage.ts
@@ -10,6 +11,23 @@ import { createStorageClient } from "@geekmidas/storage";
10
11
  * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the
11
12
  * injected URL with S3's values, local dev with MinIO's.
12
13
  */
14
+ /**
15
+ * A bucket method called on a client that holds no connection — a site's or
16
+ * a mobile app's plain edge, which holds where the bucket's links are signed
17
+ * and nothing that writes to it.
18
+ */
19
+ var ObjectStorageReadOnly = class extends Error {
20
+ id;
21
+ method;
22
+ key;
23
+ constructor(id, method, key) {
24
+ super(`'${id}' cannot ${method}(): ${key} is not in this process's environment. A site's or app's plain edge to a bucket holds only where its links are signed. A server half that uploads, presigns or reads depends on '${id}'.server instead — .dependsOn([${id.charAt(0).toLowerCase()}${id.slice(1)}.server]).`);
25
+ this.id = id;
26
+ this.method = method;
27
+ this.key = key;
28
+ this.name = "ObjectStorageReadOnly";
29
+ }
30
+ };
13
31
  var ObjectStorage = class {
14
32
  options;
15
33
  id;
@@ -43,18 +61,35 @@ var ObjectStorage = class {
43
61
  }];
44
62
  }
45
63
  /**
46
- * Builds the client from the connection string the adapter supplied.
64
+ * The bucket, its connection and the key pair that signs for it, for a
65
+ * site's or a mobile app's server half that uploads or presigns:
66
+ * `.dependsOn([documents.server])`.
67
+ *
68
+ * A frontend's plain `.dependsOn([documents])` holds where the bucket's
69
+ * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as
70
+ * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A
71
+ * backend's plain edge is already this one, and a backend cannot name it:
72
+ * it is a `Declarable`, not a `Consumable`.
73
+ */
74
+ get server() {
75
+ return serverHalfOf(this);
76
+ }
77
+ /**
78
+ * Builds the client from the connection string the adapter supplied —
79
+ * or, where none was, a client whose every method throws
80
+ * {@link ObjectStorageReadOnly}.
47
81
  *
48
82
  * Its scheme selects the driver, so this construct imports no provider
49
83
  * and an app that never touches S3 never resolves the AWS SDK. Whoever
50
84
  * assembles the application registers the drivers its target needs.
51
85
  */
52
86
  async connect({ envParser }) {
53
- const { connectionString } = envParser.create((get) => ({ connectionString: get(this.keys.connectionString).string() })).parse();
87
+ const { connectionString } = envParser.create((get) => ({ connectionString: get(this.keys.connectionString).string().optional() })).parse();
88
+ if (!connectionString) return readOnlyStorage((method) => new ObjectStorageReadOnly(this.id, method, this.keys.connectionString));
54
89
  return createStorageClient(connectionString);
55
90
  }
56
91
  };
57
92
  //#endregion
58
- export { ExpiryDaysInvalid, ExpiryPrefixInvalid, ObjectStorage };
93
+ export { ExpiryDaysInvalid, ExpiryPrefixInvalid, ObjectStorage, ObjectStorageReadOnly };
59
94
 
60
95
  //# sourceMappingURL=object-storage.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"object-storage.mjs","names":[],"sources":["../src/object-storage.ts"],"sourcesContent":["/**\n * `ObjectStorage` — a declared bucket.\n *\n * Where the three packages meet: it implements the construct contract, derives\n * its env key through `@geekmidas/manifest`, and hands back a\n * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the\n * injected URL with S3's values, local dev with MinIO's.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport { createStorageClient, type StorageClient } from '@geekmidas/storage';\nimport type { Construct } from './construct-interface';\nimport { expiryDays, type ObjectExpiry } from './expire';\n\nexport {\n\tExpiryDaysInvalid,\n\tExpiryPrefixInvalid,\n\ttype ObjectExpiry,\n} from './expire';\n\nexport interface ObjectStorageOptions {\n\t/** Keep previous versions of an object. */\n\tversioned?: boolean;\n\t/**\n\t * Delete the objects under each prefix this many days after they were\n\t * written — `{ 'quotes/': { days: 30 } }`.\n\t */\n\texpire?: ObjectExpiry;\n}\n\nexport class ObjectStorage<TName extends string = string>\n\timplements Construct<TName, StorageClient>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, StorageClient>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * build publishes and the key the client reads cannot drift — the whole point\n\t * of the construct owning both faces.\n\t */\n\tprivate readonly keys: { connectionString: string };\n\n\t/** Checked once, at declaration: prefix → days. */\n\tprivate readonly expire: Record<string, number> | undefined;\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly options: ObjectStorageOptions = {},\n\t) {\n\t\t// Canonicalises, so `uploads` and `Uploads` are one construct rather than\n\t\t// two that collide. Throws on anything that cannot become a valid id.\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.keys = {\n\t\t\tconnectionString: providedKeyFor(\n\t\t\t\tcanonical,\n\t\t\t\t'objects',\n\t\t\t\t'connectionString',\n\t\t\t),\n\t\t};\n\t\tthis.expire = expiryDays(canonical, options.expire);\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'objects',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.keys.connectionString],\n\t\t\t\t...(this.options.versioned ? { versioned: true } : {}),\n\t\t\t\t...(this.expire ? { expire: this.expire } : {}),\n\t\t\t},\n\t\t];\n\t}\n\n\t/**\n\t * Builds the client from the connection string the adapter supplied.\n\t *\n\t * Its scheme selects the driver, so this construct imports no provider\n\t * and an app that never touches S3 never resolves the AWS SDK. Whoever\n\t * assembles the application registers the drivers its target needs.\n\t */\n\tprivate async connect({\n\t\tenvParser,\n\t}: ServiceRegisterOptions): Promise<StorageClient> {\n\t\tconst { connectionString } = envParser\n\t\t\t.create((get) => ({\n\t\t\t\tconnectionString: get(this.keys.connectionString).string(),\n\t\t\t}))\n\t\t\t.parse();\n\n\t\treturn createStorageClient(connectionString);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;AAqCA,IAAa,gBAAb,MAEA;CAgBmB;CAflB;CACA;;;;;;CAOA;;CAGA;CAEA,YACC,IACA,UAAiD,CAAC,GACjD;EADgB,KAAA,UAAA;EAIjB,MAAM,YAAY,YAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,OAAO,EACX,kBAAkB,eACjB,WACA,WACA,kBACD,EACD;EACA,KAAK,SAAS,WAAW,WAAW,QAAQ,MAAM;EAGlD,KAAK,UAAU;GACd,aAAa,WAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,KAAK,gBAAgB;GACrC,GAAI,KAAK,QAAQ,YAAY,EAAE,WAAW,KAAK,IAAI,CAAC;GACpD,GAAI,KAAK,SAAS,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;EAC9C,CACD;CACD;;;;;;;;CASA,MAAc,QAAQ,EACrB,aACkD;EAClD,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,KAAK,KAAK,gBAAgB,CAAC,CAAC,OAAO,EAC1D,EAAE,CAAC,CACF,MAAM;EAER,OAAO,oBAAoB,gBAAgB;CAC5C;AACD"}
1
+ {"version":3,"file":"object-storage.mjs","names":[],"sources":["../src/object-storage.ts"],"sourcesContent":["/**\n * `ObjectStorage` — a declared bucket.\n *\n * Where the three packages meet: it implements the construct contract, derives\n * its env key through `@geekmidas/manifest`, and hands back a\n * `@geekmidas/storage` client. It names no cloud — `--target=aws` fills the\n * injected URL with S3's values, local dev with MinIO's.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport { createStorageClient, type StorageClient } from '@geekmidas/storage';\nimport {\n\ttype Construct,\n\ttype ServerHalf,\n\tserverHalfOf,\n} from './construct-interface';\nimport { expiryDays, type ObjectExpiry } from './expire';\nimport { readOnlyStorage } from './readOnlyStorage';\n\nexport {\n\tExpiryDaysInvalid,\n\tExpiryPrefixInvalid,\n\ttype ObjectExpiry,\n} from './expire';\n\nexport interface ObjectStorageOptions {\n\t/** Keep previous versions of an object. */\n\tversioned?: boolean;\n\t/**\n\t * Delete the objects under each prefix this many days after they were\n\t * written — `{ 'quotes/': { days: 30 } }`.\n\t */\n\texpire?: ObjectExpiry;\n}\n\n/**\n * A bucket method called on a client that holds no connection — a site's or\n * a mobile app's plain edge, which holds where the bucket's links are signed\n * and nothing that writes to it.\n */\nexport class ObjectStorageReadOnly extends Error {\n\tconstructor(\n\t\treadonly id: string,\n\t\treadonly method: string,\n\t\treadonly key: string,\n\t) {\n\t\tsuper(\n\t\t\t`'${id}' cannot ${method}(): ${key} is not in this process's ` +\n\t\t\t\t`environment. A site's or app's plain edge to a bucket holds only ` +\n\t\t\t\t`where its links are signed. A server half that uploads, presigns ` +\n\t\t\t\t`or reads depends on '${id}'.server instead — ` +\n\t\t\t\t`.dependsOn([${id.charAt(0).toLowerCase()}${id.slice(1)}.server]).`,\n\t\t);\n\t\tthis.name = 'ObjectStorageReadOnly';\n\t}\n}\n\nexport class ObjectStorage<TName extends string = string>\n\timplements Construct<TName, StorageClient>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, StorageClient>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * build publishes and the key the client reads cannot drift — the whole point\n\t * of the construct owning both faces.\n\t */\n\tprivate readonly keys: { connectionString: string };\n\n\t/** Checked once, at declaration: prefix → days. */\n\tprivate readonly expire: Record<string, number> | undefined;\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly options: ObjectStorageOptions = {},\n\t) {\n\t\t// Canonicalises, so `uploads` and `Uploads` are one construct rather than\n\t\t// two that collide. Throws on anything that cannot become a valid id.\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.keys = {\n\t\t\tconnectionString: providedKeyFor(\n\t\t\t\tcanonical,\n\t\t\t\t'objects',\n\t\t\t\t'connectionString',\n\t\t\t),\n\t\t};\n\t\tthis.expire = expiryDays(canonical, options.expire);\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'objects',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.keys.connectionString],\n\t\t\t\t...(this.options.versioned ? { versioned: true } : {}),\n\t\t\t\t...(this.expire ? { expire: this.expire } : {}),\n\t\t\t},\n\t\t];\n\t}\n\n\t/**\n\t * The bucket, its connection and the key pair that signs for it, for a\n\t * site's or a mobile app's server half that uploads or presigns:\n\t * `.dependsOn([documents.server])`.\n\t *\n\t * A frontend's plain `.dependsOn([documents])` holds where the bucket's\n\t * links are signed (`DOCUMENTS_SIGNED_ORIGIN`, inlined as\n\t * `<PREFIX>DOCUMENTS_SIGNED_ORIGIN`) and nothing that writes to it. A\n\t * backend's plain edge is already this one, and a backend cannot name it:\n\t * it is a `Declarable`, not a `Consumable`.\n\t */\n\tget server(): ServerHalf {\n\t\treturn serverHalfOf(this);\n\t}\n\n\t/**\n\t * Builds the client from the connection string the adapter supplied —\n\t * or, where none was, a client whose every method throws\n\t * {@link ObjectStorageReadOnly}.\n\t *\n\t * Its scheme selects the driver, so this construct imports no provider\n\t * and an app that never touches S3 never resolves the AWS SDK. Whoever\n\t * assembles the application registers the drivers its target needs.\n\t */\n\tprivate async connect({\n\t\tenvParser,\n\t}: ServiceRegisterOptions): Promise<StorageClient> {\n\t\tconst { connectionString } = envParser\n\t\t\t.create((get) => ({\n\t\t\t\tconnectionString: get(this.keys.connectionString).string().optional(),\n\t\t\t}))\n\t\t\t.parse();\n\n\t\t// A frontend's plain edge holds no connection, so its client has\n\t\t// nothing to call: every method says to depend on `.server`.\n\t\tif (!connectionString) {\n\t\t\treturn readOnlyStorage(\n\t\t\t\t(method) =>\n\t\t\t\t\tnew ObjectStorageReadOnly(\n\t\t\t\t\t\tthis.id,\n\t\t\t\t\t\tmethod,\n\t\t\t\t\t\tthis.keys.connectionString,\n\t\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn createStorageClient(connectionString);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA+CA,IAAa,wBAAb,cAA2C,MAAM;CAEtC;CACA;CACA;CAHV,YACC,IACA,QACA,KACC;EACD,MACC,IAAI,GAAG,WAAW,OAAO,MAAM,IAAI,mLAGV,GAAG,iCACZ,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,GAAG,MAAM,CAAC,EAAE,WAC1D;EAVS,KAAA,KAAA;EACA,KAAA,SAAA;EACA,KAAA,MAAA;EAST,KAAK,OAAO;CACb;AACD;AAEA,IAAa,gBAAb,MAEA;CAgBmB;CAflB;CACA;;;;;;CAOA;;CAGA;CAEA,YACC,IACA,UAAiD,CAAC,GACjD;EADgB,KAAA,UAAA;EAIjB,MAAM,YAAY,YAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,OAAO,EACX,kBAAkB,eACjB,WACA,WACA,kBACD,EACD;EACA,KAAK,SAAS,WAAW,WAAW,QAAQ,MAAM;EAGlD,KAAK,UAAU;GACd,aAAa,WAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,KAAK,gBAAgB;GACrC,GAAI,KAAK,QAAQ,YAAY,EAAE,WAAW,KAAK,IAAI,CAAC;GACpD,GAAI,KAAK,SAAS,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;EAC9C,CACD;CACD;;;;;;;;;;;;CAaA,IAAI,SAAqB;EACxB,OAAO,aAAa,IAAI;CACzB;;;;;;;;;;CAWA,MAAc,QAAQ,EACrB,aACkD;EAClD,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,KAAK,KAAK,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EACrE,EAAE,CAAC,CACF,MAAM;EAIR,IAAI,CAAC,kBACJ,OAAO,iBACL,WACA,IAAI,sBACH,KAAK,IACL,QACA,KAAK,KAAK,gBACX,CACF;EAGD,OAAO,oBAAoB,gBAAgB;CAC5C;AACD"}
@@ -1,4 +1,4 @@
1
- import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-CeEZ2vCx.cjs";
1
+ import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-ClD7tmEe.cjs";
2
2
  import { EnvironmentParser } from "@geekmidas/envkit";
3
3
  import { ServiceDiscovery } from "@geekmidas/services";
4
4
  //#region src/processors/AWSLambdaProcessor.d.ts
@@ -1,4 +1,4 @@
1
- import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-CwIlm75W.mjs";
1
+ import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-CdLwJK4k.mjs";
2
2
  import { ServiceDiscovery } from "@geekmidas/services";
3
3
  import { EnvironmentParser } from "@geekmidas/envkit";
4
4
  //#region src/processors/AWSLambdaProcessor.d.ts
@@ -1,3 +1,3 @@
1
1
  import { i as QueueMessage, n as QueueContext, r as QueueHandler, t as Queue } from "../Queue-C4rijiM7.cjs";
2
- import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-CmB1vOgn.cjs";
2
+ import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-Dacm9qAv.cjs";
3
3
  export { Queue, type QueueContext, type QueueHandler, type QueueMessage, QueueNeedsMessage, QueueNeedsName };
@@ -1,3 +1,3 @@
1
1
  import { i as QueueMessage, n as QueueContext, r as QueueHandler, t as Queue } from "../Queue-B8HGg439.mjs";
2
- import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-CUERv8jt.mjs";
2
+ import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-CjULiiDN.mjs";
3
3
  export { Queue, type QueueContext, type QueueHandler, type QueueMessage, QueueNeedsMessage, QueueNeedsName };
@@ -1,4 +1,4 @@
1
- import { n as Construct } from "./construct-interface-DhbaONW2.cjs";
1
+ import { n as Construct } from "./construct-interface-CVoejIpo.cjs";
2
2
  import { Service } from "@geekmidas/services";
3
3
  import { ConstructName, Declaration, SecretFormat } from "@geekmidas/manifest";
4
4
  //#region src/random-password.d.ts
@@ -1,4 +1,4 @@
1
- import { n as Construct } from "./construct-interface-DxfkFxkl.mjs";
1
+ import { n as Construct } from "./construct-interface-Nw5Dt9AC.mjs";
2
2
  import { ConstructName, Declaration, SecretFormat } from "@geekmidas/manifest";
3
3
  import { Service } from "@geekmidas/services";
4
4
  //#region src/random-password.d.ts