@seed-hypermedia/client 0.0.134 → 0.0.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps.mjs +6 -6
- package/dist/auto-link.mjs +4 -4
- package/dist/block-diff.mjs +4 -4
- package/dist/blocks-to-markdown.mjs +3 -3
- package/dist/capability.mjs +2 -2
- package/dist/{chunk-QFIEZZYJ.mjs → chunk-4CLAG2ZO.mjs} +2 -2
- package/dist/chunk-5CYFQIM3.mjs +10 -0
- package/dist/{chunk-QS6PIRUE.mjs → chunk-5DRX6MJ6.mjs} +1 -1
- package/dist/{chunk-H2R4GYNV.mjs → chunk-6HOMACAF.mjs} +1 -1
- package/dist/{chunk-FU7FIYHI.mjs → chunk-7SM52PZ4.mjs} +1 -1
- package/dist/{chunk-KAZNQFXV.mjs → chunk-BIUZ2PNE.mjs} +1 -1
- package/dist/{chunk-YRNPRWYG.mjs → chunk-FQNFKGLA.mjs} +1 -1
- package/dist/{chunk-7FPJWOXB.mjs → chunk-HWXF5HWC.mjs} +1 -1
- package/dist/{chunk-LDCWJXIP.mjs → chunk-KCSNLBCS.mjs} +1 -1
- package/dist/{chunk-O36UBGLF.mjs → chunk-MUV2CJEU.mjs} +3 -3
- package/dist/{chunk-Z7VKSY7P.mjs → chunk-PN4FREGN.mjs} +3 -3
- package/dist/{chunk-ETIDW7ZJ.mjs → chunk-UYADUQ6I.mjs} +1 -1
- package/dist/{chunk-ITUEKIQD.mjs → chunk-WTK4IVK5.mjs} +3 -3
- package/dist/{chunk-BRNXLHBP.mjs → chunk-X4I2LH7P.mjs} +47 -2
- package/dist/{chunk-Q7CWMEBZ.mjs → chunk-XL4OR2M2.mjs} +1 -1
- package/dist/{chunk-HL43SJUP.mjs → chunk-YFIEJK62.mjs} +26 -4
- package/dist/{chunk-DGNAMVGH.mjs → chunk-YSTZP4QT.mjs} +19 -1
- package/dist/{chunk-IFELP3LQ.mjs → chunk-ZPRXUG5Y.mjs} +1 -1
- package/dist/client.mjs +2 -2
- package/dist/comment.d.ts +4 -1
- package/dist/comment.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.mjs +2 -2
- package/dist/hm-types.d.ts +388 -0
- package/dist/hm-types.mjs +3 -1
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.mjs +15 -15
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/prepare-change.mjs +3 -3
- package/dist/resource-read.mjs +4 -4
- package/dist/schema-engine.d.ts +13 -2
- package/dist/schema-engine.mjs +4 -2
- package/dist/schema-registry.generated.mjs +1 -1
- package/dist/schema-resolve.mjs +4 -4
- package/dist/schema-subtypes.d.ts +8 -7
- package/dist/schema-subtypes.mjs +20 -13
- package/dist/schema-types.generated.d.ts +43 -4
- package/dist/signed-blob.mjs +2 -2
- package/dist/tei-to-blocks.mjs +2 -2
- package/dist/unicode.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-37QDFTT6.mjs +0 -10
package/dist/chunk-37QDFTT6.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/schema-registry.generated.ts
|
|
2
|
-
var HM_SCHEMA_MANIFEST = { "hm://hyper.media/account": "bafyreib6bhgdwvqkcek25kdeg7cjzwvbzaaea2fcka3lddif4l3qw2v4ge", "hm://hyper.media/agent": "bafyreicuqsqj3uxdelncdpyk6e7rdj5ep2cgg6zplftwartsuy64zcnpae", "hm://hyper.media/any": "bafyreibntt2wb4lx7wpuhigdnwiuoz3kbwomfxfp2no4ojev3m4rc65zry", "hm://hyper.media/blob": "bafyreifzrq4e75i6pbz6uvoiigcb6xiwp5rl5alcfr22j4n2f7m6dpw6yu", "hm://hyper.media/blob/any": "bafyreibuaxlhzxtzndwjsvsl6cqaxw3wxshadllpfj6jof7wg7bqo6dffa", "hm://hyper.media/block": "bafyreiac6zircbonu35bqlognfpd2jbd5yttziyhmo5hp4ddguetszwzsm", "hm://hyper.media/block/annotation": "bafyreicurrk7d5qis4ia57gyfr3yqyxsv37dfwf5hpbuonzdvus34wzsra", "hm://hyper.media/block/base": "bafyreiajvyredhja2evtr3rcbhid4sgp4fpjpphzakz6vemeef7mwtgh44", "hm://hyper.media/block/button": "bafyreidir53l6v44c4tjvo7fhnz74573yeabgaqsodm63jckeudqafbhx4", "hm://hyper.media/block/button-alignment": "bafyreiajxqtjryhotlw2jjdrn2fozp67ydo4fzfwmixfmt4uzvkcpqzfga", "hm://hyper.media/block/children-type": "bafyreiem223m2yeyokapamrd7f46a5h44eejpudhhpyvysxid4mpns3z7m", "hm://hyper.media/block/code": "bafyreicvd4aqpimo5encjvn6mwsykjzdggp5b4pgdriwzthzufap54dwrm", "hm://hyper.media/block/comment": "bafyreif2wpybxduyamf4qakvcp32jpg7dqjttixpi6egnpsmlhhcmazkvu", "hm://hyper.media/block/core": "bafyreibqut72b6667envzzziuxhpn23j5g6g4j23xh744jx434pw57pg4e", "hm://hyper.media/block/embed": "bafyreifyb5pr4nloorig567ukdxyalwjusek3vavwre7d22kzpz5iflerm", "hm://hyper.media/block/embed-view": "bafyreifehm5q664eohw7lxwgwq46q3dkh7qxhuolhri5jy3jyxi7ksygxq", "hm://hyper.media/block/file": "bafyreiag7tw3inzsnd4jdq7ntunrr3fojxl5p6lhiofzicrt7hzgfkovda", "hm://hyper.media/block/heading": "bafyreidar2fvj55p47jfe55bg6nfodryzfcnmm5mu2sccztl6iie4ks6gy", "hm://hyper.media/block/image": "bafyreidjjk5swoxzuqtos5k5j3julok7qik3vfbg7llc6ulv62caujxmdq", "hm://hyper.media/block/math": "bafyreiemgi4iqotxfvqwy75momlpv7cabt4dagmfltof24t5kyxgupmsba", "hm://hyper.media/block/node": "bafyreicagqzajxoklsjg32i4a2a2fm3yyizwoxmfr5pp5skac3lhz42vvq", "hm://hyper.media/block/nostr": "bafyreig4m6lvawxtjdscafeujckpr4ypl3azcdmocreu72d4ilwehnlaby", "hm://hyper.media/block/paragraph": "bafyreiggl7c5tofh2roqrizmkdfea2t3htvpqam2jfd2mu6rss2oqdpahi", "hm://hyper.media/block/query": "bafyreig554xekphb6zpbdyvhcamfmnnwkwyudd3lxpol26mn4usajcjeji", "hm://hyper.media/block/table": "bafyreihjir4nhvcekqlcodlkvct5yuzkpabifq5z3je3cf2ywilmdcflpi", "hm://hyper.media/block/table-column": "bafyreiad4aszhe7ct3jx2fmsnnqhordat3jyzja4fk2mfpnbqrgn5anohi", "hm://hyper.media/block/table-row": "bafyreieirbfjaxq7gowyryiinsypyvq4ip4jyjseobfisc2xiwfvpeyysi", "hm://hyper.media/block/text-alignment": "bafyreibgde75px4xnfabllybnc53pbc2uwe4iqnpmull2gugm3vtj6lmea", "hm://hyper.media/block/video": "bafyreie6rts3a7cq64m72ehkqayhtptcytjmp43zry4yjxtsievh5qahtm", "hm://hyper.media/block/web-embed": "bafyreigtkr365yd5qytlu343entcpygmhpmesqdziyq2dpdmruqnjt3thi", "hm://hyper.media/boolean": "bafyreihdeoyulrtyt2ufrjfmjvyob2ydhxfml67eqccxnlxua5kuajrlgq", "hm://hyper.media/bytes": "bafyreietbjs2wkaimcnkum4mtofsnpk3a53wwb5qzqykc4owjpqfxwepmu", "hm://hyper.media/capability": "bafyreih5cuhhyi6xbzrzfw7cqd2uwlchx5p2q7oau6jsqhnnqoexur2jqm", "hm://hyper.media/change": "bafyreidoqzmamsqsfqydkhuksszq5xaiblncba2rv45urjb5txqpyzri5u", "hm://hyper.media/change/body": "bafyreifrxa7gqgftkrd7ymcw5zkuqyltj7x3t42xmw4lfeq2vcreg3o7ey", "hm://hyper.media/change/op": "bafyreiedei7g7rfjhm5err4a4jwd45ojes27cvpbo7pnoet23czffozfqy", "hm://hyper.media/change/op/delete-blocks": "bafyreigi7bz5blw7rdawcmbthp7eb7a5xgflngws4w5aqn23jbvkzrfq5e", "hm://hyper.media/change/op/move-blocks": "bafyreiejxq6law4nzvzz4vj2vhni4ury6nxn7kmvi55vp3ndy7ijkyxdd4", "hm://hyper.media/change/op/replace-block": "bafyreic4c46hwebu5zyjsdxu5tnzwlz2k2i57blbacmb6pt6azuhhpkjxq", "hm://hyper.media/change/op/set-attributes": "bafyreihvslhhy2kktamsedr5bdj6gyywb7d6rjyh4wzelv7ydzburwadha", "hm://hyper.media/change/op/set-key": "bafyreig7kk24xajkhlvx4ot2ukt6joqrnlxlycas4bkqjymqufm2qhkcai", "hm://hyper.media/cid": "bafyreifnjzpikg7gdpgya5zr6g2uo7hx55jwbdedzyvcdx4j6uijomxe4m", "hm://hyper.media/comment": "bafyreif2enr3xuesfuva7ds4kj6cyjtodbcekgykgp3epoms3n4o2wmyte", "hm://hyper.media/contact": "bafyreiax3srqwt45uo622whsstumyo2wtnunpuwpgp7exsekwl6vrxijpe", "hm://hyper.media/contact/subscribe": "bafyreibgnrpdjep3ppjz5drbzlix3qvwwfqnjthchqo4lbophupkwersyy", "hm://hyper.media/date": "bafyreigniadanswc4k7jqeamvd6tuoxoq7qn5i6e5bzwvc5kiocq3pcbra", "hm://hyper.media/date-time": "bafyreigky5xfgvwfrgo3wtqhr4sltf53mcbht7gownixwotldufoxeiu6a", "hm://hyper.media/document": "bafyreids2iefkssgfvnk3xqqyiucw3zt74otrk547pcuv45srbnhvxbdzy", "hm://hyper.media/example/address": "bafyreicfcfnvy245mralowxf73zx3jrceuc5zst5wudmhv76pr5auifv6y", "hm://hyper.media/example/admin": "bafyreihdjc4bybxox5mqkwqpjctk56cieribtzetqipeccoc5xgeazvbqe", "hm://hyper.media/example/app-block": "bafyreidksc6k2hcfrhlbvrk7o6fi3ek3zstqw7weabc527herkfrk4opyu", "hm://hyper.media/example/article": "bafyreidrz5sxjw47usguwiy662xymdzhmuzsmag6nrl7l5rqhhmaaxnyfa", "hm://hyper.media/example/blob": "bafyreiemvxxxxvdbfsfs5zed2k7ls4hjqdkk2ygpfvqz6b5mkpz3f5a7hi", "hm://hyper.media/example/character-doc": "bafyreidvyv2t3ualirnzapcvjsv6sjrnusqhbif6lydamsohnpmxqcwmde", "hm://hyper.media/example/comment": "bafyreib7spzjgffx5ua74xdepesvezperrmucfveux53lw4vyirlcomumu", "hm://hyper.media/example/constrained": "bafyreibi7xbwglo2yl4vru2ey6shjutlcjc53tkv6xnjsv6s6b2qj7w3pe", "hm://hyper.media/example/counts": "bafyreiaelhlbcgjivbpktxbz6ajcve47xtvyllxm6wdqenkw756p4tumjm", "hm://hyper.media/example/document": "bafyreidmccxfmpgaevunrid3fnv776jewrhovouwevhhuyzc45b37corwy", "hm://hyper.media/example/employee": "bafyreiewalgiyw2ncdirctyy6spe4gj5gfiyr647ivbuwhidgd25jd3cx4", "hm://hyper.media/example/entry": "bafyreibqia6yyfvzbq6k3tny6rg65262ngmy6nxn6rx4aaqcso75sbkbfe", "hm://hyper.media/example/event-doc": "bafyreic6d5hdyl7wbsvr4bdq6qvl62mabm3brylr4gpkc673rjkjqchyde", "hm://hyper.media/example/faction-doc": "bafyreihd4tnchrjy54dmoqctt6fgsuuvsfes2fmbsh3o2drkzlaiif52sq", "hm://hyper.media/example/file": "bafyreifscl7zt4k6onhmk3tznvcdsmydflnlbvppn3ud5vh62u45wm3ayy", "hm://hyper.media/example/folder": "bafyreif5sxw2fw76hm5h4mofds2ldsa7gyqkireudchauhlcayorhbf6r4", "hm://hyper.media/example/geo": "bafyreifghkuh2drgdmt76ggnvt3tj633icntgrw72xaslsdin6h3ee7j5u", "hm://hyper.media/example/json": "bafyreifr6spzijy6ptd3ybb3yloigrz7q6s7ojwhdhmqhxiwlx4ai6tz24", "hm://hyper.media/example/matrix": "bafyreihs3jnwydjmc2o2kkt6ldiadjrlpsr5ny7auqniktfshlb3up5axu", "hm://hyper.media/example/metadata": "bafyreih2su6tgxsadsf4u3cewqncx3cvcetcqeqdpkmaffxof7utng5o6a", "hm://hyper.media/example/myapp-change": "bafyreibd6kuwfh6nwqwdbuham3hatei444l6gdlf22yczykbp56zplpjpi", "hm://hyper.media/example/person": "bafyreieqybgwmcldcvu2rtqq7ynmf4454fnybvatirfbwlqofnd3dueo6y", "hm://hyper.media/example/person-doc": "bafyreic6jh3ok65iazdhhnolkhgm4ynq4dddpvxrpm4lngdj6rdnegv6ry", "hm://hyper.media/example/place-doc": "bafyreid5lvuq6nydxmoqbpwkelwgewlzonc7z5u27pdesqysn5wvc33oli", "hm://hyper.media/example/poll-block": "bafyreigkrxcdeuxbofcpd2c6pwxws3ymwexbgp4yu4apgpz6s4uaturqke", "hm://hyper.media/example/registry": "bafyreidqtqpzqzbafsczgxz42rr5dlv7epfquooxkwsnzdrfey3ymuisoe", "hm://hyper.media/example/stats": "bafyreibfgojf2wlmkjwzruj3krnwt66eyoaym5cs6wv3ndxrquiqjx6iwe", "hm://hyper.media/example/status": "bafyreiefb3cd36vwzg77pvi2nlevenwsbp7skfpn4p64rtcsg5tdlyzhdq", "hm://hyper.media/example/tags": "bafyreigpnonqgqtvcbxibj3mxw53b233xwhuh6tilagm4i43btncf4gmdm", "hm://hyper.media/example/task-doc": "bafyreigt34gk5a2cxeobia725vsdbduxct5qnyruz6ka332fjdjlulthhu", "hm://hyper.media/example/task-status": "bafyreidtpm5wplr4bkotfqq4wpdaacrtogovjan7wesovy7etcbunchwei", "hm://hyper.media/example/tree": "bafyreif6imhsf2sz3ebjrmlhfznif2hm4g2xloconfx5febwwdtmuoidze", "hm://hyper.media/example/value": "bafyreifvyrlb344ezqsd5dtreis6hxk46fene27cz5tfgx524dkci3kfxu", "hm://hyper.media/example/world-doc": "bafyreigrrtpw2st66keqri62dpozcuquzqytt4kivoydioagvj66ushpme", "hm://hyper.media/float": "bafyreiaknhkystrujh3xnyt5ljvaktfjbu7uky7ks7tdrla6d6a6oruvwm", "hm://hyper.media/hm-url": "bafyreigutyuyvnv4jpick7wuuhvdqv7ytnebjzin33z2pbjfe4pnpiagxq", "hm://hyper.media/integer": "bafyreiff7mw3podpxg5ql6laufdxizuhwyrd4ykxi42i5d744gwwksu2tu", "hm://hyper.media/ipfs-url": "bafyreigpodx7n6ak65jxpvbzs3ke53hevrh2vdbjkfewwsiffdgn5tvha4", "hm://hyper.media/key-value": "bafyreibqylrog5hpl6gbdtj7woo3fq6bjcq7dxnktgqxiwclgnrytwvl6y", "hm://hyper.media/link": "bafyreihdxeqzlqjxpfjt4cttx26qm3z57dfndkg732pq3l4g2cue7d2jc4", "hm://hyper.media/list": "bafyreicn7qvetnsrllb53qtpghalo6eblm3i4n73zbpx232y2jvcxbgnjm", "hm://hyper.media/map": "bafyreihnakwt7borgtmeviw6k72pcx6mqcctszqz6xwqeb274luknwly7u", "hm://hyper.media/metadata": "bafyreif6xfrafdwrrr3oox4nksxd5ioqddgdejc7ofkwfgdx6nbbbocvnm", "hm://hyper.media/metadata/navigation-item": "bafyreidfwgzjlzpv6s2xuyotjtgxfmpslejkuttfotx423ogi57hngvpwq", "hm://hyper.media/none": "bafyreidxl2goetpgskx3eljfgbo7zqkyiiau5tqantywequbmb3etddfde", "hm://hyper.media/null": "bafyreif3xkmeauwrtwq3y5bz2ud2jqpoqhkxjfre4hjrrdmywtlng2x37u", "hm://hyper.media/page": "bafyreigawduaoyllnyxkhwauxg2md7n62sdujlh6k3o2wpb2ozzz4zyute", "hm://hyper.media/page-input": "bafyreiapcik5ddbkga3e5iwgpvctbkkzaajdnvkbyeb4kjoeo5kfbqmnhm", "hm://hyper.media/principal": "bafyreidmy45xep7xa35k2qlcntwwihtk6ezxn54ned5xe4fqoxgrpnumsm", "hm://hyper.media/profile": "bafyreignmqnbezyi6wrmv7d4rjsmuw2vuh2gxyre2q7pd4sfebuhejcsnq", "hm://hyper.media/query": "bafyreiftxzu6smyn2pe4wxenczcosvzjow5s3iujck3hxbujnf5zo7ezjm", "hm://hyper.media/query/inclusion": "bafyreieoj3xwhaeejp7oh4nim7qjxnhfig7tcmvcgfn4k2t4bnahj6fsoa", "hm://hyper.media/query/sort": "bafyreick4ej47nfn7vj27rrwnnklti6pb4fmean5m7fsvpd5fdso7jdkuu", "hm://hyper.media/query/style": "bafyreiaut4cievkceofsav2ibhjxtaxfji3yhtcmheovtoszefz5alw7ey", "hm://hyper.media/query/table-config": "bafyreiepy7ojaoeophdije6gb6dfwvqkgmd7kck65puws73rgqx7nvap6a", "hm://hyper.media/ref": "bafyreic5ojts2ko6egvcualc422tze5uasvshln3yvhnpl55fgzdkr5krq", "hm://hyper.media/ref/redirect-target": "bafyreiaq6oqpxggnrifkwdp74dthunscx5rvmqoepxcqbdru3btxdz3oxm", "hm://hyper.media/role": "bafyreidzzt5wdyro75ofdjcruttu6wyda6egbe53pegxgvr4a4vz4me6xe", "hm://hyper.media/schema": "bafyreifryumvjfne4y45nvqa76qkpxo4g3jdroy5vrrfwjtcrhciz76lzy", "hm://hyper.media/schema/anyof": "bafyreieoexmyzauf4qo5whasy75funqq2l2s6kuatli55q4g4v3t2if3tq", "hm://hyper.media/schema/include-schema": "bafyreifhf64chq5cs7sbei26biv32d7v4olyxje2jde4b7c4z2b4dvov74", "hm://hyper.media/schema/link-schema": "bafyreib2vn5562qbvuearivc2imlazkefqniu3ulh54tos2bq4kupo5ysy", "hm://hyper.media/schema/list-schema": "bafyreidpwszlysns5o62lvt2saw6a7baixpuxt5ceznerntpvu3pcu4gsq", "hm://hyper.media/schema/literal-schema": "bafyreieoic34hqhudnln3g34ea52jrlfjcxcim42o4uho3f56oqyozhbea", "hm://hyper.media/schema/map-schema": "bafyreieubyopzqmbjpcmjbvcgnxunvawecgnigub64hsaj2krq3cpgfxq4", "hm://hyper.media/schema/property": "bafyreifqoswzh7sfartvsoahk3bnxi66eyyln4zopoysgw32ioypuaze4i", "hm://hyper.media/schema/scalar-schema": "bafyreibcnvjk3gdszwhykdczwmgt3xbqsy57pypi44ylzova6tc7bztmwq", "hm://hyper.media/schema/struct-schema": "bafyreifswxmu5gar4ttbvaq2e6twlb3zq7vlhovp7gkfilwydj6zloe7ai", "hm://hyper.media/schema/var-schema": "bafyreicrknmmv5dq5kavfbtnvd2ivjfef6vvnijncu2k34wb4z32txlz7m", "hm://hyper.media/signature": "bafyreic6phcybaltjnskgl4v4vmglv5q3wjhyr5wclfbm7nsxnsl5r62s4", "hm://hyper.media/string": "bafyreief5z32phwnenex5umhuo6s4xaoaicr7rugce3jtjxemnidtqqn6q", "hm://hyper.media/struct": "bafyreidhdx2yo5wv32phnl6gvf6lviojnp5dxvqizv2yhrbs2d6oyuzxgq", "hm://hyper.media/timestamp": "bafyreic35cdabjmssqrltwfgemxtyvxpslipo7otpmddvc3zdw4xoeurnu", "hm://hyper.media/url": "bafyreifcsuuirlumgepgjru3gabma7otdwyupm55nxhhq5cj2ch6xj4oza", "hm://hyper.media/value": "bafyreicyiauxsiu6nz3qi6i4bgexmiqflsb7eksghbvydhcv3fydrmymxi", "hm://hyper.media/visibility": "bafyreic2fdio2i3pap3h3yrnavfq2xqtx2ldifz3y4g6k4juaphwgkjrni" };
|
|
3
|
-
var HM_SCHEMA_PAGES = { "account": { "name": "Account", "summary": "A reference to an account, held as the bare `hm://<principal>` URL, with `format: hm-profile` so editors offer an account search and accept a pasted principal." }, "agent": { "name": "Seed Agents", "summary": "An agent is a language model with memory, tools and its own Seed identity, which runs on an app environment and reads and writes Hypermedia like any other participant." }, "any": { "name": "Any", "summary": "The top type that matches any Hypermedia value: null, boolean, number, string, bytes, link, or a list or map of any." }, "blob": { "name": "Blob", "summary": "The signed envelope every Hypermedia blob extends, with a type tag, the signer's public key, an Ed25519 signature over the canonical CBOR with the signature zeroed, and a millisecond timestamp." }, "blob/any": { "name": "Any Blob", "summary": "Any Hypermedia CBOR blob: the discriminated union of the six blob types, tagged on the type field." }, "block": { "name": "Block", "summary": "The open wire block: id and type plus text, link, annotations and any attributes, so a document with a block type you do not know still parses." }, "block/annotation": { "name": "Annotation", "summary": "An inline layer over a block's text: a type, one or more code-point ranges, an optional link and inline attributes, used for formatting, links and mentions." }, "block/base": { "name": "Block (Base)", "summary": "The three fields every concrete block type shares: the required id and type, and the daemon-filled revision." }, "block/button-alignment": { "name": "Button Alignment", "summary": "The horizontal alignment of a Button block: flex-start, center or flex-end." }, "block/button": { "name": "Button Block", "summary": "A call-to-action button: a label, a required link and a horizontal alignment." }, "block/children-type": { "name": "Children Type", "summary": "How a block lays out its children: Group (the default), Ordered, Unordered, Blockquote or Grid." }, "block/code": { "name": "Code Block", "summary": "A block of verbatim text, optionally tagged with a programming language for highlighting." }, "block/comment": { "name": "Comment Block", "summary": "A block inside a comment body: the open block plus a recursive list of child comment blocks." }, "block/core": { "name": "Core Block", "summary": "The strict union of the fifteen built-in block types; extend it with your own types by making a larger union that includes it." }, "block/embed-view": { "name": "Embed View", "summary": "How an Embed block renders its target: the content itself, a card, its discussion, or a plain link." }, "block/embed": { "name": "Embed Block", "summary": "An embed of another Hypermedia document, block or text range by hm:// link, rendered as content, a card, its comments or a link." }, "block/file": { "name": "File Block", "summary": "An attachment of any kind, referenced by an ipfs:// link, with its file name and size." }, "block/heading": { "name": "Heading Block", "summary": "A section heading whose children are the section; the heading level comes from nesting, not from an attribute." }, "block/image": { "name": "Image Block", "summary": "An image referenced by an ipfs:// link, with a caption in the text field and an optional display width." }, "block/math": { "name": "Math Block", "summary": "A block of LaTeX math, stored as text and rendered with KaTeX." }, "block/node": { "name": "Block Node", "summary": "One node of a content tree: a block plus its ordered child nodes, recursively, which is how documents and comments nest content." }, "block/nostr": { "name": "Nostr Block", "summary": "An embed of a Nostr event by nostr: URL." }, "block/paragraph": { "name": "Paragraph Block", "summary": "The default block: a paragraph of text with inline annotations; inside a table row it is a cell and carries the column id." }, "block/query": { "name": "Query Block", "summary": "A block that embeds a live query: the matching documents render in place as cards, a list or a table." }, "block/table-column": { "name": "Table Column Block", "summary": "One column of a Table block: a childless marker whose id cells reference and whose sibling order is the display order." }, "block/table-row": { "name": "Table Row Block", "summary": "One row of a Table block: its children are Paragraph cells, each naming its column with a columnId attribute." }, "block/table": { "name": "Table Block", "summary": "The container of a table: its children are TableColumn markers followed by TableRow blocks whose Paragraph cells carry a columnId." }, "block/text-alignment": { "name": "Text Alignment", "summary": "The horizontal alignment of a block's text: left, center, right or justify." }, "block/video": { "name": "Video Block", "summary": "A video referenced by an ipfs:// file or a supported web video URL, with playback attributes." }, "block/web-embed": { "name": "Web Embed Block", "summary": "An embed of an external web page or post by https:// URL." }, "boolean": { "name": "Boolean", "summary": "A true or false value." }, "bytes": { "name": "Bytes", "summary": "Raw binary data (a byte string)." }, "capability": { "name": "Capability", "summary": "A signed grant from a space owner to another key: a role (WRITER or AGENT), an optional path scope, and nothing that expires or revokes it." }, "change": { "name": "Change", "summary": "A signed delta on a document that links the changes it depends on into a causal graph and carries the operations that mutate the document's content and metadata." }, "change/body": { "name": "Change Body", "summary": "The operations payload of a Change, an ordered list of ops plus an advisory count of the logical operations they represent." }, "change/op": { "name": "Operation", "summary": "One step inside a Change body, a map tagged by type that sets metadata, replaces a block, moves blocks, or deletes blocks, and the page explains how each op mutates the document." }, "change/op/delete-blocks": { "name": "DeleteBlocks Op", "summary": "The operation that removes blocks from the visible tree by moving them to the trash parent, from which a later move can restore them." }, "change/op/move-blocks": { "name": "MoveBlocks Op", "summary": "The operation that places a contiguous run of blocks under a parent after a reference position, using RGA op ids so concurrent moves converge and the latest move of a block wins." }, "change/op/replace-block": { "name": "ReplaceBlock Op", "summary": "The operation that sets the full state of one block, its id, type, text, link, annotations and attributes, where the newest replacement by op id wins." }, "change/op/set-attributes": { "name": "SetAttributes Op", "summary": "The operation that sets document metadata by key path, where each path is a last-writer-wins register and a nested write prunes older values above and below it." }, "change/op/set-key": { "name": "SetKey Op", "summary": "The deprecated flat form of SetAttributes that sets a single top-level metadata key, still accepted so old Changes replay." }, "cid": { "name": "CID", "summary": "A content identifier, the self-describing hash that names a blob by its bytes, written in Hypermedia as CIDv1 with the dag-cbor codec and either a SHA-256 or a BLAKE2b-256 multihash." }, "comment": { "name": "Comment", "summary": "A signed comment on a document version, threaded through threadRoot and replyParent, with a body that is a tree of comment blocks." }, "contact": { "name": "Contact", "summary": "A public address-book entry: one account's name for another account, with flags that say whether it joined that account's site or follows its profile." }, "contact/subscribe": { "name": "Contact Subscription", "summary": "The two follow flags on a contact: site means the account joined the subject's site, profile means it follows the subject as a person." }, "date-time": { "name": "Date-Time", "summary": "An instant held as an RFC 3339 string such as `2026-08-26T14:30:00Z`, with `format: date-time` so editors show a date-and-time picker." }, "date": { "name": "Date", "summary": "A calendar date held as an ISO 8601 `YYYY-MM-DD` string, with `format: date` so editors show a date picker and validators can check the shape." }, "document": { "name": "Document", "summary": "The read model of a Hypermedia document, the metadata and block tree that result from replaying its Changes, and the base every typed document's attributes are folded into." }, "example/address": { "name": "Example: Address", "summary": "A postal address: street and city (required) plus an optional postal code." }, "example/admin": { "name": "Example: Admin", "summary": "An employee, extended with a map of boolean permission flags." }, "example/app-block": { "name": "Example: App Block (Extended Core)", "summary": "How a third party extends the block model: a strict union of Hypermedia\u2019s core blocks plus the app\u2019s own Poll block, rejecting block types it does not know." }, "example/article": { "name": "Example: Article", "summary": "A published article: status, author, tags, a bytes body, cover image, comments, and metadata." }, "example/blob": { "name": "Example: Blob", "summary": "A binary payload tagged with a MIME type and optional size." }, "example/character-doc": { "name": "Character", "summary": "A world-builder page type for a character, whose attributes require a birth date and a role and link to a home place, a faction, a portrait, and a stats object." }, "example/comment": { "name": "Example: Comment", "summary": "A comment with an author and replies, which are themselves comments." }, "example/constrained": { "name": "Example: Constrained Record", "summary": "A record that shows the value constraints: string length and pattern, numeric bounds, and list size." }, "example/counts": { "name": "Example: Counts", "summary": "A map from string keys to integers: Map<Integer>." }, "example/document": { "name": "Example: Document", "summary": "A document with a title, an author, a body, and a link to a previous document." }, "example/employee": { "name": "Example: Employee", "summary": "A person, extended with an employee id and department." }, "example/entry": { "name": "Example: Filesystem Entry", "summary": "Either a folder or a file, as a union." }, "example/event-doc": { "name": "Event", "summary": "A world-builder page type for something that happened, whose attributes require a date and link the event to a place and a protagonist character." }, "example/faction-doc": { "name": "Faction", "summary": "A world-builder page type for a faction, order, house, or guild, whose attributes require a founding date and link to its seat, its leader, and a banner." }, "example/file": { "name": "Example: File", "summary": "A file with a name and a link to its parent folder." }, "example/folder": { "name": "Example: Folder", "summary": "A folder with a name and links to its files and subfolders." }, "example/geo": { "name": "Example: Geo Point", "summary": "A latitude and longitude coordinate with an optional altitude." }, "example/json": { "name": "Example: JSON Value", "summary": "A recursive JSON value: null, boolean, number, string, list, or map." }, "example/matrix": { "name": "Example: Matrix", "summary": "A list of lists of integers: List<List<Integer>>." }, "example/metadata": { "name": "Example: Metadata", "summary": "Arbitrary string-to-string metadata: Map<String>." }, "example/myapp-change": { "name": "Example: MyApp Change", "summary": "A Change instantiated with the app\u2019s block type, so its ReplaceBlock ops are validated strictly against core blocks plus Poll instead of the open default." }, "example/person-doc": { "name": "Example: Person Document", "summary": "A document type for a person: an attributes schema requiring a surname with an optional given name, bound per page or to every child of a folder." }, "example/person": { "name": "Example: Person", "summary": "A person with a name, age, active flag, home address, and nicknames." }, "example/place-doc": { "name": "Place", "summary": "A world-builder page type for a place, whose attributes require a kind and may add a founding date, a parent region, and a coordinates object." }, "example/poll-block": { "name": "Example: Poll Block (Custom)", "summary": "An example third-party block type: a poll with a question and options. It extends the shared block base, exactly like a core block." }, "example/registry": { "name": "Example: Registry", "summary": "A map from ids to person links: Map<Link<Person>>." }, "example/stats": { "name": "Character Stats", "summary": "A character\u2019s stats object, stored as its own DAG-CBOR blob linked by `ipfs://` so it can hold the integers and enums document metadata cannot." }, "example/status": { "name": "Example: Status", "summary": "A publication status: draft, published, or archived." }, "example/tags": { "name": "Example: Tags", "summary": "A list of string tags: List<String>." }, "example/task-doc": { "name": "Example: Task Document", "summary": "A document type for a task that shows property defaults: a new task starts as todo with priority 2, no tags and an unfinished checklist." }, "example/task-status": { "name": "Example: Task Status", "summary": "The state of a task: todo, doing, or done." }, "example/tree": { "name": "Example: Tree", "summary": "A node holding an integer value and links to child nodes." }, "example/value": { "name": "Example: Value", "summary": "A primitive value: string, integer, boolean, or null." }, "example/world-doc": { "name": "World", "summary": "A world-builder page type for the root of a fictional world, whose children hold the type definitions and the folders of characters, places, factions, and events." }, "float": { "name": "Float", "summary": "A floating-point number." }, "hm-url": { "name": "Hypermedia URL", "summary": "A reference to a Hypermedia document held as an `hm://` URL string, which editors render as a searchable pill showing the target\u2019s title." }, "integer": { "name": "Integer", "summary": "A whole number, which DAG-CBOR encodes distinctly from floats." }, "ipfs-url": { "name": "IPFS URL", "summary": "A reference to a content-addressed object held as an `ipfs://<cid>` string, which editors render as a file pill you can open, upload to, or paste into." }, "key-value": { "name": "Key/Value", "summary": "One attribute assignment in a SetAttributes op: a key path (a list of segments) and a scalar value." }, "link": { "name": "Link", "summary": "The IPLD link kind, a CID inside a value that points at another block by its content, encoded as CBOR tag 42 and spelled with a slash key in DAG-JSON." }, "list": { "name": "List", "summary": "An ordered sequence, which is List<Any> until it is parameterized with items." }, "map": { "name": "Map", "summary": "A map of string keys to values of one type (Map<Any> until `values` constrains it); use a struct when the field names are known." }, "metadata": { "name": "Document Metadata", "summary": "The attributes of a document, merged from its Changes: the keys Seed understands, the three schema-binding keys, and any custom keys a typed document adds." }, "metadata/navigation-item": { "name": "Navigation item", "summary": "One entry of a site's navigation menu: a Link block with display text and a link, stored as a child of the detached navigation block." }, "none": { "name": "None", "summary": "The bottom type, which accepts no values and is defined as an empty union." }, "null": { "name": "Null", "summary": "The null value." }, "page-input": { "name": "Page Input", "summary": "A page takes typed input from its URL, declared by the struct schema its inputSchema names, and this closed, empty struct is the default for a page that takes none." }, "page": { "name": "Page", "summary": "A page is a document typed hm://hyper.media/page that carries an HTML bundle and an input schema, runs sandboxed in the viewer's client, and acts as the viewer under approvals the viewer gives step by step." }, "principal": { "name": "Principal", "summary": "A public key that identifies an account or space, stored in blobs as the raw bytes of a multicodec prefix plus the key and shown to people as a base58 string starting with z6Mk." }, "profile": { "name": "Profile", "summary": "A snapshot blob giving an account its display name, avatar and description, or an alias that redirects one key to another; readers merge every profile for an account field by field." }, "query": { "name": "Query", "summary": "A live document query: which spaces and paths to include, how to sort, and an optional limit; the payload of a Query block and of the Query request." }, "query/inclusion": { "name": "Query Inclusion", "summary": "One source a query pulls documents from: a space, an optional path prefix inside it, and whether to list direct children or all descendants." }, "query/sort": { "name": "Query Sort", "summary": "One sort term for query results, optionally reversed; the app writes lowercase terms and normalizes the older capitalized spellings on read." }, "query/style": { "name": "Query Style", "summary": "How a Query block presents its results: a card grid, a compact list, or a table." }, "query/table-config": { "name": "Query Table Config", "summary": "The persisted settings of a Query block's table view: which columns are visible and how wide they are." }, "ref": { "name": "Ref", "summary": "A signed claim, like a Git ref, that a path in a space points at the current head Changes of a document, or that the path is deleted or redirects elsewhere." }, "ref/redirect-target": { "name": "Redirect Target", "summary": "The destination carried by a redirect Ref, a space and path to send readers to, with a republish flag that keeps the content showing under the old address." }, "role": { "name": "Role", "summary": "The kind of capability being granted: WRITER may publish under a path, AGENT may act as the issuing account; no other role exists in data." }, "schema": { "name": "Schema", "summary": "The meta-schema, which is the union of every shape a schema can take and a valid instance of itself, and the starting point for every page about Hypermedia Schemas." }, "schema/anyof": { "name": "Union schema", "summary": "The variant for a union, which accepts a value that matches any one of the schemas listed under anyOf." }, "schema/include-schema": { "name": "Include schema", "summary": "The variant for a reference, which is a bare include or, when it carries refinements, an extension." }, "schema/link-schema": { "name": "Link schema", "summary": "The variant for a link (a CID), which can name the type it expects to point at." }, "schema/list-schema": { "name": "List schema", "summary": "The variant for a list value, where items types the elements." }, "schema/literal-schema": { "name": "Literal Schema", "summary": "The variant for a literal, which is a schema that accepts exactly one value and can describe what that value means." }, "schema/map-schema": { "name": "Map schema", "summary": "The variant for a map whose keys are arbitrary and whose values all match the one schema under values, while known fields belong in a struct schema." }, "schema/property": { "name": "Property", "summary": "One field of a struct, holding its value schema, whether a value must include it, a description of what it is for, and the default a new value starts with." }, "schema/scalar-schema": { "name": "Scalar schema", "summary": "The variant for a null, boolean, integer, float, string or bytes value, optionally narrowed by value constraints." }, "schema/struct-schema": { "name": "Struct schema", "summary": "The variant for a struct, with known fields under properties and optionally extra keys of one type under values." }, "schema/var-schema": { "name": "Variable Schema", "summary": `A type-variable reference, written { "var": "<name>" }, that matches whatever a generic's parameter is bound to.` }, "signature": { "name": "Signature", "summary": "The 64 raw bytes of an Ed25519 or P-256 signature over a blob's canonical CBOR encoding taken with this very field set to zeros." }, "string": { "name": "String", "summary": "UTF-8 text." }, "struct": { "name": "Struct", "summary": "A map with known, named fields, the type behind every record-like value from an address to a signed Change." }, "timestamp": { "name": "Timestamp", "summary": "A point in time as an integer of Unix milliseconds, issued by a causal clock when a blob is signed and never checked against wall-clock time on arrival." }, "url": { "name": "URL", "summary": "A string holding a URL of any scheme, which `format: url` tells an editor to render as a link and to validate as one." }, "value": { "name": "Value", "summary": "A metadata or attribute value: a string, an integer, a boolean, or null." }, "visibility": { "name": "Visibility", "summary": 'The visibility of a Ref or Comment, empty for public and "Private" for private, from which every Change and file it links inherits its own visibility.' } };
|
|
4
|
-
var HM_SCHEMAS = { "account": { "type": "hm://hyper.media/string", "format": "hm-profile", "pattern": "^hm://z[1-9A-HJ-NP-Za-km-z]{40,}$", "description": "A reference to an account (a space) as its bare `hm://<principal>` URL \u2014 rendered as a searchable account pill; a pasted principal is normalised to the URL." }, "agent": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "value": "hm://hyper.media/agent" }, "required": true }, "agentServerUrl": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "HTTP(S) app environment registering this resource's exact versionless HMID as the agent ID." } }, "values": { "type": "hm://hyper.media/value" }, "description": "Resource attributes for an agent mounted at a Hypermedia document. The server must also register the agent at this exact document ID." }, "any": { "anyOf": [{ "type": "hm://hyper.media/null" }, { "type": "hm://hyper.media/boolean" }, { "type": "hm://hyper.media/integer" }, { "type": "hm://hyper.media/float" }, { "type": "hm://hyper.media/string" }, { "type": "hm://hyper.media/bytes" }, { "type": "hm://hyper.media/link" }, { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/any" } }, { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/any" } }], "description": "The top type that matches every Hypermedia value: null, boolean, number, string, bytes, link, or a list or map of any." }, "blob": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Blob type tag the network dispatches on to pick a decoder and rules, such as `Change` or `Ref`." }, "signer": { "value": { "type": "hm://hyper.media/principal" }, "required": true, "description": "Public key of the account or device that signed the blob." }, "sig": { "value": { "type": "hm://hyper.media/signature" }, "required": true, "description": "Signature over the canonical DAG-CBOR of the blob with `sig` set to 64 zero bytes." }, "ts": { "value": { "type": "hm://hyper.media/timestamp" }, "required": true, "description": "When the signer says the blob was made, in Unix milliseconds; not checked against real time." } }, "description": "The signed envelope every Hypermedia blob extends: a type tag, the signer's key, a signature and a millisecond timestamp." }, "blob/any": { "anyOf": [{ "type": "hm://hyper.media/change" }, { "type": "hm://hyper.media/ref" }, { "type": "hm://hyper.media/profile" }, { "type": "hm://hyper.media/comment" }, { "type": "hm://hyper.media/capability" }, { "type": "hm://hyper.media/contact" }], "description": "Any Hypermedia CBOR blob \u2014 the union of the six blob types, selected by the `type` tag." }, "block": { "type": "hm://hyper.media/struct", "properties": { "id": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The block's permanent identity inside its document; clients generate an 8-character random id." }, "revision": { "value": { "type": "hm://hyper.media/string" }, "description": "Output only: CID of the last Change that replaced this block, filled in by the daemon when serving." }, "type": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The block type, such as `Paragraph` or `Image`; any string is accepted." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "The block's plain text, for types that have text; formatting lives in `annotations`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "description": "The block's one link: an `hm://`, `ipfs://`, `https://` or `nostr:` URL depending on the type." }, "annotations": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/annotation" } }, "description": "Inline formatting, links and mentions over code-point ranges of `text`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": {}, "values": { "type": "hm://hyper.media/any" } }, "description": "Type-specific attributes, nested here by the Seed API and SDK; on the wire they sit at the block's top level." } }, "values": { "type": "hm://hyper.media/any" }, "description": "The open wire block: `id` and `type` plus text, link, annotations and any attributes, so unknown block types still parse." }, "block/annotation": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "type": "hm://hyper.media/string" }, "description": "Annotation kind, such as `Bold`, `Italic`, `Link`, `Embed` or `TextColor`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "description": "Target URL for `Link` and `Embed` annotations \u2014 an `hm://` or web URL." }, "starts": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/integer" } }, "description": "Start offset of each covered range, in Unicode code points; parallel to `ends`." }, "ends": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/integer" } }, "description": "End offset (exclusive) of each covered range, in Unicode code points; parallel to `starts`." } }, "values": { "type": "hm://hyper.media/value" }, "description": "An inline layer over a block's text, used for formatting, links and mentions." }, "block/base": { "type": "hm://hyper.media/struct", "properties": { "id": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The block's permanent identity inside its document." }, "revision": { "value": { "type": "hm://hyper.media/string" }, "description": "Output only: CID of the last Change that modified this block." }, "type": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Name of the block type, such as `Paragraph` or `Image`." } }, "description": "The fields every concrete block type shares: `id`, `type` and the daemon-filled `revision`." }, "block/button-alignment": { "anyOf": ["flex-start", "center", "flex-end"], "description": "Horizontal position of a Button block in its column: `flex-start`, `center` or `flex-end`." }, "block/button": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Button", "description": "Block type tag, always `Button`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "Label shown on the button." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "Where the button goes \u2014 an `hm://` or web URL." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Alternative label for the button." }, "alignment": { "value": { "type": "hm://hyper.media/block/button-alignment" }, "description": "Horizontal position of the button in its column." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Button settings and parent-layout attributes." } }, "description": "A call-to-action button block with a label, a required link and an alignment." }, "block/children-type": { "anyOf": ["Group", "Ordered", "Unordered", "Blockquote", "Grid"], "description": "How a block lays out its children: `Group` (default), `Ordered`, `Unordered`, `Blockquote` or `Grid`." }, "block/code": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Code", "description": "Block type tag, always `Code`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "The code, kept exactly as written." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "language": { "value": { "type": "hm://hyper.media/string" }, "description": "Programming language used for syntax highlighting." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Code settings and parent-layout attributes." } }, "description": "A block of verbatim text, optionally tagged with a language for syntax highlighting." }, "block/comment": { "type": "hm://hyper.media/block", "properties": { "children": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/comment" } }, "description": "Nested comment blocks under this one, in order." } }, "description": "One block of a comment body \u2014 an open block with its child comment blocks carried inline." }, "block/core": { "anyOf": [{ "type": "hm://hyper.media/block/paragraph" }, { "type": "hm://hyper.media/block/heading" }, { "type": "hm://hyper.media/block/code" }, { "type": "hm://hyper.media/block/math" }, { "type": "hm://hyper.media/block/image" }, { "type": "hm://hyper.media/block/video" }, { "type": "hm://hyper.media/block/file" }, { "type": "hm://hyper.media/block/button" }, { "type": "hm://hyper.media/block/embed" }, { "type": "hm://hyper.media/block/web-embed" }, { "type": "hm://hyper.media/block/nostr" }, { "type": "hm://hyper.media/block/table" }, { "type": "hm://hyper.media/block/table-row" }, { "type": "hm://hyper.media/block/table-column" }, { "type": "hm://hyper.media/block/query" }], "description": "The union of the fifteen built-in block types; extend it with a larger union for custom blocks." }, "block/embed-view": { "anyOf": ["Content", "Card", "Comments", "Link"], "description": "How an Embed block renders its target: `Content`, `Card`, `Comments` or `Link`." }, "block/embed": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Embed", "description": "Block type tag, always `Embed`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The embedded resource \u2014 an `hm://` URL, optionally pinned to a version, block or text range." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "view": { "value": { "type": "hm://hyper.media/block/embed-view" }, "description": "How the target renders: its content, a card, its comments or a plain link." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Embed settings and parent-layout attributes." } }, "description": "An embed of another Hypermedia document, block or text range, shown in place by `hm://` link." }, "block/file": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "File", "description": "Block type tag, always `File`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The attached file \u2014 an `ipfs://<cid>` URL." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "size": { "value": { "type": "hm://hyper.media/float" }, "description": "File size in bytes." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "File name shown to readers." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "File details and parent-layout attributes." } }, "description": "An attachment of any kind, referenced by an `ipfs://` link, with its file name and size." }, "block/heading": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Heading", "description": "Block type tag, always `Heading`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "The heading text, without markup." }, "annotations": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/annotation" } }, "description": "Inline formatting, links and mentions over `text`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Parent-layout attributes for the section under the heading." } }, "description": "A section heading whose children are the section; its level comes from nesting depth." }, "block/image": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Image", "description": "Block type tag, always `Image`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "Caption shown with the image." }, "annotations": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/annotation" } }, "description": "Inline formatting, links and mentions over the caption." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The image file, normally an `ipfs://<cid>` URL." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "width": { "value": { "type": "hm://hyper.media/float" }, "description": "Display width in pixels." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Original file name of the image." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Image settings and parent-layout attributes." } }, "description": "An image referenced by an `ipfs://` link, with an optional caption and display width." }, "block/math": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Math", "description": "Block type tag, always `Math`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "The LaTeX source." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Parent-layout attributes." } }, "description": "A block of LaTeX math, stored as text and rendered with KaTeX." }, "block/node": { "type": "hm://hyper.media/struct", "properties": { "block": { "value": { "type": "hm://hyper.media/block" }, "required": true, "description": "The block at this node." }, "children": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/node" } }, "description": "Child nodes in display order; omitted on a leaf." } }, "description": "One node of a document content tree: a block plus its ordered child nodes, recursively." }, "block/nostr": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Nostr", "description": "Block type tag, always `Nostr`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The embedded event \u2014 a `nostr:` URL." } }, "description": "An embed of a Nostr event by `nostr:` URL." }, "block/paragraph": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Paragraph", "description": "Block type tag, always `Paragraph`." }, "text": { "value": { "type": "hm://hyper.media/string" }, "description": "The paragraph text, without markup." }, "annotations": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/annotation" } }, "description": "Inline formatting, links and mentions over `text`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "columnId": { "value": { "type": "hm://hyper.media/string" }, "description": "Id of the TableColumn block this cell belongs to; set only on cells inside a TableRow." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Parent-layout attributes and the table column id." } }, "description": "The default block: a paragraph of rich text, which also serves as a table cell." }, "block/query": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Query", "description": "Block type tag, always `Query`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of card columns in the `Card` style (default 3)." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "style": { "value": { "type": "hm://hyper.media/query/style" }, "description": "How results are shown: `Card`, `List` or `Table`." }, "query": { "value": { "type": "hm://hyper.media/query" }, "required": true, "description": "The query to run: spaces and paths to include, sort and limit." }, "banner": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Show the first result as a banner." }, "table": { "value": { "type": "hm://hyper.media/query/table-config" }, "description": "Column settings for the `Table` style." } } }, "required": true, "description": "The stored query and how its results are shown." } }, "description": "A block that runs a live query and renders the matching documents as cards, a list or a table." }, "block/table-column": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "TableColumn", "description": "Block type tag, always `TableColumn`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "width": { "value": { "type": "hm://hyper.media/float", "minimum": 0 }, "description": "Column width in pixels." }, "isHeader": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Marks a header column; honored only on the first column." } } }, "description": "Column settings and parent-layout attributes." } }, "description": "One column of a Table block: a childless marker that cells reference by id." }, "block/table-row": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "TableRow", "description": "Block type tag, always `TableRow`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "isHeader": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Marks the header row; honored only on the first row." } } }, "description": "Row settings and parent-layout attributes." } }, "description": "One row of a Table block, whose children are Paragraph cells naming their column." }, "block/table": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Table", "description": "Block type tag, always `Table`." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." } } }, "description": "Parent-layout attributes." } }, "description": "The container of a table: TableColumn markers followed by TableRow blocks." }, "block/text-alignment": { "anyOf": ["left", "center", "right", "justify"], "description": "Horizontal alignment of a block's text: `left` (the default, also when the key is absent), `center`, `right` or `justify`." }, "block/video": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Video", "description": "Block type tag, always `Video`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The video \u2014 an `ipfs://<cid>` file or a web video URL such as a YouTube link." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How this block lays out its children \u2014 a children type such as `Unordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns the children occupy when `childrenType` is `Grid`." }, "textAlignment": { "value": { "type": "hm://hyper.media/block/text-alignment" }, "description": "Horizontal alignment of the block's text \u2014 a text alignment such as `center`; omitted for the default `left`." }, "width": { "value": { "type": "hm://hyper.media/float" }, "description": "Display width in pixels." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Original file name of the video." }, "autoplay": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Start playing automatically." }, "loop": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Restart playback when the video ends." }, "muted": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Play without sound." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Playback settings and parent-layout attributes." } }, "description": "A video from an `ipfs://` file or a supported web video URL, with playback settings." }, "block/web-embed": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "WebEmbed", "description": "Block type tag, always `WebEmbed`." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "The embedded page or post \u2014 an `http(s)://` URL." } }, "description": "An embed of an external web page or post by `https://` URL." }, "boolean": { "type": "hm://hyper.media/boolean", "description": "A true or false value." }, "bytes": { "type": "hm://hyper.media/bytes", "description": "Raw binary data (a byte string)." }, "capability": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Capability", "description": "Blob type tag, always `Capability`." }, "delegate": { "value": { "type": "hm://hyper.media/principal" }, "required": true, "description": "The key that receives the grant." }, "audience": { "value": { "type": "hm://hyper.media/principal" }, "description": "Only on short-lived, unstored capabilities that prove account ownership to a peer or HTTP server; never on stored grants." }, "path": { "value": { "type": "hm://hyper.media/string" }, "description": "Path the grant is scoped to, recursive by segment (`/team` covers `/team/notes`); empty for the whole space." }, "role": { "value": { "type": "hm://hyper.media/role" }, "description": "What the delegate may do: `WRITER` publishes under `path`, `AGENT` acts as the issuer (path must be empty)." }, "label": { "value": { "type": "hm://hyper.media/string" }, "description": "Public, immutable note describing the grant, at most 512 bytes." } }, "description": "A signed grant from a space owner to another key: a `WRITER` or `AGENT` role, optionally scoped to a path." }, "change": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Change", "description": "Blob type tag, always `Change`." }, "genesis": { "value": { "type": "hm://hyper.media/cid" }, "description": "CID of the document's first Change, which is its identity; omitted on the genesis Change itself." }, "deps": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/cid" } }, "description": "CIDs of the head Changes the author built on, sorted by CID; omitted on the genesis Change." }, "depth": { "value": { "type": "hm://hyper.media/integer" }, "description": "One more than the deepest dependency's depth; omitted on the genesis Change." }, "body": { "value": { "type": "hm://hyper.media/change/body", "args": { "Block": { "var": "Block" } } }, "description": "The operations this Change applies to the document's content and metadata." }, "message": { "value": { "type": "hm://hyper.media/string" }, "description": "Optional human-readable description of the Change, like a commit message; omitted when empty." } }, "params": { "Block": { "type": "hm://hyper.media/block" } }, "description": "A signed delta on a document that links the Changes it depends on and carries the operations that edit its content and metadata." }, "change/body": { "type": "hm://hyper.media/struct", "properties": { "opCount": { "value": { "type": "hm://hyper.media/integer" }, "description": "Advisory count of logical operations, which can exceed the list length for run-length ops." }, "ops": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/change/op", "args": { "Block": { "var": "Block" } } } }, "description": "Operations applied in order when the document is replayed." } }, "params": { "Block": { "type": "hm://hyper.media/block" } }, "description": "The operations payload of a Change: an ordered list of ops the daemon applies in turn." }, "change/op": { "anyOf": [{ "type": "hm://hyper.media/change/op/set-attributes" }, { "type": "hm://hyper.media/change/op/move-blocks" }, { "type": "hm://hyper.media/change/op/replace-block", "args": { "Block": { "var": "Block" } } }, { "type": "hm://hyper.media/change/op/delete-blocks" }, { "type": "hm://hyper.media/change/op/set-key" }], "params": { "Block": { "type": "hm://hyper.media/block" } }, "description": "One operation inside a Change body, tagged by `type`: set metadata, replace, move or delete blocks." }, "change/op/delete-blocks": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "DeleteBlocks", "required": true, "description": "Operation tag, always `DeleteBlocks`." }, "blocks": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "required": true, "description": "Ids of the blocks to delete." } }, "description": "The operation that removes blocks by moving them, with their children, to the trash parent." }, "change/op/move-blocks": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "MoveBlocks", "required": true, "description": "Operation tag, always `MoveBlocks`." }, "parent": { "value": { "type": "hm://hyper.media/string" }, "description": "Id of the block the run goes under; empty means the document root." }, "blocks": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "required": true, "description": "Ids of the sibling blocks to place, in order." }, "ref": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/integer" } }, "description": "Op id to insert after: `[ts, idx, actor]`, or `[idx]` for an earlier op in this Change; empty means the start." } }, "description": "The operation that places a contiguous run of sibling blocks under a parent after a reference position." }, "change/op/replace-block": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "ReplaceBlock", "required": true, "description": "Operation tag, always `ReplaceBlock`." }, "block": { "value": { "var": "Block" }, "required": true, "description": "The complete new state of the block, with attributes inlined at the top level." } }, "params": { "Block": { "type": "hm://hyper.media/block" } }, "description": "The operation that sets the full state of one block; the newest replacement by op id wins." }, "change/op/set-attributes": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "SetAttributes", "required": true, "description": "Operation tag, always `SetAttributes`." }, "block": { "value": { "type": "hm://hyper.media/string" }, "description": "Reserved for per-block attributes; must be empty today." }, "attrs": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/key-value" } }, "description": "Key paths and the values to write; a `null` value deletes the key." } }, "description": "The operation that sets document metadata by key path, each path a last-writer-wins register." }, "change/op/set-key": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "SetKey", "required": true, "description": "Operation tag, always `SetKey`." }, "key": { "value": { "type": "hm://hyper.media/string" }, "description": "Top-level metadata key to set." }, "value": { "value": { "type": "hm://hyper.media/value" }, "description": "Scalar value to store: a string, boolean, integer or `null`." } }, "description": "Deprecated flat form of SetAttributes that sets one top-level metadata key, kept so old Changes replay." }, "cid": { "type": "hm://hyper.media/link", "description": "A content identifier: a CIDv1 link that names a blob by the hash of its bytes." }, "comment": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Comment", "description": "Blob type tag, always `Comment`." }, "id": { "value": { "type": "hm://hyper.media/string" }, "description": "TSID of the comment being replaced; present only on an edit or a tombstone." }, "capability": { "value": { "type": "hm://hyper.media/cid" }, "description": "Deprecated and ignored; some old comment blobs still carry it." }, "space": { "value": { "type": "hm://hyper.media/principal" }, "description": "Space of the commented document; omitted when it equals the signer." }, "path": { "value": { "type": "hm://hyper.media/string" }, "description": "Path of the commented document within `space`." }, "version": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/cid" } }, "description": "CIDs of the document heads the author was looking at; empty means the document at this path." }, "threadRoot": { "value": { "type": "hm://hyper.media/cid" }, "description": "CID of the first comment of the thread; present on every reply." }, "replyParent": { "value": { "type": "hm://hyper.media/cid" }, "description": "CID of the comment this one replies to; omitted when it equals `threadRoot`." }, "body": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/comment" } }, "required": true, "description": "The comment's content as a list of comment blocks; an empty body is a tombstone." }, "visibility": { "value": { "type": "hm://hyper.media/visibility" }, "description": "Empty for a public comment or `Private`, usually copied from the target document." } }, "description": "A signed comment on a document version, threaded through `threadRoot` and `replyParent`, with a body of comment blocks." }, "contact": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Contact", "description": "Blob type tag, always `Contact`." }, "id": { "value": { "type": "hm://hyper.media/string" }, "description": "TSID of the contact record being replaced; present only on updates and tombstones." }, "account": { "value": { "type": "hm://hyper.media/principal" }, "description": "Account the contact is written for, set only when a delegated key signs on its behalf." }, "subject": { "value": { "type": "hm://hyper.media/principal" }, "description": "The account being described; an empty subject makes the blob a tombstone." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "The signer's name for the subject account, up to 256 bytes." }, "subscribe": { "value": { "type": "hm://hyper.media/contact/subscribe" }, "description": "Flags saying whether the signer joined the subject's site or follows its profile." } }, "description": "A public address-book entry: one account's name for another, with flags for joining its site or following its profile." }, "contact/subscribe": { "type": "hm://hyper.media/struct", "properties": { "site": { "value": { "type": "hm://hyper.media/boolean" }, "description": "The signing account joined the subject's site and appears among its members." }, "profile": { "value": { "type": "hm://hyper.media/boolean" }, "description": "The signing account follows the subject's profile." } }, "description": "The follow flags on a contact: whether the signer joined the subject's site and follows its profile." }, "date-time": { "type": "hm://hyper.media/string", "format": "date-time", "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$", "description": "An instant as an RFC 3339 string such as `2026-08-26T14:30:00Z` \u2014 rendered as a date-and-time picker." }, "date": { "type": "hm://hyper.media/string", "format": "date", "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$", "description": "A calendar date as an ISO 8601 `YYYY-MM-DD` string \u2014 rendered as a date picker." }, "document": { "type": "hm://hyper.media/struct", "properties": { "metadata": { "value": { "type": "hm://hyper.media/metadata" }, "description": "The document's attributes, merged last-writer-wins from every SetAttributes op." }, "content": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/block/node" } }, "description": "The tree of content block nodes built from the document's move tree and block registers." } }, "description": "The read model of a Hypermedia document: the metadata and block tree that result from replaying its Changes." }, "example/address": { "type": "hm://hyper.media/struct", "properties": { "street": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Street address line, including the house number." }, "city": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "City or town name." }, "postalCode": { "value": { "type": "hm://hyper.media/string" }, "description": "Postal or ZIP code, if any." } }, "description": "A postal address: street and city (required) plus an optional postal code." }, "example/admin": { "type": "hm://hyper.media/example/employee", "properties": { "permissions": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/boolean" } }, "required": true, "description": "The permissions this admin holds, as flags. A set of flags is a map rather than a list because a document's attributes hold scalars and nested maps, so this type describes a document as well as a blob." } }, "description": "An employee extended with a map of boolean permission flags \u2014 a two-level extension chain." }, "example/app-block": { "anyOf": [{ "type": "hm://hyper.media/block/core" }, { "type": "hm://hyper.media/example/poll-block" }], "description": "A strict union of Hypermedia's core blocks plus the app's own Poll block, showing how a third party extends the block model." }, "example/article": { "type": "hm://hyper.media/struct", "properties": { "title": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Headline of the article." }, "slug": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "URL-friendly short name for the article." }, "status": { "value": { "type": "hm://hyper.media/example/status" }, "required": true, "description": "Publication status: `draft`, `published` or `archived`." }, "author": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/person" }, "required": true, "description": "The person who wrote the article." }, "tags": { "value": { "type": "hm://hyper.media/example/tags" }, "description": "Topic tags for the article." }, "body": { "value": { "type": "hm://hyper.media/bytes" }, "description": "The article's content as raw bytes." }, "wordCount": { "value": { "type": "hm://hyper.media/integer" }, "description": "Number of words in the body." }, "featured": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether the article is featured." }, "cover": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/blob" }, "description": "Cover image, a link to a Blob." }, "comments": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/comment" } }, "description": "Links to the comments on the article." }, "meta": { "value": { "type": "hm://hyper.media/example/metadata" }, "description": "Open string metadata for anything the other fields do not cover." } }, "description": "A published article that combines the other examples: status, author, tags, body, cover image, comments and metadata." }, "example/blob": { "type": "hm://hyper.media/struct", "properties": { "mime": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "MIME type of the payload, such as `image/png`." }, "size": { "value": { "type": "hm://hyper.media/integer" }, "description": "Payload size in bytes." }, "data": { "value": { "type": "hm://hyper.media/bytes" }, "required": true, "description": "The binary payload." } }, "description": "A binary payload tagged with a MIME type and an optional size." }, "example/character-doc": { "type": "hm://hyper.media/struct", "properties": { "born": { "value": { "type": "hm://hyper.media/date" }, "required": true, "description": "Birth date (ISO 8601 `YYYY-MM-DD`) \u2014 rendered as a date picker." }, "died": { "value": { "type": "hm://hyper.media/date" }, "description": "Death date, if any." }, "role": { "value": { "anyOf": ["hero", "villain", "ally", "neutral"] }, "required": true, "description": "Narrative role." }, "home": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/place-doc" }, "description": "The place this character calls home \u2014 a page conforming to the Place type." }, "faction": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/faction-doc" }, "description": "The faction this character belongs to." }, "portrait": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "A portrait image file on IPFS." }, "stats": { "value": { "type": "hm://hyper.media/ipfs-url", "target": "hm://hyper.media/example/stats" }, "description": "An `ipfs://` object that must conform to Character stats (a required target schema)." }, "notes": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "An `ipfs://` object with no declared schema \u2014 free-form data." } }, "description": "A World Builder page type for a character, with a birth date, role, and links to a home place, faction, portrait and stats." }, "example/comment": { "type": "hm://hyper.media/struct", "properties": { "text": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The comment's text." }, "author": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/person" }, "description": "The person who wrote the comment." }, "replies": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/comment" } }, "description": "Links to replies, which are themselves comments." } }, "description": "A comment with an author and replies that are themselves comments, showing a self-referencing type." }, "example/constrained": { "type": "hm://hyper.media/struct", "properties": { "username": { "value": { "type": "hm://hyper.media/string", "minLength": 3, "maxLength": 12, "pattern": "^[a-z0-9_]+$" }, "required": true, "description": "Login name: 3\u201312 characters of lowercase letters, digits and `_`." }, "score": { "value": { "type": "hm://hyper.media/integer", "minimum": 0, "maximum": 100 }, "required": true, "description": "Score from 0 to 100." }, "tags": { "value": { "type": "hm://hyper.media/list", "minItems": 1, "maxItems": 3, "items": { "type": "hm://hyper.media/string" } }, "description": "One to three string tags." } }, "description": "A record that shows value constraints: string length and pattern, numeric bounds, and list size." }, "example/counts": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/integer" }, "description": "A map from string keys to integers: `Map<Integer>`." }, "example/document": { "type": "hm://hyper.media/struct", "properties": { "title": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Title of the document." }, "author": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/person" }, "description": "The person who wrote the document." }, "body": { "value": { "type": "hm://hyper.media/bytes" }, "description": "The document's content as raw bytes." }, "previous": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/document" }, "description": "The previous document, a link to another Document." } }, "description": "A document with a title, author, body and a link to a previous document, showing a self-referencing type." }, "example/employee": { "type": "hm://hyper.media/example/person", "properties": { "employeeId": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The employee's id within the organization." }, "department": { "value": { "type": "hm://hyper.media/string" }, "description": "The department the employee works in." } }, "description": "A person extended with an employee id and department." }, "example/entry": { "anyOf": [{ "type": "hm://hyper.media/example/folder" }, { "type": "hm://hyper.media/example/file" }], "description": "A filesystem entry: a union of folder and file." }, "example/event-doc": { "type": "hm://hyper.media/struct", "properties": { "date": { "value": { "type": "hm://hyper.media/date" }, "required": true, "description": "When it happened (or began)." }, "ends": { "value": { "type": "hm://hyper.media/date" }, "description": "When it ended, for a span." }, "location": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/place-doc" }, "description": "Where it happened." }, "protagonist": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/character-doc" }, "description": "The central character." }, "faction": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/faction-doc" }, "description": "The faction chiefly involved." }, "outcome": { "value": { "anyOf": ["victory", "defeat", "stalemate", "unknown"] }, "description": "How the event ended: `victory`, `defeat`, `stalemate` or `unknown`." } }, "description": "A World Builder page type for something that happened, with a date and links to a place, a protagonist and a faction." }, "example/faction-doc": { "type": "hm://hyper.media/struct", "properties": { "founded": { "value": { "type": "hm://hyper.media/date" }, "required": true, "description": "Founding date." }, "dissolved": { "value": { "type": "hm://hyper.media/date" }, "description": "Dissolution date, if any." }, "seat": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/place-doc" }, "description": "Where the faction is based." }, "leader": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/character-doc" }, "description": "Who leads it." }, "banner": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "A banner or crest image file on IPFS." } }, "description": "A World Builder page type for a faction, order, house or guild, with a founding date and links to its seat, leader and banner." }, "example/file": { "type": "hm://hyper.media/struct", "properties": { "name": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "File name." }, "parent": { "value": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/folder" }, "description": "The folder that contains this file." } }, "description": "A file with a name and a link to its parent folder, showing mutually referencing types." }, "example/folder": { "type": "hm://hyper.media/struct", "properties": { "name": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Folder name." }, "files": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/file" } }, "description": "Links to the files directly in this folder." }, "subfolders": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/folder" } }, "description": "Links to the folders directly inside this folder." } }, "description": "A folder with a name and links to its files and subfolders, showing mutually referencing types." }, "example/geo": { "type": "hm://hyper.media/struct", "properties": { "lat": { "value": { "type": "hm://hyper.media/float" }, "required": true, "description": "Latitude in degrees." }, "lng": { "value": { "type": "hm://hyper.media/float" }, "required": true, "description": "Longitude in degrees." }, "altitude": { "value": { "type": "hm://hyper.media/integer" }, "description": "Altitude, as a whole number." } }, "description": "A latitude and longitude coordinate with an optional altitude." }, "example/json": { "anyOf": [{ "type": "hm://hyper.media/null" }, { "type": "hm://hyper.media/boolean" }, { "type": "hm://hyper.media/integer" }, { "type": "hm://hyper.media/float" }, { "type": "hm://hyper.media/string" }, { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/example/json" } }, { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/example/json" } }], "description": "A recursive JSON value: null, boolean, integer, float, string, or a list or map of JSON values." }, "example/matrix": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/integer" } }, "description": "A list of lists of integers: `List<List<Integer>>`." }, "example/metadata": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/string" }, "description": "Arbitrary string-to-string metadata: `Map<String>`." }, "example/myapp-change": { "type": "hm://hyper.media/change", "args": { "Block": { "type": "hm://hyper.media/example/app-block" } }, "description": "A Change bound to the app's block type (`Change<example/app-block>`), so ReplaceBlock ops accept only core blocks and Poll." }, "example/person-doc": { "type": "hm://hyper.media/struct", "properties": { "surname": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The person's family name." }, "givenName": { "value": { "type": "hm://hyper.media/string" }, "description": "The person's given (first) name." } }, "description": "A document type for a person that requires a surname and allows a given name, bound per page or to a folder's children." }, "example/person": { "type": "hm://hyper.media/struct", "properties": { "name": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The person's name." }, "age": { "value": { "type": "hm://hyper.media/integer" }, "description": "Age in years." }, "active": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether the person is currently active." }, "home": { "value": { "type": "hm://hyper.media/example/address" }, "description": "Home postal address." }, "nicknames": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "description": "Other names the person goes by." } }, "description": "A person with a name, age, active flag, home address and nicknames." }, "example/place-doc": { "type": "hm://hyper.media/struct", "properties": { "kind": { "value": { "anyOf": ["city", "town", "village", "fortress", "ruin", "wilderness", "realm"] }, "required": true, "description": "What sort of place this is, such as `city`, `ruin` or `realm`." }, "founded": { "value": { "type": "hm://hyper.media/date" }, "description": "Founding date." }, "region": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/place-doc" }, "description": "The larger place this one lies within." }, "ruler": { "value": { "type": "hm://hyper.media/hm-url", "target": "hm://hyper.media/example/faction-doc" }, "description": "The faction that holds this place." }, "coordinates": { "value": { "type": "hm://hyper.media/ipfs-url", "target": "hm://hyper.media/example/geo" }, "description": "An `ipfs://` object conforming to Geo point." }, "map": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "A map image file on IPFS." } }, "description": "A World Builder page type for a place, with a kind and optional founding date, parent region, ruler, coordinates and map." }, "example/poll-block": { "type": "hm://hyper.media/block/base", "properties": { "type": { "value": "Poll", "description": "Block type literal `Poll`." }, "question": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The question the poll asks." }, "options": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "required": true, "description": "The answer choices, in display order." }, "attributes": { "value": { "type": "hm://hyper.media/struct", "properties": { "childrenType": { "value": { "type": "hm://hyper.media/block/children-type" }, "description": "How the block's children are laid out, such as `Ordered` or `Grid`." }, "columnCount": { "value": { "type": "hm://hyper.media/float" }, "description": "Number of columns when `childrenType` is `Grid`." }, "multiple": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether a voter may choose more than one option." } }, "values": { "type": "hm://hyper.media/any" } }, "description": "Block attributes: layout keys plus poll settings such as `multiple`; other keys are allowed." } }, "description": "An example third-party block type: a poll with a question and options, extending the shared block base like a core block." }, "example/registry": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/person" }, "description": "A map from ids to person links: `Map<Link<Person>>`." }, "example/stats": { "type": "hm://hyper.media/struct", "properties": { "strength": { "value": { "type": "hm://hyper.media/integer", "minimum": 1, "maximum": 10 }, "required": true, "description": "1\u201310" }, "intellect": { "value": { "type": "hm://hyper.media/integer", "minimum": 1, "maximum": 10 }, "required": true, "description": "1\u201310" }, "charisma": { "value": { "type": "hm://hyper.media/integer", "minimum": 1, "maximum": 10 }, "required": true, "description": "1\u201310" }, "alignment": { "value": { "anyOf": ["lawful", "neutral", "chaotic"] }, "description": "Moral alignment: `lawful`, `neutral` or `chaotic`." }, "traits": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "description": "Free-form descriptors." } }, "description": "A character's stats object, stored as its own DAG-CBOR blob so it can hold the integers and enums document metadata cannot." }, "example/status": { "anyOf": ["draft", "published", "archived"], "description": "A publication status: `draft`, `published` or `archived`." }, "example/tags": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" }, "description": "A list of string tags: `List<String>`." }, "example/task-doc": { "type": "hm://hyper.media/struct", "properties": { "status": { "value": { "type": "hm://hyper.media/example/task-status" }, "required": true, "description": "Where the task stands. A new task starts as `todo`.", "default": "todo" }, "priority": { "value": { "type": "hm://hyper.media/integer", "minimum": 1, "maximum": 3 }, "description": "1 is most urgent and 3 is least. A new task starts in the middle.", "default": 2 }, "tags": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "description": "Labels for the task. A new task starts with an empty list.", "default": [] }, "checklist": { "value": { "type": "hm://hyper.media/struct", "properties": { "done": { "value": { "type": "hm://hyper.media/boolean" }, "required": true, "description": "Whether every step is finished.", "default": false }, "steps": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "required": true, "description": "The steps, in order." } } }, "required": true, "description": "The steps of the task. It has no default of its own, so a new task builds it from the defaults of its fields." }, "due": { "value": { "type": "hm://hyper.media/date" }, "description": "The day the task is due. It has no default, so a new task leaves it out." } }, "description": "A document type for a task, showing property defaults: the values a new task starts with." }, "example/task-status": { "anyOf": ["todo", "doing", "done"], "description": "The state of a task: `todo`, `doing` or `done`." }, "example/tree": { "type": "hm://hyper.media/struct", "properties": { "value": { "value": { "type": "hm://hyper.media/integer" }, "required": true, "description": "The integer stored at this node." }, "children": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/link", "target": "hm://hyper.media/example/tree" } }, "description": "Links to this node's child trees." } }, "description": "A tree node holding an integer value and links to child nodes, showing a self-referencing type." }, "example/value": { "anyOf": [{ "type": "hm://hyper.media/string" }, { "type": "hm://hyper.media/integer" }, { "type": "hm://hyper.media/boolean" }, { "type": "hm://hyper.media/null" }], "description": "A primitive value: string, integer, boolean or null." }, "example/world-doc": { "type": "hm://hyper.media/struct", "properties": { "genre": { "value": { "anyOf": ["fantasy", "science-fiction", "historical", "contemporary", "mythic"] }, "required": true, "description": "The world's genre, such as `fantasy` or `science-fiction`." }, "epoch": { "value": { "type": "hm://hyper.media/date" }, "description": "The in-world date the chronicle begins." }, "tagline": { "value": { "type": "hm://hyper.media/string" }, "description": "A one-line pitch for the world." } }, "description": "A World Builder page type for the root of a fictional world, naming its genre and the date the chronicle begins." }, "float": { "type": "hm://hyper.media/float", "description": "A floating-point number." }, "hm-url": { "type": "hm://hyper.media/string", "format": "hm-url", "description": "A reference to a Hypermedia document as an `hm://` URL string \u2014 rendered as a searchable pill showing the target's title." }, "integer": { "type": "hm://hyper.media/integer", "description": "A whole number, which DAG-CBOR encodes distinctly from floats." }, "ipfs-url": { "type": "hm://hyper.media/string", "format": "ipfs-url", "description": "A string that is an `ipfs://` URL naming content by its CID \u2014 a file, or a DAG-CBOR object such as a schema." }, "key-value": { "type": "hm://hyper.media/struct", "properties": { "key": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/string" } }, "description": 'Path of key segments to set, such as `["theme", "headerLayout"]` for a nested key.' }, "value": { "value": { "type": "hm://hyper.media/value" }, "description": "Scalar value to store at `key`; `null` deletes the key." } }, "description": "One attribute assignment in a SetAttributes op: a key path and the scalar value to set there." }, "link": { "type": "hm://hyper.media/link", "description": "The IPLD link kind: a CID that points at another block by its content (CBOR tag 42)." }, "list": { "type": "hm://hyper.media/list", "description": "An ordered sequence of values, `List<Any>` until `items` constrains it." }, "map": { "type": "hm://hyper.media/map", "description": "A map of string keys to values of one type (`Map<Any>` until `values` constrains it); use a struct for known field names." }, "metadata": { "type": "hm://hyper.media/struct", "properties": { "name": { "value": { "type": "hm://hyper.media/string" }, "description": "The document or space title." }, "summary": { "value": { "type": "hm://hyper.media/string" }, "description": "A short description shown in previews and cards." }, "icon": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "A square document or space image, as an `ipfs://` URL." }, "thumbnail": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "Deprecated image field kept for old documents; use `icon` or `cover`." }, "cover": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "A wide cover image shown in headers and cards, as an `ipfs://` URL." }, "siteUrl": { "value": { "type": "hm://hyper.media/url" }, "description": "The web address a space is published at; set on the home document when a site is registered." }, "appEnvironmentUrl": { "value": { "type": "hm://hyper.media/url" }, "description": "The app environment a space is bound to, set on the home document: the server its agents run on. Read before `agentServerUrl`, the older name of the same binding." }, "agentServerUrl": { "value": { "type": "hm://hyper.media/url" }, "description": "The app environment that hosts the agent this document mounts (an http(s) origin); set with `type: hm://hyper.media/agent`." }, "attributesSchema": { "value": { "type": "hm://hyper.media/hm-url" }, "description": "The attributes schema THIS document conforms to: the hm:// URL of a schema document (or ipfs://<cid> of a schema blob) whose struct describes the document's attributes." }, "childAttributesSchema": { "value": { "type": "hm://hyper.media/hm-url" }, "description": "The attributes schema this document's direct CHILDREN conform to (hm:// URL or ipfs://<cid>). A child may declare its own `attributesSchema` instead." }, "schemaDefinition": { "value": { "type": "hm://hyper.media/ipfs-url", "target": "hm://hyper.media/schema" }, "description": "This document DEFINES a schema: ipfs://<cid> of the schema blob it describes. Its target is the meta-schema, so an editor creates and validates the blob as a Hypermedia schema (the struct form, rooted at Struct by default). Other documents reference this document's URL as their `attributesSchema`/`childAttributesSchema`." }, "layout": { "value": { "anyOf": ["Seed/Experimental/Newspaper", ""] }, "description": "Legacy space header layout: `Seed/Experimental/Newspaper` or empty." }, "seedExperimentalLogo": { "value": { "type": "hm://hyper.media/ipfs-url" }, "description": "Space header logo image." }, "seedExperimentalHomeOrder": { "value": { "anyOf": ["UpdatedFirst", "CreatedFirst"] }, "description": "Legacy ordering of a space home listing." }, "displayPublishTime": { "value": { "type": "hm://hyper.media/string" }, "description": "Publication date shown to readers when it differs from the change history." }, "displayAuthor": { "value": { "type": "hm://hyper.media/string" }, "description": "Author byline shown to readers." }, "showOutline": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether to show the document outline." }, "showActivity": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether to show the document's activity and tools." }, "showConversations": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether readers may start and join conversations on the space's documents. Set on a space home document; absent means they may." }, "showDocumentBrowser": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether the sidebar with the space's document browser starts open when readers arrive; when false it starts collapsed and readers can still open it. Set on a space home document; absent means it starts open." }, "showCollectionControls": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Whether collections offer readers search, filter, sort and view controls. Set on a space home document; absent means they do." }, "contentWidth": { "value": { "anyOf": ["S", "M", "L"] }, "description": "Width of the content column: `S`, `M` or `L`." }, "childrenType": { "value": { "type": "hm://hyper.media/string" }, "description": "Layout of the document's root-level blocks, a block children type." }, "theme": { "value": { "type": "hm://hyper.media/struct", "properties": { "headerLayout": { "value": { "anyOf": ["Center", ""] }, "description": "Space header layout: `Center` or empty for the default." } } }, "description": "Visual settings for a space." }, "importCategories": { "value": { "type": "hm://hyper.media/string" }, "description": "Comma-separated categories kept from an external import (e.g. WordPress)." }, "importTags": { "value": { "type": "hm://hyper.media/string" }, "description": "Comma-separated tags kept from an external import (e.g. WordPress)." }, "type": { "value": { "type": "hm://hyper.media/hm-url" }, "description": "Resource type, for example hm://hyper.media/page for a custom HTML page." } }, "values": { "type": "hm://hyper.media/value" }, "description": "The attributes of a document, merged from its Changes: the keys Seed understands, the schema-binding keys, and any custom keys." }, "metadata/navigation-item": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "Link", "required": true, "description": "Block type tag, always `Link`." }, "id": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Block id of this menu entry." }, "text": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Label shown in the menu." }, "link": { "value": { "type": "hm://hyper.media/url" }, "required": true, "description": "Where the entry goes \u2014 an `hm://` or web URL." } }, "description": "One entry of a site's navigation menu, stored as a `Link` child of the detached `navigation` block." }, "none": { "anyOf": [] }, "null": { "type": "hm://hyper.media/null", "description": "The null value." }, "page-input": { "type": "hm://hyper.media/struct", "properties": {}, "description": "The empty input contract for a custom HTML page that accepts no URL parameters." }, "page": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "value": "hm://hyper.media/page" }, "required": true }, "html": { "value": { "type": "hm://hyper.media/ipfs-url" }, "required": true, "description": "UnixFS folder containing index.html for this custom HTML page." }, "inputSchema": { "value": { "type": "hm://hyper.media/url", "target": "hm://hyper.media/schema" }, "required": true, "description": "Published HM struct schema defining this page's URL input fields." } }, "values": { "type": "hm://hyper.media/value" }, "description": "Resource attributes for a custom HTML page, with a sandboxed HTML bundle and a published input contract." }, "principal": { "type": "hm://hyper.media/bytes", "description": "A public key that identifies an account or space, stored as multicodec-prefixed key bytes and shown as a `z6Mk\u2026` string." }, "profile": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Profile", "description": "Blob type tag, always `Profile`." }, "alias": { "value": { "type": "hm://hyper.media/principal" }, "description": "Account this key really belongs to; a profile with `alias` carries no other field." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "The account's display name." }, "avatar": { "value": { "type": "hm://hyper.media/string" }, "description": "The account's picture, as an `ipfs://` link to an image." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "A short description of the account." }, "account": { "value": { "type": "hm://hyper.media/principal" }, "description": "Account the profile is for, set only when a delegated key signs on its behalf." } }, "description": "A snapshot blob giving an account its display name, avatar and description, or an alias redirecting one key to another." }, "query": { "type": "hm://hyper.media/struct", "properties": { "includes": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/query/inclusion" } }, "required": true, "description": "Spaces and path prefixes whose documents the query returns, each with a `Children` or `AllDescendants` mode." }, "sort": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/query/sort" } }, "description": "Sort terms for the results; the daemon applies the first." }, "limit": { "value": { "type": "hm://hyper.media/integer", "minimum": 0 }, "description": "Maximum number of results to return." } }, "description": "A live document query: which spaces and paths to include, how to sort, and an optional limit." }, "query/inclusion": { "type": "hm://hyper.media/struct", "properties": { "space": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Account id whose documents to list." }, "path": { "value": { "type": "hm://hyper.media/string" }, "description": "Optional path prefix inside the space, such as a folder." }, "mode": { "value": { "anyOf": ["Children", "AllDescendants"] }, "required": true, "description": "`Children` lists direct children of the path; `AllDescendants` lists everything below it." } }, "description": "One source a query pulls documents from: a space, an optional path, and a depth mode." }, "query/sort": { "type": "hm://hyper.media/struct", "properties": { "reverse": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Sort in descending order." }, "term": { "value": { "anyOf": ["Path", "Title", "CreateTime", "UpdateTime", "DisplayTime", "ActivityTime"] }, "required": true, "description": "What to sort by: path, title, or a create, update, display or activity time." } }, "description": "One sort term for query results, optionally reversed." }, "query/style": { "anyOf": ["Card", "List", "Table"], "description": "How a Query block presents its results: `Card`, `List` or `Table`." }, "query/table-config": { "type": "hm://hyper.media/struct", "properties": { "columns": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/struct", "properties": { "id": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "Built-in column name (such as title or authors) or a custom metadata attribute key." }, "visible": { "value": { "type": "hm://hyper.media/boolean" }, "required": true, "description": "Whether the column is shown." }, "width": { "value": { "type": "hm://hyper.media/float", "minimum": 0 }, "description": "Column width in pixels." } } } }, "required": true, "description": "Column settings in display order." } }, "description": "The saved table-view settings of a Query block: which columns show and how wide they are." }, "ref": { "type": "hm://hyper.media/blob", "properties": { "type": { "value": "Ref", "description": "Blob type tag, always `Ref`." }, "space": { "value": { "type": "hm://hyper.media/principal" }, "description": "Space the path belongs to; omitted when the signer is the space owner." }, "path": { "value": { "type": "hm://hyper.media/string" }, "description": "Document path within the space, starting with `/`; empty for the home document." }, "genesisBlob": { "value": { "type": "hm://hyper.media/cid" }, "description": "CID of the genesis Change of the document at this address." }, "capability": { "value": { "type": "hm://hyper.media/cid" }, "description": "Informational CID of the capability authorizing the signer; the daemon ignores it." }, "heads": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/cid" } }, "required": true, "description": "CIDs of the document's current head Changes; empty for a tombstone or redirect." }, "redirect": { "value": { "type": "hm://hyper.media/ref/redirect-target" }, "description": "Where readers are sent instead, making this Ref a redirect." }, "generation": { "value": { "type": "hm://hyper.media/integer" }, "description": "Orders the lives of an address: the highest generation wins; clients use the current time in ms for a new document." }, "visibility": { "value": { "type": "hm://hyper.media/visibility" }, "description": "Empty for public or `Private`; a private Ref must have a single-segment path." } }, "description": "A signed claim that a path in a space points at a document's current head Changes, or that it is deleted or redirects elsewhere." }, "ref/redirect-target": { "type": "hm://hyper.media/struct", "properties": { "space": { "value": { "type": "hm://hyper.media/principal" }, "description": "Destination space; omitted when the redirect stays within the same space." }, "path": { "value": { "type": "hm://hyper.media/string" }, "description": "Destination document path." }, "republish": { "value": { "type": "hm://hyper.media/boolean" }, "description": "Keep the old address listed, showing the target's content, instead of treating it as moved." } }, "description": "The destination of a redirect Ref: the space and path readers are sent to." }, "role": { "anyOf": ["WRITER", "AGENT"], "description": "The kind of authority a capability grants: `WRITER` may publish under a path, `AGENT` may act as the issuing account." }, "schema": { "anyOf": [{ "type": "hm://hyper.media/schema/struct-schema" }, { "type": "hm://hyper.media/schema/map-schema" }, { "type": "hm://hyper.media/schema/list-schema" }, { "type": "hm://hyper.media/schema/scalar-schema" }, { "type": "hm://hyper.media/schema/link-schema" }, { "type": "hm://hyper.media/schema/include-schema" }, { "type": "hm://hyper.media/schema/anyof" }, { "type": "hm://hyper.media/schema/var-schema" }, { "type": "hm://hyper.media/schema/literal-schema" }, { "type": "hm://hyper.media/string" }, { "type": "hm://hyper.media/integer" }, { "type": "hm://hyper.media/boolean" }, { "type": "hm://hyper.media/null" }], "description": "The meta-schema: the union of every shape a schema can take, itself a valid instance of this type." }, "schema/anyof": { "type": "hm://hyper.media/struct", "properties": { "anyOf": { "value": { "type": "hm://hyper.media/list", "items": { "type": "hm://hyper.media/schema" } }, "required": true, "description": "The alternative schemas; a value must match at least one. When every arm is a literal, editors show a dropdown." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the union is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A union schema: a value is valid if it matches any one of the schemas listed under `anyOf`." }, "schema/include-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "type": "hm://hyper.media/string", "pattern": "^(?!hm://hyper\\.media/(?:schema/|hypermedia-)?(?:null|boolean|integer|float|string|bytes|list|map|struct|link)$)(?:hm|ipfs)://.+$" }, "required": true, "description": "The schema this one names: a schema document's URL (`hm://\u2026` or `ipfs://<cid>`). Naming one of the nine kinds grounds a schema instead (see the kind-rooted variants), so a kind URL does not belong here. The other keys refine what is named." }, "properties": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema/property" } }, "description": "Fields the extension adds to (or overrides in) the base struct, as properties." }, "values": { "value": { "type": "hm://hyper.media/schema" }, "description": "Overrides the named schema's `values`: the schema extra keys (open struct) or map values must match." }, "items": { "value": { "type": "hm://hyper.media/schema" }, "description": "Overrides the named schema's `items`: the schema every list element must match." }, "target": { "value": { "type": "hm://hyper.media/string" }, "description": "For a reference-valued string (`format: hm-url` or `format: ipfs-url`): the schema the referenced document or object is expected to conform to \u2014 an `hm://` schema-document URL or `ipfs://<cid>`. Advisory: an editor pre-seeds and validates the target against it; a validator does not dereference the reference." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the reference is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "args": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Applies a generic: binds the named schema's type parameters by name, falling back to their defaults when unbound." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema that names another schema by URL: a bare include becomes that schema, and added refinements make it an extension." }, "schema/link-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "hm://hyper.media/link", "required": true, "description": "Always the link core type." }, "target": { "value": { "type": "hm://hyper.media/string" }, "description": "The schema the linked block is expected to conform to. Advisory: a validator does not dereference the link." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the link is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema for a link: a CID pointing at a separate block, optionally typed by `target`." }, "schema/list-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "hm://hyper.media/list", "required": true, "description": "Always the list core type." }, "items": { "value": { "type": "hm://hyper.media/schema" }, "description": "The schema every element of the list must match. Absent means elements of any kind." }, "minItems": { "value": { "type": "hm://hyper.media/integer" }, "description": "Minimum number of elements the list must have." }, "maxItems": { "value": { "type": "hm://hyper.media/integer" }, "description": "Maximum number of elements the list may have." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the list is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema for a list, whose elements match `items` and whose length can be bounded." }, "schema/literal-schema": { "type": "hm://hyper.media/struct", "properties": { "value": { "value": { "type": "hm://hyper.media/value" }, "required": true, "description": "The one value this schema accepts: a string, integer, boolean, or null." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What this value means, for people and for the editors that offer it." } }, "description": "The long form of a literal: a schema that accepts exactly one string, integer, boolean or null value, with a description." }, "schema/map-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "hm://hyper.media/map", "required": true, "description": "Always the map core type." }, "values": { "value": { "type": "hm://hyper.media/schema" }, "description": "The schema every value of the map must match." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the map is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema for a map with arbitrary keys whose values all match one schema." }, "schema/property": { "type": "hm://hyper.media/struct", "properties": { "value": { "value": { "type": "hm://hyper.media/schema" }, "required": true, "description": "The schema the field's value must match." }, "required": { "value": { "type": "hm://hyper.media/boolean" }, "description": "A value of the struct must include this field. Absent means optional." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the field is for, for people and for the editors that show it." }, "default": { "value": { "type": "hm://hyper.media/any" }, "description": "The value an editor writes into a new struct for this field. It must match `value`. It only initializes: a struct that lacks the field is not read as if it had this value." } }, "description": "One field of a struct: the schema its value must match, whether it is required, what it is for, and the value a new struct starts with." }, "schema/scalar-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": { "anyOf": ["hm://hyper.media/null", "hm://hyper.media/boolean", "hm://hyper.media/integer", "hm://hyper.media/float", "hm://hyper.media/string", "hm://hyper.media/bytes"] }, "required": true, "description": "The scalar kind the value must be: `null`, `boolean`, `integer`, `float`, `string` or `bytes`." }, "minLength": { "value": { "type": "hm://hyper.media/integer" }, "description": "Minimum length of a string value, counted in code points." }, "maxLength": { "value": { "type": "hm://hyper.media/integer" }, "description": "Maximum length of a string value, counted in code points." }, "pattern": { "value": { "type": "hm://hyper.media/string" }, "description": "An unanchored ECMAScript regular expression a string value must match; an uncompilable pattern is ignored." }, "format": { "value": { "type": "hm://hyper.media/string" }, "description": "A semantic hint for editors/renderers \u2014 the value is still a plain string. Known: `hm-url` (a Hypermedia document reference), `hm-profile` (an account reference), `ipfs-url` (an ipfs://<cid> reference to a file or DAG-CBOR object), `url` (a URL of any scheme), `date` (an ISO 8601 `YYYY-MM-DD` calendar date), `date-time` (an RFC 3339 instant)." }, "target": { "value": { "type": "hm://hyper.media/string" }, "description": "For a reference-valued string (`format: hm-url` or `format: ipfs-url`): the schema the referenced document or object is expected to conform to \u2014 an `hm://` schema-document URL or `ipfs://<cid>`. Advisory: an editor pre-seeds and validates the target against it; a validator does not dereference the reference." }, "minimum": { "value": { "type": "hm://hyper.media/integer" }, "description": "The smallest number an integer or float value may be (inclusive)." }, "maximum": { "value": { "type": "hm://hyper.media/integer" }, "description": "The largest number an integer or float value may be (inclusive)." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the value is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters that make this schema generic, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema for a null, boolean, integer, float, string or bytes value, optionally narrowed by value constraints." }, "schema/struct-schema": { "type": "hm://hyper.media/struct", "properties": { "type": { "value": "hm://hyper.media/struct", "required": true, "description": "Always the struct core type." }, "properties": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema/property" } }, "description": "The fields by name: each a property with its value schema, whether it is required, and a description." }, "values": { "value": { "type": "hm://hyper.media/schema" }, "description": "Opens the struct: keys other than the named fields are allowed and their values must match this schema." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the struct is for, when it is written inline; a published schema is described by its page." }, "params": { "value": { "type": "hm://hyper.media/map", "values": { "type": "hm://hyper.media/schema" } }, "description": "Type parameters of a generic struct, each with its default schema." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A schema for a struct, with known fields under `properties` and optionally extra keys of one type under `values`." }, "schema/var-schema": { "type": "hm://hyper.media/struct", "properties": { "var": { "value": { "type": "hm://hyper.media/string" }, "required": true, "description": "The name of the type parameter, declared in an enclosing `params`, whose bound schema this node stands for." }, "description": { "value": { "type": "hm://hyper.media/string" }, "description": "What the type variable stands for, when it is written inline." }, "name": { "value": { "type": "hm://hyper.media/string" }, "description": "Legacy: a name some published schemas still carry. New schemas are named by their page." } }, "description": "A type-variable reference inside a generic, matching whatever schema the named parameter is bound to." }, "signature": { "type": "hm://hyper.media/bytes", "description": "The 64 raw bytes of an Ed25519 or P-256 signature over a blob's canonical CBOR, taken with this field zeroed." }, "string": { "type": "hm://hyper.media/string", "description": "UTF-8 text." }, "struct": { "type": "hm://hyper.media/struct", "description": "A map with known, named fields, closed to other keys unless a `values` tail is given." }, "timestamp": { "type": "hm://hyper.media/integer", "description": "A point in time as an integer of Unix milliseconds, claimed by the signer and not checked against wall-clock time." }, "url": { "type": "hm://hyper.media/string", "format": "url", "description": "A string holding a URL of any scheme \u2014 rendered as a link and validated as one." }, "value": { "anyOf": [{ "type": "hm://hyper.media/string" }, { "type": "hm://hyper.media/integer" }, { "type": "hm://hyper.media/boolean" }, { "type": "hm://hyper.media/null" }], "description": "A scalar metadata or attribute value: a string, an integer, a boolean, or null." }, "visibility": { "anyOf": ["", "Private"], "description": "Who may see a Ref or Comment: empty for public, `Private` for the space owner, its writers and its site only." } };
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
HM_SCHEMA_MANIFEST,
|
|
8
|
-
HM_SCHEMA_PAGES,
|
|
9
|
-
HM_SCHEMAS
|
|
10
|
-
};
|