[{"data":1,"prerenderedAt":4269},["ShallowReactive",2],{"navigation":3,"\u002Fservices\u002Fperiods":927,"mdc--u5mbys-key":4211,"mdc--r89yej-key":4227,"mdc--isn6ws-key":4236,"mdc-1uriur-key":4248,"mdc-m7w85h-key":4260},[4,40,114,446,474,498,596,903],{"title":5,"path":6,"stem":7,"children":8},"Architecture","\u002Farchitecture","architecture",[9,14,28,32,36],{"title":10,"path":6,"stem":11,"access":12,"icon":13},"Overview","architecture\u002Findex","public","i-lucide-network",{"title":10,"path":15,"stem":16,"children":17,"access":12,"icon":19},"\u002Farchitecture\u002Fkernel","architecture\u002F1.kernel\u002Findex",[18,20,24],{"title":10,"path":15,"stem":16,"access":12,"icon":19},"i-lucide-box",{"title":21,"path":22,"stem":23,"access":12},"Enclave","\u002Farchitecture\u002Fkernel\u002Fenclave","architecture\u002F1.kernel\u002Fenclave",{"title":25,"path":26,"stem":27,"access":12},"Forking the enclave","\u002Farchitecture\u002Fkernel\u002Fforking-the-enclave","architecture\u002F1.kernel\u002Fforking-the-enclave",{"title":29,"path":30,"stem":31,"access":12},"Ports","\u002Farchitecture\u002Fports","architecture\u002F2.ports",{"title":33,"path":34,"stem":35,"access":12},"Service layers","\u002Farchitecture\u002Fservice-layers","architecture\u002F3.service-layers",{"title":37,"path":38,"stem":39,"access":12},"Families","\u002Farchitecture\u002Ffamilies","architecture\u002F4.families",{"title":41,"path":42,"stem":43,"children":44},"Core","\u002Fcore","core",[45,47,50,53,56,88,97],{"title":10,"path":42,"stem":46,"access":12,"icon":19},"core\u002Findex",{"title":10,"path":48,"stem":49,"access":12},"\u002Fcore\u002F01-overview","core\u002F01-overview",{"title":10,"path":51,"stem":52,"access":12},"\u002Fcore\u002F05-stores","core\u002F05-stores",{"title":10,"path":54,"stem":55,"access":12},"\u002Fcore\u002F06-permissions-and-keyring","core\u002F06-permissions-and-keyring",{"title":10,"path":57,"stem":58,"children":59,"access":12},"\u002Fcore\u002Fnoydb","core\u002F2.noydb\u002Findex",[60,61,65,68,72,76,80,84],{"title":10,"path":57,"stem":58,"access":12},{"title":62,"path":63,"stem":64,"access":12},"Noydb","\u002Fcore\u002Fnoydb\u002Fmethods","core\u002F2.noydb\u002F1.methods",{"title":21,"path":66,"stem":67,"access":12},"\u002Fcore\u002Fnoydb\u002Fenclave","core\u002F2.noydb\u002F2.enclave",{"title":69,"path":70,"stem":71,"access":12},"Secret & keyring","\u002Fcore\u002Fnoydb\u002Fkeyring","core\u002F2.noydb\u002F3.keyring",{"title":73,"path":74,"stem":75,"access":12},"Authentication","\u002Fcore\u002Fnoydb\u002Fauthentication","core\u002F2.noydb\u002F4.authentication",{"title":77,"path":78,"stem":79,"access":12},"Auth recovery","\u002Fcore\u002Fnoydb\u002Frecovery","core\u002F2.noydb\u002F5.recovery",{"title":81,"path":82,"stem":83,"access":12},"Configuration","\u002Fcore\u002Fnoydb\u002Fconfiguration","core\u002F2.noydb\u002F6.configuration",{"title":85,"path":86,"stem":87,"access":12},"Strategies","\u002Fcore\u002Fnoydb\u002Fstrategies","core\u002F2.noydb\u002F7.strategies",{"title":10,"path":89,"stem":90,"children":91,"access":12},"\u002Fcore\u002Fvault","core\u002F3.vault\u002Findex",[92,93],{"title":10,"path":89,"stem":90,"access":12},{"title":94,"path":95,"stem":96,"access":12},"Vault","\u002Fcore\u002Fvault\u002Fmethods","core\u002F3.vault\u002F1.methods",{"title":10,"path":98,"stem":99,"children":100,"access":12},"\u002Fcore\u002Fcollection","core\u002F4.collection\u002Findex",[101,102,106,110],{"title":10,"path":98,"stem":99,"access":12},{"title":103,"path":104,"stem":105,"access":12},"Collection","\u002Fcore\u002Fcollection\u002Fmethods","core\u002F4.collection\u002F1.methods",{"title":107,"path":108,"stem":109,"access":12},"Querying","\u002Fcore\u002Fcollection\u002Fquerying","core\u002F4.collection\u002F2.querying",{"title":111,"path":112,"stem":113,"access":12},"Schema","\u002Fcore\u002Fcollection\u002Fschema","core\u002F4.collection\u002F3.schema",{"title":37,"path":115,"stem":116,"children":117},"\u002Ffamilies","families",[118,121,168,194,208,212,216,294,340],{"title":10,"path":115,"stem":119,"access":12,"icon":120},"families\u002Findex","i-lucide-plug",{"title":122,"path":123,"stem":124,"children":125,"access":12,"icon":127},"as-Exports","\u002Ffamilies\u002Fas","families\u002Fas\u002Findex",[126,128,132,136,140,144,148,152,156,160,164],{"title":122,"path":123,"stem":124,"access":12,"icon":127},"i-lucide-book-open",{"title":129,"path":130,"stem":131,"access":12},"aws-s3","\u002Ffamilies\u002Fas\u002Faws-s3","families\u002Fas\u002Faws-s3",{"title":133,"path":134,"stem":135,"access":12},"blob","\u002Ffamilies\u002Fas\u002Fblob","families\u002Fas\u002Fblob",{"title":137,"path":138,"stem":139,"access":12},"csv","\u002Ffamilies\u002Fas\u002Fcsv","families\u002Fas\u002Fcsv",{"title":141,"path":142,"stem":143,"access":12},"json","\u002Ffamilies\u002Fas\u002Fjson","families\u002Fas\u002Fjson",{"title":145,"path":146,"stem":147,"access":12},"ndjson","\u002Ffamilies\u002Fas\u002Fndjson","families\u002Fas\u002Fndjson",{"title":149,"path":150,"stem":151,"access":12},"noydb","\u002Ffamilies\u002Fas\u002Fnoydb","families\u002Fas\u002Fnoydb",{"title":153,"path":154,"stem":155,"access":12},"sql","\u002Ffamilies\u002Fas\u002Fsql","families\u002Fas\u002Fsql",{"title":157,"path":158,"stem":159,"access":12},"xlsx","\u002Ffamilies\u002Fas\u002Fxlsx","families\u002Fas\u002Fxlsx",{"title":161,"path":162,"stem":163,"access":12},"xml","\u002Ffamilies\u002Fas\u002Fxml","families\u002Fas\u002Fxml",{"title":165,"path":166,"stem":167,"access":12},"zip","\u002Ffamilies\u002Fas\u002Fzip","families\u002Fas\u002Fzip",{"title":169,"path":170,"stem":171,"children":172,"access":12,"icon":127},"at-Seals","\u002Ffamilies\u002Fat","families\u002Fat\u002Findex",[173,174,178,182,186,190],{"title":169,"path":170,"stem":171,"access":12,"icon":127},{"title":175,"path":176,"stem":177,"access":12},"aws-kms","\u002Ffamilies\u002Fat\u002Faws-kms","families\u002Fat\u002Faws-kms",{"title":179,"path":180,"stem":181,"access":12},"azure-keyvault","\u002Ffamilies\u002Fat\u002Fazure-keyvault","families\u002Fat\u002Fazure-keyvault",{"title":183,"path":184,"stem":185,"access":12},"env","\u002Ffamilies\u002Fat\u002Fenv","families\u002Fat\u002Fenv",{"title":187,"path":188,"stem":189,"access":12},"gcp-kms","\u002Ffamilies\u002Fat\u002Fgcp-kms","families\u002Fat\u002Fgcp-kms",{"title":191,"path":192,"stem":193,"access":12},"macos-keychain","\u002Ffamilies\u002Fat\u002Fmacos-keychain","families\u002Fat\u002Fmacos-keychain",{"title":195,"path":196,"stem":197,"children":198,"access":12,"icon":127},"by-Sessions","\u002Ffamilies\u002Fby","families\u002Fby\u002Findex",[199,200,204],{"title":195,"path":196,"stem":197,"access":12,"icon":127},{"title":201,"path":202,"stem":203,"access":12},"peer","\u002Ffamilies\u002Fby\u002Fpeer","families\u002Fby\u002Fpeer",{"title":205,"path":206,"stem":207,"access":12},"tabs","\u002Ffamilies\u002Fby\u002Ftabs","families\u002Fby\u002Ftabs",{"title":209,"path":210,"stem":211,"access":12},"Classifying a package","\u002Ffamilies\u002Fclassification","families\u002Fclassification",{"title":213,"path":214,"stem":215,"access":12},"Command-line tools","\u002Ffamilies\u002Fcli","families\u002Fcli",{"title":217,"path":218,"stem":219,"children":220,"access":12,"icon":127},"in-Frameworks","\u002Ffamilies\u002Fin","families\u002Fin\u002Findex",[221,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290],{"title":217,"path":218,"stem":219,"access":12,"icon":127},{"title":223,"path":224,"stem":225,"access":12},"ai","\u002Ffamilies\u002Fin\u002Fai","families\u002Fin\u002Fai",{"title":227,"path":228,"stem":229,"access":12},"devtools","\u002Ffamilies\u002Fin\u002Fdevtools","families\u002Fin\u002Fdevtools",{"title":231,"path":232,"stem":233,"access":12},"devtools-tui","\u002Ffamilies\u002Fin\u002Fdevtools-tui","families\u002Fin\u002Fdevtools-tui",{"title":235,"path":236,"stem":237,"access":12},"liff","\u002Ffamilies\u002Fin\u002Fliff","families\u002Fin\u002Fliff",{"title":239,"path":240,"stem":241,"access":12},"nextjs","\u002Ffamilies\u002Fin\u002Fnextjs","families\u002Fin\u002Fnextjs",{"title":243,"path":244,"stem":245,"access":12},"nuxt","\u002Ffamilies\u002Fin\u002Fnuxt","families\u002Fin\u002Fnuxt",{"title":247,"path":248,"stem":249,"access":12},"pinia","\u002Ffamilies\u002Fin\u002Fpinia","families\u002Fin\u002Fpinia",{"title":251,"path":252,"stem":253,"access":12},"pwa","\u002Ffamilies\u002Fin\u002Fpwa","families\u002Fin\u002Fpwa",{"title":255,"path":256,"stem":257,"access":12},"react","\u002Ffamilies\u002Fin\u002Freact","families\u002Fin\u002Freact",{"title":259,"path":260,"stem":261,"access":12},"relay","\u002Ffamilies\u002Fin\u002Frelay","families\u002Fin\u002Frelay",{"title":263,"path":264,"stem":265,"access":12},"rest","\u002Ffamilies\u002Fin\u002Frest","families\u002Fin\u002Frest",{"title":267,"path":268,"stem":269,"access":12},"solid","\u002Ffamilies\u002Fin\u002Fsolid","families\u002Fin\u002Fsolid",{"title":271,"path":272,"stem":273,"access":12},"svelte","\u002Ffamilies\u002Fin\u002Fsvelte","families\u002Fin\u002Fsvelte",{"title":275,"path":276,"stem":277,"access":12},"tanstack-query","\u002Ffamilies\u002Fin\u002Ftanstack-query","families\u002Fin\u002Ftanstack-query",{"title":279,"path":280,"stem":281,"access":12},"tanstack-table","\u002Ffamilies\u002Fin\u002Ftanstack-table","families\u002Fin\u002Ftanstack-table",{"title":283,"path":284,"stem":285,"access":12},"vue","\u002Ffamilies\u002Fin\u002Fvue","families\u002Fin\u002Fvue",{"title":287,"path":288,"stem":289,"access":12},"yjs","\u002Ffamilies\u002Fin\u002Fyjs","families\u002Fin\u002Fyjs",{"title":291,"path":292,"stem":293,"access":12},"zustand","\u002Ffamilies\u002Fin\u002Fzustand","families\u002Fin\u002Fzustand",{"title":295,"path":296,"stem":297,"children":298,"access":12,"icon":127},"on-Auth","\u002Ffamilies\u002Fon","families\u002Fon\u002Findex",[299,300,304,308,312,316,320,324,328,332,336],{"title":295,"path":296,"stem":297,"access":12,"icon":127},{"title":301,"path":302,"stem":303,"access":12},"email-otp","\u002Ffamilies\u002Fon\u002Femail-otp","families\u002Fon\u002Femail-otp",{"title":305,"path":306,"stem":307,"access":12},"magic-link","\u002Ffamilies\u002Fon\u002Fmagic-link","families\u002Fon\u002Fmagic-link",{"title":309,"path":310,"stem":311,"access":12},"oidc","\u002Ffamilies\u002Fon\u002Foidc","families\u002Fon\u002Foidc",{"title":313,"path":314,"stem":315,"access":12},"password","\u002Ffamilies\u002Fon\u002Fpassword","families\u002Fon\u002Fpassword",{"title":317,"path":318,"stem":319,"access":12},"pin","\u002Ffamilies\u002Fon\u002Fpin","families\u002Fon\u002Fpin",{"title":321,"path":322,"stem":323,"access":12},"recovery","\u002Ffamilies\u002Fon\u002Frecovery","families\u002Fon\u002Frecovery",{"title":325,"path":326,"stem":327,"access":12},"shamir","\u002Ffamilies\u002Fon\u002Fshamir","families\u002Fon\u002Fshamir",{"title":329,"path":330,"stem":331,"access":12},"threat","\u002Ffamilies\u002Fon\u002Fthreat","families\u002Fon\u002Fthreat",{"title":333,"path":334,"stem":335,"access":12},"totp","\u002Ffamilies\u002Fon\u002Ftotp","families\u002Fon\u002Ftotp",{"title":337,"path":338,"stem":339,"access":12},"webauthn","\u002Ffamilies\u002Fon\u002Fwebauthn","families\u002Fon\u002Fwebauthn",{"title":341,"path":342,"stem":343,"children":344,"access":12,"icon":127},"to-Stores","\u002Ffamilies\u002Fto","families\u002Fto\u002Findex",[345,346,350,353,357,361,365,370,374,378,382,386,390,394,398,402,406,410,414,417,421,425,429,434,438,442],{"title":341,"path":342,"stem":343,"access":12,"icon":127},{"title":347,"path":348,"stem":349,"access":12},"aws-dynamo","\u002Ffamilies\u002Fto\u002Faws-dynamo","families\u002Fto\u002Faws-dynamo",{"title":129,"path":351,"stem":352,"access":12},"\u002Ffamilies\u002Fto\u002Faws-s3","families\u002Fto\u002Faws-s3",{"title":354,"path":355,"stem":356,"access":12},"browser-fs","\u002Ffamilies\u002Fto\u002Fbrowser-fs","families\u002Fto\u002Fbrowser-fs",{"title":358,"path":359,"stem":360,"access":12},"browser-idb","\u002Ffamilies\u002Fto\u002Fbrowser-idb","families\u002Fto\u002Fbrowser-idb",{"title":362,"path":363,"stem":364,"access":12},"browser-local","\u002Ffamilies\u002Fto\u002Fbrowser-local","families\u002Fto\u002Fbrowser-local",{"title":366,"path":367,"stem":368,"access":12,"icon":369},"Choosing a store","\u002Ffamilies\u002Fto\u002Fchoosing-a-store","families\u002Fto\u002Fchoosing-a-store","i-lucide-split",{"title":371,"path":372,"stem":373,"access":12},"cloudflare-d1","\u002Ffamilies\u002Fto\u002Fcloudflare-d1","families\u002Fto\u002Fcloudflare-d1",{"title":375,"path":376,"stem":377,"access":12},"cloudflare-r2","\u002Ffamilies\u002Fto\u002Fcloudflare-r2","families\u002Fto\u002Fcloudflare-r2",{"title":379,"path":380,"stem":381,"access":12},"drive","\u002Ffamilies\u002Fto\u002Fdrive","families\u002Fto\u002Fdrive",{"title":383,"path":384,"stem":385,"access":12},"file","\u002Ffamilies\u002Fto\u002Ffile","families\u002Fto\u002Ffile",{"title":387,"path":388,"stem":389,"access":12},"icloud","\u002Ffamilies\u002Fto\u002Ficloud","families\u002Fto\u002Ficloud",{"title":391,"path":392,"stem":393,"access":12},"memory","\u002Ffamilies\u002Fto\u002Fmemory","families\u002Fto\u002Fmemory",{"title":395,"path":396,"stem":397,"access":12},"meter","\u002Ffamilies\u002Fto\u002Fmeter","families\u002Fto\u002Fmeter",{"title":399,"path":400,"stem":401,"access":12},"mysql","\u002Ffamilies\u002Fto\u002Fmysql","families\u002Fto\u002Fmysql",{"title":403,"path":404,"stem":405,"access":12},"nfs","\u002Ffamilies\u002Fto\u002Fnfs","families\u002Fto\u002Fnfs",{"title":407,"path":408,"stem":409,"access":12},"postgres","\u002Ffamilies\u002Fto\u002Fpostgres","families\u002Fto\u002Fpostgres",{"title":411,"path":412,"stem":413,"access":12},"probe","\u002Ffamilies\u002Fto\u002Fprobe","families\u002Fto\u002Fprobe",{"title":263,"path":415,"stem":416,"access":12},"\u002Ffamilies\u002Fto\u002Frest","families\u002Fto\u002Frest",{"title":418,"path":419,"stem":420,"access":12},"smb","\u002Ffamilies\u002Fto\u002Fsmb","families\u002Fto\u002Fsmb",{"title":422,"path":423,"stem":424,"access":12},"sqlite","\u002Ffamilies\u002Fto\u002Fsqlite","families\u002Fto\u002Fsqlite",{"title":426,"path":427,"stem":428,"access":12},"ssh","\u002Ffamilies\u002Fto\u002Fssh","families\u002Fto\u002Fssh",{"title":430,"path":431,"stem":432,"access":12,"icon":433},"Store-locator descriptors","\u002Ffamilies\u002Fto\u002Fstore-locator","families\u002Fto\u002Fstore-locator","i-lucide-map-pin",{"title":435,"path":436,"stem":437,"access":12},"supabase","\u002Ffamilies\u002Fto\u002Fsupabase","families\u002Fto\u002Fsupabase",{"title":439,"path":440,"stem":441,"access":12},"turso","\u002Ffamilies\u002Fto\u002Fturso","families\u002Fto\u002Fturso",{"title":443,"path":444,"stem":445,"access":12},"webdav","\u002Ffamilies\u002Fto\u002Fwebdav","families\u002Fto\u002Fwebdav",{"title":447,"path":448,"stem":449,"children":450},"Faq","\u002Ffaq","faq",[451,454,458,462,466,470],{"title":10,"path":448,"stem":452,"access":12,"icon":453},"faq\u002Findex","i-lucide-circle-help",{"title":455,"path":456,"stem":457,"access":12},"Where can noy-db run?","\u002Ffaq\u002Fwhere-can-noy-db-run","faq\u002F1.where-can-noy-db-run",{"title":459,"path":460,"stem":461,"access":12},"Native mobile & PWA","\u002Ffaq\u002Fmobile-and-pwa","faq\u002F2.mobile-and-pwa",{"title":463,"path":464,"stem":465,"access":12},"Threat model","\u002Ffaq\u002Fthreat-model","faq\u002F3.threat-model",{"title":467,"path":468,"stem":469,"access":12},"Community & ecosystem","\u002Ffaq\u002Fcommunity-and-ecosystem","faq\u002F4.community-and-ecosystem",{"title":471,"path":472,"stem":473,"access":12},"Licensing","\u002Ffaq\u002Flicensing","faq\u002F5.licensing",{"title":475,"path":476,"stem":477,"children":478},"Glossary","\u002Fglossary","glossary",[479,482,486,490,494],{"title":10,"path":476,"stem":480,"access":12,"icon":481},"glossary\u002Findex","i-lucide-book-a",{"title":483,"path":484,"stem":485,"access":12},"Core vocabulary","\u002Fglossary\u002Fcore-vocabulary","glossary\u002Fcore-vocabulary",{"title":487,"path":488,"stem":489,"access":12},"Deletion vocabulary","\u002Fglossary\u002Fdeletion","glossary\u002Fdeletion",{"title":491,"path":492,"stem":493,"access":12},"Satellite collection vocabulary","\u002Fglossary\u002Fsatellite-collections","glossary\u002Fsatellite-collections",{"title":495,"path":496,"stem":497,"access":12},"Schema migration vocabulary","\u002Fglossary\u002Fschema-migration","glossary\u002Fschema-migration",{"title":499,"path":500,"stem":501,"children":502},"Recipes","\u002Frecipes","recipes",[503,506,510,514,518,522,526,530,534,538,542,546,550,554,558,562,567,571,575,580,584,588,592],{"title":10,"path":500,"stem":504,"access":12,"icon":505},"recipes\u002Findex","i-lucide-play",{"title":507,"path":508,"stem":509,"access":12},"Accounting app","\u002Frecipes\u002Faccounting-app","recipes\u002Faccounting-app",{"title":511,"path":512,"stem":513,"access":12},"Analytics app","\u002Frecipes\u002Fanalytics-app","recipes\u002Fanalytics-app",{"title":515,"path":516,"stem":517,"access":12},"Attestation verifier","\u002Frecipes\u002Fattestation-verifier","recipes\u002Fattestation-verifier",{"title":519,"path":520,"stem":521,"access":12},"AWS-KMS attestation","\u002Frecipes\u002Faws-kms-pdf-attestation","recipes\u002Faws-kms-pdf-attestation",{"title":523,"path":524,"stem":525,"access":12},"Browser durability","\u002Frecipes\u002Fbrowser-durability","recipes\u002Fbrowser-durability",{"title":527,"path":528,"stem":529,"access":12},"Production cloud store","\u002Frecipes\u002Fcloud-store","recipes\u002Fcloud-store",{"title":531,"path":532,"stem":533,"access":12},"Compose your own setup","\u002Frecipes\u002Fcompose-your-own","recipes\u002Fcompose-your-own",{"title":535,"path":536,"stem":537,"access":12},"Confidential HR records","\u002Frecipes\u002Fconfidential-hr","recipes\u002Fconfidential-hr",{"title":539,"path":540,"stem":541,"access":12},"Composing an echo secret","\u002Frecipes\u002Fecho-secret-enrollment","recipes\u002Fecho-secret-enrollment",{"title":543,"path":544,"stem":545,"access":12},"Email archive","\u002Frecipes\u002Femail-archive","recipes\u002Femail-archive",{"title":547,"path":548,"stem":549,"access":12},"Email archive — threads & revisions","\u002Frecipes\u002Femail-archive-threads-revisions","recipes\u002Femail-archive-threads-revisions",{"title":551,"path":552,"stem":553,"access":12},"Export & portability","\u002Frecipes\u002Fexport-portability","recipes\u002Fexport-portability",{"title":555,"path":556,"stem":557,"access":12},"Passwordless OIDC (AWS Cognito)","\u002Frecipes\u002Fpasswordless-oidc","recipes\u002Fpasswordless-oidc",{"title":559,"path":560,"stem":561,"access":12},"Personal notebook","\u002Frecipes\u002Fpersonal-notebook","recipes\u002Fpersonal-notebook",{"title":563,"path":564,"stem":565,"access":12,"icon":566},"Playgrounds","\u002Frecipes\u002Fplaygrounds","recipes\u002Fplaygrounds","i-lucide-gamepad-2",{"title":568,"path":569,"stem":570,"access":12},"React invoice app","\u002Frecipes\u002Freact-invoices","recipes\u002Freact-invoices",{"title":572,"path":573,"stem":574,"access":12},"Collaborative app","\u002Frecipes\u002Frealtime-crdt-app","recipes\u002Frealtime-crdt-app",{"title":576,"path":577,"stem":578,"access":12,"icon":579},"Run the showcases","\u002Frecipes\u002Frun-the-showcases","recipes\u002Frun-the-showcases","i-lucide-flask-conical",{"title":581,"path":582,"stem":583,"access":12},"Search & RAG","\u002Frecipes\u002Fsearch-rag","recipes\u002Fsearch-rag",{"title":585,"path":586,"stem":587,"access":12},"Team vault topology","\u002Frecipes\u002Fteam-vault-topology","recipes\u002Fteam-vault-topology",{"title":589,"path":590,"stem":591,"access":12},"Unlock ceremonies","\u002Frecipes\u002Funlock-ceremonies","recipes\u002Funlock-ceremonies",{"title":593,"path":594,"stem":595,"access":12},"User preferences","\u002Frecipes\u002Fuser-preferences","recipes\u002Fuser-preferences",{"title":597,"path":598,"stem":599,"children":600},"Services","\u002Fservices","services",[601,604,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,676,680,684,688,692,696,700,704,710,714,718,722,726,730,734,738,742,746,750,755,759,763,767,771,775,779,783,787,791,795,799,803,807,811,815,819,823,827,831,835,839,843,847,851,855,859,863,867,871,875,879,883,887,891,895,899],{"title":10,"path":598,"stem":602,"access":12,"icon":603},"services\u002Findex","i-lucide-layers",{"title":605,"path":606,"stem":607,"access":12},"archive","\u002Fservices\u002Farchive","services\u002Farchive",{"title":609,"path":610,"stem":611,"access":12},"attestation","\u002Fservices\u002Fattestation","services\u002Fattestation",{"title":613,"path":614,"stem":615,"access":12},"auth-introspection","\u002Fservices\u002Fauth-introspection","services\u002Fauth-introspection",{"title":617,"path":618,"stem":619,"access":12},"auth-landscape","\u002Fservices\u002Fauth-landscape","services\u002Fauth-landscape",{"title":621,"path":622,"stem":623,"access":12},"blobs","\u002Fservices\u002Fblobs","services\u002Fblobs",{"title":625,"path":626,"stem":627,"access":12},"broker","\u002Fservices\u002Fbroker","services\u002Fbroker",{"title":629,"path":630,"stem":631,"access":12},"bundle","\u002Fservices\u002Fbundle","services\u002Fbundle",{"title":633,"path":634,"stem":635,"access":12},"classified","\u002Fservices\u002Fclassified","services\u002Fclassified",{"title":637,"path":638,"stem":639,"access":12},"computed","\u002Fservices\u002Fcomputed","services\u002Fcomputed",{"title":641,"path":642,"stem":643,"access":12},"consent","\u002Fservices\u002Fconsent","services\u002Fconsent",{"title":645,"path":646,"stem":647,"access":12},"cover","\u002Fservices\u002Fcover","services\u002Fcover",{"title":649,"path":650,"stem":651,"access":12},"coverage","\u002Fservices\u002Fcoverage","services\u002Fcoverage",{"title":653,"path":654,"stem":655,"access":12},"crdt","\u002Fservices\u002Fcrdt","services\u002Fcrdt",{"title":657,"path":658,"stem":659,"access":12},"cross-join","\u002Fservices\u002Fcross-join","services\u002Fcross-join",{"title":661,"path":662,"stem":663,"access":12},"custody","\u002Fservices\u002Fcustody","services\u002Fcustody",{"title":665,"path":666,"stem":667,"access":12},"derivations","\u002Fservices\u002Fderivations","services\u002Fderivations",{"title":669,"path":670,"stem":671,"access":12},"directory","\u002Fservices\u002Fdirectory","services\u002Fdirectory",{"title":673,"path":674,"stem":675,"access":12},"search — AI","\u002Fservices\u002Fembeddings","services\u002Fembeddings",{"title":677,"path":678,"stem":679,"access":12},"Field metadata","\u002Fservices\u002Ffield-metadata","services\u002Ffield-metadata",{"title":681,"path":682,"stem":683,"access":12},"Foreign refs","\u002Fservices\u002Fforeign-refs","services\u002Fforeign-refs",{"title":685,"path":686,"stem":687,"access":12},"forget","\u002Fservices\u002Fforget","services\u002Fforget",{"title":689,"path":690,"stem":691,"access":12},"governance","\u002Fservices\u002Fgovernance","services\u002Fgovernance",{"title":693,"path":694,"stem":695,"access":12},"guards","\u002Fservices\u002Fguards","services\u002Fguards",{"title":697,"path":698,"stem":699,"access":12},"history","\u002Fservices\u002Fhistory","services\u002Fhistory",{"title":701,"path":702,"stem":703,"access":12},"i18n","\u002Fservices\u002Fi18n","services\u002Fi18n",{"title":705,"path":706,"stem":707,"children":708,"access":12},"indexing","\u002Fservices\u002Findexing","services\u002Findexing",[709],{"title":705,"path":706,"stem":707,"access":12},{"title":711,"path":712,"stem":713,"access":12},"introspection","\u002Fservices\u002Fintrospection","services\u002Fintrospection",{"title":715,"path":716,"stem":717,"access":12},"joins","\u002Fservices\u002Fjoins","services\u002Fjoins",{"title":719,"path":720,"stem":721,"access":12},"lazy","\u002Fservices\u002Flazy","services\u002Flazy",{"title":723,"path":724,"stem":725,"access":12},"links","\u002Fservices\u002Flinks","services\u002Flinks",{"title":727,"path":728,"stem":729,"access":12},"live","\u002Fservices\u002Flive","services\u002Flive",{"title":731,"path":732,"stem":733,"access":12},"lookup","\u002Fservices\u002Flookup","services\u002Flookup",{"title":735,"path":736,"stem":737,"access":12},"manifest","\u002Fservices\u002Fmanifest","services\u002Fmanifest",{"title":739,"path":740,"stem":741,"access":12},"materialized-views","\u002Fservices\u002Fmaterialized-views","services\u002Fmaterialized-views",{"title":743,"path":744,"stem":745,"access":12},"Metadata ladder","\u002Fservices\u002Fmetadata-ladder","services\u002Fmetadata-ladder",{"title":747,"path":748,"stem":749,"access":12},"Metadata riders","\u002Fservices\u002Fmetadata-riders","services\u002Fmetadata-riders",{"title":751,"path":752,"stem":753,"access":12,"badge":754},"metrics","\u002Fservices\u002Fmetrics","services\u002Fmetrics","Planned",{"title":756,"path":757,"stem":758,"access":12,"badge":754},"migrations","\u002Fservices\u002Fmigrations","services\u002Fmigrations",{"title":760,"path":761,"stem":762,"access":12},"money","\u002Fservices\u002Fmoney","services\u002Fmoney",{"title":764,"path":765,"stem":766,"access":12},"numbering","\u002Fservices\u002Fnumbering","services\u002Fnumbering",{"title":768,"path":769,"stem":770,"access":12},"overlay-views","\u002Fservices\u002Foverlay-views","services\u002Foverlay-views",{"title":772,"path":773,"stem":774,"access":12,"badge":754},"partitioning","\u002Fservices\u002Fpartitioning","services\u002Fpartitioning",{"title":776,"path":777,"stem":778,"access":12},"periods","\u002Fservices\u002Fperiods","services\u002Fperiods",{"title":780,"path":781,"stem":782,"access":12},"persisted-schemas","\u002Fservices\u002Fpersisted-schemas","services\u002Fpersisted-schemas",{"title":784,"path":785,"stem":786,"access":12},"plaintext-bypass","\u002Fservices\u002Fplaintext-bypass","services\u002Fplaintext-bypass",{"title":788,"path":789,"stem":790,"access":12},"pod-redirect","\u002Fservices\u002Fpod-redirect","services\u002Fpod-redirect",{"title":792,"path":793,"stem":794,"access":12},"pod-signature","\u002Fservices\u002Fpod-signature","services\u002Fpod-signature",{"title":796,"path":797,"stem":798,"access":12},"policy","\u002Fservices\u002Fpolicy","services\u002Fpolicy",{"title":800,"path":801,"stem":802,"access":12},"portability","\u002Fservices\u002Fportability","services\u002Fportability",{"title":804,"path":805,"stem":806,"access":12},"reduce","\u002Fservices\u002Freduce","services\u002Freduce",{"title":808,"path":809,"stem":810,"access":12},"routing","\u002Fservices\u002Frouting","services\u002Frouting",{"title":812,"path":813,"stem":814,"access":12},"satellites","\u002Fservices\u002Fsatellites","services\u002Fsatellites",{"title":816,"path":817,"stem":818,"access":12},"schema-identifiers","\u002Fservices\u002Fschema-identifiers","services\u002Fschema-identifiers",{"title":820,"path":821,"stem":822,"access":12},"schema-update","\u002Fservices\u002Fschema-update","services\u002Fschema-update",{"title":824,"path":825,"stem":826,"access":12},"sealed-record","\u002Fservices\u002Fsealed-record","services\u002Fsealed-record",{"title":828,"path":829,"stem":830,"access":12},"sealing provider id","\u002Fservices\u002Fsealing-pid-stability","services\u002Fsealing-pid-stability",{"title":832,"path":833,"stem":834,"access":12},"search — full-text","\u002Fservices\u002Fsearch","services\u002Fsearch",{"title":836,"path":837,"stem":838,"access":12},"sequence","\u002Fservices\u002Fsequence","services\u002Fsequence",{"title":840,"path":841,"stem":842,"access":12},"session","\u002Fservices\u002Fsession","services\u002Fsession",{"title":844,"path":845,"stem":846,"access":12},"session-tiers","\u002Fservices\u002Fsession-tiers","services\u002Fsession-tiers",{"title":848,"path":849,"stem":850,"access":12},"shadow","\u002Fservices\u002Fshadow","services\u002Fshadow",{"title":852,"path":853,"stem":854,"access":12},"share-link","\u002Fservices\u002Fshare-link","services\u002Fshare-link",{"title":856,"path":857,"stem":858,"access":12},"snapshots","\u002Fservices\u002Fsnapshots","services\u002Fsnapshots",{"title":860,"path":861,"stem":862,"access":12},"store capabilities","\u002Fservices\u002Fstorage-capability-matrix","services\u002Fstorage-capability-matrix",{"title":864,"path":865,"stem":866,"access":12},"sync","\u002Fservices\u002Fsync","services\u002Fsync",{"title":868,"path":869,"stem":870,"access":12},"team","\u002Fservices\u002Fteam","services\u002Fteam",{"title":872,"path":873,"stem":874,"access":12},"tiers","\u002Fservices\u002Ftiers","services\u002Ftiers",{"title":876,"path":877,"stem":878,"access":12},"transactions","\u002Fservices\u002Ftransactions","services\u002Ftransactions",{"title":880,"path":881,"stem":882,"access":12},"partitions","\u002Fservices\u002Ftransferable-partitions","services\u002Ftransferable-partitions",{"title":884,"path":885,"stem":886,"access":12},"user-envelope","\u002Fservices\u002Fuser-envelope","services\u002Fuser-envelope",{"title":888,"path":889,"stem":890,"access":12,"badge":754},"validation","\u002Fservices\u002Fvalidation","services\u002Fvalidation",{"title":892,"path":893,"stem":894,"access":12},"vault-head","\u002Fservices\u002Fvault-head","services\u002Fvault-head",{"title":896,"path":897,"stem":898,"access":12},"via","\u002Fservices\u002Fvia","services\u002Fvia",{"title":900,"path":901,"stem":902,"access":12},"withdrawal","\u002Fservices\u002Fwithdrawal","services\u002Fwithdrawal",{"title":904,"path":905,"stem":906,"children":907},"Start","\u002Fstart","start",[908,911,915,919,923],{"title":10,"path":905,"stem":909,"access":12,"icon":910},"start\u002Findex","i-lucide-flag",{"title":912,"path":913,"stem":914,"access":12},"Install","\u002Fstart\u002Finstall","start\u002F1.install",{"title":916,"path":917,"stem":918,"access":12},"Your first vault","\u002Fstart\u002Ffirst-vault","start\u002F2.first-vault",{"title":920,"path":921,"stem":922,"access":12},"Your first service","\u002Fstart\u002Ffirst-service","start\u002F3.first-service",{"title":924,"path":925,"stem":926,"access":12},"See the ciphertext","\u002Fstart\u002Fsee-the-ciphertext","start\u002F4.see-the-ciphertext",{"id":928,"title":776,"access":12,"apiToc":929,"body":930,"category":4202,"description":4203,"extension":4204,"meta":4205,"navigation":4202,"nest":4206,"path":777,"seo":4207,"sinceVersion":4202,"status":4208,"stem":778,"subtitle":4202,"tier":4209,"tocExternal":4202,"__hash__":4210},"docs\u002Fservices\u002Fperiods.md",false,{"type":931,"value":932,"toc":4173},"minimark",[933,936,940,945,1007,1011,1024,1028,1067,1071,1337,1341,1346,1580,1726,1729,1807,1811,1837,1983,2044,2048,2075,2123,2150,2154,2179,2348,2373,2377,2400,2467,2489,2493,2816,3000,3031,3035,3040,3058,3069,3075,3102,3108,3113,3190,3196,3236,3247,3252,3336,3341,3389,3394,3418,3450,3455,3478,3514,3519,3542,3575,3581,3606,3611,3617,3645,3652,3657,3660,3918,3923,3947,3975,3979,4011,4015,4111,4115,4169],[934,935,776],"h1",{"id":776},[937,938],"service-meta",{":rows":939},"[{\"label\":\"Subpath\",\"value\":\"`@noy-db\u002Fhub\u002Fperiods`\"},{\"label\":\"Factory\",\"value\":\"`withPeriods()`\"},{\"label\":\"Layer\",\"value\":\"`with-audit`\"},{\"label\":\"Cluster\",\"value\":\"E — Time & Audit\"},{\"label\":\"LOC cost\",\"value\":\"~334 (off-bundle when not opted in)\"}]",[941,942,944],"h2",{"id":943},"what-it-does","What it does",[946,947,948,949,953,954,958,959,963,964,967,968,971,972,975,976,979,980,983,984,987,988,990,991,994,995,998,999,1002,1003,1006],"p",{},"Accounting and other regulated systems need to \"close the books\": once a fiscal quarter is\nfinalized, nobody should be able to edit records that belong to it — not even by mistake. The\nperiods service adds that seal to a ",[950,951,952],"strong",{},"vault"," — noy-db's encrypted, per-tenant document store\n(see ",[955,956,957],"a",{"href":48},"Vaults & collections","). Call ",[960,961,962],"code",{},"vault.closePeriod({ name, endDate })"," to freeze every record dated at or before ",[960,965,966],{},"endDate"," — by business date when you pass\n",[960,969,970],{},"dateField",", otherwise by write time (see Limits & gotchas); any later ",[960,973,974],{},"put"," or ",[960,977,978],{},"delete"," against a\nfrozen record throws ",[960,981,982],{},"PeriodClosedError",". ",[960,985,986],{},"vault.openPeriod()"," then\ncarries forward opening balances into the next period. Every close and open is written as a\nnormal record and, when the ",[955,989,697],{"href":698}," service is also enabled, appended to\nthe vault's hash-chained, tamper-evident audit trail (the ",[950,992,993],{},"ledger",") — so period closures\nthemselves become an auditable, chained sequence. Since ",[960,996,997],{},"0.3.0-pre.8",", a closed period also anchors a ",[950,1000,1001],{},"retention lifecycle",": freeze it to physically reclaim\nthe space held by converged sync delete markers, archive it to relocate its records to a cold\nstorage tier, and target-purge it to sweep markers off push-only sync targets — each recorded as\nits own companion record + ledger entry, with the hash-chained period record itself staying\nbyte-immutable. The whole service stays off your bundle unless you import ",[960,1004,1005],{},"withPeriods",".",[941,1008,1010],{"id":1009},"when-you-need-it","When you need it",[1012,1013,1014,1018,1021],"ul",{},[1015,1016,1017],"li",{},"Accounting \u002F financial books that need year-end and quarter-end seals",[1015,1019,1020],{},"Audit \u002F regulatory workflows where post-close edits must be impossible",[1015,1022,1023],{},"Inventory or reporting systems with closed periods",[941,1025,1027],{"id":1026},"prerequisites","Prerequisites",[1012,1029,1030,1040,1051],{},[1015,1031,1032,1035,1036,1039],{},[950,1033,1034],{},"None"," — ",[960,1037,1038],{},"withPeriods()"," alone enables close\u002Ffreeze\u002Freopen.",[1015,1041,1042,1046,1047,1050],{},[1043,1044,1045],"em",{},"Optional:"," ",[960,1048,1049],{},"historyStrategy: withHistory()"," chains period events into the tamper-evident ledger; without it closes still work but are not ledger-chained.",[1015,1052,1053,1060,1061,1064,1065,1006],{},[1043,1054,1055,1056,1059],{},"For ",[960,1057,1058],{},"migratePeriod"," (hot→cold):"," the vault's store must be a ",[960,1062,1063],{},"routeStore()"," with a cold route — see ",[955,1066,808],{"href":809},[941,1068,1070],{"id":1069},"opt-in","Opt in",[1072,1073,1078],"pre",{"className":1074,"code":1075,"language":1076,"meta":1077,"style":1077},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createNoydb } from '@noy-db\u002Fhub'\nimport { withPeriods } from '@noy-db\u002Fhub\u002Fperiods'\nimport { withHistory } from '@noy-db\u002Fhub\u002Fhistory' \u002F\u002F recommended — chains closes into the ledger\nimport { toMemory } from '@noy-db\u002Fto-memory'\n\nconst db = await createNoydb({\n  store: toMemory(),\n  user: 'firm',\n  secret: 'firm-secret-2026',\n  periodsStrategy: withPeriods(),\n  historyStrategy: withHistory(), \u002F\u002F optional — without it, closes\u002Fopens still work but nothing is chained into a ledger\n})\nconst vault = await db.openVault('books')\n","ts","",[960,1079,1080,1113,1134,1160,1181,1188,1213,1231,1248,1265,1279,1297,1306],{"__ignoreMap":1077},[1081,1082,1085,1089,1093,1097,1100,1103,1106,1110],"span",{"class":1083,"line":1084},"line",1,[1081,1086,1088],{"class":1087},"s7zQu","import",[1081,1090,1092],{"class":1091},"sMK4o"," {",[1081,1094,1096],{"class":1095},"sTEyZ"," createNoydb",[1081,1098,1099],{"class":1091}," }",[1081,1101,1102],{"class":1087}," from",[1081,1104,1105],{"class":1091}," '",[1081,1107,1109],{"class":1108},"sfazB","@noy-db\u002Fhub",[1081,1111,1112],{"class":1091},"'\n",[1081,1114,1116,1118,1120,1123,1125,1127,1129,1132],{"class":1083,"line":1115},2,[1081,1117,1088],{"class":1087},[1081,1119,1092],{"class":1091},[1081,1121,1122],{"class":1095}," withPeriods",[1081,1124,1099],{"class":1091},[1081,1126,1102],{"class":1087},[1081,1128,1105],{"class":1091},[1081,1130,1131],{"class":1108},"@noy-db\u002Fhub\u002Fperiods",[1081,1133,1112],{"class":1091},[1081,1135,1137,1139,1141,1144,1146,1148,1150,1153,1156],{"class":1083,"line":1136},3,[1081,1138,1088],{"class":1087},[1081,1140,1092],{"class":1091},[1081,1142,1143],{"class":1095}," withHistory",[1081,1145,1099],{"class":1091},[1081,1147,1102],{"class":1087},[1081,1149,1105],{"class":1091},[1081,1151,1152],{"class":1108},"@noy-db\u002Fhub\u002Fhistory",[1081,1154,1155],{"class":1091},"'",[1081,1157,1159],{"class":1158},"sHwdD"," \u002F\u002F recommended — chains closes into the ledger\n",[1081,1161,1163,1165,1167,1170,1172,1174,1176,1179],{"class":1083,"line":1162},4,[1081,1164,1088],{"class":1087},[1081,1166,1092],{"class":1091},[1081,1168,1169],{"class":1095}," toMemory",[1081,1171,1099],{"class":1091},[1081,1173,1102],{"class":1087},[1081,1175,1105],{"class":1091},[1081,1177,1178],{"class":1108},"@noy-db\u002Fto-memory",[1081,1180,1112],{"class":1091},[1081,1182,1184],{"class":1083,"line":1183},5,[1081,1185,1187],{"emptyLinePlaceholder":1186},true,"\n",[1081,1189,1191,1195,1198,1201,1204,1207,1210],{"class":1083,"line":1190},6,[1081,1192,1194],{"class":1193},"spNyl","const",[1081,1196,1197],{"class":1095}," db ",[1081,1199,1200],{"class":1091},"=",[1081,1202,1203],{"class":1087}," await",[1081,1205,1096],{"class":1206},"s2Zo4",[1081,1208,1209],{"class":1095},"(",[1081,1211,1212],{"class":1091},"{\n",[1081,1214,1216,1220,1223,1225,1228],{"class":1083,"line":1215},7,[1081,1217,1219],{"class":1218},"swJcz","  store",[1081,1221,1222],{"class":1091},":",[1081,1224,1169],{"class":1206},[1081,1226,1227],{"class":1095},"()",[1081,1229,1230],{"class":1091},",\n",[1081,1232,1234,1237,1239,1241,1244,1246],{"class":1083,"line":1233},8,[1081,1235,1236],{"class":1218},"  user",[1081,1238,1222],{"class":1091},[1081,1240,1105],{"class":1091},[1081,1242,1243],{"class":1108},"firm",[1081,1245,1155],{"class":1091},[1081,1247,1230],{"class":1091},[1081,1249,1251,1254,1256,1258,1261,1263],{"class":1083,"line":1250},9,[1081,1252,1253],{"class":1218},"  secret",[1081,1255,1222],{"class":1091},[1081,1257,1105],{"class":1091},[1081,1259,1260],{"class":1108},"firm-secret-2026",[1081,1262,1155],{"class":1091},[1081,1264,1230],{"class":1091},[1081,1266,1268,1271,1273,1275,1277],{"class":1083,"line":1267},10,[1081,1269,1270],{"class":1218},"  periodsStrategy",[1081,1272,1222],{"class":1091},[1081,1274,1122],{"class":1206},[1081,1276,1227],{"class":1095},[1081,1278,1230],{"class":1091},[1081,1280,1282,1285,1287,1289,1291,1294],{"class":1083,"line":1281},11,[1081,1283,1284],{"class":1218},"  historyStrategy",[1081,1286,1222],{"class":1091},[1081,1288,1143],{"class":1206},[1081,1290,1227],{"class":1095},[1081,1292,1293],{"class":1091},",",[1081,1295,1296],{"class":1158}," \u002F\u002F optional — without it, closes\u002Fopens still work but nothing is chained into a ledger\n",[1081,1298,1300,1303],{"class":1083,"line":1299},12,[1081,1301,1302],{"class":1091},"}",[1081,1304,1305],{"class":1095},")\n",[1081,1307,1309,1311,1314,1316,1318,1321,1323,1326,1328,1330,1333,1335],{"class":1083,"line":1308},13,[1081,1310,1194],{"class":1193},[1081,1312,1313],{"class":1095}," vault ",[1081,1315,1200],{"class":1091},[1081,1317,1203],{"class":1087},[1081,1319,1320],{"class":1095}," db",[1081,1322,1006],{"class":1091},[1081,1324,1325],{"class":1206},"openVault",[1081,1327,1209],{"class":1095},[1081,1329,1155],{"class":1091},[1081,1331,1332],{"class":1108},"books",[1081,1334,1155],{"class":1091},[1081,1336,1305],{"class":1095},[941,1338,1340],{"id":1339},"usage","Usage",[1342,1343,1345],"h3",{"id":1344},"close-a-period","Close a period",[1072,1347,1349],{"className":1074,"code":1348,"language":1076,"meta":1077,"style":1077},"interface Invoice { amount: number; status: string; date: string }\nconst invoices = vault.collection\u003CInvoice>('invoices')\n\nawait invoices.put('inv-1', { amount: 1000, status: 'draft', date: '2026-01-15' })\n\nconst q1 = await vault.closePeriod({\n  name: 'FY2026-Q1',\n  endDate: '2026-03-31',\n  dateField: 'date',   \u002F\u002F seal by business date, not write time — see Limits & gotchas\n})\n",[960,1350,1351,1393,1430,1434,1497,1501,1523,1539,1555,1574],{"__ignoreMap":1077},[1081,1352,1353,1356,1360,1362,1365,1367,1370,1373,1376,1378,1381,1383,1386,1388,1390],{"class":1083,"line":1084},[1081,1354,1355],{"class":1193},"interface",[1081,1357,1359],{"class":1358},"sBMFI"," Invoice",[1081,1361,1092],{"class":1091},[1081,1363,1364],{"class":1218}," amount",[1081,1366,1222],{"class":1091},[1081,1368,1369],{"class":1358}," number",[1081,1371,1372],{"class":1091},";",[1081,1374,1375],{"class":1218}," status",[1081,1377,1222],{"class":1091},[1081,1379,1380],{"class":1358}," string",[1081,1382,1372],{"class":1091},[1081,1384,1385],{"class":1218}," date",[1081,1387,1222],{"class":1091},[1081,1389,1380],{"class":1358},[1081,1391,1392],{"class":1091}," }\n",[1081,1394,1395,1397,1400,1402,1405,1407,1410,1413,1416,1419,1421,1423,1426,1428],{"class":1083,"line":1115},[1081,1396,1194],{"class":1193},[1081,1398,1399],{"class":1095}," invoices ",[1081,1401,1200],{"class":1091},[1081,1403,1404],{"class":1095}," vault",[1081,1406,1006],{"class":1091},[1081,1408,1409],{"class":1206},"collection",[1081,1411,1412],{"class":1091},"\u003C",[1081,1414,1415],{"class":1358},"Invoice",[1081,1417,1418],{"class":1091},">",[1081,1420,1209],{"class":1095},[1081,1422,1155],{"class":1091},[1081,1424,1425],{"class":1108},"invoices",[1081,1427,1155],{"class":1091},[1081,1429,1305],{"class":1095},[1081,1431,1432],{"class":1083,"line":1136},[1081,1433,1187],{"emptyLinePlaceholder":1186},[1081,1435,1436,1439,1442,1444,1446,1448,1450,1453,1455,1457,1459,1461,1463,1467,1469,1471,1473,1475,1478,1480,1482,1484,1486,1488,1491,1493,1495],{"class":1083,"line":1162},[1081,1437,1438],{"class":1087},"await",[1081,1440,1441],{"class":1095}," invoices",[1081,1443,1006],{"class":1091},[1081,1445,974],{"class":1206},[1081,1447,1209],{"class":1095},[1081,1449,1155],{"class":1091},[1081,1451,1452],{"class":1108},"inv-1",[1081,1454,1155],{"class":1091},[1081,1456,1293],{"class":1091},[1081,1458,1092],{"class":1091},[1081,1460,1364],{"class":1218},[1081,1462,1222],{"class":1091},[1081,1464,1466],{"class":1465},"sbssI"," 1000",[1081,1468,1293],{"class":1091},[1081,1470,1375],{"class":1218},[1081,1472,1222],{"class":1091},[1081,1474,1105],{"class":1091},[1081,1476,1477],{"class":1108},"draft",[1081,1479,1155],{"class":1091},[1081,1481,1293],{"class":1091},[1081,1483,1385],{"class":1218},[1081,1485,1222],{"class":1091},[1081,1487,1105],{"class":1091},[1081,1489,1490],{"class":1108},"2026-01-15",[1081,1492,1155],{"class":1091},[1081,1494,1099],{"class":1091},[1081,1496,1305],{"class":1095},[1081,1498,1499],{"class":1083,"line":1183},[1081,1500,1187],{"emptyLinePlaceholder":1186},[1081,1502,1503,1505,1508,1510,1512,1514,1516,1519,1521],{"class":1083,"line":1190},[1081,1504,1194],{"class":1193},[1081,1506,1507],{"class":1095}," q1 ",[1081,1509,1200],{"class":1091},[1081,1511,1203],{"class":1087},[1081,1513,1404],{"class":1095},[1081,1515,1006],{"class":1091},[1081,1517,1518],{"class":1206},"closePeriod",[1081,1520,1209],{"class":1095},[1081,1522,1212],{"class":1091},[1081,1524,1525,1528,1530,1532,1535,1537],{"class":1083,"line":1215},[1081,1526,1527],{"class":1218},"  name",[1081,1529,1222],{"class":1091},[1081,1531,1105],{"class":1091},[1081,1533,1534],{"class":1108},"FY2026-Q1",[1081,1536,1155],{"class":1091},[1081,1538,1230],{"class":1091},[1081,1540,1541,1544,1546,1548,1551,1553],{"class":1083,"line":1233},[1081,1542,1543],{"class":1218},"  endDate",[1081,1545,1222],{"class":1091},[1081,1547,1105],{"class":1091},[1081,1549,1550],{"class":1108},"2026-03-31",[1081,1552,1155],{"class":1091},[1081,1554,1230],{"class":1091},[1081,1556,1557,1560,1562,1564,1567,1569,1571],{"class":1083,"line":1250},[1081,1558,1559],{"class":1218},"  dateField",[1081,1561,1222],{"class":1091},[1081,1563,1105],{"class":1091},[1081,1565,1566],{"class":1108},"date",[1081,1568,1155],{"class":1091},[1081,1570,1293],{"class":1091},[1081,1572,1573],{"class":1158},"   \u002F\u002F seal by business date, not write time — see Limits & gotchas\n",[1081,1575,1576,1578],{"class":1083,"line":1267},[1081,1577,1302],{"class":1091},[1081,1579,1305],{"class":1095},[1072,1581,1584],{"className":1582,"code":1583,"language":141,"meta":1077,"style":1077},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"FY2026-Q1\",\n  \"kind\": \"closed\",\n  \"endDate\": \"2026-03-31\",\n  \"dateField\": \"date\",\n  \"closedAt\": \"2026-07-08T09:14:03.412Z\",\n  \"closedBy\": \"firm\",\n  \"priorPeriodHash\": \"\"\n}\n",[960,1585,1586,1590,1612,1632,1650,1668,1688,1707,1721],{"__ignoreMap":1077},[1081,1587,1588],{"class":1083,"line":1084},[1081,1589,1212],{"class":1091},[1081,1591,1592,1595,1598,1601,1603,1606,1608,1610],{"class":1083,"line":1115},[1081,1593,1594],{"class":1091},"  \"",[1081,1596,1597],{"class":1193},"name",[1081,1599,1600],{"class":1091},"\"",[1081,1602,1222],{"class":1091},[1081,1604,1605],{"class":1091}," \"",[1081,1607,1534],{"class":1108},[1081,1609,1600],{"class":1091},[1081,1611,1230],{"class":1091},[1081,1613,1614,1616,1619,1621,1623,1625,1628,1630],{"class":1083,"line":1136},[1081,1615,1594],{"class":1091},[1081,1617,1618],{"class":1193},"kind",[1081,1620,1600],{"class":1091},[1081,1622,1222],{"class":1091},[1081,1624,1605],{"class":1091},[1081,1626,1627],{"class":1108},"closed",[1081,1629,1600],{"class":1091},[1081,1631,1230],{"class":1091},[1081,1633,1634,1636,1638,1640,1642,1644,1646,1648],{"class":1083,"line":1162},[1081,1635,1594],{"class":1091},[1081,1637,966],{"class":1193},[1081,1639,1600],{"class":1091},[1081,1641,1222],{"class":1091},[1081,1643,1605],{"class":1091},[1081,1645,1550],{"class":1108},[1081,1647,1600],{"class":1091},[1081,1649,1230],{"class":1091},[1081,1651,1652,1654,1656,1658,1660,1662,1664,1666],{"class":1083,"line":1183},[1081,1653,1594],{"class":1091},[1081,1655,970],{"class":1193},[1081,1657,1600],{"class":1091},[1081,1659,1222],{"class":1091},[1081,1661,1605],{"class":1091},[1081,1663,1566],{"class":1108},[1081,1665,1600],{"class":1091},[1081,1667,1230],{"class":1091},[1081,1669,1670,1672,1675,1677,1679,1681,1684,1686],{"class":1083,"line":1190},[1081,1671,1594],{"class":1091},[1081,1673,1674],{"class":1193},"closedAt",[1081,1676,1600],{"class":1091},[1081,1678,1222],{"class":1091},[1081,1680,1605],{"class":1091},[1081,1682,1683],{"class":1108},"2026-07-08T09:14:03.412Z",[1081,1685,1600],{"class":1091},[1081,1687,1230],{"class":1091},[1081,1689,1690,1692,1695,1697,1699,1701,1703,1705],{"class":1083,"line":1215},[1081,1691,1594],{"class":1091},[1081,1693,1694],{"class":1193},"closedBy",[1081,1696,1600],{"class":1091},[1081,1698,1222],{"class":1091},[1081,1700,1605],{"class":1091},[1081,1702,1243],{"class":1108},[1081,1704,1600],{"class":1091},[1081,1706,1230],{"class":1091},[1081,1708,1709,1711,1714,1716,1718],{"class":1083,"line":1233},[1081,1710,1594],{"class":1091},[1081,1712,1713],{"class":1193},"priorPeriodHash",[1081,1715,1600],{"class":1091},[1081,1717,1222],{"class":1091},[1081,1719,1720],{"class":1091}," \"\"\n",[1081,1722,1723],{"class":1083,"line":1250},[1081,1724,1725],{"class":1091},"}\n",[946,1727,1728],{},"Any later write to a record whose business date falls inside the closed range now throws — even\nan edit that only touches an unrelated field:",[1072,1730,1732],{"className":1074,"code":1731,"language":1076,"meta":1077,"style":1077},"await invoices.put('inv-1', { amount: 2000, status: 'paid', date: '2026-01-15' })\n\u002F\u002F → throws PeriodClosedError:\n\u002F\u002F   'Cannot modify record (last written existing[date]=2026-01-15) — sealed by closed period\n\u002F\u002F    \"FY2026-Q1\" (endDate: 2026-03-31). Post a compensating entry in a new period instead.'\n",[960,1733,1734,1792,1797,1802],{"__ignoreMap":1077},[1081,1735,1736,1738,1740,1742,1744,1746,1748,1750,1752,1754,1756,1758,1760,1763,1765,1767,1769,1771,1774,1776,1778,1780,1782,1784,1786,1788,1790],{"class":1083,"line":1084},[1081,1737,1438],{"class":1087},[1081,1739,1441],{"class":1095},[1081,1741,1006],{"class":1091},[1081,1743,974],{"class":1206},[1081,1745,1209],{"class":1095},[1081,1747,1155],{"class":1091},[1081,1749,1452],{"class":1108},[1081,1751,1155],{"class":1091},[1081,1753,1293],{"class":1091},[1081,1755,1092],{"class":1091},[1081,1757,1364],{"class":1218},[1081,1759,1222],{"class":1091},[1081,1761,1762],{"class":1465}," 2000",[1081,1764,1293],{"class":1091},[1081,1766,1375],{"class":1218},[1081,1768,1222],{"class":1091},[1081,1770,1105],{"class":1091},[1081,1772,1773],{"class":1108},"paid",[1081,1775,1155],{"class":1091},[1081,1777,1293],{"class":1091},[1081,1779,1385],{"class":1218},[1081,1781,1222],{"class":1091},[1081,1783,1105],{"class":1091},[1081,1785,1490],{"class":1108},[1081,1787,1155],{"class":1091},[1081,1789,1099],{"class":1091},[1081,1791,1305],{"class":1095},[1081,1793,1794],{"class":1083,"line":1115},[1081,1795,1796],{"class":1158},"\u002F\u002F → throws PeriodClosedError:\n",[1081,1798,1799],{"class":1083,"line":1136},[1081,1800,1801],{"class":1158},"\u002F\u002F   'Cannot modify record (last written existing[date]=2026-01-15) — sealed by closed period\n",[1081,1803,1804],{"class":1083,"line":1162},[1081,1805,1806],{"class":1158},"\u002F\u002F    \"FY2026-Q1\" (endDate: 2026-03-31). Post a compensating entry in a new period instead.'\n",[1342,1808,1810],{"id":1809},"list-and-look-up-periods","List and look up periods",[1072,1812,1814],{"className":1074,"code":1813,"language":1076,"meta":1077,"style":1077},"const periods = await vault.listPeriods()\n",[960,1815,1816],{"__ignoreMap":1077},[1081,1817,1818,1820,1823,1825,1827,1829,1831,1834],{"class":1083,"line":1084},[1081,1819,1194],{"class":1193},[1081,1821,1822],{"class":1095}," periods ",[1081,1824,1200],{"class":1091},[1081,1826,1203],{"class":1087},[1081,1828,1404],{"class":1095},[1081,1830,1006],{"class":1091},[1081,1832,1833],{"class":1206},"listPeriods",[1081,1835,1836],{"class":1095},"()\n",[1072,1838,1840],{"className":1582,"code":1839,"language":141,"meta":1077,"style":1077},"[\n  {\n    \"name\": \"FY2026-Q1\",\n    \"kind\": \"closed\",\n    \"endDate\": \"2026-03-31\",\n    \"dateField\": \"date\",\n    \"closedAt\": \"2026-07-08T09:14:03.412Z\",\n    \"closedBy\": \"firm\",\n    \"priorPeriodHash\": \"\"\n  }\n]\n",[960,1841,1842,1847,1852,1871,1889,1907,1925,1943,1961,1973,1978],{"__ignoreMap":1077},[1081,1843,1844],{"class":1083,"line":1084},[1081,1845,1846],{"class":1091},"[\n",[1081,1848,1849],{"class":1083,"line":1115},[1081,1850,1851],{"class":1091},"  {\n",[1081,1853,1854,1857,1859,1861,1863,1865,1867,1869],{"class":1083,"line":1136},[1081,1855,1856],{"class":1091},"    \"",[1081,1858,1597],{"class":1193},[1081,1860,1600],{"class":1091},[1081,1862,1222],{"class":1091},[1081,1864,1605],{"class":1091},[1081,1866,1534],{"class":1108},[1081,1868,1600],{"class":1091},[1081,1870,1230],{"class":1091},[1081,1872,1873,1875,1877,1879,1881,1883,1885,1887],{"class":1083,"line":1162},[1081,1874,1856],{"class":1091},[1081,1876,1618],{"class":1193},[1081,1878,1600],{"class":1091},[1081,1880,1222],{"class":1091},[1081,1882,1605],{"class":1091},[1081,1884,1627],{"class":1108},[1081,1886,1600],{"class":1091},[1081,1888,1230],{"class":1091},[1081,1890,1891,1893,1895,1897,1899,1901,1903,1905],{"class":1083,"line":1183},[1081,1892,1856],{"class":1091},[1081,1894,966],{"class":1193},[1081,1896,1600],{"class":1091},[1081,1898,1222],{"class":1091},[1081,1900,1605],{"class":1091},[1081,1902,1550],{"class":1108},[1081,1904,1600],{"class":1091},[1081,1906,1230],{"class":1091},[1081,1908,1909,1911,1913,1915,1917,1919,1921,1923],{"class":1083,"line":1190},[1081,1910,1856],{"class":1091},[1081,1912,970],{"class":1193},[1081,1914,1600],{"class":1091},[1081,1916,1222],{"class":1091},[1081,1918,1605],{"class":1091},[1081,1920,1566],{"class":1108},[1081,1922,1600],{"class":1091},[1081,1924,1230],{"class":1091},[1081,1926,1927,1929,1931,1933,1935,1937,1939,1941],{"class":1083,"line":1215},[1081,1928,1856],{"class":1091},[1081,1930,1674],{"class":1193},[1081,1932,1600],{"class":1091},[1081,1934,1222],{"class":1091},[1081,1936,1605],{"class":1091},[1081,1938,1683],{"class":1108},[1081,1940,1600],{"class":1091},[1081,1942,1230],{"class":1091},[1081,1944,1945,1947,1949,1951,1953,1955,1957,1959],{"class":1083,"line":1233},[1081,1946,1856],{"class":1091},[1081,1948,1694],{"class":1193},[1081,1950,1600],{"class":1091},[1081,1952,1222],{"class":1091},[1081,1954,1605],{"class":1091},[1081,1956,1243],{"class":1108},[1081,1958,1600],{"class":1091},[1081,1960,1230],{"class":1091},[1081,1962,1963,1965,1967,1969,1971],{"class":1083,"line":1250},[1081,1964,1856],{"class":1091},[1081,1966,1713],{"class":1193},[1081,1968,1600],{"class":1091},[1081,1970,1222],{"class":1091},[1081,1972,1720],{"class":1091},[1081,1974,1975],{"class":1083,"line":1267},[1081,1976,1977],{"class":1091},"  }\n",[1081,1979,1980],{"class":1083,"line":1281},[1081,1981,1982],{"class":1091},"]\n",[1072,1984,1986],{"className":1074,"code":1985,"language":1076,"meta":1077,"style":1077},"await vault.getPeriod('FY2026-Q1')\n\u002F\u002F → the same PeriodRecord as above\n\nawait vault.getPeriod('NEVER')\n\u002F\u002F → null\n",[960,1987,1988,2009,2014,2018,2039],{"__ignoreMap":1077},[1081,1989,1990,1992,1994,1996,1999,2001,2003,2005,2007],{"class":1083,"line":1084},[1081,1991,1438],{"class":1087},[1081,1993,1404],{"class":1095},[1081,1995,1006],{"class":1091},[1081,1997,1998],{"class":1206},"getPeriod",[1081,2000,1209],{"class":1095},[1081,2002,1155],{"class":1091},[1081,2004,1534],{"class":1108},[1081,2006,1155],{"class":1091},[1081,2008,1305],{"class":1095},[1081,2010,2011],{"class":1083,"line":1115},[1081,2012,2013],{"class":1158},"\u002F\u002F → the same PeriodRecord as above\n",[1081,2015,2016],{"class":1083,"line":1136},[1081,2017,1187],{"emptyLinePlaceholder":1186},[1081,2019,2020,2022,2024,2026,2028,2030,2032,2035,2037],{"class":1083,"line":1162},[1081,2021,1438],{"class":1087},[1081,2023,1404],{"class":1095},[1081,2025,1006],{"class":1091},[1081,2027,1998],{"class":1206},[1081,2029,1209],{"class":1095},[1081,2031,1155],{"class":1091},[1081,2033,2034],{"class":1108},"NEVER",[1081,2036,1155],{"class":1091},[1081,2038,1305],{"class":1095},[1081,2040,2041],{"class":1083,"line":1183},[1081,2042,2043],{"class":1158},"\u002F\u002F → null\n",[1342,2045,2047],{"id":2046},"freeze-a-closed-period-physically-reclaim-delete-marker-space","Freeze a closed period — physically reclaim delete-marker space",[946,2049,2050,2051,2055,2056,2059,2060,2063,2064,2066,2067,2070,2071,2074],{},"On a synced vault, ",[955,2052,2054],{"href":2053},"\u002Fservices\u002Fsync#deletes-converge-as-delete-markers","deletes converge as delete markers","\nthat accumulate until explicitly purged — purging one too early would let an offline peer\nresurrect the deleted record on its next push. A ",[950,2057,2058],{},"closed period is the operator-asserted\nsafe-point"," that makes the purge sound: ",[960,2061,2062],{},"vault.freezePeriod(name)"," (since ",[960,2065,997],{},") physically purges the delete markers whose write-time falls\ninside the closed period's window, records a ",[960,2068,2069],{},"_period_freezes\u002F\u003Cname>"," companion record plus a\ntamper-evident ledger entry, and leaves the hash-chained ",[960,2072,2073],{},"_periods\u002F\u003Cname>"," record byte-immutable:",[1072,2076,2078],{"className":1074,"code":2077,"language":1076,"meta":1077,"style":1077},"const frozen = await vault.freezePeriod('FY2026-Q1')\n\u002F\u002F frozen.frozenAt \u002F frozen.frozenBy \u002F frozen.purgedMarkerCount\n\u002F\u002F merged onto the returned PeriodRecord from the companion — the stored\n\u002F\u002F _periods record itself is never rewritten\n",[960,2079,2080,2108,2113,2118],{"__ignoreMap":1077},[1081,2081,2082,2084,2087,2089,2091,2093,2095,2098,2100,2102,2104,2106],{"class":1083,"line":1084},[1081,2083,1194],{"class":1193},[1081,2085,2086],{"class":1095}," frozen ",[1081,2088,1200],{"class":1091},[1081,2090,1203],{"class":1087},[1081,2092,1404],{"class":1095},[1081,2094,1006],{"class":1091},[1081,2096,2097],{"class":1206},"freezePeriod",[1081,2099,1209],{"class":1095},[1081,2101,1155],{"class":1091},[1081,2103,1534],{"class":1108},[1081,2105,1155],{"class":1091},[1081,2107,1305],{"class":1095},[1081,2109,2110],{"class":1083,"line":1115},[1081,2111,2112],{"class":1158},"\u002F\u002F frozen.frozenAt \u002F frozen.frozenBy \u002F frozen.purgedMarkerCount\n",[1081,2114,2115],{"class":1083,"line":1136},[1081,2116,2117],{"class":1158},"\u002F\u002F merged onto the returned PeriodRecord from the companion — the stored\n",[1081,2119,2120],{"class":1083,"line":1162},[1081,2121,2122],{"class":1158},"\u002F\u002F _periods record itself is never rewritten\n",[946,2124,2125,2126,2129,2130,2133,2134,2137,2138,2141,2142,2145,2146,2149],{},"Freezing is ",[950,2127,2128],{},"terminal"," (a frozen period stays frozen) and ",[950,2131,2132],{},"idempotent"," (a second call is a\nno-op returning the same merged record, without re-purging or re-appending a ledger entry). It\npurges delete markers only: forget-tombstones (crypto-shred erasure evidence), ",[960,2135,2136],{},"_history","\nversions, and live records are untouched by construction. A period whose purge window reaches\ninto the future is refused with ",[960,2139,2140],{},"ValidationError"," — very recent delete markers may not have\nconverged to every peer yet. Freeze purges the ",[950,2143,2144],{},"local"," store only; markers already pushed to\nsync targets survive there (benign — they still read as deleted) and a re-imported marker is\nreclaimed by the ",[1043,2147,2148],{},"next"," period's freeze.",[1342,2151,2153],{"id":2152},"archive-a-closed-period-to-cold-storage","Archive a closed period to cold storage",[946,2155,2156,2063,2159,2161,2162,2164,2165,2167,2168,2171,2172,2175,2176,2178],{},[960,2157,2158],{},"vault.archivePeriod(name)",[960,2160,997],{},") relocates a closed period's in-window records\nfrom the hot store to a configured cold tier, driving the ",[955,2163,808],{"href":809}," service's\nhot→cold migration. It requires the vault's store to be a ",[960,2166,1063],{}," with a cold route\n(",[960,2169,2170],{},"age: { cold }",") — advertised as the ",[960,2173,2174],{},"coldArchival"," store capability — and throws\n",[960,2177,2140],{}," otherwise:",[1072,2180,2182],{"className":1074,"code":2181,"language":1076,"meta":1077,"style":1077},"import { routeStore } from '@noy-db\u002Fhub'\nimport { toMemory } from '@noy-db\u002Fto-memory'\n\nconst hot = toMemory()\nconst cold = toMemory()\n\u002F\u002F `coldAfterDays` may be omitted: `age: { cold }` alone means period-driven\n\u002F\u002F archival only — archivePeriod() supplies the cutoff per call.\nconst store = routeStore({ default: hot, age: { cold } })\n\n\u002F\u002F … createNoydb({ store, … }), then close FY2026-Q1 as above …\n\nconst archived = await vault.archivePeriod('FY2026-Q1')\n\u002F\u002F archived.archivedAt \u002F archived.archivedBy \u002F archived.archivedRecordCount\n",[960,2183,2184,2203,2221,2225,2238,2251,2256,2261,2302,2306,2311,2315,2343],{"__ignoreMap":1077},[1081,2185,2186,2188,2190,2193,2195,2197,2199,2201],{"class":1083,"line":1084},[1081,2187,1088],{"class":1087},[1081,2189,1092],{"class":1091},[1081,2191,2192],{"class":1095}," routeStore",[1081,2194,1099],{"class":1091},[1081,2196,1102],{"class":1087},[1081,2198,1105],{"class":1091},[1081,2200,1109],{"class":1108},[1081,2202,1112],{"class":1091},[1081,2204,2205,2207,2209,2211,2213,2215,2217,2219],{"class":1083,"line":1115},[1081,2206,1088],{"class":1087},[1081,2208,1092],{"class":1091},[1081,2210,1169],{"class":1095},[1081,2212,1099],{"class":1091},[1081,2214,1102],{"class":1087},[1081,2216,1105],{"class":1091},[1081,2218,1178],{"class":1108},[1081,2220,1112],{"class":1091},[1081,2222,2223],{"class":1083,"line":1136},[1081,2224,1187],{"emptyLinePlaceholder":1186},[1081,2226,2227,2229,2232,2234,2236],{"class":1083,"line":1162},[1081,2228,1194],{"class":1193},[1081,2230,2231],{"class":1095}," hot ",[1081,2233,1200],{"class":1091},[1081,2235,1169],{"class":1206},[1081,2237,1836],{"class":1095},[1081,2239,2240,2242,2245,2247,2249],{"class":1083,"line":1183},[1081,2241,1194],{"class":1193},[1081,2243,2244],{"class":1095}," cold ",[1081,2246,1200],{"class":1091},[1081,2248,1169],{"class":1206},[1081,2250,1836],{"class":1095},[1081,2252,2253],{"class":1083,"line":1190},[1081,2254,2255],{"class":1158},"\u002F\u002F `coldAfterDays` may be omitted: `age: { cold }` alone means period-driven\n",[1081,2257,2258],{"class":1083,"line":1215},[1081,2259,2260],{"class":1158},"\u002F\u002F archival only — archivePeriod() supplies the cutoff per call.\n",[1081,2262,2263,2265,2268,2270,2272,2274,2277,2280,2282,2285,2287,2290,2292,2294,2296,2298,2300],{"class":1083,"line":1233},[1081,2264,1194],{"class":1193},[1081,2266,2267],{"class":1095}," store ",[1081,2269,1200],{"class":1091},[1081,2271,2192],{"class":1206},[1081,2273,1209],{"class":1095},[1081,2275,2276],{"class":1091},"{",[1081,2278,2279],{"class":1218}," default",[1081,2281,1222],{"class":1091},[1081,2283,2284],{"class":1095}," hot",[1081,2286,1293],{"class":1091},[1081,2288,2289],{"class":1218}," age",[1081,2291,1222],{"class":1091},[1081,2293,1092],{"class":1091},[1081,2295,2244],{"class":1095},[1081,2297,1302],{"class":1091},[1081,2299,1099],{"class":1091},[1081,2301,1305],{"class":1095},[1081,2303,2304],{"class":1083,"line":1250},[1081,2305,1187],{"emptyLinePlaceholder":1186},[1081,2307,2308],{"class":1083,"line":1267},[1081,2309,2310],{"class":1158},"\u002F\u002F … createNoydb({ store, … }), then close FY2026-Q1 as above …\n",[1081,2312,2313],{"class":1083,"line":1281},[1081,2314,1187],{"emptyLinePlaceholder":1186},[1081,2316,2317,2319,2322,2324,2326,2328,2330,2333,2335,2337,2339,2341],{"class":1083,"line":1299},[1081,2318,1194],{"class":1193},[1081,2320,2321],{"class":1095}," archived ",[1081,2323,1200],{"class":1091},[1081,2325,1203],{"class":1087},[1081,2327,1404],{"class":1095},[1081,2329,1006],{"class":1091},[1081,2331,2332],{"class":1206},"archivePeriod",[1081,2334,1209],{"class":1095},[1081,2336,1155],{"class":1091},[1081,2338,1534],{"class":1108},[1081,2340,1155],{"class":1091},[1081,2342,1305],{"class":1095},[1081,2344,2345],{"class":1083,"line":1308},[1081,2346,2347],{"class":1158},"\u002F\u002F archived.archivedAt \u002F archived.archivedBy \u002F archived.archivedRecordCount\n",[946,2349,2350,2351,2354,2355,2357,2358,2361,2362,2365,2366,2369,2370,2372],{},"Archival is ",[950,2352,2353],{},"non-destructive"," — routed reads fall through to the cold tier on a hot miss, so an\narchived record still reads normally — which is why it is gated only on ",[960,2356,1627],{},", not ",[960,2359,2360],{},"frozen","\n(it re-opens no resurrection window). It records a ",[960,2363,2364],{},"_period_archives\u002F\u003Cname>"," companion + ledger\nentry, is idempotent, and composes with freeze in either order. Records are bounded by write-time\n",[960,2367,2368],{},"_ts",", not business date: a late-booked record archives at the ",[1043,2371,2148],{}," period's archival, the same\nrule freeze uses for late-booked delete markers.",[1342,2374,2376],{"id":2375},"sweep-markers-off-push-only-sync-targets","Sweep markers off push-only sync targets",[946,2378,2379,2063,2382,2384,2385,2388,2389,2392,2393,2396,2397,2399],{},[960,2380,2381],{},"vault.purgePeriodTargets(name)",[960,2383,997],{},") extends freeze's local marker purge to the\nvault's own remote sinks: it sweeps the period's delete markers off every ",[950,2386,2387],{},"push-only"," sync\ntarget (",[960,2390,2391],{},"'backup'"," \u002F ",[960,2394,2395],{},"'archive'"," roles — see ",[955,2398,864],{"href":865},"), reclaiming remote marker\nspace the local freeze cannot reach:",[1072,2401,2403],{"className":1074,"code":2402,"language":1076,"meta":1077,"style":1077},"await vault.freezePeriod('FY2026-Q1')          \u002F\u002F required first: closed → frozen → target-purged\nconst purged = await vault.purgePeriodTargets('FY2026-Q1')\n\u002F\u002F purged.targetsPurgedAt \u002F purged.targetsPurgedBy\n\u002F\u002F purged.targetsPurged → [{ role: 'backup', purgedCount: 3 }]\n",[960,2404,2405,2429,2457,2462],{"__ignoreMap":1077},[1081,2406,2407,2409,2411,2413,2415,2417,2419,2421,2423,2426],{"class":1083,"line":1084},[1081,2408,1438],{"class":1087},[1081,2410,1404],{"class":1095},[1081,2412,1006],{"class":1091},[1081,2414,2097],{"class":1206},[1081,2416,1209],{"class":1095},[1081,2418,1155],{"class":1091},[1081,2420,1534],{"class":1108},[1081,2422,1155],{"class":1091},[1081,2424,2425],{"class":1095},")          ",[1081,2427,2428],{"class":1158},"\u002F\u002F required first: closed → frozen → target-purged\n",[1081,2430,2431,2433,2436,2438,2440,2442,2444,2447,2449,2451,2453,2455],{"class":1083,"line":1115},[1081,2432,1194],{"class":1193},[1081,2434,2435],{"class":1095}," purged ",[1081,2437,1200],{"class":1091},[1081,2439,1203],{"class":1087},[1081,2441,1404],{"class":1095},[1081,2443,1006],{"class":1091},[1081,2445,2446],{"class":1206},"purgePeriodTargets",[1081,2448,1209],{"class":1095},[1081,2450,1155],{"class":1091},[1081,2452,1534],{"class":1108},[1081,2454,1155],{"class":1091},[1081,2456,1305],{"class":1095},[1081,2458,2459],{"class":1083,"line":1136},[1081,2460,2461],{"class":1158},"\u002F\u002F purged.targetsPurgedAt \u002F purged.targetsPurgedBy\n",[1081,2463,2464],{"class":1083,"line":1162},[1081,2465,2466],{"class":1158},"\u002F\u002F purged.targetsPurged → [{ role: 'backup', purgedCount: 3 }]\n",[946,2468,2469,2472,2473,2476,2477,2480,2481,2484,2485,2488],{},[960,2470,2471],{},"'sync-peer'"," (bidirectional) targets are deliberately ",[950,2474,2475],{},"skipped"," — purging a marker from a live\npeer could re-open the resurrection window for a client that has been offline since before the\ncutoff, an assertion no single vault can verify. Push-only targets are safe because they are\nnever pulled from. The call requires the period to be frozen first, records a\n",[960,2478,2479],{},"_period_target_purges\u002F\u003Cname>"," companion + ledger entry, and is idempotent once run; a vault with\n",[950,2482,2483],{},"no"," push-only targets writes no companion and stays re-runnable, so a target added later is\nstill swept. This is single-vault only — fleet-wide purging across many vaults is the companion\ncontrol plane's concern (klum-db, over ",[960,2486,2487],{},"@noy-db\u002Fhub\u002Fcargo",").",[1342,2490,2492],{"id":2491},"open-the-next-period-and-carry-forward-opening-balances","Open the next period and carry forward opening balances",[1072,2494,2496],{"className":1074,"code":2495,"language":1076,"meta":1077,"style":1077},"const q2 = await vault.openPeriod({\n  name: 'FY2026-Q2',\n  startDate: '2026-04-01',\n  fromPeriod: 'FY2026-Q1',\n  carryForward: async (ctx) => {\n    const closing = await ctx.collection\u003CInvoice>('invoices').list()\n    const opening: Record\u003Cstring, Invoice> = {}\n    for (const entry of closing) {\n      if (entry.date \u003C= ctx.priorEndDate) {\n        opening[`ob-${entry.date}`] = { ...entry, status: 'carried-forward', date: '2026-04-01' }\n      }\n    }\n    return { invoices: opening }\n  },\n})\n",[960,2497,2498,2520,2535,2551,2566,2592,2635,2663,2685,2713,2778,2783,2788,2803,2809],{"__ignoreMap":1077},[1081,2499,2500,2502,2505,2507,2509,2511,2513,2516,2518],{"class":1083,"line":1084},[1081,2501,1194],{"class":1193},[1081,2503,2504],{"class":1095}," q2 ",[1081,2506,1200],{"class":1091},[1081,2508,1203],{"class":1087},[1081,2510,1404],{"class":1095},[1081,2512,1006],{"class":1091},[1081,2514,2515],{"class":1206},"openPeriod",[1081,2517,1209],{"class":1095},[1081,2519,1212],{"class":1091},[1081,2521,2522,2524,2526,2528,2531,2533],{"class":1083,"line":1115},[1081,2523,1527],{"class":1218},[1081,2525,1222],{"class":1091},[1081,2527,1105],{"class":1091},[1081,2529,2530],{"class":1108},"FY2026-Q2",[1081,2532,1155],{"class":1091},[1081,2534,1230],{"class":1091},[1081,2536,2537,2540,2542,2544,2547,2549],{"class":1083,"line":1136},[1081,2538,2539],{"class":1218},"  startDate",[1081,2541,1222],{"class":1091},[1081,2543,1105],{"class":1091},[1081,2545,2546],{"class":1108},"2026-04-01",[1081,2548,1155],{"class":1091},[1081,2550,1230],{"class":1091},[1081,2552,2553,2556,2558,2560,2562,2564],{"class":1083,"line":1162},[1081,2554,2555],{"class":1218},"  fromPeriod",[1081,2557,1222],{"class":1091},[1081,2559,1105],{"class":1091},[1081,2561,1534],{"class":1108},[1081,2563,1155],{"class":1091},[1081,2565,1230],{"class":1091},[1081,2567,2568,2571,2573,2576,2579,2583,2586,2589],{"class":1083,"line":1183},[1081,2569,2570],{"class":1206},"  carryForward",[1081,2572,1222],{"class":1091},[1081,2574,2575],{"class":1193}," async",[1081,2577,2578],{"class":1091}," (",[1081,2580,2582],{"class":2581},"sHdIc","ctx",[1081,2584,2585],{"class":1091},")",[1081,2587,2588],{"class":1193}," =>",[1081,2590,2591],{"class":1091}," {\n",[1081,2593,2594,2597,2600,2603,2605,2608,2610,2612,2614,2616,2618,2620,2622,2624,2626,2628,2630,2633],{"class":1083,"line":1190},[1081,2595,2596],{"class":1193},"    const",[1081,2598,2599],{"class":1095}," closing",[1081,2601,2602],{"class":1091}," =",[1081,2604,1203],{"class":1087},[1081,2606,2607],{"class":1095}," ctx",[1081,2609,1006],{"class":1091},[1081,2611,1409],{"class":1206},[1081,2613,1412],{"class":1091},[1081,2615,1415],{"class":1358},[1081,2617,1418],{"class":1091},[1081,2619,1209],{"class":1218},[1081,2621,1155],{"class":1091},[1081,2623,1425],{"class":1108},[1081,2625,1155],{"class":1091},[1081,2627,2585],{"class":1218},[1081,2629,1006],{"class":1091},[1081,2631,2632],{"class":1206},"list",[1081,2634,1836],{"class":1218},[1081,2636,2637,2639,2642,2644,2647,2649,2652,2654,2656,2658,2660],{"class":1083,"line":1215},[1081,2638,2596],{"class":1193},[1081,2640,2641],{"class":1095}," opening",[1081,2643,1222],{"class":1091},[1081,2645,2646],{"class":1358}," Record",[1081,2648,1412],{"class":1091},[1081,2650,2651],{"class":1358},"string",[1081,2653,1293],{"class":1091},[1081,2655,1359],{"class":1358},[1081,2657,1418],{"class":1091},[1081,2659,2602],{"class":1091},[1081,2661,2662],{"class":1091}," {}\n",[1081,2664,2665,2668,2670,2672,2675,2678,2680,2683],{"class":1083,"line":1233},[1081,2666,2667],{"class":1087},"    for",[1081,2669,2578],{"class":1218},[1081,2671,1194],{"class":1193},[1081,2673,2674],{"class":1095}," entry",[1081,2676,2677],{"class":1091}," of",[1081,2679,2599],{"class":1095},[1081,2681,2682],{"class":1218},") ",[1081,2684,1212],{"class":1091},[1081,2686,2687,2690,2692,2695,2697,2699,2702,2704,2706,2709,2711],{"class":1083,"line":1250},[1081,2688,2689],{"class":1087},"      if",[1081,2691,2578],{"class":1218},[1081,2693,2694],{"class":1095},"entry",[1081,2696,1006],{"class":1091},[1081,2698,1566],{"class":1095},[1081,2700,2701],{"class":1091}," \u003C=",[1081,2703,2607],{"class":1095},[1081,2705,1006],{"class":1091},[1081,2707,2708],{"class":1095},"priorEndDate",[1081,2710,2682],{"class":1218},[1081,2712,1212],{"class":1091},[1081,2714,2715,2718,2721,2724,2727,2730,2732,2734,2736,2739,2742,2744,2746,2749,2751,2753,2755,2757,2759,2762,2764,2766,2768,2770,2772,2774,2776],{"class":1083,"line":1267},[1081,2716,2717],{"class":1095},"        opening",[1081,2719,2720],{"class":1218},"[",[1081,2722,2723],{"class":1091},"`",[1081,2725,2726],{"class":1108},"ob-",[1081,2728,2729],{"class":1091},"${",[1081,2731,2694],{"class":1095},[1081,2733,1006],{"class":1091},[1081,2735,1566],{"class":1095},[1081,2737,2738],{"class":1091},"}`",[1081,2740,2741],{"class":1218},"] ",[1081,2743,1200],{"class":1091},[1081,2745,1092],{"class":1091},[1081,2747,2748],{"class":1091}," ...",[1081,2750,2694],{"class":1095},[1081,2752,1293],{"class":1091},[1081,2754,1375],{"class":1218},[1081,2756,1222],{"class":1091},[1081,2758,1105],{"class":1091},[1081,2760,2761],{"class":1108},"carried-forward",[1081,2763,1155],{"class":1091},[1081,2765,1293],{"class":1091},[1081,2767,1385],{"class":1218},[1081,2769,1222],{"class":1091},[1081,2771,1105],{"class":1091},[1081,2773,2546],{"class":1108},[1081,2775,1155],{"class":1091},[1081,2777,1392],{"class":1091},[1081,2779,2780],{"class":1083,"line":1281},[1081,2781,2782],{"class":1091},"      }\n",[1081,2784,2785],{"class":1083,"line":1299},[1081,2786,2787],{"class":1091},"    }\n",[1081,2789,2790,2793,2795,2797,2799,2801],{"class":1083,"line":1308},[1081,2791,2792],{"class":1087},"    return",[1081,2794,1092],{"class":1091},[1081,2796,1441],{"class":1218},[1081,2798,1222],{"class":1091},[1081,2800,2641],{"class":1095},[1081,2802,1392],{"class":1091},[1081,2804,2806],{"class":1083,"line":2805},14,[1081,2807,2808],{"class":1091},"  },\n",[1081,2810,2812,2814],{"class":1083,"line":2811},15,[1081,2813,1302],{"class":1091},[1081,2815,1305],{"class":1095},[1072,2817,2819],{"className":1582,"code":2818,"language":141,"meta":1077,"style":1077},"{\n  \"name\": \"FY2026-Q2\",\n  \"kind\": \"opened\",\n  \"startDate\": \"2026-04-01\",\n  \"endDate\": \"2026-03-31\",\n  \"closedAt\": \"2026-07-08T09:15:11.048Z\",\n  \"closedBy\": \"firm\",\n  \"priorPeriodName\": \"FY2026-Q1\",\n  \"priorPeriodHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n  \"openingCollections\": [\"invoices\"]\n}\n",[960,2820,2821,2825,2843,2862,2881,2899,2918,2936,2955,2974,2996],{"__ignoreMap":1077},[1081,2822,2823],{"class":1083,"line":1084},[1081,2824,1212],{"class":1091},[1081,2826,2827,2829,2831,2833,2835,2837,2839,2841],{"class":1083,"line":1115},[1081,2828,1594],{"class":1091},[1081,2830,1597],{"class":1193},[1081,2832,1600],{"class":1091},[1081,2834,1222],{"class":1091},[1081,2836,1605],{"class":1091},[1081,2838,2530],{"class":1108},[1081,2840,1600],{"class":1091},[1081,2842,1230],{"class":1091},[1081,2844,2845,2847,2849,2851,2853,2855,2858,2860],{"class":1083,"line":1136},[1081,2846,1594],{"class":1091},[1081,2848,1618],{"class":1193},[1081,2850,1600],{"class":1091},[1081,2852,1222],{"class":1091},[1081,2854,1605],{"class":1091},[1081,2856,2857],{"class":1108},"opened",[1081,2859,1600],{"class":1091},[1081,2861,1230],{"class":1091},[1081,2863,2864,2866,2869,2871,2873,2875,2877,2879],{"class":1083,"line":1162},[1081,2865,1594],{"class":1091},[1081,2867,2868],{"class":1193},"startDate",[1081,2870,1600],{"class":1091},[1081,2872,1222],{"class":1091},[1081,2874,1605],{"class":1091},[1081,2876,2546],{"class":1108},[1081,2878,1600],{"class":1091},[1081,2880,1230],{"class":1091},[1081,2882,2883,2885,2887,2889,2891,2893,2895,2897],{"class":1083,"line":1183},[1081,2884,1594],{"class":1091},[1081,2886,966],{"class":1193},[1081,2888,1600],{"class":1091},[1081,2890,1222],{"class":1091},[1081,2892,1605],{"class":1091},[1081,2894,1550],{"class":1108},[1081,2896,1600],{"class":1091},[1081,2898,1230],{"class":1091},[1081,2900,2901,2903,2905,2907,2909,2911,2914,2916],{"class":1083,"line":1190},[1081,2902,1594],{"class":1091},[1081,2904,1674],{"class":1193},[1081,2906,1600],{"class":1091},[1081,2908,1222],{"class":1091},[1081,2910,1605],{"class":1091},[1081,2912,2913],{"class":1108},"2026-07-08T09:15:11.048Z",[1081,2915,1600],{"class":1091},[1081,2917,1230],{"class":1091},[1081,2919,2920,2922,2924,2926,2928,2930,2932,2934],{"class":1083,"line":1215},[1081,2921,1594],{"class":1091},[1081,2923,1694],{"class":1193},[1081,2925,1600],{"class":1091},[1081,2927,1222],{"class":1091},[1081,2929,1605],{"class":1091},[1081,2931,1243],{"class":1108},[1081,2933,1600],{"class":1091},[1081,2935,1230],{"class":1091},[1081,2937,2938,2940,2943,2945,2947,2949,2951,2953],{"class":1083,"line":1233},[1081,2939,1594],{"class":1091},[1081,2941,2942],{"class":1193},"priorPeriodName",[1081,2944,1600],{"class":1091},[1081,2946,1222],{"class":1091},[1081,2948,1605],{"class":1091},[1081,2950,1534],{"class":1108},[1081,2952,1600],{"class":1091},[1081,2954,1230],{"class":1091},[1081,2956,2957,2959,2961,2963,2965,2967,2970,2972],{"class":1083,"line":1250},[1081,2958,1594],{"class":1091},[1081,2960,1713],{"class":1193},[1081,2962,1600],{"class":1091},[1081,2964,1222],{"class":1091},[1081,2966,1605],{"class":1091},[1081,2968,2969],{"class":1108},"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",[1081,2971,1600],{"class":1091},[1081,2973,1230],{"class":1091},[1081,2975,2976,2978,2981,2983,2985,2988,2990,2992,2994],{"class":1083,"line":1267},[1081,2977,1594],{"class":1091},[1081,2979,2980],{"class":1193},"openingCollections",[1081,2982,1600],{"class":1091},[1081,2984,1222],{"class":1091},[1081,2986,2987],{"class":1091}," [",[1081,2989,1600],{"class":1091},[1081,2991,1425],{"class":1108},[1081,2993,1600],{"class":1091},[1081,2995,1982],{"class":1091},[1081,2997,2998],{"class":1083,"line":1281},[1081,2999,1725],{"class":1091},[946,3001,3002,3005,3006,2392,3009,3012,3013,3016,3017,3020,3021,3023,3024,3027,3028,3030],{},[960,3003,3004],{},"carryForward"," receives a read-only facade (",[960,3007,3008],{},"ctx.collection(name).get()",[960,3010,3011],{},".list()",") over the\nvault's ",[1043,3014,3015],{},"current"," state, plus ",[960,3018,3019],{},"ctx.priorEndDate"," — the just-closed period's ",[960,3022,966],{},". Because\nclosed records are frozen, current state and closing state are the same thing, so filtering by\n",[960,3025,3026],{},"entry[dateField] \u003C= ctx.priorEndDate"," selects exactly what closed. The records returned from\n",[960,3029,3004],{}," are written through the normal collection path (encrypted, ledger-logged) with\nfresh timestamps, so they land outside every closed period.",[941,3032,3034],{"id":3033},"api-reference","API reference",[1342,3036,3038],{"id":3037},"withperiods",[960,3039,1038],{},[1072,3041,3043],{"className":1074,"code":3042,"language":1076,"meta":1077,"style":1077},"function withPeriods(): PeriodsStrategy\n",[960,3044,3045],{"__ignoreMap":1077},[1081,3046,3047,3050,3052,3055],{"class":1083,"line":1084},[1081,3048,3049],{"class":1193},"function",[1081,3051,1122],{"class":1206},[1081,3053,3054],{"class":1091},"():",[1081,3056,3057],{"class":1358}," PeriodsStrategy\n",[946,3059,3060,3061,3064,3065,3068],{},"Builds the active periods strategy. Pass it as ",[960,3062,3063],{},"periodsStrategy"," to ",[960,3066,3067],{},"createNoydb"," — this is the\nonly wiring step. Takes no options.",[1342,3070,3072],{"id":3071},"vaultcloseperiodoptions",[960,3073,3074],{},"vault.closePeriod(options)",[1072,3076,3078],{"className":1074,"code":3077,"language":1076,"meta":1077,"style":1077},"vault.closePeriod(options: ClosePeriodOptions): Promise\u003CPeriodRecord>\n",[960,3079,3080],{"__ignoreMap":1077},[1081,3081,3082,3084,3086,3088,3091,3094,3096,3099],{"class":1083,"line":1084},[1081,3083,952],{"class":1095},[1081,3085,1006],{"class":1091},[1081,3087,1518],{"class":1206},[1081,3089,3090],{"class":1095},"(options: ClosePeriodOptions): ",[1081,3092,3093],{"class":1358},"Promise",[1081,3095,1412],{"class":1091},[1081,3097,3098],{"class":1095},"PeriodRecord",[1081,3100,3101],{"class":1091},">\n",[946,3103,3104,3105,3107],{},"Seals a period and returns the ",[960,3106,3098],{}," that was written.",[946,3109,3110,1222],{},[960,3111,3112],{},"ClosePeriodOptions",[3114,3115,3116,3132],"table",{},[3117,3118,3119],"thead",{},[3120,3121,3122,3126,3129],"tr",{},[3123,3124,3125],"th",{},"Field",[3123,3127,3128],{},"Type",[3123,3130,3131],{},"Purpose",[3133,3134,3135,3156,3176],"tbody",{},[3120,3136,3137,3142,3146],{},[3138,3139,3140],"td",{},[960,3141,1597],{},[3138,3143,3144],{},[960,3145,2651],{},[3138,3147,3148,3149,3152,3153,3155],{},"Unique period name (e.g. ",[960,3150,3151],{},"'FY2026-Q1'","). Throws ",[960,3154,2140],{}," if it collides with an existing period.",[3120,3157,3158,3162,3166],{},[3138,3159,3160],{},[960,3161,966],{},[3138,3163,3164],{},[960,3165,2651],{},[3138,3167,3168,3169,3172,3173,3175],{},"Inclusive ISO cutoff. A record is sealed once ",[960,3170,3171],{},"record[dateField]"," (or, when ",[960,3174,970],{}," is omitted, the record's write timestamp) is at or before this date.",[3120,3177,3178,3183,3187],{},[3138,3179,3180],{},[960,3181,3182],{},"dateField?",[3138,3184,3185],{},[960,3186,2651],{},[3138,3188,3189],{},"Record field carrying the business date used for sealing. Omit to fall back to write-time sealing (see Limits & gotchas).",[1342,3191,3193],{"id":3192},"vaultopenperiodoptions",[960,3194,3195],{},"vault.openPeriod(options)",[1072,3197,3199],{"className":1074,"code":3198,"language":1076,"meta":1077,"style":1077},"vault.openPeriod\u003CTCollections>(options: OpenPeriodOptions\u003CTCollections>): Promise\u003CPeriodRecord>\n",[960,3200,3201],{"__ignoreMap":1077},[1081,3202,3203,3205,3207,3209,3211,3214,3216,3219,3221,3223,3225,3228,3230,3232,3234],{"class":1083,"line":1084},[1081,3204,952],{"class":1095},[1081,3206,1006],{"class":1091},[1081,3208,2515],{"class":1206},[1081,3210,1412],{"class":1091},[1081,3212,3213],{"class":1358},"TCollections",[1081,3215,1418],{"class":1091},[1081,3217,3218],{"class":1095},"(options: OpenPeriodOptions",[1081,3220,1412],{"class":1091},[1081,3222,3213],{"class":1095},[1081,3224,1418],{"class":1091},[1081,3226,3227],{"class":1095},"): ",[1081,3229,3093],{"class":1358},[1081,3231,1412],{"class":1091},[1081,3233,3098],{"class":1095},[1081,3235,3101],{"class":1091},[946,3237,3238,3239,3241,3242,2578,3244,2488],{},"Opens the next period, materializes opening-balance records via ",[960,3240,3004],{},", and returns the\nnew ",[960,3243,3098],{},[960,3245,3246],{},"kind: 'opened'",[946,3248,3249,1222],{},[960,3250,3251],{},"OpenPeriodOptions",[3114,3253,3254,3264],{},[3117,3255,3256],{},[3120,3257,3258,3260,3262],{},[3123,3259,3125],{},[3123,3261,3128],{},[3123,3263,3131],{},[3133,3265,3266,3279,3295,3318],{},[3120,3267,3268,3272,3276],{},[3138,3269,3270],{},[960,3271,1597],{},[3138,3273,3274],{},[960,3275,2651],{},[3138,3277,3278],{},"Unique name for the new period.",[3120,3280,3281,3285,3289],{},[3138,3282,3283],{},[960,3284,2868],{},[3138,3286,3287],{},[960,3288,2651],{},[3138,3290,3291,3292,3294],{},"ISO lower bound of the new period — usually the prior period's ",[960,3293,966],{}," + 1 day.",[3120,3296,3297,3302,3306],{},[3138,3298,3299],{},[960,3300,3301],{},"fromPeriod",[3138,3303,3304],{},[960,3305,2651],{},[3138,3307,3308,3309,3311,3312,3314,3315,1006],{},"Name of the prior ",[950,3310,1627],{}," period this one carries forward from. Throws ",[960,3313,2140],{}," if it doesn't exist or isn't ",[960,3316,3317],{},"kind: 'closed'",[3120,3319,3320,3324,3329],{},[3138,3321,3322],{},[960,3323,3004],{},[3138,3325,3326],{},[960,3327,3328],{},"(ctx: CarryForwardContext) => Promise\u003CTCollections> | TCollections",[3138,3330,3331,3332,3335],{},"Computes opening-balance records from the closing state. Return value is ",[960,3333,3334],{},"{ [collectionName]: { [id]: record } }","; each record is written via the normal collection path.",[946,3337,3338,1222],{},[960,3339,3340],{},"CarryForwardContext",[3114,3342,3343,3353],{},[3117,3344,3345],{},[3120,3346,3347,3349,3351],{},[3123,3348,3125],{},[3123,3350,3128],{},[3123,3352,3131],{},[3133,3354,3355,3374],{},[3120,3356,3357,3361,3365],{},[3138,3358,3359],{},[960,3360,2708],{},[3138,3362,3363],{},[960,3364,2651],{},[3138,3366,3367,3368,3370,3371,3373],{},"The ",[960,3369,966],{}," of the period named in ",[960,3372,3301],{}," — the closing boundary to filter by.",[3120,3375,3376,3381,3386],{},[3138,3377,3378],{},[960,3379,3380],{},"collection(name)",[3138,3382,3383],{},[960,3384,3385],{},"\u003CT>(name: string) => { get(id): Promise\u003CT | null>, list(): Promise\u003CT[]> }",[3138,3387,3388],{},"Read-only view of the named collection's current state.",[1342,3390,3392],{"id":3391},"vaultfreezeperiodname",[960,3393,2062],{},[1072,3395,3397],{"className":1074,"code":3396,"language":1076,"meta":1077,"style":1077},"vault.freezePeriod(name: string): Promise\u003CPeriodRecord>\n",[960,3398,3399],{"__ignoreMap":1077},[1081,3400,3401,3403,3405,3407,3410,3412,3414,3416],{"class":1083,"line":1084},[1081,3402,952],{"class":1095},[1081,3404,1006],{"class":1091},[1081,3406,2097],{"class":1206},[1081,3408,3409],{"class":1095},"(name: string): ",[1081,3411,3093],{"class":1358},[1081,3413,1412],{"class":1091},[1081,3415,3098],{"class":1095},[1081,3417,3101],{"class":1091},[946,3419,3420,3421,3423,3424,3426,3427,3429,3430,2392,3433,2392,3436,3439,3440,3443,3444,3446,3447,3449],{},"Since ",[960,3422,997],{},". Purges the delete markers whose write-time falls inside the closed period's\nwindow and records the ",[960,3425,2069],{}," companion + ledger entry. Returns the\n",[960,3428,3098],{}," with ",[960,3431,3432],{},"frozenAt",[960,3434,3435],{},"frozenBy",[960,3437,3438],{},"purgedMarkerCount"," merged on (read-time merge — the\nstored ",[960,3441,3442],{},"_periods"," record is never mutated). Terminal and idempotent. Throws ",[960,3445,2140],{}," when\nthe period doesn't exist, isn't ",[960,3448,3317],{},", or its purge window has not fully elapsed yet\n(recent delete markers may not have converged).",[1342,3451,3453],{"id":3452},"vaultarchiveperiodname",[960,3454,2158],{},[1072,3456,3458],{"className":1074,"code":3457,"language":1076,"meta":1077,"style":1077},"vault.archivePeriod(name: string): Promise\u003CPeriodRecord>\n",[960,3459,3460],{"__ignoreMap":1077},[1081,3461,3462,3464,3466,3468,3470,3472,3474,3476],{"class":1083,"line":1084},[1081,3463,952],{"class":1095},[1081,3465,1006],{"class":1091},[1081,3467,2332],{"class":1206},[1081,3469,3409],{"class":1095},[1081,3471,3093],{"class":1358},[1081,3473,1412],{"class":1091},[1081,3475,3098],{"class":1095},[1081,3477,3101],{"class":1091},[946,3479,3420,3480,3482,3483,3485,3486,3488,3489,3429,3491,2392,3494,3497,3498,3501,3502,3504,3505,3507,3508,3511,3512,2488],{},[960,3481,997],{},". Relocates the closed period's in-window records (write-time ",[960,3484,2368],{}," inside the\nwindow) from the hot store to the routed cold tier, and records the ",[960,3487,2364],{},"\ncompanion + ledger entry. Returns the ",[960,3490,3098],{},[960,3492,3493],{},"archivedAt",[960,3495,3496],{},"archivedBy"," \u002F\n",[960,3499,3500],{},"archivedRecordCount"," merged on. Non-destructive (reads fall through to cold), gated only on\n",[960,3503,1627],{},", idempotent. Throws ",[960,3506,2140],{}," without a ",[960,3509,3510],{},"routeStore"," cold route\n(",[955,3513,808],{"href":809},[1342,3515,3517],{"id":3516},"vaultpurgeperiodtargetsname",[960,3518,2381],{},[1072,3520,3522],{"className":1074,"code":3521,"language":1076,"meta":1077,"style":1077},"vault.purgePeriodTargets(name: string): Promise\u003CPeriodRecord>\n",[960,3523,3524],{"__ignoreMap":1077},[1081,3525,3526,3528,3530,3532,3534,3536,3538,3540],{"class":1083,"line":1084},[1081,3527,952],{"class":1095},[1081,3529,1006],{"class":1091},[1081,3531,2446],{"class":1206},[1081,3533,3409],{"class":1095},[1081,3535,3093],{"class":1358},[1081,3537,1412],{"class":1091},[1081,3539,3098],{"class":1095},[1081,3541,3101],{"class":1091},[946,3543,3420,3544,3546,3547,2392,3549,3551,3552,3554,3555,3557,3558,3560,3561,2392,3564,2392,3567,3570,3571,3574],{},[960,3545,997],{},". Sweeps the period's delete markers off every push-only sync target\n(",[960,3548,2391],{},[960,3550,2395],{},"), skipping ",[960,3553,2471],{}," targets, and records the\n",[960,3556,2479],{}," companion + ledger entry. Returns the ",[960,3559,3098],{}," with\n",[960,3562,3563],{},"targetsPurgedAt",[960,3565,3566],{},"targetsPurgedBy",[960,3568,3569],{},"targetsPurged"," (per-target ",[960,3572,3573],{},"{ label?, role, purgedCount }",")\nmerged on. Requires the period to be frozen first; idempotent once run; with no push-only targets\nit writes no companion and is re-runnable.",[1342,3576,3578],{"id":3577},"vaultlistperiods",[960,3579,3580],{},"vault.listPeriods()",[1072,3582,3584],{"className":1074,"code":3583,"language":1076,"meta":1077,"style":1077},"vault.listPeriods(): Promise\u003Creadonly PeriodRecord[]>\n",[960,3585,3586],{"__ignoreMap":1077},[1081,3587,3588,3590,3592,3594,3597,3599,3601,3604],{"class":1083,"line":1084},[1081,3589,952],{"class":1095},[1081,3591,1006],{"class":1091},[1081,3593,1833],{"class":1206},[1081,3595,3596],{"class":1095},"(): ",[1081,3598,3093],{"class":1358},[1081,3600,1412],{"class":1091},[1081,3602,3603],{"class":1095},"readonly PeriodRecord[]",[1081,3605,3101],{"class":1091},[946,3607,3608,3609,1006],{},"Returns every closed\u002Fopened period, ordered by ",[960,3610,1674],{},[1342,3612,3614],{"id":3613},"vaultgetperiodname",[960,3615,3616],{},"vault.getPeriod(name)",[1072,3618,3620],{"className":1074,"code":3619,"language":1076,"meta":1077,"style":1077},"vault.getPeriod(name: string): Promise\u003CPeriodRecord | null>\n",[960,3621,3622],{"__ignoreMap":1077},[1081,3623,3624,3626,3628,3630,3632,3634,3636,3639,3642],{"class":1083,"line":1084},[1081,3625,952],{"class":1095},[1081,3627,1006],{"class":1091},[1081,3629,1998],{"class":1206},[1081,3631,3409],{"class":1095},[1081,3633,3093],{"class":1358},[1081,3635,1412],{"class":1091},[1081,3637,3638],{"class":1095},"PeriodRecord ",[1081,3640,3641],{"class":1091},"|",[1081,3643,3644],{"class":1091}," null>\n",[946,3646,3647,3648,3651],{},"Looks up one period by name; ",[960,3649,3650],{},"null"," if it doesn't exist.",[1342,3653,3655],{"id":3654},"periodrecord",[960,3656,3098],{},[946,3658,3659],{},"The stored record for one closed or opened period, one entry per period:",[3114,3661,3662,3673],{},[3117,3663,3664],{},[3120,3665,3666,3668,3670],{},[3123,3667,3125],{},[3123,3669,3128],{},[3123,3671,3672],{},"Meaning",[3133,3674,3675,3688,3702,3719,3736,3749,3769,3786,3800,3816,3833,3864,3891],{},[3120,3676,3677,3681,3685],{},[3138,3678,3679],{},[960,3680,1597],{},[3138,3682,3683],{},[960,3684,2651],{},[3138,3686,3687],{},"Unique period name.",[3120,3689,3690,3694,3699],{},[3138,3691,3692],{},[960,3693,1618],{},[3138,3695,3696],{},[960,3697,3698],{},"'closed' | 'opened'",[3138,3700,3701],{},"Whether this entry is a close or a carried-forward open.",[3120,3703,3704,3708,3712],{},[3138,3705,3706],{},[960,3707,966],{},[3138,3709,3710],{},[960,3711,2651],{},[3138,3713,3714,3715,3718],{},"Sealing boundary — inherited from the prior close on ",[960,3716,3717],{},"'opened'"," records.",[3120,3720,3721,3726,3730],{},[3138,3722,3723],{},[960,3724,3725],{},"startDate?",[3138,3727,3728],{},[960,3729,2651],{},[3138,3731,3732,3733,3735],{},"Present on ",[960,3734,3717],{}," records only.",[3120,3737,3738,3742,3746],{},[3138,3739,3740],{},[960,3741,3182],{},[3138,3743,3744],{},[960,3745,2651],{},[3138,3747,3748],{},"The business-date field this close sealed by, if any.",[3120,3750,3751,3755,3759],{},[3138,3752,3753],{},[960,3754,1674],{},[3138,3756,3757],{},[960,3758,2651],{},[3138,3760,3761,3762,2392,3765,3768],{},"ISO timestamp of the ",[960,3763,3764],{},"closePeriod()",[960,3766,3767],{},"openPeriod()"," call.",[3120,3770,3771,3775,3779],{},[3138,3772,3773],{},[960,3774,1694],{},[3138,3776,3777],{},[960,3778,2651],{},[3138,3780,3781,3782,3785],{},"The user id of the ",[955,3783,3784],{"href":54},"keyring"," that made the close\u002Fopen call.",[3120,3787,3788,3793,3797],{},[3138,3789,3790],{},[960,3791,3792],{},"priorPeriodName?",[3138,3794,3795],{},[960,3796,2651],{},[3138,3798,3799],{},"Name of the period this one chains from. Absent on the first period.",[3120,3801,3802,3806,3810],{},[3138,3803,3804],{},[960,3805,1713],{},[3138,3807,3808],{},[960,3809,2651],{},[3138,3811,3812,3815],{},[960,3813,3814],{},"sha256(canonicalJson(priorPeriod))"," — empty string for the first period.",[3120,3817,3818,3823,3828],{},[3138,3819,3820],{},[960,3821,3822],{},"openingCollections?",[3138,3824,3825],{},[960,3826,3827],{},"readonly string[]",[3138,3829,3830,3832],{},[960,3831,3717],{}," records only — names of collections that received carried-forward records.",[3120,3834,3835,3846,3855],{},[3138,3836,3837,2392,3840,2392,3843],{},[960,3838,3839],{},"frozenAt?",[960,3841,3842],{},"frozenBy?",[960,3844,3845],{},"purgedMarkerCount?",[3138,3847,3848,2392,3850,2392,3852],{},[960,3849,2651],{},[960,3851,2651],{},[960,3853,3854],{},"number",[3138,3856,3857,3858,3860,3861,3863],{},"Merged at read time from the ",[960,3859,2069],{}," companion; absent until frozen. Never written into the stored ",[960,3862,3442],{}," record (that would break the hash chain).",[3120,3865,3866,3877,3885],{},[3138,3867,3868,2392,3871,2392,3874],{},[960,3869,3870],{},"archivedAt?",[960,3872,3873],{},"archivedBy?",[960,3875,3876],{},"archivedRecordCount?",[3138,3878,3879,2392,3881,2392,3883],{},[960,3880,2651],{},[960,3882,2651],{},[960,3884,3854],{},[3138,3886,3887,3888,3890],{},"Merged from the ",[960,3889,2364],{}," companion; absent until archived.",[3120,3892,3893,3904,3913],{},[3138,3894,3895,2392,3898,2392,3901],{},[960,3896,3897],{},"targetsPurgedAt?",[960,3899,3900],{},"targetsPurgedBy?",[960,3902,3903],{},"targetsPurged?",[3138,3905,3906,2392,3908,2392,3910],{},[960,3907,2651],{},[960,3909,2651],{},[960,3911,3912],{},"readonly { label?, role, purgedCount }[]",[3138,3914,3887,3915,3917],{},[960,3916,2479],{}," companion; absent until target-purged (or when the vault has no push-only targets).",[1342,3919,3921],{"id":3920},"periodclosederror",[960,3922,982],{},[1072,3924,3926],{"className":1074,"code":3925,"language":1076,"meta":1077,"style":1077},"import { PeriodClosedError } from '@noy-db\u002Fhub'\n",[960,3927,3928],{"__ignoreMap":1077},[1081,3929,3930,3932,3934,3937,3939,3941,3943,3945],{"class":1083,"line":1084},[1081,3931,1088],{"class":1087},[1081,3933,1092],{"class":1091},[1081,3935,3936],{"class":1095}," PeriodClosedError",[1081,3938,1099],{"class":1091},[1081,3940,1102],{"class":1087},[1081,3942,1105],{"class":1091},[1081,3944,1109],{"class":1108},[1081,3946,1112],{"class":1091},[946,3948,3949,3950,2392,3953,3956,3957,3960,3961,3963,3964,3967,3968,3971,3972,3974],{},"Thrown by ",[960,3951,3952],{},"put()",[960,3954,3955],{},"delete()"," when the target record falls inside a closed period. Carries\n",[960,3958,3959],{},"periodName",", ",[960,3962,966],{},", and ",[960,3965,3966],{},"recordTs"," (the offending timestamp, or a ",[960,3969,3970],{},"field=value"," pair when\nsealed by ",[960,3973,970],{},") as typed fields, so an audit UI can render \"locked in FY2026-Q1 (closed\n2026-03-31)\" without parsing the message string.",[941,3976,3978],{"id":3977},"behavior-when-not-opted-in","Behavior when NOT opted in",[1012,3980,3981,3991,4005,4008],{},[1015,3982,3983,2392,3986,3988,3989,1006],{},[960,3984,3985],{},"vault.closePeriod()",[960,3987,986],{}," throw, pointing you at ",[960,3990,1131],{},[1015,3992,3993,3995,3996,3999,4000,3995,4003,1006],{},[960,3994,3580],{}," returns ",[960,3997,3998],{},"[]","; ",[960,4001,4002],{},"vault.getPeriod()",[960,4004,3650],{},[1015,4006,4007],{},"The write-guard is a no-op — every put\u002Fdelete succeeds regardless of date.",[1015,4009,4010],{},"None of the ~334 LOC ships in your bundle.",[941,4012,4014],{"id":4013},"limits-gotchas","Limits & gotchas",[1012,4016,4017,4022,4028,4037,4040,4054,4063,4081,4098],{},[1015,4018,4019,4021],{},[960,4020,970],{}," is recommended over the write-time fallback — accounting semantics use the\nrecord's business date, not when it happened to be written.",[1015,4023,4024,4025,4027],{},"A late entry (write-time after close, business date inside the closed range) is the canonical\ncorrectness check: a write-time-only seal would silently let it through. ",[960,4026,970],{}," sealing\ncatches it because it compares the business date on both the existing and incoming record —\ncallers can't slide a record into a closed period by backdating it, either.",[1015,4029,4030,4031,4033,4034,4036],{},"There's no partial re-opening of a closed period. The sanctioned way to correct a sealed record\nis a compensating entry in the next period via ",[960,4032,3767],{},"'s ",[960,4035,3004],{},", not unsealing\nthe old one.",[1015,4038,4039],{},"Closing and opening are explicit, deliberate calls — nothing rolls a period over automatically.\nThe same goes for the retention lifecycle: freeze, archive, and target-purge each run only when\ncalled.",[1015,4041,4042,4043,4046,4047,4050,4051,1006],{},"The retention sequence is ",[960,4044,4045],{},"closed → frozen → target-purged","; archival is independent of freeze\nand composes in either order. Freeze and target-purge reclaim ",[950,4048,4049],{},"delete-marker"," space; archival\nrelocates ",[950,4052,4053],{},"records",[1015,4055,4056,4057,4059,4060,4062],{},"Freeze\u002Farchive\u002Ftarget-purge bound by write-time ",[960,4058,2368],{},", not business date — the store tier sees\nonly encrypted envelopes. A late-booked record (or delete) is picked up by the ",[1043,4061,2148],{}," period's\nfreeze\u002Farchival.",[1015,4064,4065,4066,4068,4069,4072,4073,4076,4077,4080],{},"Archival's read cost depends on the read mode: with ",[955,4067,719],{"href":720}," per-id reads,\narchived records are truly cold (fetched only on access); in the default hydrated mode,\n",[960,4070,4071],{},"loadAll"," merges the cold store, so archived records still load into RAM on vault open —\nhot-tier ",[1043,4074,4075],{},"storage"," is reclaimed, RAM is not. Reserved ",[960,4078,4079],{},"_","-prefixed summaries always stay hot.",[1015,4082,4083,4084,4087,4088,4091,4092,4095,4096,2488],{},"A backup\u002Frestore round-trip re-materializes archived records into the hot tier, while the\nrestored ",[960,4085,4086],{},"_period_archives"," companion keeps ",[960,4089,4090],{},"archivePeriod()"," an idempotent no-op. Reads stay\ncorrect; to reclaim hot space again, re-run the migration directly\n(",[960,4093,4094],{},"store.compact(vault, { before })"," — see ",[955,4097,808],{"href":809},[1015,4099,4100,4101,4103,4104,4107,4108,4110],{},"Tampering with a stored ",[960,4102,3098],{}," changes the payload hash embedded in its ledger entry,\nso it's caught by ",[960,4105,4106],{},"vault.verifyBackupIntegrity()","'s chain-and-data cross-check — but only when\nthe ",[955,4109,697],{"href":698}," service is also enabled. Without a ledger, there's nothing to\ncross-check the period record against.",[941,4112,4114],{"id":4113},"see-also","See also",[1012,4116,4117,4127,4132,4137,4142,4153,4158],{},[1015,4118,4119,4122,4123],{},[955,4120,4121],{"href":598},"Services overview"," · ",[955,4124,4126],{"href":4125},"\u002Forientation","Orientation map",[1015,4128,4129,4131],{},[955,4130,697],{"href":698}," — the ledger period closes\u002Fopens append their entries to",[1015,4133,4134,4136],{},[955,4135,693],{"href":694}," — record-level locks; periods lock by business-date range instead of by record",[1015,4138,4139,4141],{},[955,4140,864],{"href":865}," — the delete markers freeze and target-purge reclaim, and the target roles they respect",[1015,4143,4144,4146,4147,4149,4150,4152],{},[955,4145,808],{"href":809}," — the ",[960,4148,1063],{}," cold route ",[960,4151,4090],{}," drives",[1015,4154,4155,4157],{},[955,4156,957],{"href":48}," — the vault\u002Fcollection model this service extends",[1015,4159,4160,4161,1006],{},"Proven by showcase ",[955,4162,4166],{"href":4163,"rel":4164},"https:\u002F\u002Fgithub.com\u002Fnoy-db\u002Fdocs\u002Fblob\u002Fmain\u002Fshowcases\u002Fsrc\u002F18-with-periods.showcase.test.ts",[4165],"nofollow",[960,4167,4168],{},"18-with-periods",[4170,4171,4172],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":1077,"searchDepth":1136,"depth":1136,"links":4174},[4175,4176,4177,4178,4179,4187,4199,4200,4201],{"id":943,"depth":1115,"text":944},{"id":1009,"depth":1115,"text":1010},{"id":1026,"depth":1115,"text":1027},{"id":1069,"depth":1115,"text":1070},{"id":1339,"depth":1115,"text":1340,"children":4180},[4181,4182,4183,4184,4185,4186],{"id":1344,"depth":1136,"text":1345},{"id":1809,"depth":1136,"text":1810},{"id":2046,"depth":1136,"text":2047},{"id":2152,"depth":1136,"text":2153},{"id":2375,"depth":1136,"text":2376},{"id":2491,"depth":1136,"text":2492},{"id":3033,"depth":1115,"text":3034,"children":4188},[4189,4190,4191,4192,4193,4194,4195,4196,4197,4198],{"id":3037,"depth":1136,"text":1038},{"id":3071,"depth":1136,"text":3074},{"id":3192,"depth":1136,"text":3195},{"id":3391,"depth":1136,"text":2062},{"id":3452,"depth":1136,"text":2158},{"id":3516,"depth":1136,"text":2381},{"id":3577,"depth":1136,"text":3580},{"id":3613,"depth":1136,"text":3616},{"id":3654,"depth":1136,"text":3098},{"id":3920,"depth":1136,"text":982},{"id":3977,"depth":1115,"text":3978},{"id":4013,"depth":1115,"text":4014},{"id":4113,"depth":1115,"text":4114},null,"Accounting-style period closes with a write-guard: closePeriod() seals records, openPeriod() carries forward balances, and closes chain into the audit ledger.","md",{},"service",{"title":776,"description":4203},"stable","important","JZRF9vPK6WcZ7x2AZ8qXSjvNxIN66Kgpzziqx313kBI",{"data":4212,"body":4213},{},{"type":4214,"children":4215},"root",[4216],{"type":4217,"tag":946,"props":4218,"children":4219},"element",{},[4220],{"type":4217,"tag":960,"props":4221,"children":4223},{"className":4222},[],[4224],{"type":4225,"value":4226},"text","with-audit",{"data":4228,"body":4229},{},{"type":4214,"children":4230},[4231],{"type":4217,"tag":946,"props":4232,"children":4233},{},[4234],{"type":4225,"value":4235},"E — Time & Audit",{"data":4237,"body":4238},{},{"type":4214,"children":4239},[4240],{"type":4217,"tag":946,"props":4241,"children":4242},{},[4243],{"type":4217,"tag":960,"props":4244,"children":4246},{"className":4245},[],[4247],{"type":4225,"value":1131},{"data":4249,"body":4250},{},{"type":4214,"children":4251},[4252],{"type":4217,"tag":946,"props":4253,"children":4254},{},[4255],{"type":4217,"tag":960,"props":4256,"children":4258},{"className":4257},[],[4259],{"type":4225,"value":1038},{"data":4261,"body":4262},{},{"type":4214,"children":4263},[4264],{"type":4217,"tag":946,"props":4265,"children":4266},{},[4267],{"type":4225,"value":4268},"~334 (off-bundle when not opted in)",1791896588257]