@junobuild/config 0.2.1 → 0.2.2

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.
package/README.md CHANGED
@@ -86,11 +86,11 @@ Configuration options for [Juno] CLI.
86
86
 
87
87
  #### :gear: EmulatorConfigSchema
88
88
 
89
- | Constant | Type |
90
- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
91
- | `EmulatorConfigSchema` | `ZodUnion<readonly [ZodObject<{ runner: ZodObject<{ type: ZodEnum<{ docker: "docker"; }>; image: ZodOptional<ZodString>; name: ZodOptional<ZodString>; volume: ZodOptional<...>; target: ZodOptional<...>; }, $strict>; skylab: ZodObject<...>; }, $strict>, ZodObject<...>, ZodObject<...>]>` |
89
+ | Constant | Type |
90
+ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
91
+ | `EmulatorConfigSchema` | `ZodUnion<readonly [ZodObject<{ runner: ZodOptional<ZodObject<{ type: ZodEnum<{ docker: "docker"; }>; image: ZodOptional<ZodString>; name: ZodOptional<ZodString>; volume: ZodOptional<...>; target: ZodOptional<...>; }, $strict>>; skylab: ZodObject<...>; }, $strict>, ZodObject<...>, ZodObject<...>]>` |
92
92
 
93
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L186)
93
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L145)
94
94
 
95
95
  #### :gear: JunoConfigModeSchema
96
96
 
@@ -372,7 +372,6 @@ Configuration for the Skylab emulator.
372
372
  | Property | Type | Description |
373
373
  | -------- | ------------------------------------------------------- | -------------------------------------- |
374
374
  | `ports` | `(EmulatorPorts and { console: number; }) or undefined` | Ports exposed by the Skylab container. |
375
- | `config` | `string` | Path to the Juno config file. |
376
375
 
377
376
  #### :gear: EmulatorConsole
378
377
 
@@ -386,10 +385,9 @@ Configuration for the Console emulator.
386
385
 
387
386
  Configuration for the Satellite emulator.
388
387
 
389
- | Property | Type | Description |
390
- | -------- | ---------------------------- | ------------------------------------------------------------ |
391
- | `ports` | `EmulatorPorts or undefined` | Ports exposed by the Satellite container. |
392
- | `config` | `string` | Path to the dev config file to customize Satellite behavior. |
388
+ | Property | Type | Description |
389
+ | -------- | ---------------------------- | ----------------------------------------- |
390
+ | `ports` | `EmulatorPorts or undefined` | Ports exposed by the Satellite container. |
393
391
 
394
392
  #### :gear: EmulatorRunner
395
393
 
@@ -620,8 +618,6 @@ Represents the development configuration for Juno.
620
618
 
621
619
  ### :cocktail: Types
622
620
 
