@sixb/core 0.1.20 → 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/index.js +10 -10
- package/dist/authorization/decision.d.ts +2 -0
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +2 -2
- package/dist/authorization/grant-kinds.d.ts.map +1 -1
- package/dist/authorization/index.js +6 -6
- 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 +53 -47
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-xfs8x8m9.js → chunk-0bphap9y.js} +5 -5
- package/dist/{chunk-1zq2p6g0.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-t7x8dmn0.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-ren4kg2j.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-x6m907x7.js → chunk-5vems3nx.js} +5 -6
- package/dist/{chunk-x6m907x7.js.map → chunk-5vems3nx.js.map} +3 -3
- package/dist/{chunk-0rbyz4qy.js → chunk-61y5xs4p.js} +560 -164
- package/dist/{chunk-0rbyz4qy.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-d0bqz29d.js → chunk-6vb4st8k.js} +8 -4
- package/dist/{chunk-d0bqz29d.js.map → chunk-6vb4st8k.js.map} +3 -3
- package/dist/chunk-7q8t23v4.js +467 -0
- package/dist/chunk-7q8t23v4.js.map +14 -0
- package/dist/{chunk-5j58wjct.js → chunk-858emn8m.js} +6 -6
- 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-n33z5bjw.js → chunk-918wwnaa.js} +490 -24
- package/dist/{chunk-n33z5bjw.js.map → chunk-918wwnaa.js.map} +13 -11
- package/dist/{chunk-rrzt8jdy.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-6c6sn0bh.js → chunk-akzryx9h.js} +335 -1167
- package/dist/{chunk-6c6sn0bh.js.map → chunk-akzryx9h.js.map} +18 -24
- package/dist/chunk-arns890k.js +10 -0
- package/dist/chunk-arns890k.js.map +10 -0
- package/dist/{chunk-hjzdd750.js → chunk-bk9svbcq.js} +11 -11
- package/dist/{chunk-hjzdd750.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-6p49a5cq.js → chunk-c1rxbz5y.js} +3 -3
- package/dist/chunk-cfj9dfbb.js +288 -0
- package/dist/chunk-cfj9dfbb.js.map +12 -0
- package/dist/{chunk-bx9q3cwv.js → chunk-cn0fwwhy.js} +7 -7
- package/dist/{chunk-bx9q3cwv.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-9w055r5b.js → chunk-d09e3rax.js} +1 -1
- package/dist/chunk-d5rjr8c0.js +176 -0
- package/dist/chunk-d5rjr8c0.js.map +12 -0
- package/dist/{chunk-dk8tkk5f.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-gsjm1wms.js → chunk-dhdha526.js} +8 -2
- 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-way52z4h.js → chunk-e17zdm62.js} +6 -12
- package/dist/{chunk-way52z4h.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-es1gxsbf.js → chunk-f4pamkt9.js} +8 -10
- 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-d09tj99x.js → chunk-g257jwnc.js} +10 -4
- package/dist/{chunk-d09tj99x.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-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-k6q3n2sc.js → chunk-k43ct2ke.js} +20 -11
- package/dist/chunk-k43ct2ke.js.map +12 -0
- package/dist/{chunk-3t2hgbgd.js → chunk-kge7k6ey.js} +40 -8
- package/dist/chunk-kge7k6ey.js.map +15 -0
- package/dist/{chunk-tg2cw67r.js → chunk-ky3j490c.js} +2 -2
- package/dist/chunk-mjddfa7k.js +129 -0
- package/dist/chunk-mjddfa7k.js.map +12 -0
- package/dist/{chunk-vpq4shxz.js → chunk-nn5xnx3s.js} +45 -10
- package/dist/{chunk-vpq4shxz.js.map → chunk-nn5xnx3s.js.map} +7 -6
- package/dist/{chunk-0yh890a4.js → chunk-q5e5tv4b.js} +35 -7
- package/dist/{chunk-0yh890a4.js.map → chunk-q5e5tv4b.js.map} +3 -3
- package/dist/{chunk-vyf9kfqf.js → chunk-q7gn29y3.js} +1 -1
- package/dist/{chunk-yevzdx4y.js → chunk-rmakanzx.js} +10 -12
- package/dist/{chunk-yevzdx4y.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-9dmt152s.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-z4m0yz8c.js → chunk-y5tah2kf.js} +1 -1
- package/dist/{chunk-fkgc1wt8.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/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/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 +48 -41
- 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 +20 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +112 -97
- 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 +25 -24
- 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/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/dataset-version-markings.d.ts +47 -0
- package/dist/security/dataset-version-markings.d.ts.map +1 -0
- package/dist/security/grants.d.ts +3 -2
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/index.d.ts +2 -1
- 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/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.js +2 -2
- package/dist/security/redactions.d.ts +4 -1
- package/dist/security/redactions.d.ts.map +1 -1
- package/dist/security/types.d.ts +22 -2
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +24 -23
- 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 +9 -8
- 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/sessions.d.ts +2 -1
- package/dist/storage/auth/in-memory/sessions.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 +19 -0
- 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 +11 -11
- 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 +54 -53
- 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 +13 -12
- 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 +4488 -3137
- 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 +27 -26
- 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 +25 -1
- 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/authorization/decision.ts +5 -0
- package/src/authorization/grant-kinds.ts +14 -2
- 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/errors/internal.ts +1 -0
- package/src/events/execution.ts +134 -21
- 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 +71 -3
- 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/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/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/dataset-version-markings.ts +163 -0
- package/src/security/grants.ts +39 -4
- package/src/security/index.ts +3 -0
- 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/pipeline-markings.ts +175 -0
- package/src/security/project.ts +8 -0
- package/src/security/projection-markings.ts +421 -0
- package/src/security/redactions.ts +7 -2
- package/src/security/types.ts +20 -2
- package/src/security/validation.ts +11 -4
- 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 +9 -16
- 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/sessions.ts +21 -0
- package/src/storage/auth/index.ts +2 -0
- package/src/storage/auth/types.ts +18 -0
- 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 +47 -0
- package/src/testing/execution-storage-contract.ts +147 -1
- 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/chunk-1k89ecfr.js +0 -85
- package/dist/chunk-1k89ecfr.js.map +0 -10
- package/dist/chunk-3t2hgbgd.js.map +0 -15
- package/dist/chunk-4vyr1j8f.js +0 -128
- package/dist/chunk-4vyr1j8f.js.map +0 -11
- package/dist/chunk-9gyp8hg1.js +0 -363
- package/dist/chunk-9gyp8hg1.js.map +0 -14
- package/dist/chunk-es1gxsbf.js.map +0 -13
- package/dist/chunk-gsjm1wms.js.map +0 -10
- package/dist/chunk-hkc3jct7.js.map +0 -10
- package/dist/chunk-k6q3n2sc.js.map +0 -12
- package/dist/chunk-rrzt8jdy.js.map +0 -14
- 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-xfs8x8m9.js.map → chunk-0bphap9y.js.map} +0 -0
- /package/dist/{chunk-1zq2p6g0.js.map → chunk-1cc1xaf3.js.map} +0 -0
- /package/dist/{chunk-t7x8dmn0.js.map → chunk-431pyp2c.js.map} +0 -0
- /package/dist/{chunk-c85m1hyj.js.map → chunk-447a5c0p.js.map} +0 -0
- /package/dist/{chunk-ren4kg2j.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-5j58wjct.js.map → chunk-858emn8m.js.map} +0 -0
- /package/dist/{chunk-6p49a5cq.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-9w055r5b.js.map → chunk-d09e3rax.js.map} +0 -0
- /package/dist/{chunk-dk8tkk5f.js.map → chunk-d7dnxdep.js.map} +0 -0
- /package/dist/{chunk-tg2cw67r.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-9dmt152s.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-z4m0yz8c.js.map → chunk-y5tah2kf.js.map} +0 -0
- /package/dist/{chunk-fkgc1wt8.js.map → chunk-z58tm0hm.js.map} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** What one version may hold. Publishing refuses a version over any of these. */
|
|
2
|
+
export declare const ARTIFACT_LIMITS: {
|
|
3
|
+
readonly maxFiles: 200;
|
|
4
|
+
readonly maxFileBytes: number;
|
|
5
|
+
readonly maxVersionBytes: number;
|
|
6
|
+
readonly maxPathLength: 512;
|
|
7
|
+
readonly maxTitleLength: 200;
|
|
8
|
+
/** A document's Markdown is parsed whole when it is published. */
|
|
9
|
+
readonly maxDocumentBytes: number;
|
|
10
|
+
readonly maxThemeBytes: number;
|
|
11
|
+
readonly maxWorkbookBytes: number;
|
|
12
|
+
/** A sheet's limits keep the grid quick and its charts readable. */
|
|
13
|
+
readonly maxSheets: 20;
|
|
14
|
+
readonly maxSheetRows: 100000;
|
|
15
|
+
/** The viewer reads a sheet whole, and reads at most this much. */
|
|
16
|
+
readonly maxSheetFileBytes: number;
|
|
17
|
+
readonly maxSheetColumns: 200;
|
|
18
|
+
readonly maxCharts: 10;
|
|
19
|
+
readonly maxChartSeries: 5;
|
|
20
|
+
/** One slice per theme chart color, so no two slices share one. */
|
|
21
|
+
readonly maxPieSlices: 5;
|
|
22
|
+
/** A deck's `index.html` is parsed whole when it is published. */
|
|
23
|
+
readonly maxDeckBytes: number;
|
|
24
|
+
readonly maxSlides: 100;
|
|
25
|
+
/** `artifact:` addresses one version may use. */
|
|
26
|
+
readonly maxReferences: 200;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../src/artifacts/limits.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,eAAe;;;;;;IAM1B,kEAAkE;;;;IAIlE,oEAAoE;;;IAGpE,mEAAmE;;;;;IAKnE,mEAAmE;;IAEnE,kEAAkE;;;IAGlE,iDAAiD;;CAEzC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a version contains, read from its files when it is published. Addresses resolve against
|
|
3
|
+
* it, and previews and hover cards show it without opening the files.
|
|
4
|
+
*/
|
|
5
|
+
export type ArtifactOutline = DocumentOutline | SheetOutline | SlidesOutline | FileOutline;
|
|
6
|
+
export interface DocumentOutline {
|
|
7
|
+
readonly kind: "document";
|
|
8
|
+
readonly headings: readonly DocumentHeading[];
|
|
9
|
+
}
|
|
10
|
+
export interface DocumentHeading {
|
|
11
|
+
readonly depth: number;
|
|
12
|
+
readonly text: string;
|
|
13
|
+
/** What `#part` names in an address to this section. */
|
|
14
|
+
readonly slug: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SheetOutline {
|
|
17
|
+
readonly kind: "sheet";
|
|
18
|
+
readonly sheets: readonly SheetSummary[];
|
|
19
|
+
/** The names of the charts declared in the workbook. */
|
|
20
|
+
readonly charts: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
export interface SheetSummary {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly rows: number;
|
|
25
|
+
readonly columns: readonly string[];
|
|
26
|
+
}
|
|
27
|
+
export interface SlidesOutline {
|
|
28
|
+
readonly kind: "slides";
|
|
29
|
+
/** One entry per slide, in order; the title is the slide's first heading. */
|
|
30
|
+
readonly slides: readonly {
|
|
31
|
+
readonly title?: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
export interface FileOutline {
|
|
35
|
+
readonly kind: "file";
|
|
36
|
+
readonly mediaType: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Turns a document's heading texts, in order, into their section slugs: lowercase, punctuation
|
|
40
|
+
* dropped, spaces as hyphens, and `-1`, `-2` after a repeat. Publishing and the renderer both name
|
|
41
|
+
* sections with it, so an address to a section finds the heading the reader sees.
|
|
42
|
+
*/
|
|
43
|
+
export declare function createHeadingSlugger(): (text: string) => string;
|
|
44
|
+
//# sourceMappingURL=outline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../src/artifacts/outline.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,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
|
3
|
+
import { ArtifactRequestError } from "../errors";
|
|
4
|
+
export type ArtifactBlobStorage = Pick<BlobStorage, "stat" | "open">;
|
|
5
|
+
/**
|
|
6
|
+
* Checks a version's files before anything reads them: safe unique paths, the per-version limits,
|
|
7
|
+
* and stored bytes that match each reference.
|
|
8
|
+
*/
|
|
9
|
+
export declare function checkArtifactFiles(blobStorage: ArtifactBlobStorage, files: readonly ArtifactFile[]): Promise<void>;
|
|
10
|
+
/** The file at `path`, read as UTF-8 text when it is no larger than `maxBytes`. */
|
|
11
|
+
export declare function readArtifactText(blobStorage: ArtifactBlobStorage, file: ArtifactFile, maxBytes: number): Promise<string>;
|
|
12
|
+
/** Relative, `/`-separated, no empty, `.`, or `..` segment, no backslash or control character. */
|
|
13
|
+
export declare function isArtifactPath(path: string): boolean;
|
|
14
|
+
export declare function invalidArtifact(message: string): ArtifactRequestError;
|
|
15
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAGhD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;AAEpE;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,mBAAmB,EAChC,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED,mFAAmF;AACnF,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,mBAAmB,EAChC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CASjB;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUpD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,CAErE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Publishing for this repo's packages: the Agent publishes through the same checks as the API. */
|
|
2
|
+
export { isArtifactId } from "../ids";
|
|
3
|
+
export { ARTIFACT_LIMITS } from "../limits";
|
|
4
|
+
export { artifactVersionWarnings, type PreparedArtifactVersion, type PublishArtifactInput, prepareArtifactVersion, publishArtifact, storeArtifactVersion, } from "./publish";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/index.ts"],"names":[],"mappings":"AAAA,mGAAmG;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,GACrB,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
isArtifactId2,
|
|
4
|
+
ARTIFACT_LIMITS2
|
|
5
|
+
} from "../../chunk-mjddfa7k.js";
|
|
6
|
+
import"../../chunk-7q8t23v4.js";
|
|
7
|
+
import"../../chunk-wkv3h3q7.js";
|
|
8
|
+
import"../../chunk-nn5xnx3s.js";
|
|
9
|
+
import"../../chunk-dhdha526.js";
|
|
10
|
+
import"../../chunk-dvd2fp9q.js";
|
|
11
|
+
import"../../chunk-6eqsgvxk.js";
|
|
12
|
+
import"../../chunk-6vb4st8k.js";
|
|
13
|
+
import"../../chunk-v4jbb3rs.js";
|
|
14
|
+
import"../../chunk-8frc8a4j.js";
|
|
15
|
+
import"../../chunk-f4pamkt9.js";
|
|
16
|
+
import"../../chunk-s7jg7pmn.js";
|
|
17
|
+
import"../../chunk-hcbyfxbe.js";
|
|
18
|
+
import"../../chunk-48qjhh6v.js";
|
|
19
|
+
import {
|
|
20
|
+
publishArtifact2,
|
|
21
|
+
prepareArtifactVersion2,
|
|
22
|
+
storeArtifactVersion2,
|
|
23
|
+
artifactVersionWarnings2
|
|
24
|
+
} from "../../chunk-9kgkfg6v.js";
|
|
25
|
+
import"../../chunk-447a5c0p.js";
|
|
26
|
+
import"../../chunk-a3faa34j.js";
|
|
27
|
+
export {
|
|
28
|
+
ARTIFACT_LIMITS2 as ARTIFACT_LIMITS,
|
|
29
|
+
artifactVersionWarnings2 as artifactVersionWarnings,
|
|
30
|
+
isArtifactId2 as isArtifactId,
|
|
31
|
+
prepareArtifactVersion2 as prepareArtifactVersion,
|
|
32
|
+
publishArtifact2 as publishArtifact,
|
|
33
|
+
storeArtifactVersion2 as storeArtifactVersion
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//# debugId=E074876D2B70C49764756E2164756E21
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Principal } from "../../auth";
|
|
2
|
+
import type { ArtifactFile, ArtifactOrigin, ArtifactRecord, ArtifactStorage, ArtifactVersionInput, ArtifactVersionRecord, PublishedArtifactVersion } from "../../storage/artifacts/types";
|
|
3
|
+
import type { ArtifactKind } from "../kinds";
|
|
4
|
+
import type { ArtifactWarning } from "../warnings";
|
|
5
|
+
import { type ArtifactBlobStorage } from "./files";
|
|
6
|
+
export interface PublishArtifactContext {
|
|
7
|
+
readonly projectId: string;
|
|
8
|
+
readonly storage: ArtifactStorage;
|
|
9
|
+
readonly blobStorage: ArtifactBlobStorage;
|
|
10
|
+
}
|
|
11
|
+
export interface PublishArtifactInput {
|
|
12
|
+
/** Publishes the next version of this artifact; without it, a new artifact is created. */
|
|
13
|
+
readonly artifactId?: string;
|
|
14
|
+
readonly kind: ArtifactKind;
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly files: readonly ArtifactFile[];
|
|
17
|
+
/** Publishes the version, and owns the artifact when this creates it. */
|
|
18
|
+
readonly author: Principal;
|
|
19
|
+
readonly origin?: ArtifactOrigin;
|
|
20
|
+
}
|
|
21
|
+
export interface PublishedArtifact {
|
|
22
|
+
readonly artifact: ArtifactRecord;
|
|
23
|
+
readonly version: ArtifactVersionRecord;
|
|
24
|
+
readonly warnings: readonly ArtifactWarning[];
|
|
25
|
+
}
|
|
26
|
+
/** A version checked against its kind and with its addresses resolved, ready to store. */
|
|
27
|
+
export interface PreparedArtifactVersion {
|
|
28
|
+
readonly artifactId?: string;
|
|
29
|
+
readonly kind: ArtifactKind;
|
|
30
|
+
readonly author: Principal;
|
|
31
|
+
readonly version: ArtifactVersionInput;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Validates a version against its kind and stores it. Who may publish is the caller's decision:
|
|
35
|
+
* this checks only what the version holds.
|
|
36
|
+
*/
|
|
37
|
+
export declare function publishArtifact(context: PublishArtifactContext, input: PublishArtifactInput): Promise<PublishedArtifact>;
|
|
38
|
+
/**
|
|
39
|
+
* Everything publishing checks before it stores: the title, the files, the theme, the kind's own
|
|
40
|
+
* format, and every address, resolved against what the author can read. It reads the files back
|
|
41
|
+
* and parses them, so a caller that stores inside a transaction prepares outside it.
|
|
42
|
+
*/
|
|
43
|
+
export declare function prepareArtifactVersion(context: PublishArtifactContext, input: PublishArtifactInput): Promise<PreparedArtifactVersion>;
|
|
44
|
+
/** Stores a prepared version: the next one of its artifact, or the first of a new one. */
|
|
45
|
+
export declare function storeArtifactVersion(context: PublishArtifactContext, prepared: PreparedArtifactVersion): Promise<PublishedArtifactVersion>;
|
|
46
|
+
/**
|
|
47
|
+
* What a stored version breaks in other artifacts that show it. A first version breaks nothing:
|
|
48
|
+
* no other artifact could name it yet. The version is stored by now, so a failed check only loses
|
|
49
|
+
* the warnings.
|
|
50
|
+
*/
|
|
51
|
+
export declare function artifactVersionWarnings(context: PublishArtifactContext, prepared: PreparedArtifactVersion, stored: PublishedArtifactVersion): Promise<readonly ArtifactWarning[]>;
|
|
52
|
+
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAI5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,SAAS,CAAA;AAOhB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAA;CAC1C;AAED,MAAM,WAAW,oBAAoB;IACnC,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;CAC9C;AAID,0FAA0F;AAC1F,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;CACvC;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CAI5B;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,EAC/B,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,uBAAuB,CAAC,CAwBlC;AAED,0FAA0F;AAC1F,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,wBAAwB,CAAC,CAInC;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,EAAE,uBAAuB,EACjC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAerC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Principal } from "../../auth";
|
|
2
|
+
import type { ArtifactRecord, ArtifactStorage, ArtifactVersionRecord } from "../../storage/artifacts/types";
|
|
3
|
+
import type { ArtifactReference } from "../references";
|
|
4
|
+
import type { ArtifactWarning } from "../warnings";
|
|
5
|
+
/** An address a validator found in a version, before it is resolved. */
|
|
6
|
+
export type FoundReference = Omit<ArtifactReference, "resolvedVersion">;
|
|
7
|
+
interface ReferenceContext {
|
|
8
|
+
readonly projectId: string;
|
|
9
|
+
readonly storage: ArtifactStorage;
|
|
10
|
+
/** Who publishes: an address resolves only to artifacts they can read. */
|
|
11
|
+
readonly author: Principal;
|
|
12
|
+
/** The artifact being published, which an address may not name. */
|
|
13
|
+
readonly artifactId?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Resolves every address a version uses against what its author can read, recording the version
|
|
17
|
+
* each one resolved to. An address that resolves to nothing refuses the version, saying where it
|
|
18
|
+
* is and what the target has instead.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveReferences(context: ReferenceContext, found: readonly FoundReference[]): Promise<ArtifactReference[]>;
|
|
21
|
+
/**
|
|
22
|
+
* The artifacts a new version breaks: each one whose latest version follows this artifact's latest
|
|
23
|
+
* and names something this version no longer has. Only artifacts the author can read are named.
|
|
24
|
+
*/
|
|
25
|
+
export declare function brokenDependents(context: ReferenceContext, artifact: ArtifactRecord, version: ArtifactVersionRecord): Promise<ArtifactWarning[]>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/references.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,YAAY,CAAA;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,SAAS,cAAc,EAAE,GAC/B,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAuD9B;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,eAAe,EAAE,CAAC,CA0B5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ArtifactFile } from "../../../storage/artifacts/types";
|
|
2
|
+
import { type DocumentOutline } from "../../outline";
|
|
3
|
+
import { type ArtifactBlobStorage } from "../files";
|
|
4
|
+
import type { FoundReference } from "../references";
|
|
5
|
+
/** The file a document renders from. */
|
|
6
|
+
export declare const DOCUMENT_ENTRY = "document.md";
|
|
7
|
+
/**
|
|
8
|
+
* Reads a document's Markdown: its headings become the outline, and every image must be a file in
|
|
9
|
+
* the version or an `artifact:` address, so the document renders the same wherever it is opened.
|
|
10
|
+
* The addresses it shows and links to are returned with the section each sits in, to resolve.
|
|
11
|
+
*/
|
|
12
|
+
export declare function validateDocument(blobStorage: ArtifactBlobStorage, files: readonly ArtifactFile[]): Promise<{
|
|
13
|
+
readonly entry: string;
|
|
14
|
+
readonly outline: DocumentOutline;
|
|
15
|
+
readonly references: readonly FoundReference[];
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/publish/validate/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAIpE,OAAO,EAA8C,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAChG,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,UAAU,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,wCAAwC;AACxC,eAAO,MAAM,cAAc,gBAAgB,CAAA;AAE3C;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,mBAAmB,EAChC,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,OAAO,CAAC;IACT,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAA;CAC/C,CAAC,CAmED"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ArtifactFile } from "../../../storage/artifacts/types";
|
|
2
|
+
import type { FileOutline } from "../../outline";
|
|
3
|
+
/** A file artifact is one file of any type, delivered as it is. */
|
|
4
|
+
export declare function validateFileArtifact(files: readonly ArtifactFile[]): {
|
|
5
|
+
readonly entry: string;
|
|
6
|
+
readonly outline: FileOutline;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/publish/validate/file.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGhD,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAC9B,CASA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ArtifactFile } from "../../../storage/artifacts/types";
|
|
2
|
+
import type { SheetOutline } from "../../outline";
|
|
3
|
+
import { type ArtifactBlobStorage } from "../files";
|
|
4
|
+
import type { FoundReference } from "../references";
|
|
5
|
+
/**
|
|
6
|
+
* Reads a sheet: `workbook.json`, then each sheet's CSV against it. Every cell of a typed column
|
|
7
|
+
* must read as its type and every chart must name columns its sheet has, so the grid formats and
|
|
8
|
+
* the charts draw the same wherever the sheet is opened.
|
|
9
|
+
*/
|
|
10
|
+
export declare function validateSheet(blobStorage: ArtifactBlobStorage, files: readonly ArtifactFile[]): Promise<{
|
|
11
|
+
readonly entry: string;
|
|
12
|
+
readonly outline: SheetOutline;
|
|
13
|
+
readonly references: readonly FoundReference[];
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/publish/validate/sheet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAIpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAYjD,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,UAAU,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,WAAW,EAAE,mBAAmB,EAChC,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,OAAO,CAAC;IACT,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAA;CAC/C,CAAC,CA6CD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ArtifactFile } from "../../../storage/artifacts/types";
|
|
2
|
+
import type { SlidesOutline } from "../../outline";
|
|
3
|
+
import { type ArtifactBlobStorage } from "../files";
|
|
4
|
+
import type { FoundReference } from "../references";
|
|
5
|
+
/** The file a deck renders from. */
|
|
6
|
+
export declare const SLIDES_ENTRY = "index.html";
|
|
7
|
+
/** Where the frame serves the kit and the runtime, beside a deck's own files. */
|
|
8
|
+
export declare const FRAME_ASSET_PREFIX = "__sixb/";
|
|
9
|
+
/**
|
|
10
|
+
* Reads a deck: `index.html` with one `<section class="slide">` per 1280×720 slide, and the files
|
|
11
|
+
* it loads beside it. Each slide's first heading becomes its title in the outline. The `artifact:`
|
|
12
|
+
* addresses it uses are returned with the slide each is on, to resolve: links (`<a href>`), files
|
|
13
|
+
* it shows from other artifacts (`<img src>`), and anything else it shows (`<sixb-embed src>`), a
|
|
14
|
+
* chart, a range, a section, or a slide, which the app draws over the frame.
|
|
15
|
+
*/
|
|
16
|
+
export declare function validateSlides(blobStorage: ArtifactBlobStorage, files: readonly ArtifactFile[]): Promise<{
|
|
17
|
+
readonly entry: string;
|
|
18
|
+
readonly outline: SlidesOutline;
|
|
19
|
+
readonly references: readonly FoundReference[];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=slides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slides.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/publish/validate/slides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAIpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,UAAU,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,oCAAoC;AACpC,eAAO,MAAM,YAAY,eAAe,CAAA;AAExC,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,mBAAmB,EAChC,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,OAAO,CAAC;IACT,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAA;CAC/C,CAAC,CAyGD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** An `artifact:` address a version uses, recorded when the version is published. */
|
|
2
|
+
export interface ArtifactReference {
|
|
3
|
+
/** The address as written, such as `artifact:art_k3m9q2x7tp#chart=revenue`. */
|
|
4
|
+
readonly address: string;
|
|
5
|
+
/** An embed shows the target in place; a link opens it. */
|
|
6
|
+
readonly as: "embed" | "link";
|
|
7
|
+
/** Where the address sits in its host: a heading slug, a slide number, or a sheet cell. */
|
|
8
|
+
readonly at: string;
|
|
9
|
+
/** The target's version when this version was published, so later changes can be told apart. */
|
|
10
|
+
readonly resolvedVersion: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/artifacts/references.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CAAA;IAC7B,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CACjC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ArtifactAddress, type CellRange } from "./address";
|
|
2
|
+
import type { ArtifactKind } from "./kinds";
|
|
3
|
+
import type { ArtifactOutline } from "./outline";
|
|
4
|
+
/** The version an address points into: its kind, its outline, and its file list. */
|
|
5
|
+
export interface ArtifactAddressTarget {
|
|
6
|
+
readonly kind: ArtifactKind;
|
|
7
|
+
readonly outline: ArtifactOutline;
|
|
8
|
+
readonly files: readonly {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
/** What an address names inside its target. */
|
|
13
|
+
export type ResolvedArtifactPart = {
|
|
14
|
+
readonly type: "artifact";
|
|
15
|
+
} | {
|
|
16
|
+
readonly type: "file";
|
|
17
|
+
readonly path: string;
|
|
18
|
+
} | {
|
|
19
|
+
readonly type: "sheet";
|
|
20
|
+
readonly sheet: string;
|
|
21
|
+
readonly range?: CellRange;
|
|
22
|
+
} | {
|
|
23
|
+
readonly type: "chart";
|
|
24
|
+
readonly chart: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly type: "section";
|
|
27
|
+
readonly slug: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly type: "slide";
|
|
30
|
+
readonly slide: number;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Finds what an address names in a version, against its outline and files. A problem says what is
|
|
34
|
+
* missing and what the version has instead, so whoever wrote the address can fix it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveArtifactAddress(address: ArtifactAddress, target: ArtifactAddressTarget): {
|
|
37
|
+
readonly part: ResolvedArtifactPart;
|
|
38
|
+
} | {
|
|
39
|
+
readonly problem: string;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/artifacts/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAkB,MAAM,WAAW,CAAA;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEhD,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACrD;AAED,+CAA+C;AAC/C,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAC9E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,qBAAqB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA+DxE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** An artifact may carry this file at its root to override the app's theme. */
|
|
2
|
+
export declare const ARTIFACT_THEME_FILE = "theme.json";
|
|
3
|
+
/**
|
|
4
|
+
* An artifact's own theme. `mode` pins light or dark whatever the viewer's app uses; `tokens`
|
|
5
|
+
* override the app's values for the names in {@link ARTIFACT_THEME_TOKENS}.
|
|
6
|
+
*/
|
|
7
|
+
export interface ArtifactTheme {
|
|
8
|
+
readonly mode?: "light" | "dark";
|
|
9
|
+
readonly tokens?: Readonly<Record<string, string>>;
|
|
10
|
+
}
|
|
11
|
+
/** The tokens a theme may set. Every other app token stays the app's. */
|
|
12
|
+
export declare const ARTIFACT_THEME_TOKENS: readonly string[];
|
|
13
|
+
/** Reads a `theme.json`. Returns the reason it was refused, in words the author can act on. */
|
|
14
|
+
export declare function parseArtifactTheme(text: string): {
|
|
15
|
+
readonly theme: ArtifactTheme;
|
|
16
|
+
} | {
|
|
17
|
+
readonly error: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/artifacts/theme.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,eAAe,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACnD;AAsBD,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAIlD,CAAA;AAWD,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GACX;IAAE,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2ChE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Something about a published version worth fixing that did not stop it from publishing. A warning
|
|
3
|
+
* names the part it concerns, so a viewer can point at it.
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactWarning {
|
|
6
|
+
readonly code: string;
|
|
7
|
+
readonly message: string;
|
|
8
|
+
/** The slide, sheet, section, or file the warning is about. */
|
|
9
|
+
readonly part?: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=warnings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../src/artifacts/warnings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A sheet artifact is `workbook.json` and one CSV per sheet under `sheets/`. The CSV holds the
|
|
3
|
+
* values; the workbook holds what CSV can't: sheet order, column types and formats, frozen rows
|
|
4
|
+
* and columns, widths, and charts drawn from the sheets. Formulas belong in an `.xlsx` file.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WORKBOOK_FILE = "workbook.json";
|
|
7
|
+
export declare const SHEET_COLUMN_TYPES: readonly ["text", "number", "currency", "percent", "date", "link", "image"];
|
|
8
|
+
export type SheetColumnType = (typeof SHEET_COLUMN_TYPES)[number];
|
|
9
|
+
/** Column types whose cells are numbers, so a chart can plot them and a range can sum them. */
|
|
10
|
+
export declare const NUMERIC_COLUMN_TYPES: readonly SheetColumnType[];
|
|
11
|
+
export declare const SHEET_CHART_TYPES: readonly ["bar", "line", "area", "pie"];
|
|
12
|
+
export type SheetChartType = (typeof SHEET_CHART_TYPES)[number];
|
|
13
|
+
export interface SheetColumnFormat {
|
|
14
|
+
readonly type: SheetColumnType;
|
|
15
|
+
/** An ISO 4217 code, for a currency column. */
|
|
16
|
+
readonly currency?: string;
|
|
17
|
+
/** Digits after the decimal point, for numbers, currencies, and percents. */
|
|
18
|
+
readonly decimals?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkbookSheet {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
/** Rows that stay in view as the sheet scrolls, the header row included. */
|
|
23
|
+
readonly frozenRows: number;
|
|
24
|
+
/** Columns that stay in view as the sheet scrolls sideways. */
|
|
25
|
+
readonly frozenColumns: number;
|
|
26
|
+
/** Formats by column name; a column not named here is text. */
|
|
27
|
+
readonly columns: Readonly<Record<string, SheetColumnFormat>>;
|
|
28
|
+
/** Widths in pixels by column name. */
|
|
29
|
+
readonly widths: Readonly<Record<string, number>>;
|
|
30
|
+
}
|
|
31
|
+
export interface WorkbookChart {
|
|
32
|
+
/** What `#chart=<name>` names in an address; lowercase letters, digits, and hyphens. */
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly type: SheetChartType;
|
|
35
|
+
readonly sheet: string;
|
|
36
|
+
/** The column along the x axis, or a pie's slice labels. */
|
|
37
|
+
readonly x: string;
|
|
38
|
+
/** The plotted columns: one series each, or a pie's one value column. */
|
|
39
|
+
readonly y: readonly string[];
|
|
40
|
+
readonly title?: string;
|
|
41
|
+
/** Stack a bar or area chart's series. */
|
|
42
|
+
readonly stacked: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface Workbook {
|
|
45
|
+
readonly sheets: readonly WorkbookSheet[];
|
|
46
|
+
readonly charts: readonly WorkbookChart[];
|
|
47
|
+
}
|
|
48
|
+
/** Where a sheet's values are, in the artifact. */
|
|
49
|
+
export declare function sheetFilePath(sheetName: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Reads `workbook.json` into its full form: `"Revenue": "currency"` becomes
|
|
52
|
+
* `{ type: "currency" }`, a single `y` becomes a list, and defaults are filled. Returns what is
|
|
53
|
+
* wrong in words the author can act on. Whether the columns exist is checked against the CSVs.
|
|
54
|
+
*/
|
|
55
|
+
export declare function parseWorkbook(text: string): {
|
|
56
|
+
readonly workbook: Workbook;
|
|
57
|
+
} | {
|
|
58
|
+
readonly error: string;
|
|
59
|
+
};
|
|
60
|
+
/** A number as a sheet stores it: plain digits, an optional sign, decimals, and exponent. */
|
|
61
|
+
export declare function parseSheetNumber(value: string): number | undefined;
|
|
62
|
+
/** A date as a sheet stores it: `YYYY-MM-DD`, optionally with an ISO 8601 time. */
|
|
63
|
+
export declare function parseSheetDate(value: string): Date | undefined;
|
|
64
|
+
//# sourceMappingURL=workbook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbook.d.ts","sourceRoot":"","sources":["../../src/artifacts/workbook.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAkB,CAAA;AAE5C,eAAO,MAAM,kBAAkB,6EAQrB,CAAA;AACV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE,+FAA+F;AAC/F,eAAO,MAAM,oBAAoB,EAAE,SAAS,eAAe,EAAsC,CAAA;AAEjG,eAAO,MAAM,iBAAiB,yCAA0C,CAAA;AACxE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAA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
23
23
|
AuthRuntime2,
|
|
24
24
|
SYSTEM_PRINCIPAL2,
|
|
25
25
|
principalsEqual2
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import"../chunk-
|
|
28
|
-
import"../chunk-
|
|
29
|
-
import"../chunk-
|
|
26
|
+
} from "../chunk-nn5xnx3s.js";
|
|
27
|
+
import"../chunk-447a5c0p.js";
|
|
28
|
+
import"../chunk-s7jg7pmn.js";
|
|
29
|
+
import"../chunk-f4pamkt9.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_SESSION_COOKIE_NAME2,
|
|
32
32
|
DEFAULT_CSRF_COOKIE_NAME2,
|
|
@@ -51,13 +51,13 @@ import {
|
|
|
51
51
|
isInvitationDeliveryAuthStrategy2,
|
|
52
52
|
isOidcAuthStrategy2
|
|
53
53
|
} from "../chunk-hcbyfxbe.js";
|
|
54
|
-
import"../chunk-
|
|
54
|
+
import"../chunk-6vb4st8k.js";
|
|
55
55
|
import"../chunk-v4jbb3rs.js";
|
|
56
|
-
import"../chunk-
|
|
57
|
-
import"../chunk-
|
|
58
|
-
import"../chunk-
|
|
59
|
-
import"../chunk-
|
|
60
|
-
import"../chunk-
|
|
56
|
+
import"../chunk-8frc8a4j.js";
|
|
57
|
+
import"../chunk-dhdha526.js";
|
|
58
|
+
import"../chunk-dvd2fp9q.js";
|
|
59
|
+
import"../chunk-6eqsgvxk.js";
|
|
60
|
+
import"../chunk-wkv3h3q7.js";
|
|
61
61
|
export {
|
|
62
62
|
AuthRuntime2 as AuthRuntime,
|
|
63
63
|
AuthRuntimeError2 as AuthRuntimeError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../../src/authorization/decision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,4BAA4B,EAGlC,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oB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GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAUpF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,iBAAiB,GAAG;IAAE,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAA;CAAE,EACpF,SAAS,EAAE,gBAAgB,EAC3B,SAAS,EAAE,MAAM,GAChB,IAAI,CAiBN"}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* entry in `GRANT_KINDS` plus the compile errors that forces at every consumer.
|
|
9
9
|
*/
|
|
10
10
|
import type { GrantDefinition } from "../security/types";
|
|
11
|
-
export type GrantKind = "view:object" | "view:dataset" | "edit:object" | "append:telemetry" | "apply:action" | "share:share" | "run:workflow" | "run:sync" | "run:pipeline" | "run:agent" | "observe:logs" | "observe:aiUsage" | "manage:connector" | "manage:aiUsage";
|
|
11
|
+
export type GrantKind = "view:object" | "view:dataset" | "edit:object" | "append:telemetry" | "apply:action" | "share:share" | "run:workflow" | "run:sync" | "run:pipeline" | "run:agent" | "observe:logs" | "observe:aiUsage" | "observe:activity" | "manage:connector" | "manage:aiUsage";
|
|
12
12
|
/** Capabilities over one project-wide surface: held or not, with no ids to select. */
|
|
13
|
-
export type SingletonGrantKind = "run:agent" | "observe:logs" | "observe:aiUsage" | "manage:aiUsage";
|
|
13
|
+
export type SingletonGrantKind = "run:agent" | "observe:logs" | "observe:aiUsage" | "observe:activity" | "manage:aiUsage";
|
|
14
14
|
export type TargetedGrantKind = Exclude<GrantKind, SingletonGrantKind>;
|
|
15
15
|
/** Registered id universes a grant kind ranges over, plus subtype expansion. */
|
|
16
16
|
export interface GrantUniverse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant-kinds.d.ts","sourceRoot":"","sources":["../../src/authorization/grant-kinds.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe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