@almadar/std 17.0.0 → 17.0.2
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/behaviors/lolo/cli/atoms/std-orb-behaviors.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-compile.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-i18n.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-language.lolo +2 -2
- package/behaviors/lolo/cli/atoms/std-orb-lint-all.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-asset-inline-url.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-async-result-deaf-target.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-binding-fields.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-binding-roots.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-binding-setters.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-binding-traits.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-browser-effects.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-call-service.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-circuit-client-bound.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-circuit-emits.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-circuit-graph.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-circuit-item-actions.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-circular-dependencies.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-client-tick-locality.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-collection-policy.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-composed-wiring.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-computed-key-dot-path.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-config-dangling-ref.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-config-knob.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-config-role-lists.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-control-unhandled.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-control-value-discarded.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-cross-duplicate-entity.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-cross-emitter.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-cross-registry.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-derived-field-write.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-dispatch-contract.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-duplicate-transition.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-duplicate-use-alias.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-effect-forms.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-egress-scheme-unused.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-embed-config-forward.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-emit-config-ref.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-emit-declaration.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-emit.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-empty-event-name.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-engine.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-access.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-browser-storage.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-duplicate-field.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-empty-enum.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-field-type.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-locale-instances.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-mock-member.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-mutation.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-name-shadows-trait-union.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-persistence.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-semantic-default.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-entity-shape.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-event-id-uniqueness.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-event-wiring.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-config-knob.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-event-unfired.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-field-undeclared.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-final.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-persistent-unwritten.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-provider-mismatch.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expectation-unsatisfied.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-expected-field-not-provided.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-external-emit-payload.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-fetch-by-id-payload.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-fetch-deliver.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-field-path.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-filter-field-never-written.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-finding-codes.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-generic-types.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-groupby-enum-column-gap.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-guest-view-not-client.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-host-effects.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-http-egress-entry.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-icon-exists.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-icon-format.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-id-refs.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-identity-unique.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-inbound-answer-foreign.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-inbound.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-init-coverage.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-input.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-item-action-event.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-keyed-call-keys.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-keyed-call.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-per.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-redundant-embed-route.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-route-starves-required-field.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-source-never-produces.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-source-unresolved.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-trigger.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-listen-wildcard-unkeyed.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-literal-default.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-llm-wire-unrouted.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-loop-invariant-parse.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-mem-handles.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-merged-fields.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-missing-orbital-name.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-nav-target.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-navigate.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-not-found.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-oauth.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-orbital-config-dead-knob.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-orbital-duplicate-name.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-content-owner.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-empty-traits.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-modifiers.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-path-uniqueness.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-path.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-page-unreachable.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-parallel-pure.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-pattern-props.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-payload-field-name.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-placement.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-program-eval.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-query-index.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-relation-targets.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-render-ui-pattern.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-reserved-component-name.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-retired-effect-forms.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-rui-binding.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-rui-effects.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-schema-header.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-service-def.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-set-column.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-sexpr-binding.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-sigil-context.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-sign-in-route.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-slot-tick.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-slot.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-state-shape.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-state-unreachable.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-store-binding.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-theme-pin-contradicts-app.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-theme-ref.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-theme-undeclared.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-theme-values.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-tick-requires-runtime.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-time-unit.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-trait-embeds.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-trait-id-uniqueness.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-trait-mounts.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-trait-ref-config.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-trait-refs.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-transition-refs.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-type-param-sweep.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-unsigned-guard.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-untyped-array.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-user-field-exists.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-user-identity.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-lint-viewer-stranded.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-mcp-install.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-mcp.lolo +2 -2
- package/behaviors/lolo/cli/atoms/std-orb-packages.lolo +2 -2
- package/behaviors/lolo/cli/atoms/std-orb-supervise.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-update-notice.lolo +1 -1
- package/behaviors/lolo/cli/atoms/std-orb-validate.lolo +1 -1
- package/behaviors/lolo/dev/atoms/std-launchpad-updates.lolo +1 -1
- package/behaviors/lolo/dev/atoms/std-orb-stats.lolo +1 -1
- package/behaviors/lolo/dev/organisms/std-launchpad.lolo +1 -1
- package/behaviors/registry/cli/atoms/std-orb-behaviors.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-compile.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-i18n.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-language.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-all.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-asset-inline-url.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-async-result-deaf-target.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-binding-fields.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-binding-roots.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-binding-setters.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-binding-traits.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-browser-effects.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-call-service.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-circuit-client-bound.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-circuit-emits.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-circuit-graph.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-circuit-item-actions.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-circular-dependencies.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-client-tick-locality.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-collection-policy.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-composed-wiring.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-computed-key-dot-path.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-config-dangling-ref.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-config-knob.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-config-role-lists.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-control-unhandled.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-control-value-discarded.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-cross-duplicate-entity.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-cross-emitter.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-cross-registry.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-derived-field-write.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-dispatch-contract.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-duplicate-transition.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-duplicate-use-alias.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-effect-forms.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-egress-scheme-unused.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-embed-config-forward.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-emit-config-ref.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-emit-declaration.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-emit.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-empty-event-name.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-engine.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-access.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-browser-storage.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-duplicate-field.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-empty-enum.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-field-type.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-locale-instances.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-mock-member.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-mutation.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-name-shadows-trait-union.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-persistence.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-semantic-default.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-entity-shape.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-event-id-uniqueness.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-event-wiring.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-config-knob.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-event-unfired.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-field-undeclared.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-final.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-persistent-unwritten.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-provider-mismatch.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expectation-unsatisfied.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-expected-field-not-provided.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-external-emit-payload.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-fetch-by-id-payload.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-fetch-deliver.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-field-path.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-filter-field-never-written.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-finding-codes.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-generic-types.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-groupby-enum-column-gap.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-guest-view-not-client.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-host-effects.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-http-egress-entry.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-icon-exists.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-icon-format.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-id-refs.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-identity-unique.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-inbound-answer-foreign.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-inbound.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-init-coverage.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-input.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-item-action-event.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-keyed-call-keys.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-keyed-call.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-per.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-redundant-embed-route.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-route-starves-required-field.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-source-never-produces.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-source-unresolved.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-trigger.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-listen-wildcard-unkeyed.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-literal-default.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-llm-wire-unrouted.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-loop-invariant-parse.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-merged-fields.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-missing-orbital-name.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-nav-target.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-navigate.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-not-found.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-oauth.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-orbital-config-dead-knob.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-orbital-duplicate-name.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-content-owner.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-empty-traits.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-modifiers.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-path-uniqueness.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-path.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-page-unreachable.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-parallel-pure.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-pattern-props.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-payload-field-name.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-placement.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-program-eval.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-query-index.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-relation-targets.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-render-ui-pattern.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-reserved-component-name.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-retired-effect-forms.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-rui-binding.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-rui-effects.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-schema-header.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-service-def.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-set-column.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-sexpr-binding.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-sigil-context.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-sign-in-route.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-slot-tick.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-slot.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-state-shape.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-state-unreachable.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-store-binding.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-theme-pin-contradicts-app.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-theme-ref.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-theme-undeclared.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-theme-values.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-tick-requires-runtime.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-time-unit.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-trait-embeds.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-trait-id-uniqueness.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-trait-mounts.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-trait-ref-config.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-trait-refs.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-transition-refs.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-type-param-sweep.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-unsigned-guard.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-untyped-array.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-user-field-exists.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-user-identity.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-viewer-stranded.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-mcp-install.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-packages.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-supervise.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-update-notice.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-validate.orb +1 -1
- package/behaviors/registry/dev/atoms/std-launchpad-updates.orb +1 -1
- package/behaviors/registry/dev/atoms/std-orb-stats.orb +1 -1
- package/behaviors/registry/dev/organisms/std-launchpad.orb +5 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"typeContractVersion":1,"types":{"AccEntity":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"AccEntityRef":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}]}],"AccExpect":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"AccField":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"AccItems":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"AccOrbital":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"AccProgram":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"AccRelation":[{"nullable":false,"name":"entity","type":"string"}],"AccShape":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[AccShape]","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}},{"nullable":false,"name":"object","type":"Map<string,AccShape>","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}}]}],"AccWaivers":[{"nullable":false,"name":"read","type":"string"}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintEntityAccessCodes":[{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"lintNodeUnchecked","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}]},"name":"std-orb-lint-entity-access","version":"1.0.0","description":"std-orb-lint-entity-access — the `orb lint entity-access <file>` command, the port of entity_access.rs (validate_entity_access and validate_owner_columns_scoped). It lowers the file with program/read and reports an entity that declares owner columns pointing at the [identity] entity but no @read (ORB_ENTITY_OWNER_COLUMN_UNSCOPED, silenced by an @read none reason), and in each @read/@create/@update/@delete directive an `@entity.<field>` or `(object/get @entity <field>)` that names no field of the owning entity (ORB_S_ACCESS_POLICY_UNKNOWN_ENTITY_FIELD) or an @intrinsic one (ORB_GUARD_ON_FRAME_FIELD_AUTHORIZES), a binding root other than @entity and @user (ORB_S_ACCESS_POLICY_INVALID_BINDING), a column compared to `@user.id` that is not a relation to an [identity] entity (ORB_S_OWNER_FIELD_NOT_IDENTITY_TYPED), a literal compared against a closed-vocabulary `@user.<field>` that is not a declared member (ORB_S_ROLE_LITERAL_NOT_MEMBER) and an `@user` read in a program declaring no [identity] entity (ORB_S_ACCESS_POLICY_REQUIRES_IDENTITY), with the Rust path, message and suggestion (status 500, exit 1). The `@user.<field>` existence checks (ORB_S_UNKNOWN_IDENTITY_FIELD, ORB_S_EXPECTATION_FIELD_UNDECLARED) are not ported: they need the installed language's Viewer members, which no lint input carries. Clean answers `lint entity-access: clean` (status 200, exit 0). Anything but one file argument is the usage (status 400, exit 2); an unreadable or unlowerable file is status 500.","orbitals":[{"name":"OrbLintEntityAccessOrbital","id":"orb_82RBJW4KGC9R61ABSDG417561F","uses":[{"from":"almadar-std/lint-entity-access","as":"Spec"},{"from":"std/behaviors/std-orb-lint-input","as":"Input"}],"entity":{"name":"OrbLintEntityAccessRun","id":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","default":""},{"nullable":false,"name":"findings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]},"entity":{"nullable":false,"name":"entity","type":"string","required":false},"field":{"nullable":false,"name":"field","type":"string","required":false}},"projectedFrom":{"type":"OrbFinding"}}}]},"traits":[{"name":"OrbLintEntityAccess","id":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","effectRow":[{"kind":"emit","resource":"LINT_FINISH"},{"kind":"emit","resource":"LINT_FOUND"},{"kind":"set","resource":"@entity.findings"},{"kind":"set","resource":"@entity.scope"}],"linkedEntity":"OrbLintEntityAccessRun","linkedEntityId":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","entityRefIds":{"OrbLintEntityAccessRun":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ"},"emits":[{"event":"LINT_FOUND","eventId":"evt_9EQKJYN089G44WC44X7M2ZS15B","description":"This rule's findings for the file, offered to the lint-all umbrella.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_FINISH","eventId":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","description":"Internal: answer with the verdict.","tier":"internal"}],"listens":[{"event":"LINT_INPUT","eventId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","triggers":"LINT_INPUT","triggersId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","source":{"kind":"trait","trait":"OrbLintInput","traitId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true}],"events":[{"key":"INIT","id":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B","name":"Initialize"},{"key":"LINT_INPUT","id":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","name":"Lint Input","description":"The lint input: the file read, its language decided and the program lowered.","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"raw","type":"string","required":true},{"nullable":false,"name":"latin","type":"boolean","required":true},{"nullable":false,"name":"program","type":"object","required":true,"properties":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"projectedFrom":{"type":"AccProgram"}},{"nullable":false,"name":"scope","type":"string","required":true}],"listened":true},{"key":"LINT_FINISH","id":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","name":"Lint Finish","description":"Internal: answer with the verdict.","tier":"internal"},{"key":"LINT_FOUND","id":"evt_9EQKJYN089G44WC44X7M2ZS15B","name":"Lint Found","description":"This rule's findings for the file, offered to the lint-all umbrella.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B"},{"from":"ready","to":"ready","event":"LINT_INPUT","eventId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","effects":[["set","@entity.scope","@payload.scope"],["set","@entity.findings",["let",[["nov",[],"{\"version\":1,\"type\":{\"kind\":\"array\",\"inner\":{\"kind\":\"string\"}}}"],["orbs",["object/get","@payload.program","orbitals",[]]]],["let",[["allDefs",["array/flatten",["array/map","@orbs",["fn","o",["array/flatten",["array/map",["array/concat",[["object/get","@o","entity",{}]],["object/get","@o","auxiliaryEntities",[]]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]]]]]],["primIds",["array/flatten",["array/map","@orbs",["fn","o",["let",[["e0",["object/get","@o","entity",{}]]],["if",["and",["validate/object","@e0"],["object/get","@e0","identity",false]],["@e0"],[]]]]]]],["auxIds",["array/flatten",["array/map","@orbs",["fn","o",["array/filter",["array/flatten",["array/map",["object/get","@o","auxiliaryEntities",[]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]],["fn","e",["object/get","@e","identity",false]]]]]]]],["let",[["idDefs",["array/filter","@allDefs",["fn","d",["object/get","@d","identity",false]]]],["hasDecl",["or",[">",["array/len","@primIds"],0],[">",["array/len","@auxIds"],0]]],["allIdNames",["array/unique",["array/map",["array/concat","@primIds","@auxIds"],["fn","e",["object/get","@e","name",""]]]]]],["let",[["declared",["if",[">",["array/len","@primIds"],0],["array/first","@primIds"],["array/first","@auxIds"]]]],["array/concat",["let",[["idDef",["array/first","@idDefs"]]],["if",["=","@idDef",null],[],["let",[["idName",["object/get","@idDef","name",""]]],["let",[["lowId",["str/lower","@idName"]],["sid",["let",[["d0",["default",["array/first",["array/filter","@allDefs",["fn","d",["=",["object/get","@d","name",""],"@idName"]]]],{}]]],["array/includes",["array/concat",["array/concat",["if",["object/has","@d0","read_policy"],["let",[["cs",["tree/fold",["object/get","@d0","read_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@d0","create_policy"],["let",[["cs",["tree/fold",["object/get","@d0","create_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]],["array/concat",["if",["object/has","@d0","update_policy"],["let",[["cs",["tree/fold",["object/get","@d0","update_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@d0","delete_policy"],["let",[["cs",["tree/fold",["object/get","@d0","delete_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]]],"id"]]]],["array/flatten",["array/map","@allDefs",["fn","dd",["let",[["lowD",["str/lower",["object/get","@dd","name",""]]]],["let",[["same",["array/filter","@allDefs",["fn","e",["=",["str/lower",["object/get","@e","name",""]],"@lowD"]]]]],["let",[["l1",["array/flatten",["array/map","@same",["fn","e",["array/map",["array/filter",["object/get","@e","fields",[]],["fn","fd",["and",["object/has","@fd","name"],["not",["object/get","@fd","intrinsic",false]],["object/has","@fd","relation"],["=",["object/get",["object/get","@fd","relation",{}],"entity",""],"@idName"]]]],["fn","fd",["object/get","@fd","name",""]]]]]]],["l2",["if",["and",["=","@lowD","@lowId"],"@sid"],["id"],[]]],["l3",["array/flatten",["array/map","@same",["fn","e",["array/concat",["array/concat",["if",["object/has","@e","update_policy"],["let",[["cs",["tree/fold",["object/get","@e","update_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@e","delete_policy"],["let",[["cs",["tree/fold",["object/get","@e","delete_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]],["if",["object/has","@e","read_policy"],["let",[["cs",["tree/fold",["object/get","@e","read_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]]]]]],["l4",["array/flatten",["array/map","@same",["fn","e",["if",["object/has","@e","collection"],["let",[["c",["object/get","@e","collection",""]]],["array/filter",["array/unique",["array/flatten",["array/map",["array/filter","@allDefs",["fn","f",["and",["object/has","@f","collection"],["=",["object/get","@f","collection",""],"@c"]]]],["fn","f",["array/map",["array/filter",["object/get","@f","fields",[]],["fn","fd",["and",["object/has","@fd","name"],["not",["object/get","@fd","intrinsic",false]],["object/has","@fd","relation"],["=",["object/get",["object/get","@fd","relation",{}],"entity",""],"@idName"]]]],["fn","fd",["object/get","@fd","name",""]]]]]]],["fn","col",[">",["array/len",["array/filter",["object/get","@e","fields",[]],["fn","fd",["=",["object/get","@fd","name",""],"@col"]]]],0]]]],[]]]]]]],["let",[["owners",["array/concat","@l1",["array/filter",["array/unique",["array/concat",["array/concat","@l2","@l3"],"@l4"]],["fn","col",["not",["array/includes","@l1","@col"]]]]]]],["let",[["ownerCol",["array/first","@owners"]]],["if",["or",["=","@ownerCol",null],["object/has","@dd","read_policy"],["and",["object/has","@dd","access_waivers"],["object/has",["object/get","@dd","access_waivers",{}],"read"]]],[],[{"code":"@config.codes.entityOwnerColumnUnscoped.code","path":["str/concat",["object/get","@dd","name",""],".@read"],"message":["str/concat",["object/get","@dd","name",""]," declares owner column(s) ",["str/join",["array/map","@owners",["fn","col",["str/concat","`","@col","`"]]],", "]," pointing at the [identity] entity, but no @read directive — and an undeclared policy is ALLOW-ALL, not deny-all, so every viewer reads every row"],"suggestion":["str/concat","declare @read on ",["object/get","@dd","name",""]," scoping rows to the viewer, e.g. @read [\"=\", (object/get @entity ","@ownerCol","), @user.id] — or, when visibility genuinely depends on a DIFFERENT entity (a membership/enrolment join a per-row predicate cannot express), omit @read and state that reason in a comment on the entity, citing R-ENTITY-ACCESS-NO-COLLECTION-AGGREGATE-BINDING"],"severity":"error"}]]]]]]]]]]]]]],["array/flatten",["array/map",["array/range",0,["array/len","@orbs"]],["fn","oi",["let",[["orb",["default",["array/nth","@orbs","@oi"],{}]]],["let",[["exps",["array/filter",["object/get","@orb","expects",[]],["fn","e",["=",["let",[["s1",["object/get","@e","kind",""]]],["if",["validate/string","@s1"],"@s1",""]],"identity"]]]]],["let",[["hasExp",[">",["array/len","@exps"],0]]],["let",[["exp",["default",["array/first","@exps"],{}]]],["let",[["hasShape",["and","@hasExp",["object/has","@exp","shape"]]]],["let",[["idF",["if",["=","@declared",null],["if","@hasShape",["object/get","@exp","shape",[]],[]],["object/get","@declared","fields",[]]]],["idNm",["if",["=","@declared",null],["if","@hasShape",["if",["object/has","@exp","name"],["object/get","@exp","name",""],["quote","\"\\u0040user\""]],["quote","\"\\u0040user\""]],["object/get","@declared","name",""]]],["idDecl",["or","@hasDecl","@hasExp"]]],["let",[["idNames",["array/unique",["array/concat",["array/concat",["@idNm"],"@allIdNames"],["if",["and","@hasExp",["object/has","@exp","name"]],[["object/get","@exp","name",""]],[]]]]]],["array/flatten",["array/map",["array/flatten",["array/map",["array/concat",[["object/get","@orb","entity",{}]],["object/get","@orb","auxiliaryEntities",[]]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]],["fn","en",["let",[["ofields",["object/get","@en","fields",[]]],["enn",["object/get","@en","name",""]]],["array/flatten",["array/map",["array/filter",[{"sig":"read","has":["object/has","@en","read_policy"],"ex":["object/get","@en","read_policy",""]},{"sig":"create","has":["object/has","@en","create_policy"],"ex":["object/get","@en","create_policy",""]},{"sig":"update","has":["object/has","@en","update_policy"],"ex":["object/get","@en","update_policy",""]},{"sig":"delete","has":["object/has","@en","delete_policy"],"ex":["object/get","@en","delete_policy",""]}],["fn","d",["object/get","@d","has"]]],["fn","d",["let",[["sig",["object/get","@d","sig"]],["bp",["str/concat","@enn",".@",["object/get","@d","sig"]]]],["let",[["hs",["tree/fold",["object/get","@d","ex"],["fn",["n","k"],["if",["validate/array","@n"],["let",[["len",["array/len","@n"]],["op",["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["if",["validate/string","@o0"],"@o0",""]]]],["array/concat",["array/concat",["array/concat",["if",["and",[">=","@len",3],["or",["=","@op","="],["=","@op","=="],["=","@op","!="],["=","@op","!=="],["=","@op","eq"],["=","@op","neq"],["=","@op","array/includes"]]],["let",[["args",["array/slice","@n",1]],["incl",["=","@op","array/includes"]]],["let",[["a0",["array/nth","@args",0]],["a1",["array/nth","@args",1]]],["let",[["first0",["not",["=",["if",["and",["validate/string","@a0"],["str/startsWith","@a0",["quote","\"\\u0040user.\""]],[">",["str/len","@a0"],6],["not",["str/includes",["str/slice","@a0",6],"."]],["not",["str/includes",["str/slice","@a0",6],"["]]],["str/slice","@a0",6],""],""]]]],["let",[["sigilSide",["if","@incl",["if","@first0",["@a0"],["@a1"]],"@args"]],["litSide",["if","@incl",["if","@first0",["@a1"],["@a0"]],"@args"]]],["let",[["sns",["array/flatten",["array/map","@sigilSide",["fn","a",["let",[["nm",["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040user.\""]],[">",["str/len","@a"],6],["not",["str/includes",["str/slice","@a",6],"."]],["not",["str/includes",["str/slice","@a",6],"["]]],["str/slice","@a",6],""]]],["if",["and",["not",["=","@nm",""]],[">",["array/len",["array/filter","@idF",["fn","fd",["=",["object/get","@fd","name",""],"@nm"]]]],0]],["@nm"],[]]]]]]]],["if",["=",["array/len","@sns"],0],[],["let",[["sn",["array/first","@sns"]]],["let",[["vocab",["let",[["vf",["array/filter","@idF",["fn","fd",["=",["object/get","@fd","name",""],"@sn"]]]]],["if",["=",["array/len","@vf"],0],"@nov",["let",[["fd0",["default",["array/first","@vf"],{}]]],["if",[">",["array/len",["object/get","@fd0","values","@nov"]],0],["object/get","@fd0","values","@nov"],["if",["object/has","@fd0","items"],["object/get",["object/get","@fd0","items",{}],"values","@nov"],"@nov"]]]]]]],["if",["=",["array/len","@vocab"],0],[],["let",[["lits",["if","@incl",["let",[["lit0",["array/first","@litSide"]]],["if",["validate/array","@lit0"],["let",[["mem",["if",["=",["if",["validate/string",["array/nth","@lit0",0]],["array/nth","@lit0",0],""],"list"],["array/slice","@lit0",1],"@lit0"]]],["if",["array/every","@mem",["fn","m",["validate/string","@m"]]],"@mem",[]]],["@lit0"]]],"@args"]]],["array/map",["array/filter","@lits",["fn","a",["and",["validate/string","@a"],["not",["str/startsWith","@a",["quote","\"\\u0040\""]]],["not",["array/includes","@vocab","@a"]]]]],["fn","a",{"rel":"","kind":"role","a":["if",["validate/string","@a"],"@a",""],"b":"@sn","vv":"@vocab"}]]]]]]]]]]]],[]],["if",["and",["=","@op","object/get"],[">=","@len",3]],["let",[["r1",["if",[">",["array/len","@n"],1],["array/nth","@n",1],""]],["r2",["if",[">",["array/len","@n"],2],["array/nth","@n",2],""]]],["if",["and",["validate/string","@r1"],["validate/string","@r2"]],["if",["=","@r1",["quote","\"\\u0040entity\""]],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@r2"]]]]],["if",[">",["array/len","@fm"],0],["if",["=",["object/get",["array/first","@fm"],"intrinsic",false],true],[{"rel":"","kind":"intrinsic","a":"@r1","b":"@r2","vv":"@nov"}],[]],[{"rel":"","kind":"unknown-field","a":"@r1","b":"@r2","vv":"@nov"}]]],["if",["=","@r1",["quote","\"\\u0040user\""]],[{"rel":"","kind":"user","a":"","b":"","vv":"@nov"}],[]]],[]]],[]]],["if",["and",["or",["=","@op","="],["=","@op","=="]],[">=","@len",3]],["let",[["args",["array/slice","@n",1]]],["let",[["cmp",["array/some","@args",["fn","a",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],[">=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]]]]],["cands",["array/flatten",["array/map","@args",["fn","a",["if",["validate/string","@a"],["let",[["e0",["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""]]],["if",["=","@e0",""],[],["@e0"]]],["if",["and",["validate/array","@a"],[">=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],[["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""]],[]]]]]]]],["if",["and","@cmp",[">",["array/len","@cands"],0]],["let",[["fname",["array/first","@cands"]]],["if",["=","@fname","id"],[],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@fname"]]]]],["if",["=",["array/len","@fm"],0],[],["let",[["fd",["default",["array/first","@fm"],{}]]],["if",["and",["object/has","@fd","relation"],["array/includes","@idNames",["object/get",["object/get","@fd","relation",{}],"entity",""]]],[],[{"rel":"","kind":"owner-typed","a":"@fname","b":["if",["object/has","@fd","relation"],["str/concat","a relation to `",["object/get",["object/get","@fd","relation",{}],"entity",""],"`"],["str/concat","`",["object/get","@fd","type",""],"`"]],"vv":"@nov"}]]]]]]],[]]]],[]]],["array/flatten",["array/map",["array/range",0,["array/len","@n"]],["fn","i",["let",[["r",["array/nth","@k","@i"]]],["if",["validate/array","@r"],["array/map","@r",["fn","h",{"rel":["str/concat","[","@i","]",["let",[["s2",["object/get","@h","rel",""]]],["if",["validate/string","@s2"],"@s2",""]]],"kind":["let",[["s3",["object/get","@h","kind",""]]],["if",["validate/string","@s3"],"@s3",""]],"a":["let",[["s4",["object/get","@h","a",""]]],["if",["validate/string","@s4"],"@s4",""]],"b":["let",[["s5",["object/get","@h","b",""]]],["if",["validate/string","@s5"],"@s5",""]],"vv":["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]}]],[]]]]]]]],["if",["validate/string","@n"],["if",["str/startsWith","@n",["quote","\"\\u0040\""]],["let",[["root",["str/replace-pattern",["str/slice","@n",1],"[.\\[].*",""]]],["if",["=","@root","entity"],["let",[["ef",["if",["and",["validate/string","@n"],["str/startsWith","@n",["quote","\"\\u0040entity.\""]],[">",["str/len","@n"],8],["not",["str/includes",["str/slice","@n",8],"."]],["not",["str/includes",["str/slice","@n",8],"["]]],["str/slice","@n",8],""]]],["if",["=","@ef",""],[],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@ef"]]]]],["if",[">",["array/len","@fm"],0],["if",["=",["object/get",["array/first","@fm"],"intrinsic",false],true],[{"rel":"","kind":"intrinsic","a":"@n","b":"@ef","vv":"@nov"}],[]],[{"rel":"","kind":"unknown-field","a":"@n","b":"@ef","vv":"@nov"}]]]]],["if",["=","@root","user"],[{"rel":"","kind":"user","a":"","b":"","vv":"@nov"}],[{"rel":"","kind":"invalid-binding","a":"@root","b":"","vv":"@nov"}]]]],[]],["if",["validate/object","@n"],["array/flatten",["array/map",["object/keys","@k"],["fn","key",["let",[["r",["object/get","@k","@key"]]],["if",["validate/array","@r"],["array/map","@r",["fn","h",{"rel":["str/concat",".","@key",["let",[["s6",["object/get","@h","rel",""]]],["if",["validate/string","@s6"],"@s6",""]]],"kind":["let",[["s7",["object/get","@h","kind",""]]],["if",["validate/string","@s7"],"@s7",""]],"a":["let",[["s8",["object/get","@h","a",""]]],["if",["validate/string","@s8"],"@s8",""]],"b":["let",[["s9",["object/get","@h","b",""]]],["if",["validate/string","@s9"],"@s9",""]],"vv":["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]}]],[]]]]]],[]]]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["=","@hs",null],[{"code":"@config.codes.lintNodeUnchecked.code","path":"@bp","message":["str/concat","@payload.file",": schema node at ","@bp"," is not an AccShape; this rule could not check it"],"suggestion":"","severity":"error"}],["array/concat",["array/flatten",["array/map","@hs",["fn","h",["let",[["kind",["let",[["s10",["object/get","@h","kind",""]]],["if",["validate/string","@s10"],"@s10",""]]],["a",["let",[["s11",["object/get","@h","a",""]]],["if",["validate/string","@s11"],"@s11",""]]],["b",["let",[["s12",["object/get","@h","b",""]]],["if",["validate/string","@s12"],"@s12",""]]],["path",["str/concat","@bp",["let",[["s13",["object/get","@h","rel",""]]],["if",["validate/string","@s13"],"@s13",""]]]]],["if",["=","@kind","intrinsic"],[{"code":"@config.codes.guardOnFrameFieldAuthorizes.code","path":"@path","message":["str/concat","`","@path","` reads `","@a","`, an @intrinsic field of entity `","@enn","` — intrinsic fields are trait-owned view-state, never seeded or persisted by the runtime, so using one as an access-policy input is a bypassable gate."],"entity":"@enn","field":"@a","suggestion":["str/concat","Base this access directive on a real persisted field of `","@enn","`, not the @intrinsic field `","@b","`."],"severity":"error"}],["if",["=","@kind","unknown-field"],[{"code":"@config.codes.sAccessPolicyUnknownEntityField.code","path":"@path","message":["str/concat","`","@a","` is not a field of entity `","@enn","`. It resolves to null, so this access directive silently denies everyone."],"entity":"@enn","field":"@a","suggestion":["str/concat","Declare `","@b","` on entity ","@enn",", or read one of: ",["str/join",["array/sort",["array/map",["array/filter","@ofields",["fn","fd",["object/has","@fd","name"]]],["fn","fd",["object/get","@fd","name",""]]]],", "]],"severity":"error"}],["if",["=","@kind","invalid-binding"],[{"code":"@config.codes.sAccessPolicyInvalidBinding.code","path":"@path","message":["str/concat","`@","@a","` is not a legal binding inside an access directive — only `@entity` (the candidate row) and `@user` (the viewer) are. Access directives have no call site, so `@payload`/`@config`/`@state` are not meaningful here."],"entity":"@enn","suggestion":"Read only @entity.<field> or @user.<field>.","severity":"error"}],["if",["=","@kind","owner-typed"],["let",[["idn",["default",["array/first","@idNames"],""]]],[{"code":"@config.codes.sOwnerFieldNotIdentityTyped.code","path":"@path","message":["str/concat","`","@enn",".","@a","` is compared to `@user.id` but is not a relation to the [identity] entity `","@idn","` — it is ","@b",". Viewer ids are only ever stamped onto declared relations, so this predicate matches no row and the directive denies everyone."],"entity":"@enn","field":"@a","suggestion":["str/concat","Type `","@a","` as a relation to ","@idn"," (`","@a"," : ","@idn","`), or compare against the field the viewer value actually lives in"],"severity":"error"}]],["if",["=","@kind","role"],["let",[["vv",["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]]],[{"code":"@config.codes.sRoleLiteralNotMember.code","path":"@path","message":["str/concat","\"","@a","\" is not a declared value of `@user.","@b","` on the [identity] entity `","@idNm","`. This comparison can never be true — the branch is dead."],"entity":"@idNm","field":"@b","suggestion":["str/concat","Use one of: ",["str/join","@vv",", "],", or add \"","@a","\" to `","@idNm",".","@b","`."],"severity":"error","validValues":"@vv"}]],[]]]]]]]]]],["if",["and",["array/some","@hs",["fn","h",["=",["let",[["s14",["object/get","@h","kind",""]]],["if",["validate/string","@s14"],"@s14",""]],"user"]]],["not","@idDecl"]],[{"code":"@config.codes.sAccessPolicyRequiresIdentity.code","path":"@bp","message":["str/concat","`@","@sig","` on entity `","@enn","` reads `@user`, but this program declares no [identity] entity. An access directive needs a real roster to resolve against — declare `[identity]` on the entity that models your app's viewer."],"suggestion":"Tag your user-directory entity `[persistent: <collection>, identity]`.","severity":"error"}],[]]]]]]]]]]]]]]]]]]]]]]]]]]]]],["emit","LINT_FINISH",{}]]},{"from":"ready","to":"ready","event":"LINT_FINISH","eventId":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","effects":[["emit","LINT_FOUND",{"rule":"entity-access","scope":"@entity.scope","findings":"@entity.findings"}]]}]},"config":{"codes":{"nullable":false,"type":"LintEntityAccessCodes","default":{"entityOwnerColumnUnscoped":{"code":"ORB_ENTITY_OWNER_COLUMN_UNSCOPED","category":"entity","description":"An entity declares owner columns but has no access policy scoping rows to the owner"},"lintNodeUnchecked":{"code":"LINT_NODE_UNCHECKED","category":"lint","description":"A lint rule met a schema node of an unexpected shape and could not check it"},"guardOnFrameFieldAuthorizes":{"code":"ORB_GUARD_ON_FRAME_FIELD_AUTHORIZES","category":"guard","description":"A guard reads an intrinsic frame field of an entity to authorize, but intrinsic fields are not trustworthy for access"},"sAccessPolicyUnknownEntityField":{"code":"ORB_S_ACCESS_POLICY_UNKNOWN_ENTITY_FIELD","category":"schema","description":"An access policy references a name that is not a field of its entity, so it resolves to null and denies everyone"},"sAccessPolicyInvalidBinding":{"code":"ORB_S_ACCESS_POLICY_INVALID_BINDING","category":"schema","description":"An access directive uses a binding other than the ones legal there"},"sOwnerFieldNotIdentityTyped":{"code":"ORB_S_OWNER_FIELD_NOT_IDENTITY_TYPED","category":"schema","description":"An access directive compares a field to @user.id but the field is not a relation to the identity entity"},"sRoleLiteralNotMember":{"code":"ORB_S_ROLE_LITERAL_NOT_MEMBER","category":"schema","description":"A literal compared against an @user field with a closed vocabulary is not a member of that vocabulary, so the branch can never be taken"},"sAccessPolicyRequiresIdentity":{"code":"ORB_S_ACCESS_POLICY_REQUIRES_IDENTITY","category":"schema","description":"An access directive reads @user but the program declares no identity entity"}},"label":"Emitted codes","description":"The finding codes this rule emits, with their category and meaning; the registry is generated from this declaration.","properties":{"entityOwnerColumnUnscoped":{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"lintNodeUnchecked":{"nullable":false,"name":"lintNodeUnchecked","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"guardOnFrameFieldAuthorizes":{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyUnknownEntityField":{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyInvalidBinding":{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sOwnerFieldNotIdentityTyped":{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sRoleLiteralNotMember":{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyRequiresIdentity":{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}}},"projectedFrom":{"type":"LintEntityAccessCodes"}}},"dispatch":"optimistic","sourceDeclaration":{"traitId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","fingerprint":"954c33fe82f20e9df536feb334ef74e4feddcc4d89c5ccdb433b257580f0f0b7"}},{"name":"OrbLintEntityAccessCli","id":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","effectRow":[{"kind":"emit","resource":"LINT_ANSWERED"},{"kind":"emit","resource":"LINT_REQUEST"}],"linkedEntity":"OrbLintEntityAccessRun","linkedEntityId":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","entityRefIds":{"OrbLintEntityAccessRun":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ"},"emits":[{"event":"LINT_ANSWERED","eventId":"evt_E5N4D2AS08CG4455JBFC2W8KS1","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","scope":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"event":"LINT_REQUEST","eventId":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","description":"Ask the lint input to read and lower this file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]},{"event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","description":"The rule trait's findings for the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","description":"The lint input could not read or lower the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]}],"listens":[{"event":"LINT_FOUND","eventId":"evt_9EQKJYN089G44WC44X7M2ZS15B","triggers":"LINT_FOUND","triggersId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","source":{"kind":"trait","trait":"OrbLintEntityAccess","traitId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"}},{"event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","triggers":"LINT_INPUT_UNREAD","triggersId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","source":{"kind":"trait","trait":"OrbLintInput","traitId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2","name":"Initialize"},{"key":"LINT_CALLED","id":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","name":"Lint Called","description":"Run `orb lint entity-access` with its arguments and working directory.","synonyms":"orb lint entity-access, orb lint entity-access, entity access","payloadSchema":[{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"rawBody","type":"string","required":true}],"listened":true,"inbound":{"name":"cli-lint-entity-access","answers":"LINT_ANSWERED"}},{"key":"LINT_FOUND","id":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","name":"Lint Found","description":"The rule trait's findings for the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"key":"LINT_INPUT_UNREAD","id":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","name":"Lint Input Unread","description":"The lint input could not read or lower the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}],"listened":true},{"key":"LINT_ANSWERED","id":"evt_E5N4D2AS08CG4455JBFC2W8KS1","name":"Lint Answered","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"key":"LINT_REQUEST","id":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","name":"Lint Request","description":"Ask the lint input to read and lower this file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2"},{"from":"ready","to":"ready","event":"LINT_CALLED","eventId":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","guard":["or",["=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["!=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint entity-access <file>"}]]},{"from":"ready","to":"waiting","event":"LINT_CALLED","eventId":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","guard":["and",["!=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["let",[["argFile",["array/first",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]]]],["if",["=","@argFile",null],["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint entity-access <file>"}],["emit","LINT_REQUEST",{"file":"@argFile"}]]]]},{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2"},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","guard":["and",["=","@payload.rule","entity-access"],["=",["array/len","@payload.findings"],0]],"effects":[["emit","LINT_ANSWERED",{"status":200,"body":"lint entity-access: clean"}]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","guard":["and",["=","@payload.rule","entity-access"],[">",["array/len","@payload.findings"],0]],"effects":[["emit","LINT_ANSWERED",{"status":500,"body":["str/join",["array/map","@payload.findings",["fn","x",["str/concat","[",["object/get","@x","code"],"] ",["object/get","@x","path"],": ",["object/get","@x","message"],["if",["=",["object/get","@x","suggestion"],""],"",["str/concat","\n suggestion: ",["object/get","@x","suggestion"]]]]]],"\n"]}]]},{"from":"waiting","to":"ready","event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","effects":[["emit","LINT_ANSWERED",{"status":500,"body":"lint entity-access: the file could not be read or lowered"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","fingerprint":"203ca75681882f39500833e53451aea203efa5cabf1e0638cfac7ce794204393"}},{"ref":"Input.traits.Versions","id":"trt_P85DYRGRF9C7MJ3TE41MPDKN91","name":"Versions"},{"ref":"Input.traits.Packs","id":"trt_63MG6DJKBB9NNQFZBXBYFS798C","name":"Packs"},{"ref":"Input.traits.OrbLintInput","id":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ","name":"OrbLintInput","listens":[{"event":"LINT_REQUEST","triggers":"LINT_REQUEST","source":{"kind":"trait","trait":"OrbLintEntityAccessCli"}},{"event":"SCAN_ANSWERED","triggers":"LANG_SCAN_ANSWERED","source":{"kind":"trait","trait":"Packs"}},{"event":"LANGUAGE_PACK_VOCAB","triggers":"LANGUAGE_PACK_VOCAB_HEARD","source":{"kind":"trait","trait":"Packs"}},{"event":"LANGUAGE_PACKS_DONE","triggers":"LANGUAGE_PACKS_DONE_HEARD","source":{"kind":"trait","trait":"Packs"}}]}],"pages":[{"name":"OrbLintEntityAccessOrbitalStart","id":"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9","path":"","protocol":"boot","traits":[{"ref":"OrbLintEntityAccess","refId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},{"ref":"OrbLintEntityAccessCli","refId":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},{"ref":"OrbLintInput","refId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"},{"ref":"Packs","refId":"trt_63MG6DJKBB9NNQFZBXBYFS798C"},{"ref":"Versions","refId":"trt_P85DYRGRF9C7MJ3TE41MPDKN91"}]}],"types":{"AccEntity":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"AccEntityRef":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}]}],"AccExpect":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"AccField":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"AccItems":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"AccOrbital":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"AccProgram":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"AccRelation":[{"nullable":false,"name":"entity","type":"string"}],"AccShape":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[AccShape]","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}},{"nullable":false,"name":"object","type":"Map<string,AccShape>","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}}]}],"AccWaivers":[{"nullable":false,"name":"read","type":"string"}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintEntityAccessCodes":[{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"lintNodeUnchecked","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}]}}],"inbound":["cli-lint-entity-access"],"osGrants":{"fs":[{"glob":"/**","modes":["read"]},{"glob":"~/.orb/node_modules/**","modes":["read"]}],"exec":["orb"],"net":[],"env":["PATH"],"stdio":[],"sys":[],"desktop":[],"anchored":{"fs":[{"anchor":"cwd","glob":"**","modes":["read"]}]}},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ":{"id":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","kind":"entity","bakedName":"OrbLintEntityAccessRun","curName":"OrbLintEntityAccessRun","renames":[],"owner":"workspace"},"evt_28MNRXQFDMQPT8SNW6FY6PK79V":{"id":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","kind":"event","bakedName":"LINT_INPUT_UNREAD","curName":"LINT_INPUT_UNREAD","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6":{"id":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","kind":"event","bakedName":"LINT_FINISH","curName":"LINT_FINISH","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_5TVYMN17TSKXCSCY2YMZN5S5J9":{"id":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","kind":"event","bakedName":"LINT_REQUEST","curName":"LINT_REQUEST","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_8TYAWRPHQJ8VS85YFP054Q5KH2":{"id":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_9EQKJYN089G44WC44X7M2ZS15B":{"id":"evt_9EQKJYN089G44WC44X7M2ZS15B","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR":{"id":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","kind":"event","bakedName":"LINT_CALLED","curName":"LINT_CALLED","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_E5N4D2AS08CG4455JBFC2W8KS1":{"id":"evt_E5N4D2AS08CG4455JBFC2W8KS1","kind":"event","bakedName":"LINT_ANSWERED","curName":"LINT_ANSWERED","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_MT2WWS1GJMR9A8WT17WCF7QK8B":{"id":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT":{"id":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","kind":"event","bakedName":"LINT_INPUT","curName":"LINT_INPUT","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_PYXQT1XVKTXSX1S34RBEHBC48D":{"id":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"orb_82RBJW4KGC9R61ABSDG417561F":{"id":"orb_82RBJW4KGC9R61ABSDG417561F","kind":"orbital","bakedName":"OrbLintEntityAccessOrbital","curName":"OrbLintEntityAccessOrbital","renames":[],"owner":"workspace"},"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9":{"id":"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9","kind":"page","bakedName":"OrbLintEntityAccessOrbitalStart","curName":"OrbLintEntityAccessOrbitalStart","renames":[],"owner":"workspace"},"trt_63MG6DJKBB9NNQFZBXBYFS798C":{"id":"trt_63MG6DJKBB9NNQFZBXBYFS798C","kind":"trait","bakedName":"Packs","curName":"Packs","renames":[],"owner":"workspace"},"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH":{"id":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","kind":"trait","bakedName":"OrbLintEntityAccess","curName":"OrbLintEntityAccess","renames":[],"owner":"workspace"},"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ":{"id":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ","kind":"trait","bakedName":"OrbLintInput","curName":"OrbLintInput","renames":[],"owner":"workspace"},"trt_P85DYRGRF9C7MJ3TE41MPDKN91":{"id":"trt_P85DYRGRF9C7MJ3TE41MPDKN91","kind":"trait","bakedName":"Versions","curName":"Versions","renames":[],"owner":"workspace"},"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9":{"id":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","kind":"trait","bakedName":"OrbLintEntityAccessCli","curName":"OrbLintEntityAccessCli","renames":[],"owner":"workspace"}}}}
|
|
1
|
+
{"typeContractVersion":1,"types":{"AccEntity":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"AccEntityRef":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}]}],"AccExpect":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"AccField":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"AccItems":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"AccOrbital":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"AccProgram":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"AccRelation":[{"nullable":false,"name":"entity","type":"string"}],"AccShape":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[AccShape]","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}},{"nullable":false,"name":"object","type":"Map<string,AccShape>","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}}]}],"AccWaivers":[{"nullable":false,"name":"read","type":"string"}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintEntityAccessCodes":[{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"lintNodeUnchecked","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}]},"name":"std-orb-lint-entity-access","version":"1.0.0","description":"std-orb-lint-entity-access — the `orb lint entity-access <file>` command, the port of entity_access.rs (validate_entity_access and validate_owner_columns_scoped). It lowers the file with program/read and reports an entity that declares owner columns pointing at the [identity] entity but no @read (ORB_ENTITY_OWNER_COLUMN_UNSCOPED, silenced by an @read none reason), and in each @read/@create/@update/@delete directive an `@entity.<field>` or `(object/get @entity <field>)` that names no field of the owning entity (ORB_S_ACCESS_POLICY_UNKNOWN_ENTITY_FIELD) or an @intrinsic one (ORB_GUARD_ON_FRAME_FIELD_AUTHORIZES), a binding root other than @entity and @user (ORB_S_ACCESS_POLICY_INVALID_BINDING), a column compared to `@user.id` that is not a relation to an [identity] entity (ORB_S_OWNER_FIELD_NOT_IDENTITY_TYPED), a literal compared against a closed-vocabulary `@user.<field>` that is not a declared member (ORB_S_ROLE_LITERAL_NOT_MEMBER) and an `@user` read in a program declaring no [identity] entity (ORB_S_ACCESS_POLICY_REQUIRES_IDENTITY), with the Rust path, message and suggestion (status 500, exit 1). The `@user.<field>` existence checks (ORB_S_UNKNOWN_IDENTITY_FIELD, ORB_S_EXPECTATION_FIELD_UNDECLARED) are not ported: they need the installed language's Viewer members, which no lint input carries. Clean answers `lint entity-access: clean` (status 200, exit 0). Anything but one file argument is the usage (status 400, exit 2); an unreadable or unlowerable file is status 500.","orbitals":[{"name":"OrbLintEntityAccessOrbital","id":"orb_82RBJW4KGC9R61ABSDG417561F","uses":[{"from":"almadar-std/lint-entity-access","as":"Spec"},{"from":"std/behaviors/std-orb-lint-input","as":"Input"}],"entity":{"name":"OrbLintEntityAccessRun","id":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","default":""},{"nullable":false,"name":"findings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]},"entity":{"nullable":false,"name":"entity","type":"string","required":false},"field":{"nullable":false,"name":"field","type":"string","required":false}},"projectedFrom":{"type":"OrbFinding"}}}]},"traits":[{"name":"OrbLintEntityAccess","id":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","effectRow":[{"kind":"emit","resource":"LINT_FINISH"},{"kind":"emit","resource":"LINT_FOUND"},{"kind":"set","resource":"@entity.findings"},{"kind":"set","resource":"@entity.scope"}],"linkedEntity":"OrbLintEntityAccessRun","linkedEntityId":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","entityRefIds":{"OrbLintEntityAccessRun":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ"},"emits":[{"event":"LINT_FOUND","eventId":"evt_9EQKJYN089G44WC44X7M2ZS15B","description":"This rule's findings for the file, offered to the lint-all umbrella.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_FINISH","eventId":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","description":"Internal: answer with the verdict.","tier":"internal"}],"listens":[{"event":"LINT_INPUT","eventId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","triggers":"LINT_INPUT","triggersId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","source":{"kind":"trait","trait":"OrbLintInput","traitId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true}],"events":[{"key":"INIT","id":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B","name":"Initialize"},{"key":"LINT_INPUT","id":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","name":"Lint Input","description":"The lint input: the file read, its language decided and the program lowered.","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"raw","type":"string","required":true},{"nullable":false,"name":"latin","type":"boolean","required":true},{"nullable":false,"name":"program","type":"object","required":true,"properties":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"projectedFrom":{"type":"AccProgram"}},{"nullable":false,"name":"scope","type":"string","required":true}],"listened":true},{"key":"LINT_FINISH","id":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","name":"Lint Finish","description":"Internal: answer with the verdict.","tier":"internal"},{"key":"LINT_FOUND","id":"evt_9EQKJYN089G44WC44X7M2ZS15B","name":"Lint Found","description":"This rule's findings for the file, offered to the lint-all umbrella.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B"},{"from":"ready","to":"ready","event":"LINT_INPUT","eventId":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","effects":[["set","@entity.scope","@payload.scope"],["set","@entity.findings",["let",[["nov",[],"{\"version\":1,\"type\":{\"kind\":\"array\",\"inner\":{\"kind\":\"string\"}}}"],["orbs",["object/get","@payload.program","orbitals",[]]]],["let",[["allDefs",["array/flatten",["array/map","@orbs",["fn","o",["array/flatten",["array/map",["array/concat",[["object/get","@o","entity",{}]],["object/get","@o","auxiliaryEntities",[]]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]]]]]],["primIds",["array/flatten",["array/map","@orbs",["fn","o",["let",[["e0",["object/get","@o","entity",{}]]],["if",["and",["validate/object","@e0"],["object/get","@e0","identity",false]],["@e0"],[]]]]]]],["auxIds",["array/flatten",["array/map","@orbs",["fn","o",["array/filter",["array/flatten",["array/map",["object/get","@o","auxiliaryEntities",[]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]],["fn","e",["object/get","@e","identity",false]]]]]]]],["let",[["idDefs",["array/filter","@allDefs",["fn","d",["object/get","@d","identity",false]]]],["hasDecl",["or",[">",["array/len","@primIds"],0],[">",["array/len","@auxIds"],0]]],["allIdNames",["array/unique",["array/map",["array/concat","@primIds","@auxIds"],["fn","e",["object/get","@e","name",""]]]]]],["let",[["declared",["if",[">",["array/len","@primIds"],0],["array/first","@primIds"],["array/first","@auxIds"]]]],["array/concat",["let",[["idDef",["array/first","@idDefs"]]],["if",["=","@idDef",null],[],["let",[["idName",["object/get","@idDef","name",""]]],["let",[["lowId",["str/lower","@idName"]],["sid",["let",[["d0",["default",["array/first",["array/filter","@allDefs",["fn","d",["=",["object/get","@d","name",""],"@idName"]]]],{}]]],["array/includes",["array/concat",["array/concat",["if",["object/has","@d0","read_policy"],["let",[["cs",["tree/fold",["object/get","@d0","read_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@d0","create_policy"],["let",[["cs",["tree/fold",["object/get","@d0","create_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]],["array/concat",["if",["object/has","@d0","update_policy"],["let",[["cs",["tree/fold",["object/get","@d0","update_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@d0","delete_policy"],["let",[["cs",["tree/fold",["object/get","@d0","delete_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]]],"id"]]]],["array/flatten",["array/map","@allDefs",["fn","dd",["let",[["lowD",["str/lower",["object/get","@dd","name",""]]]],["let",[["same",["array/filter","@allDefs",["fn","e",["=",["str/lower",["object/get","@e","name",""]],"@lowD"]]]]],["let",[["l1",["array/flatten",["array/map","@same",["fn","e",["array/map",["array/filter",["object/get","@e","fields",[]],["fn","fd",["and",["object/has","@fd","name"],["not",["object/get","@fd","intrinsic",false]],["object/has","@fd","relation"],["=",["object/get",["object/get","@fd","relation",{}],"entity",""],"@idName"]]]],["fn","fd",["object/get","@fd","name",""]]]]]]],["l2",["if",["and",["=","@lowD","@lowId"],"@sid"],["id"],[]]],["l3",["array/flatten",["array/map","@same",["fn","e",["array/concat",["array/concat",["if",["object/has","@e","update_policy"],["let",[["cs",["tree/fold",["object/get","@e","update_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]],["if",["object/has","@e","delete_policy"],["let",[["cs",["tree/fold",["object/get","@e","delete_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]],["if",["object/has","@e","read_policy"],["let",[["cs",["tree/fold",["object/get","@e","read_policy"],["fn",["n","k"],["if",["validate/array","@n"],["array/concat",["if",["and",["=",["array/len","@n"],3],["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["or",["=",["if",["validate/string","@o0"],"@o0",""],"="],["=",["if",["validate/string","@o0"],"@o0",""],"=="]]]],["let",[["a",["array/nth","@n",1]],["b",["array/nth","@n",2]]],["let",[["f",["if",["or",["and",["validate/string","@b"],["=","@b",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],"id"]]],["if",["validate/string","@a"],["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""],["if",["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],""]],["if",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],["=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]],["if",["validate/string","@b"],["if",["and",["validate/string","@b"],["str/startsWith","@b",["quote","\"\\u0040entity.\""]],[">",["str/len","@b"],8],["not",["str/includes",["str/slice","@b",8],"."]],["not",["str/includes",["str/slice","@b",8],"["]]],["str/slice","@b",8],""],["if",["and",["validate/array","@b"],["=",["array/len","@b"],3],["=",["if",["validate/string",["array/nth","@b",0]],["array/nth","@b",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@b",1]],["array/nth","@b",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@b",2]]],["if",["validate/string",["array/nth","@b",2]],["array/nth","@b",2],""],""]],""]]]],["if",["=","@f",""],[],["@f"]]]],[]],["array/flatten",["array/filter","@k",["fn","r",["validate/array","@r"]]]]],[]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["validate/array","@cs"],"@cs",[]]],[]]]]]]],["l4",["array/flatten",["array/map","@same",["fn","e",["if",["object/has","@e","collection"],["let",[["c",["object/get","@e","collection",""]]],["array/filter",["array/unique",["array/flatten",["array/map",["array/filter","@allDefs",["fn","f",["and",["object/has","@f","collection"],["=",["object/get","@f","collection",""],"@c"]]]],["fn","f",["array/map",["array/filter",["object/get","@f","fields",[]],["fn","fd",["and",["object/has","@fd","name"],["not",["object/get","@fd","intrinsic",false]],["object/has","@fd","relation"],["=",["object/get",["object/get","@fd","relation",{}],"entity",""],"@idName"]]]],["fn","fd",["object/get","@fd","name",""]]]]]]],["fn","col",[">",["array/len",["array/filter",["object/get","@e","fields",[]],["fn","fd",["=",["object/get","@fd","name",""],"@col"]]]],0]]]],[]]]]]]],["let",[["owners",["array/concat","@l1",["array/filter",["array/unique",["array/concat",["array/concat","@l2","@l3"],"@l4"]],["fn","col",["not",["array/includes","@l1","@col"]]]]]]],["let",[["ownerCol",["array/first","@owners"]]],["if",["or",["=","@ownerCol",null],["object/has","@dd","read_policy"],["and",["object/has","@dd","access_waivers"],["object/has",["object/get","@dd","access_waivers",{}],"read"]]],[],[{"code":"@config.codes.entityOwnerColumnUnscoped.code","path":["str/concat",["object/get","@dd","name",""],".@read"],"message":["str/concat",["object/get","@dd","name",""]," declares owner column(s) ",["str/join",["array/map","@owners",["fn","col",["str/concat","`","@col","`"]]],", "]," pointing at the [identity] entity, but no @read directive — and an undeclared policy is ALLOW-ALL, not deny-all, so every viewer reads every row"],"suggestion":["str/concat","declare @read on ",["object/get","@dd","name",""]," scoping rows to the viewer, e.g. @read [\"=\", (object/get @entity ","@ownerCol","), @user.id] — or, when visibility genuinely depends on a DIFFERENT entity (a membership/enrolment join a per-row predicate cannot express), omit @read and state that reason in a comment on the entity, citing R-ENTITY-ACCESS-NO-COLLECTION-AGGREGATE-BINDING"],"severity":"error"}]]]]]]]]]]]]]],["array/flatten",["array/map",["array/range",0,["array/len","@orbs"]],["fn","oi",["let",[["orb",["default",["array/nth","@orbs","@oi"],{}]]],["let",[["exps",["array/filter",["object/get","@orb","expects",[]],["fn","e",["=",["let",[["s1",["object/get","@e","kind",""]]],["if",["validate/string","@s1"],"@s1",""]],"identity"]]]]],["let",[["hasExp",[">",["array/len","@exps"],0]]],["let",[["exp",["default",["array/first","@exps"],{}]]],["let",[["hasShape",["and","@hasExp",["object/has","@exp","shape"]]]],["let",[["idF",["if",["=","@declared",null],["if","@hasShape",["object/get","@exp","shape",[]],[]],["object/get","@declared","fields",[]]]],["idNm",["if",["=","@declared",null],["if","@hasShape",["if",["object/has","@exp","name"],["object/get","@exp","name",""],["quote","\"\\u0040user\""]],["quote","\"\\u0040user\""]],["object/get","@declared","name",""]]],["idDecl",["or","@hasDecl","@hasExp"]]],["let",[["idNames",["array/unique",["array/concat",["array/concat",["@idNm"],"@allIdNames"],["if",["and","@hasExp",["object/has","@exp","name"]],[["object/get","@exp","name",""]],[]]]]]],["array/flatten",["array/map",["array/flatten",["array/map",["array/concat",[["object/get","@orb","entity",{}]],["object/get","@orb","auxiliaryEntities",[]]],["fn","xe",["if",["validate/object","@xe"],["@xe"],[]]]]],["fn","en",["let",[["ofields",["object/get","@en","fields",[]]],["enn",["object/get","@en","name",""]]],["array/flatten",["array/map",["array/filter",[{"sig":"read","has":["object/has","@en","read_policy"],"ex":["object/get","@en","read_policy",""]},{"sig":"create","has":["object/has","@en","create_policy"],"ex":["object/get","@en","create_policy",""]},{"sig":"update","has":["object/has","@en","update_policy"],"ex":["object/get","@en","update_policy",""]},{"sig":"delete","has":["object/has","@en","delete_policy"],"ex":["object/get","@en","delete_policy",""]}],["fn","d",["object/get","@d","has"]]],["fn","d",["let",[["sig",["object/get","@d","sig"]],["bp",["str/concat","@enn",".@",["object/get","@d","sig"]]]],["let",[["hs",["tree/fold",["object/get","@d","ex"],["fn",["n","k"],["if",["validate/array","@n"],["let",[["len",["array/len","@n"]],["op",["let",[["o0",["if",[">",["array/len","@n"],0],["array/nth","@n",0],""]]],["if",["validate/string","@o0"],"@o0",""]]]],["array/concat",["array/concat",["array/concat",["if",["and",[">=","@len",3],["or",["=","@op","="],["=","@op","=="],["=","@op","!="],["=","@op","!=="],["=","@op","eq"],["=","@op","neq"],["=","@op","array/includes"]]],["let",[["args",["array/slice","@n",1]],["incl",["=","@op","array/includes"]]],["let",[["a0",["array/nth","@args",0]],["a1",["array/nth","@args",1]]],["let",[["first0",["not",["=",["if",["and",["validate/string","@a0"],["str/startsWith","@a0",["quote","\"\\u0040user.\""]],[">",["str/len","@a0"],6],["not",["str/includes",["str/slice","@a0",6],"."]],["not",["str/includes",["str/slice","@a0",6],"["]]],["str/slice","@a0",6],""],""]]]],["let",[["sigilSide",["if","@incl",["if","@first0",["@a0"],["@a1"]],"@args"]],["litSide",["if","@incl",["if","@first0",["@a1"],["@a0"]],"@args"]]],["let",[["sns",["array/flatten",["array/map","@sigilSide",["fn","a",["let",[["nm",["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040user.\""]],[">",["str/len","@a"],6],["not",["str/includes",["str/slice","@a",6],"."]],["not",["str/includes",["str/slice","@a",6],"["]]],["str/slice","@a",6],""]]],["if",["and",["not",["=","@nm",""]],[">",["array/len",["array/filter","@idF",["fn","fd",["=",["object/get","@fd","name",""],"@nm"]]]],0]],["@nm"],[]]]]]]]],["if",["=",["array/len","@sns"],0],[],["let",[["sn",["array/first","@sns"]]],["let",[["vocab",["let",[["vf",["array/filter","@idF",["fn","fd",["=",["object/get","@fd","name",""],"@sn"]]]]],["if",["=",["array/len","@vf"],0],"@nov",["let",[["fd0",["default",["array/first","@vf"],{}]]],["if",[">",["array/len",["object/get","@fd0","values","@nov"]],0],["object/get","@fd0","values","@nov"],["if",["object/has","@fd0","items"],["object/get",["object/get","@fd0","items",{}],"values","@nov"],"@nov"]]]]]]],["if",["=",["array/len","@vocab"],0],[],["let",[["lits",["if","@incl",["let",[["lit0",["array/first","@litSide"]]],["if",["validate/array","@lit0"],["let",[["mem",["if",["=",["if",["validate/string",["array/nth","@lit0",0]],["array/nth","@lit0",0],""],"list"],["array/slice","@lit0",1],"@lit0"]]],["if",["array/every","@mem",["fn","m",["validate/string","@m"]]],"@mem",[]]],["@lit0"]]],"@args"]]],["array/map",["array/filter","@lits",["fn","a",["and",["validate/string","@a"],["not",["str/startsWith","@a",["quote","\"\\u0040\""]]],["not",["array/includes","@vocab","@a"]]]]],["fn","a",{"rel":"","kind":"role","a":["if",["validate/string","@a"],"@a",""],"b":"@sn","vv":"@vocab"}]]]]]]]]]]]],[]],["if",["and",["=","@op","object/get"],[">=","@len",3]],["let",[["r1",["if",[">",["array/len","@n"],1],["array/nth","@n",1],""]],["r2",["if",[">",["array/len","@n"],2],["array/nth","@n",2],""]]],["if",["and",["validate/string","@r1"],["validate/string","@r2"]],["if",["=","@r1",["quote","\"\\u0040entity\""]],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@r2"]]]]],["if",[">",["array/len","@fm"],0],["if",["=",["object/get",["array/first","@fm"],"intrinsic",false],true],[{"rel":"","kind":"intrinsic","a":"@r1","b":"@r2","vv":"@nov"}],[]],[{"rel":"","kind":"unknown-field","a":"@r1","b":"@r2","vv":"@nov"}]]],["if",["=","@r1",["quote","\"\\u0040user\""]],[{"rel":"","kind":"user","a":"","b":"","vv":"@nov"}],[]]],[]]],[]]],["if",["and",["or",["=","@op","="],["=","@op","=="]],[">=","@len",3]],["let",[["args",["array/slice","@n",1]]],["let",[["cmp",["array/some","@args",["fn","a",["or",["and",["validate/string","@a"],["=","@a",["quote","\"\\u0040user.id\""]]],["and",["validate/array","@a"],[">=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040user\""]],["=",["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""],"id"]]]]]],["cands",["array/flatten",["array/map","@args",["fn","a",["if",["validate/string","@a"],["let",[["e0",["if",["and",["validate/string","@a"],["str/startsWith","@a",["quote","\"\\u0040entity.\""]],[">",["str/len","@a"],8],["not",["str/includes",["str/slice","@a",8],"."]],["not",["str/includes",["str/slice","@a",8],"["]]],["str/slice","@a",8],""]]],["if",["=","@e0",""],[],["@e0"]]],["if",["and",["validate/array","@a"],[">=",["array/len","@a"],3],["=",["if",["validate/string",["array/nth","@a",0]],["array/nth","@a",0],""],"object/get"],["=",["if",["validate/string",["array/nth","@a",1]],["array/nth","@a",1],""],["quote","\"\\u0040entity\""]],["validate/string",["array/nth","@a",2]]],[["if",["validate/string",["array/nth","@a",2]],["array/nth","@a",2],""]],[]]]]]]]],["if",["and","@cmp",[">",["array/len","@cands"],0]],["let",[["fname",["array/first","@cands"]]],["if",["=","@fname","id"],[],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@fname"]]]]],["if",["=",["array/len","@fm"],0],[],["let",[["fd",["default",["array/first","@fm"],{}]]],["if",["and",["object/has","@fd","relation"],["array/includes","@idNames",["object/get",["object/get","@fd","relation",{}],"entity",""]]],[],[{"rel":"","kind":"owner-typed","a":"@fname","b":["if",["object/has","@fd","relation"],["str/concat","a relation to `",["object/get",["object/get","@fd","relation",{}],"entity",""],"`"],["str/concat","`",["object/get","@fd","type",""],"`"]],"vv":"@nov"}]]]]]]],[]]]],[]]],["array/flatten",["array/map",["array/range",0,["array/len","@n"]],["fn","i",["let",[["r",["array/nth","@k","@i"]]],["if",["validate/array","@r"],["array/map","@r",["fn","h",{"rel":["str/concat","[","@i","]",["let",[["s2",["object/get","@h","rel",""]]],["if",["validate/string","@s2"],"@s2",""]]],"kind":["let",[["s3",["object/get","@h","kind",""]]],["if",["validate/string","@s3"],"@s3",""]],"a":["let",[["s4",["object/get","@h","a",""]]],["if",["validate/string","@s4"],"@s4",""]],"b":["let",[["s5",["object/get","@h","b",""]]],["if",["validate/string","@s5"],"@s5",""]],"vv":["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]}]],[]]]]]]]],["if",["validate/string","@n"],["if",["str/startsWith","@n",["quote","\"\\u0040\""]],["let",[["root",["str/replace-pattern",["str/slice","@n",1],"[.\\[].*",""]]],["if",["=","@root","entity"],["let",[["ef",["if",["and",["validate/string","@n"],["str/startsWith","@n",["quote","\"\\u0040entity.\""]],[">",["str/len","@n"],8],["not",["str/includes",["str/slice","@n",8],"."]],["not",["str/includes",["str/slice","@n",8],"["]]],["str/slice","@n",8],""]]],["if",["=","@ef",""],[],["let",[["fm",["array/filter","@ofields",["fn","fd",["=",["object/get","@fd","name",""],"@ef"]]]]],["if",[">",["array/len","@fm"],0],["if",["=",["object/get",["array/first","@fm"],"intrinsic",false],true],[{"rel":"","kind":"intrinsic","a":"@n","b":"@ef","vv":"@nov"}],[]],[{"rel":"","kind":"unknown-field","a":"@n","b":"@ef","vv":"@nov"}]]]]],["if",["=","@root","user"],[{"rel":"","kind":"user","a":"","b":"","vv":"@nov"}],[{"rel":"","kind":"invalid-binding","a":"@root","b":"","vv":"@nov"}]]]],[]],["if",["validate/object","@n"],["array/flatten",["array/map",["object/keys","@k"],["fn","key",["let",[["r",["object/get","@k","@key"]]],["if",["validate/array","@r"],["array/map","@r",["fn","h",{"rel":["str/concat",".","@key",["let",[["s6",["object/get","@h","rel",""]]],["if",["validate/string","@s6"],"@s6",""]]],"kind":["let",[["s7",["object/get","@h","kind",""]]],["if",["validate/string","@s7"],"@s7",""]],"a":["let",[["s8",["object/get","@h","a",""]]],["if",["validate/string","@s8"],"@s8",""]],"b":["let",[["s9",["object/get","@h","b",""]]],["if",["validate/string","@s9"],"@s9",""]],"vv":["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]}]],[]]]]]],[]]]]],"AccShape","{\"name\":\"AccShape\",\"nullable\":false,\"projectedFrom\":{\"type\":\"AccShape\"},\"properties\":{\"array\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"array\",\"nullable\":false,\"type\":\"array\"},\"boolean\":{\"name\":\"boolean\",\"nullable\":false,\"type\":\"boolean\"},\"map\":{\"items\":{\"nullable\":true,\"projectedFrom\":{\"type\":\"AccShape\"},\"type\":\"union\",\"values\":[\"AccShape\"]},\"name\":\"map\",\"nullable\":false,\"type\":\"object\"},\"number\":{\"name\":\"number\",\"nullable\":false,\"type\":\"number\"},\"string\":{\"name\":\"string\",\"nullable\":false,\"type\":\"string\"}},\"type\":\"union\",\"values\":[\"string\",\"number\",\"boolean\",\"array\",\"map\"]}"]]],["if",["=","@hs",null],[{"code":"@config.codes.lintNodeUnchecked.code","path":"@bp","message":["str/concat","@payload.file",": schema node at ","@bp"," is not an AccShape; this rule could not check it"],"suggestion":"","severity":"error"}],["array/concat",["array/flatten",["array/map","@hs",["fn","h",["let",[["kind",["let",[["s10",["object/get","@h","kind",""]]],["if",["validate/string","@s10"],"@s10",""]]],["a",["let",[["s11",["object/get","@h","a",""]]],["if",["validate/string","@s11"],"@s11",""]]],["b",["let",[["s12",["object/get","@h","b",""]]],["if",["validate/string","@s12"],"@s12",""]]],["path",["str/concat","@bp",["let",[["s13",["object/get","@h","rel",""]]],["if",["validate/string","@s13"],"@s13",""]]]]],["if",["=","@kind","intrinsic"],[{"code":"@config.codes.guardOnFrameFieldAuthorizes.code","path":"@path","message":["str/concat","`","@path","` reads `","@a","`, an @intrinsic field of entity `","@enn","` — intrinsic fields are trait-owned view-state, never seeded or persisted by the runtime, so using one as an access-policy input is a bypassable gate."],"entity":"@enn","field":"@a","suggestion":["str/concat","Base this access directive on a real persisted field of `","@enn","`, not the @intrinsic field `","@b","`."],"severity":"error"}],["if",["=","@kind","unknown-field"],[{"code":"@config.codes.sAccessPolicyUnknownEntityField.code","path":"@path","message":["str/concat","`","@a","` is not a field of entity `","@enn","`. It resolves to null, so this access directive silently denies everyone."],"entity":"@enn","field":"@a","suggestion":["str/concat","Declare `","@b","` on entity ","@enn",", or read one of: ",["str/join",["array/sort",["array/map",["array/filter","@ofields",["fn","fd",["object/has","@fd","name"]]],["fn","fd",["object/get","@fd","name",""]]]],", "]],"severity":"error"}],["if",["=","@kind","invalid-binding"],[{"code":"@config.codes.sAccessPolicyInvalidBinding.code","path":"@path","message":["str/concat","`@","@a","` is not a legal binding inside an access directive — only `@entity` (the candidate row) and `@user` (the viewer) are. Access directives have no call site, so `@payload`/`@config`/`@state` are not meaningful here."],"entity":"@enn","suggestion":"Read only @entity.<field> or @user.<field>.","severity":"error"}],["if",["=","@kind","owner-typed"],["let",[["idn",["default",["array/first","@idNames"],""]]],[{"code":"@config.codes.sOwnerFieldNotIdentityTyped.code","path":"@path","message":["str/concat","`","@enn",".","@a","` is compared to `@user.id` but is not a relation to the [identity] entity `","@idn","` — it is ","@b",". Viewer ids are only ever stamped onto declared relations, so this predicate matches no row and the directive denies everyone."],"entity":"@enn","field":"@a","suggestion":["str/concat","Type `","@a","` as a relation to ","@idn"," (`","@a"," : ","@idn","`), or compare against the field the viewer value actually lives in"],"severity":"error"}]],["if",["=","@kind","role"],["let",[["vv",["let",[["v0",["object/get","@h","vv","@nov"]]],["if",["validate/array","@v0"],["array/map","@v0",["fn","x",["if",["validate/string","@x"],"@x",""]]],"@nov"]]]],[{"code":"@config.codes.sRoleLiteralNotMember.code","path":"@path","message":["str/concat","\"","@a","\" is not a declared value of `@user.","@b","` on the [identity] entity `","@idNm","`. This comparison can never be true — the branch is dead."],"entity":"@idNm","field":"@b","suggestion":["str/concat","Use one of: ",["str/join","@vv",", "],", or add \"","@a","\" to `","@idNm",".","@b","`."],"severity":"error","validValues":"@vv"}]],[]]]]]]]]]],["if",["and",["array/some","@hs",["fn","h",["=",["let",[["s14",["object/get","@h","kind",""]]],["if",["validate/string","@s14"],"@s14",""]],"user"]]],["not","@idDecl"]],[{"code":"@config.codes.sAccessPolicyRequiresIdentity.code","path":"@bp","message":["str/concat","`@","@sig","` on entity `","@enn","` reads `@user`, but this program declares no [identity] entity. An access directive needs a real roster to resolve against — declare `[identity]` on the entity that models your app's viewer."],"suggestion":"Tag your user-directory entity `[persistent: <collection>, identity]`.","severity":"error"}],[]]]]]]]]]]]]]]]]]]]]]]]]]]]]],["emit","LINT_FINISH",{}]]},{"from":"ready","to":"ready","event":"LINT_FINISH","eventId":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","effects":[["emit","LINT_FOUND",{"rule":"entity-access","scope":"@entity.scope","findings":"@entity.findings"}]]}]},"config":{"codes":{"nullable":false,"type":"LintEntityAccessCodes","default":{"entityOwnerColumnUnscoped":{"code":"ORB_ENTITY_OWNER_COLUMN_UNSCOPED","category":"entity","description":"An entity declares owner columns but has no access policy scoping rows to the owner"},"lintNodeUnchecked":{"code":"LINT_NODE_UNCHECKED","category":"lint","description":"A lint rule met a schema node of an unexpected shape and could not check it"},"guardOnFrameFieldAuthorizes":{"code":"ORB_GUARD_ON_FRAME_FIELD_AUTHORIZES","category":"guard","description":"A guard reads an intrinsic frame field of an entity to authorize, but intrinsic fields are not trustworthy for access"},"sAccessPolicyUnknownEntityField":{"code":"ORB_S_ACCESS_POLICY_UNKNOWN_ENTITY_FIELD","category":"schema","description":"An access policy references a name that is not a field of its entity, so it resolves to null and denies everyone"},"sAccessPolicyInvalidBinding":{"code":"ORB_S_ACCESS_POLICY_INVALID_BINDING","category":"schema","description":"An access directive uses a binding other than the ones legal there"},"sOwnerFieldNotIdentityTyped":{"code":"ORB_S_OWNER_FIELD_NOT_IDENTITY_TYPED","category":"schema","description":"An access directive compares a field to @user.id but the field is not a relation to the identity entity"},"sRoleLiteralNotMember":{"code":"ORB_S_ROLE_LITERAL_NOT_MEMBER","category":"schema","description":"A literal compared against an @user field with a closed vocabulary is not a member of that vocabulary, so the branch can never be taken"},"sAccessPolicyRequiresIdentity":{"code":"ORB_S_ACCESS_POLICY_REQUIRES_IDENTITY","category":"schema","description":"An access directive reads @user but the program declares no identity entity"}},"label":"Emitted codes","description":"The finding codes this rule emits, with their category and meaning; the registry is generated from this declaration.","properties":{"entityOwnerColumnUnscoped":{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"lintNodeUnchecked":{"nullable":false,"name":"lintNodeUnchecked","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"guardOnFrameFieldAuthorizes":{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyUnknownEntityField":{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyInvalidBinding":{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sOwnerFieldNotIdentityTyped":{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sRoleLiteralNotMember":{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"sAccessPolicyRequiresIdentity":{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}}},"projectedFrom":{"type":"LintEntityAccessCodes"}}},"dispatch":"optimistic","sourceDeclaration":{"traitId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","fingerprint":"954c33fe82f20e9df536feb334ef74e4feddcc4d89c5ccdb433b257580f0f0b7"}},{"name":"OrbLintEntityAccessCli","id":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","effectRow":[{"kind":"emit","resource":"LINT_ANSWERED"},{"kind":"emit","resource":"LINT_REQUEST"}],"linkedEntity":"OrbLintEntityAccessRun","linkedEntityId":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","entityRefIds":{"OrbLintEntityAccessRun":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ"},"emits":[{"event":"LINT_ANSWERED","eventId":"evt_E5N4D2AS08CG4455JBFC2W8KS1","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","scope":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"event":"LINT_REQUEST","eventId":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","description":"Ask the lint input to read and lower this file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]},{"event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","description":"The rule trait's findings for the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","description":"The lint input could not read or lower the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]}],"listens":[{"event":"LINT_FOUND","eventId":"evt_9EQKJYN089G44WC44X7M2ZS15B","triggers":"LINT_FOUND","triggersId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","source":{"kind":"trait","trait":"OrbLintEntityAccess","traitId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"}},{"event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","triggers":"LINT_INPUT_UNREAD","triggersId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","source":{"kind":"trait","trait":"OrbLintInput","traitId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2","name":"Initialize"},{"key":"LINT_CALLED","id":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","name":"Lint Called","description":"Run `orb lint entity-access` with its arguments and working directory.","synonyms":"orb lint entity-access, orb lint entity-access, entity access","payloadSchema":[{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"rawBody","type":"string","required":true}],"listened":true,"inbound":{"name":"cli-lint-entity-access","answers":"LINT_ANSWERED"}},{"key":"LINT_FOUND","id":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","name":"Lint Found","description":"The rule trait's findings for the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"key":"LINT_INPUT_UNREAD","id":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","name":"Lint Input Unread","description":"The lint input could not read or lower the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}],"listened":true},{"key":"LINT_ANSWERED","id":"evt_E5N4D2AS08CG4455JBFC2W8KS1","name":"Lint Answered","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"key":"LINT_REQUEST","id":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","name":"Lint Request","description":"Ask the lint input to read and lower this file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2"},{"from":"ready","to":"ready","event":"LINT_CALLED","eventId":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","guard":["or",["=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["!=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint entity-access <file>"}]]},{"from":"ready","to":"waiting","event":"LINT_CALLED","eventId":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","guard":["and",["!=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["let",[["argFile",["array/first",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]]]],["if",["=","@argFile",null],["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint entity-access <file>"}],["emit","LINT_REQUEST",{"file":"@argFile"}]]]]},{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2"},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","guard":["and",["=","@payload.rule","entity-access"],["=",["array/len","@payload.findings"],0]],"effects":[["emit","LINT_ANSWERED",{"status":200,"body":"lint entity-access: clean"}]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","guard":["and",["=","@payload.rule","entity-access"],[">",["array/len","@payload.findings"],0]],"effects":[["emit","LINT_ANSWERED",{"status":500,"body":["str/join",["array/map","@payload.findings",["fn","x",["str/concat","[",["object/get","@x","code"],"] ",["object/get","@x","path"],": ",["object/get","@x","message"],["if",["=",["object/get","@x","suggestion"],""],"",["str/concat","\n suggestion: ",["object/get","@x","suggestion"]]]]]],"\n"]}]]},{"from":"waiting","to":"ready","event":"LINT_INPUT_UNREAD","eventId":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","effects":[["emit","LINT_ANSWERED",{"status":500,"body":"lint entity-access: the file could not be read or lowered"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","fingerprint":"203ca75681882f39500833e53451aea203efa5cabf1e0638cfac7ce794204393"}},{"ref":"Input.traits.Versions","id":"trt_P85DYRGRF9C7MJ3TE41MPDKN91","name":"Versions"},{"ref":"Input.traits.Packs","id":"trt_63MG6DJKBB9NNQFZBXBYFS798C","name":"Packs"},{"ref":"Input.traits.OrbLintInput","id":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ","name":"OrbLintInput","listens":[{"event":"LINT_REQUEST","triggers":"LINT_REQUEST","source":{"kind":"trait","trait":"OrbLintEntityAccessCli"}},{"event":"SCAN_ANSWERED","triggers":"LANG_SCAN_ANSWERED","source":{"kind":"trait","trait":"Packs"}},{"event":"LANGUAGE_PACK_VOCAB","triggers":"LANGUAGE_PACK_VOCAB_HEARD","source":{"kind":"trait","trait":"Packs"}},{"event":"LANGUAGE_PACKS_DONE","triggers":"LANGUAGE_PACKS_DONE_HEARD","source":{"kind":"trait","trait":"Packs"}}]}],"pages":[{"name":"OrbLintEntityAccessOrbitalStart","id":"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9","path":"","protocol":"boot","traits":[{"ref":"OrbLintEntityAccess","refId":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},{"ref":"OrbLintEntityAccessCli","refId":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},{"ref":"OrbLintInput","refId":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ"},{"ref":"Packs","refId":"trt_63MG6DJKBB9NNQFZBXBYFS798C"},{"ref":"Versions","refId":"trt_P85DYRGRF9C7MJ3TE41MPDKN91"}]}],"types":{"AccEntity":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"AccEntityRef":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}]}],"AccExpect":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"AccField":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"AccItems":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"AccOrbital":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"AccProgram":[{"nullable":false,"name":"orbitals","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"expects","type":"[object]","properties":[{"nullable":false,"name":"kind","type":"string"},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"shape","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}}],"items":{"nullable":false,"name":"","type":"AccExpect","projectedFrom":{"type":"AccExpect"}}},{"nullable":false,"name":"entity","type":"union","properties":[{"nullable":false,"name":"AccEntity","type":"object","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"projectedFrom":{"type":"AccEntity"}},{"nullable":false,"name":"string","type":"string"}],"projectedFrom":{"type":"AccEntityRef"}},{"nullable":false,"name":"auxiliaryEntities","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"identity","type":"boolean"},{"nullable":false,"name":"collection","type":"string"},{"nullable":false,"name":"fields","type":"[object]","properties":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"type","type":"string"},{"nullable":false,"name":"intrinsic","type":"boolean"},{"nullable":false,"name":"relation","type":"object","properties":[{"nullable":false,"name":"entity","type":"string"}],"projectedFrom":{"type":"AccRelation"}},{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"items","type":"object","properties":[{"nullable":false,"name":"values","type":"[string]","items":{"nullable":false,"name":"","type":"string"}}],"projectedFrom":{"type":"AccItems"}}],"items":{"nullable":false,"name":"","type":"AccField","projectedFrom":{"type":"AccField"}}},{"nullable":false,"name":"read_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"create_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"update_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"delete_policy","type":"AccShape","properties":[],"projectedFrom":{"type":"AccShape"}},{"nullable":false,"name":"access_waivers","type":"object","properties":[{"nullable":false,"name":"read","type":"string"}],"projectedFrom":{"type":"AccWaivers"}}],"items":{"nullable":false,"name":"","type":"AccEntity","projectedFrom":{"type":"AccEntity"}}}],"items":{"nullable":false,"name":"","type":"AccOrbital","projectedFrom":{"type":"AccOrbital"}}}],"AccRelation":[{"nullable":false,"name":"entity","type":"string"}],"AccShape":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[AccShape]","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}},{"nullable":false,"name":"object","type":"Map<string,AccShape>","items":{"nullable":true,"name":"","type":"AccShape","projectedFrom":{"type":"AccShape"}}}]}],"AccWaivers":[{"nullable":false,"name":"read","type":"string"}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintEntityAccessCodes":[{"nullable":false,"name":"entityOwnerColumnUnscoped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"lintNodeUnchecked","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"guardOnFrameFieldAuthorizes","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyUnknownEntityField","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyInvalidBinding","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sOwnerFieldNotIdentityTyped","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sRoleLiteralNotMember","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"sAccessPolicyRequiresIdentity","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]},{"nullable":false,"name":"entity","type":"string"},{"nullable":false,"name":"field","type":"string"}]}}],"inbound":["cli-lint-entity-access"],"osGrants":{"fs":[{"glob":"/**","modes":["read"]},{"glob":"~/.orb/node_modules/**","modes":["read"]}],"exec":[],"net":[],"env":["PATH"],"stdio":[],"sys":[],"desktop":[],"anchored":{"fs":[{"anchor":"cwd","glob":"**","modes":["read"]}],"exec":[{"anchor":"exe"}]}},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ":{"id":"ent_3M8QPKPXRKEW9X73MKAPF1G3ZJ","kind":"entity","bakedName":"OrbLintEntityAccessRun","curName":"OrbLintEntityAccessRun","renames":[],"owner":"workspace"},"evt_28MNRXQFDMQPT8SNW6FY6PK79V":{"id":"evt_28MNRXQFDMQPT8SNW6FY6PK79V","kind":"event","bakedName":"LINT_INPUT_UNREAD","curName":"LINT_INPUT_UNREAD","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6":{"id":"evt_2KGSRTJN1DAGPJ6NKS47E5SKA6","kind":"event","bakedName":"LINT_FINISH","curName":"LINT_FINISH","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_5TVYMN17TSKXCSCY2YMZN5S5J9":{"id":"evt_5TVYMN17TSKXCSCY2YMZN5S5J9","kind":"event","bakedName":"LINT_REQUEST","curName":"LINT_REQUEST","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_8TYAWRPHQJ8VS85YFP054Q5KH2":{"id":"evt_8TYAWRPHQJ8VS85YFP054Q5KH2","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_9EQKJYN089G44WC44X7M2ZS15B":{"id":"evt_9EQKJYN089G44WC44X7M2ZS15B","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR":{"id":"evt_9Q359Z9CSVPCXRJR2D8MXZ5WMR","kind":"event","bakedName":"LINT_CALLED","curName":"LINT_CALLED","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_E5N4D2AS08CG4455JBFC2W8KS1":{"id":"evt_E5N4D2AS08CG4455JBFC2W8KS1","kind":"event","bakedName":"LINT_ANSWERED","curName":"LINT_ANSWERED","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"evt_MT2WWS1GJMR9A8WT17WCF7QK8B":{"id":"evt_MT2WWS1GJMR9A8WT17WCF7QK8B","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT":{"id":"evt_MVC8PDNK5NSJTTB9PV3PGDGQJT","kind":"event","bakedName":"LINT_INPUT","curName":"LINT_INPUT","renames":[],"owner":"workspace","parent":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH"},"evt_PYXQT1XVKTXSX1S34RBEHBC48D":{"id":"evt_PYXQT1XVKTXSX1S34RBEHBC48D","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9"},"orb_82RBJW4KGC9R61ABSDG417561F":{"id":"orb_82RBJW4KGC9R61ABSDG417561F","kind":"orbital","bakedName":"OrbLintEntityAccessOrbital","curName":"OrbLintEntityAccessOrbital","renames":[],"owner":"workspace"},"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9":{"id":"pag_Z4Y9RNV4AFJ57PPR78HR08E1X9","kind":"page","bakedName":"OrbLintEntityAccessOrbitalStart","curName":"OrbLintEntityAccessOrbitalStart","renames":[],"owner":"workspace"},"trt_63MG6DJKBB9NNQFZBXBYFS798C":{"id":"trt_63MG6DJKBB9NNQFZBXBYFS798C","kind":"trait","bakedName":"Packs","curName":"Packs","renames":[],"owner":"workspace"},"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH":{"id":"trt_AS5YJSMQ7KBKSQ1V1D82Z92BNH","kind":"trait","bakedName":"OrbLintEntityAccess","curName":"OrbLintEntityAccess","renames":[],"owner":"workspace"},"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ":{"id":"trt_MNB9NJMMY9AF4Q8Y13V9A0G5TJ","kind":"trait","bakedName":"OrbLintInput","curName":"OrbLintInput","renames":[],"owner":"workspace"},"trt_P85DYRGRF9C7MJ3TE41MPDKN91":{"id":"trt_P85DYRGRF9C7MJ3TE41MPDKN91","kind":"trait","bakedName":"Versions","curName":"Versions","renames":[],"owner":"workspace"},"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9":{"id":"trt_SKXQ6WWNRHAW8Q47MPZWK03NR9","kind":"trait","bakedName":"OrbLintEntityAccessCli","curName":"OrbLintEntityAccessCli","renames":[],"owner":"workspace"}}}}
|