@junobuild/config 2.2.0 → 2.3.0-next-2025-09-26

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
@@ -207,13 +207,13 @@ References:
207
207
 
208
208
  | Constant | Type |
209
209
  | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
210
- | `EmulatorConfigSchema` | `ZodUnion<readonly [ZodObject<{ runner: ZodOptional<ZodObject<{ type: ZodEnum<{ docker: "docker"; podman: "podman"; }>; image: ZodOptional<ZodString>; name: ZodOptional<ZodString>; volume: ZodOptional<...>; target: ZodOptional<...>; platform: ZodOptional<...>; }, $strict>>; skylab: ZodObject<...>; }, $strict>, ZodObj...` |
210
+ | `EmulatorConfigSchema` | `ZodUnion<readonly [ZodObject<{ runner: ZodOptional<ZodObject<{ type: ZodEnum<{ docker: "docker"; podman: "podman"; }>; image: ZodOptional<ZodString>; name: ZodOptional<ZodString>; volume: ZodOptional<...>; target: ZodOptional<...>; platform: ZodOptional<...>; }, $strict>>; network: ZodOptional<...>; skylab: ZodObjec...` |
211
211
 
212
212
  References:
213
213
 
214
214
  - EmulatorConfig
215
215
 
216
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L151)
216
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L243)
217
217
 
218
218
  #### :gear: ModuleLogVisibilitySchema
219
219
 
