@sixb/core 0.1.19 → 0.1.21
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/execution.d.ts.map +1 -1
- package/dist/actions/index.js +54 -47
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run-authorization.d.ts +9 -0
- package/dist/actions/run-authorization.d.ts.map +1 -1
- package/dist/activity/connection.d.ts +62 -0
- package/dist/activity/connection.d.ts.map +1 -0
- package/dist/activity/device.d.ts +8 -0
- package/dist/activity/device.d.ts.map +1 -0
- package/dist/activity/execution.d.ts +48 -0
- package/dist/activity/execution.d.ts.map +1 -0
- package/dist/activity/service.d.ts +79 -0
- package/dist/activity/service.d.ts.map +1 -0
- package/dist/activity/shares.d.ts +24 -0
- package/dist/activity/shares.d.ts.map +1 -0
- package/dist/activity/timeline.d.ts +96 -0
- package/dist/activity/timeline.d.ts.map +1 -0
- package/dist/agents/index.d.ts +2 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +63 -50
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/streams/index.js +3 -3
- package/dist/agents/streams/internal.js +3 -3
- package/dist/agents/types.d.ts +8 -8
- package/dist/agents/types.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/address.d.ts +48 -0
- package/dist/artifacts/address.d.ts.map +1 -0
- package/dist/artifacts/csv.d.ts +22 -0
- package/dist/artifacts/csv.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +11 -0
- package/dist/artifacts/errors.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +43 -0
- package/dist/artifacts/execution.d.ts.map +1 -0
- package/dist/artifacts/frames/assets.d.ts +28 -0
- package/dist/artifacts/frames/assets.d.ts.map +1 -0
- package/dist/artifacts/frames/grants.d.ts +37 -0
- package/dist/artifacts/frames/grants.d.ts.map +1 -0
- package/dist/artifacts/frames/index.d.ts +10 -0
- package/dist/artifacts/frames/index.d.ts.map +1 -0
- package/dist/artifacts/frames/index.js +892 -0
- package/dist/artifacts/frames/index.js.map +14 -0
- package/dist/artifacts/frames/kit.d.ts +66 -0
- package/dist/artifacts/frames/kit.d.ts.map +1 -0
- package/dist/artifacts/frames/probe.d.ts +41 -0
- package/dist/artifacts/frames/probe.d.ts.map +1 -0
- package/dist/artifacts/frames/protocol.d.ts +98 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -0
- package/dist/artifacts/frames/runtime.d.ts +13 -0
- package/dist/artifacts/frames/runtime.d.ts.map +1 -0
- package/dist/artifacts/html.d.ts +6 -0
- package/dist/artifacts/html.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +5 -0
- package/dist/artifacts/ids.d.ts.map +1 -0
- package/dist/artifacts/index.d.ts +16 -0
- package/dist/artifacts/index.d.ts.map +1 -0
- package/dist/artifacts/index.js +125 -0
- package/dist/artifacts/index.js.map +10 -0
- package/dist/artifacts/kinds.d.ts +5 -0
- package/dist/artifacts/kinds.d.ts.map +1 -0
- package/dist/artifacts/limits.d.ts +28 -0
- package/dist/artifacts/limits.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +44 -0
- package/dist/artifacts/outline.d.ts.map +1 -0
- package/dist/artifacts/publish/files.d.ts +15 -0
- package/dist/artifacts/publish/files.d.ts.map +1 -0
- package/dist/artifacts/publish/index.d.ts +5 -0
- package/dist/artifacts/publish/index.d.ts.map +1 -0
- package/dist/artifacts/publish/index.js +36 -0
- package/dist/artifacts/publish/index.js.map +9 -0
- package/dist/artifacts/publish/publish.d.ts +52 -0
- package/dist/artifacts/publish/publish.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +27 -0
- package/dist/artifacts/publish/references.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/document.d.ts +17 -0
- package/dist/artifacts/publish/validate/document.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/file.d.ts +8 -0
- package/dist/artifacts/publish/validate/file.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/sheet.d.ts +15 -0
- package/dist/artifacts/publish/validate/sheet.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/slides.d.ts +21 -0
- package/dist/artifacts/publish/validate/slides.d.ts.map +1 -0
- package/dist/artifacts/references.d.ts +12 -0
- package/dist/artifacts/references.d.ts.map +1 -0
- package/dist/artifacts/resolve.d.ts +41 -0
- package/dist/artifacts/resolve.d.ts.map +1 -0
- package/dist/artifacts/theme.d.ts +19 -0
- package/dist/artifacts/theme.d.ts.map +1 -0
- package/dist/artifacts/warnings.d.ts +11 -0
- package/dist/artifacts/warnings.d.ts.map +1 -0
- package/dist/artifacts/workbook.d.ts +64 -0
- package/dist/artifacts/workbook.d.ts.map +1 -0
- package/dist/auth/cookies.d.ts +2 -4
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/index.d.ts +0 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +14 -20
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/runtime.d.ts +8 -10
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/session-cache.d.ts +1 -5
- package/dist/auth/session-cache.d.ts.map +1 -1
- package/dist/auth/strategy.js +1 -1
- package/dist/auth/types.d.ts +4 -8
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/validation.d.ts +0 -1
- package/dist/auth/validation.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +2 -4
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +6 -8
- package/dist/authorization/grant-kinds.d.ts.map +1 -1
- package/dist/authorization/index.d.ts +0 -1
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -11
- package/dist/authorization/index.js.map +1 -1
- package/dist/authorization/resolve.d.ts +1 -1
- package/dist/authorization/resolve.d.ts.map +1 -1
- package/dist/blob-storage/browser.js +1 -1
- package/dist/blob-storage/index.js +2 -2
- package/dist/blob-storage/internal.d.ts +1 -1
- package/dist/blob-storage/internal.d.ts.map +1 -1
- package/dist/blob-storage/internal.js +11 -5
- package/dist/blob-storage/internal.js.map +1 -1
- package/dist/blob-storage/media-type.d.ts +12 -0
- package/dist/blob-storage/media-type.d.ts.map +1 -1
- package/dist/bootstrap/index.js +54 -48
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-t6vq7bff.js → chunk-0bphap9y.js} +5 -5
- package/dist/{chunk-7mbzgd9m.js → chunk-1cc1xaf3.js} +3 -3
- package/dist/chunk-3jms7je7.js +14 -0
- package/dist/chunk-3jms7je7.js.map +10 -0
- package/dist/{chunk-s54c868q.js → chunk-3qct2mdc.js} +3 -13
- package/dist/chunk-3qct2mdc.js.map +12 -0
- package/dist/{chunk-6gmfggss.js → chunk-431pyp2c.js} +3 -3
- package/dist/{chunk-c85m1hyj.js → chunk-447a5c0p.js} +2 -2
- package/dist/chunk-48qjhh6v.js +185 -0
- package/dist/chunk-48qjhh6v.js.map +13 -0
- package/dist/{chunk-80mc0971.js → chunk-561r0yc9.js} +8 -8
- package/dist/{chunk-5e43w60z.js → chunk-5948n82c.js} +2 -2
- package/dist/{chunk-yzwja0mj.js → chunk-5hx48dnn.js} +2 -2
- package/dist/{chunk-tjb1mk5t.js → chunk-5vems3nx.js} +5 -6
- package/dist/{chunk-tjb1mk5t.js.map → chunk-5vems3nx.js.map} +3 -3
- package/dist/{chunk-aff7cyea.js → chunk-61y5xs4p.js} +563 -167
- package/dist/{chunk-aff7cyea.js.map → chunk-61y5xs4p.js.map} +12 -9
- package/dist/chunk-65abf64x.js +13 -0
- package/dist/chunk-65abf64x.js.map +10 -0
- package/dist/{chunk-z3y5kg1x.js → chunk-6eqsgvxk.js} +3 -3
- package/dist/{chunk-z3y5kg1x.js.map → chunk-6eqsgvxk.js.map} +2 -2
- package/dist/chunk-6rqgmkde.js +2028 -0
- package/dist/chunk-6rqgmkde.js.map +29 -0
- package/dist/{chunk-y7rqfrgg.js → chunk-6vb4st8k.js} +29 -38
- package/dist/chunk-6vb4st8k.js.map +23 -0
- package/dist/chunk-7q8t23v4.js +467 -0
- package/dist/chunk-7q8t23v4.js.map +14 -0
- package/dist/{chunk-kyzq4wy9.js → chunk-858emn8m.js} +17 -17
- package/dist/chunk-858emn8m.js.map +18 -0
- package/dist/{chunk-hvsb78a1.js → chunk-8frc8a4j.js} +26 -26
- package/dist/{chunk-hvsb78a1.js.map → chunk-8frc8a4j.js.map} +2 -2
- package/dist/{chunk-3zxk45er.js → chunk-8ncg20rd.js} +3 -68
- package/dist/{chunk-3zxk45er.js.map → chunk-8ncg20rd.js.map} +4 -5
- package/dist/{chunk-j2bp5ryw.js → chunk-918wwnaa.js} +495 -28
- package/dist/{chunk-j2bp5ryw.js.map → chunk-918wwnaa.js.map} +14 -12
- package/dist/{chunk-1f7wpmyp.js → chunk-9j4jw7as.js} +103 -110
- package/dist/chunk-9j4jw7as.js.map +14 -0
- package/dist/chunk-9kgkfg6v.js +502 -0
- package/dist/chunk-9kgkfg6v.js.map +14 -0
- package/dist/chunk-a3faa34j.js +74 -0
- package/dist/chunk-a3faa34j.js.map +10 -0
- package/dist/{chunk-ey3pyej1.js → chunk-akzryx9h.js} +347 -1174
- package/dist/{chunk-ey3pyej1.js.map → chunk-akzryx9h.js.map} +19 -25
- package/dist/chunk-arns890k.js +10 -0
- package/dist/chunk-arns890k.js.map +10 -0
- package/dist/{chunk-zrmy8zvw.js → chunk-bk9svbcq.js} +11 -11
- package/dist/{chunk-zrmy8zvw.js.map → chunk-bk9svbcq.js.map} +2 -2
- package/dist/{chunk-hkc3jct7.js → chunk-c06hmxyy.js} +2 -10
- package/dist/chunk-c06hmxyy.js.map +10 -0
- package/dist/{chunk-q1vkr2ys.js → chunk-c1rxbz5y.js} +3 -3
- package/dist/chunk-cfj9dfbb.js +288 -0
- package/dist/chunk-cfj9dfbb.js.map +12 -0
- package/dist/{chunk-4tcx876c.js → chunk-cn0fwwhy.js} +19 -19
- package/dist/{chunk-4tcx876c.js.map → chunk-cn0fwwhy.js.map} +1 -1
- package/dist/{chunk-gc4ntf7d.js → chunk-cwdzcv37.js} +1 -1
- package/dist/{chunk-fa02jy15.js → chunk-cy4mbddw.js} +1 -1
- package/dist/{chunk-7kg3k1m9.js → chunk-d09e3rax.js} +1 -1
- package/dist/chunk-d5rjr8c0.js +176 -0
- package/dist/chunk-d5rjr8c0.js.map +12 -0
- package/dist/{chunk-rhg02hxq.js → chunk-d7dnxdep.js} +3 -3
- package/dist/{chunk-b38szspf.js → chunk-dhcv7yxc.js} +1 -1
- package/dist/{chunk-b38szspf.js.map → chunk-dhcv7yxc.js.map} +1 -1
- package/dist/{chunk-enpsx8k5.js → chunk-dhdha526.js} +23 -21
- package/dist/chunk-dhdha526.js.map +10 -0
- package/dist/{chunk-8mx7qw3y.js → chunk-dvd2fp9q.js} +2 -2
- package/dist/{chunk-8mx7qw3y.js.map → chunk-dvd2fp9q.js.map} +3 -3
- package/dist/{chunk-bwjcehza.js → chunk-e17zdm62.js} +6 -12
- package/dist/{chunk-bwjcehza.js.map → chunk-e17zdm62.js.map} +3 -4
- package/dist/{chunk-tpn40322.js → chunk-e6k4thh5.js} +11 -10
- package/dist/{chunk-tpn40322.js.map → chunk-e6k4thh5.js.map} +3 -3
- package/dist/{chunk-tw03bsmb.js → chunk-eptrvnby.js} +224 -3
- package/dist/chunk-eptrvnby.js.map +12 -0
- package/dist/{chunk-xt1zt7gv.js → chunk-f4pamkt9.js} +30 -23
- package/dist/chunk-f4pamkt9.js.map +12 -0
- package/dist/chunk-ff5xkv0p.js +211 -0
- package/dist/chunk-ff5xkv0p.js.map +10 -0
- package/dist/{chunk-bpgy64fw.js → chunk-g257jwnc.js} +10 -4
- package/dist/{chunk-bpgy64fw.js.map → chunk-g257jwnc.js.map} +3 -3
- package/dist/chunk-g5bvzyyr.js +32 -0
- package/dist/chunk-g5bvzyyr.js.map +10 -0
- package/dist/{chunk-2jntasmh.js → chunk-hcbyfxbe.js} +25 -49
- package/dist/chunk-hcbyfxbe.js.map +12 -0
- package/dist/chunk-hke9aeen.js +9 -0
- package/dist/chunk-hke9aeen.js.map +10 -0
- package/dist/{chunk-1sr8ryzk.js → chunk-hwksyjks.js} +122 -1
- package/dist/{chunk-1sr8ryzk.js.map → chunk-hwksyjks.js.map} +3 -3
- package/dist/chunk-jcfw4h7m.js +9 -0
- package/dist/chunk-jcfw4h7m.js.map +10 -0
- package/dist/{chunk-85yvv5n0.js → chunk-k43ct2ke.js} +20 -11
- package/dist/chunk-k43ct2ke.js.map +12 -0
- package/dist/{chunk-dnmadg9k.js → chunk-kge7k6ey.js} +40 -8
- package/dist/chunk-kge7k6ey.js.map +15 -0
- package/dist/{chunk-wz0xs816.js → chunk-ky3j490c.js} +2 -2
- package/dist/chunk-mjddfa7k.js +129 -0
- package/dist/chunk-mjddfa7k.js.map +12 -0
- package/dist/{chunk-3gnrh4ve.js → chunk-nn5xnx3s.js} +86 -111
- package/dist/chunk-nn5xnx3s.js.map +40 -0
- package/dist/{chunk-rz53yb4v.js → chunk-q5e5tv4b.js} +35 -7
- package/dist/{chunk-rz53yb4v.js.map → chunk-q5e5tv4b.js.map} +3 -3
- package/dist/{chunk-vyf9kfqf.js → chunk-q7gn29y3.js} +1 -1
- package/dist/{chunk-d2ync1v3.js → chunk-rmakanzx.js} +10 -12
- package/dist/{chunk-d2ync1v3.js.map → chunk-rmakanzx.js.map} +3 -4
- package/dist/{chunk-v9xd5wzd.js → chunk-s7jg7pmn.js} +1 -1
- package/dist/chunk-tbc1ngpd.js +642 -0
- package/dist/chunk-tbc1ngpd.js.map +18 -0
- package/dist/chunk-twe4dx8p.js +676 -0
- package/dist/chunk-twe4dx8p.js.map +15 -0
- package/dist/{chunk-nre82s12.js → chunk-vf57cr4t.js} +2 -2
- package/dist/{chunk-9ybhtmg4.js → chunk-vvxtn22d.js} +1 -1
- package/dist/{chunk-jhm3zsa7.js → chunk-wkv3h3q7.js} +64 -2
- package/dist/{chunk-jhm3zsa7.js.map → chunk-wkv3h3q7.js.map} +3 -3
- package/dist/chunk-x0v3jd47.js +124 -0
- package/dist/chunk-x0v3jd47.js.map +10 -0
- package/dist/{chunk-7t429e3f.js → chunk-xvsc5m8n.js} +1 -1
- package/dist/{chunk-kg5j6fct.js → chunk-y5tah2kf.js} +1 -1
- package/dist/{chunk-52bk93x8.js → chunk-z58tm0hm.js} +2 -2
- package/dist/datasets/builders.d.ts +15 -2
- package/dist/datasets/builders.d.ts.map +1 -1
- package/dist/datasets/column-index.d.ts +7 -0
- package/dist/datasets/column-index.d.ts.map +1 -0
- package/dist/datasets/execution.d.ts +3 -2
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -8
- package/dist/deploy/internal.js +4 -3
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/services.d.ts.map +1 -1
- package/dist/deploy/types.d.ts +1 -2
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +4 -4
- package/dist/errors/internal.d.ts +1 -0
- package/dist/errors/internal.d.ts.map +1 -1
- package/dist/errors/internal.js +7 -4
- package/dist/errors/internal.js.map +1 -1
- package/dist/events/execution.d.ts +12 -2
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.js +4 -4
- package/dist/execution/agent.js +56 -49
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +52 -11
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +41 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -0
- package/dist/execution/object-reader-ontology.d.ts +12 -0
- package/dist/execution/object-reader-ontology.d.ts.map +1 -0
- package/dist/execution/object-reader-security.d.ts +45 -0
- package/dist/execution/object-reader-security.d.ts.map +1 -0
- package/dist/execution/primitive.js +54 -47
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +49 -42
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +23 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +111 -109
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/in-memory.d.ts +1 -0
- package/dist/lake-storage/in-memory.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +6 -3
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +21 -13
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/lineage.d.ts +94 -0
- package/dist/lake-storage/lineage.d.ts.map +1 -0
- package/dist/lake-storage/sql-transforms.d.ts +45 -0
- package/dist/lake-storage/sql-transforms.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +55 -1
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/lake-storage/version-inputs.d.ts +14 -3
- package/dist/lake-storage/version-inputs.d.ts.map +1 -1
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/materializer/index.js +31 -30
- package/dist/materializer/index.js.map +1 -1
- package/dist/models/execution/index.js +26 -25
- package/dist/models/execution/index.js.map +1 -1
- package/dist/objects/clearance-redaction.d.ts +27 -0
- package/dist/objects/clearance-redaction.d.ts.map +1 -0
- package/dist/objects/index.js +54 -47
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/link/authorization.d.ts +8 -5
- package/dist/objects/link/authorization.d.ts.map +1 -1
- package/dist/objects/link/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/delete.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/property-clearance.d.ts +47 -24
- package/dist/objects/property-clearance.d.ts.map +1 -1
- package/dist/objects/query/clearance-admission.d.ts +10 -0
- package/dist/objects/query/clearance-admission.d.ts.map +1 -0
- package/dist/objects/query/index.js +29 -28
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/link-query-clearance.d.ts +21 -0
- package/dist/objects/query/link-query-clearance.d.ts.map +1 -0
- package/dist/objects/vectors/handle.d.ts.map +1 -1
- package/dist/objects/vectors/profile.d.ts +5 -0
- package/dist/objects/vectors/profile.d.ts.map +1 -1
- package/dist/ontology/builders.d.ts.map +1 -1
- package/dist/ontology/docs-markdown.d.ts +1 -1
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.js +7 -7
- package/dist/ontology/internal.js +4 -4
- package/dist/ontology/internal.js.map +1 -1
- package/dist/pipelines/index.d.ts +2 -0
- package/dist/pipelines/index.d.ts.map +1 -1
- package/dist/pipelines/index.js +47 -35
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/lineage.d.ts +17 -0
- package/dist/pipelines/lineage.d.ts.map +1 -0
- package/dist/projections/internal.d.ts +2 -2
- package/dist/projections/internal.js +30 -29
- package/dist/projections/internal.js.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 +6 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +2 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +46 -42
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/ontology-mutations.d.ts +2 -0
- package/dist/runtime/ontology-mutations.d.ts.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/sixb.d.ts +8 -0
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/auth.d.ts +16 -0
- package/dist/sandboxes/auth.d.ts.map +1 -1
- package/dist/sandboxes/config.d.ts.map +1 -1
- package/dist/sandboxes/configuration.d.ts +26 -0
- package/dist/sandboxes/configuration.d.ts.map +1 -1
- package/dist/sandboxes/index.d.ts +1 -1
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +14 -13
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/sandboxes/sandbox.d.ts +28 -5
- package/dist/sandboxes/sandbox.d.ts.map +1 -1
- package/dist/security/applied-markings-contribution.d.ts +58 -0
- package/dist/security/applied-markings-contribution.d.ts.map +1 -0
- package/dist/security/applied-markings-host.d.ts +10 -0
- package/dist/security/applied-markings-host.d.ts.map +1 -0
- package/dist/security/applied-markings-snapshot.d.ts +67 -0
- package/dist/security/applied-markings-snapshot.d.ts.map +1 -0
- package/dist/security/applied-markings.d.ts +73 -0
- package/dist/security/applied-markings.d.ts.map +1 -0
- package/dist/security/builders.d.ts.map +1 -1
- package/dist/security/dataset-version-markings.d.ts +47 -0
- package/dist/security/dataset-version-markings.d.ts.map +1 -0
- package/dist/security/every.d.ts +1 -4
- package/dist/security/every.d.ts.map +1 -1
- package/dist/security/grants.d.ts +4 -5
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/index.d.ts +2 -2
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/internal.d.ts +15 -0
- package/dist/security/internal.d.ts.map +1 -0
- package/dist/security/internal.js +135 -0
- package/dist/security/internal.js.map +10 -0
- package/dist/security/marking-propagation.d.ts +62 -0
- package/dist/security/marking-propagation.d.ts.map +1 -0
- package/dist/security/marking-sets.d.ts +14 -0
- package/dist/security/marking-sets.d.ts.map +1 -0
- package/dist/security/markings.d.ts +6 -3
- package/dist/security/markings.d.ts.map +1 -1
- package/dist/security/membership-policies.d.ts.map +1 -1
- package/dist/security/pipeline-markings.d.ts +20 -0
- package/dist/security/pipeline-markings.d.ts.map +1 -0
- package/dist/security/project.d.ts +4 -0
- package/dist/security/project.d.ts.map +1 -0
- package/dist/security/projection-markings.d.ts +71 -0
- package/dist/security/projection-markings.d.ts.map +1 -0
- package/dist/security/public.d.ts +10 -0
- package/dist/security/public.d.ts.map +1 -0
- package/dist/security/public.js +10 -0
- package/dist/security/public.js.map +9 -0
- package/dist/security/redactions.d.ts +4 -1
- package/dist/security/redactions.d.ts.map +1 -1
- package/dist/security/registry.d.ts +0 -1
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/types.d.ts +34 -19
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts +0 -6
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +25 -24
- package/dist/shares/internal.js.map +2 -2
- package/dist/storage/action-runs/failure.js +3 -3
- package/dist/storage/action-runs/in-memory.d.ts +4 -0
- package/dist/storage/action-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/action-runs/types.d.ts +8 -0
- package/dist/storage/action-runs/types.d.ts.map +1 -1
- package/dist/storage/activity/in-memory.d.ts +55 -0
- package/dist/storage/activity/in-memory.d.ts.map +1 -0
- package/dist/storage/activity/index.d.ts +3 -0
- package/dist/storage/activity/index.d.ts.map +1 -0
- package/dist/storage/activity/policy.d.ts +96 -0
- package/dist/storage/activity/policy.d.ts.map +1 -0
- package/dist/storage/activity/types.d.ts +191 -0
- package/dist/storage/activity/types.d.ts.map +1 -0
- package/dist/storage/agents/in-memory.d.ts +4 -0
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +2 -5
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +10 -9
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +3 -3
- package/dist/storage/artifacts/errors.d.ts +8 -0
- package/dist/storage/artifacts/errors.d.ts.map +1 -0
- package/dist/storage/artifacts/in-memory.d.ts +34 -0
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -0
- package/dist/storage/artifacts/index.d.ts +5 -0
- package/dist/storage/artifacts/index.d.ts.map +1 -0
- package/dist/storage/artifacts/record.d.ts +17 -0
- package/dist/storage/artifacts/record.d.ts.map +1 -0
- package/dist/storage/artifacts/types.d.ts +184 -0
- package/dist/storage/artifacts/types.d.ts.map +1 -0
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/magic-links.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/oidc-attempts.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/sessions.d.ts +2 -11
- package/dist/storage/auth/in-memory/sessions.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +1 -2
- package/dist/storage/auth/in-memory/shared.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 +20 -17
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +2 -2
- package/dist/storage/executions/in-memory.d.ts +2 -1
- package/dist/storage/executions/in-memory.d.ts.map +1 -1
- package/dist/storage/executions/index.d.ts +1 -1
- package/dist/storage/executions/index.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +2 -0
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +9 -223
- package/dist/storage/executions/provider.js.map +3 -4
- package/dist/storage/executions/types.d.ts +31 -0
- package/dist/storage/executions/types.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +12 -12
- package/dist/storage/in-memory/index.d.ts +8 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +6 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +47 -46
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +3 -0
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +66 -16
- package/dist/storage/internal.js.map +1 -1
- package/dist/storage/ontology/in-memory/sources.d.ts +2 -1
- package/dist/storage/ontology/in-memory/sources.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/sources.d.ts +15 -0
- package/dist/storage/ontology/sources.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +3 -3
- package/dist/storage/share-grants/in-memory.d.ts +2 -1
- package/dist/storage/share-grants/in-memory.d.ts.map +1 -1
- package/dist/storage/share-grants/index.d.ts +1 -1
- package/dist/storage/share-grants/index.d.ts.map +1 -1
- package/dist/storage/share-grants/types.d.ts +6 -0
- package/dist/storage/share-grants/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +4 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +4 -0
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +14 -13
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +5 -0
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +35 -34
- package/dist/syncs/index.js.map +1 -1
- package/dist/testing/action-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/activity-storage-contract.d.ts +14 -0
- package/dist/testing/activity-storage-contract.d.ts.map +1 -0
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts +13 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -0
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +4493 -3225
- package/dist/testing/index.js.map +14 -12
- package/dist/testing/lake-merge-storage-contract.d.ts.map +1 -1
- package/dist/testing/lake-storage-contract.d.ts +2 -0
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/ontology-storage-contract.d.ts.map +1 -1
- package/dist/testing/share-grant-storage-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +28 -27
- package/dist/webhooks/internal.js.map +2 -2
- package/dist/workers/index.js +2 -2
- package/dist/workflows/builders.d.ts.map +1 -1
- package/dist/workflows/index.js +57 -51
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/types.d.ts +9 -0
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/validation.d.ts +7 -0
- package/dist/workflows/validation.d.ts.map +1 -1
- package/package.json +32 -2
- package/src/actions/execution.ts +18 -13
- package/src/actions/request.ts +18 -3
- package/src/actions/run-authorization.ts +23 -0
- package/src/activity/README.md +155 -0
- package/src/activity/connection.ts +217 -0
- package/src/activity/device.ts +41 -0
- package/src/activity/execution.ts +210 -0
- package/src/activity/service.ts +274 -0
- package/src/activity/shares.ts +62 -0
- package/src/activity/timeline.ts +424 -0
- package/src/agents/index.ts +8 -3
- package/src/agents/request.ts +5 -0
- package/src/agents/skills.ts +6 -0
- package/src/agents/types.ts +8 -8
- package/src/agents/validation.ts +2 -0
- package/src/artifacts/address.ts +132 -0
- package/src/artifacts/csv.ts +108 -0
- package/src/artifacts/errors.ts +21 -0
- package/src/artifacts/execution.ts +153 -0
- package/src/artifacts/frames/assets.ts +88 -0
- package/src/artifacts/frames/grants.ts +124 -0
- package/src/artifacts/frames/index.ts +15 -0
- package/src/artifacts/frames/kit.ts +392 -0
- package/src/artifacts/frames/probe.ts +309 -0
- package/src/artifacts/frames/protocol.ts +174 -0
- package/src/artifacts/frames/runtime.ts +213 -0
- package/src/artifacts/html.ts +25 -0
- package/src/artifacts/ids.ts +18 -0
- package/src/artifacts/index.ts +61 -0
- package/src/artifacts/kinds.ts +8 -0
- package/src/artifacts/limits.ts +27 -0
- package/src/artifacts/outline.ts +62 -0
- package/src/artifacts/publish/files.ts +87 -0
- package/src/artifacts/publish/index.ts +12 -0
- package/src/artifacts/publish/publish.ts +250 -0
- package/src/artifacts/publish/references.ts +130 -0
- package/src/artifacts/publish/validate/document.ts +114 -0
- package/src/artifacts/publish/validate/file.ts +19 -0
- package/src/artifacts/publish/validate/sheet.ts +251 -0
- package/src/artifacts/publish/validate/slides.ts +134 -0
- package/src/artifacts/references.ts +11 -0
- package/src/artifacts/resolve.ts +97 -0
- package/src/artifacts/theme.ts +116 -0
- package/src/artifacts/warnings.ts +10 -0
- package/src/artifacts/workbook.ts +315 -0
- package/src/auth/cookies.ts +3 -20
- package/src/auth/index.ts +0 -6
- package/src/auth/runtime.ts +59 -76
- package/src/auth/session-cache.ts +2 -9
- package/src/auth/types.ts +4 -8
- package/src/auth/validation.ts +0 -2
- package/src/authorization/decision.ts +13 -23
- package/src/authorization/grant-kinds.ts +33 -28
- package/src/authorization/index.ts +0 -1
- package/src/authorization/resolve.ts +10 -6
- package/src/blob-storage/internal.ts +1 -1
- package/src/blob-storage/media-type.ts +69 -0
- package/src/datasets/builders.ts +66 -2
- package/src/datasets/column-index.ts +19 -0
- package/src/datasets/execution.ts +23 -9
- package/src/deploy/services.ts +0 -1
- package/src/deploy/types.ts +1 -2
- package/src/deploy/validation.ts +3 -1
- package/src/errors/internal.ts +1 -0
- package/src/events/execution.ts +134 -21
- package/src/execution/authorization.ts +11 -5
- package/src/execution/authorized-object-reader.ts +270 -256
- package/src/execution/object-reader-clearance.ts +91 -0
- package/src/execution/object-reader-ontology.ts +63 -0
- package/src/execution/object-reader-security.ts +146 -0
- package/src/http/api-routes.ts +125 -0
- package/src/index.ts +72 -17
- package/src/lake-storage/in-memory.ts +26 -3
- package/src/lake-storage/index.ts +13 -1
- package/src/lake-storage/lineage.ts +385 -0
- package/src/lake-storage/sql-transforms.ts +45 -0
- package/src/lake-storage/types.ts +59 -1
- package/src/lake-storage/version-inputs.ts +35 -6
- package/src/maintenance/ontology-maintenance.ts +15 -0
- package/src/models/execution/embedding.ts +6 -6
- package/src/objects/clearance-redaction.ts +138 -0
- package/src/objects/link/authorization.ts +27 -7
- package/src/objects/link/remove.ts +2 -2
- package/src/objects/link/upsert-batch.ts +7 -5
- package/src/objects/link/upsert.ts +2 -2
- package/src/objects/object/delete.ts +2 -0
- package/src/objects/object/upsert-batch.ts +2 -4
- package/src/objects/object/upsert.ts +2 -3
- package/src/objects/property-clearance.ts +171 -152
- package/src/objects/query/clearance-admission.ts +112 -0
- package/src/objects/query/link-query-clearance.ts +73 -0
- package/src/objects/vectors/README.md +4 -0
- package/src/objects/vectors/handle.ts +11 -2
- package/src/objects/vectors/indexing-generate.ts +2 -2
- package/src/objects/vectors/profile.ts +5 -0
- package/src/ontology/builders.ts +12 -1
- package/src/ontology/docs-markdown.ts +1 -1
- package/src/pipelines/index.ts +2 -0
- package/src/pipelines/lineage.ts +45 -0
- package/src/projections/internal.ts +2 -2
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +55 -0
- package/src/runtime/internal.ts +2 -0
- package/src/runtime/ontology-mutations.ts +19 -4
- package/src/runtime/resolve-definitions.ts +66 -3
- package/src/runtime/sixb.ts +18 -1
- package/src/sandboxes/README.md +29 -7
- package/src/sandboxes/auth.ts +16 -0
- package/src/sandboxes/config.ts +2 -7
- package/src/sandboxes/configuration.ts +61 -7
- package/src/sandboxes/index.ts +1 -0
- package/src/sandboxes/sandbox.ts +27 -5
- package/src/security/applied-markings-contribution.ts +277 -0
- package/src/security/applied-markings-host.ts +41 -0
- package/src/security/applied-markings-snapshot.ts +235 -0
- package/src/security/applied-markings.ts +405 -0
- package/src/security/builders.ts +7 -2
- package/src/security/dataset-version-markings.ts +163 -0
- package/src/security/every.ts +0 -4
- package/src/security/grants.ts +42 -27
- package/src/security/index.ts +3 -3
- package/src/security/internal.ts +18 -0
- package/src/security/marking-propagation.ts +255 -0
- package/src/security/marking-sets.ts +42 -0
- package/src/security/markings.ts +29 -178
- package/src/security/membership-policies.ts +3 -1
- package/src/security/pipeline-markings.ts +175 -0
- package/src/security/project.ts +8 -0
- package/src/security/projection-markings.ts +421 -0
- package/src/security/public.ts +10 -0
- package/src/security/redactions.ts +7 -2
- package/src/security/registry.ts +0 -8
- package/src/security/types.ts +38 -26
- package/src/security/validation.ts +28 -19
- package/src/storage/action-runs/in-memory.ts +18 -0
- package/src/storage/action-runs/types.ts +8 -0
- package/src/storage/activity/in-memory.ts +374 -0
- package/src/storage/activity/index.ts +27 -0
- package/src/storage/activity/policy.ts +430 -0
- package/src/storage/activity/types.ts +211 -0
- package/src/storage/agents/in-memory.ts +10 -0
- package/src/storage/agents/provider.ts +2 -13
- package/src/storage/agents/types.ts +10 -17
- package/src/storage/artifacts/errors.ts +16 -0
- package/src/storage/artifacts/in-memory.ts +240 -0
- package/src/storage/artifacts/index.ts +30 -0
- package/src/storage/artifacts/record.ts +200 -0
- package/src/storage/artifacts/types.ts +209 -0
- package/src/storage/auth/in-memory/auth-storage.ts +0 -18
- package/src/storage/auth/in-memory/magic-links.ts +0 -3
- package/src/storage/auth/in-memory/oidc-attempts.ts +0 -3
- package/src/storage/auth/in-memory/sessions.ts +22 -25
- package/src/storage/auth/in-memory/shared.ts +1 -10
- package/src/storage/auth/index.ts +2 -0
- package/src/storage/auth/types.ts +20 -18
- package/src/storage/executions/in-memory.ts +61 -1
- package/src/storage/executions/index.ts +3 -0
- package/src/storage/executions/provider.ts +12 -0
- package/src/storage/executions/types.ts +30 -0
- package/src/storage/in-memory/index.ts +16 -0
- package/src/storage/index.ts +63 -0
- package/src/storage/internal.ts +30 -0
- package/src/storage/ontology/in-memory/sources.ts +23 -0
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/sources.ts +17 -0
- package/src/storage/share-grants/in-memory.ts +8 -0
- package/src/storage/share-grants/index.ts +1 -0
- package/src/storage/share-grants/types.ts +8 -0
- package/src/storage/types.ts +4 -0
- package/src/storage/workflow-runs/in-memory.ts +16 -0
- package/src/storage/workflow-runs/types.ts +5 -0
- package/src/testing/action-run-storage-contract.ts +25 -0
- package/src/testing/activity-storage-contract.ts +840 -0
- package/src/testing/agent-storage-contract.ts +22 -21
- package/src/testing/artifact-storage-contract.ts +517 -0
- package/src/testing/auth-storage-contract.ts +61 -107
- package/src/testing/execution-storage-contract.ts +147 -3
- package/src/testing/index.ts +9 -0
- package/src/testing/lake-merge-storage-contract.ts +38 -0
- package/src/testing/lake-storage-contract.ts +247 -2
- package/src/testing/materializer-storage-contract.ts +1 -0
- package/src/testing/ontology-storage-contract.ts +57 -2
- package/src/testing/share-grant-storage-contract.ts +15 -0
- package/src/workflows/builders.ts +14 -0
- package/src/workflows/types.ts +9 -0
- package/src/workflows/validation.ts +72 -0
- package/dist/auth/audience.d.ts +0 -8
- package/dist/auth/audience.d.ts.map +0 -1
- package/dist/authorization/application-access.d.ts +0 -18
- package/dist/authorization/application-access.d.ts.map +0 -1
- package/dist/chunk-1f7wpmyp.js.map +0 -14
- package/dist/chunk-1k89ecfr.js +0 -85
- package/dist/chunk-1k89ecfr.js.map +0 -10
- package/dist/chunk-2jntasmh.js.map +0 -13
- package/dist/chunk-3gnrh4ve.js.map +0 -40
- package/dist/chunk-85yvv5n0.js.map +0 -12
- package/dist/chunk-9gyp8hg1.js +0 -363
- package/dist/chunk-9gyp8hg1.js.map +0 -14
- package/dist/chunk-dnmadg9k.js.map +0 -15
- package/dist/chunk-enpsx8k5.js.map +0 -10
- package/dist/chunk-hkc3jct7.js.map +0 -10
- package/dist/chunk-kyzq4wy9.js.map +0 -18
- package/dist/chunk-s16apyk9.js +0 -256
- package/dist/chunk-s16apyk9.js.map +0 -16
- package/dist/chunk-s54c868q.js.map +0 -12
- package/dist/chunk-tw03bsmb.js.map +0 -11
- package/dist/chunk-wwdfe68s.js +0 -128
- package/dist/chunk-wwdfe68s.js.map +0 -11
- package/dist/chunk-xt1zt7gv.js.map +0 -13
- package/dist/chunk-y7rqfrgg.js.map +0 -24
- package/dist/security/applications.d.ts +0 -15
- package/dist/security/applications.d.ts.map +0 -1
- package/src/auth/audience.ts +0 -28
- package/src/authorization/application-access.ts +0 -34
- package/src/security/applications.ts +0 -11
- /package/dist/{chunk-t6vq7bff.js.map → chunk-0bphap9y.js.map} +0 -0
- /package/dist/{chunk-7mbzgd9m.js.map → chunk-1cc1xaf3.js.map} +0 -0
- /package/dist/{chunk-6gmfggss.js.map → chunk-431pyp2c.js.map} +0 -0
- /package/dist/{chunk-c85m1hyj.js.map → chunk-447a5c0p.js.map} +0 -0
- /package/dist/{chunk-80mc0971.js.map → chunk-561r0yc9.js.map} +0 -0
- /package/dist/{chunk-5e43w60z.js.map → chunk-5948n82c.js.map} +0 -0
- /package/dist/{chunk-yzwja0mj.js.map → chunk-5hx48dnn.js.map} +0 -0
- /package/dist/{chunk-q1vkr2ys.js.map → chunk-c1rxbz5y.js.map} +0 -0
- /package/dist/{chunk-gc4ntf7d.js.map → chunk-cwdzcv37.js.map} +0 -0
- /package/dist/{chunk-fa02jy15.js.map → chunk-cy4mbddw.js.map} +0 -0
- /package/dist/{chunk-7kg3k1m9.js.map → chunk-d09e3rax.js.map} +0 -0
- /package/dist/{chunk-rhg02hxq.js.map → chunk-d7dnxdep.js.map} +0 -0
- /package/dist/{chunk-wz0xs816.js.map → chunk-ky3j490c.js.map} +0 -0
- /package/dist/{chunk-vyf9kfqf.js.map → chunk-q7gn29y3.js.map} +0 -0
- /package/dist/{chunk-v9xd5wzd.js.map → chunk-s7jg7pmn.js.map} +0 -0
- /package/dist/{chunk-nre82s12.js.map → chunk-vf57cr4t.js.map} +0 -0
- /package/dist/{chunk-9ybhtmg4.js.map → chunk-vvxtn22d.js.map} +0 -0
- /package/dist/{chunk-7t429e3f.js.map → chunk-xvsc5m8n.js.map} +0 -0
- /package/dist/{chunk-kg5j6fct.js.map → chunk-y5tah2kf.js.map} +0 -0
- /package/dist/{chunk-52bk93x8.js.map → chunk-z58tm0hm.js.map} +0 -0
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
canAccessApplication2,
|
|
4
3
|
resolveRoleGrants2,
|
|
5
4
|
resolveAuthorizationContext2
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6vb4st8k.js";
|
|
7
6
|
import {
|
|
8
7
|
assertValidFileRefs2
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-8frc8a4j.js";
|
|
10
9
|
import {
|
|
11
|
-
SecurityValidationError2,
|
|
12
10
|
resolveMembershipPolicyScope,
|
|
13
11
|
canPerformMembershipOperation,
|
|
14
12
|
missingMembershipGroupIds,
|
|
15
13
|
validateSecurityDefinitionsAtStartup
|
|
16
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-f4pamkt9.js";
|
|
17
15
|
import {
|
|
18
|
-
AuthRuntimeError2,
|
|
19
|
-
DEFAULT_AUTH_SESSION_AUDIENCE2,
|
|
20
|
-
resolveAuthSessionAudience2,
|
|
21
|
-
resolveAuthCookieOptionsForAudience,
|
|
22
16
|
getCookie2,
|
|
17
|
+
AuthRuntimeError2,
|
|
23
18
|
resolveAuthConfig2,
|
|
24
19
|
resolveInvitationExpiresAt,
|
|
25
20
|
assertNonEmpty3,
|
|
26
21
|
normalizePagination,
|
|
27
22
|
isInvitationDeliveryAuthStrategy2
|
|
28
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-hcbyfxbe.js";
|
|
29
24
|
import {
|
|
30
25
|
normalizeParams,
|
|
31
26
|
coerceParamsToTyped
|
|
32
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-447a5c0p.js";
|
|
33
28
|
import {
|
|
34
29
|
snapshotLinkPathSelection
|
|
35
30
|
} from "./chunk-t6f3tdnr.js";
|
|
31
|
+
import {
|
|
32
|
+
SecurityValidationError2
|
|
33
|
+
} from "./chunk-jcfw4h7m.js";
|
|
36
34
|
import {
|
|
37
35
|
OntologyValidationError2
|
|
38
36
|
} from "./chunk-cqr3acm1.js";
|
|
@@ -161,13 +159,6 @@ function safeEqual(left, right) {
|
|
|
161
159
|
}
|
|
162
160
|
// src/auth/runtime.ts
|
|
163
161
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
164
|
-
|
|
165
|
-
// src/security/applications.ts
|
|
166
|
-
var applications2 = {
|
|
167
|
-
atlas: { kind: "application", id: "atlas", label: "Atlas" },
|
|
168
|
-
app: { kind: "application", id: "app", label: "Custom app" }
|
|
169
|
-
};
|
|
170
|
-
var APPLICATION_IDS = new Set(Object.values(applications2).map((application) => application.id));
|
|
171
162
|
// src/security/every.ts
|
|
172
163
|
var BREADTH_TARGETS = [
|
|
173
164
|
"object",
|
|
@@ -176,7 +167,6 @@ var BREADTH_TARGETS = [
|
|
|
176
167
|
"workflow",
|
|
177
168
|
"sync",
|
|
178
169
|
"pipeline",
|
|
179
|
-
"application",
|
|
180
170
|
"connector",
|
|
181
171
|
"share"
|
|
182
172
|
];
|
|
@@ -211,7 +201,6 @@ var every2 = {
|
|
|
211
201
|
workflow: () => all("workflow"),
|
|
212
202
|
sync: () => all("sync"),
|
|
213
203
|
pipeline: () => all("pipeline"),
|
|
214
|
-
application: () => all("application"),
|
|
215
204
|
connector: () => all("connector"),
|
|
216
205
|
share: () => all("share")
|
|
217
206
|
};
|
|
@@ -574,7 +563,6 @@ var TARGET_BY_DEFINITION_KIND = {
|
|
|
574
563
|
sync: "sync",
|
|
575
564
|
pipeline: "pipeline",
|
|
576
565
|
workflow: "workflow",
|
|
577
|
-
application: "application",
|
|
578
566
|
connector: "connector",
|
|
579
567
|
share: "share"
|
|
580
568
|
};
|
|
@@ -622,10 +610,6 @@ function resolveGrant(input, label, allowedTargets) {
|
|
|
622
610
|
const ids = [...new Set(items.map((item) => definitionIdOf(item, label)))];
|
|
623
611
|
return { target, selection: { all: false, ids } };
|
|
624
612
|
}
|
|
625
|
-
function access(input) {
|
|
626
|
-
const { selection } = resolveGrant(input, "can.access", ["application"]);
|
|
627
|
-
return { kind: "grant", capability: "access", target: "application", selection };
|
|
628
|
-
}
|
|
629
613
|
function view(input) {
|
|
630
614
|
if (isShareTarget(input))
|
|
631
615
|
return createShareViewGrant(input);
|
|
@@ -683,26 +667,28 @@ function isAgentReference(input) {
|
|
|
683
667
|
function isAgentUsageReference(input) {
|
|
684
668
|
return typeof input === "object" && input !== null && !Array.isArray(input) && !isBreadthSelector(input) && "kind" in input && input.kind === "aiUsage";
|
|
685
669
|
}
|
|
670
|
+
var OBSERVABLE_REFERENCES = {
|
|
671
|
+
logs: "project.logs",
|
|
672
|
+
activity: "project.activity",
|
|
673
|
+
aiUsage: "agent.usage"
|
|
674
|
+
};
|
|
675
|
+
function isObservableReference(input) {
|
|
676
|
+
return typeof input === "object" && input !== null && "kind" in input && typeof input.kind === "string" && Object.hasOwn(OBSERVABLE_REFERENCES, input.kind);
|
|
677
|
+
}
|
|
686
678
|
function observe(input) {
|
|
687
|
-
|
|
688
|
-
|
|
679
|
+
const value = input;
|
|
680
|
+
if (value === "logs") {
|
|
681
|
+
throw new SecurityValidationError2('[Sixb] can.observe("logs") is now can.observe(project.logs), imported from "@sixb/core".');
|
|
689
682
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
selection: { all: false, ids: [target] }
|
|
696
|
-
};
|
|
683
|
+
if (!isObservableReference(value)) {
|
|
684
|
+
const accepted = Object.values(OBSERVABLE_REFERENCES).join(" or ");
|
|
685
|
+
throw new SecurityValidationError2(`[Sixb] can.observe accepts ${accepted}.`);
|
|
686
|
+
}
|
|
687
|
+
return { kind: "grant", capability: "observe", target: value.kind };
|
|
697
688
|
}
|
|
698
689
|
function manage(input) {
|
|
699
690
|
if (isAgentUsageReference(input)) {
|
|
700
|
-
return {
|
|
701
|
-
kind: "grant",
|
|
702
|
-
capability: "manage",
|
|
703
|
-
target: "aiUsage",
|
|
704
|
-
selection: { all: false, ids: ["aiUsage"] }
|
|
705
|
-
};
|
|
691
|
+
return { kind: "grant", capability: "manage", target: "aiUsage" };
|
|
706
692
|
}
|
|
707
693
|
return {
|
|
708
694
|
kind: "grant",
|
|
@@ -712,7 +698,6 @@ function manage(input) {
|
|
|
712
698
|
};
|
|
713
699
|
}
|
|
714
700
|
var can2 = {
|
|
715
|
-
access,
|
|
716
701
|
view,
|
|
717
702
|
edit,
|
|
718
703
|
append,
|
|
@@ -722,6 +707,12 @@ var can2 = {
|
|
|
722
707
|
observe,
|
|
723
708
|
manage
|
|
724
709
|
};
|
|
710
|
+
// src/security/project.ts
|
|
711
|
+
var project2 = Object.freeze({
|
|
712
|
+
kind: "project",
|
|
713
|
+
logs: Object.freeze({ kind: "logs" }),
|
|
714
|
+
activity: Object.freeze({ kind: "activity" })
|
|
715
|
+
});
|
|
725
716
|
// src/security/registry.ts
|
|
726
717
|
class SecurityRegistry {
|
|
727
718
|
markingsById;
|
|
@@ -735,7 +726,6 @@ class SecurityRegistry {
|
|
|
735
726
|
groups: input.groups ?? [],
|
|
736
727
|
roles: input.roles ?? [],
|
|
737
728
|
membershipPolicies: input.membershipPolicies ?? [],
|
|
738
|
-
applicationIds: input.applicationIds ?? APPLICATION_IDS,
|
|
739
729
|
objectTypeIds: input.objectTypeIds,
|
|
740
730
|
datasetIds: input.datasetIds,
|
|
741
731
|
actionIds: input.actionIds,
|
|
@@ -744,12 +734,9 @@ class SecurityRegistry {
|
|
|
744
734
|
pipelineIds: input.pipelineIds,
|
|
745
735
|
agentAvailable: input.agentAvailable,
|
|
746
736
|
connectorIds: input.connectorIds,
|
|
747
|
-
observableIds: new Set(["logs", "aiUsage"]),
|
|
748
|
-
manageableIds: new Set(["aiUsage"]),
|
|
749
737
|
shareIds: input.shareIds
|
|
750
738
|
});
|
|
751
739
|
const universe = {
|
|
752
|
-
applicationIds: input.applicationIds ?? APPLICATION_IDS,
|
|
753
740
|
objectTypeIds: input.objectTypeIds ?? new Set,
|
|
754
741
|
datasetIds: input.datasetIds ?? new Set,
|
|
755
742
|
actionIds: input.actionIds ?? new Set,
|
|
@@ -757,8 +744,6 @@ class SecurityRegistry {
|
|
|
757
744
|
syncIds: input.syncIds ?? new Set,
|
|
758
745
|
pipelineIds: input.pipelineIds ?? new Set,
|
|
759
746
|
connectorIds: input.connectorIds ?? new Set,
|
|
760
|
-
observableIds: new Set(["logs", "aiUsage"]),
|
|
761
|
-
manageableIds: new Set(["aiUsage"]),
|
|
762
747
|
shareIds: input.shareIds ?? new Set,
|
|
763
748
|
getSubTypes: input.getSubTypes ?? (() => [])
|
|
764
749
|
};
|
|
@@ -926,15 +911,12 @@ function getActiveInvitationByEmail(state, projectId, email, now) {
|
|
|
926
911
|
const invitations = [...state.invitations.values()].filter((invitation) => invitation.projectId === projectId).filter((invitation) => invitation.email === normalizedEmail).filter((invitation) => isActiveInvitation(invitation, now)).sort((a, b) => compareByCreatedAt(a, b, "desc"));
|
|
927
912
|
return invitations[0] ?? null;
|
|
928
913
|
}
|
|
929
|
-
function revokeActiveSessionsForUser(state, projectId, userId, revokedAt
|
|
914
|
+
function revokeActiveSessionsForUser(state, projectId, userId, revokedAt) {
|
|
930
915
|
const revoked = [];
|
|
931
916
|
for (const [key, session] of state.sessions) {
|
|
932
917
|
if (session.projectId !== projectId || session.userId !== userId) {
|
|
933
918
|
continue;
|
|
934
919
|
}
|
|
935
|
-
if (audience !== undefined && session.audience !== audience) {
|
|
936
|
-
continue;
|
|
937
|
-
}
|
|
938
920
|
if (!isActiveSession(session, revokedAt)) {
|
|
939
921
|
continue;
|
|
940
922
|
}
|
|
@@ -973,7 +955,6 @@ function assertSessionIdAvailable(state, projectId, sessionId) {
|
|
|
973
955
|
}
|
|
974
956
|
function validateCompleteSessionInput(state, projectId, session) {
|
|
975
957
|
const sessionId = assertNonEmpty4(session.id, "Session id");
|
|
976
|
-
assertNonEmpty4(session.audience, "Session audience");
|
|
977
958
|
assertNonEmpty4(session.tokenHash, "Session token hash");
|
|
978
959
|
assertSessionIdAvailable(state, projectId, sessionId);
|
|
979
960
|
}
|
|
@@ -982,7 +963,6 @@ function createSessionRecord(state, input) {
|
|
|
982
963
|
const projectId = assertNonEmpty4(input.projectId, "Project id");
|
|
983
964
|
const userId = assertNonEmpty4(input.userId, "User id");
|
|
984
965
|
const strategyId = assertNonEmpty4(input.strategyId, "Strategy id");
|
|
985
|
-
const audience = resolveAuthSessionAudience2(input.audience);
|
|
986
966
|
const tokenHash = assertNonEmpty4(input.tokenHash, "Session token hash");
|
|
987
967
|
assertSessionIdAvailable(state, projectId, id);
|
|
988
968
|
const session = {
|
|
@@ -990,7 +970,6 @@ function createSessionRecord(state, input) {
|
|
|
990
970
|
projectId,
|
|
991
971
|
userId,
|
|
992
972
|
strategyId,
|
|
993
|
-
audience,
|
|
994
973
|
tokenHash,
|
|
995
974
|
createdAt: cloneDate(input.createdAt),
|
|
996
975
|
expiresAt: cloneDate(input.expiresAt),
|
|
@@ -1510,7 +1489,6 @@ class InMemoryAuthMagicLinkStore {
|
|
|
1510
1489
|
const id = assertNonEmpty4(input.id, "Magic link id");
|
|
1511
1490
|
const projectId = assertNonEmpty4(input.projectId, "Project id");
|
|
1512
1491
|
const strategyId = assertNonEmpty4(input.strategyId, "Strategy id");
|
|
1513
|
-
const audience = resolveAuthSessionAudience2(input.audience);
|
|
1514
1492
|
const email = normalizeEmail(input.email);
|
|
1515
1493
|
const tokenHash = assertNonEmpty4(input.tokenHash, "Magic link token hash");
|
|
1516
1494
|
const key = magicLinkKey(projectId, id);
|
|
@@ -1522,7 +1500,6 @@ class InMemoryAuthMagicLinkStore {
|
|
|
1522
1500
|
id,
|
|
1523
1501
|
projectId,
|
|
1524
1502
|
strategyId,
|
|
1525
|
-
audience,
|
|
1526
1503
|
email,
|
|
1527
1504
|
tokenHash,
|
|
1528
1505
|
returnTo: input.returnTo,
|
|
@@ -1559,7 +1536,6 @@ class InMemoryAuthOidcAuthorizationAttemptStore {
|
|
|
1559
1536
|
const id = assertNonEmpty4(input.id, "OIDC authorization attempt id");
|
|
1560
1537
|
const projectId = assertNonEmpty4(input.projectId, "Project id");
|
|
1561
1538
|
const strategyId = assertNonEmpty4(input.strategyId, "Strategy id");
|
|
1562
|
-
const audience = resolveAuthSessionAudience2(input.audience);
|
|
1563
1539
|
const stateHash = assertNonEmpty4(input.stateHash, "OIDC state hash");
|
|
1564
1540
|
const nonceHash = assertNonEmpty4(input.nonceHash, "OIDC nonce hash");
|
|
1565
1541
|
const codeVerifier = assertNonEmpty4(input.codeVerifier, "OIDC code verifier");
|
|
@@ -1571,7 +1547,6 @@ class InMemoryAuthOidcAuthorizationAttemptStore {
|
|
|
1571
1547
|
id,
|
|
1572
1548
|
projectId,
|
|
1573
1549
|
strategyId,
|
|
1574
|
-
audience,
|
|
1575
1550
|
stateHash,
|
|
1576
1551
|
nonceHash,
|
|
1577
1552
|
codeVerifier,
|
|
@@ -1697,10 +1672,6 @@ class InMemoryAuthSessionStore {
|
|
|
1697
1672
|
const record = this.state.sessions.get(sessionKey(params.projectId, params.id)) ?? null;
|
|
1698
1673
|
return cloneOptionalRecord(record);
|
|
1699
1674
|
}
|
|
1700
|
-
async getActiveByUserId(params) {
|
|
1701
|
-
const sessions = [...this.state.sessions.values()].filter((session) => session.projectId === params.projectId).filter((session) => session.userId === params.userId).filter((session) => session.audience === params.audience).filter((session) => isActiveSession(session, params.now)).sort((a, b) => compareByCreatedAt(a, b, "desc"));
|
|
1702
|
-
return cloneOptionalRecord(sessions[0] ?? null);
|
|
1703
|
-
}
|
|
1704
1675
|
async listActiveByUserId(params) {
|
|
1705
1676
|
return [...this.state.sessions.values()].filter((session) => session.projectId === params.projectId).filter((session) => session.userId === params.userId).filter((session) => isActiveSession(session, params.now)).sort((a, b) => {
|
|
1706
1677
|
const activity = (b.lastSeenAt ?? b.createdAt).getTime() - (a.lastSeenAt ?? a.createdAt).getTime();
|
|
@@ -1710,9 +1681,23 @@ class InMemoryAuthSessionStore {
|
|
|
1710
1681
|
return created !== 0 ? created : b.id.localeCompare(a.id);
|
|
1711
1682
|
}).map(cloneRecord);
|
|
1712
1683
|
}
|
|
1684
|
+
async listByUserId(params) {
|
|
1685
|
+
const before = params.before;
|
|
1686
|
+
const offset = before?.skip ?? 0;
|
|
1687
|
+
const sessions = [...this.state.sessions.values()].filter((session) => session.projectId === params.projectId).filter((session) => session.userId === params.userId).filter((session) => !before || session.createdAt <= before.createdAt).sort((a, b) => {
|
|
1688
|
+
const created = b.createdAt.getTime() - a.createdAt.getTime();
|
|
1689
|
+
if (created !== 0)
|
|
1690
|
+
return created;
|
|
1691
|
+
return a.id < b.id ? 1 : a.id > b.id ? -1 : 0;
|
|
1692
|
+
});
|
|
1693
|
+
return {
|
|
1694
|
+
sessions: sessions.slice(offset, offset + params.limit).map(cloneRecord),
|
|
1695
|
+
hasMore: sessions.length > offset + params.limit
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1713
1698
|
async findValidByTokenHash(params) {
|
|
1714
1699
|
const session = this.state.sessions.get(sessionKey(params.projectId, params.id));
|
|
1715
|
-
if (!session || session.bearer || session.
|
|
1700
|
+
if (!session || session.bearer || session.tokenHash !== params.tokenHash || !isActiveSession(session, params.now)) {
|
|
1716
1701
|
return null;
|
|
1717
1702
|
}
|
|
1718
1703
|
return cloneRecord(session);
|
|
@@ -1759,7 +1744,7 @@ class InMemoryAuthSessionStore {
|
|
|
1759
1744
|
async renewIfValid(params) {
|
|
1760
1745
|
const key = sessionKey(params.projectId, params.id);
|
|
1761
1746
|
const session = this.state.sessions.get(key);
|
|
1762
|
-
if (!session || session.bearer || session.
|
|
1747
|
+
if (!session || session.bearer || session.tokenHash !== params.tokenHash || !isActiveSession(session, params.now)) {
|
|
1763
1748
|
return null;
|
|
1764
1749
|
}
|
|
1765
1750
|
const requestedExpiresAt = session.absoluteExpiresAt ? new Date(Math.min(params.expiresAt.getTime(), session.absoluteExpiresAt.getTime())) : params.expiresAt;
|
|
@@ -1785,7 +1770,7 @@ class InMemoryAuthSessionStore {
|
|
|
1785
1770
|
return cloneRecord(next);
|
|
1786
1771
|
}
|
|
1787
1772
|
async revokeActiveForUser(params) {
|
|
1788
|
-
return revokeActiveSessionsForUser(this.state, params.projectId, params.userId, params.revokedAt
|
|
1773
|
+
return revokeActiveSessionsForUser(this.state, params.projectId, params.userId, params.revokedAt).map(cloneRecord);
|
|
1789
1774
|
}
|
|
1790
1775
|
async touch(params) {
|
|
1791
1776
|
const key = sessionKey(params.projectId, params.id);
|
|
@@ -1993,7 +1978,6 @@ class InMemoryAuthStorage2 {
|
|
|
1993
1978
|
throw new AuthStorageError2("user_creation_not_allowed", `[Sixb] Magic link '${input.magicLinkId}' cannot create a user for project '${projectId}'.`);
|
|
1994
1979
|
}
|
|
1995
1980
|
validateCompleteSessionInput(this.state, projectId, input.session);
|
|
1996
|
-
assertSignInSessionAudience(projectId, input.session.audience, magicLink.audience);
|
|
1997
1981
|
let newUserId;
|
|
1998
1982
|
if (shouldCreateUser) {
|
|
1999
1983
|
newUserId = assertNonEmpty4(input.newUserId, "User id");
|
|
@@ -2082,7 +2066,6 @@ class InMemoryAuthStorage2 {
|
|
|
2082
2066
|
throw new AuthStorageError2("user_creation_not_allowed", `[Sixb] OIDC authorization attempt '${input.oidcAuthorizationAttemptId}' cannot create a user for project '${projectId}'.`);
|
|
2083
2067
|
}
|
|
2084
2068
|
validateCompleteSessionInput(this.state, projectId, input.session);
|
|
2085
|
-
assertSignInSessionAudience(projectId, input.session.audience, attempt.audience);
|
|
2086
2069
|
let newUserId;
|
|
2087
2070
|
if (shouldCreateUser) {
|
|
2088
2071
|
newUserId = assertNonEmpty4(input.newUserId, "User id");
|
|
@@ -2213,7 +2196,6 @@ class InMemoryAuthStorage2 {
|
|
|
2213
2196
|
projectId: input.projectId,
|
|
2214
2197
|
userId: input.userId,
|
|
2215
2198
|
strategyId: input.strategyId,
|
|
2216
|
-
audience: input.session.audience,
|
|
2217
2199
|
tokenHash: input.session.tokenHash,
|
|
2218
2200
|
createdAt: input.session.createdAt,
|
|
2219
2201
|
expiresAt: input.session.expiresAt,
|
|
@@ -2237,12 +2219,6 @@ function restoreMap(target, snapshot) {
|
|
|
2237
2219
|
target.set(key, value);
|
|
2238
2220
|
}
|
|
2239
2221
|
}
|
|
2240
|
-
function assertSignInSessionAudience(projectId, sessionAudience, storedAudience) {
|
|
2241
|
-
if (sessionAudience === storedAudience) {
|
|
2242
|
-
return;
|
|
2243
|
-
}
|
|
2244
|
-
throw new AuthStorageError2("invalid_input", `[Sixb] Sign-in session audience '${sessionAudience}' does not match stored auth audience '${storedAudience}' for project '${projectId}'.`);
|
|
2245
|
-
}
|
|
2246
2222
|
// src/auth/session-cache.ts
|
|
2247
2223
|
class SessionCache {
|
|
2248
2224
|
ttlMs;
|
|
@@ -2257,7 +2233,7 @@ class SessionCache {
|
|
|
2257
2233
|
if (!entry) {
|
|
2258
2234
|
return;
|
|
2259
2235
|
}
|
|
2260
|
-
if (entry.expiresAtMs <= input.nowMs || entry.tokenHash !== input.tokenHash || entry.transport !== input.transport
|
|
2236
|
+
if (entry.expiresAtMs <= input.nowMs || entry.tokenHash !== input.tokenHash || entry.transport !== input.transport) {
|
|
2261
2237
|
this.entries.delete(input.sessionId);
|
|
2262
2238
|
return;
|
|
2263
2239
|
}
|
|
@@ -2273,7 +2249,6 @@ class SessionCache {
|
|
|
2273
2249
|
this.entries.set(input.sessionId, {
|
|
2274
2250
|
tokenHash: input.tokenHash,
|
|
2275
2251
|
transport: bearer ? "bearer" : "cookie",
|
|
2276
|
-
audience: input.audience,
|
|
2277
2252
|
session: input.session,
|
|
2278
2253
|
expiresAtMs
|
|
2279
2254
|
});
|
|
@@ -2387,8 +2362,8 @@ class AuthRuntime2 {
|
|
|
2387
2362
|
...absoluteTimeoutMs === undefined ? {} : { absoluteExpiresAt: new Date(now.getTime() + absoluteTimeoutMs) }
|
|
2388
2363
|
};
|
|
2389
2364
|
}
|
|
2390
|
-
getCookieOptions(
|
|
2391
|
-
return
|
|
2365
|
+
getCookieOptions() {
|
|
2366
|
+
return this.config.cookies;
|
|
2392
2367
|
}
|
|
2393
2368
|
assertCanServeHttp(params) {
|
|
2394
2369
|
const strategy = this.config.strategy;
|
|
@@ -2409,7 +2384,6 @@ class AuthRuntime2 {
|
|
|
2409
2384
|
if (!this.isEnabled()) {
|
|
2410
2385
|
return { authenticated: false, reason: "auth_disabled" };
|
|
2411
2386
|
}
|
|
2412
|
-
const audience = resolveAuthSessionAudience2(options.audience);
|
|
2413
2387
|
if (options.credentialSource === "any") {
|
|
2414
2388
|
const tokenValue = getBearerAccessTokenValue2(request);
|
|
2415
2389
|
if (tokenValue?.startsWith(SESSION_ACCESS_TOKEN_PREFIX)) {
|
|
@@ -2422,10 +2396,10 @@ class AuthRuntime2 {
|
|
|
2422
2396
|
return { authenticated: false, reason: "invalid_access_token" };
|
|
2423
2397
|
}
|
|
2424
2398
|
}
|
|
2425
|
-
return this.resolveCookieSession(request,
|
|
2399
|
+
return this.resolveCookieSession(request, options.sessionActivity);
|
|
2426
2400
|
}
|
|
2427
|
-
async resolveCookieSession(request,
|
|
2428
|
-
const cookieOptions = this.getCookieOptions(
|
|
2401
|
+
async resolveCookieSession(request, activity) {
|
|
2402
|
+
const cookieOptions = this.getCookieOptions();
|
|
2429
2403
|
const cookieValue = getCookie2(request, cookieOptions.sessionCookieName);
|
|
2430
2404
|
if (!cookieValue) {
|
|
2431
2405
|
return { authenticated: false, reason: "missing_cookie" };
|
|
@@ -2440,7 +2414,6 @@ class AuthRuntime2 {
|
|
|
2440
2414
|
sessionId: parts.sessionId,
|
|
2441
2415
|
tokenHash,
|
|
2442
2416
|
transport: "cookie",
|
|
2443
|
-
audience,
|
|
2444
2417
|
nowMs
|
|
2445
2418
|
});
|
|
2446
2419
|
if (cached) {
|
|
@@ -2454,7 +2427,6 @@ class AuthRuntime2 {
|
|
|
2454
2427
|
let session = await storage.sessions.findValidByTokenHash({
|
|
2455
2428
|
projectId: this.projectId,
|
|
2456
2429
|
id: parts.sessionId,
|
|
2457
|
-
audience,
|
|
2458
2430
|
tokenHash,
|
|
2459
2431
|
now
|
|
2460
2432
|
});
|
|
@@ -2466,7 +2438,6 @@ class AuthRuntime2 {
|
|
|
2466
2438
|
const renewed = await storage.sessions.renewIfValid({
|
|
2467
2439
|
projectId: this.projectId,
|
|
2468
2440
|
id: parts.sessionId,
|
|
2469
|
-
audience,
|
|
2470
2441
|
tokenHash,
|
|
2471
2442
|
now,
|
|
2472
2443
|
expiresAt: this.getRenewedSessionExpiresAt(session, nowMs)
|
|
@@ -2529,7 +2500,6 @@ class AuthRuntime2 {
|
|
|
2529
2500
|
this.sessionCache?.set({
|
|
2530
2501
|
sessionId: session.id,
|
|
2531
2502
|
tokenHash,
|
|
2532
|
-
audience: session.audience,
|
|
2533
2503
|
session: result,
|
|
2534
2504
|
nowMs: now.getTime(),
|
|
2535
2505
|
sessionExpiresAtMs: session.expiresAt.getTime(),
|
|
@@ -2547,7 +2517,6 @@ class AuthRuntime2 {
|
|
|
2547
2517
|
projectId: this.projectId,
|
|
2548
2518
|
userId: input.userId,
|
|
2549
2519
|
strategyId: "device",
|
|
2550
|
-
audience: DEFAULT_AUTH_SESSION_AUDIENCE2,
|
|
2551
2520
|
tokenHash: tokens.tokenHash,
|
|
2552
2521
|
createdAt: input.now,
|
|
2553
2522
|
...this.createSessionDeadlines(input.now),
|
|
@@ -2749,6 +2718,10 @@ class AuthRuntime2 {
|
|
|
2749
2718
|
}
|
|
2750
2719
|
async listServiceAccounts(caller) {
|
|
2751
2720
|
const storage = this.requireAuthStorage();
|
|
2721
|
+
const scope = this.resolveMembershipPolicyScopeForUser(caller.groupIds);
|
|
2722
|
+
if (scope.operations.serviceAccounts.policyIds.length === 0) {
|
|
2723
|
+
return { serviceAccounts: [] };
|
|
2724
|
+
}
|
|
2752
2725
|
const result = await storage.serviceAccounts.list({
|
|
2753
2726
|
projectId: this.projectId,
|
|
2754
2727
|
order: "desc",
|
|
@@ -2759,14 +2732,13 @@ class AuthRuntime2 {
|
|
|
2759
2732
|
groupIds: await this.listServiceAccountGroupIds(storage, serviceAccount.id)
|
|
2760
2733
|
})));
|
|
2761
2734
|
return {
|
|
2762
|
-
serviceAccounts: withGroups.filter(({ groupIds }) =>
|
|
2735
|
+
serviceAccounts: withGroups.filter(({ groupIds }) => canPerformMembershipOperation(scope, "serviceAccounts", groupIds))
|
|
2763
2736
|
};
|
|
2764
2737
|
}
|
|
2765
2738
|
async createServiceAccount(caller, input) {
|
|
2766
2739
|
const storage = this.requireAuthStorage();
|
|
2767
|
-
const groupIds =
|
|
2768
|
-
|
|
2769
|
-
}) ?? [];
|
|
2740
|
+
const groupIds = normalizeRequestedGroupIds(input.groupIds) ?? [];
|
|
2741
|
+
this.assertCanManageServiceAccountGroups(caller.groupIds, groupIds);
|
|
2770
2742
|
const now = new Date;
|
|
2771
2743
|
const serviceAccount = await storage.serviceAccounts.create({
|
|
2772
2744
|
id: input.id ?? `svc_${randomUUID3()}`,
|
|
@@ -2858,12 +2830,16 @@ class AuthRuntime2 {
|
|
|
2858
2830
|
return { serviceAccount, accessToken };
|
|
2859
2831
|
}
|
|
2860
2832
|
async requireManageableServiceAccount(storage, callerGroupIds, serviceAccountId) {
|
|
2833
|
+
const scope = this.resolveMembershipPolicyScopeForUser(callerGroupIds);
|
|
2834
|
+
if (scope.operations.serviceAccounts.policyIds.length === 0) {
|
|
2835
|
+
throw missingServiceAccountsPolicyError();
|
|
2836
|
+
}
|
|
2861
2837
|
const serviceAccount = await storage.serviceAccounts.getById({
|
|
2862
2838
|
projectId: this.projectId,
|
|
2863
2839
|
id: serviceAccountId
|
|
2864
2840
|
});
|
|
2865
2841
|
const groupIds = serviceAccount ? await this.listServiceAccountGroupIds(storage, serviceAccountId) : [];
|
|
2866
|
-
if (!serviceAccount || !
|
|
2842
|
+
if (!serviceAccount || !canPerformMembershipOperation(scope, "serviceAccounts", groupIds)) {
|
|
2867
2843
|
throw new AuthStorageError2("missing_service_account", `[Sixb] Service account '${serviceAccountId}' not found for project '${this.projectId}'.`);
|
|
2868
2844
|
}
|
|
2869
2845
|
return { serviceAccount, groupIds };
|
|
@@ -2897,6 +2873,7 @@ class AuthRuntime2 {
|
|
|
2897
2873
|
const scope = this.resolveMembershipPolicyScopeForUser(caller.groupIds);
|
|
2898
2874
|
return {
|
|
2899
2875
|
groups: this.scopedGroupOptions(scope.operations.assignGroups.groupIds),
|
|
2876
|
+
serviceAccountGroups: this.scopedGroupOptions(scope.operations.serviceAccounts.groupIds),
|
|
2900
2877
|
capabilities: membershipCapabilities(scope).holds
|
|
2901
2878
|
};
|
|
2902
2879
|
}
|
|
@@ -3069,7 +3046,6 @@ class AuthRuntime2 {
|
|
|
3069
3046
|
throw new AuthRuntimeError2("invalid_auth_config", "[Sixb] The active auth strategy does not support invitations.");
|
|
3070
3047
|
}
|
|
3071
3048
|
await this.assertCanInviteRecipient(strategy, authStorage, input.email, now);
|
|
3072
|
-
this.assertInvitationApplicationAccess(groupIds, destination.audience);
|
|
3073
3049
|
const invitation = await authStorage.invitations.createOrUpdateActive({
|
|
3074
3050
|
id: `inv_${randomUUID3()}`,
|
|
3075
3051
|
projectId: this.projectId,
|
|
@@ -3087,7 +3063,6 @@ class AuthRuntime2 {
|
|
|
3087
3063
|
projectId: this.projectId,
|
|
3088
3064
|
authStorage,
|
|
3089
3065
|
invitation,
|
|
3090
|
-
audience: destination.audience,
|
|
3091
3066
|
returnTo: destination.returnTo,
|
|
3092
3067
|
requestOrigin: destination.requestOrigin,
|
|
3093
3068
|
revealLink: input.revealLink,
|
|
@@ -3184,17 +3159,6 @@ class AuthRuntime2 {
|
|
|
3184
3159
|
}
|
|
3185
3160
|
return { state: "enabled" };
|
|
3186
3161
|
}
|
|
3187
|
-
assertInvitationApplicationAccess(groupIds, audience) {
|
|
3188
|
-
const roles = this.security.listResolvedRoles();
|
|
3189
|
-
const authorization = resolveAuthorizationContext2({
|
|
3190
|
-
principal: { type: "user", id: "invited-user" },
|
|
3191
|
-
groupIds,
|
|
3192
|
-
roles
|
|
3193
|
-
});
|
|
3194
|
-
if (canAccessApplication2(authorization, roles, audience))
|
|
3195
|
-
return;
|
|
3196
|
-
throw new AuthRuntimeError2("authorization_denied", `[Sixb] Invitation groups do not grant access to application '${audience}'.`);
|
|
3197
|
-
}
|
|
3198
3162
|
async assertCanInviteRecipient(strategy, authStorage, email, now) {
|
|
3199
3163
|
if (!strategy.validateInvitationRecipient) {
|
|
3200
3164
|
return;
|
|
@@ -3223,6 +3187,17 @@ class AuthRuntime2 {
|
|
|
3223
3187
|
}
|
|
3224
3188
|
return new AuthRuntimeError2("invalid_auth_input", "[Sixb] Invitation delivery was skipped by the active auth strategy.");
|
|
3225
3189
|
}
|
|
3190
|
+
assertCanManageServiceAccountGroups(callerGroupIds, groupIds) {
|
|
3191
|
+
const scope = this.resolveMembershipPolicyScopeForUser(callerGroupIds);
|
|
3192
|
+
if (canPerformMembershipOperation(scope, "serviceAccounts", groupIds)) {
|
|
3193
|
+
return;
|
|
3194
|
+
}
|
|
3195
|
+
if (scope.operations.serviceAccounts.policyIds.length === 0) {
|
|
3196
|
+
throw missingServiceAccountsPolicyError();
|
|
3197
|
+
}
|
|
3198
|
+
const missing = missingMembershipGroupIds(scope, "serviceAccounts", groupIds);
|
|
3199
|
+
throw new AuthRuntimeError2("authorization_denied", `[Sixb] The current user is not allowed to place service accounts in group(s): ${missing.join(", ")}.`);
|
|
3200
|
+
}
|
|
3226
3201
|
assertCanManageInvitationGroups(callerGroupIds, groupIds) {
|
|
3227
3202
|
const scope = this.resolveMembershipPolicyScopeForUser(callerGroupIds);
|
|
3228
3203
|
if (canPerformMembershipOperation(scope, "invite", groupIds)) {
|
|
@@ -3256,9 +3231,8 @@ function constrainTokenGroupIds(principalGroupIds, accessToken) {
|
|
|
3256
3231
|
const allowed = new Set(accessToken.groupIds);
|
|
3257
3232
|
return principalGroupIds.filter((groupId) => allowed.has(groupId));
|
|
3258
3233
|
}
|
|
3259
|
-
function
|
|
3260
|
-
|
|
3261
|
-
return serviceAccountGroupIds.every((groupId) => callerGroups.has(groupId));
|
|
3234
|
+
function missingServiceAccountsPolicyError() {
|
|
3235
|
+
return new AuthRuntimeError2("authorization_denied", "[Sixb] Managing service accounts needs a membership policy with the 'serviceAccounts' operation.");
|
|
3262
3236
|
}
|
|
3263
3237
|
function missingAccessTokenError(tokenId, projectId) {
|
|
3264
3238
|
return new AuthStorageError2("missing_access_token", `[Sixb] Access token '${tokenId}' not found for project '${projectId}'.`);
|
|
@@ -3309,7 +3283,8 @@ function membershipCapabilities(scope) {
|
|
|
3309
3283
|
holds: {
|
|
3310
3284
|
invite: scope.operations.invite.policyIds.length > 0,
|
|
3311
3285
|
assignGroups: scope.operations.assignGroups.policyIds.length > 0,
|
|
3312
|
-
suspend: scope.operations.suspend.policyIds.length > 0
|
|
3286
|
+
suspend: scope.operations.suspend.policyIds.length > 0,
|
|
3287
|
+
serviceAccounts: scope.operations.serviceAccounts.policyIds.length > 0
|
|
3313
3288
|
},
|
|
3314
3289
|
assignableGroupIds: [...scope.operations.assignGroups.groupIds],
|
|
3315
3290
|
covers: (operation, memberGroups) => canPerformMembershipOperation(scope, operation, groupIdsOf(memberGroups))
|
|
@@ -3323,6 +3298,6 @@ var SYSTEM_PRINCIPAL2 = { type: "system", id: "system" };
|
|
|
3323
3298
|
function principalsEqual2(left, right) {
|
|
3324
3299
|
return left.type === right.type && left.id === right.id;
|
|
3325
3300
|
}
|
|
3326
|
-
export { ActionDefinitionError2, missingActionMutationMessage, effectsWithoutEditsMessage, assertNonEmpty2, isActionDefinition2, isGlobalActionDefinition2, isObjectActionDefinition2, normalizeActionParams, coerceActionParamsToTyped, validateActionSubject, resolveObjectActionSubject, PERSONAL_ACCESS_TOKEN_PREFIX2, SERVICE_ACCOUNT_ACCESS_TOKEN_PREFIX2, generateAccessTokenSecret2, hashAccessTokenSecret2, formatAccessTokenValue2, parseAccessTokenValue2, getBearerAccessTokenValue2, createAccessTokenCredential2, setRequestClientAddress2, getRequestClientAddress2, CSRF_HEADER_NAME2, generateCsrfToken2, isCsrfExemptMethod2, verifyDoubleSubmitCsrf2, verifyCsrfToken2,
|
|
3301
|
+
export { ActionDefinitionError2, missingActionMutationMessage, effectsWithoutEditsMessage, assertNonEmpty2, isActionDefinition2, isGlobalActionDefinition2, isObjectActionDefinition2, normalizeActionParams, coerceActionParamsToTyped, validateActionSubject, resolveObjectActionSubject, PERSONAL_ACCESS_TOKEN_PREFIX2, SERVICE_ACCOUNT_ACCESS_TOKEN_PREFIX2, generateAccessTokenSecret2, hashAccessTokenSecret2, formatAccessTokenValue2, parseAccessTokenValue2, getBearerAccessTokenValue2, createAccessTokenCredential2, setRequestClientAddress2, getRequestClientAddress2, CSRF_HEADER_NAME2, generateCsrfToken2, isCsrfExemptMethod2, verifyDoubleSubmitCsrf2, verifyCsrfToken2, every2, ShareDefinitionError2, defineShare2, isShareDefinition, snapshotShareDefinition, can2, project2, SecurityRegistry, AuthStorageError2, MAX_PENDING_DEVICE_AUTHORIZATIONS2, paginate, InMemoryAuthStorage2, generateSessionSecret2, hashSessionSecret2, formatSessionCookieValue2, parseSessionCookieValue2, createSessionCredential2, AuthRuntime2, SYSTEM_PRINCIPAL2, principalsEqual2 };
|
|
3327
3302
|
|
|
3328
|
-
//# debugId=
|
|
3303
|
+
//# debugId=EE5BEC634BE73EEF64756E2164756E21
|