623
- - [JunoConfigFile](#gear-junoconfigfile)
624
- - [JunoDevConfigFile](#gear-junodevconfigfile)
625
621
  - [EmulatorConfig](#gear-emulatorconfig)
626
622
  - [JunoConfigMode](#gear-junoconfigmode)
627
623
  - [OrbiterConfig](#gear-orbiterconfig)
@@ -634,37 +630,15 @@ Represents the development configuration for Juno.
634
630
  - [JunoDevConfigFn](#gear-junodevconfigfn)
635
631
  - [JunoDevConfigFnOrObject](#gear-junodevconfigfnorobject)
636
632
 
637
- #### :gear: JunoConfigFile
638
-
639
- Represents a Juno configuration file path.
640
- Must end in `.mjs`, `.ts`, `.js`, or `.json`.
641
-
642
- | Type | Type |
643
- | ---------------- | ---- |
644
- | `JunoConfigFile` | |
645
-
646
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L57)
647
-
648
- #### :gear: JunoDevConfigFile
649
-
650
- Represents a Juno development config file path.
651
- Must end in `.mjs`, `.ts`, `.js`, or `.json`.
652
-
653
- | Type | Type |
654
- | ------------------- | ---- |
655
- | `JunoDevConfigFile` | |
656
-
657
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L68)
658
-
659
633
  #### :gear: EmulatorConfig
660
634
 
661
635
  The configuration for running the Juno emulator.
662
636
 
663
637
  | Type | Type |
664
- | ---------------- | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
665
- | `EmulatorConfig` | ` | {runner: EmulatorRunner; skylab: EmulatorSkylab} or {runner: EmulatorRunner; console: EmulatorConsole} or {runner: EmulatorRunner; satellite: EmulatorSatellite}` |
638
+ | ---------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
639
+ | `EmulatorConfig` | ` | {runner?: EmulatorRunner; skylab: EmulatorSkylab} or {runner?: EmulatorRunner; console: EmulatorConsole} or {runner?: EmulatorRunner; satellite: EmulatorSatellite}` |
666
640
 
667
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L204)
641
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/mainnet/configs/emulator.config.ts#L163)
668
642
 
669
643
  #### :gear: JunoConfigMode
670
644
 
@@ -1,2 +1,2 @@
1
- function go(u){return u}import{PrincipalTextSchema as v}from"@dfinity/zod-schemas";import*as r from"zod/v4";import*as o from"zod/v4";import*as C from"zod/v4";var x=C.object({heap:C.bigint().optional(),stable:C.bigint().optional()}).strict();var d=o.string(),N=o.object({source:d,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),U=o.object({source:d,destination:o.string()}).strict(),K=o.object({source:d,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),S=o.object({headers:o.array(N).optional(),rewrites:o.array(U).optional(),redirects:o.array(K).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:x.optional()});import*as t from"zod/v4";import*as h from"zod/v4";var O=h.enum(["identity","gzip","compress","deflate","br"]);var J=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),O])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as p from"zod/v4";var g=p.union([p.literal("production"),p.string()]),yo=p.object({mode:g});var V=r.object({id:v}),B=r.object({ids:r.record(g,v)}),j=r.object({...J.shape,storage:S.optional()}),Do=r.union([r.object({...V.shape,...j.shape}).strict(),r.object({...B.shape,...j.shape}).strict()]);import*as a from"zod/v4";var H=a.enum(["controllers","public"]),D=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:H.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as c from"zod/v4";var $=c.record(c.string(),c.string()),Ao=c.object({name:c.string(),version:c.string(),dependencies:$.optional()});var Po="@junobuild/satellite",Io="@junobuild/sputnik",Fo="@junobuild/mission-control",Ro="@junobuild/orbiter";function _o(u){return u}import{PrincipalTextSchema as Q}from"@dfinity/zod-schemas";import*as i from"zod/v4";import*as n from"zod/v4";var M=n.enum(["public","private","managed","controllers"]),q=n.enum(["heap","stable"]),Lo=n.enum(["db","storage"]),z=n.strictObject({collection:n.string(),read:M,write:M,memory:q,createdAt:n.bigint().optional(),updatedAt:n.bigint().optional(),version:n.bigint().optional(),maxSize:n.number().optional(),maxChangesPerUser:n.number().optional(),maxCapacity:n.number().optional(),mutablePermissions:n.boolean(),maxTokens:n.number().optional()});var W=z.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),X=z.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Y=i.strictObject({datastore:i.array(W).optional(),storage:i.array(X).optional()}),Z=i.strictObject({id:Q,scope:i.enum(["write","admin","submit"])}),oo=i.strictObject({collections:Y,controllers:i.array(Z).optional()}),Ko=i.strictObject({satellite:oo});function Bo(u){return u}import*as l from"zod/v4";var E=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod/v4";var eo=m.strictObject({derivationOrigin:m.url().optional(),externalAlternativeOrigins:m.array(m.url()).optional()}),A=m.strictObject({internetIdentity:eo.optional()});import*as T from"zod/v4";var P=T.strictObject({maxMemorySize:x.optional()});import*as e from"zod/v4";var y=e.strictObject({server:e.number().optional(),admin:e.number().optional()}),to=e.strictObject({console:e.number().optional()}),I=e.string().regex(/\.(mjs|ts|js|json)$/i,{message:"Must be a .mjs, .ts, .js, or .json file"}),no=I,io=I,ro=e.strictObject({ports:y.extend(to.shape).optional(),config:no}),ao=e.strictObject({ports:y.optional()}),so=e.strictObject({ports:y.optional(),config:io}),b=e.strictObject({type:e.enum(["docker"]),image:e.string().optional(),name:e.string().optional(),volume:e.string().optional(),target:e.string().optional()}),F=e.union([e.strictObject({runner:b,skylab:ro}),e.strictObject({runner:b,console:ao}),e.strictObject({runner:b,satellite:so})]);import{PrincipalTextSchema as R}from"@dfinity/zod-schemas";import*as f from"zod/v4";var co=f.object({id:R}),po=f.object({ids:f.record(g,R)}),w=f.union([co.strict(),po.strict()]);import{PrincipalTextSchema as k}from"@dfinity/zod-schemas";import*as s from"zod/v4";var lo=s.object({id:k}),mo=s.object({ids:s.record(g,k)}),_=s.object({storage:S.optional(),datastore:P.optional(),authentication:A.optional(),assertions:E.optional(),settings:D.optional()}),L=s.union([s.object({...lo.shape,..._.shape}).strict(),s.object({...mo.shape,..._.shape}).strict()]);import*as G from"zod/v4";var ge=G.strictObject({satellite:L,orbiter:w.optional(),emulator:F.optional()});export{eo as AuthenticationConfigInternetIdentitySchema,A as AuthenticationConfigSchema,J as CliConfigSchema,V as ConsoleIdSchema,B as ConsoleIdsSchema,P as DatastoreConfigSchema,F as EmulatorConfigSchema,O as EncodingTypeSchema,Fo as JUNO_PACKAGE_MISSION_CONTROL_ID,Ro as JUNO_PACKAGE_ORBITER_ID,Po as JUNO_PACKAGE_SATELLITE_ID,Io as JUNO_PACKAGE_SPUTNIK_ID,yo as JunoConfigEnvSchema,g as JunoConfigModeSchema,ge as JunoConfigSchema,Do as JunoConsoleConfigSchema,Ko as JunoDevConfigSchema,$ as JunoPackageDependenciesSchema,Ao as JunoPackageSchema,x as MaxMemorySizeConfigSchema,q as MemoryTextSchema,H as ModuleLogVisibilitySchema,D as ModuleSettingsSchema,w as OrbiterConfigSchema,co as OrbiterIdSchema,po as OrbiterIdsSchema,M as PermissionTextSchema,z as RuleSchema,Lo as RulesTypeSchema,E as SatelliteAssertionsSchema,L as SatelliteConfigOptionsSchema,Y as SatelliteDevCollectionsSchema,oo as SatelliteDevConfigSchema,Z as SatelliteDevControllerSchema,W as SatelliteDevDataStoreCollectionSchema,X as SatelliteDevStorageCollectionSchema,lo as SatelliteIdSchema,mo as SatelliteIdsSchema,N as StorageConfigHeaderSchema,K as StorageConfigRedirectSchema,U as StorageConfigRewriteSchema,S as StorageConfigSchema,d as StorageConfigSourceGlobSchema,Bo as defineConfig,go as defineConsoleConfig,_o as defineDevConfig};
1
+ function so(u){return u}import{PrincipalTextSchema as v}from"@dfinity/zod-schemas";import*as r from"zod/v4";import*as o from"zod/v4";import*as C from"zod/v4";var x=C.object({heap:C.bigint().optional(),stable:C.bigint().optional()}).strict();var d=o.string(),G=o.object({source:d,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),N=o.object({source:d,destination:o.string()}).strict(),U=o.object({source:d,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),S=o.object({headers:o.array(G).optional(),rewrites:o.array(N).optional(),redirects:o.array(U).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:x.optional()});import*as t from"zod/v4";import*as h from"zod/v4";var O=h.enum(["identity","gzip","compress","deflate","br"]);var J=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),O])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as s from"zod/v4";var g=s.union([s.literal("production"),s.string()]),So=s.object({mode:g});var K=r.object({id:v}),V=r.object({ids:r.record(g,v)}),j=r.object({...J.shape,storage:S.optional()}),Jo=r.union([r.object({...K.shape,...j.shape}).strict(),r.object({...V.shape,...j.shape}).strict()]);import*as a from"zod/v4";var B=a.enum(["controllers","public"]),D=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:B.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as p from"zod/v4";var H=p.record(p.string(),p.string()),Do=p.object({name:p.string(),version:p.string(),dependencies:H.optional()});var Mo="@junobuild/satellite",Ao="@junobuild/sputnik",To="@junobuild/mission-control",Po="@junobuild/orbiter";function Fo(u){return u}import{PrincipalTextSchema as Q}from"@dfinity/zod-schemas";import*as i from"zod/v4";import*as n from"zod/v4";var E=n.enum(["public","private","managed","controllers"]),q=n.enum(["heap","stable"]),wo=n.enum(["db","storage"]),z=n.strictObject({collection:n.string(),read:E,write:E,memory:q,createdAt:n.bigint().optional(),updatedAt:n.bigint().optional(),version:n.bigint().optional(),maxSize:n.number().optional(),maxChangesPerUser:n.number().optional(),maxCapacity:n.number().optional(),mutablePermissions:n.boolean(),maxTokens:n.number().optional()});var W=z.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),X=z.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Y=i.strictObject({datastore:i.array(W).optional(),storage:i.array(X).optional()}),Z=i.strictObject({id:Q,scope:i.enum(["write","admin","submit"])}),$=i.strictObject({collections:Y,controllers:i.array(Z).optional()}),Go=i.strictObject({satellite:$});function Uo(u){return u}import*as l from"zod/v4";var M=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod/v4";var oo=m.strictObject({derivationOrigin:m.url().optional(),externalAlternativeOrigins:m.array(m.url()).optional()}),A=m.strictObject({internetIdentity:oo.optional()});import*as T from"zod/v4";var P=T.strictObject({maxMemorySize:x.optional()});import*as e from"zod/v4";var y=e.strictObject({server:e.number().optional(),admin:e.number().optional()}),eo=e.strictObject({console:e.number().optional()}),to=e.strictObject({ports:y.extend(eo.shape).optional()}),no=e.strictObject({ports:y.optional()}),io=e.strictObject({ports:y.optional()}),b=e.strictObject({type:e.enum(["docker"]),image:e.string().optional(),name:e.string().optional(),volume:e.string().optional(),target:e.string().optional()}),I=e.union([e.strictObject({runner:b.optional(),skylab:to}),e.strictObject({runner:b.optional(),console:no}),e.strictObject({runner:b.optional(),satellite:io})]);import{PrincipalTextSchema as F}from"@dfinity/zod-schemas";import*as f from"zod/v4";var ro=f.object({id:F}),ao=f.object({ids:f.record(g,F)}),R=f.union([ro.strict(),ao.strict()]);import{PrincipalTextSchema as _}from"@dfinity/zod-schemas";import*as c from"zod/v4";var co=c.object({id:_}),po=c.object({ids:c.record(g,_)}),w=c.object({storage:S.optional(),datastore:P.optional(),authentication:A.optional(),assertions:M.optional(),settings:D.optional()}),k=c.union([c.object({...co.shape,...w.shape}).strict(),c.object({...po.shape,...w.shape}).strict()]);import*as L from"zod/v4";var se=L.strictObject({satellite:k,orbiter:R.optional(),emulator:I.optional()});export{oo as AuthenticationConfigInternetIdentitySchema,A as AuthenticationConfigSchema,J as CliConfigSchema,K as ConsoleIdSchema,V as ConsoleIdsSchema,P as DatastoreConfigSchema,I as EmulatorConfigSchema,O as EncodingTypeSchema,To as JUNO_PACKAGE_MISSION_CONTROL_ID,Po as JUNO_PACKAGE_ORBITER_ID,Mo as JUNO_PACKAGE_SATELLITE_ID,Ao as JUNO_PACKAGE_SPUTNIK_ID,So as JunoConfigEnvSchema,g as JunoConfigModeSchema,se as JunoConfigSchema,Jo as JunoConsoleConfigSchema,Go as JunoDevConfigSchema,H as JunoPackageDependenciesSchema,Do as JunoPackageSchema,x as MaxMemorySizeConfigSchema,q as MemoryTextSchema,B as ModuleLogVisibilitySchema,D as ModuleSettingsSchema,R as OrbiterConfigSchema,ro as OrbiterIdSchema,ao as OrbiterIdsSchema,E as PermissionTextSchema,z as RuleSchema,wo as RulesTypeSchema,M as SatelliteAssertionsSchema,k as SatelliteConfigOptionsSchema,Y as SatelliteDevCollectionsSchema,$ as SatelliteDevConfigSchema,Z as SatelliteDevControllerSchema,W as SatelliteDevDataStoreCollectionSchema,X as SatelliteDevStorageCollectionSchema,co as SatelliteIdSchema,po as SatelliteIdsSchema,G as StorageConfigHeaderSchema,U as StorageConfigRedirectSchema,N as StorageConfigRewriteSchema,S as StorageConfigSchema,d as StorageConfigSourceGlobSchema,Uo as defineConfig,so as defineConsoleConfig,Fo as defineDevConfig};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/console/config.ts", "../../src/console/console.config.ts", "../../src/shared/storage.config.ts", "../../src/shared/feature.config.ts", "../../src/types/cli.config.ts", "../../src/types/encoding.ts", "../../src/types/juno.env.ts", "../../src/module/module.settings.ts", "../../src/pkg/juno.package.ts", "../../src/pkg/juno.package.constants.ts", "../../src/satellite/dev/config.ts", "../../src/satellite/dev/juno.dev.config.ts", "../../src/satellite/types/rules.ts", "../../src/satellite/mainnet/config.ts", "../../src/satellite/mainnet/configs/assertions.config.ts", "../../src/satellite/mainnet/configs/authentication.config.ts", "../../src/satellite/mainnet/configs/datastore.config.ts", "../../src/satellite/mainnet/configs/emulator.config.ts", "../../src/satellite/mainnet/configs/orbiter.config.ts", "../../src/satellite/mainnet/configs/satellite.config.ts", "../../src/satellite/mainnet/juno.config.ts"],
4
- "sourcesContent": ["import type {JunoConfigEnv} from '../types/juno.env';\nimport type {JunoConsoleConfig} from './console.config';\n\nexport type JunoConsoleConfigFn = (config: JunoConfigEnv) => JunoConsoleConfig;\n\nexport type JunoConsoleConfigFnOrObject = JunoConsoleConfig | JunoConsoleConfigFn;\n\nexport function defineConsoleConfig(config: JunoConsoleConfig): JunoConsoleConfig;\nexport function defineConsoleConfig(config: JunoConsoleConfigFn): JunoConsoleConfigFn;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type StorageConfig, StorageConfigSchema} from '../shared/storage.config';\nimport {type CliConfig, CliConfigSchema} from '../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../types/juno.env';\nimport type {Either} from '../types/utility.types';\n\n/**\n * @see ConsoleId\n */\nexport const ConsoleIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a console.\n * @interface ConsoleId\n */\nexport interface ConsoleId {\n /**\n * The unique identifier (ID) of the console.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see ConsoleIds\n */\nexport const ConsoleIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of console identifiers to different configurations based on the mode of the application.\n * @interface ConsoleIds\n */\nexport interface ConsoleIds {\n /**\n * A mapping of console identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different console IDs, such as production, staging, etc.\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst JunoConsoleConfigBaseSchema = z.object({\n ...CliConfigSchema.shape,\n storage: StorageConfigSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const JunoConsoleConfigSchema = z.union([\n z\n .object({\n ...ConsoleIdSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...ConsoleIdsSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * Represents the configuration for a console.\n * @typedef {Either<ConsoleId, ConsoleIds>} ConsoleConfig\n */\nexport type JunoConsoleConfig = Either<ConsoleId, ConsoleIds> &\n CliConfig & {\n /**\n * Optional configuration parameters for the console, affecting the operational behavior of its Storage.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n };\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from './feature.config';\n\n/**\n * @see StorageConfigSourceGlob\n */\nexport const StorageConfigSourceGlobSchema = z.string();\n\n/**\n * Represents a glob pattern for matching files in the Storage configuration.\n * @typedef {string} StorageConfigSourceGlob\n */\nexport type StorageConfigSourceGlob = string;\n\n/**\n * @see StorageConfigHeader\n */\nexport const StorageConfigHeaderSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n headers: z.array(z.tuple([z.string(), z.string()]))\n })\n .strict();\n\n/**\n * Headers allow the client and the Storage to pass additional information along with a request or a response.\n * Some sets of headers can affect how the browser handles the page and its content.\n * @interface StorageConfigHeader\n */\nexport interface StorageConfigHeader {\n /**\n * The glob pattern used to match files within the Storage that these headers will apply to.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * An array of key-value pairs representing the headers to apply.\n * Each pair includes the header name and its value.\n * Example: `[[\"Cache-Control\", \"max-age=3600\"], [\"X-Custom-Header\", \"value\"]]`\n * @type {Array<[string, string]>}\n */\n headers: [string, string][];\n}\n\n/**\n * @see StorageConfigRewrite\n */\nexport const StorageConfigRewriteSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n destination: z.string()\n })\n .strict();\n\n/**\n * You can utilize optional rewrites to display the same content for multiple URLs.\n * Rewrites are especially useful when combined with pattern matching, allowing acceptance of any URL that matches the pattern.\n * @interface StorageConfigRewrite\n */\nexport interface StorageConfigRewrite {\n /**\n * The glob pattern or specific path to match for incoming requests.\n * Matches are rewritten to the specified destination.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The destination path or file to which matching requests should be rewritten.\n * @type {string}\n */\n destination: string;\n}\n\n/**\n * @see StorageConfigRedirect\n */\nexport const StorageConfigRedirectSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n location: z.string(),\n code: z.union([z.literal(301), z.literal(302)])\n })\n .strict();\n\n/**\n * Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs.\n * @interface StorageConfigRedirect\n */\nexport interface StorageConfigRedirect {\n /**\n * The glob pattern or specific path to match for incoming requests that should be redirected.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The URL or path to which the request should be redirected.\n * @type {string}\n */\n location: string;\n\n /**\n * The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect).\n * @type {301 | 302}\n */\n code: 301 | 302;\n}\n\n/**\n * @see StorageConfig\n */\nexport const StorageConfigSchema = z.object({\n headers: z.array(StorageConfigHeaderSchema).optional(),\n rewrites: z.array(StorageConfigRewriteSchema).optional(),\n redirects: z.array(StorageConfigRedirectSchema).optional(),\n iframe: z.enum(['deny', 'same-origin', 'allow-any']).optional(),\n rawAccess: z.boolean().optional(),\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the hosting behavior of the Storage.\n * @interface StorageConfig\n */\nexport interface StorageConfig {\n /**\n * Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns.\n * @type {StorageConfigHeader[]}\n * @optional\n */\n headers?: StorageConfigHeader[];\n\n /**\n * Optional array of `StorageConfigRewrite` objects to define rewrite rules.\n * @type {StorageConfigRewrite[]}\n * @optional\n */\n rewrites?: StorageConfigRewrite[];\n\n /**\n * Optional array of `StorageConfigRedirect` objects to define HTTP redirects.\n * @type {StorageConfigRedirect[]}\n * @optional\n */\n redirects?: StorageConfigRedirect[];\n\n /**\n * For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.\n *\n * Options are:\n * - `deny`: Prevents any content from being displayed in an iframe.\n * - `same-origin`: Allows iframe content from the same origin as the page.\n * - `allow-any`: Allows iframe content from any origin.\n *\n * If not specified, then `deny` is used as default value.\n * @type {'deny' | 'same-origin' | 'allow-any'}\n * @optional\n */\n iframe?: 'deny' | 'same-origin' | 'allow-any';\n\n /**\n * Optional flag to enable access for raw URLs.\n *\n * \u26A0\uFE0F **WARNING: Enabling this option is highly discouraged due to security risks.**\n *\n * Enabling this option allows access to raw URLs (e.g., https://satellite-id.raw.icp0.io), bypassing certificate validation.\n * This creates a security vulnerability where a malicious node in the chain can respond to requests with malicious or invalid content.\n * Since there is no validation on raw URLs, the client may receive and process harmful data.\n *\n * If not specified, the default value is `false`.\n * @type {boolean}\n * @optional\n */\n rawAccess?: boolean;\n\n /**\n * Configuration for maximum memory size limits for the Storage.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Storage and smart contract continue to operate normally but reject the upload of new assets.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see MaxMemorySizeConfig\n */\nexport const MaxMemorySizeConfigSchema = z\n .object({\n heap: z.bigint().optional(),\n stable: z.bigint().optional()\n })\n .strict();\n\n/**\n * Configuration for granting access to features only if the maximum memory size limits are not reached.\n *\n * The maximum size corresponds to the overall heap or stable memory of the smart contract.\n */\nexport interface MaxMemorySizeConfig {\n /**\n * Maximum allowed heap memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the heap memory size.\n *\n * @type {bigint}\n */\n heap?: bigint;\n\n /**\n * Maximum allowed stable memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the stable memory size.\n *\n * @type {bigint}\n */\n stable?: bigint;\n}\n", "import * as z from 'zod/v4';\nimport {type EncodingType, EncodingTypeSchema} from './encoding';\n\n/**\n * @see CliConfig\n */\nexport const CliConfigSchema = z\n .object({\n source: z.string().optional(),\n ignore: z.array(z.string()).optional(),\n gzip: z.union([z.string(), z.literal(false)]).optional(),\n encoding: z.array(z.tuple([z.string(), EncodingTypeSchema])).optional(),\n predeploy: z.array(z.string()).optional(),\n postdeploy: z.array(z.string()).optional()\n })\n .strict();\n\nexport interface CliConfig {\n /**\n * Specifies the directory from which to deploy to Storage.\n * For instance, if `npm run build` outputs files to a `dist` folder, use `source: 'dist'`.\n *\n * @default 'build'\n * @type {string}\n */\n source?: string;\n\n /**\n * Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.\n * @type {string[]}\n * @optional\n */\n ignore?: string[];\n\n /**\n * Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.\n * You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax.\n * @type {string | false}\n * @optional\n */\n gzip?: string | false;\n\n /**\n * Customizes file encoding mapping for HTTP response headers `Content-Encoding` based on file extension:\n * - `.Z` for compress,\n * - `.gz` for gzip,\n * - `.br` for brotli,\n * - `.zlib` for deflate,\n * - anything else defaults to `identity`.\n * The \"encoding\" attribute allows overriding default mappings with an array of glob patterns and encoding types.\n * @type {Array<[string, EncodingType]>}\n * @optional\n */\n encoding?: Array<[string, EncodingType]>;\n\n /**\n * Defines a list of scripts or commands to be run before the deployment process begins.\n * This can be useful for tasks such as compiling assets, running tests, or building production-ready files.\n *\n * Example:\n * ```json\n * {\n * \"predeploy\": [\"npm run build\", \"npm run lint\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n predeploy?: string[];\n\n /**\n * Defines a list of scripts or commands to be run after the deployment process completes.\n * This can be used for tasks such as notifications, cleanup, or sending confirmation messages to services or team members.\n *\n * Example:\n * ```json\n * {\n * \"postdeploy\": [\"./scripts/notify-admins.sh\", \"echo 'Deployment complete'\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n postdeploy?: string[];\n}\n", "import * as z from 'zod/v4';\n\n/**\n * see EncodingType\n */\nexport const EncodingTypeSchema = z.enum(['identity', 'gzip', 'compress', 'deflate', 'br']);\n\n/**\n * Represents the encoding types for assets.\n * @typedef {'identity' | 'gzip' | 'compress' | 'deflate' | 'br'} EncodingType\n */\nexport type EncodingType = 'identity' | 'gzip' | 'compress' | 'deflate' | 'br';\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoConfigMode\n */\nexport const JunoConfigModeSchema = z.union([z.literal('production'), z.string()]);\n\n/**\n * Represents the mode of the Juno configuration.\n * @typedef {'production' | string} JunoConfigMode\n */\nexport type JunoConfigMode = 'production' | string;\n\n/**\n * @see JunoConfigEnv\n */\nexport const JunoConfigEnvSchema = z.object({\n mode: JunoConfigModeSchema\n});\n\n/**\n * Represents the environment configuration for Juno.\n * @interface JunoConfigEnv\n */\nexport interface JunoConfigEnv {\n /**\n * The mode of the Juno configuration.\n * @type {JunoConfigMode}\n */\n mode: JunoConfigMode;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see ModuleLogVisibility\n */\nexport const ModuleLogVisibilitySchema = z.enum(['controllers', 'public']);\n\n/**\n * Specifies who can see the logs of the module.\n *\n * - 'controllers': Only the controllers of the module can see the logs.\n * - 'public': Everyone can see the logs.\n *\n * @typedef {'controllers' | 'public'} ModuleLogVisibility\n */\nexport type ModuleLogVisibility = 'controllers' | 'public';\n\n/**\n * @see ModuleSettings\n */\nexport const ModuleSettingsSchema = z.strictObject({\n freezingThreshold: z.bigint().optional(),\n reservedCyclesLimit: z.bigint().optional(),\n logVisibility: ModuleLogVisibilitySchema.optional(),\n heapMemoryLimit: z.bigint().optional(),\n memoryAllocation: z.bigint().optional(),\n computeAllocation: z.bigint().optional()\n});\n\n/**\n * Settings for a module - Satellite, Mission Control or Orbiter.\n *\n * These settings control various aspects of the module's behavior and resource usage.\n *\n * @interface ModuleSettings\n */\nexport interface ModuleSettings {\n /**\n * The cycle threshold below which the module will automatically stop to avoid running out of cycles.\n *\n * For example, if set to `BigInt(1000000)`, the module will stop when it has fewer than 1,000,000 cycles remaining.\n *\n * @type {bigint}\n */\n freezingThreshold?: bigint;\n\n /**\n * The number of cycles reserved for the module's operations to ensure it has enough cycles to function.\n *\n * For example, setting it to `BigInt(5000000)` reserves 5,000,000 cycles for the module.\n *\n * @type {bigint}\n */\n reservedCyclesLimit?: bigint;\n\n /**\n * Controls who can see the module's logs.\n *\n * @type {ModuleLogVisibility}\n */\n logVisibility?: ModuleLogVisibility;\n\n /**\n * The maximum amount of WebAssembly (Wasm) memory the module can use on the heap.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 64)` allows the module to use up to 64 MB of Wasm memory.\n *\n * @type {bigint}\n */\n heapMemoryLimit?: bigint;\n\n /**\n * The amount of memory explicitly allocated to the module.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module.\n *\n * @type {bigint}\n */\n memoryAllocation?: bigint;\n\n /**\n * The proportion of compute capacity allocated to the module.\n *\n * This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module.\n *\n * @type {bigint}\n */\n computeAllocation?: bigint;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoPackageDependencies\n */\nexport const JunoPackageDependenciesSchema = z.record(z.string(), z.string());\n\n/**\n * @see JunoPackage\n */\nexport const JunoPackageSchema = z.object({\n name: z.string(),\n version: z.string(),\n dependencies: JunoPackageDependenciesSchema.optional()\n});\n", "/**\n * The ID used to identify a Juno Satellite.\n *\n * It is either the name of a (stock) package or\n * used when checking if a canister includes `@junobuild/satellite` as a dependency.\n */\nexport const JUNO_PACKAGE_SATELLITE_ID = '@junobuild/satellite';\n\n/**\n * The ID used to identify a Juno Sputnik crate.\n *\n * Used when checking if a canister includes `@junobuild/sputnik` as a dependency.\n */\nexport const JUNO_PACKAGE_SPUTNIK_ID = '@junobuild/sputnik';\n\n/**\n * The ID used to identify a Juno Mission Control package.\n */\nexport const JUNO_PACKAGE_MISSION_CONTROL_ID = '@junobuild/mission-control';\n\n/**\n * The ID used to identify a Juno Orbiter package.\n */\nexport const JUNO_PACKAGE_ORBITER_ID = '@junobuild/orbiter';\n", "import type {JunoDevConfig} from './juno.dev.config';\n\nexport type JunoDevConfigFn = () => JunoDevConfig;\n\nexport type JunoDevConfigFnOrObject = JunoDevConfig | JunoDevConfigFn;\n\nexport function defineDevConfig(config: JunoDevConfig): JunoDevConfig;\nexport function defineDevConfig(config: JunoDevConfigFn): JunoDevConfigFn;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type Rule, RuleSchema} from '../types/rules';\n\n/**\n * @see SatelliteDevDataStoreCollection\n */\nexport const SatelliteDevDataStoreCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxSize: true,\n version: true\n});\n\n/**\n * Represents a database collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection\n */\nexport type SatelliteDevDataStoreCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxSize' | 'version'\n>;\n\n/**\n * @see SatelliteDevStorageCollection\n */\nexport const SatelliteDevStorageCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxCapacity: true,\n version: true\n});\n\n/**\n * Represents a Storage collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection\n */\nexport type SatelliteDevStorageCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'\n>;\n\n/**\n * @see SatelliteDevCollections\n */\nexport const SatelliteDevCollectionsSchema = z.strictObject({\n datastore: z.array(SatelliteDevDataStoreCollectionSchema).optional(),\n storage: z.array(SatelliteDevStorageCollectionSchema).optional()\n});\n\n/**\n * Represents the collections configuration for a satellite in a development environment.\n * @interface SatelliteDevCollections\n */\nexport interface SatelliteDevCollections {\n /**\n * The Datastore collections configuration.\n * @type {SatelliteDevDataStoreCollection[]}\n * @optional\n */\n datastore?: SatelliteDevDataStoreCollection[];\n\n /**\n * The Storage collections configuration.\n * @type {SatelliteDevStorageCollection[]}\n * @optional\n */\n storage?: SatelliteDevStorageCollection[];\n}\n\n/**\n * @see SatelliteDevController\n */\nexport const SatelliteDevControllerSchema = z.strictObject({\n id: PrincipalTextSchema,\n scope: z.enum(['write', 'admin', 'submit'])\n});\n\n/**\n * Represents a controller configuration for a satellite in a development environment.\n * @interface SatelliteDevController\n */\nexport interface SatelliteDevController {\n /**\n * The unique identifier of the controller.\n * @type {string}\n */\n id: PrincipalText;\n\n /**\n * The scope of the controller's permissions.\n * @type {'write' | 'admin'}\n */\n scope: 'write' | 'admin' | 'submit';\n}\n\n/**\n * @see SatelliteDevConfig\n */\nexport const SatelliteDevConfigSchema = z.strictObject({\n collections: SatelliteDevCollectionsSchema,\n controllers: z.array(SatelliteDevControllerSchema).optional()\n});\n\n/**\n * Represents the development configuration for a satellite.\n * @interface SatelliteDevConfig\n */\nexport interface SatelliteDevConfig {\n /**\n * The collections configuration.\n * @type {SatelliteDevCollections}\n */\n collections: SatelliteDevCollections;\n\n /**\n * The optional controllers configuration.\n * @type {SatelliteDevController[]}\n * @optional\n */\n controllers?: SatelliteDevController[];\n}\n\n/**\n * @see JunoDevConfig\n */\nexport const JunoDevConfigSchema = z.strictObject({\n satellite: SatelliteDevConfigSchema\n});\n\n/**\n * Represents the development configuration for Juno.\n * @interface JunoDevConfig\n */\nexport interface JunoDevConfig {\n /**\n * The development configuration for the satellite.\n * @type {SatelliteDevConfig}\n */\n satellite: SatelliteDevConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see PermissionText\n */\nexport const PermissionTextSchema = z.enum(['public', 'private', 'managed', 'controllers']);\n\n/**\n * Represents the permission levels for read and write access.\n * @typedef {'public' | 'private' | 'managed' | 'controllers'} PermissionText\n */\nexport type PermissionText = 'public' | 'private' | 'managed' | 'controllers';\n\n/**\n * @see MemoryText\n */\nexport const MemoryTextSchema = z.enum(['heap', 'stable']);\n\n/**\n * Represents the memory types.\n * @typedef {'heap' | 'stable'} MemoryText\n */\nexport type MemoryText = 'heap' | 'stable';\n\n/**\n * @see RulesType\n */\nexport const RulesTypeSchema = z.enum(['db', 'storage']);\n\n/**\n * Represents the types of rules.\n * @typedef {'db' | 'storage'} RulesType\n */\nexport type RulesType = 'db' | 'storage';\n\n/**\n * @see Rule\n */\nexport const RuleSchema = z.strictObject({\n collection: z.string(),\n read: PermissionTextSchema,\n write: PermissionTextSchema,\n memory: MemoryTextSchema,\n createdAt: z.bigint().optional(),\n updatedAt: z.bigint().optional(),\n version: z.bigint().optional(),\n maxSize: z.number().optional(),\n maxChangesPerUser: z.number().optional(),\n maxCapacity: z.number().optional(),\n mutablePermissions: z.boolean(),\n maxTokens: z.number().optional()\n});\n\n/**\n * Represents a rule configuration for a collection.\n * @interface Rule\n */\nexport interface Rule {\n /**\n * The name of the collection the rule applies to.\n * @type {string}\n */\n collection: string;\n\n /**\n * The permission level for read access.\n * @type {PermissionText}\n */\n read: PermissionText;\n\n /**\n * The permission level for write access.\n * @type {PermissionText}\n */\n write: PermissionText;\n\n /**\n * The type of memory allocated for the collection.\n * @type {MemoryText}\n */\n memory: MemoryText;\n\n /**\n * The timestamp when the rule was created.\n * @type {bigint}\n * @optional\n */\n createdAt?: bigint;\n\n /**\n * The timestamp when the rule was last updated.\n * @type {bigint}\n * @optional\n */\n updatedAt?: bigint;\n\n /**\n * The version of the rule.\n * @type {bigint}\n * @optional\n * @description Must be provided when updating the rule to ensure the correct version is being updated.\n */\n version?: bigint;\n\n /**\n * The maximum size of the collection in bytes.\n * @type {number}\n * @optional\n */\n maxSize?: number;\n\n /**\n * The maximum number of changes (create, update or delete) per user for the collection.\n * @type {number}\n * @optional\n */\n maxChangesPerUser?: number;\n\n /**\n * The maximum capacity of the collection.\n * @type {number}\n * @optional\n */\n maxCapacity?: number;\n\n /**\n * Indicates whether the permissions are mutable.\n * @type {boolean}\n */\n mutablePermissions: boolean;\n\n /**\n * The maximum number of writes and deletes per minute.\n */\n maxTokens?: number;\n}\n", "import type {JunoConfigEnv} from '../../types/juno.env';\nimport type {JunoConfig} from './juno.config';\n\nexport type JunoConfigFn = (config: JunoConfigEnv) => JunoConfig;\n\nexport type JunoConfigFnOrObject = JunoConfig | JunoConfigFn;\n\nexport function defineConfig(config: JunoConfig): JunoConfig;\nexport function defineConfig(config: JunoConfigFn): JunoConfigFn;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject {\n return config;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see SatelliteAssertions\n */\nexport const SatelliteAssertionsSchema = z.strictObject({\n heapMemory: z.union([z.number(), z.boolean()]).optional()\n});\n\n/**\n * Configuration for satellite assertions.\n * @interface SatelliteAssertions\n */\nexport interface SatelliteAssertions {\n /**\n * Configuration for the heap memory size check, which can be:\n * - `true` to enable the check with a default threshold of 900MB,\n * - `false` to disable the heap memory size check,\n * - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.\n *\n * If not specified, then `true` is used as the default value.\n * @type {number | boolean}\n */\n heapMemory?: number | boolean;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see AuthenticationConfigInternetIdentity\n */\nexport const AuthenticationConfigInternetIdentitySchema = z.strictObject({\n derivationOrigin: z.url().optional(),\n externalAlternativeOrigins: z.array(z.url()).optional()\n});\n\n/**\n * Configure the behavior of Internet Identity.\n * @interface AuthenticationConfigInternetIdentity\n */\nexport interface AuthenticationConfigInternetIdentity {\n /**\n * This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain.\n * For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com.\n * @type {string}\n * @optional\n */\n derivationOrigin?: string;\n\n /**\n * An optional list of external alternative origins allowed for authentication, which can be useful if you want to reuse the same derivation origin across multiple Satellites.\n * @type {string[]}\n * @optional\n */\n externalAlternativeOrigins?: string[];\n}\n\n/**\n * @see AuthenticationConfig\n */\nexport const AuthenticationConfigSchema = z.strictObject({\n internetIdentity: AuthenticationConfigInternetIdentitySchema.optional()\n});\n\n/**\n * Configures the Authentication options of a Satellite.\n * @interface AuthenticationConfig\n */\nexport interface AuthenticationConfig {\n /**\n * Optional configuration of Internet Identity authentication method.\n * @type {AuthenticationConfigInternetIdentity}\n * @optional\n */\n internetIdentity?: AuthenticationConfigInternetIdentity;\n}\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from '../../../shared/feature.config';\n\n/**\n * @see DatastoreConfig\n */\nexport const DatastoreConfigSchema = z.strictObject({\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the behavior of the Datastore.\n * @interface DatastoreConfig\n */\nexport interface DatastoreConfig {\n /**\n * Configuration for maximum memory size limits for the Datastore.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Datastore and smart contract continue to operate normally but reject the creation or updates of documents.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\nconst EmulatorPortsSchema = z.strictObject({\n /**\n * @default 5987\n */\n server: z.number().optional(),\n\n /**\n * @default 5999\n */\n admin: z.number().optional()\n});\n\nconst ConsolePortSchema = z.strictObject({\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: z.number().optional()\n});\n\n/**\n * Represents the ports exposed by an emulator container.\n */\nexport interface EmulatorPorts {\n /**\n * The port of the server used to simulate execution. This is the port your app connects to.\n * Also known as the \"local Internet Computer replica\" or the \"Pocket-IC port\".\n * @default 5987\n */\n server?: number;\n\n /**\n * The port of the admin server used for tasks like transferring ICP from the ledger.\n * @default 5999\n */\n admin?: number;\n}\n\n/**\n * Accepts .mjs, .ts, .js, or .json\n */\nconst ConfigFileSchema = z.string().regex(/\\.(mjs|ts|js|json)$/i, {\n message: 'Must be a .mjs, .ts, .js, or .json file'\n});\n\n/**\n * @see JunoConfigFile\n */\nconst JunoConfigFileSchema = ConfigFileSchema;\n\n/**\n * Represents a Juno configuration file path.\n * Must end in `.mjs`, `.ts`, `.js`, or `.json`.\n */\nexport type JunoConfigFile = string;\n\n/**\n * @see JunoDevConfigFile\n */\nconst JunoDevConfigFileSchema = ConfigFileSchema;\n\n/**\n * Represents a Juno development config file path.\n * Must end in `.mjs`, `.ts`, `.js`, or `.json`.\n */\nexport type JunoDevConfigFile = string;\n\n/**\n * @see EmulatorSkylab\n */\nconst EmulatorSkylabSchema = z.strictObject({\n ports: EmulatorPortsSchema.extend(ConsolePortSchema.shape).optional(),\n config: JunoConfigFileSchema\n});\n\n/**\n * Configuration for the Skylab emulator.\n */\nexport interface EmulatorSkylab {\n /**\n * Ports exposed by the Skylab container.\n */\n ports?: EmulatorPorts & {\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: number;\n };\n\n /**\n * Path to the Juno config file.\n */\n config: JunoConfigFile;\n}\n\n/**\n * @see EmulatorConsole\n */\nconst EmulatorConsoleSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Console emulator.\n */\nexport interface EmulatorConsole {\n /**\n * Ports exposed by the Console container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorSatellite\n */\nconst EmulatorSatelliteSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional(),\n config: JunoDevConfigFileSchema\n});\n\n/**\n * Configuration for the Satellite emulator.\n */\nexport interface EmulatorSatellite {\n /**\n * Ports exposed by the Satellite container.\n */\n ports?: EmulatorPorts;\n\n /**\n * Path to the dev config file to customize Satellite behavior.\n */\n config: JunoDevConfigFile;\n}\n\n/**\n * @see EmulatorRunner\n */\nconst EmulatorRunnerSchema = z.strictObject({\n type: z.enum(['docker']),\n image: z.string().optional(),\n name: z.string().optional(),\n volume: z.string().optional(),\n target: z.string().optional()\n});\n\n/**\n * Shared options for all runner variants.\n */\nexport interface EmulatorRunner {\n /**\n * The containerization tool to run the emulator.\n */\n type: 'docker';\n\n /**\n * Image reference.\n * @default depends on emulator type, e.g. \"junobuild/skylab:latest\"\n */\n image?: string;\n\n /**\n * Optional container name to use for the emulator.\n * Useful for reusing or managing a specific container.\n */\n name?: string;\n\n /**\n * Persistent volume to store internal state.\n * @default \"juno\"\n */\n volume?: string;\n\n /**\n * Shared folder for deploying and hot-reloading serverless functions.\n */\n target?: string;\n}\n\n/**\n * @see EmulatorConfig\n */\nexport const EmulatorConfigSchema = z.union([\n z.strictObject({\n runner: EmulatorRunnerSchema,\n skylab: EmulatorSkylabSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema,\n console: EmulatorConsoleSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema,\n satellite: EmulatorSatelliteSchema\n })\n]);\n\n/**\n * The configuration for running the Juno emulator.\n */\nexport type EmulatorConfig =\n | {runner: EmulatorRunner; skylab: EmulatorSkylab}\n | {runner: EmulatorRunner; console: EmulatorConsole}\n | {runner: EmulatorRunner; satellite: EmulatorSatellite};\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\n\n/**\n * @see OrbiterId\n */\nexport const OrbiterIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the configuration for an orbiter.\n * @interface OrbiterId\n */\nexport interface OrbiterId {\n /**\n * The identifier of the orbiter used in the dApp.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see OrbiterIds\n */\nexport const OrbiterIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.\n * @interface OrbiterIds\n */\nexport interface OrbiterIds {\n /**\n * A mapping of orbiter identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different orbiter IDs, such as production, development, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"development\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\n/**\n * @see OrbiterConfig\n */\nexport const OrbiterConfigSchema = z.union([OrbiterIdSchema.strict(), OrbiterIdsSchema.strict()]);\n\n/**\n * Represents the configuration for an orbiter (analytics).\n *\n * @typedef {Either<OrbiterId, OrbiterIds>} OrbiterConfig\n * @property {OrbiterId | OrbiterIds} OrbiterId or OrbiterIds - Defines a unique Orbiter or a collection of Orbiters.\n */\nexport type OrbiterConfig = Either<OrbiterId, OrbiterIds>;\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type ModuleSettings, ModuleSettingsSchema} from '../../../module/module.settings';\nimport {type StorageConfig, StorageConfigSchema} from '../../../shared/storage.config';\nimport type {CliConfig} from '../../../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\nimport {type SatelliteAssertions, SatelliteAssertionsSchema} from './assertions.config';\nimport {type AuthenticationConfig, AuthenticationConfigSchema} from './authentication.config';\nimport {type DatastoreConfig, DatastoreConfigSchema} from './datastore.config';\n\n/**\n * @see SatelliteId\n */\nexport const SatelliteIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a satellite.\n * @interface SatelliteId\n */\nexport interface SatelliteId {\n /**\n * The unique identifier (ID) of the satellite for this application.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see SatelliteIds\n */\nexport const SatelliteIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of satellite identifiers to different configurations based on the mode of the application.\n * @interface SatelliteIds\n */\nexport interface SatelliteIds {\n /**\n * A mapping of satellite identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different satellite IDs, such as production, staging, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"staging\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst SatelliteConfigOptionsBaseSchema = z.object({\n storage: StorageConfigSchema.optional(),\n datastore: DatastoreConfigSchema.optional(),\n authentication: AuthenticationConfigSchema.optional(),\n assertions: SatelliteAssertionsSchema.optional(),\n settings: ModuleSettingsSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const SatelliteConfigOptionsSchema = z.union([\n z\n .object({\n ...SatelliteIdSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...SatelliteIdsSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * SatelliteConfigOptions interface provides configuration settings that allow for fine-tuning\n * the operational behavior of various aspects of a Satellite, such as storage, datastore,\n * authentication, and deployment assertions.\n *\n * These options affect specific modules of the Satellite and may require manual application of\n * changes, typically through CLI commands (e.g., `juno config`).\n *\n * @interface SatelliteConfigOptions\n *\n * @property {StorageConfig} [storage] - Configuration settings for storage management in the Satellite.\n * @property {DatastoreConfig} [datastore] - Configuration settings for datastore management.\n * @property {AuthenticationConfig} [authentication] - Authentication-specific configurations.\n * @property {SatelliteAssertions} [assertions] - Conditions and assertions for deployment or operational checks.\n * @property {ModuleSettings} [settings] - General settings governing module behavior and resource management.\n */\nexport interface SatelliteConfigOptions {\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Datastore.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {DatastoreConfig}\n * @optional\n */\n datastore?: DatastoreConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Authentication.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {AuthenticationConfig}\n * @optional\n */\n authentication?: AuthenticationConfig;\n\n /**\n * Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions.\n * @type {SatelliteAssertions}\n * @optional\n */\n assertions?: SatelliteAssertions;\n\n /**\n * Optional configuration parameters for the Satellite.\n * These settings control various aspects of the module's behavior and resource usage.\n * @type {ModuleSettings}\n * @optional\n */\n settings?: ModuleSettings;\n}\n\n/**\n * Represents the configuration for a satellite.\n *\n * @typedef {Either<SatelliteId, SatelliteIds> & CliConfig & SatelliteConfigOptions} SatelliteConfig\n * @property {SatelliteId | SatelliteIds} SatelliteId or SatelliteIds - Defines a unique Satellite or a collection of Satellites.\n * @property {CliConfig} CliConfig - Configuration specific to the CLI interface.\n * @property {SatelliteConfigOptions} SatelliteConfigOptions - Additional configuration options for the Satellite.\n */\nexport type SatelliteConfig = Either<SatelliteId, SatelliteIds> &\n CliConfig &\n SatelliteConfigOptions;\n", "import * as z from 'zod/v4';\nimport {type EmulatorConfig, EmulatorConfigSchema} from './configs/emulator.config';\nimport {type OrbiterConfig, OrbiterConfigSchema} from './configs/orbiter.config';\nimport {type SatelliteConfig, SatelliteConfigOptionsSchema} from './configs/satellite.config';\n\n/**\n * @see JunoConfig\n */\nexport const JunoConfigSchema = z.strictObject({\n satellite: SatelliteConfigOptionsSchema,\n orbiter: OrbiterConfigSchema.optional(),\n emulator: EmulatorConfigSchema.optional()\n});\n\n/**\n * Represents the overall configuration for Juno.\n * @interface JunoConfig\n */\nexport interface JunoConfig {\n /**\n * The configuration for the satellite.\n * @type {SatelliteConfig}\n */\n satellite: SatelliteConfig;\n\n /**\n * The optional configuration for the orbiter.\n * @type {OrbiterConfig}\n * @optional\n */\n orbiter?: OrbiterConfig;\n\n /**\n * Your options for the emulator.\n */\n emulator?: EmulatorConfig;\n}\n"],
5
- "mappings": "AAYO,SAASA,GACdC,EAC6B,CAC7B,OAAOA,CACT,CChBA,OAA4B,uBAAAC,MAA0B,uBACtD,UAAYC,MAAO,SCDnB,UAAYC,MAAO,SCAnB,UAAYC,MAAO,SAKZ,IAAMC,EACV,SAAO,CACN,KAAQ,SAAO,EAAE,SAAS,EAC1B,OAAU,SAAO,EAAE,SAAS,CAC9B,CAAC,EACA,OAAO,EDJH,IAAMC,EAAkC,SAAO,EAWzCC,EACV,SAAO,CACN,OAAQD,EACR,QAAW,QAAQ,QAAM,CAAG,SAAO,EAAK,SAAO,CAAC,CAAC,CAAC,CACpD,CAAC,EACA,OAAO,EA0BGE,EACV,SAAO,CACN,OAAQF,EACR,YAAe,SAAO,CACxB,CAAC,EACA,OAAO,EAyBGG,EACV,SAAO,CACN,OAAQH,EACR,SAAY,SAAO,EACnB,KAAQ,QAAM,CAAG,UAAQ,GAAG,EAAK,UAAQ,GAAG,CAAC,CAAC,CAChD,CAAC,EACA,OAAO,EA6BGI,EAAwB,SAAO,CAC1C,QAAW,QAAMH,CAAyB,EAAE,SAAS,EACrD,SAAY,QAAMC,CAA0B,EAAE,SAAS,EACvD,UAAa,QAAMC,CAA2B,EAAE,SAAS,EACzD,OAAU,OAAK,CAAC,OAAQ,cAAe,WAAW,CAAC,EAAE,SAAS,EAC9D,UAAa,UAAQ,EAAE,SAAS,EAChC,cAAeE,EAA0B,SAAS,CACpD,CAAC,EExHD,UAAYC,MAAO,SCAnB,UAAYC,MAAO,SAKZ,IAAMC,EAAuB,OAAK,CAAC,WAAY,OAAQ,WAAY,UAAW,IAAI,CAAC,EDCnF,IAAMC,EACV,SAAO,CACN,OAAU,SAAO,EAAE,SAAS,EAC5B,OAAU,QAAQ,SAAO,CAAC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a,CACb,OAAQG,EACR,QAASF,EACX,CAAC,EACC,eAAa,CACb,OAAQE,EACR,UAAWD,EACb,CAAC,CACH,CAAC,ECtMD,OAA4B,uBAAAG,MAA0B,uBACtD,UAAYC,MAAO,SAOZ,IAAMC,GAAoB,SAAO,CACtC,GAAIC,CACN,CAAC,EAiBYC,GAAqB,SAAO,CACvC,IAAO,SAAOC,EAAsBF,CAAmB,CACzD,CAAC,EAyBYG,EAAwB,QAAM,CAACJ,GAAgB,OAAO,EAAGE,GAAiB,OAAO,CAAC,CAAC,ECtDhG,OAA4B,uBAAAG,MAA0B,uBACtD,UAAYC,MAAO,SAaZ,IAAMC,GAAsB,SAAO,CACxC,GAAIC,CACN,CAAC,EAiBYC,GAAuB,SAAO,CACzC,IAAO,SAAOC,EAAsBF,CAAmB,CACzD,CAAC,EAsBKG,EAAqC,SAAO,CAChD,QAASC,EAAoB,SAAS,EACtC,UAAWC,EAAsB,SAAS,EAC1C,eAAgBC,EAA2B,SAAS,EACpD,WAAYC,EAA0B,SAAS,EAC/C,SAAUC,EAAqB,SAAS,CAC1C,CAAC,EAKYC,EAAiC,QAAM,CAE/C,SAAO,CACN,GAAGV,GAAkB,MACrB,GAAGI,EAAiC,KACtC,CAAC,EACA,OAAO,EAEP,SAAO,CACN,GAAGF,GAAmB,MACtB,GAAGE,EAAiC,KACtC,CAAC,EACA,OAAO,CACZ,CAAC,ECjFD,UAAYO,MAAO,SAQZ,IAAMC,GAAqB,eAAa,CAC7C,UAAWC,EACX,QAASC,EAAoB,SAAS,EACtC,SAAUC,EAAqB,SAAS,CAC1C,CAAC",
6
- "names": ["defineConsoleConfig", "config", "PrincipalTextSchema", "z", "z", "z", "MaxMemorySizeConfigSchema", "StorageConfigSourceGlobSchema", "StorageConfigHeaderSchema", "StorageConfigRewriteSchema", "StorageConfigRedirectSchema", "StorageConfigSchema", "MaxMemorySizeConfigSchema", "z", "z", "EncodingTypeSchema", "CliConfigSchema", "EncodingTypeSchema", "z", "JunoConfigModeSchema", "JunoConfigEnvSchema", "ConsoleIdSchema", "PrincipalTextSchema", "ConsoleIdsSchema", "JunoConfigModeSchema", "JunoConsoleConfigBaseSchema", "CliConfigSchema", "StorageConfigSchema", "JunoConsoleConfigSchema", "z", "ModuleLogVisibilitySchema", "ModuleSettingsSchema", "z", "JunoPackageDependenciesSchema", "JunoPackageSchema", "JUNO_PACKAGE_SATELLITE_ID", "JUNO_PACKAGE_SPUTNIK_ID", "JUNO_PACKAGE_MISSION_CONTROL_ID", "JUNO_PACKAGE_ORBITER_ID", "defineDevConfig", "config", "PrincipalTextSchema", "z", "z", "PermissionTextSchema", "MemoryTextSchema", "RulesTypeSchema", "RuleSchema", "SatelliteDevDataStoreCollectionSchema", "RuleSchema", "SatelliteDevStorageCollectionSchema", "SatelliteDevCollectionsSchema", "SatelliteDevControllerSchema", "PrincipalTextSchema", "SatelliteDevConfigSchema", "JunoDevConfigSchema", "defineConfig", "config", "z", "SatelliteAssertionsSchema", "z", "AuthenticationConfigInternetIdentitySchema", "AuthenticationConfigSchema", "z", "DatastoreConfigSchema", "MaxMemorySizeConfigSchema", "z", "EmulatorPortsSchema", "ConsolePortSchema", "ConfigFileSchema", "JunoConfigFileSchema", "JunoDevConfigFileSchema", "EmulatorSkylabSchema", "EmulatorConsoleSchema", "EmulatorSatelliteSchema", "EmulatorRunnerSchema", "EmulatorConfigSchema", "PrincipalTextSchema", "z", "OrbiterIdSchema", "PrincipalTextSchema", "OrbiterIdsSchema", "JunoConfigModeSchema", "OrbiterConfigSchema", "PrincipalTextSchema", "z", "SatelliteIdSchema", "PrincipalTextSchema", "SatelliteIdsSchema", "JunoConfigModeSchema", "SatelliteConfigOptionsBaseSchema", "StorageConfigSchema", "DatastoreConfigSchema", "AuthenticationConfigSchema", "SatelliteAssertionsSchema", "ModuleSettingsSchema", "SatelliteConfigOptionsSchema", "z", "JunoConfigSchema", "SatelliteConfigOptionsSchema", "OrbiterConfigSchema", "EmulatorConfigSchema"]
4
+ "sourcesContent": ["import type {JunoConfigEnv} from '../types/juno.env';\nimport type {JunoConsoleConfig} from './console.config';\n\nexport type JunoConsoleConfigFn = (config: JunoConfigEnv) => JunoConsoleConfig;\n\nexport type JunoConsoleConfigFnOrObject = JunoConsoleConfig | JunoConsoleConfigFn;\n\nexport function defineConsoleConfig(config: JunoConsoleConfig): JunoConsoleConfig;\nexport function defineConsoleConfig(config: JunoConsoleConfigFn): JunoConsoleConfigFn;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type StorageConfig, StorageConfigSchema} from '../shared/storage.config';\nimport {type CliConfig, CliConfigSchema} from '../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../types/juno.env';\nimport type {Either} from '../types/utility.types';\n\n/**\n * @see ConsoleId\n */\nexport const ConsoleIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a console.\n * @interface ConsoleId\n */\nexport interface ConsoleId {\n /**\n * The unique identifier (ID) of the console.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see ConsoleIds\n */\nexport const ConsoleIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of console identifiers to different configurations based on the mode of the application.\n * @interface ConsoleIds\n */\nexport interface ConsoleIds {\n /**\n * A mapping of console identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different console IDs, such as production, staging, etc.\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst JunoConsoleConfigBaseSchema = z.object({\n ...CliConfigSchema.shape,\n storage: StorageConfigSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const JunoConsoleConfigSchema = z.union([\n z\n .object({\n ...ConsoleIdSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...ConsoleIdsSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * Represents the configuration for a console.\n * @typedef {Either<ConsoleId, ConsoleIds>} ConsoleConfig\n */\nexport type JunoConsoleConfig = Either<ConsoleId, ConsoleIds> &\n CliConfig & {\n /**\n * Optional configuration parameters for the console, affecting the operational behavior of its Storage.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n };\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from './feature.config';\n\n/**\n * @see StorageConfigSourceGlob\n */\nexport const StorageConfigSourceGlobSchema = z.string();\n\n/**\n * Represents a glob pattern for matching files in the Storage configuration.\n * @typedef {string} StorageConfigSourceGlob\n */\nexport type StorageConfigSourceGlob = string;\n\n/**\n * @see StorageConfigHeader\n */\nexport const StorageConfigHeaderSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n headers: z.array(z.tuple([z.string(), z.string()]))\n })\n .strict();\n\n/**\n * Headers allow the client and the Storage to pass additional information along with a request or a response.\n * Some sets of headers can affect how the browser handles the page and its content.\n * @interface StorageConfigHeader\n */\nexport interface StorageConfigHeader {\n /**\n * The glob pattern used to match files within the Storage that these headers will apply to.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * An array of key-value pairs representing the headers to apply.\n * Each pair includes the header name and its value.\n * Example: `[[\"Cache-Control\", \"max-age=3600\"], [\"X-Custom-Header\", \"value\"]]`\n * @type {Array<[string, string]>}\n */\n headers: [string, string][];\n}\n\n/**\n * @see StorageConfigRewrite\n */\nexport const StorageConfigRewriteSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n destination: z.string()\n })\n .strict();\n\n/**\n * You can utilize optional rewrites to display the same content for multiple URLs.\n * Rewrites are especially useful when combined with pattern matching, allowing acceptance of any URL that matches the pattern.\n * @interface StorageConfigRewrite\n */\nexport interface StorageConfigRewrite {\n /**\n * The glob pattern or specific path to match for incoming requests.\n * Matches are rewritten to the specified destination.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The destination path or file to which matching requests should be rewritten.\n * @type {string}\n */\n destination: string;\n}\n\n/**\n * @see StorageConfigRedirect\n */\nexport const StorageConfigRedirectSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n location: z.string(),\n code: z.union([z.literal(301), z.literal(302)])\n })\n .strict();\n\n/**\n * Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs.\n * @interface StorageConfigRedirect\n */\nexport interface StorageConfigRedirect {\n /**\n * The glob pattern or specific path to match for incoming requests that should be redirected.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The URL or path to which the request should be redirected.\n * @type {string}\n */\n location: string;\n\n /**\n * The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect).\n * @type {301 | 302}\n */\n code: 301 | 302;\n}\n\n/**\n * @see StorageConfig\n */\nexport const StorageConfigSchema = z.object({\n headers: z.array(StorageConfigHeaderSchema).optional(),\n rewrites: z.array(StorageConfigRewriteSchema).optional(),\n redirects: z.array(StorageConfigRedirectSchema).optional(),\n iframe: z.enum(['deny', 'same-origin', 'allow-any']).optional(),\n rawAccess: z.boolean().optional(),\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the hosting behavior of the Storage.\n * @interface StorageConfig\n */\nexport interface StorageConfig {\n /**\n * Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns.\n * @type {StorageConfigHeader[]}\n * @optional\n */\n headers?: StorageConfigHeader[];\n\n /**\n * Optional array of `StorageConfigRewrite` objects to define rewrite rules.\n * @type {StorageConfigRewrite[]}\n * @optional\n */\n rewrites?: StorageConfigRewrite[];\n\n /**\n * Optional array of `StorageConfigRedirect` objects to define HTTP redirects.\n * @type {StorageConfigRedirect[]}\n * @optional\n */\n redirects?: StorageConfigRedirect[];\n\n /**\n * For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.\n *\n * Options are:\n * - `deny`: Prevents any content from being displayed in an iframe.\n * - `same-origin`: Allows iframe content from the same origin as the page.\n * - `allow-any`: Allows iframe content from any origin.\n *\n * If not specified, then `deny` is used as default value.\n * @type {'deny' | 'same-origin' | 'allow-any'}\n * @optional\n */\n iframe?: 'deny' | 'same-origin' | 'allow-any';\n\n /**\n * Optional flag to enable access for raw URLs.\n *\n * \u26A0\uFE0F **WARNING: Enabling this option is highly discouraged due to security risks.**\n *\n * Enabling this option allows access to raw URLs (e.g., https://satellite-id.raw.icp0.io), bypassing certificate validation.\n * This creates a security vulnerability where a malicious node in the chain can respond to requests with malicious or invalid content.\n * Since there is no validation on raw URLs, the client may receive and process harmful data.\n *\n * If not specified, the default value is `false`.\n * @type {boolean}\n * @optional\n */\n rawAccess?: boolean;\n\n /**\n * Configuration for maximum memory size limits for the Storage.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Storage and smart contract continue to operate normally but reject the upload of new assets.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see MaxMemorySizeConfig\n */\nexport const MaxMemorySizeConfigSchema = z\n .object({\n heap: z.bigint().optional(),\n stable: z.bigint().optional()\n })\n .strict();\n\n/**\n * Configuration for granting access to features only if the maximum memory size limits are not reached.\n *\n * The maximum size corresponds to the overall heap or stable memory of the smart contract.\n */\nexport interface MaxMemorySizeConfig {\n /**\n * Maximum allowed heap memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the heap memory size.\n *\n * @type {bigint}\n */\n heap?: bigint;\n\n /**\n * Maximum allowed stable memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the stable memory size.\n *\n * @type {bigint}\n */\n stable?: bigint;\n}\n", "import * as z from 'zod/v4';\nimport {type EncodingType, EncodingTypeSchema} from './encoding';\n\n/**\n * @see CliConfig\n */\nexport const CliConfigSchema = z\n .object({\n source: z.string().optional(),\n ignore: z.array(z.string()).optional(),\n gzip: z.union([z.string(), z.literal(false)]).optional(),\n encoding: z.array(z.tuple([z.string(), EncodingTypeSchema])).optional(),\n predeploy: z.array(z.string()).optional(),\n postdeploy: z.array(z.string()).optional()\n })\n .strict();\n\nexport interface CliConfig {\n /**\n * Specifies the directory from which to deploy to Storage.\n * For instance, if `npm run build` outputs files to a `dist` folder, use `source: 'dist'`.\n *\n * @default 'build'\n * @type {string}\n */\n source?: string;\n\n /**\n * Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.\n * @type {string[]}\n * @optional\n */\n ignore?: string[];\n\n /**\n * Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.\n * You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax.\n * @type {string | false}\n * @optional\n */\n gzip?: string | false;\n\n /**\n * Customizes file encoding mapping for HTTP response headers `Content-Encoding` based on file extension:\n * - `.Z` for compress,\n * - `.gz` for gzip,\n * - `.br` for brotli,\n * - `.zlib` for deflate,\n * - anything else defaults to `identity`.\n * The \"encoding\" attribute allows overriding default mappings with an array of glob patterns and encoding types.\n * @type {Array<[string, EncodingType]>}\n * @optional\n */\n encoding?: Array<[string, EncodingType]>;\n\n /**\n * Defines a list of scripts or commands to be run before the deployment process begins.\n * This can be useful for tasks such as compiling assets, running tests, or building production-ready files.\n *\n * Example:\n * ```json\n * {\n * \"predeploy\": [\"npm run build\", \"npm run lint\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n predeploy?: string[];\n\n /**\n * Defines a list of scripts or commands to be run after the deployment process completes.\n * This can be used for tasks such as notifications, cleanup, or sending confirmation messages to services or team members.\n *\n * Example:\n * ```json\n * {\n * \"postdeploy\": [\"./scripts/notify-admins.sh\", \"echo 'Deployment complete'\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n postdeploy?: string[];\n}\n", "import * as z from 'zod/v4';\n\n/**\n * see EncodingType\n */\nexport const EncodingTypeSchema = z.enum(['identity', 'gzip', 'compress', 'deflate', 'br']);\n\n/**\n * Represents the encoding types for assets.\n * @typedef {'identity' | 'gzip' | 'compress' | 'deflate' | 'br'} EncodingType\n */\nexport type EncodingType = 'identity' | 'gzip' | 'compress' | 'deflate' | 'br';\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoConfigMode\n */\nexport const JunoConfigModeSchema = z.union([z.literal('production'), z.string()]);\n\n/**\n * Represents the mode of the Juno configuration.\n * @typedef {'production' | string} JunoConfigMode\n */\nexport type JunoConfigMode = 'production' | string;\n\n/**\n * @see JunoConfigEnv\n */\nexport const JunoConfigEnvSchema = z.object({\n mode: JunoConfigModeSchema\n});\n\n/**\n * Represents the environment configuration for Juno.\n * @interface JunoConfigEnv\n */\nexport interface JunoConfigEnv {\n /**\n * The mode of the Juno configuration.\n * @type {JunoConfigMode}\n */\n mode: JunoConfigMode;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see ModuleLogVisibility\n */\nexport const ModuleLogVisibilitySchema = z.enum(['controllers', 'public']);\n\n/**\n * Specifies who can see the logs of the module.\n *\n * - 'controllers': Only the controllers of the module can see the logs.\n * - 'public': Everyone can see the logs.\n *\n * @typedef {'controllers' | 'public'} ModuleLogVisibility\n */\nexport type ModuleLogVisibility = 'controllers' | 'public';\n\n/**\n * @see ModuleSettings\n */\nexport const ModuleSettingsSchema = z.strictObject({\n freezingThreshold: z.bigint().optional(),\n reservedCyclesLimit: z.bigint().optional(),\n logVisibility: ModuleLogVisibilitySchema.optional(),\n heapMemoryLimit: z.bigint().optional(),\n memoryAllocation: z.bigint().optional(),\n computeAllocation: z.bigint().optional()\n});\n\n/**\n * Settings for a module - Satellite, Mission Control or Orbiter.\n *\n * These settings control various aspects of the module's behavior and resource usage.\n *\n * @interface ModuleSettings\n */\nexport interface ModuleSettings {\n /**\n * The cycle threshold below which the module will automatically stop to avoid running out of cycles.\n *\n * For example, if set to `BigInt(1000000)`, the module will stop when it has fewer than 1,000,000 cycles remaining.\n *\n * @type {bigint}\n */\n freezingThreshold?: bigint;\n\n /**\n * The number of cycles reserved for the module's operations to ensure it has enough cycles to function.\n *\n * For example, setting it to `BigInt(5000000)` reserves 5,000,000 cycles for the module.\n *\n * @type {bigint}\n */\n reservedCyclesLimit?: bigint;\n\n /**\n * Controls who can see the module's logs.\n *\n * @type {ModuleLogVisibility}\n */\n logVisibility?: ModuleLogVisibility;\n\n /**\n * The maximum amount of WebAssembly (Wasm) memory the module can use on the heap.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 64)` allows the module to use up to 64 MB of Wasm memory.\n *\n * @type {bigint}\n */\n heapMemoryLimit?: bigint;\n\n /**\n * The amount of memory explicitly allocated to the module.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module.\n *\n * @type {bigint}\n */\n memoryAllocation?: bigint;\n\n /**\n * The proportion of compute capacity allocated to the module.\n *\n * This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module.\n *\n * @type {bigint}\n */\n computeAllocation?: bigint;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoPackageDependencies\n */\nexport const JunoPackageDependenciesSchema = z.record(z.string(), z.string());\n\n/**\n * @see JunoPackage\n */\nexport const JunoPackageSchema = z.object({\n name: z.string(),\n version: z.string(),\n dependencies: JunoPackageDependenciesSchema.optional()\n});\n", "/**\n * The ID used to identify a Juno Satellite.\n *\n * It is either the name of a (stock) package or\n * used when checking if a canister includes `@junobuild/satellite` as a dependency.\n */\nexport const JUNO_PACKAGE_SATELLITE_ID = '@junobuild/satellite';\n\n/**\n * The ID used to identify a Juno Sputnik crate.\n *\n * Used when checking if a canister includes `@junobuild/sputnik` as a dependency.\n */\nexport const JUNO_PACKAGE_SPUTNIK_ID = '@junobuild/sputnik';\n\n/**\n * The ID used to identify a Juno Mission Control package.\n */\nexport const JUNO_PACKAGE_MISSION_CONTROL_ID = '@junobuild/mission-control';\n\n/**\n * The ID used to identify a Juno Orbiter package.\n */\nexport const JUNO_PACKAGE_ORBITER_ID = '@junobuild/orbiter';\n", "import type {JunoDevConfig} from './juno.dev.config';\n\nexport type JunoDevConfigFn = () => JunoDevConfig;\n\nexport type JunoDevConfigFnOrObject = JunoDevConfig | JunoDevConfigFn;\n\nexport function defineDevConfig(config: JunoDevConfig): JunoDevConfig;\nexport function defineDevConfig(config: JunoDevConfigFn): JunoDevConfigFn;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type Rule, RuleSchema} from '../types/rules';\n\n/**\n * @see SatelliteDevDataStoreCollection\n */\nexport const SatelliteDevDataStoreCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxSize: true,\n version: true\n});\n\n/**\n * Represents a database collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection\n */\nexport type SatelliteDevDataStoreCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxSize' | 'version'\n>;\n\n/**\n * @see SatelliteDevStorageCollection\n */\nexport const SatelliteDevStorageCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxCapacity: true,\n version: true\n});\n\n/**\n * Represents a Storage collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection\n */\nexport type SatelliteDevStorageCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'\n>;\n\n/**\n * @see SatelliteDevCollections\n */\nexport const SatelliteDevCollectionsSchema = z.strictObject({\n datastore: z.array(SatelliteDevDataStoreCollectionSchema).optional(),\n storage: z.array(SatelliteDevStorageCollectionSchema).optional()\n});\n\n/**\n * Represents the collections configuration for a satellite in a development environment.\n * @interface SatelliteDevCollections\n */\nexport interface SatelliteDevCollections {\n /**\n * The Datastore collections configuration.\n * @type {SatelliteDevDataStoreCollection[]}\n * @optional\n */\n datastore?: SatelliteDevDataStoreCollection[];\n\n /**\n * The Storage collections configuration.\n * @type {SatelliteDevStorageCollection[]}\n * @optional\n */\n storage?: SatelliteDevStorageCollection[];\n}\n\n/**\n * @see SatelliteDevController\n */\nexport const SatelliteDevControllerSchema = z.strictObject({\n id: PrincipalTextSchema,\n scope: z.enum(['write', 'admin', 'submit'])\n});\n\n/**\n * Represents a controller configuration for a satellite in a development environment.\n * @interface SatelliteDevController\n */\nexport interface SatelliteDevController {\n /**\n * The unique identifier of the controller.\n * @type {string}\n */\n id: PrincipalText;\n\n /**\n * The scope of the controller's permissions.\n * @type {'write' | 'admin'}\n */\n scope: 'write' | 'admin' | 'submit';\n}\n\n/**\n * @see SatelliteDevConfig\n */\nexport const SatelliteDevConfigSchema = z.strictObject({\n collections: SatelliteDevCollectionsSchema,\n controllers: z.array(SatelliteDevControllerSchema).optional()\n});\n\n/**\n * Represents the development configuration for a satellite.\n * @interface SatelliteDevConfig\n */\nexport interface SatelliteDevConfig {\n /**\n * The collections configuration.\n * @type {SatelliteDevCollections}\n */\n collections: SatelliteDevCollections;\n\n /**\n * The optional controllers configuration.\n * @type {SatelliteDevController[]}\n * @optional\n */\n controllers?: SatelliteDevController[];\n}\n\n/**\n * @see JunoDevConfig\n */\nexport const JunoDevConfigSchema = z.strictObject({\n satellite: SatelliteDevConfigSchema\n});\n\n/**\n * Represents the development configuration for Juno.\n * @interface JunoDevConfig\n */\nexport interface JunoDevConfig {\n /**\n * The development configuration for the satellite.\n * @type {SatelliteDevConfig}\n */\n satellite: SatelliteDevConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see PermissionText\n */\nexport const PermissionTextSchema = z.enum(['public', 'private', 'managed', 'controllers']);\n\n/**\n * Represents the permission levels for read and write access.\n * @typedef {'public' | 'private' | 'managed' | 'controllers'} PermissionText\n */\nexport type PermissionText = 'public' | 'private' | 'managed' | 'controllers';\n\n/**\n * @see MemoryText\n */\nexport const MemoryTextSchema = z.enum(['heap', 'stable']);\n\n/**\n * Represents the memory types.\n * @typedef {'heap' | 'stable'} MemoryText\n */\nexport type MemoryText = 'heap' | 'stable';\n\n/**\n * @see RulesType\n */\nexport const RulesTypeSchema = z.enum(['db', 'storage']);\n\n/**\n * Represents the types of rules.\n * @typedef {'db' | 'storage'} RulesType\n */\nexport type RulesType = 'db' | 'storage';\n\n/**\n * @see Rule\n */\nexport const RuleSchema = z.strictObject({\n collection: z.string(),\n read: PermissionTextSchema,\n write: PermissionTextSchema,\n memory: MemoryTextSchema,\n createdAt: z.bigint().optional(),\n updatedAt: z.bigint().optional(),\n version: z.bigint().optional(),\n maxSize: z.number().optional(),\n maxChangesPerUser: z.number().optional(),\n maxCapacity: z.number().optional(),\n mutablePermissions: z.boolean(),\n maxTokens: z.number().optional()\n});\n\n/**\n * Represents a rule configuration for a collection.\n * @interface Rule\n */\nexport interface Rule {\n /**\n * The name of the collection the rule applies to.\n * @type {string}\n */\n collection: string;\n\n /**\n * The permission level for read access.\n * @type {PermissionText}\n */\n read: PermissionText;\n\n /**\n * The permission level for write access.\n * @type {PermissionText}\n */\n write: PermissionText;\n\n /**\n * The type of memory allocated for the collection.\n * @type {MemoryText}\n */\n memory: MemoryText;\n\n /**\n * The timestamp when the rule was created.\n * @type {bigint}\n * @optional\n */\n createdAt?: bigint;\n\n /**\n * The timestamp when the rule was last updated.\n * @type {bigint}\n * @optional\n */\n updatedAt?: bigint;\n\n /**\n * The version of the rule.\n * @type {bigint}\n * @optional\n * @description Must be provided when updating the rule to ensure the correct version is being updated.\n */\n version?: bigint;\n\n /**\n * The maximum size of the collection in bytes.\n * @type {number}\n * @optional\n */\n maxSize?: number;\n\n /**\n * The maximum number of changes (create, update or delete) per user for the collection.\n * @type {number}\n * @optional\n */\n maxChangesPerUser?: number;\n\n /**\n * The maximum capacity of the collection.\n * @type {number}\n * @optional\n */\n maxCapacity?: number;\n\n /**\n * Indicates whether the permissions are mutable.\n * @type {boolean}\n */\n mutablePermissions: boolean;\n\n /**\n * The maximum number of writes and deletes per minute.\n */\n maxTokens?: number;\n}\n", "import type {JunoConfigEnv} from '../../types/juno.env';\nimport type {JunoConfig} from './juno.config';\n\nexport type JunoConfigFn = (config: JunoConfigEnv) => JunoConfig;\n\nexport type JunoConfigFnOrObject = JunoConfig | JunoConfigFn;\n\nexport function defineConfig(config: JunoConfig): JunoConfig;\nexport function defineConfig(config: JunoConfigFn): JunoConfigFn;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject {\n return config;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see SatelliteAssertions\n */\nexport const SatelliteAssertionsSchema = z.strictObject({\n heapMemory: z.union([z.number(), z.boolean()]).optional()\n});\n\n/**\n * Configuration for satellite assertions.\n * @interface SatelliteAssertions\n */\nexport interface SatelliteAssertions {\n /**\n * Configuration for the heap memory size check, which can be:\n * - `true` to enable the check with a default threshold of 900MB,\n * - `false` to disable the heap memory size check,\n * - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.\n *\n * If not specified, then `true` is used as the default value.\n * @type {number | boolean}\n */\n heapMemory?: number | boolean;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see AuthenticationConfigInternetIdentity\n */\nexport const AuthenticationConfigInternetIdentitySchema = z.strictObject({\n derivationOrigin: z.url().optional(),\n externalAlternativeOrigins: z.array(z.url()).optional()\n});\n\n/**\n * Configure the behavior of Internet Identity.\n * @interface AuthenticationConfigInternetIdentity\n */\nexport interface AuthenticationConfigInternetIdentity {\n /**\n * This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain.\n * For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com.\n * @type {string}\n * @optional\n */\n derivationOrigin?: string;\n\n /**\n * An optional list of external alternative origins allowed for authentication, which can be useful if you want to reuse the same derivation origin across multiple Satellites.\n * @type {string[]}\n * @optional\n */\n externalAlternativeOrigins?: string[];\n}\n\n/**\n * @see AuthenticationConfig\n */\nexport const AuthenticationConfigSchema = z.strictObject({\n internetIdentity: AuthenticationConfigInternetIdentitySchema.optional()\n});\n\n/**\n * Configures the Authentication options of a Satellite.\n * @interface AuthenticationConfig\n */\nexport interface AuthenticationConfig {\n /**\n * Optional configuration of Internet Identity authentication method.\n * @type {AuthenticationConfigInternetIdentity}\n * @optional\n */\n internetIdentity?: AuthenticationConfigInternetIdentity;\n}\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from '../../../shared/feature.config';\n\n/**\n * @see DatastoreConfig\n */\nexport const DatastoreConfigSchema = z.strictObject({\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the behavior of the Datastore.\n * @interface DatastoreConfig\n */\nexport interface DatastoreConfig {\n /**\n * Configuration for maximum memory size limits for the Datastore.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Datastore and smart contract continue to operate normally but reject the creation or updates of documents.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\nconst EmulatorPortsSchema = z.strictObject({\n /**\n * @default 5987\n */\n server: z.number().optional(),\n\n /**\n * @default 5999\n */\n admin: z.number().optional()\n});\n\nconst ConsolePortSchema = z.strictObject({\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: z.number().optional()\n});\n\n/**\n * Represents the ports exposed by an emulator container.\n */\nexport interface EmulatorPorts {\n /**\n * The port of the server used to simulate execution. This is the port your app connects to.\n * Also known as the \"local Internet Computer replica\" or the \"Pocket-IC port\".\n * @default 5987\n */\n server?: number;\n\n /**\n * The port of the admin server used for tasks like transferring ICP from the ledger.\n * @default 5999\n */\n admin?: number;\n}\n\n/**\n * @see EmulatorSkylab\n */\nconst EmulatorSkylabSchema = z.strictObject({\n ports: EmulatorPortsSchema.extend(ConsolePortSchema.shape).optional()\n});\n\n/**\n * Configuration for the Skylab emulator.\n */\nexport interface EmulatorSkylab {\n /**\n * Ports exposed by the Skylab container.\n */\n ports?: EmulatorPorts & {\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: number;\n };\n}\n\n/**\n * @see EmulatorConsole\n */\nconst EmulatorConsoleSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Console emulator.\n */\nexport interface EmulatorConsole {\n /**\n * Ports exposed by the Console container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorSatellite\n */\nconst EmulatorSatelliteSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Satellite emulator.\n */\nexport interface EmulatorSatellite {\n /**\n * Ports exposed by the Satellite container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorRunner\n */\nconst EmulatorRunnerSchema = z.strictObject({\n type: z.enum(['docker']),\n image: z.string().optional(),\n name: z.string().optional(),\n volume: z.string().optional(),\n target: z.string().optional()\n});\n\n/**\n * Shared options for all runner variants.\n */\nexport interface EmulatorRunner {\n /**\n * The containerization tool to run the emulator.\n */\n type: 'docker';\n\n /**\n * Image reference.\n * @default depends on emulator type, e.g. \"junobuild/skylab:latest\"\n */\n image?: string;\n\n /**\n * Optional container name to use for the emulator.\n * Useful for reusing or managing a specific container.\n */\n name?: string;\n\n /**\n * Persistent volume to store internal state.\n * @default \"juno\"\n */\n volume?: string;\n\n /**\n * Shared folder for deploying and hot-reloading serverless functions.\n */\n target?: string;\n}\n\n/**\n * @see EmulatorConfig\n */\nexport const EmulatorConfigSchema = z.union([\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n skylab: EmulatorSkylabSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n console: EmulatorConsoleSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n satellite: EmulatorSatelliteSchema\n })\n]);\n\n/**\n * The configuration for running the Juno emulator.\n */\nexport type EmulatorConfig =\n | {runner?: EmulatorRunner; skylab: EmulatorSkylab}\n | {runner?: EmulatorRunner; console: EmulatorConsole}\n | {runner?: EmulatorRunner; satellite: EmulatorSatellite};\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\n\n/**\n * @see OrbiterId\n */\nexport const OrbiterIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the configuration for an orbiter.\n * @interface OrbiterId\n */\nexport interface OrbiterId {\n /**\n * The identifier of the orbiter used in the dApp.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see OrbiterIds\n */\nexport const OrbiterIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.\n * @interface OrbiterIds\n */\nexport interface OrbiterIds {\n /**\n * A mapping of orbiter identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different orbiter IDs, such as production, development, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"development\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\n/**\n * @see OrbiterConfig\n */\nexport const OrbiterConfigSchema = z.union([OrbiterIdSchema.strict(), OrbiterIdsSchema.strict()]);\n\n/**\n * Represents the configuration for an orbiter (analytics).\n *\n * @typedef {Either<OrbiterId, OrbiterIds>} OrbiterConfig\n * @property {OrbiterId | OrbiterIds} OrbiterId or OrbiterIds - Defines a unique Orbiter or a collection of Orbiters.\n */\nexport type OrbiterConfig = Either<OrbiterId, OrbiterIds>;\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type ModuleSettings, ModuleSettingsSchema} from '../../../module/module.settings';\nimport {type StorageConfig, StorageConfigSchema} from '../../../shared/storage.config';\nimport type {CliConfig} from '../../../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\nimport {type SatelliteAssertions, SatelliteAssertionsSchema} from './assertions.config';\nimport {type AuthenticationConfig, AuthenticationConfigSchema} from './authentication.config';\nimport {type DatastoreConfig, DatastoreConfigSchema} from './datastore.config';\n\n/**\n * @see SatelliteId\n */\nexport const SatelliteIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a satellite.\n * @interface SatelliteId\n */\nexport interface SatelliteId {\n /**\n * The unique identifier (ID) of the satellite for this application.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see SatelliteIds\n */\nexport const SatelliteIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of satellite identifiers to different configurations based on the mode of the application.\n * @interface SatelliteIds\n */\nexport interface SatelliteIds {\n /**\n * A mapping of satellite identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different satellite IDs, such as production, staging, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"staging\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst SatelliteConfigOptionsBaseSchema = z.object({\n storage: StorageConfigSchema.optional(),\n datastore: DatastoreConfigSchema.optional(),\n authentication: AuthenticationConfigSchema.optional(),\n assertions: SatelliteAssertionsSchema.optional(),\n settings: ModuleSettingsSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const SatelliteConfigOptionsSchema = z.union([\n z\n .object({\n ...SatelliteIdSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...SatelliteIdsSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * SatelliteConfigOptions interface provides configuration settings that allow for fine-tuning\n * the operational behavior of various aspects of a Satellite, such as storage, datastore,\n * authentication, and deployment assertions.\n *\n * These options affect specific modules of the Satellite and may require manual application of\n * changes, typically through CLI commands (e.g., `juno config`).\n *\n * @interface SatelliteConfigOptions\n *\n * @property {StorageConfig} [storage] - Configuration settings for storage management in the Satellite.\n * @property {DatastoreConfig} [datastore] - Configuration settings for datastore management.\n * @property {AuthenticationConfig} [authentication] - Authentication-specific configurations.\n * @property {SatelliteAssertions} [assertions] - Conditions and assertions for deployment or operational checks.\n * @property {ModuleSettings} [settings] - General settings governing module behavior and resource management.\n */\nexport interface SatelliteConfigOptions {\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Datastore.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {DatastoreConfig}\n * @optional\n */\n datastore?: DatastoreConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Authentication.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {AuthenticationConfig}\n * @optional\n */\n authentication?: AuthenticationConfig;\n\n /**\n * Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions.\n * @type {SatelliteAssertions}\n * @optional\n */\n assertions?: SatelliteAssertions;\n\n /**\n * Optional configuration parameters for the Satellite.\n * These settings control various aspects of the module's behavior and resource usage.\n * @type {ModuleSettings}\n * @optional\n */\n settings?: ModuleSettings;\n}\n\n/**\n * Represents the configuration for a satellite.\n *\n * @typedef {Either<SatelliteId, SatelliteIds> & CliConfig & SatelliteConfigOptions} SatelliteConfig\n * @property {SatelliteId | SatelliteIds} SatelliteId or SatelliteIds - Defines a unique Satellite or a collection of Satellites.\n * @property {CliConfig} CliConfig - Configuration specific to the CLI interface.\n * @property {SatelliteConfigOptions} SatelliteConfigOptions - Additional configuration options for the Satellite.\n */\nexport type SatelliteConfig = Either<SatelliteId, SatelliteIds> &\n CliConfig &\n SatelliteConfigOptions;\n", "import * as z from 'zod/v4';\nimport {type EmulatorConfig, EmulatorConfigSchema} from './configs/emulator.config';\nimport {type OrbiterConfig, OrbiterConfigSchema} from './configs/orbiter.config';\nimport {type SatelliteConfig, SatelliteConfigOptionsSchema} from './configs/satellite.config';\n\n/**\n * @see JunoConfig\n */\nexport const JunoConfigSchema = z.strictObject({\n satellite: SatelliteConfigOptionsSchema,\n orbiter: OrbiterConfigSchema.optional(),\n emulator: EmulatorConfigSchema.optional()\n});\n\n/**\n * Represents the overall configuration for Juno.\n * @interface JunoConfig\n */\nexport interface JunoConfig {\n /**\n * The configuration for the satellite.\n * @type {SatelliteConfig}\n */\n satellite: SatelliteConfig;\n\n /**\n * The optional configuration for the orbiter.\n * @type {OrbiterConfig}\n * @optional\n */\n orbiter?: OrbiterConfig;\n\n /**\n * Your options for the emulator.\n */\n emulator?: EmulatorConfig;\n}\n"],
5
+ "mappings": "AAYO,SAASA,GACdC,EAC6B,CA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BYG,EAAwB,QAAM,CAACJ,GAAgB,OAAO,EAAGE,GAAiB,OAAO,CAAC,CAAC,ECtDhG,OAA4B,uBAAAG,MAA0B,uBACtD,UAAYC,MAAO,SAaZ,IAAMC,GAAsB,SAAO,CACxC,GAAIC,CACN,CAAC,EAiBYC,GAAuB,SAAO,CACzC,IAAO,SAAOC,EAAsBF,CAAmB,CACzD,CAAC,EAsBKG,EAAqC,SAAO,CAChD,QAASC,EAAoB,SAAS,EACtC,UAAWC,EAAsB,SAAS,EAC1C,eAAgBC,EAA2B,SAAS,EACpD,WAAYC,EAA0B,SAAS,EAC/C,SAAUC,EAAqB,SAAS,CAC1C,CAAC,EAKYC,EAAiC,QAAM,CAE/C,SAAO,CACN,GAAGV,GAAkB,MACrB,GAAGI,EAAiC,KACtC,CAAC,EACA,OAAO,EAEP,SAAO,CACN,GAAGF,GAAmB,MACtB,GAAGE,EAAiC,KACtC,CAAC,EACA,OAAO,CACZ,CAAC,ECjFD,UAAYO,MAAO,SAQZ,IAAMC,GAAqB,eAAa,CAC7C,UAAWC,EACX,QAASC,EAAoB,SAAS,EACtC,SAAUC,EAAqB,SAAS,CAC1C,CAAC",
6
+ "names": ["defineConsoleConfig", "config", "PrincipalTextSchema", "z", "z", "z", "MaxMemorySizeConfigSchema", "StorageConfigSourceGlobSchema", "StorageConfigHeaderSchema", "StorageConfigRewriteSchema", "StorageConfigRedirectSchema", "StorageConfigSchema", "MaxMemorySizeConfigSchema", "z", "z", "EncodingTypeSchema", "CliConfigSchema", "EncodingTypeSchema", "z", "JunoConfigModeSchema", "JunoConfigEnvSchema", "ConsoleIdSchema", "PrincipalTextSchema", "ConsoleIdsSchema", "JunoConfigModeSchema", "JunoConsoleConfigBaseSchema", "CliConfigSchema", "StorageConfigSchema", "JunoConsoleConfigSchema", "z", "ModuleLogVisibilitySchema", "ModuleSettingsSchema", "z", "JunoPackageDependenciesSchema", "JunoPackageSchema", "JUNO_PACKAGE_SATELLITE_ID", "JUNO_PACKAGE_SPUTNIK_ID", "JUNO_PACKAGE_MISSION_CONTROL_ID", "JUNO_PACKAGE_ORBITER_ID", "defineDevConfig", "config", "PrincipalTextSchema", "z", "z", "PermissionTextSchema", "MemoryTextSchema", "RulesTypeSchema", "RuleSchema", "SatelliteDevDataStoreCollectionSchema", "RuleSchema", "SatelliteDevStorageCollectionSchema", "SatelliteDevCollectionsSchema", "SatelliteDevControllerSchema", "PrincipalTextSchema", "SatelliteDevConfigSchema", "JunoDevConfigSchema", "defineConfig", "config", "z", "SatelliteAssertionsSchema", "z", "AuthenticationConfigInternetIdentitySchema", "AuthenticationConfigSchema", "z", "DatastoreConfigSchema", "MaxMemorySizeConfigSchema", "z", "EmulatorPortsSchema", "ConsolePortSchema", "EmulatorSkylabSchema", "EmulatorConsoleSchema", "EmulatorSatelliteSchema", "EmulatorRunnerSchema", "EmulatorConfigSchema", "PrincipalTextSchema", "z", "OrbiterIdSchema", "PrincipalTextSchema", "OrbiterIdsSchema", "JunoConfigModeSchema", "OrbiterConfigSchema", "PrincipalTextSchema", "z", "SatelliteIdSchema", "PrincipalTextSchema", "SatelliteIdsSchema", "JunoConfigModeSchema", "SatelliteConfigOptionsBaseSchema", "StorageConfigSchema", "DatastoreConfigSchema", "AuthenticationConfigSchema", "SatelliteAssertionsSchema", "ModuleSettingsSchema", "SatelliteConfigOptionsSchema", "z", "JunoConfigSchema", "SatelliteConfigOptionsSchema", "OrbiterConfigSchema", "EmulatorConfigSchema"]
7
7
  }
@@ -1,4 +1,4 @@
1
1
  import { createRequire as topLevelCreateRequire } from 'module';
2
2
  const require = topLevelCreateRequire(import.meta.url);
3
- function go(u){return u}import{PrincipalTextSchema as v}from"@dfinity/zod-schemas";import*as r from"zod/v4";import*as o from"zod/v4";import*as C from"zod/v4";var x=C.object({heap:C.bigint().optional(),stable:C.bigint().optional()}).strict();var d=o.string(),N=o.object({source:d,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),U=o.object({source:d,destination:o.string()}).strict(),K=o.object({source:d,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),S=o.object({headers:o.array(N).optional(),rewrites:o.array(U).optional(),redirects:o.array(K).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:x.optional()});import*as t from"zod/v4";import*as h from"zod/v4";var O=h.enum(["identity","gzip","compress","deflate","br"]);var J=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),O])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as p from"zod/v4";var g=p.union([p.literal("production"),p.string()]),yo=p.object({mode:g});var V=r.object({id:v}),B=r.object({ids:r.record(g,v)}),j=r.object({...J.shape,storage:S.optional()}),Do=r.union([r.object({...V.shape,...j.shape}).strict(),r.object({...B.shape,...j.shape}).strict()]);import*as a from"zod/v4";var H=a.enum(["controllers","public"]),D=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:H.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as c from"zod/v4";var $=c.record(c.string(),c.string()),Ao=c.object({name:c.string(),version:c.string(),dependencies:$.optional()});var Po="@junobuild/satellite",Io="@junobuild/sputnik",Fo="@junobuild/mission-control",Ro="@junobuild/orbiter";function _o(u){return u}import{PrincipalTextSchema as Q}from"@dfinity/zod-schemas";import*as i from"zod/v4";import*as n from"zod/v4";var M=n.enum(["public","private","managed","controllers"]),q=n.enum(["heap","stable"]),Lo=n.enum(["db","storage"]),z=n.strictObject({collection:n.string(),read:M,write:M,memory:q,createdAt:n.bigint().optional(),updatedAt:n.bigint().optional(),version:n.bigint().optional(),maxSize:n.number().optional(),maxChangesPerUser:n.number().optional(),maxCapacity:n.number().optional(),mutablePermissions:n.boolean(),maxTokens:n.number().optional()});var W=z.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),X=z.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Y=i.strictObject({datastore:i.array(W).optional(),storage:i.array(X).optional()}),Z=i.strictObject({id:Q,scope:i.enum(["write","admin","submit"])}),oo=i.strictObject({collections:Y,controllers:i.array(Z).optional()}),Ko=i.strictObject({satellite:oo});function Bo(u){return u}import*as l from"zod/v4";var E=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod/v4";var eo=m.strictObject({derivationOrigin:m.url().optional(),externalAlternativeOrigins:m.array(m.url()).optional()}),A=m.strictObject({internetIdentity:eo.optional()});import*as T from"zod/v4";var P=T.strictObject({maxMemorySize:x.optional()});import*as e from"zod/v4";var y=e.strictObject({server:e.number().optional(),admin:e.number().optional()}),to=e.strictObject({console:e.number().optional()}),I=e.string().regex(/\.(mjs|ts|js|json)$/i,{message:"Must be a .mjs, .ts, .js, or .json file"}),no=I,io=I,ro=e.strictObject({ports:y.extend(to.shape).optional(),config:no}),ao=e.strictObject({ports:y.optional()}),so=e.strictObject({ports:y.optional(),config:io}),b=e.strictObject({type:e.enum(["docker"]),image:e.string().optional(),name:e.string().optional(),volume:e.string().optional(),target:e.string().optional()}),F=e.union([e.strictObject({runner:b,skylab:ro}),e.strictObject({runner:b,console:ao}),e.strictObject({runner:b,satellite:so})]);import{PrincipalTextSchema as R}from"@dfinity/zod-schemas";import*as f from"zod/v4";var co=f.object({id:R}),po=f.object({ids:f.record(g,R)}),w=f.union([co.strict(),po.strict()]);import{PrincipalTextSchema as k}from"@dfinity/zod-schemas";import*as s from"zod/v4";var lo=s.object({id:k}),mo=s.object({ids:s.record(g,k)}),_=s.object({storage:S.optional(),datastore:P.optional(),authentication:A.optional(),assertions:E.optional(),settings:D.optional()}),L=s.union([s.object({...lo.shape,..._.shape}).strict(),s.object({...mo.shape,..._.shape}).strict()]);import*as G from"zod/v4";var ge=G.strictObject({satellite:L,orbiter:w.optional(),emulator:F.optional()});export{eo as AuthenticationConfigInternetIdentitySchema,A as AuthenticationConfigSchema,J as CliConfigSchema,V as ConsoleIdSchema,B as ConsoleIdsSchema,P as DatastoreConfigSchema,F as EmulatorConfigSchema,O as EncodingTypeSchema,Fo as JUNO_PACKAGE_MISSION_CONTROL_ID,Ro as JUNO_PACKAGE_ORBITER_ID,Po as JUNO_PACKAGE_SATELLITE_ID,Io as JUNO_PACKAGE_SPUTNIK_ID,yo as JunoConfigEnvSchema,g as JunoConfigModeSchema,ge as JunoConfigSchema,Do as JunoConsoleConfigSchema,Ko as JunoDevConfigSchema,$ as JunoPackageDependenciesSchema,Ao as JunoPackageSchema,x as MaxMemorySizeConfigSchema,q as MemoryTextSchema,H as ModuleLogVisibilitySchema,D as ModuleSettingsSchema,w as OrbiterConfigSchema,co as OrbiterIdSchema,po as OrbiterIdsSchema,M as PermissionTextSchema,z as RuleSchema,Lo as RulesTypeSchema,E as SatelliteAssertionsSchema,L as SatelliteConfigOptionsSchema,Y as SatelliteDevCollectionsSchema,oo as SatelliteDevConfigSchema,Z as SatelliteDevControllerSchema,W as SatelliteDevDataStoreCollectionSchema,X as SatelliteDevStorageCollectionSchema,lo as SatelliteIdSchema,mo as SatelliteIdsSchema,N as StorageConfigHeaderSchema,K as StorageConfigRedirectSchema,U as StorageConfigRewriteSchema,S as StorageConfigSchema,d as StorageConfigSourceGlobSchema,Bo as defineConfig,go as defineConsoleConfig,_o as defineDevConfig};
3
+ function so(u){return u}import{PrincipalTextSchema as v}from"@dfinity/zod-schemas";import*as r from"zod/v4";import*as o from"zod/v4";import*as C from"zod/v4";var x=C.object({heap:C.bigint().optional(),stable:C.bigint().optional()}).strict();var d=o.string(),G=o.object({source:d,headers:o.array(o.tuple([o.string(),o.string()]))}).strict(),N=o.object({source:d,destination:o.string()}).strict(),U=o.object({source:d,location:o.string(),code:o.union([o.literal(301),o.literal(302)])}).strict(),S=o.object({headers:o.array(G).optional(),rewrites:o.array(N).optional(),redirects:o.array(U).optional(),iframe:o.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:o.boolean().optional(),maxMemorySize:x.optional()});import*as t from"zod/v4";import*as h from"zod/v4";var O=h.enum(["identity","gzip","compress","deflate","br"]);var J=t.object({source:t.string().optional(),ignore:t.array(t.string()).optional(),gzip:t.union([t.string(),t.literal(!1)]).optional(),encoding:t.array(t.tuple([t.string(),O])).optional(),predeploy:t.array(t.string()).optional(),postdeploy:t.array(t.string()).optional()}).strict();import*as s from"zod/v4";var g=s.union([s.literal("production"),s.string()]),So=s.object({mode:g});var K=r.object({id:v}),V=r.object({ids:r.record(g,v)}),j=r.object({...J.shape,storage:S.optional()}),Jo=r.union([r.object({...K.shape,...j.shape}).strict(),r.object({...V.shape,...j.shape}).strict()]);import*as a from"zod/v4";var B=a.enum(["controllers","public"]),D=a.strictObject({freezingThreshold:a.bigint().optional(),reservedCyclesLimit:a.bigint().optional(),logVisibility:B.optional(),heapMemoryLimit:a.bigint().optional(),memoryAllocation:a.bigint().optional(),computeAllocation:a.bigint().optional()});import*as p from"zod/v4";var H=p.record(p.string(),p.string()),Do=p.object({name:p.string(),version:p.string(),dependencies:H.optional()});var Mo="@junobuild/satellite",Ao="@junobuild/sputnik",To="@junobuild/mission-control",Po="@junobuild/orbiter";function Fo(u){return u}import{PrincipalTextSchema as Q}from"@dfinity/zod-schemas";import*as i from"zod/v4";import*as n from"zod/v4";var E=n.enum(["public","private","managed","controllers"]),q=n.enum(["heap","stable"]),wo=n.enum(["db","storage"]),z=n.strictObject({collection:n.string(),read:E,write:E,memory:q,createdAt:n.bigint().optional(),updatedAt:n.bigint().optional(),version:n.bigint().optional(),maxSize:n.number().optional(),maxChangesPerUser:n.number().optional(),maxCapacity:n.number().optional(),mutablePermissions:n.boolean(),maxTokens:n.number().optional()});var W=z.omit({createdAt:!0,updatedAt:!0,maxSize:!0,version:!0}),X=z.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0,version:!0}),Y=i.strictObject({datastore:i.array(W).optional(),storage:i.array(X).optional()}),Z=i.strictObject({id:Q,scope:i.enum(["write","admin","submit"])}),$=i.strictObject({collections:Y,controllers:i.array(Z).optional()}),Go=i.strictObject({satellite:$});function Uo(u){return u}import*as l from"zod/v4";var M=l.strictObject({heapMemory:l.union([l.number(),l.boolean()]).optional()});import*as m from"zod/v4";var oo=m.strictObject({derivationOrigin:m.url().optional(),externalAlternativeOrigins:m.array(m.url()).optional()}),A=m.strictObject({internetIdentity:oo.optional()});import*as T from"zod/v4";var P=T.strictObject({maxMemorySize:x.optional()});import*as e from"zod/v4";var y=e.strictObject({server:e.number().optional(),admin:e.number().optional()}),eo=e.strictObject({console:e.number().optional()}),to=e.strictObject({ports:y.extend(eo.shape).optional()}),no=e.strictObject({ports:y.optional()}),io=e.strictObject({ports:y.optional()}),b=e.strictObject({type:e.enum(["docker"]),image:e.string().optional(),name:e.string().optional(),volume:e.string().optional(),target:e.string().optional()}),I=e.union([e.strictObject({runner:b.optional(),skylab:to}),e.strictObject({runner:b.optional(),console:no}),e.strictObject({runner:b.optional(),satellite:io})]);import{PrincipalTextSchema as F}from"@dfinity/zod-schemas";import*as f from"zod/v4";var ro=f.object({id:F}),ao=f.object({ids:f.record(g,F)}),R=f.union([ro.strict(),ao.strict()]);import{PrincipalTextSchema as _}from"@dfinity/zod-schemas";import*as c from"zod/v4";var co=c.object({id:_}),po=c.object({ids:c.record(g,_)}),w=c.object({storage:S.optional(),datastore:P.optional(),authentication:A.optional(),assertions:M.optional(),settings:D.optional()}),k=c.union([c.object({...co.shape,...w.shape}).strict(),c.object({...po.shape,...w.shape}).strict()]);import*as L from"zod/v4";var se=L.strictObject({satellite:k,orbiter:R.optional(),emulator:I.optional()});export{oo as AuthenticationConfigInternetIdentitySchema,A as AuthenticationConfigSchema,J as CliConfigSchema,K as ConsoleIdSchema,V as ConsoleIdsSchema,P as DatastoreConfigSchema,I as EmulatorConfigSchema,O as EncodingTypeSchema,To as JUNO_PACKAGE_MISSION_CONTROL_ID,Po as JUNO_PACKAGE_ORBITER_ID,Mo as JUNO_PACKAGE_SATELLITE_ID,Ao as JUNO_PACKAGE_SPUTNIK_ID,So as JunoConfigEnvSchema,g as JunoConfigModeSchema,se as JunoConfigSchema,Jo as JunoConsoleConfigSchema,Go as JunoDevConfigSchema,H as JunoPackageDependenciesSchema,Do as JunoPackageSchema,x as MaxMemorySizeConfigSchema,q as MemoryTextSchema,B as ModuleLogVisibilitySchema,D as ModuleSettingsSchema,R as OrbiterConfigSchema,ro as OrbiterIdSchema,ao as OrbiterIdsSchema,E as PermissionTextSchema,z as RuleSchema,wo as RulesTypeSchema,M as SatelliteAssertionsSchema,k as SatelliteConfigOptionsSchema,Y as SatelliteDevCollectionsSchema,$ as SatelliteDevConfigSchema,Z as SatelliteDevControllerSchema,W as SatelliteDevDataStoreCollectionSchema,X as SatelliteDevStorageCollectionSchema,co as SatelliteIdSchema,po as SatelliteIdsSchema,G as StorageConfigHeaderSchema,U as StorageConfigRedirectSchema,N as StorageConfigRewriteSchema,S as StorageConfigSchema,d as StorageConfigSourceGlobSchema,Uo as defineConfig,so as defineConsoleConfig,Fo as defineDevConfig};
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/console/config.ts", "../../src/console/console.config.ts", "../../src/shared/storage.config.ts", "../../src/shared/feature.config.ts", "../../src/types/cli.config.ts", "../../src/types/encoding.ts", "../../src/types/juno.env.ts", "../../src/module/module.settings.ts", "../../src/pkg/juno.package.ts", "../../src/pkg/juno.package.constants.ts", "../../src/satellite/dev/config.ts", "../../src/satellite/dev/juno.dev.config.ts", "../../src/satellite/types/rules.ts", "../../src/satellite/mainnet/config.ts", "../../src/satellite/mainnet/configs/assertions.config.ts", "../../src/satellite/mainnet/configs/authentication.config.ts", "../../src/satellite/mainnet/configs/datastore.config.ts", "../../src/satellite/mainnet/configs/emulator.config.ts", "../../src/satellite/mainnet/configs/orbiter.config.ts", "../../src/satellite/mainnet/configs/satellite.config.ts", "../../src/satellite/mainnet/juno.config.ts"],
4
- "sourcesContent": ["import type {JunoConfigEnv} from '../types/juno.env';\nimport type {JunoConsoleConfig} from './console.config';\n\nexport type JunoConsoleConfigFn = (config: JunoConfigEnv) => JunoConsoleConfig;\n\nexport type JunoConsoleConfigFnOrObject = JunoConsoleConfig | JunoConsoleConfigFn;\n\nexport function defineConsoleConfig(config: JunoConsoleConfig): JunoConsoleConfig;\nexport function defineConsoleConfig(config: JunoConsoleConfigFn): JunoConsoleConfigFn;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type StorageConfig, StorageConfigSchema} from '../shared/storage.config';\nimport {type CliConfig, CliConfigSchema} from '../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../types/juno.env';\nimport type {Either} from '../types/utility.types';\n\n/**\n * @see ConsoleId\n */\nexport const ConsoleIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a console.\n * @interface ConsoleId\n */\nexport interface ConsoleId {\n /**\n * The unique identifier (ID) of the console.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see ConsoleIds\n */\nexport const ConsoleIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of console identifiers to different configurations based on the mode of the application.\n * @interface ConsoleIds\n */\nexport interface ConsoleIds {\n /**\n * A mapping of console identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different console IDs, such as production, staging, etc.\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst JunoConsoleConfigBaseSchema = z.object({\n ...CliConfigSchema.shape,\n storage: StorageConfigSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const JunoConsoleConfigSchema = z.union([\n z\n .object({\n ...ConsoleIdSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...ConsoleIdsSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * Represents the configuration for a console.\n * @typedef {Either<ConsoleId, ConsoleIds>} ConsoleConfig\n */\nexport type JunoConsoleConfig = Either<ConsoleId, ConsoleIds> &\n CliConfig & {\n /**\n * Optional configuration parameters for the console, affecting the operational behavior of its Storage.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n };\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from './feature.config';\n\n/**\n * @see StorageConfigSourceGlob\n */\nexport const StorageConfigSourceGlobSchema = z.string();\n\n/**\n * Represents a glob pattern for matching files in the Storage configuration.\n * @typedef {string} StorageConfigSourceGlob\n */\nexport type StorageConfigSourceGlob = string;\n\n/**\n * @see StorageConfigHeader\n */\nexport const StorageConfigHeaderSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n headers: z.array(z.tuple([z.string(), z.string()]))\n })\n .strict();\n\n/**\n * Headers allow the client and the Storage to pass additional information along with a request or a response.\n * Some sets of headers can affect how the browser handles the page and its content.\n * @interface StorageConfigHeader\n */\nexport interface StorageConfigHeader {\n /**\n * The glob pattern used to match files within the Storage that these headers will apply to.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * An array of key-value pairs representing the headers to apply.\n * Each pair includes the header name and its value.\n * Example: `[[\"Cache-Control\", \"max-age=3600\"], [\"X-Custom-Header\", \"value\"]]`\n * @type {Array<[string, string]>}\n */\n headers: [string, string][];\n}\n\n/**\n * @see StorageConfigRewrite\n */\nexport const StorageConfigRewriteSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n destination: z.string()\n })\n .strict();\n\n/**\n * You can utilize optional rewrites to display the same content for multiple URLs.\n * Rewrites are especially useful when combined with pattern matching, allowing acceptance of any URL that matches the pattern.\n * @interface StorageConfigRewrite\n */\nexport interface StorageConfigRewrite {\n /**\n * The glob pattern or specific path to match for incoming requests.\n * Matches are rewritten to the specified destination.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The destination path or file to which matching requests should be rewritten.\n * @type {string}\n */\n destination: string;\n}\n\n/**\n * @see StorageConfigRedirect\n */\nexport const StorageConfigRedirectSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n location: z.string(),\n code: z.union([z.literal(301), z.literal(302)])\n })\n .strict();\n\n/**\n * Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs.\n * @interface StorageConfigRedirect\n */\nexport interface StorageConfigRedirect {\n /**\n * The glob pattern or specific path to match for incoming requests that should be redirected.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The URL or path to which the request should be redirected.\n * @type {string}\n */\n location: string;\n\n /**\n * The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect).\n * @type {301 | 302}\n */\n code: 301 | 302;\n}\n\n/**\n * @see StorageConfig\n */\nexport const StorageConfigSchema = z.object({\n headers: z.array(StorageConfigHeaderSchema).optional(),\n rewrites: z.array(StorageConfigRewriteSchema).optional(),\n redirects: z.array(StorageConfigRedirectSchema).optional(),\n iframe: z.enum(['deny', 'same-origin', 'allow-any']).optional(),\n rawAccess: z.boolean().optional(),\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the hosting behavior of the Storage.\n * @interface StorageConfig\n */\nexport interface StorageConfig {\n /**\n * Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns.\n * @type {StorageConfigHeader[]}\n * @optional\n */\n headers?: StorageConfigHeader[];\n\n /**\n * Optional array of `StorageConfigRewrite` objects to define rewrite rules.\n * @type {StorageConfigRewrite[]}\n * @optional\n */\n rewrites?: StorageConfigRewrite[];\n\n /**\n * Optional array of `StorageConfigRedirect` objects to define HTTP redirects.\n * @type {StorageConfigRedirect[]}\n * @optional\n */\n redirects?: StorageConfigRedirect[];\n\n /**\n * For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.\n *\n * Options are:\n * - `deny`: Prevents any content from being displayed in an iframe.\n * - `same-origin`: Allows iframe content from the same origin as the page.\n * - `allow-any`: Allows iframe content from any origin.\n *\n * If not specified, then `deny` is used as default value.\n * @type {'deny' | 'same-origin' | 'allow-any'}\n * @optional\n */\n iframe?: 'deny' | 'same-origin' | 'allow-any';\n\n /**\n * Optional flag to enable access for raw URLs.\n *\n * \u26A0\uFE0F **WARNING: Enabling this option is highly discouraged due to security risks.**\n *\n * Enabling this option allows access to raw URLs (e.g., https://satellite-id.raw.icp0.io), bypassing certificate validation.\n * This creates a security vulnerability where a malicious node in the chain can respond to requests with malicious or invalid content.\n * Since there is no validation on raw URLs, the client may receive and process harmful data.\n *\n * If not specified, the default value is `false`.\n * @type {boolean}\n * @optional\n */\n rawAccess?: boolean;\n\n /**\n * Configuration for maximum memory size limits for the Storage.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Storage and smart contract continue to operate normally but reject the upload of new assets.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see MaxMemorySizeConfig\n */\nexport const MaxMemorySizeConfigSchema = z\n .object({\n heap: z.bigint().optional(),\n stable: z.bigint().optional()\n })\n .strict();\n\n/**\n * Configuration for granting access to features only if the maximum memory size limits are not reached.\n *\n * The maximum size corresponds to the overall heap or stable memory of the smart contract.\n */\nexport interface MaxMemorySizeConfig {\n /**\n * Maximum allowed heap memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the heap memory size.\n *\n * @type {bigint}\n */\n heap?: bigint;\n\n /**\n * Maximum allowed stable memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the stable memory size.\n *\n * @type {bigint}\n */\n stable?: bigint;\n}\n", "import * as z from 'zod/v4';\nimport {type EncodingType, EncodingTypeSchema} from './encoding';\n\n/**\n * @see CliConfig\n */\nexport const CliConfigSchema = z\n .object({\n source: z.string().optional(),\n ignore: z.array(z.string()).optional(),\n gzip: z.union([z.string(), z.literal(false)]).optional(),\n encoding: z.array(z.tuple([z.string(), EncodingTypeSchema])).optional(),\n predeploy: z.array(z.string()).optional(),\n postdeploy: z.array(z.string()).optional()\n })\n .strict();\n\nexport interface CliConfig {\n /**\n * Specifies the directory from which to deploy to Storage.\n * For instance, if `npm run build` outputs files to a `dist` folder, use `source: 'dist'`.\n *\n * @default 'build'\n * @type {string}\n */\n source?: string;\n\n /**\n * Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.\n * @type {string[]}\n * @optional\n */\n ignore?: string[];\n\n /**\n * Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.\n * You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax.\n * @type {string | false}\n * @optional\n */\n gzip?: string | false;\n\n /**\n * Customizes file encoding mapping for HTTP response headers `Content-Encoding` based on file extension:\n * - `.Z` for compress,\n * - `.gz` for gzip,\n * - `.br` for brotli,\n * - `.zlib` for deflate,\n * - anything else defaults to `identity`.\n * The \"encoding\" attribute allows overriding default mappings with an array of glob patterns and encoding types.\n * @type {Array<[string, EncodingType]>}\n * @optional\n */\n encoding?: Array<[string, EncodingType]>;\n\n /**\n * Defines a list of scripts or commands to be run before the deployment process begins.\n * This can be useful for tasks such as compiling assets, running tests, or building production-ready files.\n *\n * Example:\n * ```json\n * {\n * \"predeploy\": [\"npm run build\", \"npm run lint\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n predeploy?: string[];\n\n /**\n * Defines a list of scripts or commands to be run after the deployment process completes.\n * This can be used for tasks such as notifications, cleanup, or sending confirmation messages to services or team members.\n *\n * Example:\n * ```json\n * {\n * \"postdeploy\": [\"./scripts/notify-admins.sh\", \"echo 'Deployment complete'\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n postdeploy?: string[];\n}\n", "import * as z from 'zod/v4';\n\n/**\n * see EncodingType\n */\nexport const EncodingTypeSchema = z.enum(['identity', 'gzip', 'compress', 'deflate', 'br']);\n\n/**\n * Represents the encoding types for assets.\n * @typedef {'identity' | 'gzip' | 'compress' | 'deflate' | 'br'} EncodingType\n */\nexport type EncodingType = 'identity' | 'gzip' | 'compress' | 'deflate' | 'br';\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoConfigMode\n */\nexport const JunoConfigModeSchema = z.union([z.literal('production'), z.string()]);\n\n/**\n * Represents the mode of the Juno configuration.\n * @typedef {'production' | string} JunoConfigMode\n */\nexport type JunoConfigMode = 'production' | string;\n\n/**\n * @see JunoConfigEnv\n */\nexport const JunoConfigEnvSchema = z.object({\n mode: JunoConfigModeSchema\n});\n\n/**\n * Represents the environment configuration for Juno.\n * @interface JunoConfigEnv\n */\nexport interface JunoConfigEnv {\n /**\n * The mode of the Juno configuration.\n * @type {JunoConfigMode}\n */\n mode: JunoConfigMode;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see ModuleLogVisibility\n */\nexport const ModuleLogVisibilitySchema = z.enum(['controllers', 'public']);\n\n/**\n * Specifies who can see the logs of the module.\n *\n * - 'controllers': Only the controllers of the module can see the logs.\n * - 'public': Everyone can see the logs.\n *\n * @typedef {'controllers' | 'public'} ModuleLogVisibility\n */\nexport type ModuleLogVisibility = 'controllers' | 'public';\n\n/**\n * @see ModuleSettings\n */\nexport const ModuleSettingsSchema = z.strictObject({\n freezingThreshold: z.bigint().optional(),\n reservedCyclesLimit: z.bigint().optional(),\n logVisibility: ModuleLogVisibilitySchema.optional(),\n heapMemoryLimit: z.bigint().optional(),\n memoryAllocation: z.bigint().optional(),\n computeAllocation: z.bigint().optional()\n});\n\n/**\n * Settings for a module - Satellite, Mission Control or Orbiter.\n *\n * These settings control various aspects of the module's behavior and resource usage.\n *\n * @interface ModuleSettings\n */\nexport interface ModuleSettings {\n /**\n * The cycle threshold below which the module will automatically stop to avoid running out of cycles.\n *\n * For example, if set to `BigInt(1000000)`, the module will stop when it has fewer than 1,000,000 cycles remaining.\n *\n * @type {bigint}\n */\n freezingThreshold?: bigint;\n\n /**\n * The number of cycles reserved for the module's operations to ensure it has enough cycles to function.\n *\n * For example, setting it to `BigInt(5000000)` reserves 5,000,000 cycles for the module.\n *\n * @type {bigint}\n */\n reservedCyclesLimit?: bigint;\n\n /**\n * Controls who can see the module's logs.\n *\n * @type {ModuleLogVisibility}\n */\n logVisibility?: ModuleLogVisibility;\n\n /**\n * The maximum amount of WebAssembly (Wasm) memory the module can use on the heap.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 64)` allows the module to use up to 64 MB of Wasm memory.\n *\n * @type {bigint}\n */\n heapMemoryLimit?: bigint;\n\n /**\n * The amount of memory explicitly allocated to the module.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module.\n *\n * @type {bigint}\n */\n memoryAllocation?: bigint;\n\n /**\n * The proportion of compute capacity allocated to the module.\n *\n * This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module.\n *\n * @type {bigint}\n */\n computeAllocation?: bigint;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoPackageDependencies\n */\nexport const JunoPackageDependenciesSchema = z.record(z.string(), z.string());\n\n/**\n * @see JunoPackage\n */\nexport const JunoPackageSchema = z.object({\n name: z.string(),\n version: z.string(),\n dependencies: JunoPackageDependenciesSchema.optional()\n});\n", "/**\n * The ID used to identify a Juno Satellite.\n *\n * It is either the name of a (stock) package or\n * used when checking if a canister includes `@junobuild/satellite` as a dependency.\n */\nexport const JUNO_PACKAGE_SATELLITE_ID = '@junobuild/satellite';\n\n/**\n * The ID used to identify a Juno Sputnik crate.\n *\n * Used when checking if a canister includes `@junobuild/sputnik` as a dependency.\n */\nexport const JUNO_PACKAGE_SPUTNIK_ID = '@junobuild/sputnik';\n\n/**\n * The ID used to identify a Juno Mission Control package.\n */\nexport const JUNO_PACKAGE_MISSION_CONTROL_ID = '@junobuild/mission-control';\n\n/**\n * The ID used to identify a Juno Orbiter package.\n */\nexport const JUNO_PACKAGE_ORBITER_ID = '@junobuild/orbiter';\n", "import type {JunoDevConfig} from './juno.dev.config';\n\nexport type JunoDevConfigFn = () => JunoDevConfig;\n\nexport type JunoDevConfigFnOrObject = JunoDevConfig | JunoDevConfigFn;\n\nexport function defineDevConfig(config: JunoDevConfig): JunoDevConfig;\nexport function defineDevConfig(config: JunoDevConfigFn): JunoDevConfigFn;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type Rule, RuleSchema} from '../types/rules';\n\n/**\n * @see SatelliteDevDataStoreCollection\n */\nexport const SatelliteDevDataStoreCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxSize: true,\n version: true\n});\n\n/**\n * Represents a database collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection\n */\nexport type SatelliteDevDataStoreCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxSize' | 'version'\n>;\n\n/**\n * @see SatelliteDevStorageCollection\n */\nexport const SatelliteDevStorageCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxCapacity: true,\n version: true\n});\n\n/**\n * Represents a Storage collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection\n */\nexport type SatelliteDevStorageCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'\n>;\n\n/**\n * @see SatelliteDevCollections\n */\nexport const SatelliteDevCollectionsSchema = z.strictObject({\n datastore: z.array(SatelliteDevDataStoreCollectionSchema).optional(),\n storage: z.array(SatelliteDevStorageCollectionSchema).optional()\n});\n\n/**\n * Represents the collections configuration for a satellite in a development environment.\n * @interface SatelliteDevCollections\n */\nexport interface SatelliteDevCollections {\n /**\n * The Datastore collections configuration.\n * @type {SatelliteDevDataStoreCollection[]}\n * @optional\n */\n datastore?: SatelliteDevDataStoreCollection[];\n\n /**\n * The Storage collections configuration.\n * @type {SatelliteDevStorageCollection[]}\n * @optional\n */\n storage?: SatelliteDevStorageCollection[];\n}\n\n/**\n * @see SatelliteDevController\n */\nexport const SatelliteDevControllerSchema = z.strictObject({\n id: PrincipalTextSchema,\n scope: z.enum(['write', 'admin', 'submit'])\n});\n\n/**\n * Represents a controller configuration for a satellite in a development environment.\n * @interface SatelliteDevController\n */\nexport interface SatelliteDevController {\n /**\n * The unique identifier of the controller.\n * @type {string}\n */\n id: PrincipalText;\n\n /**\n * The scope of the controller's permissions.\n * @type {'write' | 'admin'}\n */\n scope: 'write' | 'admin' | 'submit';\n}\n\n/**\n * @see SatelliteDevConfig\n */\nexport const SatelliteDevConfigSchema = z.strictObject({\n collections: SatelliteDevCollectionsSchema,\n controllers: z.array(SatelliteDevControllerSchema).optional()\n});\n\n/**\n * Represents the development configuration for a satellite.\n * @interface SatelliteDevConfig\n */\nexport interface SatelliteDevConfig {\n /**\n * The collections configuration.\n * @type {SatelliteDevCollections}\n */\n collections: SatelliteDevCollections;\n\n /**\n * The optional controllers configuration.\n * @type {SatelliteDevController[]}\n * @optional\n */\n controllers?: SatelliteDevController[];\n}\n\n/**\n * @see JunoDevConfig\n */\nexport const JunoDevConfigSchema = z.strictObject({\n satellite: SatelliteDevConfigSchema\n});\n\n/**\n * Represents the development configuration for Juno.\n * @interface JunoDevConfig\n */\nexport interface JunoDevConfig {\n /**\n * The development configuration for the satellite.\n * @type {SatelliteDevConfig}\n */\n satellite: SatelliteDevConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see PermissionText\n */\nexport const PermissionTextSchema = z.enum(['public', 'private', 'managed', 'controllers']);\n\n/**\n * Represents the permission levels for read and write access.\n * @typedef {'public' | 'private' | 'managed' | 'controllers'} PermissionText\n */\nexport type PermissionText = 'public' | 'private' | 'managed' | 'controllers';\n\n/**\n * @see MemoryText\n */\nexport const MemoryTextSchema = z.enum(['heap', 'stable']);\n\n/**\n * Represents the memory types.\n * @typedef {'heap' | 'stable'} MemoryText\n */\nexport type MemoryText = 'heap' | 'stable';\n\n/**\n * @see RulesType\n */\nexport const RulesTypeSchema = z.enum(['db', 'storage']);\n\n/**\n * Represents the types of rules.\n * @typedef {'db' | 'storage'} RulesType\n */\nexport type RulesType = 'db' | 'storage';\n\n/**\n * @see Rule\n */\nexport const RuleSchema = z.strictObject({\n collection: z.string(),\n read: PermissionTextSchema,\n write: PermissionTextSchema,\n memory: MemoryTextSchema,\n createdAt: z.bigint().optional(),\n updatedAt: z.bigint().optional(),\n version: z.bigint().optional(),\n maxSize: z.number().optional(),\n maxChangesPerUser: z.number().optional(),\n maxCapacity: z.number().optional(),\n mutablePermissions: z.boolean(),\n maxTokens: z.number().optional()\n});\n\n/**\n * Represents a rule configuration for a collection.\n * @interface Rule\n */\nexport interface Rule {\n /**\n * The name of the collection the rule applies to.\n * @type {string}\n */\n collection: string;\n\n /**\n * The permission level for read access.\n * @type {PermissionText}\n */\n read: PermissionText;\n\n /**\n * The permission level for write access.\n * @type {PermissionText}\n */\n write: PermissionText;\n\n /**\n * The type of memory allocated for the collection.\n * @type {MemoryText}\n */\n memory: MemoryText;\n\n /**\n * The timestamp when the rule was created.\n * @type {bigint}\n * @optional\n */\n createdAt?: bigint;\n\n /**\n * The timestamp when the rule was last updated.\n * @type {bigint}\n * @optional\n */\n updatedAt?: bigint;\n\n /**\n * The version of the rule.\n * @type {bigint}\n * @optional\n * @description Must be provided when updating the rule to ensure the correct version is being updated.\n */\n version?: bigint;\n\n /**\n * The maximum size of the collection in bytes.\n * @type {number}\n * @optional\n */\n maxSize?: number;\n\n /**\n * The maximum number of changes (create, update or delete) per user for the collection.\n * @type {number}\n * @optional\n */\n maxChangesPerUser?: number;\n\n /**\n * The maximum capacity of the collection.\n * @type {number}\n * @optional\n */\n maxCapacity?: number;\n\n /**\n * Indicates whether the permissions are mutable.\n * @type {boolean}\n */\n mutablePermissions: boolean;\n\n /**\n * The maximum number of writes and deletes per minute.\n */\n maxTokens?: number;\n}\n", "import type {JunoConfigEnv} from '../../types/juno.env';\nimport type {JunoConfig} from './juno.config';\n\nexport type JunoConfigFn = (config: JunoConfigEnv) => JunoConfig;\n\nexport type JunoConfigFnOrObject = JunoConfig | JunoConfigFn;\n\nexport function defineConfig(config: JunoConfig): JunoConfig;\nexport function defineConfig(config: JunoConfigFn): JunoConfigFn;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject {\n return config;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see SatelliteAssertions\n */\nexport const SatelliteAssertionsSchema = z.strictObject({\n heapMemory: z.union([z.number(), z.boolean()]).optional()\n});\n\n/**\n * Configuration for satellite assertions.\n * @interface SatelliteAssertions\n */\nexport interface SatelliteAssertions {\n /**\n * Configuration for the heap memory size check, which can be:\n * - `true` to enable the check with a default threshold of 900MB,\n * - `false` to disable the heap memory size check,\n * - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.\n *\n * If not specified, then `true` is used as the default value.\n * @type {number | boolean}\n */\n heapMemory?: number | boolean;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see AuthenticationConfigInternetIdentity\n */\nexport const AuthenticationConfigInternetIdentitySchema = z.strictObject({\n derivationOrigin: z.url().optional(),\n externalAlternativeOrigins: z.array(z.url()).optional()\n});\n\n/**\n * Configure the behavior of Internet Identity.\n * @interface AuthenticationConfigInternetIdentity\n */\nexport interface AuthenticationConfigInternetIdentity {\n /**\n * This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain.\n * For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com.\n * @type {string}\n * @optional\n */\n derivationOrigin?: string;\n\n /**\n * An optional list of external alternative origins allowed for authentication, which can be useful if you want to reuse the same derivation origin across multiple Satellites.\n * @type {string[]}\n * @optional\n */\n externalAlternativeOrigins?: string[];\n}\n\n/**\n * @see AuthenticationConfig\n */\nexport const AuthenticationConfigSchema = z.strictObject({\n internetIdentity: AuthenticationConfigInternetIdentitySchema.optional()\n});\n\n/**\n * Configures the Authentication options of a Satellite.\n * @interface AuthenticationConfig\n */\nexport interface AuthenticationConfig {\n /**\n * Optional configuration of Internet Identity authentication method.\n * @type {AuthenticationConfigInternetIdentity}\n * @optional\n */\n internetIdentity?: AuthenticationConfigInternetIdentity;\n}\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from '../../../shared/feature.config';\n\n/**\n * @see DatastoreConfig\n */\nexport const DatastoreConfigSchema = z.strictObject({\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the behavior of the Datastore.\n * @interface DatastoreConfig\n */\nexport interface DatastoreConfig {\n /**\n * Configuration for maximum memory size limits for the Datastore.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Datastore and smart contract continue to operate normally but reject the creation or updates of documents.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\nconst EmulatorPortsSchema = z.strictObject({\n /**\n * @default 5987\n */\n server: z.number().optional(),\n\n /**\n * @default 5999\n */\n admin: z.number().optional()\n});\n\nconst ConsolePortSchema = z.strictObject({\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: z.number().optional()\n});\n\n/**\n * Represents the ports exposed by an emulator container.\n */\nexport interface EmulatorPorts {\n /**\n * The port of the server used to simulate execution. This is the port your app connects to.\n * Also known as the \"local Internet Computer replica\" or the \"Pocket-IC port\".\n * @default 5987\n */\n server?: number;\n\n /**\n * The port of the admin server used for tasks like transferring ICP from the ledger.\n * @default 5999\n */\n admin?: number;\n}\n\n/**\n * Accepts .mjs, .ts, .js, or .json\n */\nconst ConfigFileSchema = z.string().regex(/\\.(mjs|ts|js|json)$/i, {\n message: 'Must be a .mjs, .ts, .js, or .json file'\n});\n\n/**\n * @see JunoConfigFile\n */\nconst JunoConfigFileSchema = ConfigFileSchema;\n\n/**\n * Represents a Juno configuration file path.\n * Must end in `.mjs`, `.ts`, `.js`, or `.json`.\n */\nexport type JunoConfigFile = string;\n\n/**\n * @see JunoDevConfigFile\n */\nconst JunoDevConfigFileSchema = ConfigFileSchema;\n\n/**\n * Represents a Juno development config file path.\n * Must end in `.mjs`, `.ts`, `.js`, or `.json`.\n */\nexport type JunoDevConfigFile = string;\n\n/**\n * @see EmulatorSkylab\n */\nconst EmulatorSkylabSchema = z.strictObject({\n ports: EmulatorPortsSchema.extend(ConsolePortSchema.shape).optional(),\n config: JunoConfigFileSchema\n});\n\n/**\n * Configuration for the Skylab emulator.\n */\nexport interface EmulatorSkylab {\n /**\n * Ports exposed by the Skylab container.\n */\n ports?: EmulatorPorts & {\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: number;\n };\n\n /**\n * Path to the Juno config file.\n */\n config: JunoConfigFile;\n}\n\n/**\n * @see EmulatorConsole\n */\nconst EmulatorConsoleSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Console emulator.\n */\nexport interface EmulatorConsole {\n /**\n * Ports exposed by the Console container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorSatellite\n */\nconst EmulatorSatelliteSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional(),\n config: JunoDevConfigFileSchema\n});\n\n/**\n * Configuration for the Satellite emulator.\n */\nexport interface EmulatorSatellite {\n /**\n * Ports exposed by the Satellite container.\n */\n ports?: EmulatorPorts;\n\n /**\n * Path to the dev config file to customize Satellite behavior.\n */\n config: JunoDevConfigFile;\n}\n\n/**\n * @see EmulatorRunner\n */\nconst EmulatorRunnerSchema = z.strictObject({\n type: z.enum(['docker']),\n image: z.string().optional(),\n name: z.string().optional(),\n volume: z.string().optional(),\n target: z.string().optional()\n});\n\n/**\n * Shared options for all runner variants.\n */\nexport interface EmulatorRunner {\n /**\n * The containerization tool to run the emulator.\n */\n type: 'docker';\n\n /**\n * Image reference.\n * @default depends on emulator type, e.g. \"junobuild/skylab:latest\"\n */\n image?: string;\n\n /**\n * Optional container name to use for the emulator.\n * Useful for reusing or managing a specific container.\n */\n name?: string;\n\n /**\n * Persistent volume to store internal state.\n * @default \"juno\"\n */\n volume?: string;\n\n /**\n * Shared folder for deploying and hot-reloading serverless functions.\n */\n target?: string;\n}\n\n/**\n * @see EmulatorConfig\n */\nexport const EmulatorConfigSchema = z.union([\n z.strictObject({\n runner: EmulatorRunnerSchema,\n skylab: EmulatorSkylabSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema,\n console: EmulatorConsoleSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema,\n satellite: EmulatorSatelliteSchema\n })\n]);\n\n/**\n * The configuration for running the Juno emulator.\n */\nexport type EmulatorConfig =\n | {runner: EmulatorRunner; skylab: EmulatorSkylab}\n | {runner: EmulatorRunner; console: EmulatorConsole}\n | {runner: EmulatorRunner; satellite: EmulatorSatellite};\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\n\n/**\n * @see OrbiterId\n */\nexport const OrbiterIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the configuration for an orbiter.\n * @interface OrbiterId\n */\nexport interface OrbiterId {\n /**\n * The identifier of the orbiter used in the dApp.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see OrbiterIds\n */\nexport const OrbiterIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.\n * @interface OrbiterIds\n */\nexport interface OrbiterIds {\n /**\n * A mapping of orbiter identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different orbiter IDs, such as production, development, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"development\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\n/**\n * @see OrbiterConfig\n */\nexport const OrbiterConfigSchema = z.union([OrbiterIdSchema.strict(), OrbiterIdsSchema.strict()]);\n\n/**\n * Represents the configuration for an orbiter (analytics).\n *\n * @typedef {Either<OrbiterId, OrbiterIds>} OrbiterConfig\n * @property {OrbiterId | OrbiterIds} OrbiterId or OrbiterIds - Defines a unique Orbiter or a collection of Orbiters.\n */\nexport type OrbiterConfig = Either<OrbiterId, OrbiterIds>;\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type ModuleSettings, ModuleSettingsSchema} from '../../../module/module.settings';\nimport {type StorageConfig, StorageConfigSchema} from '../../../shared/storage.config';\nimport type {CliConfig} from '../../../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\nimport {type SatelliteAssertions, SatelliteAssertionsSchema} from './assertions.config';\nimport {type AuthenticationConfig, AuthenticationConfigSchema} from './authentication.config';\nimport {type DatastoreConfig, DatastoreConfigSchema} from './datastore.config';\n\n/**\n * @see SatelliteId\n */\nexport const SatelliteIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a satellite.\n * @interface SatelliteId\n */\nexport interface SatelliteId {\n /**\n * The unique identifier (ID) of the satellite for this application.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see SatelliteIds\n */\nexport const SatelliteIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of satellite identifiers to different configurations based on the mode of the application.\n * @interface SatelliteIds\n */\nexport interface SatelliteIds {\n /**\n * A mapping of satellite identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different satellite IDs, such as production, staging, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"staging\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst SatelliteConfigOptionsBaseSchema = z.object({\n storage: StorageConfigSchema.optional(),\n datastore: DatastoreConfigSchema.optional(),\n authentication: AuthenticationConfigSchema.optional(),\n assertions: SatelliteAssertionsSchema.optional(),\n settings: ModuleSettingsSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const SatelliteConfigOptionsSchema = z.union([\n z\n .object({\n ...SatelliteIdSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...SatelliteIdsSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * SatelliteConfigOptions interface provides configuration settings that allow for fine-tuning\n * the operational behavior of various aspects of a Satellite, such as storage, datastore,\n * authentication, and deployment assertions.\n *\n * These options affect specific modules of the Satellite and may require manual application of\n * changes, typically through CLI commands (e.g., `juno config`).\n *\n * @interface SatelliteConfigOptions\n *\n * @property {StorageConfig} [storage] - Configuration settings for storage management in the Satellite.\n * @property {DatastoreConfig} [datastore] - Configuration settings for datastore management.\n * @property {AuthenticationConfig} [authentication] - Authentication-specific configurations.\n * @property {SatelliteAssertions} [assertions] - Conditions and assertions for deployment or operational checks.\n * @property {ModuleSettings} [settings] - General settings governing module behavior and resource management.\n */\nexport interface SatelliteConfigOptions {\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Datastore.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {DatastoreConfig}\n * @optional\n */\n datastore?: DatastoreConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Authentication.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {AuthenticationConfig}\n * @optional\n */\n authentication?: AuthenticationConfig;\n\n /**\n * Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions.\n * @type {SatelliteAssertions}\n * @optional\n */\n assertions?: SatelliteAssertions;\n\n /**\n * Optional configuration parameters for the Satellite.\n * These settings control various aspects of the module's behavior and resource usage.\n * @type {ModuleSettings}\n * @optional\n */\n settings?: ModuleSettings;\n}\n\n/**\n * Represents the configuration for a satellite.\n *\n * @typedef {Either<SatelliteId, SatelliteIds> & CliConfig & SatelliteConfigOptions} SatelliteConfig\n * @property {SatelliteId | SatelliteIds} SatelliteId or SatelliteIds - Defines a unique Satellite or a collection of Satellites.\n * @property {CliConfig} CliConfig - Configuration specific to the CLI interface.\n * @property {SatelliteConfigOptions} SatelliteConfigOptions - Additional configuration options for the Satellite.\n */\nexport type SatelliteConfig = Either<SatelliteId, SatelliteIds> &\n CliConfig &\n SatelliteConfigOptions;\n", "import * as z from 'zod/v4';\nimport {type EmulatorConfig, EmulatorConfigSchema} from './configs/emulator.config';\nimport {type OrbiterConfig, OrbiterConfigSchema} from './configs/orbiter.config';\nimport {type SatelliteConfig, SatelliteConfigOptionsSchema} from './configs/satellite.config';\n\n/**\n * @see JunoConfig\n */\nexport const JunoConfigSchema = z.strictObject({\n satellite: SatelliteConfigOptionsSchema,\n orbiter: OrbiterConfigSchema.optional(),\n emulator: EmulatorConfigSchema.optional()\n});\n\n/**\n * Represents the overall configuration for Juno.\n * @interface JunoConfig\n */\nexport interface JunoConfig {\n /**\n * The configuration for the satellite.\n * @type {SatelliteConfig}\n */\n satellite: SatelliteConfig;\n\n /**\n * The optional configuration for the orbiter.\n * @type {OrbiterConfig}\n * @optional\n */\n orbiter?: OrbiterConfig;\n\n /**\n * Your options for the emulator.\n */\n emulator?: EmulatorConfig;\n}\n"],
5
- "mappings": ";;AAYO,SAASA,GACdC,EAC6B,CAC7B,OAAOA,CACT,CChBA,OAA4B,uBAAAC,MAA0B,uBACtD,UAAYC,MAAO,SCDnB,UAAYC,MAAO,SCAnB,UAAYC,MAAO,SAKZ,IAAMC,EACV,SAAO,CACN,KAAQ,SAAO,EAAE,SAAS,EAC1B,OAAU,SAAO,EAAE,SAAS,CAC9B,CAAC,EACA,OAAO,EDJH,IAAMC,EAAkC,SAAO,EAWzCC,EACV,SAAO,CACN,OAAQD,EACR,QAAW,QAAQ,QAAM,CAAG,SAAO,EAAK,SAAO,CAAC,CAAC,CAAC,CACpD,CAAC,EACA,OAAO,EA0BGE,EACV,SAAO,CACN,OAAQF,EACR,YAAe,SAAO,CACxB,CAAC,EACA,OAAO,EAyBGG,EACV,SAAO,CACN,OAAQH,EACR,SAAY,SAAO,EACnB,KAAQ,QAAM,CAAG,UAAQ,GAAG,EAAK,UAAQ,GAAG,CAAC,CAAC,CAChD,CAAC,EACA,OAAO,EA6BGI,EAAwB,SAAO,CAC1C,QAAW,QAAMH,CAAyB,EAAE,SAAS,EACrD,SAAY,QAAMC,CA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O,CACZ,CAAC,ECjFD,UAAYO,MAAO,SAQZ,IAAMC,GAAqB,eAAa,CAC7C,UAAWC,EACX,QAASC,EAAoB,SAAS,EACtC,SAAUC,EAAqB,SAAS,CAC1C,CAAC",
6
- "names": ["defineConsoleConfig", "config", "PrincipalTextSchema", "z", "z", "z", "MaxMemorySizeConfigSchema", "StorageConfigSourceGlobSchema", "StorageConfigHeaderSchema", "StorageConfigRewriteSchema", "StorageConfigRedirectSchema", "StorageConfigSchema", "MaxMemorySizeConfigSchema", "z", "z", "EncodingTypeSchema", "CliConfigSchema", "EncodingTypeSchema", "z", "JunoConfigModeSchema", "JunoConfigEnvSchema", "ConsoleIdSchema", "PrincipalTextSchema", "ConsoleIdsSchema", "JunoConfigModeSchema", "JunoConsoleConfigBaseSchema", "CliConfigSchema", "StorageConfigSchema", "JunoConsoleConfigSchema", "z", "ModuleLogVisibilitySchema", "ModuleSettingsSchema", "z", "JunoPackageDependenciesSchema", "JunoPackageSchema", "JUNO_PACKAGE_SATELLITE_ID", "JUNO_PACKAGE_SPUTNIK_ID", "JUNO_PACKAGE_MISSION_CONTROL_ID", "JUNO_PACKAGE_ORBITER_ID", "defineDevConfig", "config", "PrincipalTextSchema", "z", "z", "PermissionTextSchema", "MemoryTextSchema", "RulesTypeSchema", "RuleSchema", "SatelliteDevDataStoreCollectionSchema", "RuleSchema", "SatelliteDevStorageCollectionSchema", "SatelliteDevCollectionsSchema", "SatelliteDevControllerSchema", "PrincipalTextSchema", "SatelliteDevConfigSchema", "JunoDevConfigSchema", "defineConfig", "config", "z", "SatelliteAssertionsSchema", "z", "AuthenticationConfigInternetIdentitySchema", "AuthenticationConfigSchema", "z", "DatastoreConfigSchema", "MaxMemorySizeConfigSchema", "z", "EmulatorPortsSchema", "ConsolePortSchema", "ConfigFileSchema", "JunoConfigFileSchema", "JunoDevConfigFileSchema", "EmulatorSkylabSchema", "EmulatorConsoleSchema", "EmulatorSatelliteSchema", "EmulatorRunnerSchema", "EmulatorConfigSchema", "PrincipalTextSchema", "z", "OrbiterIdSchema", "PrincipalTextSchema", "OrbiterIdsSchema", "JunoConfigModeSchema", "OrbiterConfigSchema", "PrincipalTextSchema", "z", "SatelliteIdSchema", "PrincipalTextSchema", "SatelliteIdsSchema", "JunoConfigModeSchema", "SatelliteConfigOptionsBaseSchema", "StorageConfigSchema", "DatastoreConfigSchema", "AuthenticationConfigSchema", "SatelliteAssertionsSchema", "ModuleSettingsSchema", "SatelliteConfigOptionsSchema", "z", "JunoConfigSchema", "SatelliteConfigOptionsSchema", "OrbiterConfigSchema", "EmulatorConfigSchema"]
4
+ "sourcesContent": ["import type {JunoConfigEnv} from '../types/juno.env';\nimport type {JunoConsoleConfig} from './console.config';\n\nexport type JunoConsoleConfigFn = (config: JunoConfigEnv) => JunoConsoleConfig;\n\nexport type JunoConsoleConfigFnOrObject = JunoConsoleConfig | JunoConsoleConfigFn;\n\nexport function defineConsoleConfig(config: JunoConsoleConfig): JunoConsoleConfig;\nexport function defineConsoleConfig(config: JunoConsoleConfigFn): JunoConsoleConfigFn;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject;\nexport function defineConsoleConfig(\n config: JunoConsoleConfigFnOrObject\n): JunoConsoleConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type StorageConfig, StorageConfigSchema} from '../shared/storage.config';\nimport {type CliConfig, CliConfigSchema} from '../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../types/juno.env';\nimport type {Either} from '../types/utility.types';\n\n/**\n * @see ConsoleId\n */\nexport const ConsoleIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a console.\n * @interface ConsoleId\n */\nexport interface ConsoleId {\n /**\n * The unique identifier (ID) of the console.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see ConsoleIds\n */\nexport const ConsoleIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of console identifiers to different configurations based on the mode of the application.\n * @interface ConsoleIds\n */\nexport interface ConsoleIds {\n /**\n * A mapping of console identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different console IDs, such as production, staging, etc.\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst JunoConsoleConfigBaseSchema = z.object({\n ...CliConfigSchema.shape,\n storage: StorageConfigSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const JunoConsoleConfigSchema = z.union([\n z\n .object({\n ...ConsoleIdSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...ConsoleIdsSchema.shape,\n ...JunoConsoleConfigBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * Represents the configuration for a console.\n * @typedef {Either<ConsoleId, ConsoleIds>} ConsoleConfig\n */\nexport type JunoConsoleConfig = Either<ConsoleId, ConsoleIds> &\n CliConfig & {\n /**\n * Optional configuration parameters for the console, affecting the operational behavior of its Storage.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n };\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from './feature.config';\n\n/**\n * @see StorageConfigSourceGlob\n */\nexport const StorageConfigSourceGlobSchema = z.string();\n\n/**\n * Represents a glob pattern for matching files in the Storage configuration.\n * @typedef {string} StorageConfigSourceGlob\n */\nexport type StorageConfigSourceGlob = string;\n\n/**\n * @see StorageConfigHeader\n */\nexport const StorageConfigHeaderSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n headers: z.array(z.tuple([z.string(), z.string()]))\n })\n .strict();\n\n/**\n * Headers allow the client and the Storage to pass additional information along with a request or a response.\n * Some sets of headers can affect how the browser handles the page and its content.\n * @interface StorageConfigHeader\n */\nexport interface StorageConfigHeader {\n /**\n * The glob pattern used to match files within the Storage that these headers will apply to.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * An array of key-value pairs representing the headers to apply.\n * Each pair includes the header name and its value.\n * Example: `[[\"Cache-Control\", \"max-age=3600\"], [\"X-Custom-Header\", \"value\"]]`\n * @type {Array<[string, string]>}\n */\n headers: [string, string][];\n}\n\n/**\n * @see StorageConfigRewrite\n */\nexport const StorageConfigRewriteSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n destination: z.string()\n })\n .strict();\n\n/**\n * You can utilize optional rewrites to display the same content for multiple URLs.\n * Rewrites are especially useful when combined with pattern matching, allowing acceptance of any URL that matches the pattern.\n * @interface StorageConfigRewrite\n */\nexport interface StorageConfigRewrite {\n /**\n * The glob pattern or specific path to match for incoming requests.\n * Matches are rewritten to the specified destination.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The destination path or file to which matching requests should be rewritten.\n * @type {string}\n */\n destination: string;\n}\n\n/**\n * @see StorageConfigRedirect\n */\nexport const StorageConfigRedirectSchema = z\n .object({\n source: StorageConfigSourceGlobSchema,\n location: z.string(),\n code: z.union([z.literal(301), z.literal(302)])\n })\n .strict();\n\n/**\n * Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs.\n * @interface StorageConfigRedirect\n */\nexport interface StorageConfigRedirect {\n /**\n * The glob pattern or specific path to match for incoming requests that should be redirected.\n * @type {StorageConfigSourceGlob}\n */\n source: StorageConfigSourceGlob;\n\n /**\n * The URL or path to which the request should be redirected.\n * @type {string}\n */\n location: string;\n\n /**\n * The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect).\n * @type {301 | 302}\n */\n code: 301 | 302;\n}\n\n/**\n * @see StorageConfig\n */\nexport const StorageConfigSchema = z.object({\n headers: z.array(StorageConfigHeaderSchema).optional(),\n rewrites: z.array(StorageConfigRewriteSchema).optional(),\n redirects: z.array(StorageConfigRedirectSchema).optional(),\n iframe: z.enum(['deny', 'same-origin', 'allow-any']).optional(),\n rawAccess: z.boolean().optional(),\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the hosting behavior of the Storage.\n * @interface StorageConfig\n */\nexport interface StorageConfig {\n /**\n * Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns.\n * @type {StorageConfigHeader[]}\n * @optional\n */\n headers?: StorageConfigHeader[];\n\n /**\n * Optional array of `StorageConfigRewrite` objects to define rewrite rules.\n * @type {StorageConfigRewrite[]}\n * @optional\n */\n rewrites?: StorageConfigRewrite[];\n\n /**\n * Optional array of `StorageConfigRedirect` objects to define HTTP redirects.\n * @type {StorageConfigRedirect[]}\n * @optional\n */\n redirects?: StorageConfigRedirect[];\n\n /**\n * For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.\n *\n * Options are:\n * - `deny`: Prevents any content from being displayed in an iframe.\n * - `same-origin`: Allows iframe content from the same origin as the page.\n * - `allow-any`: Allows iframe content from any origin.\n *\n * If not specified, then `deny` is used as default value.\n * @type {'deny' | 'same-origin' | 'allow-any'}\n * @optional\n */\n iframe?: 'deny' | 'same-origin' | 'allow-any';\n\n /**\n * Optional flag to enable access for raw URLs.\n *\n * \u26A0\uFE0F **WARNING: Enabling this option is highly discouraged due to security risks.**\n *\n * Enabling this option allows access to raw URLs (e.g., https://satellite-id.raw.icp0.io), bypassing certificate validation.\n * This creates a security vulnerability where a malicious node in the chain can respond to requests with malicious or invalid content.\n * Since there is no validation on raw URLs, the client may receive and process harmful data.\n *\n * If not specified, the default value is `false`.\n * @type {boolean}\n * @optional\n */\n rawAccess?: boolean;\n\n /**\n * Configuration for maximum memory size limits for the Storage.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Storage and smart contract continue to operate normally but reject the upload of new assets.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see MaxMemorySizeConfig\n */\nexport const MaxMemorySizeConfigSchema = z\n .object({\n heap: z.bigint().optional(),\n stable: z.bigint().optional()\n })\n .strict();\n\n/**\n * Configuration for granting access to features only if the maximum memory size limits are not reached.\n *\n * The maximum size corresponds to the overall heap or stable memory of the smart contract.\n */\nexport interface MaxMemorySizeConfig {\n /**\n * Maximum allowed heap memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the heap memory size.\n *\n * @type {bigint}\n */\n heap?: bigint;\n\n /**\n * Maximum allowed stable memory size in bytes.\n *\n * This field is optional. If not specified, no limit is enforced on the stable memory size.\n *\n * @type {bigint}\n */\n stable?: bigint;\n}\n", "import * as z from 'zod/v4';\nimport {type EncodingType, EncodingTypeSchema} from './encoding';\n\n/**\n * @see CliConfig\n */\nexport const CliConfigSchema = z\n .object({\n source: z.string().optional(),\n ignore: z.array(z.string()).optional(),\n gzip: z.union([z.string(), z.literal(false)]).optional(),\n encoding: z.array(z.tuple([z.string(), EncodingTypeSchema])).optional(),\n predeploy: z.array(z.string()).optional(),\n postdeploy: z.array(z.string()).optional()\n })\n .strict();\n\nexport interface CliConfig {\n /**\n * Specifies the directory from which to deploy to Storage.\n * For instance, if `npm run build` outputs files to a `dist` folder, use `source: 'dist'`.\n *\n * @default 'build'\n * @type {string}\n */\n source?: string;\n\n /**\n * Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.\n * @type {string[]}\n * @optional\n */\n ignore?: string[];\n\n /**\n * Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.\n * You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax.\n * @type {string | false}\n * @optional\n */\n gzip?: string | false;\n\n /**\n * Customizes file encoding mapping for HTTP response headers `Content-Encoding` based on file extension:\n * - `.Z` for compress,\n * - `.gz` for gzip,\n * - `.br` for brotli,\n * - `.zlib` for deflate,\n * - anything else defaults to `identity`.\n * The \"encoding\" attribute allows overriding default mappings with an array of glob patterns and encoding types.\n * @type {Array<[string, EncodingType]>}\n * @optional\n */\n encoding?: Array<[string, EncodingType]>;\n\n /**\n * Defines a list of scripts or commands to be run before the deployment process begins.\n * This can be useful for tasks such as compiling assets, running tests, or building production-ready files.\n *\n * Example:\n * ```json\n * {\n * \"predeploy\": [\"npm run build\", \"npm run lint\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n predeploy?: string[];\n\n /**\n * Defines a list of scripts or commands to be run after the deployment process completes.\n * This can be used for tasks such as notifications, cleanup, or sending confirmation messages to services or team members.\n *\n * Example:\n * ```json\n * {\n * \"postdeploy\": [\"./scripts/notify-admins.sh\", \"echo 'Deployment complete'\"]\n * }\n * ```\n *\n * @type {string[]}\n * @optional\n */\n postdeploy?: string[];\n}\n", "import * as z from 'zod/v4';\n\n/**\n * see EncodingType\n */\nexport const EncodingTypeSchema = z.enum(['identity', 'gzip', 'compress', 'deflate', 'br']);\n\n/**\n * Represents the encoding types for assets.\n * @typedef {'identity' | 'gzip' | 'compress' | 'deflate' | 'br'} EncodingType\n */\nexport type EncodingType = 'identity' | 'gzip' | 'compress' | 'deflate' | 'br';\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoConfigMode\n */\nexport const JunoConfigModeSchema = z.union([z.literal('production'), z.string()]);\n\n/**\n * Represents the mode of the Juno configuration.\n * @typedef {'production' | string} JunoConfigMode\n */\nexport type JunoConfigMode = 'production' | string;\n\n/**\n * @see JunoConfigEnv\n */\nexport const JunoConfigEnvSchema = z.object({\n mode: JunoConfigModeSchema\n});\n\n/**\n * Represents the environment configuration for Juno.\n * @interface JunoConfigEnv\n */\nexport interface JunoConfigEnv {\n /**\n * The mode of the Juno configuration.\n * @type {JunoConfigMode}\n */\n mode: JunoConfigMode;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see ModuleLogVisibility\n */\nexport const ModuleLogVisibilitySchema = z.enum(['controllers', 'public']);\n\n/**\n * Specifies who can see the logs of the module.\n *\n * - 'controllers': Only the controllers of the module can see the logs.\n * - 'public': Everyone can see the logs.\n *\n * @typedef {'controllers' | 'public'} ModuleLogVisibility\n */\nexport type ModuleLogVisibility = 'controllers' | 'public';\n\n/**\n * @see ModuleSettings\n */\nexport const ModuleSettingsSchema = z.strictObject({\n freezingThreshold: z.bigint().optional(),\n reservedCyclesLimit: z.bigint().optional(),\n logVisibility: ModuleLogVisibilitySchema.optional(),\n heapMemoryLimit: z.bigint().optional(),\n memoryAllocation: z.bigint().optional(),\n computeAllocation: z.bigint().optional()\n});\n\n/**\n * Settings for a module - Satellite, Mission Control or Orbiter.\n *\n * These settings control various aspects of the module's behavior and resource usage.\n *\n * @interface ModuleSettings\n */\nexport interface ModuleSettings {\n /**\n * The cycle threshold below which the module will automatically stop to avoid running out of cycles.\n *\n * For example, if set to `BigInt(1000000)`, the module will stop when it has fewer than 1,000,000 cycles remaining.\n *\n * @type {bigint}\n */\n freezingThreshold?: bigint;\n\n /**\n * The number of cycles reserved for the module's operations to ensure it has enough cycles to function.\n *\n * For example, setting it to `BigInt(5000000)` reserves 5,000,000 cycles for the module.\n *\n * @type {bigint}\n */\n reservedCyclesLimit?: bigint;\n\n /**\n * Controls who can see the module's logs.\n *\n * @type {ModuleLogVisibility}\n */\n logVisibility?: ModuleLogVisibility;\n\n /**\n * The maximum amount of WebAssembly (Wasm) memory the module can use on the heap.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 64)` allows the module to use up to 64 MB of Wasm memory.\n *\n * @type {bigint}\n */\n heapMemoryLimit?: bigint;\n\n /**\n * The amount of memory explicitly allocated to the module.\n *\n * For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module.\n *\n * @type {bigint}\n */\n memoryAllocation?: bigint;\n\n /**\n * The proportion of compute capacity allocated to the module.\n *\n * This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module.\n *\n * @type {bigint}\n */\n computeAllocation?: bigint;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see JunoPackageDependencies\n */\nexport const JunoPackageDependenciesSchema = z.record(z.string(), z.string());\n\n/**\n * @see JunoPackage\n */\nexport const JunoPackageSchema = z.object({\n name: z.string(),\n version: z.string(),\n dependencies: JunoPackageDependenciesSchema.optional()\n});\n", "/**\n * The ID used to identify a Juno Satellite.\n *\n * It is either the name of a (stock) package or\n * used when checking if a canister includes `@junobuild/satellite` as a dependency.\n */\nexport const JUNO_PACKAGE_SATELLITE_ID = '@junobuild/satellite';\n\n/**\n * The ID used to identify a Juno Sputnik crate.\n *\n * Used when checking if a canister includes `@junobuild/sputnik` as a dependency.\n */\nexport const JUNO_PACKAGE_SPUTNIK_ID = '@junobuild/sputnik';\n\n/**\n * The ID used to identify a Juno Mission Control package.\n */\nexport const JUNO_PACKAGE_MISSION_CONTROL_ID = '@junobuild/mission-control';\n\n/**\n * The ID used to identify a Juno Orbiter package.\n */\nexport const JUNO_PACKAGE_ORBITER_ID = '@junobuild/orbiter';\n", "import type {JunoDevConfig} from './juno.dev.config';\n\nexport type JunoDevConfigFn = () => JunoDevConfig;\n\nexport type JunoDevConfigFnOrObject = JunoDevConfig | JunoDevConfigFn;\n\nexport function defineDevConfig(config: JunoDevConfig): JunoDevConfig;\nexport function defineDevConfig(config: JunoDevConfigFn): JunoDevConfigFn;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject;\nexport function defineDevConfig(config: JunoDevConfigFnOrObject): JunoDevConfigFnOrObject {\n return config;\n}\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type Rule, RuleSchema} from '../types/rules';\n\n/**\n * @see SatelliteDevDataStoreCollection\n */\nexport const SatelliteDevDataStoreCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxSize: true,\n version: true\n});\n\n/**\n * Represents a database collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxSize' | 'version'>} SatelliteDevDataStoreCollection\n */\nexport type SatelliteDevDataStoreCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxSize' | 'version'\n>;\n\n/**\n * @see SatelliteDevStorageCollection\n */\nexport const SatelliteDevStorageCollectionSchema = RuleSchema.omit({\n createdAt: true,\n updatedAt: true,\n maxCapacity: true,\n version: true\n});\n\n/**\n * Represents a Storage collection configuration for a satellite in a development environment.\n * @typedef {Omit<Rule, 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'>} SatelliteDevStorageCollection\n */\nexport type SatelliteDevStorageCollection = Omit<\n Rule,\n 'createdAt' | 'updatedAt' | 'maxCapacity' | 'version'\n>;\n\n/**\n * @see SatelliteDevCollections\n */\nexport const SatelliteDevCollectionsSchema = z.strictObject({\n datastore: z.array(SatelliteDevDataStoreCollectionSchema).optional(),\n storage: z.array(SatelliteDevStorageCollectionSchema).optional()\n});\n\n/**\n * Represents the collections configuration for a satellite in a development environment.\n * @interface SatelliteDevCollections\n */\nexport interface SatelliteDevCollections {\n /**\n * The Datastore collections configuration.\n * @type {SatelliteDevDataStoreCollection[]}\n * @optional\n */\n datastore?: SatelliteDevDataStoreCollection[];\n\n /**\n * The Storage collections configuration.\n * @type {SatelliteDevStorageCollection[]}\n * @optional\n */\n storage?: SatelliteDevStorageCollection[];\n}\n\n/**\n * @see SatelliteDevController\n */\nexport const SatelliteDevControllerSchema = z.strictObject({\n id: PrincipalTextSchema,\n scope: z.enum(['write', 'admin', 'submit'])\n});\n\n/**\n * Represents a controller configuration for a satellite in a development environment.\n * @interface SatelliteDevController\n */\nexport interface SatelliteDevController {\n /**\n * The unique identifier of the controller.\n * @type {string}\n */\n id: PrincipalText;\n\n /**\n * The scope of the controller's permissions.\n * @type {'write' | 'admin'}\n */\n scope: 'write' | 'admin' | 'submit';\n}\n\n/**\n * @see SatelliteDevConfig\n */\nexport const SatelliteDevConfigSchema = z.strictObject({\n collections: SatelliteDevCollectionsSchema,\n controllers: z.array(SatelliteDevControllerSchema).optional()\n});\n\n/**\n * Represents the development configuration for a satellite.\n * @interface SatelliteDevConfig\n */\nexport interface SatelliteDevConfig {\n /**\n * The collections configuration.\n * @type {SatelliteDevCollections}\n */\n collections: SatelliteDevCollections;\n\n /**\n * The optional controllers configuration.\n * @type {SatelliteDevController[]}\n * @optional\n */\n controllers?: SatelliteDevController[];\n}\n\n/**\n * @see JunoDevConfig\n */\nexport const JunoDevConfigSchema = z.strictObject({\n satellite: SatelliteDevConfigSchema\n});\n\n/**\n * Represents the development configuration for Juno.\n * @interface JunoDevConfig\n */\nexport interface JunoDevConfig {\n /**\n * The development configuration for the satellite.\n * @type {SatelliteDevConfig}\n */\n satellite: SatelliteDevConfig;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see PermissionText\n */\nexport const PermissionTextSchema = z.enum(['public', 'private', 'managed', 'controllers']);\n\n/**\n * Represents the permission levels for read and write access.\n * @typedef {'public' | 'private' | 'managed' | 'controllers'} PermissionText\n */\nexport type PermissionText = 'public' | 'private' | 'managed' | 'controllers';\n\n/**\n * @see MemoryText\n */\nexport const MemoryTextSchema = z.enum(['heap', 'stable']);\n\n/**\n * Represents the memory types.\n * @typedef {'heap' | 'stable'} MemoryText\n */\nexport type MemoryText = 'heap' | 'stable';\n\n/**\n * @see RulesType\n */\nexport const RulesTypeSchema = z.enum(['db', 'storage']);\n\n/**\n * Represents the types of rules.\n * @typedef {'db' | 'storage'} RulesType\n */\nexport type RulesType = 'db' | 'storage';\n\n/**\n * @see Rule\n */\nexport const RuleSchema = z.strictObject({\n collection: z.string(),\n read: PermissionTextSchema,\n write: PermissionTextSchema,\n memory: MemoryTextSchema,\n createdAt: z.bigint().optional(),\n updatedAt: z.bigint().optional(),\n version: z.bigint().optional(),\n maxSize: z.number().optional(),\n maxChangesPerUser: z.number().optional(),\n maxCapacity: z.number().optional(),\n mutablePermissions: z.boolean(),\n maxTokens: z.number().optional()\n});\n\n/**\n * Represents a rule configuration for a collection.\n * @interface Rule\n */\nexport interface Rule {\n /**\n * The name of the collection the rule applies to.\n * @type {string}\n */\n collection: string;\n\n /**\n * The permission level for read access.\n * @type {PermissionText}\n */\n read: PermissionText;\n\n /**\n * The permission level for write access.\n * @type {PermissionText}\n */\n write: PermissionText;\n\n /**\n * The type of memory allocated for the collection.\n * @type {MemoryText}\n */\n memory: MemoryText;\n\n /**\n * The timestamp when the rule was created.\n * @type {bigint}\n * @optional\n */\n createdAt?: bigint;\n\n /**\n * The timestamp when the rule was last updated.\n * @type {bigint}\n * @optional\n */\n updatedAt?: bigint;\n\n /**\n * The version of the rule.\n * @type {bigint}\n * @optional\n * @description Must be provided when updating the rule to ensure the correct version is being updated.\n */\n version?: bigint;\n\n /**\n * The maximum size of the collection in bytes.\n * @type {number}\n * @optional\n */\n maxSize?: number;\n\n /**\n * The maximum number of changes (create, update or delete) per user for the collection.\n * @type {number}\n * @optional\n */\n maxChangesPerUser?: number;\n\n /**\n * The maximum capacity of the collection.\n * @type {number}\n * @optional\n */\n maxCapacity?: number;\n\n /**\n * Indicates whether the permissions are mutable.\n * @type {boolean}\n */\n mutablePermissions: boolean;\n\n /**\n * The maximum number of writes and deletes per minute.\n */\n maxTokens?: number;\n}\n", "import type {JunoConfigEnv} from '../../types/juno.env';\nimport type {JunoConfig} from './juno.config';\n\nexport type JunoConfigFn = (config: JunoConfigEnv) => JunoConfig;\n\nexport type JunoConfigFnOrObject = JunoConfig | JunoConfigFn;\n\nexport function defineConfig(config: JunoConfig): JunoConfig;\nexport function defineConfig(config: JunoConfigFn): JunoConfigFn;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject;\nexport function defineConfig(config: JunoConfigFnOrObject): JunoConfigFnOrObject {\n return config;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see SatelliteAssertions\n */\nexport const SatelliteAssertionsSchema = z.strictObject({\n heapMemory: z.union([z.number(), z.boolean()]).optional()\n});\n\n/**\n * Configuration for satellite assertions.\n * @interface SatelliteAssertions\n */\nexport interface SatelliteAssertions {\n /**\n * Configuration for the heap memory size check, which can be:\n * - `true` to enable the check with a default threshold of 900MB,\n * - `false` to disable the heap memory size check,\n * - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.\n *\n * If not specified, then `true` is used as the default value.\n * @type {number | boolean}\n */\n heapMemory?: number | boolean;\n}\n", "import * as z from 'zod/v4';\n\n/**\n * @see AuthenticationConfigInternetIdentity\n */\nexport const AuthenticationConfigInternetIdentitySchema = z.strictObject({\n derivationOrigin: z.url().optional(),\n externalAlternativeOrigins: z.array(z.url()).optional()\n});\n\n/**\n * Configure the behavior of Internet Identity.\n * @interface AuthenticationConfigInternetIdentity\n */\nexport interface AuthenticationConfigInternetIdentity {\n /**\n * This setting ensures that users are recognized on your app, regardless of whether they use the default URL or any other custom domain.\n * For example, if set to hello.com, a user signing on at https://hello.com will receive the same identifier (principal) as when signing on at https://www.hello.com.\n * @type {string}\n * @optional\n */\n derivationOrigin?: string;\n\n /**\n * An optional list of external alternative origins allowed for authentication, which can be useful if you want to reuse the same derivation origin across multiple Satellites.\n * @type {string[]}\n * @optional\n */\n externalAlternativeOrigins?: string[];\n}\n\n/**\n * @see AuthenticationConfig\n */\nexport const AuthenticationConfigSchema = z.strictObject({\n internetIdentity: AuthenticationConfigInternetIdentitySchema.optional()\n});\n\n/**\n * Configures the Authentication options of a Satellite.\n * @interface AuthenticationConfig\n */\nexport interface AuthenticationConfig {\n /**\n * Optional configuration of Internet Identity authentication method.\n * @type {AuthenticationConfigInternetIdentity}\n * @optional\n */\n internetIdentity?: AuthenticationConfigInternetIdentity;\n}\n", "import * as z from 'zod/v4';\nimport {type MaxMemorySizeConfig, MaxMemorySizeConfigSchema} from '../../../shared/feature.config';\n\n/**\n * @see DatastoreConfig\n */\nexport const DatastoreConfigSchema = z.strictObject({\n maxMemorySize: MaxMemorySizeConfigSchema.optional()\n});\n\n/**\n * Configures the behavior of the Datastore.\n * @interface DatastoreConfig\n */\nexport interface DatastoreConfig {\n /**\n * Configuration for maximum memory size limits for the Datastore.\n *\n * This is used to specify optional limits on heap and stable memory for the smart contract.\n * When the limit is reached, the Datastore and smart contract continue to operate normally but reject the creation or updates of documents.\n *\n * If not specified, no memory limits are enforced.\n *\n * @type {MaxMemorySizeConfig}\n * @optional\n */\n maxMemorySize?: MaxMemorySizeConfig;\n}\n", "import * as z from 'zod/v4';\n\nconst EmulatorPortsSchema = z.strictObject({\n /**\n * @default 5987\n */\n server: z.number().optional(),\n\n /**\n * @default 5999\n */\n admin: z.number().optional()\n});\n\nconst ConsolePortSchema = z.strictObject({\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: z.number().optional()\n});\n\n/**\n * Represents the ports exposed by an emulator container.\n */\nexport interface EmulatorPorts {\n /**\n * The port of the server used to simulate execution. This is the port your app connects to.\n * Also known as the \"local Internet Computer replica\" or the \"Pocket-IC port\".\n * @default 5987\n */\n server?: number;\n\n /**\n * The port of the admin server used for tasks like transferring ICP from the ledger.\n * @default 5999\n */\n admin?: number;\n}\n\n/**\n * @see EmulatorSkylab\n */\nconst EmulatorSkylabSchema = z.strictObject({\n ports: EmulatorPortsSchema.extend(ConsolePortSchema.shape).optional()\n});\n\n/**\n * Configuration for the Skylab emulator.\n */\nexport interface EmulatorSkylab {\n /**\n * Ports exposed by the Skylab container.\n */\n ports?: EmulatorPorts & {\n /**\n * Console UI (like https://console.juno.build) running with the emulator.\n * @default 5866\n */\n console: number;\n };\n}\n\n/**\n * @see EmulatorConsole\n */\nconst EmulatorConsoleSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Console emulator.\n */\nexport interface EmulatorConsole {\n /**\n * Ports exposed by the Console container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorSatellite\n */\nconst EmulatorSatelliteSchema = z.strictObject({\n ports: EmulatorPortsSchema.optional()\n});\n\n/**\n * Configuration for the Satellite emulator.\n */\nexport interface EmulatorSatellite {\n /**\n * Ports exposed by the Satellite container.\n */\n ports?: EmulatorPorts;\n}\n\n/**\n * @see EmulatorRunner\n */\nconst EmulatorRunnerSchema = z.strictObject({\n type: z.enum(['docker']),\n image: z.string().optional(),\n name: z.string().optional(),\n volume: z.string().optional(),\n target: z.string().optional()\n});\n\n/**\n * Shared options for all runner variants.\n */\nexport interface EmulatorRunner {\n /**\n * The containerization tool to run the emulator.\n */\n type: 'docker';\n\n /**\n * Image reference.\n * @default depends on emulator type, e.g. \"junobuild/skylab:latest\"\n */\n image?: string;\n\n /**\n * Optional container name to use for the emulator.\n * Useful for reusing or managing a specific container.\n */\n name?: string;\n\n /**\n * Persistent volume to store internal state.\n * @default \"juno\"\n */\n volume?: string;\n\n /**\n * Shared folder for deploying and hot-reloading serverless functions.\n */\n target?: string;\n}\n\n/**\n * @see EmulatorConfig\n */\nexport const EmulatorConfigSchema = z.union([\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n skylab: EmulatorSkylabSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n console: EmulatorConsoleSchema\n }),\n z.strictObject({\n runner: EmulatorRunnerSchema.optional(),\n satellite: EmulatorSatelliteSchema\n })\n]);\n\n/**\n * The configuration for running the Juno emulator.\n */\nexport type EmulatorConfig =\n | {runner?: EmulatorRunner; skylab: EmulatorSkylab}\n | {runner?: EmulatorRunner; console: EmulatorConsole}\n | {runner?: EmulatorRunner; satellite: EmulatorSatellite};\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\n\n/**\n * @see OrbiterId\n */\nexport const OrbiterIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the configuration for an orbiter.\n * @interface OrbiterId\n */\nexport interface OrbiterId {\n /**\n * The identifier of the orbiter used in the dApp.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see OrbiterIds\n */\nexport const OrbiterIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of orbiter identitifiers to different configurations based on the mode of the application.\n * @interface OrbiterIds\n */\nexport interface OrbiterIds {\n /**\n * A mapping of orbiter identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different orbiter IDs, such as production, development, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"development\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\n/**\n * @see OrbiterConfig\n */\nexport const OrbiterConfigSchema = z.union([OrbiterIdSchema.strict(), OrbiterIdsSchema.strict()]);\n\n/**\n * Represents the configuration for an orbiter (analytics).\n *\n * @typedef {Either<OrbiterId, OrbiterIds>} OrbiterConfig\n * @property {OrbiterId | OrbiterIds} OrbiterId or OrbiterIds - Defines a unique Orbiter or a collection of Orbiters.\n */\nexport type OrbiterConfig = Either<OrbiterId, OrbiterIds>;\n", "import {type PrincipalText, PrincipalTextSchema} from '@dfinity/zod-schemas';\nimport * as z from 'zod/v4';\nimport {type ModuleSettings, ModuleSettingsSchema} from '../../../module/module.settings';\nimport {type StorageConfig, StorageConfigSchema} from '../../../shared/storage.config';\nimport type {CliConfig} from '../../../types/cli.config';\nimport {type JunoConfigMode, JunoConfigModeSchema} from '../../../types/juno.env';\nimport type {Either} from '../../../types/utility.types';\nimport {type SatelliteAssertions, SatelliteAssertionsSchema} from './assertions.config';\nimport {type AuthenticationConfig, AuthenticationConfigSchema} from './authentication.config';\nimport {type DatastoreConfig, DatastoreConfigSchema} from './datastore.config';\n\n/**\n * @see SatelliteId\n */\nexport const SatelliteIdSchema = z.object({\n id: PrincipalTextSchema\n});\n\n/**\n * Represents the unique identifier for a satellite.\n * @interface SatelliteId\n */\nexport interface SatelliteId {\n /**\n * The unique identifier (ID) of the satellite for this application.\n * @type {string}\n */\n id: PrincipalText;\n}\n\n/**\n * @see SatelliteIds\n */\nexport const SatelliteIdsSchema = z.object({\n ids: z.record(JunoConfigModeSchema, PrincipalTextSchema)\n});\n\n/**\n * Represents a mapping of satellite identifiers to different configurations based on the mode of the application.\n * @interface SatelliteIds\n */\nexport interface SatelliteIds {\n /**\n * A mapping of satellite identifiers (IDs) to different configurations based on the mode of the application.\n *\n * This allows the application to use different satellite IDs, such as production, staging, etc.\n *\n * Example:\n * {\n * \"production\": \"xo2hm-lqaaa-aaaal-ab3oa-cai\",\n * \"staging\": \"gl6nx-5maaa-aaaaa-qaaqq-cai\"\n * }\n * @type {Record<JunoConfigMode, string>}\n */\n ids: Record<JunoConfigMode, PrincipalText>;\n}\n\nconst SatelliteConfigOptionsBaseSchema = z.object({\n storage: StorageConfigSchema.optional(),\n datastore: DatastoreConfigSchema.optional(),\n authentication: AuthenticationConfigSchema.optional(),\n assertions: SatelliteAssertionsSchema.optional(),\n settings: ModuleSettingsSchema.optional()\n});\n\n/**\n * @see JunoConsoleConfig\n */\nexport const SatelliteConfigOptionsSchema = z.union([\n z\n .object({\n ...SatelliteIdSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict(),\n z\n .object({\n ...SatelliteIdsSchema.shape,\n ...SatelliteConfigOptionsBaseSchema.shape\n })\n .strict()\n]);\n\n/**\n * SatelliteConfigOptions interface provides configuration settings that allow for fine-tuning\n * the operational behavior of various aspects of a Satellite, such as storage, datastore,\n * authentication, and deployment assertions.\n *\n * These options affect specific modules of the Satellite and may require manual application of\n * changes, typically through CLI commands (e.g., `juno config`).\n *\n * @interface SatelliteConfigOptions\n *\n * @property {StorageConfig} [storage] - Configuration settings for storage management in the Satellite.\n * @property {DatastoreConfig} [datastore] - Configuration settings for datastore management.\n * @property {AuthenticationConfig} [authentication] - Authentication-specific configurations.\n * @property {SatelliteAssertions} [assertions] - Conditions and assertions for deployment or operational checks.\n * @property {ModuleSettings} [settings] - General settings governing module behavior and resource management.\n */\nexport interface SatelliteConfigOptions {\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {StorageConfig}\n * @optional\n */\n storage?: StorageConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Datastore.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {DatastoreConfig}\n * @optional\n */\n datastore?: DatastoreConfig;\n\n /**\n * Optional configuration parameters for the satellite, affecting the operational behavior of its Authentication.\n * Changes to these parameters must be applied manually afterwards, for example with the CLI using `juno config` commands.\n * @type {AuthenticationConfig}\n * @optional\n */\n authentication?: AuthenticationConfig;\n\n /**\n * Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions.\n * @type {SatelliteAssertions}\n * @optional\n */\n assertions?: SatelliteAssertions;\n\n /**\n * Optional configuration parameters for the Satellite.\n * These settings control various aspects of the module's behavior and resource usage.\n * @type {ModuleSettings}\n * @optional\n */\n settings?: ModuleSettings;\n}\n\n/**\n * Represents the configuration for a satellite.\n *\n * @typedef {Either<SatelliteId, SatelliteIds> & CliConfig & SatelliteConfigOptions} SatelliteConfig\n * @property {SatelliteId | SatelliteIds} SatelliteId or SatelliteIds - Defines a unique Satellite or a collection of Satellites.\n * @property {CliConfig} CliConfig - Configuration specific to the CLI interface.\n * @property {SatelliteConfigOptions} SatelliteConfigOptions - Additional configuration options for the Satellite.\n */\nexport type SatelliteConfig = Either<SatelliteId, SatelliteIds> &\n CliConfig &\n SatelliteConfigOptions;\n", "import * as z from 'zod/v4';\nimport {type EmulatorConfig, EmulatorConfigSchema} from './configs/emulator.config';\nimport {type OrbiterConfig, OrbiterConfigSchema} from './configs/orbiter.config';\nimport {type SatelliteConfig, SatelliteConfigOptionsSchema} from './configs/satellite.config';\n\n/**\n * @see JunoConfig\n */\nexport const JunoConfigSchema = z.strictObject({\n satellite: SatelliteConfigOptionsSchema,\n orbiter: OrbiterConfigSchema.optional(),\n emulator: EmulatorConfigSchema.optional()\n});\n\n/**\n * Represents the overall configuration for Juno.\n * @interface JunoConfig\n */\nexport interface JunoConfig {\n /**\n * The configuration for the satellite.\n * @type {SatelliteConfig}\n */\n satellite: SatelliteConfig;\n\n /**\n * The optional configuration for the orbiter.\n * @type {OrbiterConfig}\n * @optional\n */\n orbiter?: OrbiterConfig;\n\n /**\n * Your options for the emulator.\n */\n emulator?: EmulatorConfig;\n}\n"],
5
+ "mappings": ";;AAYO,SAASA,GACdC,EAC6B,CAC7B,OAAOA,CACT,CChBA,OAA4B,uBAAAC,MAA0B,uBACtD,UAAYC,MAAO,SCDnB,UAAYC,MAAO,SCAnB,UAAYC,MAAO,SAKZ,IAAMC,EACV,SAAO,CACN,KAAQ,SAAO,EAAE,SAAS,EAC1B,OAAU,SAAO,EAAE,SAAS,CAC9B,CAAC,EACA,OAAO,EDJH,IAAMC,EAAkC,SAAO,EAWzCC,EACV,SAAO,CACN,OAAQD,EACR,QAAW,QAAQ,QAAM,CAAG,SAAO,EAAK,SAAO,CAAC,CAAC,CAAC,CACpD,CAAC,EACA,OAAO,EA0BGE,EACV,SAAO,CACN,OAAQF,EACR,YAAe,SAAO,CACxB,CAAC,EACA,OAAO,EAyBGG,EACV,SAAO,CACN,OAAQH,EACR,SAAY,SAAO,EACnB,KAAQ,QAAM,CAAG,UAAQ,GAAG,EAAK,UAAQ,GAAG,CAAC,CAAC,CAChD,CAAC,EACA,OAAO,EA6BGI,EAAwB,SAAO,CAC1C,QAAW,QAAMH,CAAyB,EAAE,SAAS,EACrD,SAAY,QAAMC,CAA0B,EAAE,SAAS,EACvD,UAAa,QAAMC,CAA2B,EAAE,SAAS,EACzD,OAAU,OAAK,CAAC,OAAQ,cAAe,WAAW,CAAC,EAAE,SAAS,EAC9D,UAAa,UAAQ,EAAE,SAAS,EAChC,cAAeE,EAA0B,SAAS,CACpD,CAAC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AsCYC,EAAyB,QAAM,CACxC,eAAa,CACb,OAAQD,EAAqB,SAAS,EACtC,OAAQH,EACV,CAAC,EACC,eAAa,CACb,OAAQG,EAAqB,SAAS,EACtC,QAASF,EACX,CAAC,EACC,eAAa,CACb,OAAQE,EAAqB,SAAS,EACtC,UAAWD,EACb,CAAC,CACH,CAAC,EC7JD,OAA4B,uBAAAG,MAA0B,uBACtD,UAAYC,MAAO,SAOZ,IAAMC,GAAoB,SAAO,CACtC,GAAIC,CACN,CAAC,EAiBYC,GAAqB,SAAO,CACvC,IAAO,SAAOC,EAAsBF,CAAmB,CACzD,CAAC,EAyBYG,EAAwB,QAAM,CAACJ,GAAgB,OAAO,EAAGE,GAAiB,OAAO,CAAC,CAAC,ECtDhG,OAA4B,uBAAAG,MAA0B,uBACtD,UAAYC,MAAO,SAaZ,IAAMC,GAAsB,SAAO,CACxC,GAAIC,CACN,CAAC,EAiBYC,GAAuB,SAAO,CACzC,IAAO,SAAOC,EAAsBF,CAAmB,CACzD,CAAC,EAsBKG,EAAqC,SAAO,CAChD,QAASC,EAAoB,SAAS,EACtC,UAAWC,EAAsB,SAAS,EAC1C,eAAgBC,EAA2B,SAAS,EACpD,WAAYC,EAA0B,SAAS,EAC/C,SAAUC,EAAqB,SAAS,CAC1C,CAAC,EAKYC,EAAiC,QAAM,CAE/C,SAAO,CACN,GAAGV,GAAkB,MACrB,GAAGI,EAAiC,KACtC,CAAC,EACA,OAAO,EAEP,SAAO,CACN,GAAGF,GAAmB,MACtB,GAAGE,EAAiC,KACtC,CAAC,EACA,OAAO,CACZ,CAAC,ECjFD,UAAYO,MAAO,SAQZ,IAAMC,GAAqB,eAAa,CAC7C,UAAWC,EACX,QAASC,EAAoB,SAAS,EACtC,SAAUC,EAAqB,SAAS,CAC1C,CAAC",
6
+ "names": ["defineConsoleConfig", "config", "PrincipalTextSchema", "z", "z", "z", "MaxMemorySizeConfigSchema", "StorageConfigSourceGlobSchema", "StorageConfigHeaderSchema", "StorageConfigRewriteSchema", "StorageConfigRedirectSchema", "StorageConfigSchema", "MaxMemorySizeConfigSchema", "z", "z", "EncodingTypeSchema", "CliConfigSchema", "EncodingTypeSchema", "z", "JunoConfigModeSchema", "JunoConfigEnvSchema", "ConsoleIdSchema", "PrincipalTextSchema", "ConsoleIdsSchema", "JunoConfigModeSchema", "JunoConsoleConfigBaseSchema", "CliConfigSchema", "StorageConfigSchema", "JunoConsoleConfigSchema", "z", "ModuleLogVisibilitySchema", "ModuleSettingsSchema", "z", "JunoPackageDependenciesSchema", "JunoPackageSchema", "JUNO_PACKAGE_SATELLITE_ID", "JUNO_PACKAGE_SPUTNIK_ID", "JUNO_PACKAGE_MISSION_CONTROL_ID", "JUNO_PACKAGE_ORBITER_ID", "defineDevConfig", "config", "PrincipalTextSchema", "z", "z", "PermissionTextSchema", "MemoryTextSchema", "RulesTypeSchema", "RuleSchema", "SatelliteDevDataStoreCollectionSchema", "RuleSchema", "SatelliteDevStorageCollectionSchema", "SatelliteDevCollectionsSchema", "SatelliteDevControllerSchema", "PrincipalTextSchema", "SatelliteDevConfigSchema", "JunoDevConfigSchema", "defineConfig", "config", "z", "SatelliteAssertionsSchema", "z", "AuthenticationConfigInternetIdentitySchema", "AuthenticationConfigSchema", "z", "DatastoreConfigSchema", "MaxMemorySizeConfigSchema", "z", "EmulatorPortsSchema", "ConsolePortSchema", "EmulatorSkylabSchema", "EmulatorConsoleSchema", "EmulatorSatelliteSchema", "EmulatorRunnerSchema", "EmulatorConfigSchema", "PrincipalTextSchema", "z", "OrbiterIdSchema", "PrincipalTextSchema", "OrbiterIdsSchema", "JunoConfigModeSchema", "OrbiterConfigSchema", "PrincipalTextSchema", "z", "SatelliteIdSchema", "PrincipalTextSchema", "SatelliteIdsSchema", "JunoConfigModeSchema", "SatelliteConfigOptionsBaseSchema", "StorageConfigSchema", "DatastoreConfigSchema", "AuthenticationConfigSchema", "SatelliteAssertionsSchema", "ModuleSettingsSchema", "SatelliteConfigOptionsSchema", "z", "JunoConfigSchema", "SatelliteConfigOptionsSchema", "OrbiterConfigSchema", "EmulatorConfigSchema"]
7
7
  }
@@ -15,16 +15,6 @@ export interface EmulatorPorts {
15
15
  */
16
16
  admin?: number;
17
17
  }
18
- /**
19
- * Represents a Juno configuration file path.
20
- * Must end in `.mjs`, `.ts`, `.js`, or `.json`.
21
- */
22
- export type JunoConfigFile = string;
23
- /**
24
- * Represents a Juno development config file path.
25
- * Must end in `.mjs`, `.ts`, `.js`, or `.json`.
26
- */
27
- export type JunoDevConfigFile = string;
28
18
  /**
29
19
  * Configuration for the Skylab emulator.
30
20
  */
@@ -39,10 +29,6 @@ export interface EmulatorSkylab {
39
29
  */
40
30
  console: number;
41
31
  };
42
- /**
43
- * Path to the Juno config file.
44
- */
45
- config: JunoConfigFile;
46
32
  }
47
33
  /**
48
34
  * Configuration for the Console emulator.
@@ -61,10 +47,6 @@ export interface EmulatorSatellite {
61
47
  * Ports exposed by the Satellite container.
62
48
  */
63
49
  ports?: EmulatorPorts;
64
- /**
65
- * Path to the dev config file to customize Satellite behavior.
66
- */
67
- config: JunoDevConfigFile;
68
50
  }