@@ -444,6 +444,8 @@ References:
444
444
  - [EmulatorConsole](#gear-emulatorconsole)
445
445
  - [EmulatorSatellite](#gear-emulatorsatellite)
446
446
  - [EmulatorRunner](#gear-emulatorrunner)
447
+ - [NetworkServices](#gear-networkservices)
448
+ - [Network](#gear-network)
447
449
  - [ModuleSettings](#gear-modulesettings)
448
450
  - [JunoConfigEnv](#gear-junoconfigenv)
449
451
  - [OrbiterId](#gear-orbiterid)
@@ -613,6 +615,37 @@ Shared options for all runner variants.
613
615
 
614
616
  [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L113)
615
617
 
618
+ #### :gear: NetworkServices
619
+
620
+ Network services that can be enabled in the emulator.
621
+
622
+ Each flag corresponds to a system canister or application that can be included
623
+ in the local Internet Computer network when the emulator starts.
624
+
625
+ | Property | Type | Description |
626
+ | ---------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
627
+ | `registry` | `boolean or undefined` | Registry canister: Stores network configuration and topology (subnet membership, public keys, feature flags). Acts as the source of truth other system canisters read/write to. |
628
+ | `cmc` | `boolean or undefined` | CMC (Cycles Minting Canister): Converts ICP to cycles and distributes them; maintains subnet lists and conversion rate. |
629
+ | `icp` | `boolean or undefined` | ICP token: Deploys the ICP ledger and index canisters. |
630
+ | `cycles` | `boolean or undefined` | Cycles token: Deploys the cycles ledger and index canisters. |
631
+ | `nns` | `boolean or undefined` | NNS governance canisters: Deploys the governance and root canisters. Core governance system (neurons, proposals, voting) and related control logic. Enables managing network-level decisions in an emulated environment. |
632
+ | `sns` | `boolean or undefined` | SNS canisters: Deploys the SNS-W and aggregator canisters. Service Nervous System stack used to govern individual dapps. |
633
+ | `ii` | `boolean or undefined` | Internet Identity (II): Deploys the II canister for authentication. |
634
+ | `nnsDapp` | `boolean or undefined` | NNS dapp: Deploys the NNS UI canister and frontend application |
635
+
636
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L168)
637
+
638
+ #### :gear: Network
639
+
640
+ Configuration for customizing the Internet Computer network bootstrapped
641
+ by the emulator.
642
+
643
+ | Property | Type | Description |
644
+ | ---------- | ----------------- | ----------------------------------------------------------- |
645
+ | `services` | `NetworkServices` | System canisters and applications available in the network. |
646
+
647
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L233)
648
+
616
649
  #### :gear: ModuleSettings
617
650
 
618
651
  Settings for a module - Satellite, Mission Control or Orbiter.
@@ -839,10 +872,10 @@ changes, typically through CLI commands (e.g., `juno config`).
839
872
  The configuration for running the Juno emulator.
840
873
 
841
874
  | Type | Type |
842
- | ---------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
843
- | `EmulatorConfig` | ` | {runner?: EmulatorRunner; skylab: EmulatorSkylab} or {runner?: EmulatorRunner; console: EmulatorConsole} or {runner?: EmulatorRunner; satellite: EmulatorSatellite}` |
875
+ | ---------------- | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
876
+ | `EmulatorConfig` | ` | {runner?: EmulatorRunner; network?: Network; skylab: EmulatorSkylab} or {runner?: EmulatorRunner; network?: Network; console: EmulatorConsole} or {runner?: EmulatorRunner; network?: Network; satellite: EmulatorSatellite}` |
844
877
 
845
- [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L169)
878
+ [:link: Source](https://github.com/junobuild/juno-js/tree/main/packages/config/src/satellite/configs/emulator.config.ts#L264)
846
879
 
847
880
  #### :gear: ModuleLogVisibility
848
881
 
@@ -1,4 +1,4 @@
1
- import*as J from"zod/v4";import*as xt from"zod/v4";var k=e=>xt.custom(t=>e.implement(t));import*as u from"zod/v4";import*as Ot from"zod/v4";var G="abcdefghijklmnopqrstuvwxyz234567",R=Object.create(null);for(let e=0;e<G.length;e++)R[G[e]]=e;R[0]=R.o;R[1]=R.i;function pt(e){let t=0,o=0,n="";function r(i){return t<0?o|=i>>-t:o=i<<t&248,t>3?(t-=8,1):(t<4&&(n+=G[o>>3],t+=5),0)}for(let i=0;i<e.length;)i+=r(e[i]);return n+(t<0?G[o>>3]:"")}function lt(e){let t=0,o=0,n=new Uint8Array(e.length*4/3|0),r=0;function i(a){let c=R[a.toLowerCase()];if(c===void 0)throw new Error(`Invalid character: ${JSON.stringify(a)}`);c<<=3,o|=c>>>t,t+=5,t>=8&&(n[r++]=o,t-=8,t>0?o=c<<5-t&255:o=0)}for(let a of e)i(a);return n.slice(0,r)}var Nt=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function dt(e){let t=-1;for(let o=0;o<e.length;o++){let r=(e[o]^t)&255;t=Nt[r]^t>>>8}return(t^-1)>>>0}function Vt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function B(e,...t){if(!Vt(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Q(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function bt(e,t){B(e);let o=t.outputLen;if(e.length<o)throw new Error("digestInto() expects output buffer of length at least "+o)}function M(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function V(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function m(e,t){return e<<32-t|e>>>t}var ht=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Wt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function mt(e){if(B(e),ht)return e.toHex();let t="";for(let o=0;o<e.length;o++)t+=Wt[e[o]];return t}var S={_0:48,_9:57,A:65,F:70,a:97,f:102};function ut(e){if(e>=S._0&&e<=S._9)return e-S._0;if(e>=S.A&&e<=S.F)return e-(S.A-10);if(e>=S.a&&e<=S.f)return e-(S.a-10)}function gt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(ht)return Uint8Array.fromHex(e);let t=e.length,o=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(o);for(let r=0,i=0;r<o;r++,i+=2){let a=ut(e.charCodeAt(i)),c=ut(e.charCodeAt(i+1));if(a===void 0||c===void 0){let l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[r]=a*16+c}return n}function Kt(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function tt(e){return typeof e=="string"&&(e=Kt(e)),B(e),e}var N=class{};function yt(e){let t=n=>e().update(tt(n)).digest(),o=e();return t.outputLen=o.outputLen,t.blockLen=o.blockLen,t.create=()=>e(),t}function qt(e,t,o,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,o,n);let r=BigInt(32),i=BigInt(4294967295),a=Number(o>>r&i),c=Number(o&i),l=n?4:0,h=n?0:4;e.setUint32(t+l,a,n),e.setUint32(t+h,c,n)}function Ct(e,t,o){return e&t^~e&o}function St(e,t,o){return e&t^e&o^t&o}var W=class extends N{constructor(t,o,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=o,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(t),this.view=V(this.buffer)}update(t){Q(this),t=tt(t),B(t);let{view:o,buffer:n,blockLen:r}=this,i=t.length;for(let a=0;a<i;){let c=Math.min(r-this.pos,i-a);if(c===r){let l=V(t);for(;r<=i-a;a+=r)this.process(l,a);continue}n.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===r&&(this.process(o,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Q(this),bt(t,this),this.finished=!0;let{buffer:o,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;o[a++]=128,M(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let f=a;f<r;f++)o[f]=0;qt(n,r-8,BigInt(this.length*8),i),this.process(n,0);let c=V(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let h=l/4,w=this.get();if(h>w.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<h;f++)c.setUint32(4*f,w[f],i)}digest(){let{buffer:t,outputLen:o}=this;this.digestInto(t);let n=t.slice(0,o);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:o,buffer:n,length:r,finished:i,destroyed:a,pos:c}=this;return t.destroyed=a,t.finished=i,t.length=r,t.pos=c,r%o&&t.buffer.set(n),t}clone(){return this._cloneInto()}},z=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),A=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);var Xt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),E=new Uint32Array(64),et=class extends W{constructor(t=32){super(64,t,8,!1),this.A=z[0]|0,this.B=z[1]|0,this.C=z[2]|0,this.D=z[3]|0,this.E=z[4]|0,this.F=z[5]|0,this.G=z[6]|0,this.H=z[7]|0}get(){let{A:t,B:o,C:n,D:r,E:i,F:a,G:c,H:l}=this;return[t,o,n,r,i,a,c,l]}set(t,o,n,r,i,a,c,l){this.A=t|0,this.B=o|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=c|0,this.H=l|0}process(t,o){for(let f=0;f<16;f++,o+=4)E[f]=t.getUint32(o,!1);for(let f=16;f<64;f++){let U=E[f-15],_=E[f-2],ft=m(U,7)^m(U,18)^U>>>3,Z=m(_,17)^m(_,19)^_>>>10;E[f]=Z+E[f-7]+ft+E[f-16]|0}let{A:n,B:r,C:i,D:a,E:c,F:l,G:h,H:w}=this;for(let f=0;f<64;f++){let U=m(c,6)^m(c,11)^m(c,25),_=w+U+Ct(c,l,h)+Xt[f]+E[f]|0,Z=(m(n,2)^m(n,13)^m(n,22))+St(n,r,i)|0;w=h,h=l,l=c,c=a+_|0,a=i,i=r,r=n,n=_+Z|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,l=l+this.F|0,h=h+this.G|0,w=w+this.H|0,this.set(n,r,i,a,c,l,h,w)}roundClean(){M(E)}destroy(){this.set(0,0,0,0,0,0,0,0),M(this.buffer)}},ot=class extends et{constructor(){super(28),this.A=A[0]|0,this.B=A[1]|0,this.C=A[2]|0,this.D=A[3]|0,this.E=A[4]|0,this.F=A[5]|0,this.G=A[6]|0,this.H=A[7]|0}};var zt=yt(()=>new ot);var K="__principal__",$t=2,At=4,Yt="aaaaa-aa",L=class e{static anonymous(){return new this(new Uint8Array([At]))}static managementCanister(){return this.fromText(Yt)}static selfAuthenticating(t){let o=zt(t);return new this(new Uint8Array([...o,$t]))}static from(t){if(typeof t=="string")return e.fromText(t);if(Object.getPrototypeOf(t)===Uint8Array.prototype)return new e(t);if(e.isPrincipal(t))return new e(t._arr);throw new Error(`Impossible to convert ${JSON.stringify(t)} to Principal.`)}static fromHex(t){return new this(gt(t))}static fromText(t){let o=t;if(t.includes(K)){let a=JSON.parse(t);K in a&&(o=a[K])}let n=o.toLowerCase().replace(/-/g,""),r=lt(n);r=r.slice(4,r.length);let i=new this(r);if(i.toText()!==o)throw new Error(`Principal "${i.toText()}" does not have a valid checksum (original value "${o}" may not be a valid Principal ID).`);return i}static fromUint8Array(t){return new this(t)}static isPrincipal(t){return t instanceof e||typeof t=="object"&&t!==null&&"_isPrincipal"in t&&t._isPrincipal===!0&&"_arr"in t&&t._arr instanceof Uint8Array}constructor(t){this._arr=t,this._isPrincipal=!0}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===At}toUint8Array(){return this._arr}toHex(){return mt(this._arr).toUpperCase()}toText(){let t=new ArrayBuffer(4);new DataView(t).setUint32(0,dt(this._arr));let n=new Uint8Array(t),r=new Uint8Array([...n,...this._arr]),a=pt(r).match(/.{1,5}/g);if(!a)throw new Error;return a.join("-")}toString(){return this.toText()}toJSON(){return{[K]:this.toText()}}compareTo(t){for(let o=0;o<Math.min(this._arr.length,t._arr.length);o++){if(this._arr[o]<t._arr[o])return"lt";if(this._arr[o]>t._arr[o])return"gt"}return this._arr.length<t._arr.length?"lt":this._arr.length>t._arr.length?"gt":"eq"}ltEq(t){let o=this.compareTo(t);return o=="lt"||o=="eq"}gtEq(t){let o=this.compareTo(t);return o=="gt"||o=="eq"}};import{PrincipalTextSchema as Zt}from"@dfinity/zod-schemas";import*as H from"zod/v4";var F=H.string().refine(e=>Zt.safeParse(e).success,{message:"Invalid textual representation of a Principal."}),q=H.unknown().transform((e,t)=>L.isPrincipal(e)?L.from(e):(t.issues.push({code:"custom",message:"Invalid Principal",input:e}),H.NEVER));var wt=Ot.unknown().refine(e=>e!=null&&typeof e=="object"&&"transformRequest"in e&&typeof e.transformRequest=="function"&&"getPrincipal"in e&&typeof e.getPrincipal=="function"&&q.safeParse(e.getPrincipal()).success,{message:"Invalid Identity"});var nt=u.strictObject({satelliteId:q,identity:wt,container:u.string().optional()}),Qt=u.function({input:u.tuple([nt]),output:u.promise(u.void()).or(u.void())}),rt=u.strictObject({run:k(Qt)});var te=J.function({input:J.tuple([nt]),output:rt}),Ze=J.union([rt,k(te)]);function Qe(e){return e}import*as Tt from"zod/v4";import*as T from"zod/v4";var j=T.union([T.literal("production"),T.string()]),Et=T.object({mode:j});var no=Et.extend({profile:Tt.string().optional()});function io(e){return e}import{PrincipalTextSchema as re}from"@dfinity/zod-schemas";import*as g from"zod/v4";import*as s from"zod/v4";import*as v from"zod/v4";var X=v.object({heap:v.bigint().optional(),stable:v.bigint().optional()}).strict();var it=s.string(),ee=s.object({source:it,headers:s.array(s.tuple([s.string(),s.string()]))}).strict(),oe=s.object({source:it,destination:s.string()}).strict(),ne=s.object({source:it,location:s.string(),code:s.union([s.literal(301),s.literal(302)])}).strict(),$=s.object({headers:s.array(ee).optional(),rewrites:s.array(oe).optional(),redirects:s.array(ne).optional(),iframe:s.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:s.boolean().optional(),maxMemorySize:X.optional(),version:s.bigint().optional()});import*as x from"zod/v4";import*as It from"zod/v4";var jt=It.enum(["identity","gzip","compress","deflate","br"]);var Pt=x.strictObject({pattern:x.string().optional(),mode:x.enum(["both","replace"]).optional(),algorithm:x.enum(["gzip","brotli"]).optional()}),_t=x.strictObject({source:x.string().optional(),ignore:x.array(x.string()).optional(),precompress:x.union([Pt,x.array(Pt),x.literal(!1)]).optional(),encoding:x.array(x.tuple([x.string(),jt])).optional(),predeploy:x.array(x.string()).optional(),postdeploy:x.array(x.string()).optional()});var ie=g.object({id:re}),ae=g.object({ids:g.record(j,F)}),Rt=g.object({..._t.shape,storage:$.optional()}),yo=g.union([g.object({...ie.shape,...Rt.shape}).strict(),g.object({...ae.shape,...Rt.shape}).strict()]);import*as O from"zod/v4";var ce=O.record(O.string(),O.string()),So=O.object({name:O.string(),version:O.string(),dependencies:ce.optional()});var Ao="@junobuild/satellite",Oo="@junobuild/sputnik",wo="@junobuild/mission-control",Eo="@junobuild/orbiter";function Io(e){return e}import*as I from"zod/v4";var Ht=I.strictObject({heapMemory:I.union([I.bigint(),I.boolean()]).optional()});import{PrincipalTextSchema as se}from"@dfinity/zod-schemas";import*as b from"zod/v4";var fe=b.strictObject({derivationOrigin:b.url().optional(),externalAlternativeOrigins:b.array(b.url()).optional()}),xe=b.strictObject({allowedCallers:b.array(se)}),Ft=b.strictObject({internetIdentity:fe.optional(),rules:xe.optional(),version:b.bigint().optional()});import*as D from"zod/v4";import*as d from"zod/v4";var Jt=d.enum(["public","private","managed","controllers"]),pe=d.enum(["heap","stable"]),Ho=d.enum(["db","storage"]),at=d.strictObject({collection:d.string(),read:Jt,write:Jt,memory:pe,createdAt:d.bigint().optional(),updatedAt:d.bigint().optional(),version:d.bigint().optional(),maxSize:d.bigint().optional(),maxChangesPerUser:d.number().optional(),maxCapacity:d.number().optional(),mutablePermissions:d.boolean().optional().default(!0),maxTokens:d.bigint().optional()});var le=at.omit({createdAt:!0,updatedAt:!0,maxSize:!0}),de=at.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0}),Ut=D.strictObject({datastore:D.array(le).optional(),storage:D.array(de).optional()});import*as Y from"zod/v4";var Bt=Y.strictObject({maxMemorySize:X.optional(),version:Y.bigint().optional()});import*as p from"zod/v4";var st=p.strictObject({server:p.number().optional(),admin:p.number().optional()}),ue=p.strictObject({console:p.number().optional()}),be=p.strictObject({ports:st.extend(ue.shape).optional()}),he=p.strictObject({ports:st.optional()}),me=p.strictObject({ports:st.optional()}),ct=p.strictObject({type:p.enum(["docker","podman"]),image:p.string().optional(),name:p.string().optional(),volume:p.string().optional(),target:p.string().optional(),platform:p.enum(["linux/amd64","linux/arm64"]).optional()}),Mt=p.union([p.strictObject({runner:ct.optional(),skylab:be}),p.strictObject({runner:ct.optional(),console:he}),p.strictObject({runner:ct.optional(),satellite:me})]);import*as y from"zod/v4";var ge=y.enum(["controllers","public"]),Lt=y.strictObject({freezingThreshold:y.bigint().optional(),reservedCyclesLimit:y.bigint().optional(),logVisibility:ge.optional(),heapMemoryLimit:y.bigint().optional(),memoryAllocation:y.bigint().optional(),computeAllocation:y.bigint().optional()});import{PrincipalTextSchema as ye}from"@dfinity/zod-schemas";import*as P from"zod/v4";var Ce=P.object({id:ye}),Se=P.object({ids:P.record(j,F)}),vt=P.union([Ce.strict(),Se.strict()]);import{PrincipalTextSchema as ze}from"@dfinity/zod-schemas";import*as C from"zod/v4";var Ae=C.object({id:ze}),Oe=C.object({ids:C.record(j,F)}),Dt=C.object({storage:$.optional(),datastore:Bt.optional(),authentication:Ft.optional(),assertions:Ht.optional(),settings:Lt.optional(),collections:Ut.optional()}),kt=C.union([C.object({...Ae.shape,...Dt.shape}).strict(),C.object({...Oe.shape,...Dt.shape}).strict()]);import*as Gt from"zod/v4";var rn=Gt.strictObject({satellite:kt,orbiter:vt.optional(),emulator:Mt.optional()});export{fe as AuthenticationConfigInternetIdentitySchema,xe as AuthenticationConfigRulesSchema,Ft as AuthenticationConfigSchema,_t as CliConfigSchema,Ut as CollectionsSchema,ie as ConsoleIdSchema,ae as ConsoleIdsSchema,le as DatastoreCollectionSchema,Bt as DatastoreConfigSchema,Mt as EmulatorConfigSchema,jt as EncodingTypeSchema,wo as JUNO_PACKAGE_MISSION_CONTROL_ID,Eo as JUNO_PACKAGE_ORBITER_ID,Ao as JUNO_PACKAGE_SATELLITE_ID,Oo as JUNO_PACKAGE_SPUTNIK_ID,Et as JunoConfigEnvSchema,j as JunoConfigModeSchema,rn as JunoConfigSchema,yo as JunoConsoleConfigSchema,ce as JunoPackageDependenciesSchema,So as JunoPackageSchema,X as MaxMemorySizeConfigSchema,pe as MemoryTextSchema,ge as ModuleLogVisibilitySchema,Lt as ModuleSettingsSchema,nt as OnRunContextSchema,no as OnRunEnvSchema,rt as OnRunSchema,vt as OrbiterConfigSchema,Ce as OrbiterIdSchema,Se as OrbiterIdsSchema,Jt as PermissionTextSchema,Pt as PrecompressSchema,at as RuleSchema,Ho as RulesTypeSchema,Ze as RunFnOrObjectSchema,te as RunFnSchema,Ht as SatelliteAssertionsSchema,kt as SatelliteConfigOptionsSchema,Ae as SatelliteIdSchema,Oe as SatelliteIdsSchema,de as StorageCollectionSchema,ee as StorageConfigHeaderSchema,ne as StorageConfigRedirectSchema,oe as StorageConfigRewriteSchema,$ as StorageConfigSchema,it as StorageConfigSourceGlobSchema,Io as defineConfig,io as defineConsoleConfig,Qe as defineRun};
1
+ import*as J from"zod";import*as pt from"zod";var D=e=>pt.custom(t=>e.implement(t));import*as b from"zod";import*as Ot from"zod";var N="abcdefghijklmnopqrstuvwxyz234567",R=Object.create(null);for(let e=0;e<N.length;e++)R[N[e]]=e;R[0]=R.o;R[1]=R.i;function lt(e){let t=0,o=0,n="";function r(i){return t<0?o|=i>>-t:o=i<<t&248,t>3?(t-=8,1):(t<4&&(n+=N[o>>3],t+=5),0)}for(let i=0;i<e.length;)i+=r(e[i]);return n+(t<0?N[o>>3]:"")}function dt(e){let t=0,o=0,n=new Uint8Array(e.length*4/3|0),r=0;function i(a){let s=R[a.toLowerCase()];if(s===void 0)throw new Error(`Invalid character: ${JSON.stringify(a)}`);s<<=3,o|=s>>>t,t+=5,t>=8&&(n[r++]=o,t-=8,t>0?o=s<<5-t&255:o=0)}for(let a of e)i(a);return n.slice(0,r)}var Vt=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function bt(e){let t=-1;for(let o=0;o<e.length;o++){let r=(e[o]^t)&255;t=Vt[r]^t>>>8}return(t^-1)>>>0}function Wt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function B(e,...t){if(!Wt(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Q(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ht(e,t){B(e);let o=t.outputLen;if(e.length<o)throw new Error("digestInto() expects output buffer of length at least "+o)}function M(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function V(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function m(e,t){return e<<32-t|e>>>t}var mt=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Kt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function gt(e){if(B(e),mt)return e.toHex();let t="";for(let o=0;o<e.length;o++)t+=Kt[e[o]];return t}var S={_0:48,_9:57,A:65,F:70,a:97,f:102};function ut(e){if(e>=S._0&&e<=S._9)return e-S._0;if(e>=S.A&&e<=S.F)return e-(S.A-10);if(e>=S.a&&e<=S.f)return e-(S.a-10)}function yt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(mt)return Uint8Array.fromHex(e);let t=e.length,o=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(o);for(let r=0,i=0;r<o;r++,i+=2){let a=ut(e.charCodeAt(i)),s=ut(e.charCodeAt(i+1));if(a===void 0||s===void 0){let l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[r]=a*16+s}return n}function qt(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function tt(e){return typeof e=="string"&&(e=qt(e)),B(e),e}var G=class{};function Ct(e){let t=n=>e().update(tt(n)).digest(),o=e();return t.outputLen=o.outputLen,t.blockLen=o.blockLen,t.create=()=>e(),t}function Xt(e,t,o,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,o,n);let r=BigInt(32),i=BigInt(4294967295),a=Number(o>>r&i),s=Number(o&i),l=n?4:0,h=n?0:4;e.setUint32(t+l,a,n),e.setUint32(t+h,s,n)}function St(e,t,o){return e&t^~e&o}function zt(e,t,o){return e&t^e&o^t&o}var W=class extends G{constructor(t,o,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=o,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(t),this.view=V(this.buffer)}update(t){Q(this),t=tt(t),B(t);let{view:o,buffer:n,blockLen:r}=this,i=t.length;for(let a=0;a<i;){let s=Math.min(r-this.pos,i-a);if(s===r){let l=V(t);for(;r<=i-a;a+=r)this.process(l,a);continue}n.set(t.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===r&&(this.process(o,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Q(this),ht(t,this),this.finished=!0;let{buffer:o,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;o[a++]=128,M(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let x=a;x<r;x++)o[x]=0;Xt(n,r-8,BigInt(this.length*8),i),this.process(n,0);let s=V(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let h=l/4,O=this.get();if(h>O.length)throw new Error("_sha2: outputLen bigger than state");for(let x=0;x<h;x++)s.setUint32(4*x,O[x],i)}digest(){let{buffer:t,outputLen:o}=this;this.digestInto(t);let n=t.slice(0,o);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:o,buffer:n,length:r,finished:i,destroyed:a,pos:s}=this;return t.destroyed=a,t.finished=i,t.length=r,t.pos=s,r%o&&t.buffer.set(n),t}clone(){return this._cloneInto()}},z=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),A=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);var $t=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),E=new Uint32Array(64),et=class extends W{constructor(t=32){super(64,t,8,!1),this.A=z[0]|0,this.B=z[1]|0,this.C=z[2]|0,this.D=z[3]|0,this.E=z[4]|0,this.F=z[5]|0,this.G=z[6]|0,this.H=z[7]|0}get(){let{A:t,B:o,C:n,D:r,E:i,F:a,G:s,H:l}=this;return[t,o,n,r,i,a,s,l]}set(t,o,n,r,i,a,s,l){this.A=t|0,this.B=o|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=s|0,this.H=l|0}process(t,o){for(let x=0;x<16;x++,o+=4)E[x]=t.getUint32(o,!1);for(let x=16;x<64;x++){let U=E[x-15],_=E[x-2],xt=m(U,7)^m(U,18)^U>>>3,Z=m(_,17)^m(_,19)^_>>>10;E[x]=Z+E[x-7]+xt+E[x-16]|0}let{A:n,B:r,C:i,D:a,E:s,F:l,G:h,H:O}=this;for(let x=0;x<64;x++){let U=m(s,6)^m(s,11)^m(s,25),_=O+U+St(s,l,h)+$t[x]+E[x]|0,Z=(m(n,2)^m(n,13)^m(n,22))+zt(n,r,i)|0;O=h,h=l,l=s,s=a+_|0,a=i,i=r,r=n,n=_+Z|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,s=s+this.E|0,l=l+this.F|0,h=h+this.G|0,O=O+this.H|0,this.set(n,r,i,a,s,l,h,O)}roundClean(){M(E)}destroy(){this.set(0,0,0,0,0,0,0,0),M(this.buffer)}},ot=class extends et{constructor(){super(28),this.A=A[0]|0,this.B=A[1]|0,this.C=A[2]|0,this.D=A[3]|0,this.E=A[4]|0,this.F=A[5]|0,this.G=A[6]|0,this.H=A[7]|0}};var At=Ct(()=>new ot);var K="__principal__",Yt=2,wt=4,Zt="aaaaa-aa",L=class e{static anonymous(){return new this(new Uint8Array([wt]))}static managementCanister(){return this.fromText(Zt)}static selfAuthenticating(t){let o=At(t);return new this(new Uint8Array([...o,Yt]))}static from(t){if(typeof t=="string")return e.fromText(t);if(Object.getPrototypeOf(t)===Uint8Array.prototype)return new e(t);if(e.isPrincipal(t))return new e(t._arr);throw new Error(`Impossible to convert ${JSON.stringify(t)} to Principal.`)}static fromHex(t){return new this(yt(t))}static fromText(t){let o=t;if(t.includes(K)){let a=JSON.parse(t);K in a&&(o=a[K])}let n=o.toLowerCase().replace(/-/g,""),r=dt(n);r=r.slice(4,r.length);let i=new this(r);if(i.toText()!==o)throw new Error(`Principal "${i.toText()}" does not have a valid checksum (original value "${o}" may not be a valid Principal ID).`);return i}static fromUint8Array(t){return new this(t)}static isPrincipal(t){return t instanceof e||typeof t=="object"&&t!==null&&"_isPrincipal"in t&&t._isPrincipal===!0&&"_arr"in t&&t._arr instanceof Uint8Array}constructor(t){this._arr=t,this._isPrincipal=!0}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===wt}toUint8Array(){return this._arr}toHex(){return gt(this._arr).toUpperCase()}toText(){let t=new ArrayBuffer(4);new DataView(t).setUint32(0,bt(this._arr));let n=new Uint8Array(t),r=new Uint8Array([...n,...this._arr]),a=lt(r).match(/.{1,5}/g);if(!a)throw new Error;return a.join("-")}toString(){return this.toText()}toJSON(){return{[K]:this.toText()}}compareTo(t){for(let o=0;o<Math.min(this._arr.length,t._arr.length);o++){if(this._arr[o]<t._arr[o])return"lt";if(this._arr[o]>t._arr[o])return"gt"}return this._arr.length<t._arr.length?"lt":this._arr.length>t._arr.length?"gt":"eq"}ltEq(t){let o=this.compareTo(t);return o=="lt"||o=="eq"}gtEq(t){let o=this.compareTo(t);return o=="gt"||o=="eq"}};import{PrincipalTextSchema as Qt}from"@dfinity/zod-schemas";import*as H from"zod";var F=H.string().refine(e=>Qt.safeParse(e).success,{message:"Invalid textual representation of a Principal."}),q=H.unknown().transform((e,t)=>L.isPrincipal(e)?L.from(e):(t.issues.push({code:"custom",message:"Invalid Principal",input:e}),H.NEVER));var Et=Ot.unknown().refine(e=>e!=null&&typeof e=="object"&&"transformRequest"in e&&typeof e.transformRequest=="function"&&"getPrincipal"in e&&typeof e.getPrincipal=="function"&&q.safeParse(e.getPrincipal()).success,{message:"Invalid Identity"});var nt=b.strictObject({satelliteId:q,identity:Et,container:b.string().optional()}),te=b.function({input:b.tuple([nt]),output:b.promise(b.void()).or(b.void())}),rt=b.strictObject({run:D(te)});var ee=J.function({input:J.tuple([nt]),output:rt}),to=J.union([rt,D(ee)]);function eo(e){return e}import*as It from"zod";import*as T from"zod";var j=T.union([T.literal("production"),T.string()]),Tt=T.object({mode:j});var io=Tt.extend({profile:It.string().optional()});function co(e){return e}import{PrincipalTextSchema as ie}from"@dfinity/zod-schemas";import*as g from"zod";import*as f from"zod";import*as k from"zod";var X=k.object({heap:k.bigint().optional(),stable:k.bigint().optional()}).strict();var it=f.string(),oe=f.object({source:it,headers:f.array(f.tuple([f.string(),f.string()]))}).strict(),ne=f.object({source:it,destination:f.string()}).strict(),re=f.object({source:it,location:f.string(),code:f.union([f.literal(301),f.literal(302)])}).strict(),$=f.object({headers:f.array(oe).optional(),rewrites:f.array(ne).optional(),redirects:f.array(re).optional(),iframe:f.enum(["deny","same-origin","allow-any"]).optional(),rawAccess:f.boolean().optional(),maxMemorySize:X.optional(),version:f.bigint().optional()});import*as p from"zod";import*as jt from"zod";var Pt=jt.enum(["identity","gzip","compress","deflate","br"]);var _t=p.strictObject({pattern:p.string().optional(),mode:p.enum(["both","replace"]).optional(),algorithm:p.enum(["gzip","brotli"]).optional()}),Rt=p.strictObject({source:p.string().optional(),ignore:p.array(p.string()).optional(),precompress:p.union([_t,p.array(_t),p.literal(!1)]).optional(),encoding:p.array(p.tuple([p.string(),Pt])).optional(),predeploy:p.array(p.string()).optional(),postdeploy:p.array(p.string()).optional()});var ae=g.object({id:ie}),ce=g.object({ids:g.record(j,F)}),Ht=g.object({...Rt.shape,storage:$.optional()}),So=g.union([g.object({...ae.shape,...Ht.shape}).strict(),g.object({...ce.shape,...Ht.shape}).strict()]);import*as w from"zod";var se=w.record(w.string(),w.string()),Ao=w.object({name:w.string(),version:w.string(),dependencies:se.optional()});var Oo="@junobuild/satellite",Eo="@junobuild/sputnik",To="@junobuild/mission-control",Io="@junobuild/orbiter";function Po(e){return e}import*as I from"zod";var Ft=I.strictObject({heapMemory:I.union([I.bigint(),I.boolean()]).optional()});import{PrincipalTextSchema as fe}from"@dfinity/zod-schemas";import*as u from"zod";var xe=u.strictObject({derivationOrigin:u.url().optional(),externalAlternativeOrigins:u.array(u.url()).optional()}),pe=u.strictObject({allowedCallers:u.array(fe)}),Jt=u.strictObject({internetIdentity:xe.optional(),rules:pe.optional(),version:u.bigint().optional()});import*as v from"zod";import*as d from"zod";var Ut=d.enum(["public","private","managed","controllers"]),le=d.enum(["heap","stable"]),Jo=d.enum(["db","storage"]),at=d.strictObject({collection:d.string(),read:Ut,write:Ut,memory:le,createdAt:d.bigint().optional(),updatedAt:d.bigint().optional(),version:d.bigint().optional(),maxSize:d.bigint().optional(),maxChangesPerUser:d.number().optional(),maxCapacity:d.number().optional(),mutablePermissions:d.boolean().optional().default(!0),maxTokens:d.bigint().optional()});var de=at.omit({createdAt:!0,updatedAt:!0,maxSize:!0}),be=at.omit({createdAt:!0,updatedAt:!0,maxCapacity:!0}),Bt=v.strictObject({datastore:v.array(de).optional(),storage:v.array(be).optional()});import*as Y from"zod";var Mt=Y.strictObject({maxMemorySize:X.optional(),version:Y.bigint().optional()});import*as c from"zod";var ft=c.strictObject({server:c.number().optional(),admin:c.number().optional()}),ue=c.strictObject({console:c.number().optional()}),he=c.strictObject({ports:ft.extend(ue.shape).optional()}),me=c.strictObject({ports:ft.optional()}),ge=c.strictObject({ports:ft.optional()}),ct=c.strictObject({type:c.enum(["docker","podman"]),image:c.string().optional(),name:c.string().optional(),volume:c.string().optional(),target:c.string().optional(),platform:c.enum(["linux/amd64","linux/arm64"]).optional()}),ye=c.strictObject({registry:c.boolean().optional(),cmc:c.boolean().optional(),icp:c.boolean().optional(),cycles:c.boolean().optional(),nns:c.boolean().optional(),sns:c.boolean().optional(),ii:c.boolean().optional(),nnsDapp:c.boolean().optional()}),st=c.strictObject({services:ye}),Lt=c.union([c.strictObject({runner:ct.optional(),network:st.optional(),skylab:he}),c.strictObject({runner:ct.optional(),network:st.optional(),console:me}),c.strictObject({runner:ct.optional(),network:st.optional(),satellite:ge})]);import*as y from"zod";var Ce=y.enum(["controllers","public"]),kt=y.strictObject({freezingThreshold:y.bigint().optional(),reservedCyclesLimit:y.bigint().optional(),logVisibility:Ce.optional(),heapMemoryLimit:y.bigint().optional(),memoryAllocation:y.bigint().optional(),computeAllocation:y.bigint().optional()});import{PrincipalTextSchema as Se}from"@dfinity/zod-schemas";import*as P from"zod";var ze=P.object({id:Se}),Ae=P.object({ids:P.record(j,F)}),vt=P.union([ze.strict(),Ae.strict()]);import{PrincipalTextSchema as we}from"@dfinity/zod-schemas";import*as C from"zod";var Oe=C.object({id:we}),Ee=C.object({ids:C.record(j,F)}),Dt=C.object({storage:$.optional(),datastore:Mt.optional(),authentication:Jt.optional(),assertions:Ft.optional(),settings:kt.optional(),collections:Bt.optional()}),Nt=C.union([C.object({...Oe.shape,...Dt.shape}).strict(),C.object({...Ee.shape,...Dt.shape}).strict()]);import*as Gt from"zod";var cn=Gt.strictObject({satellite:Nt,orbiter:vt.optional(),emulator:Lt.optional()});export{xe as AuthenticationConfigInternetIdentitySchema,pe as AuthenticationConfigRulesSchema,Jt as AuthenticationConfigSchema,Rt as CliConfigSchema,Bt as CollectionsSchema,ae as ConsoleIdSchema,ce as ConsoleIdsSchema,de as DatastoreCollectionSchema,Mt as DatastoreConfigSchema,Lt as EmulatorConfigSchema,Pt as EncodingTypeSchema,To as JUNO_PACKAGE_MISSION_CONTROL_ID,Io as JUNO_PACKAGE_ORBITER_ID,Oo as JUNO_PACKAGE_SATELLITE_ID,Eo as JUNO_PACKAGE_SPUTNIK_ID,Tt as JunoConfigEnvSchema,j as JunoConfigModeSchema,cn as JunoConfigSchema,So as JunoConsoleConfigSchema,se as JunoPackageDependenciesSchema,Ao as JunoPackageSchema,X as MaxMemorySizeConfigSchema,le as MemoryTextSchema,Ce as ModuleLogVisibilitySchema,kt as ModuleSettingsSchema,nt as OnRunContextSchema,io as OnRunEnvSchema,rt as OnRunSchema,vt as OrbiterConfigSchema,ze as OrbiterIdSchema,Ae as OrbiterIdsSchema,Ut as PermissionTextSchema,_t as PrecompressSchema,at as RuleSchema,Jo as RulesTypeSchema,to as RunFnOrObjectSchema,ee as RunFnSchema,Ft as SatelliteAssertionsSchema,Nt as SatelliteConfigOptionsSchema,Oe as SatelliteIdSchema,Ee as SatelliteIdsSchema,be as StorageCollectionSchema,oe as StorageConfigHeaderSchema,re as StorageConfigRedirectSchema,ne as StorageConfigRewriteSchema,$ as StorageConfigSchema,it as StorageConfigSourceGlobSchema,Po as defineConfig,co as defineConsoleConfig,eo as defineRun};
2
2
  /*! Bundled license information:
3
3
 
4
4
  @noble/hashes/esm/utils.js: