@sixb/core 0.2.2 → 0.2.3
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/actions/index.js +55 -49
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +0 -2
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +5 -1
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +2 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +82 -75
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +3 -0
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +78 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +17 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +108 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +61 -33
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +75 -0
- package/dist/artifacts/publish/merge.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +153 -0
- package/dist/artifacts/publish/previews.d.ts.map +1 -0
- package/dist/artifacts/publish/publish.d.ts +29 -8
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +20 -0
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +4 -3
- package/dist/artifacts/publish/references.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/canvas.d.ts.map +1 -1
- package/dist/artifacts/theme.d.ts +5 -1
- package/dist/artifacts/theme.d.ts.map +1 -1
- package/dist/auth/directory.d.ts +33 -0
- package/dist/auth/directory.d.ts.map +1 -0
- package/dist/auth/index.js +13 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/member-events.d.ts +5 -1
- package/dist/auth/member-events.d.ts.map +1 -1
- package/dist/auth/runtime.d.ts +22 -1
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/strategy.d.ts +2 -2
- package/dist/auth/strategy.d.ts.map +1 -1
- package/dist/auth/types.d.ts +42 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +6 -5
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -6
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/index.js +4 -4
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/bootstrap/index.js +62 -56
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/broker/in-memory.d.ts.map +1 -1
- package/dist/broker/index.js +1 -1
- package/dist/broker/types.d.ts +4 -0
- package/dist/broker/types.d.ts.map +1 -1
- package/dist/{chunk-s7j8ewqv.js → chunk-0k3r5kb3.js} +257 -43
- package/dist/{chunk-s7j8ewqv.js.map → chunk-0k3r5kb3.js.map} +14 -13
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-80gym75n.js → chunk-186k5yz3.js} +1 -1
- package/dist/chunk-191jz8a6.js +61 -0
- package/dist/chunk-191jz8a6.js.map +10 -0
- package/dist/{chunk-mmagke4x.js → chunk-22d3qg4x.js} +2 -2
- package/dist/{chunk-mmagke4x.js.map → chunk-22d3qg4x.js.map} +3 -3
- package/dist/{chunk-m2vh8gh0.js → chunk-26qet7wh.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-26qet7wh.js.map} +5 -5
- package/dist/{chunk-eqgr6nsa.js → chunk-2by73sm2.js} +982 -184
- package/dist/chunk-2by73sm2.js.map +75 -0
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/chunk-38yvdqzd.js +70 -0
- package/dist/chunk-38yvdqzd.js.map +10 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-wkq3kvzd.js → chunk-48c1z8nj.js} +6 -6
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-3sqqhpr7.js → chunk-4j0sagwv.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-4j0sagwv.js.map} +11 -10
- package/dist/{chunk-d04g36fw.js → chunk-5qqmndhm.js} +1 -1
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/{chunk-f1h34y3r.js → chunk-6gtxshcc.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-6gtxshcc.js.map} +1 -1
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/{chunk-5wtnmpze.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-31kcqmhf.js → chunk-855w9nvw.js} +1 -1
- package/dist/{chunk-e7v3trpz.js → chunk-8a8k38tz.js} +4 -3
- package/dist/chunk-8a8k38tz.js.map +10 -0
- package/dist/{chunk-2ajw5rz0.js → chunk-8p7bze4c.js} +3 -3
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-9whfmsfk.js → chunk-8tqnsx3q.js} +1 -1
- package/dist/{chunk-s3we74h8.js → chunk-9nsjjd44.js} +38 -5
- package/dist/chunk-9nsjjd44.js.map +12 -0
- package/dist/{chunk-hz5d43gn.js → chunk-9vsc919v.js} +14 -6
- package/dist/chunk-9vsc919v.js.map +10 -0
- package/dist/{chunk-waqk73p1.js → chunk-a6fjkcne.js} +185 -341
- package/dist/{chunk-waqk73p1.js.map → chunk-a6fjkcne.js.map} +6 -7
- package/dist/{chunk-s038wa5v.js → chunk-b9qfh2ya.js} +1 -1
- package/dist/{chunk-5taem5aw.js → chunk-bc3y6gff.js} +13 -4
- package/dist/chunk-bc3y6gff.js.map +10 -0
- package/dist/{chunk-w1btn96n.js → chunk-bkmnd7zq.js} +523 -254
- package/dist/chunk-bkmnd7zq.js.map +49 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-w976a4me.js → chunk-czct88ht.js} +28 -4
- package/dist/chunk-czct88ht.js.map +10 -0
- package/dist/{chunk-5kyvrtjh.js → chunk-d9xbwh3h.js} +131 -32
- package/dist/chunk-d9xbwh3h.js.map +13 -0
- package/dist/{chunk-kfee1h52.js → chunk-dfveegqq.js} +28 -8
- package/dist/chunk-dfveegqq.js.map +13 -0
- package/dist/{chunk-2g0r46hy.js → chunk-dhkc9b23.js} +15 -2
- package/dist/chunk-dhkc9b23.js.map +12 -0
- package/dist/chunk-dmnd9ea6.js +106 -0
- package/dist/chunk-dmnd9ea6.js.map +10 -0
- package/dist/{chunk-nz7815t3.js → chunk-e0hnbb1m.js} +27 -2
- package/dist/chunk-e0hnbb1m.js.map +14 -0
- package/dist/chunk-e91fmg6t.js +288 -0
- package/dist/chunk-e91fmg6t.js.map +11 -0
- package/dist/{chunk-a5v4gjdx.js → chunk-e9w4mgdh.js} +308 -220
- package/dist/{chunk-a5v4gjdx.js.map → chunk-e9w4mgdh.js.map} +21 -19
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/{chunk-mbc5hvnj.js → chunk-hkaa807g.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-hkaa807g.js.map} +3 -3
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/{chunk-ga63a3dz.js → chunk-k66rp2hr.js} +3 -3
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/{chunk-a7aa0nzj.js → chunk-kv0kvknv.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-kv0kvknv.js.map} +1 -1
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/chunk-m7b9q5dk.js +234 -0
- package/dist/chunk-m7b9q5dk.js.map +12 -0
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/{chunk-gkv8r794.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-gkv8r794.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-0j3crh1w.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-0j3crh1w.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/chunk-qafng88v.js +225 -0
- package/dist/chunk-qafng88v.js.map +11 -0
- package/dist/chunk-qds484t8.js +1363 -0
- package/dist/chunk-qds484t8.js.map +18 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-kkjfve0t.js → chunk-rt9deb92.js} +4 -3
- package/dist/{chunk-kkjfve0t.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-c7cfe31p.js → chunk-s5n9617r.js} +15 -15
- package/dist/{chunk-c7cfe31p.js.map → chunk-s5n9617r.js.map} +1 -1
- package/dist/{chunk-4bm0caep.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-nh26e7c5.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-nh26e7c5.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/chunk-tqa68kj7.js +1322 -0
- package/dist/chunk-tqa68kj7.js.map +25 -0
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-twfreyxr.js → chunk-vzkxqf8h.js} +23 -13
- package/dist/{chunk-twfreyxr.js.map → chunk-vzkxqf8h.js.map} +6 -6
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-j8thxj7w.js → chunk-w9s23r24.js} +1218 -101
- package/dist/chunk-w9s23r24.js.map +30 -0
- package/dist/{chunk-fwsvshr5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-fwsvshr5.js.map → chunk-wa05txmk.js.map} +3 -3
- package/dist/chunk-whbwf3np.js +12 -0
- package/dist/chunk-whbwf3np.js.map +10 -0
- package/dist/{chunk-t5608tkq.js → chunk-yv8hv4wq.js} +3 -1
- package/dist/{chunk-t5608tkq.js.map → chunk-yv8hv4wq.js.map} +3 -3
- package/dist/{chunk-dsv783c3.js → chunk-z0t4p2sk.js} +169 -53
- package/dist/{chunk-dsv783c3.js.map → chunk-z0t4p2sk.js.map} +7 -7
- package/dist/connectors/builders.d.ts +2 -2
- package/dist/connectors/builders.d.ts.map +1 -1
- package/dist/connectors/connections/access.d.ts +11 -0
- package/dist/connectors/connections/access.d.ts.map +1 -0
- package/dist/connectors/connections/contracts.d.ts +6 -1
- package/dist/connectors/connections/contracts.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +1 -1
- package/dist/connectors/connections/runs.d.ts +6 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +25 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/views.d.ts +1 -1
- package/dist/connectors/connections/views.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/service.d.ts +3 -0
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +21 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +12 -6
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/ingest-flush-batch.d.ts +59 -0
- package/dist/datasets/ingest-flush-batch.d.ts.map +1 -0
- package/dist/datasets/ingest-flush-job.d.ts +33 -0
- package/dist/datasets/ingest-flush-job.d.ts.map +1 -0
- package/dist/datasets/ingest-flush.d.ts +66 -0
- package/dist/datasets/ingest-flush.d.ts.map +1 -0
- package/dist/datasets/produced-version.d.ts +21 -0
- package/dist/datasets/produced-version.d.ts.map +1 -0
- package/dist/datasets/write.d.ts +22 -1
- package/dist/datasets/write.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -4
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/internal.js +5 -4
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/types.d.ts +2 -3
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/capability.d.ts +8 -2
- package/dist/error-reporting/capability.d.ts.map +1 -1
- package/dist/error-reporting/internal.d.ts +1 -1
- package/dist/error-reporting/internal.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +17 -5
- package/dist/error-reporting/internal.js.map +1 -1
- package/dist/error-reporting/reporter.d.ts.map +1 -1
- package/dist/error-reporting/reports.d.ts +55 -0
- package/dist/error-reporting/reports.d.ts.map +1 -1
- package/dist/error-reporting/types.d.ts +82 -1
- package/dist/error-reporting/types.d.ts.map +1 -1
- package/dist/errors/catalog.d.ts +5 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts +1 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +5 -5
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/types/artifacts.d.ts +38 -0
- package/dist/events/types/artifacts.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/events/types/users.d.ts +5 -2
- package/dist/events/types/users.d.ts.map +1 -1
- package/dist/execution/agent.js +57 -51
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +10 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +6 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -1
- package/dist/execution/object-reader-security.d.ts +9 -2
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +55 -49
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +49 -43
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +95 -87
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/errors.d.ts +15 -0
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +3 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +16 -10
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/maintenance.d.ts +88 -0
- package/dist/lake-storage/maintenance.d.ts.map +1 -0
- package/dist/lake-storage/merge.d.ts +3 -1
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +23 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/maintenance/heartbeat.d.ts +5 -0
- package/dist/maintenance/heartbeat.d.ts.map +1 -0
- package/dist/maintenance/index.d.ts +4 -2
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +515 -0
- package/dist/maintenance/index.js.map +16 -0
- package/dist/maintenance/lake-retention-status.d.ts +36 -0
- package/dist/maintenance/lake-retention-status.d.ts.map +1 -0
- package/dist/maintenance/lake-retention.d.ts +84 -0
- package/dist/maintenance/lake-retention.d.ts.map +1 -0
- package/dist/maintenance/loop.d.ts +95 -0
- package/dist/maintenance/loop.d.ts.map +1 -0
- package/dist/maintenance/ontology-maintenance.d.ts +17 -16
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/passes/cron-pass.d.ts +21 -0
- package/dist/maintenance/passes/cron-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/directory-pass.d.ts +12 -0
- package/dist/maintenance/passes/directory-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ingest-pass.d.ts +26 -0
- package/dist/maintenance/passes/ingest-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts +38 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts +20 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ontology-pass.d.ts +8 -0
- package/dist/maintenance/passes/ontology-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/projections-pass.d.ts +26 -0
- package/dist/maintenance/passes/projections-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-pass.d.ts +6 -0
- package/dist/maintenance/passes/recovery-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-passes.d.ts +24 -0
- package/dist/maintenance/passes/recovery-passes.d.ts.map +1 -0
- package/dist/maintenance/passes/runs-pass.d.ts +6 -0
- package/dist/maintenance/passes/runs-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/triggers-pass.d.ts +41 -0
- package/dist/maintenance/passes/triggers-pass.d.ts.map +1 -0
- package/dist/maintenance/status.d.ts +19 -0
- package/dist/maintenance/status.d.ts.map +1 -0
- package/dist/maintenance/types.d.ts +25 -24
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/model.d.ts +11 -2
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/edits/artifact-refs.d.ts +33 -0
- package/dist/materializer/edits/artifact-refs.d.ts.map +1 -0
- package/dist/materializer/edits/commit.d.ts.map +1 -1
- package/dist/materializer/edits/operations.d.ts +7 -1
- package/dist/materializer/edits/operations.d.ts.map +1 -1
- package/dist/materializer/edits/plan.d.ts.map +1 -1
- package/dist/materializer/execution/work-records.d.ts +6 -0
- package/dist/materializer/execution/work-records.d.ts.map +1 -1
- package/dist/materializer/index.js +30 -27
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/materializer/telemetry/plan.d.ts.map +1 -1
- package/dist/models/execution/index.js +29 -26
- package/dist/models/execution/index.js.map +1 -1
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +58 -53
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/materializer-adapter.d.ts +4 -3
- package/dist/objects/materializer-adapter.d.ts.map +1 -1
- package/dist/objects/object/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/upsert.d.ts.map +1 -1
- package/dist/objects/query/index.js +28 -25
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +3 -1
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/scalar-values.d.ts.map +1 -1
- package/dist/objects/runtime-batch.d.ts +2 -0
- package/dist/objects/runtime-batch.d.ts.map +1 -1
- package/dist/ontology/artifact-ref.d.ts +36 -0
- package/dist/ontology/artifact-ref.d.ts.map +1 -0
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +3 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +8 -5
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -0
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.js +7 -6
- package/dist/ontology/internal.js.map +1 -1
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/primitives.d.ts.map +1 -1
- package/dist/ontology/reference-values.d.ts +10 -0
- package/dist/ontology/reference-values.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +6 -1
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/registry.d.ts +9 -1
- package/dist/ontology/registry.d.ts.map +1 -1
- package/dist/ontology/types.d.ts +2 -1
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/user-ref.d.ts +16 -0
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/ontology/validation/normalize.d.ts.map +1 -1
- package/dist/ontology/validation/properties.d.ts.map +1 -1
- package/dist/ontology/validation/schema.d.ts.map +1 -1
- package/dist/pending-tasks.d.ts +17 -0
- package/dist/pending-tasks.d.ts.map +1 -0
- package/dist/pipelines/index.js +36 -33
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/run-dispatch.d.ts +6 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/predicates/types.d.ts +4 -0
- package/dist/predicates/types.d.ts.map +1 -1
- package/dist/projections/builders.d.ts +13 -11
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/internal.js +29 -26
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -2
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +6 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +55 -2
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +22 -5
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +6 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +51 -30
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/sixb.d.ts +6 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +8 -7
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +0 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +3 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/schedules/index.js +9 -11
- package/dist/schedules/index.js.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/shared/backoff.d.ts +12 -0
- package/dist/shared/backoff.d.ts.map +1 -0
- package/dist/shared/duration.d.ts +3 -0
- package/dist/shared/duration.d.ts.map +1 -0
- package/dist/shared/params/artifact-refs.d.ts +19 -0
- package/dist/shared/params/artifact-refs.d.ts.map +1 -0
- package/dist/shares/guest-name.d.ts +8 -0
- package/dist/shares/guest-name.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +1 -0
- package/dist/shares/internal.d.ts.map +1 -1
- package/dist/shares/internal.js +68 -27
- package/dist/shares/internal.js.map +3 -3
- package/dist/shares/session-protocol.d.ts +13 -0
- package/dist/shares/session-protocol.d.ts.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/artifacts/errors.d.ts +9 -4
- package/dist/storage/artifacts/errors.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +27 -4
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +39 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +328 -39
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts +2 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/identities.d.ts +4 -0
- package/dist/storage/auth/in-memory/identities.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +3 -1
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/users.d.ts.map +1 -1
- package/dist/storage/auth/index.d.ts +1 -1
- package/dist/storage/auth/index.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +39 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts.map +1 -1
- package/dist/storage/connector-connections/index.d.ts +1 -1
- package/dist/storage/connector-connections/index.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/runs.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/shared.d.ts +12 -2
- package/dist/storage/connector-connections/provider/shared.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.d.ts +1 -0
- package/dist/storage/connector-connections/provider.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +21 -5
- package/dist/storage/connector-connections/provider.js.map +5 -5
- package/dist/storage/connector-connections/types.d.ts +1 -1
- package/dist/storage/connector-connections/types.d.ts.map +1 -1
- package/dist/storage/dataset-ingest/codec.d.ts +6 -0
- package/dist/storage/dataset-ingest/codec.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts +28 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/index.d.ts +4 -0
- package/dist/storage/dataset-ingest/index.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.d.ts +157 -0
- package/dist/storage/dataset-ingest/provider.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.js +17 -0
- package/dist/storage/dataset-ingest/provider.js.map +9 -0
- package/dist/storage/dataset-ingest/types.d.ts +188 -0
- package/dist/storage/dataset-ingest/types.d.ts.map +1 -0
- package/dist/storage/file-upload-sessions/provider.js +12 -11
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts +12 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +18 -11
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +55 -45
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +4 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +81 -5
- package/dist/storage/internal.js.map +4 -3
- package/dist/storage/lake-retention-runs/in-memory.d.ts +11 -0
- package/dist/storage/lake-retention-runs/in-memory.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/index.d.ts +3 -0
- package/dist/storage/lake-retention-runs/index.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/types.d.ts +21 -0
- package/dist/storage/lake-retention-runs/types.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts +3 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts +30 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/storage.d.ts +15 -1
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +18 -1
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +20 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider-work.d.ts +7 -1
- package/dist/storage/ontology/provider-work.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts +8 -2
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/index.d.ts +1 -1
- package/dist/storage/pipeline-runs/index.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +2 -2
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/types.d.ts +26 -6
- package/dist/storage/pipeline-runs/types.d.ts.map +1 -1
- package/dist/storage/projection-runs/errors.d.ts +6 -0
- package/dist/storage/projection-runs/errors.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +5 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +2 -2
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +1 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/projection-runs/types.d.ts +16 -0
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/run-claim.d.ts +132 -0
- package/dist/storage/run-claim.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/share-sessions/in-memory.d.ts +2 -1
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -1
- package/dist/storage/share-sessions/index.d.ts +1 -1
- package/dist/storage/share-sessions/index.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.d.ts +1 -1
- package/dist/storage/share-sessions/provider.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.js +4 -2
- package/dist/storage/share-sessions/provider.js.map +1 -1
- package/dist/storage/share-sessions/record.d.ts +2 -1
- package/dist/storage/share-sessions/record.d.ts.map +1 -1
- package/dist/storage/share-sessions/types.d.ts +17 -1
- package/dist/storage/share-sessions/types.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +10 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/index.d.ts +1 -1
- package/dist/storage/sync-runs/index.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +2 -2
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -1
- package/dist/storage/sync-runs/types.d.ts +29 -3
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +12 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/in-memory.d.ts +2 -1
- package/dist/storage/webhook-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/webhook-runs/index.d.ts +2 -2
- package/dist/storage/webhook-runs/index.d.ts.map +1 -1
- package/dist/storage/webhook-runs/types.d.ts +33 -2
- package/dist/storage/webhook-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +6 -3
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/index.d.ts +1 -1
- package/dist/storage/workflow-runs/index.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +12 -11
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +11 -28
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +37 -34
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/artifact-holders-contract.d.ts +15 -0
- package/dist/testing/artifact-holders-contract.d.ts.map +1 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/broker-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/dataset-ingest-storage-contract.d.ts +11 -0
- package/dist/testing/dataset-ingest-storage-contract.d.ts.map +1 -0
- package/dist/testing/dataset-sequence-contract.d.ts +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -1
- package/dist/testing/execution.d.ts.map +1 -1
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6244 -3191
- package/dist/testing/index.js.map +28 -19
- package/dist/testing/lake-retention-run-storage-contract.d.ts +9 -0
- package/dist/testing/lake-retention-run-storage-contract.d.ts.map +1 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts +9 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts.map +1 -0
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/pipeline-execution.d.ts.map +1 -1
- package/dist/testing/pipeline-run-read-contract.d.ts +13 -0
- package/dist/testing/pipeline-run-read-contract.d.ts.map +1 -0
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/run-claim-storage-contract.d.ts +12 -0
- package/dist/testing/run-claim-storage-contract.d.ts.map +1 -0
- package/dist/testing/run-claim.d.ts +30 -0
- package/dist/testing/run-claim.d.ts.map +1 -0
- package/dist/testing/run-recovery-contract.d.ts +49 -0
- package/dist/testing/run-recovery-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -1
- package/dist/testing/stored-artifacts.d.ts +10 -0
- package/dist/testing/stored-artifacts.d.ts.map +1 -0
- package/dist/testing/sync-execution.d.ts.map +1 -1
- package/dist/testing/webhook-execution.d.ts +1 -1
- package/dist/testing/webhook-execution.d.ts.map +1 -1
- package/dist/testing/webhook-run-storage-contract.d.ts.map +1 -1
- package/dist/users/execution.d.ts +18 -1
- package/dist/users/execution.d.ts.map +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/users/index.d.ts.map +1 -1
- package/dist/webhooks/delivery-lease.d.ts +13 -0
- package/dist/webhooks/delivery-lease.d.ts.map +1 -0
- package/dist/webhooks/internal.d.ts +2 -0
- package/dist/webhooks/internal.d.ts.map +1 -1
- package/dist/webhooks/internal.js +67 -35
- package/dist/webhooks/internal.js.map +5 -4
- package/dist/webhooks/run-admission.d.ts.map +1 -1
- package/dist/workers/index.d.ts +5 -1
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +193 -58
- package/dist/workers/index.js.map +8 -7
- package/dist/workers/job-ids.d.ts +17 -0
- package/dist/workers/job-ids.d.ts.map +1 -0
- package/dist/workers/lost-projection-runs.d.ts +26 -0
- package/dist/workers/lost-projection-runs.d.ts.map +1 -0
- package/dist/workers/lost-runs.d.ts +51 -0
- package/dist/workers/lost-runs.d.ts.map +1 -0
- package/dist/workers/queue-delivery.d.ts.map +1 -1
- package/dist/workers/queue-worker.d.ts +1 -2
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts +90 -0
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -0
- package/dist/workers/run-lease.d.ts +25 -0
- package/dist/workers/run-lease.d.ts.map +1 -0
- package/dist/workers/run-worker.d.ts +95 -0
- package/dist/workers/run-worker.d.ts.map +1 -0
- package/dist/workflows/index.js +63 -57
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/dist/workflows/run-dispatch.d.ts +6 -1
- package/dist/workflows/run-dispatch.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/actions/request.ts +24 -7
- package/src/actions/run/executor.ts +9 -42
- package/src/actions/types/context.ts +8 -3
- package/src/agents/execution.ts +10 -2
- package/src/agents/fork.ts +12 -4
- package/src/agents/index.ts +7 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-http.ts +4 -0
- package/src/agents/run-session-serve.ts +10 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/validation.ts +3 -0
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +149 -0
- package/src/artifacts/frames/runtime.ts +317 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +28 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/broker/in-memory.ts +33 -6
- package/src/broker/types.ts +4 -0
- package/src/connectors/builders.ts +34 -2
- package/src/connectors/connections/access.ts +83 -0
- package/src/connectors/connections/contracts.ts +6 -1
- package/src/connectors/connections/execution.ts +2 -2
- package/src/connectors/connections/runs.ts +51 -2
- package/src/connectors/connections/service.ts +208 -41
- package/src/connectors/connections/views.ts +11 -4
- package/src/connectors/execution.ts +27 -3
- package/src/connectors/index.ts +2 -0
- package/src/connectors/service.ts +12 -0
- package/src/connectors/types.ts +37 -2
- package/src/datasets/execution.ts +74 -37
- package/src/datasets/ingest-flush-batch.ts +289 -0
- package/src/datasets/ingest-flush-job.ts +112 -0
- package/src/datasets/ingest-flush.ts +377 -0
- package/src/datasets/produced-version.ts +55 -0
- package/src/datasets/write.ts +65 -11
- package/src/deploy/services.ts +1 -1
- package/src/deploy/types.ts +2 -3
- package/src/deploy/validation.ts +1 -0
- package/src/error-reporting/capability.ts +66 -0
- package/src/error-reporting/internal.ts +12 -0
- package/src/error-reporting/reporter.ts +11 -35
- package/src/error-reporting/reports.ts +167 -0
- package/src/error-reporting/types.ts +99 -0
- package/src/errors/catalog.ts +6 -0
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +77 -28
- package/src/events/index.ts +3 -0
- package/src/events/scope.ts +2 -0
- package/src/events/types/artifacts.ts +40 -0
- package/src/events/types/index.ts +3 -0
- package/src/events/types/users.ts +5 -2
- package/src/execution/authorized-object-reader.ts +34 -0
- package/src/execution/object-reader-clearance.ts +31 -0
- package/src/execution/object-reader-security.ts +33 -13
- package/src/http/api-routes.ts +105 -4
- package/src/index.ts +22 -4
- package/src/lake-storage/errors.ts +21 -0
- package/src/lake-storage/index.ts +9 -1
- package/src/lake-storage/maintenance.ts +93 -0
- package/src/lake-storage/merge.ts +3 -1
- package/src/lake-storage/source-ordering.ts +28 -2
- package/src/lake-storage/types.ts +14 -0
- package/src/maintenance/heartbeat.ts +14 -0
- package/src/maintenance/index.ts +5 -3
- package/src/maintenance/lake-retention-status.ts +81 -0
- package/src/maintenance/lake-retention.ts +347 -0
- package/src/maintenance/loop.ts +365 -0
- package/src/maintenance/ontology-maintenance.ts +76 -229
- package/src/maintenance/passes/cron-pass.ts +217 -0
- package/src/maintenance/passes/directory-pass.ts +22 -0
- package/src/maintenance/passes/ingest-pass.ts +94 -0
- package/src/maintenance/passes/lake-change-feed.ts +112 -0
- package/src/maintenance/passes/lake-retention-pass.ts +71 -0
- package/src/maintenance/passes/ontology-pass.ts +19 -0
- package/src/maintenance/passes/projections-pass.ts +238 -0
- package/src/maintenance/passes/recovery-pass.ts +17 -0
- package/src/maintenance/passes/recovery-passes.ts +39 -0
- package/src/maintenance/passes/runs-pass.ts +12 -0
- package/src/maintenance/passes/triggers-pass.ts +332 -0
- package/src/maintenance/status.ts +75 -0
- package/src/maintenance/types.ts +27 -25
- package/src/materialization/model.ts +33 -21
- package/src/materializer/README.md +13 -2
- package/src/materializer/edits/artifact-refs.ts +140 -0
- package/src/materializer/edits/commit.ts +20 -7
- package/src/materializer/edits/operations.ts +23 -7
- package/src/materializer/edits/plan.ts +2 -0
- package/src/materializer/execution/work-records.ts +61 -0
- package/src/materializer/projections/replacement-plan.ts +2 -0
- package/src/materializer/shared/normalize.ts +14 -0
- package/src/materializer/telemetry/plan.ts +2 -0
- package/src/objects/artifact-refs.ts +34 -0
- package/src/objects/materializer-adapter.ts +8 -3
- package/src/objects/object/upsert-batch.ts +7 -0
- package/src/objects/object/upsert.ts +11 -2
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/runtime-batch.ts +8 -1
- package/src/objects/vectors/README.md +4 -4
- package/src/ontology/artifact-ref.ts +83 -0
- package/src/ontology/docs-markdown.ts +17 -0
- package/src/ontology/index.ts +3 -1
- package/src/ontology/inference/index.ts +2 -0
- package/src/ontology/json-schema.ts +13 -0
- package/src/ontology/primitives.ts +14 -0
- package/src/ontology/reference-values.ts +62 -0
- package/src/ontology/refs.ts +7 -1
- package/src/ontology/registry.ts +26 -1
- package/src/ontology/types.ts +2 -0
- package/src/ontology/user-ref.ts +35 -45
- package/src/ontology/validation/normalize.ts +13 -0
- package/src/ontology/validation/properties.ts +9 -0
- package/src/ontology/validation/schema.ts +12 -0
- package/src/pending-tasks.ts +51 -0
- package/src/pipelines/run-dispatch.ts +120 -238
- package/src/predicates/types.ts +2 -1
- package/src/projections/builders.ts +28 -13
- package/src/projections/run-dispatch.ts +1 -1
- package/src/projections/types.ts +1 -1
- package/src/projections/validation.ts +22 -8
- package/src/queues/in-memory.ts +50 -3
- package/src/queues/index.ts +4 -0
- package/src/queues/types.ts +68 -1
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +118 -13
- package/src/runtime/index.ts +0 -1
- package/src/runtime/internal.ts +13 -0
- package/src/runtime/ontology-mutations.ts +1 -1
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/shared/backoff.ts +34 -0
- package/src/shared/duration.ts +15 -0
- package/src/shared/params/artifact-refs.ts +42 -0
- package/src/shares/compiler.ts +1 -1
- package/src/shares/guest-name.ts +20 -0
- package/src/shares/internal.ts +1 -0
- package/src/shares/session-protocol.ts +63 -0
- package/src/storage/artifacts/errors.ts +10 -2
- package/src/storage/artifacts/in-memory.ts +579 -96
- package/src/storage/artifacts/index.ts +22 -1
- package/src/storage/artifacts/record.ts +255 -11
- package/src/storage/artifacts/types.ts +343 -40
- package/src/storage/auth/in-memory/auth-storage.ts +42 -5
- package/src/storage/auth/in-memory/identities.ts +16 -0
- package/src/storage/auth/in-memory/shared.ts +15 -0
- package/src/storage/auth/in-memory/users.ts +17 -16
- package/src/storage/auth/index.ts +3 -0
- package/src/storage/auth/types.ts +38 -0
- package/src/storage/connector-connections/in-memory.ts +4 -1
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/runs.ts +3 -0
- package/src/storage/connector-connections/provider/shared.ts +30 -0
- package/src/storage/connector-connections/provider.ts +4 -0
- package/src/storage/connector-connections/types.ts +1 -0
- package/src/storage/dataset-ingest/codec.ts +90 -0
- package/src/storage/dataset-ingest/in-memory.ts +277 -0
- package/src/storage/dataset-ingest/index.ts +16 -0
- package/src/storage/dataset-ingest/provider.ts +592 -0
- package/src/storage/dataset-ingest/types.ts +191 -0
- package/src/storage/in-memory/index.ts +33 -0
- package/src/storage/index.ts +65 -5
- package/src/storage/internal.ts +20 -0
- package/src/storage/lake-retention-runs/in-memory.ts +22 -0
- package/src/storage/lake-retention-runs/index.ts +2 -0
- package/src/storage/lake-retention-runs/types.ts +19 -0
- package/src/storage/maintenance-heartbeats/in-memory.ts +24 -0
- package/src/storage/maintenance-heartbeats/index.ts +7 -0
- package/src/storage/maintenance-heartbeats/record.ts +50 -0
- package/src/storage/maintenance-heartbeats/types.ts +30 -0
- package/src/storage/objects/in-memory/query.ts +1 -0
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/read-scope.ts +1 -0
- package/src/storage/objects/types.ts +16 -1
- package/src/storage/ontology/in-memory/materializations.ts +8 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +4 -1
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +18 -0
- package/src/storage/ontology/provider-work.ts +39 -0
- package/src/storage/pipeline-runs/in-memory.ts +97 -24
- package/src/storage/pipeline-runs/index.ts +0 -1
- package/src/storage/pipeline-runs/provider.ts +1 -1
- package/src/storage/pipeline-runs/transitions.ts +7 -4
- package/src/storage/pipeline-runs/types.ts +33 -7
- package/src/storage/projection-runs/errors.ts +10 -0
- package/src/storage/projection-runs/in-memory.ts +56 -1
- package/src/storage/projection-runs/index.ts +2 -1
- package/src/storage/projection-runs/lifecycle.ts +9 -1
- package/src/storage/projection-runs/types.ts +20 -1
- package/src/storage/run-claim.ts +224 -0
- package/src/storage/share-sessions/in-memory.ts +21 -0
- package/src/storage/share-sessions/index.ts +1 -0
- package/src/storage/share-sessions/provider.ts +1 -0
- package/src/storage/share-sessions/record.ts +28 -0
- package/src/storage/share-sessions/types.ts +19 -1
- package/src/storage/sync-runs/in-memory.ts +109 -29
- package/src/storage/sync-runs/index.ts +1 -1
- package/src/storage/sync-runs/transitions.ts +7 -4
- package/src/storage/sync-runs/types.ts +36 -3
- package/src/storage/types.ts +15 -5
- package/src/storage/webhook-runs/in-memory.ts +26 -2
- package/src/storage/webhook-runs/index.ts +3 -1
- package/src/storage/webhook-runs/types.ts +44 -3
- package/src/storage/workflow-runs/in-memory.ts +50 -36
- package/src/storage/workflow-runs/index.ts +0 -2
- package/src/storage/workflow-runs/types.ts +18 -30
- package/src/syncs/run-dispatch.ts +118 -239
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/artifact-holders-contract.ts +392 -0
- package/src/testing/artifact-storage-contract.ts +1205 -151
- package/src/testing/auth-storage-contract.ts +228 -1
- package/src/testing/broker-contract.ts +56 -0
- package/src/testing/connector-connection-storage-contract.ts +94 -5
- package/src/testing/dataset-ingest-storage-contract.ts +480 -0
- package/src/testing/dataset-sequence-contract.ts +97 -12
- package/src/testing/execution.ts +23 -0
- package/src/testing/index.ts +31 -0
- package/src/testing/lake-retention-run-storage-contract.ts +75 -0
- package/src/testing/maintenance-heartbeat-storage-contract.ts +99 -0
- package/src/testing/object-query-contract.ts +93 -0
- package/src/testing/pipeline-execution.ts +3 -1
- package/src/testing/pipeline-run-read-contract.ts +123 -0
- package/src/testing/projection-run-storage-contract.ts +113 -0
- package/src/testing/queues-contract.ts +112 -0
- package/src/testing/run-claim-storage-contract.ts +736 -0
- package/src/testing/run-claim.ts +69 -0
- package/src/testing/run-recovery-contract.ts +176 -0
- package/src/testing/share-session-storage-contract.ts +43 -0
- package/src/testing/stored-artifacts.ts +43 -0
- package/src/testing/sync-execution.ts +3 -1
- package/src/testing/webhook-execution.ts +7 -2
- package/src/testing/webhook-run-storage-contract.ts +102 -5
- package/src/users/execution.ts +50 -2
- package/src/users/index.ts +1 -0
- package/src/webhooks/delivery-lease.ts +40 -0
- package/src/webhooks/internal.ts +2 -0
- package/src/webhooks/run-admission.ts +22 -9
- package/src/workers/README.md +169 -0
- package/src/workers/index.ts +9 -1
- package/src/workers/job-ids.ts +31 -0
- package/src/workers/lost-projection-runs.ts +114 -0
- package/src/workers/lost-runs.ts +397 -0
- package/src/workers/queue-delivery.ts +2 -14
- package/src/workers/queue-worker.ts +9 -17
- package/src/workers/queued-run-dispatch.ts +308 -0
- package/src/workers/run-lease.ts +46 -0
- package/src/workers/run-worker.ts +312 -0
- package/src/workers/worker.ts +4 -17
- package/src/workflows/request.ts +2 -0
- package/src/workflows/run-dispatch.ts +22 -4
- package/src/workflows/snapshot.ts +1 -0
- package/dist/chunk-2g0r46hy.js.map +0 -12
- package/dist/chunk-3fqxbn31.js +0 -107
- package/dist/chunk-3fqxbn31.js.map +0 -11
- package/dist/chunk-4s753g3k.js +0 -314
- package/dist/chunk-4s753g3k.js.map +0 -12
- package/dist/chunk-5kyvrtjh.js.map +0 -12
- package/dist/chunk-5taem5aw.js.map +0 -10
- package/dist/chunk-65abf64x.js +0 -13
- package/dist/chunk-65abf64x.js.map +0 -10
- package/dist/chunk-9x8dybsb.js.map +0 -10
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-c706qvyc.js +0 -299
- package/dist/chunk-c706qvyc.js.map +0 -11
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-eqgr6nsa.js.map +0 -72
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-j8thxj7w.js.map +0 -22
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-kwfhd1g0.js +0 -144
- package/dist/chunk-kwfhd1g0.js.map +0 -13
- package/dist/chunk-nz7815t3.js.map +0 -14
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-w1btn96n.js.map +0 -44
- package/dist/chunk-w976a4me.js.map +0 -10
- package/dist/chunk-wkq3kvzd.js.map +0 -10
- package/dist/chunk-wrjx1fqz.js +0 -587
- package/dist/chunk-wrjx1fqz.js.map +0 -18
- package/dist/chunk-yw9pyg66.js +0 -143
- package/dist/chunk-yw9pyg66.js.map +0 -11
- package/dist/chunk-z8fx5cgb.js.map +0 -11
- package/dist/scheduler/runtime.d.ts +0 -40
- package/dist/scheduler/runtime.d.ts.map +0 -1
- package/dist/workers/unstarted-run.d.ts +0 -10
- package/dist/workers/unstarted-run.d.ts.map +0 -1
- package/src/scheduler/runtime.ts +0 -214
- package/src/workers/unstarted-run.ts +0 -18
- /package/dist/{chunk-80gym75n.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-d04g36fw.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-5wtnmpze.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-31kcqmhf.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-2ajw5rz0.js.map → chunk-8p7bze4c.js.map} +0 -0
- /package/dist/{chunk-9whfmsfk.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-jjmggm9a.js.map → chunk-fe6r7yhg.js.map} +0 -0
- /package/dist/{chunk-165c9wm6.js.map → chunk-g2ph4873.js.map} +0 -0
- /package/dist/{chunk-ga63a3dz.js.map → chunk-k66rp2hr.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-4bm0caep.js.map → chunk-smnt672s.js.map} +0 -0
- /package/dist/{chunk-21q0j5f2.js.map → chunk-stmxh0hv.js.map} +0 -0
- /package/dist/{chunk-ff5xkv0p.js.map → chunk-tfzvjdms.js.map} +0 -0
- /package/dist/{chunk-6b61s40c.js.map → chunk-w3t94hm6.js.map} +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { ArtifactKind } from "../../artifacts/kinds"
|
|
2
2
|
import type { ArtifactOutline } from "../../artifacts/outline"
|
|
3
3
|
import type { ArtifactReference } from "../../artifacts/references"
|
|
4
|
+
import type { ArtifactThemeMode } from "../../artifacts/theme"
|
|
4
5
|
import type { Principal } from "../../auth"
|
|
5
6
|
import type { FileRef } from "../../blob-storage"
|
|
6
7
|
|
|
7
|
-
export type { ArtifactKind, ArtifactOutline, ArtifactReference }
|
|
8
|
+
export type { ArtifactKind, ArtifactOutline, ArtifactReference, ArtifactThemeMode }
|
|
8
9
|
|
|
9
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* A versioned document, sheet, deck, or file. Its kind never changes. Its latest version is open
|
|
12
|
+
* until someone creates a version, which freezes it: writes replace an open version's content, and
|
|
13
|
+
* the first write after a freeze opens the next version.
|
|
14
|
+
*/
|
|
10
15
|
export interface ArtifactRecord {
|
|
11
16
|
readonly projectId: string
|
|
12
17
|
readonly id: string
|
|
@@ -16,9 +21,27 @@ export interface ArtifactRecord {
|
|
|
16
21
|
/** Who created the artifact; reading and publishing are decided from it. */
|
|
17
22
|
readonly owner: Principal
|
|
18
23
|
readonly latestVersion: number
|
|
24
|
+
/**
|
|
25
|
+
* Counts the artifact's changes: a write, a freeze, a restore. It only grows, so content read at
|
|
26
|
+
* one revision is that revision's for good. Always the latest version's revision.
|
|
27
|
+
*/
|
|
28
|
+
readonly revision: number
|
|
19
29
|
readonly createdAt: Date
|
|
20
|
-
/** When
|
|
30
|
+
/** When it last changed. */
|
|
21
31
|
readonly updatedAt: Date
|
|
32
|
+
/**
|
|
33
|
+
* The content as a Yjs document: what everyone editing a canvas live shares, and what every
|
|
34
|
+
* write to it merges into. A write that changes the content stores one with it; one that stores
|
|
35
|
+
* none leaves this one behind, at the revision whose content it holds.
|
|
36
|
+
*/
|
|
37
|
+
readonly document?: ArtifactDocument
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** An artifact's Yjs document, encoded whole in a blob, and the revision whose content it holds. */
|
|
41
|
+
export interface ArtifactDocument {
|
|
42
|
+
readonly file: FileRef
|
|
43
|
+
/** The artifact's revision when it was stored, or when a freeze kept its content since. */
|
|
44
|
+
readonly revision: number
|
|
22
45
|
}
|
|
23
46
|
|
|
24
47
|
/** One file of a version, at its path inside the artifact. */
|
|
@@ -29,35 +52,51 @@ export interface ArtifactFile {
|
|
|
29
52
|
}
|
|
30
53
|
|
|
31
54
|
/**
|
|
32
|
-
* Where a version was
|
|
33
|
-
* in that thread.
|
|
55
|
+
* Where a version's content was last written from: an Agent turn in a thread. Writing from one
|
|
56
|
+
* shares the artifact in that thread.
|
|
34
57
|
*/
|
|
35
58
|
export interface ArtifactOrigin {
|
|
36
59
|
readonly threadId: string
|
|
37
60
|
readonly runId: string
|
|
38
61
|
}
|
|
39
62
|
|
|
40
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* One version. While it is open, the latest, each write replaces its content; once frozen it never
|
|
65
|
+
* changes. An artifact has at most one open version.
|
|
66
|
+
*/
|
|
41
67
|
export interface ArtifactVersionRecord {
|
|
42
68
|
readonly projectId: string
|
|
43
69
|
readonly artifactId: string
|
|
44
70
|
readonly version: number
|
|
71
|
+
/**
|
|
72
|
+
* The artifact's revision when this version last changed. The latest version's is the
|
|
73
|
+
* artifact's, so it moves with every change to the artifact while the version is the latest.
|
|
74
|
+
*/
|
|
75
|
+
readonly revision: number
|
|
45
76
|
readonly title: string
|
|
46
77
|
/** The path of the file the kind renders from, one of `files`. */
|
|
47
78
|
readonly entry: string
|
|
48
79
|
readonly files: readonly ArtifactFile[]
|
|
49
80
|
readonly outline: ArtifactOutline
|
|
50
81
|
readonly references: readonly ArtifactReference[]
|
|
51
|
-
/** Who
|
|
82
|
+
/** Who last wrote its content. */
|
|
52
83
|
readonly author: Principal
|
|
84
|
+
/** Where its content was last written from. */
|
|
53
85
|
readonly origin?: ArtifactOrigin
|
|
86
|
+
/** When the version was opened, by its first write. */
|
|
54
87
|
readonly createdAt: Date
|
|
88
|
+
/** When its content was last written. */
|
|
89
|
+
readonly updatedAt: Date
|
|
90
|
+
/** When someone created the version, which froze it; absent while it is open. */
|
|
91
|
+
readonly frozenAt?: Date
|
|
92
|
+
/** Who created it, with `frozenAt`. */
|
|
93
|
+
readonly frozenBy?: Principal
|
|
55
94
|
}
|
|
56
95
|
|
|
57
|
-
/**
|
|
96
|
+
/** What a write puts in a version: its content, who wrote it, and when (`updatedAt`). */
|
|
58
97
|
export type ArtifactVersionInput = Omit<
|
|
59
98
|
ArtifactVersionRecord,
|
|
60
|
-
"projectId" | "artifactId" | "version"
|
|
99
|
+
"projectId" | "artifactId" | "version" | "revision" | "createdAt" | "frozenAt" | "frozenBy"
|
|
61
100
|
>
|
|
62
101
|
|
|
63
102
|
export interface CreateArtifactInput {
|
|
@@ -65,8 +104,12 @@ export interface CreateArtifactInput {
|
|
|
65
104
|
readonly id: string
|
|
66
105
|
readonly kind: ArtifactKind
|
|
67
106
|
readonly owner: Principal
|
|
68
|
-
/** Becomes version 1. */
|
|
107
|
+
/** Becomes version 1, open, at revision 1. */
|
|
69
108
|
readonly version: ArtifactVersionInput
|
|
109
|
+
/** The Agent turn that creates it: a retry of the turn deletes it, unless it changed since. */
|
|
110
|
+
readonly turnRunId?: string
|
|
111
|
+
/** The content as a Yjs document: the artifact's {@link ArtifactRecord.document}. */
|
|
112
|
+
readonly document?: FileRef
|
|
70
113
|
}
|
|
71
114
|
|
|
72
115
|
export interface PublishArtifactVersionInput {
|
|
@@ -76,10 +119,120 @@ export interface PublishArtifactVersionInput {
|
|
|
76
119
|
readonly kind: ArtifactKind
|
|
77
120
|
readonly version: ArtifactVersionInput
|
|
78
121
|
/**
|
|
79
|
-
* The
|
|
122
|
+
* The revision this content was made from. When the artifact is at another, the write fails
|
|
80
123
|
* with `artifact_moved` rather than replace changes it never saw.
|
|
81
124
|
*/
|
|
82
|
-
readonly
|
|
125
|
+
readonly baseRevision?: number
|
|
126
|
+
/**
|
|
127
|
+
* The Agent turn that writes: its own run, or its parent's for a sub-agent. The turn's first
|
|
128
|
+
* write keeps a restore point of what it replaces, and a retry of the turn undoes its writes.
|
|
129
|
+
*/
|
|
130
|
+
readonly turnRunId?: string
|
|
131
|
+
/** The content as a Yjs document; without it, the artifact's stays behind. */
|
|
132
|
+
readonly document?: FileRef
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface FreezeArtifactVersionInput {
|
|
136
|
+
readonly projectId: string
|
|
137
|
+
readonly artifactId: string
|
|
138
|
+
/** The revision the caller saw: past it, `artifact_moved`, so nobody freezes content unseen. */
|
|
139
|
+
readonly baseRevision?: number
|
|
140
|
+
readonly frozenAt: Date
|
|
141
|
+
/** Who creates the version. */
|
|
142
|
+
readonly frozenBy: Principal
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* What an artifact's latest version held before a change that can be undone: an Agent turn's
|
|
147
|
+
* first write to it, or a restore. It is not a version, and is kept by the revision it holds.
|
|
148
|
+
*/
|
|
149
|
+
export interface ArtifactRestorePointRecord {
|
|
150
|
+
readonly projectId: string
|
|
151
|
+
readonly artifactId: string
|
|
152
|
+
/** The artifact's revision whose content it holds: one restore point per revision at most. */
|
|
153
|
+
readonly revision: number
|
|
154
|
+
/** The version it was taken of, and whether that version was frozen then. */
|
|
155
|
+
readonly version: number
|
|
156
|
+
readonly frozen: boolean
|
|
157
|
+
readonly title: string
|
|
158
|
+
readonly entry: string
|
|
159
|
+
readonly files: readonly ArtifactFile[]
|
|
160
|
+
readonly outline: ArtifactOutline
|
|
161
|
+
readonly references: readonly ArtifactReference[]
|
|
162
|
+
/** Who had last written that content, from where, and when. */
|
|
163
|
+
readonly author: Principal
|
|
164
|
+
readonly origin?: ArtifactOrigin
|
|
165
|
+
readonly updatedAt: Date
|
|
166
|
+
/** What it was taken before: an Agent turn's first write, or a restore. */
|
|
167
|
+
readonly reason: ArtifactRestorePointReason
|
|
168
|
+
/** With `turn`: the turn's run. */
|
|
169
|
+
readonly turnRunId?: string
|
|
170
|
+
/** When it was taken. */
|
|
171
|
+
readonly createdAt: Date
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type ArtifactRestorePointReason = "turn" | "restore"
|
|
175
|
+
|
|
176
|
+
export interface GetArtifactRestorePointInput {
|
|
177
|
+
readonly projectId: string
|
|
178
|
+
readonly artifactId: string
|
|
179
|
+
readonly revision: number
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface RestoreArtifactInput {
|
|
183
|
+
readonly projectId: string
|
|
184
|
+
readonly artifactId: string
|
|
185
|
+
/** The restore point's revision. */
|
|
186
|
+
readonly revision: number
|
|
187
|
+
/** The revision the caller saw: past it, `artifact_moved`. */
|
|
188
|
+
readonly baseRevision?: number
|
|
189
|
+
/** Who restores: the restored content's author from now on. */
|
|
190
|
+
readonly author: Principal
|
|
191
|
+
readonly restoredAt: Date
|
|
192
|
+
/** The restored content as a Yjs document; without it, the artifact's stays behind. */
|
|
193
|
+
readonly document?: FileRef
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** An artifact an Agent turn wrote, and the artifact's revision after the turn's last write. */
|
|
197
|
+
export interface ArtifactTurnWriteRecord {
|
|
198
|
+
readonly artifactId: string
|
|
199
|
+
/** The turn created the artifact. */
|
|
200
|
+
readonly created: boolean
|
|
201
|
+
readonly revision: number
|
|
202
|
+
/**
|
|
203
|
+
* How many changes the turn made to it, creating it included: each moves the revision by one,
|
|
204
|
+
* so a change by anyone else between two of them shows as a revision past the turn's count.
|
|
205
|
+
*/
|
|
206
|
+
readonly writes: number
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface ArtifactTurnInput {
|
|
210
|
+
readonly projectId: string
|
|
211
|
+
/** The turn's run: a conversation's, never a sub-agent's. */
|
|
212
|
+
readonly turnRunId: string
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface UndoArtifactTurnInput extends ArtifactTurnInput {
|
|
216
|
+
/**
|
|
217
|
+
* Whom the turn answered. An artifact the turn created is kept when anyone else commented on it;
|
|
218
|
+
* their comments, and the Agent's for them, don't keep it.
|
|
219
|
+
*/
|
|
220
|
+
readonly requester?: Principal
|
|
221
|
+
/**
|
|
222
|
+
* The Yjs document of each artifact put back, by id, as its turn's restore point holds it: made
|
|
223
|
+
* at the revision the turn's last write left, which is the only one an artifact is put back
|
|
224
|
+
* from. An artifact put back without one leaves its document behind, for the next reader to
|
|
225
|
+
* bring up to the content.
|
|
226
|
+
*/
|
|
227
|
+
readonly documents?: Readonly<Record<string, FileRef>>
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** What undoing a turn's writes changed. */
|
|
231
|
+
export interface UndoneArtifactTurn {
|
|
232
|
+
/** The artifacts put back as they were before the turn, each at a new revision. */
|
|
233
|
+
readonly restored: readonly PublishedArtifactVersion[]
|
|
234
|
+
/** The ids of the artifacts the turn created, deleted. */
|
|
235
|
+
readonly deleted: readonly string[]
|
|
83
236
|
}
|
|
84
237
|
|
|
85
238
|
export interface PublishedArtifactVersion {
|
|
@@ -144,6 +297,12 @@ export interface CopyArtifactInput {
|
|
|
144
297
|
/** The thread the copy is shared in, as long as it lasts: a fork's. */
|
|
145
298
|
readonly threadId: string
|
|
146
299
|
readonly copiedAt?: Date
|
|
300
|
+
/**
|
|
301
|
+
* The outline a copied version takes instead of its own, when it returns one: what the copy's
|
|
302
|
+
* new id changes in it, such as its canvas's render keys. Called with each version as the copy
|
|
303
|
+
* holds it, in the copy's transaction.
|
|
304
|
+
*/
|
|
305
|
+
readonly outlineOf?: (version: ArtifactVersionRecord) => ArtifactOutline | undefined
|
|
147
306
|
}
|
|
148
307
|
|
|
149
308
|
export interface ListReferencingVersionsInput {
|
|
@@ -153,8 +312,9 @@ export interface ListReferencingVersionsInput {
|
|
|
153
312
|
}
|
|
154
313
|
|
|
155
314
|
/**
|
|
156
|
-
* A short-lived link to one version, which a sandboxed frame loads
|
|
157
|
-
*
|
|
315
|
+
* A short-lived link to one version, which a sandboxed frame loads its files through: once the
|
|
316
|
+
* files it serves change, the link serves nothing, so a frame never mixes two contents. Only the
|
|
317
|
+
* SHA-256 of the link's token is stored; the token is the credential.
|
|
158
318
|
*/
|
|
159
319
|
export interface ArtifactFrameGrantRecord {
|
|
160
320
|
readonly projectId: string
|
|
@@ -162,17 +322,25 @@ export interface ArtifactFrameGrantRecord {
|
|
|
162
322
|
readonly tokenHash: string
|
|
163
323
|
readonly artifactId: string
|
|
164
324
|
readonly version: number
|
|
325
|
+
/**
|
|
326
|
+
* The files the frame serves, as a SHA-256 hex of their paths and digests: every file but a
|
|
327
|
+
* canvas's `canvas.json`, so moving a canvas's items keeps its boards' links.
|
|
328
|
+
*/
|
|
329
|
+
readonly filesDigest: string
|
|
165
330
|
/** What the frame may show from other artifacts, decided for its reader when it was issued. */
|
|
166
331
|
readonly targets: readonly ArtifactFrameTarget[]
|
|
167
332
|
readonly createdAt: Date
|
|
168
333
|
readonly expiresAt: Date
|
|
169
334
|
}
|
|
170
335
|
|
|
171
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* An address a version embeds, and the version of its target a frame shows: the one the address
|
|
338
|
+
* pins, a created version that never changes, or `latest`, whatever the target holds now.
|
|
339
|
+
*/
|
|
172
340
|
export interface ArtifactFrameTarget {
|
|
173
341
|
readonly address: string
|
|
174
342
|
readonly artifactId: string
|
|
175
|
-
readonly version: number
|
|
343
|
+
readonly version: number | "latest"
|
|
176
344
|
}
|
|
177
345
|
|
|
178
346
|
export interface FindArtifactFrameGrantInput {
|
|
@@ -186,11 +354,6 @@ export interface DeleteExpiredArtifactFrameGrantsInput {
|
|
|
186
354
|
readonly limit: number
|
|
187
355
|
}
|
|
188
356
|
|
|
189
|
-
export interface DeleteArtifactVersionsByOriginInput {
|
|
190
|
-
readonly projectId: string
|
|
191
|
-
readonly runId: string
|
|
192
|
-
}
|
|
193
|
-
|
|
194
357
|
/** Whose values, kept by which artifact: a page keeps its own for each reader. */
|
|
195
358
|
export interface ArtifactStateScope {
|
|
196
359
|
readonly projectId: string
|
|
@@ -218,24 +381,148 @@ export interface ArtifactStateEntry {
|
|
|
218
381
|
readonly updatedAt: Date
|
|
219
382
|
}
|
|
220
383
|
|
|
384
|
+
/**
|
|
385
|
+
* A picture of a canvas's board in one mode and one size, kept under its render key: what the
|
|
386
|
+
* board shows, in which artifact, as its version's outline names it. Versions that keep a board as
|
|
387
|
+
* it was share its picture.
|
|
388
|
+
*/
|
|
389
|
+
export interface ArtifactBoardPreviewRecord {
|
|
390
|
+
readonly projectId: string
|
|
391
|
+
readonly renderKey: string
|
|
392
|
+
readonly theme: ArtifactThemeMode
|
|
393
|
+
readonly size: ArtifactBoardPreviewSize
|
|
394
|
+
/** A PNG at full size, a WebP when small. */
|
|
395
|
+
readonly file: FileRef
|
|
396
|
+
readonly createdAt: Date
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* `full`: the board at its own size, as it opens. `small`: at most 480 pixels wide, for a canvas
|
|
401
|
+
* that shows many boards at once.
|
|
402
|
+
*/
|
|
403
|
+
export type ArtifactBoardPreviewSize = "full" | "small"
|
|
404
|
+
|
|
405
|
+
export interface ListArtifactBoardPreviewsInput {
|
|
406
|
+
readonly projectId: string
|
|
407
|
+
readonly renderKeys: readonly string[]
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface PutArtifactBoardPreviewsInput {
|
|
411
|
+
readonly projectId: string
|
|
412
|
+
readonly previews: readonly Omit<ArtifactBoardPreviewRecord, "projectId">[]
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* What a comment is about: a canvas's board, an element of it by its address, as
|
|
417
|
+
* `boardElements` writes one, or the artifact itself, at the revision the author saw.
|
|
418
|
+
*/
|
|
419
|
+
export interface ArtifactCommentAnchor {
|
|
420
|
+
readonly board?: string
|
|
421
|
+
readonly element?: string
|
|
422
|
+
/** The element's first words, which name it once it is gone. */
|
|
423
|
+
readonly label?: string
|
|
424
|
+
/**
|
|
425
|
+
* Where on the board its pin is, as fractions of the board's width and height from its top left:
|
|
426
|
+
* where its author clicked.
|
|
427
|
+
*/
|
|
428
|
+
readonly point?: { readonly x: number; readonly y: number }
|
|
429
|
+
readonly revision: number
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* A visitor who opened a shared link to an object that holds the artifact: no account, only the
|
|
434
|
+
* name they typed for their link's session. Comments are the one record a guest writes, so the
|
|
435
|
+
* kind stays here rather than in `Principal`, which is who signed in.
|
|
436
|
+
*/
|
|
437
|
+
export interface ArtifactGuest {
|
|
438
|
+
readonly type: "guest"
|
|
439
|
+
/** The shared link's session they comment from: each session is one guest. */
|
|
440
|
+
readonly id: string
|
|
441
|
+
readonly name: string
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/** Who wrote a comment: someone who signed in, the project's code, or a shared link's guest. */
|
|
445
|
+
export type ArtifactCommentAuthor = Principal | ArtifactGuest
|
|
446
|
+
|
|
447
|
+
/** A comment on an artifact, or a reply to one. */
|
|
448
|
+
export interface ArtifactCommentRecord {
|
|
449
|
+
readonly projectId: string
|
|
450
|
+
readonly artifactId: string
|
|
451
|
+
readonly id: string
|
|
452
|
+
/** The comment this one replies to: a reply takes no replies of its own. */
|
|
453
|
+
readonly parentId?: string
|
|
454
|
+
readonly anchor: ArtifactCommentAnchor
|
|
455
|
+
/** Plain text. */
|
|
456
|
+
readonly body: string
|
|
457
|
+
readonly author: ArtifactCommentAuthor
|
|
458
|
+
/** The Agent's run that wrote it for its author, and that run's conversation. */
|
|
459
|
+
readonly origin?: ArtifactOrigin
|
|
460
|
+
readonly createdAt: Date
|
|
461
|
+
/** When someone marked it resolved, and who; a reply is resolved with what it replies to. */
|
|
462
|
+
readonly resolvedAt?: Date
|
|
463
|
+
readonly resolvedBy?: Principal
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export type CreateArtifactCommentInput = Omit<ArtifactCommentRecord, "resolvedAt" | "resolvedBy">
|
|
467
|
+
|
|
468
|
+
export interface ArtifactCommentKey {
|
|
469
|
+
readonly projectId: string
|
|
470
|
+
readonly artifactId: string
|
|
471
|
+
readonly id: string
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export interface ResolveArtifactCommentInput extends ArtifactCommentKey {
|
|
475
|
+
/** Resolved then, by them; null opens it again. */
|
|
476
|
+
readonly resolved: { readonly at: Date; readonly by: Principal } | null
|
|
477
|
+
}
|
|
478
|
+
|
|
221
479
|
/**
|
|
222
480
|
* Persistence only: who may read or publish, and what a version may contain, are decided in Core
|
|
223
481
|
* before a call reaches storage.
|
|
224
482
|
*/
|
|
225
483
|
export interface ArtifactStorage {
|
|
226
484
|
/**
|
|
227
|
-
* Creates the artifact with its first version, shared in its origin's thread. Throws
|
|
485
|
+
* Creates the artifact with its first version, open, shared in its origin's thread. Throws
|
|
228
486
|
* `artifact_exists` when the id is taken.
|
|
229
487
|
*/
|
|
230
488
|
create(input: CreateArtifactInput): Promise<PublishedArtifactVersion>
|
|
231
489
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
490
|
+
* Writes the latest version's content: in place while it is open, or as the next version, open,
|
|
491
|
+
* when it is frozen. Either way the revision grows, and the artifact is shared in its origin's
|
|
492
|
+
* thread. A turn's first write keeps a restore point of the latest version first.
|
|
493
|
+
*
|
|
494
|
+
* Throws `artifact_not_found`, `artifact_kind_mismatch`, or `artifact_moved` with the latest
|
|
495
|
+
* version, the revision and who last wrote it when `baseRevision` is not the artifact's,
|
|
496
|
+
* checked in the same transaction as the write, so of two writes from one base only the first is
|
|
497
|
+
* stored. A version number is never reused, even after its version is deleted.
|
|
237
498
|
*/
|
|
238
499
|
publish(input: PublishArtifactVersionInput): Promise<PublishedArtifactVersion>
|
|
500
|
+
/**
|
|
501
|
+
* Freezes the open latest version, at a new revision: the next write opens the next version.
|
|
502
|
+
* A frozen latest version is returned as it is, whatever `baseRevision` says. Throws
|
|
503
|
+
* `artifact_not_found`, or `artifact_moved` when the open version changed past `baseRevision`.
|
|
504
|
+
*/
|
|
505
|
+
freeze(input: FreezeArtifactVersionInput): Promise<PublishedArtifactVersion>
|
|
506
|
+
/** Newest first: each artifact keeps its last `ARTIFACT_RESTORE_POINTS`. */
|
|
507
|
+
listRestorePoints(input: GetArtifactInput): Promise<ArtifactRestorePointRecord[]>
|
|
508
|
+
getRestorePoint(input: GetArtifactRestorePointInput): Promise<ArtifactRestorePointRecord | null>
|
|
509
|
+
/**
|
|
510
|
+
* Writes a restore point's content to the latest version, as `publish` writes, after
|
|
511
|
+
* keeping a restore point of what it replaces, so the restore can be undone. Throws
|
|
512
|
+
* `artifact_not_found`, `restore_point_not_found`, or `artifact_moved` past `baseRevision`.
|
|
513
|
+
*/
|
|
514
|
+
restoreTo(input: RestoreArtifactInput): Promise<PublishedArtifactVersion>
|
|
515
|
+
/** The artifacts a turn wrote, its sub-agents' writes among them, by artifact id. */
|
|
516
|
+
listTurnWrites(input: ArtifactTurnInput): Promise<ArtifactTurnWriteRecord[]>
|
|
517
|
+
/**
|
|
518
|
+
* Undoes what a turn wrote, for a retry of it: an artifact only the turn changed since its
|
|
519
|
+
* restore point, as `turnUndoable` says, is put back as that point holds it, and deleted
|
|
520
|
+
* when the turn created it; one anyone else changed, before, between, or after the turn's writes,
|
|
521
|
+
* keeps the changes, its restore point, and the threads it is shared in, and so does one whose
|
|
522
|
+
* version someone created. An artifact put back is no longer shared in the threads the turn alone
|
|
523
|
+
* shared it in, unless it was copied for them. The turn's writes are forgotten.
|
|
524
|
+
*/
|
|
525
|
+
undoTurnWrites(input: UndoArtifactTurnInput): Promise<UndoneArtifactTurn>
|
|
239
526
|
get(input: GetArtifactInput): Promise<ArtifactRecord | null>
|
|
240
527
|
/** Most recently updated first. */
|
|
241
528
|
list(input: ListArtifactsInput): Promise<ListArtifactsResult>
|
|
@@ -243,15 +530,16 @@ export interface ArtifactStorage {
|
|
|
243
530
|
/** Newest first. */
|
|
244
531
|
listVersions(input: ListArtifactVersionsInput): Promise<ListArtifactVersionsResult>
|
|
245
532
|
/**
|
|
246
|
-
* The threads the artifact is shared in, by id: each one
|
|
247
|
-
*
|
|
533
|
+
* The threads the artifact is shared in, by id: each one it was written from, and the one it was
|
|
534
|
+
* copied for.
|
|
248
535
|
*/
|
|
249
536
|
listThreadIds(input: GetArtifactInput): Promise<string[]>
|
|
250
537
|
/**
|
|
251
|
-
* Copies an artifact with every version under its number,
|
|
252
|
-
* artifact shared in `threadId` for as long as it lasts: a fork's copy,
|
|
253
|
-
* still resolve.
|
|
254
|
-
*
|
|
538
|
+
* Copies an artifact with every version under its number, frozen or open as it is, each without
|
|
539
|
+
* its origin, as a new artifact shared in `threadId` for as long as it lasts: a fork's copy,
|
|
540
|
+
* whose `@N` addresses still resolve. Its restore points stay with the source. The files are
|
|
541
|
+
* reused, not copied. Throws `artifact_not_found` without the source and `artifact_exists` when
|
|
542
|
+
* the id is taken.
|
|
255
543
|
*/
|
|
256
544
|
copy(input: CopyArtifactInput): Promise<ArtifactRecord>
|
|
257
545
|
/**
|
|
@@ -279,15 +567,30 @@ export interface ArtifactStorage {
|
|
|
279
567
|
listState(input: ArtifactStateScope): Promise<ArtifactStateEntry[]>
|
|
280
568
|
/** Deletes every value a page keeps for a reader, and returns how many. */
|
|
281
569
|
clearState(input: ArtifactStateScope): Promise<number>
|
|
570
|
+
/** The pictures kept under these render keys, in every mode and size, by key, mode, then size. */
|
|
571
|
+
listBoardPreviews(input: ListArtifactBoardPreviewsInput): Promise<ArtifactBoardPreviewRecord[]>
|
|
282
572
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
573
|
+
* Keeps each picture under its render key, mode, and size. One already kept there stays: the key names
|
|
574
|
+
* what the board shows, so both are pictures of the same page. Deleting an artifact keeps them.
|
|
285
575
|
*/
|
|
286
|
-
|
|
576
|
+
putBoardPreviews(input: PutArtifactBoardPreviewsInput): Promise<void>
|
|
287
577
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
578
|
+
* Adds a comment, or a reply to one. Throws `artifact_not_found`; `comment_not_found` when
|
|
579
|
+
* `parentId` names no comment of the artifact, or a reply; and `artifact_comments_full` past
|
|
580
|
+
* `ARTIFACT_COMMENT_LIMITS.maxComments`, or, for a guest's, past `maxGuestComments` written by
|
|
581
|
+
* guests, both checked in the same transaction as the write.
|
|
291
582
|
*/
|
|
292
|
-
|
|
583
|
+
createComment(input: CreateArtifactCommentInput): Promise<ArtifactCommentRecord>
|
|
584
|
+
getComment(input: ArtifactCommentKey): Promise<ArtifactCommentRecord | null>
|
|
585
|
+
/** Every comment and reply of the artifact, oldest first. */
|
|
586
|
+
listComments(input: GetArtifactInput): Promise<ArtifactCommentRecord[]>
|
|
587
|
+
/** Marks a comment resolved, or opens it again. Null when there is no such comment. */
|
|
588
|
+
resolveComment(input: ResolveArtifactCommentInput): Promise<ArtifactCommentRecord | null>
|
|
589
|
+
/** Deletes a comment and its replies. `false` when there is no such comment. */
|
|
590
|
+
deleteComment(input: ArtifactCommentKey): Promise<boolean>
|
|
591
|
+
/**
|
|
592
|
+
* Deletes the artifact, every version, its restore points, its comments, its frame grants, and
|
|
593
|
+
* what it keeps for its readers. `false` when it does not exist.
|
|
594
|
+
*/
|
|
595
|
+
delete(input: DeleteArtifactInput): Promise<boolean>
|
|
293
596
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuthStorageError } from "../errors"
|
|
2
2
|
import type {
|
|
3
|
+
ApplyDirectoryVerdictInput,
|
|
3
4
|
AuthStorage,
|
|
4
5
|
CompleteDeviceAuthorizationInput,
|
|
5
6
|
CompleteDeviceAuthorizationResult,
|
|
@@ -49,6 +50,7 @@ import {
|
|
|
49
50
|
upsertGroupMembershipRecord,
|
|
50
51
|
userKey,
|
|
51
52
|
validateCompleteSessionInput,
|
|
53
|
+
withUserStatus,
|
|
52
54
|
} from "./shared"
|
|
53
55
|
import { InMemoryAuthUserStore } from "./users"
|
|
54
56
|
|
|
@@ -451,17 +453,52 @@ export class InMemoryAuthStorage implements AuthStorage {
|
|
|
451
453
|
)
|
|
452
454
|
}
|
|
453
455
|
|
|
454
|
-
const next
|
|
455
|
-
...existing,
|
|
456
|
-
status: "suspended",
|
|
457
|
-
updatedAt: cloneDate(input.suspendedAt),
|
|
458
|
-
}
|
|
456
|
+
const next = withUserStatus(existing, "suspended", "manual", input.suspendedAt)
|
|
459
457
|
this.state.users.set(key, cloneRecord(next))
|
|
460
458
|
revokeActiveSessionsForUser(this.state, input.projectId, input.userId, input.suspendedAt)
|
|
461
459
|
|
|
462
460
|
return { user: cloneRecord(next), previousUser: cloneRecord(existing) }
|
|
463
461
|
}
|
|
464
462
|
|
|
463
|
+
async applyDirectoryVerdict(input: ApplyDirectoryVerdictInput): Promise<UpdateAuthUserResult> {
|
|
464
|
+
const key = userKey(input.projectId, input.userId)
|
|
465
|
+
const existing = this.state.users.get(key)
|
|
466
|
+
if (!existing) {
|
|
467
|
+
throw new AuthStorageError(
|
|
468
|
+
"missing_user",
|
|
469
|
+
`[Sixb] User '${input.userId}' not found for project '${input.projectId}'.`
|
|
470
|
+
)
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
const previousUser = cloneRecord(existing)
|
|
474
|
+
// Only the directory lifts its own suspensions; anyone else's stands.
|
|
475
|
+
if (existing.status === "suspended" && existing.suspensionSource !== "directory") {
|
|
476
|
+
return { user: previousUser, previousUser }
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (input.verdict.status === "inactive") {
|
|
480
|
+
if (existing.status === "suspended") return { user: previousUser, previousUser }
|
|
481
|
+
const next = withUserStatus(existing, "suspended", "directory", input.appliedAt)
|
|
482
|
+
this.state.users.set(key, cloneRecord(next))
|
|
483
|
+
revokeActiveSessionsForUser(this.state, input.projectId, input.userId, input.appliedAt)
|
|
484
|
+
return { user: cloneRecord(next), previousUser }
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
let user = existing
|
|
488
|
+
if (existing.status === "suspended") {
|
|
489
|
+
user = withUserStatus(existing, "active", "directory", input.appliedAt)
|
|
490
|
+
this.state.users.set(key, cloneRecord(user))
|
|
491
|
+
}
|
|
492
|
+
this.syncDirectoryGroups({
|
|
493
|
+
completedAt: input.appliedAt,
|
|
494
|
+
groupIds: input.verdict.groupIds,
|
|
495
|
+
projectId: input.projectId,
|
|
496
|
+
userId: input.userId,
|
|
497
|
+
existing: [],
|
|
498
|
+
})
|
|
499
|
+
return { user: cloneRecord(user), previousUser }
|
|
500
|
+
}
|
|
501
|
+
|
|
465
502
|
// The identity provider owns the name and picture it sends: every sign-in overwrites them, and
|
|
466
503
|
// one it leaves out keeps the stored value.
|
|
467
504
|
private refreshProviderProfile(
|
|
@@ -63,4 +63,20 @@ export class InMemoryAuthUserIdentityStore implements AuthUserIdentityStore {
|
|
|
63
63
|
})
|
|
64
64
|
.map(cloneRecord)
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
async listForStrategy(params: {
|
|
68
|
+
readonly projectId: string
|
|
69
|
+
readonly strategyId: string
|
|
70
|
+
}): Promise<readonly UserIdentityRecord[]> {
|
|
71
|
+
return [...this.state.identities.values()]
|
|
72
|
+
.filter((identity) => identity.projectId === params.projectId)
|
|
73
|
+
.filter((identity) => identity.strategyId === params.strategyId)
|
|
74
|
+
.sort((a, b) => compareText(a.subject, b.subject))
|
|
75
|
+
.map(cloneRecord)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Code-unit order, as SQL's `COLLATE "C"` and SQLite's default BINARY sort.
|
|
80
|
+
function compareText(left: string, right: string): number {
|
|
81
|
+
return left < right ? -1 : left > right ? 1 : 0
|
|
66
82
|
}
|
|
@@ -17,6 +17,8 @@ import type {
|
|
|
17
17
|
UpsertAuthServiceAccountGroupMembershipInput,
|
|
18
18
|
UserIdentityRecord,
|
|
19
19
|
UserRecord,
|
|
20
|
+
UserStatus,
|
|
21
|
+
UserSuspensionSource,
|
|
20
22
|
} from "../types"
|
|
21
23
|
|
|
22
24
|
export interface AuthStorageState {
|
|
@@ -125,6 +127,19 @@ export function assertNonEmpty(value: string, label: string): string {
|
|
|
125
127
|
return normalized
|
|
126
128
|
}
|
|
127
129
|
|
|
130
|
+
/** The user with this status. Only a suspended user carries a suspension source. */
|
|
131
|
+
export function withUserStatus(
|
|
132
|
+
user: UserRecord,
|
|
133
|
+
status: UserStatus,
|
|
134
|
+
suspensionSource: UserSuspensionSource,
|
|
135
|
+
updatedAt: Date
|
|
136
|
+
): UserRecord {
|
|
137
|
+
const { suspensionSource: _previous, ...rest } = user
|
|
138
|
+
return status === "suspended"
|
|
139
|
+
? { ...rest, status, suspensionSource, updatedAt: cloneDate(updatedAt) }
|
|
140
|
+
: { ...rest, status, updatedAt: cloneDate(updatedAt) }
|
|
141
|
+
}
|
|
142
|
+
|
|
128
143
|
export function normalizeEmail(email: string): string {
|
|
129
144
|
return assertNonEmpty(email, "Email").toLowerCase()
|
|
130
145
|
}
|