69
51
  /**
70
52
  * Shared options for all runner variants.
@@ -98,7 +80,7 @@ export interface EmulatorRunner {
98
80
  * @see EmulatorConfig
99
81
  */
100
82
  export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
101
- runner: z.ZodObject<{
83
+ runner: z.ZodOptional<z.ZodObject<{
102
84
  type: z.ZodEnum<{
103
85
  docker: "docker";
104
86
  }>;
@@ -106,17 +88,16 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
106
88
  name: z.ZodOptional<z.ZodString>;
107
89
  volume: z.ZodOptional<z.ZodString>;
108
90
  target: z.ZodOptional<z.ZodString>;
109
- }, z.core.$strict>;
91
+ }, z.core.$strict>>;
110
92
  skylab: z.ZodObject<{
111
93
  ports: z.ZodOptional<z.ZodObject<{
112
94
  server: z.ZodOptional<z.ZodNumber>;
113
95
  admin: z.ZodOptional<z.ZodNumber>;
114
96
  console: z.ZodOptional<z.ZodNumber>;
115
97
  }, z.core.$strict>>;
116
- config: z.ZodString;
117
98
  }, z.core.$strict>;
118
99
  }, z.core.$strict>, z.ZodObject<{
119
- runner: z.ZodObject<{
100
+ runner: z.ZodOptional<z.ZodObject<{
120
101
  type: z.ZodEnum<{
121
102
  docker: "docker";
122
103
  }>;
@@ -124,7 +105,7 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
124
105
  name: z.ZodOptional<z.ZodString>;
125
106
  volume: z.ZodOptional<z.ZodString>;
126
107
  target: z.ZodOptional<z.ZodString>;
127
- }, z.core.$strict>;
108
+ }, z.core.$strict>>;
128
109
  console: z.ZodObject<{
129
110
  ports: z.ZodOptional<z.ZodObject<{
130
111
  /**
@@ -138,7 +119,7 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
138
119
  }, z.core.$strict>>;
139
120
  }, z.core.$strict>;
140
121
  }, z.core.$strict>, z.ZodObject<{
141
- runner: z.ZodObject<{
122
+ runner: z.ZodOptional<z.ZodObject<{
142
123
  type: z.ZodEnum<{
143
124
  docker: "docker";
144
125
  }>;
@@ -146,7 +127,7 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
146
127
  name: z.ZodOptional<z.ZodString>;
147
128
  volume: z.ZodOptional<z.ZodString>;
148
129
  target: z.ZodOptional<z.ZodString>;
149
- }, z.core.$strict>;
130
+ }, z.core.$strict>>;
150
131
  satellite: z.ZodObject<{
151
132
  ports: z.ZodOptional<z.ZodObject<{
152
133
  /**
@@ -158,19 +139,18 @@ export declare const EmulatorConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
158
139
  */
159
140
  admin: z.ZodOptional<z.ZodNumber>;
160
141
  }, z.core.$strict>>;
161
- config: z.ZodString;
162
142
  }, z.core.$strict>;
163
143
  }, z.core.$strict>]>;
164
144
  /**
165
145
  * The configuration for running the Juno emulator.
166
146
  */
167
147
  export type EmulatorConfig = {
168
- runner: EmulatorRunner;
148
+ runner?: EmulatorRunner;
169
149
  skylab: EmulatorSkylab;
170
150
  } | {
171
- runner: EmulatorRunner;
151
+ runner?: EmulatorRunner;
172
152
  console: EmulatorConsole;
173
153
  } | {
174
- runner: EmulatorRunner;
154
+ runner?: EmulatorRunner;
175
155
  satellite: EmulatorSatellite;
176
156
  };
@@ -119,7 +119,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
119
119
  ids: z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"production">, z.ZodString]>, z.ZodString>;
120
120
  }, z.core.$strict>]>>;
121
121
  emulator: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
122
- runner: z.ZodObject<{
122
+ runner: z.ZodOptional<z.ZodObject<{
123
123
  type: z.ZodEnum<{
124
124
  docker: "docker";
125
125
  }>;
@@ -127,17 +127,16 @@ export declare const JunoConfigSchema: z.ZodObject<{
127
127
  name: z.ZodOptional<z.ZodString>;
128
128
  volume: z.ZodOptional<z.ZodString>;
129
129
  target: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strict>;
130
+ }, z.core.$strict>>;
131
131
  skylab: z.ZodObject<{
132
132
  ports: z.ZodOptional<z.ZodObject<{
133
133
  server: z.ZodOptional<z.ZodNumber>;
134
134
  admin: z.ZodOptional<z.ZodNumber>;
135
135
  console: z.ZodOptional<z.ZodNumber>;
136
136
  }, z.core.$strict>>;
137
- config: z.ZodString;
138
137
  }, z.core.$strict>;
139
138
  }, z.core.$strict>, z.ZodObject<{
140
- runner: z.ZodObject<{
139
+ runner: z.ZodOptional<z.ZodObject<{
141
140
  type: z.ZodEnum<{
142
141
  docker: "docker";
143
142
  }>;
@@ -145,7 +144,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
145
144
  name: z.ZodOptional<z.ZodString>;
146
145
  volume: z.ZodOptional<z.ZodString>;
147
146
  target: z.ZodOptional<z.ZodString>;
148
- }, z.core.$strict>;
147
+ }, z.core.$strict>>;
149
148
  console: z.ZodObject<{
150
149
  ports: z.ZodOptional<z.ZodObject<{
151
150
  server: z.ZodOptional<z.ZodNumber>;
@@ -153,7 +152,7 @@ export declare const JunoConfigSchema: z.ZodObject<{
153
152
  }, z.core.$strict>>;
154
153
  }, z.core.$strict>;
155
154
  }, z.core.$strict>, z.ZodObject<{
156
- runner: z.ZodObject<{
155
+ runner: z.ZodOptional<z.ZodObject<{
157
156
  type: z.ZodEnum<{
158
157
  docker: "docker";
159
158
  }>;
@@ -161,13 +160,12 @@ export declare const JunoConfigSchema: z.ZodObject<{
161
160
  name: z.ZodOptional<z.ZodString>;
162
161
  volume: z.ZodOptional<z.ZodString>;
163
162
  target: z.ZodOptional<z.ZodString>;
164
- }, z.core.$strict>;
163
+ }, z.core.$strict>>;
165
164
  satellite: z.ZodObject<{
166
165
  ports: z.ZodOptional<z.ZodObject<{
167
166
  server: z.ZodOptional<z.ZodNumber>;
168
167
  admin: z.ZodOptional<z.ZodNumber>;
169
168
  }, z.core.$strict>>;
170
- config: z.ZodString;
171
169
  }, z.core.$strict>;
172
170
  }, z.core.$strict>]>>;
173
171
  }, z.core.$strict>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/config",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Configuration options for Juno CLI",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",