@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.1
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/README.md +462 -3
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +188 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.js +20 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.d.ts +245 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.js +30 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.d.ts +18 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.js +8 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.d.ts +718 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.js +52 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.d.ts +23 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.d.ts +148 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.js +12 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.d.ts +63 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.js +17 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +39 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.js +35 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +116 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.js +11 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +178 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.js +18 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.d.ts +200 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.d.ts +141 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.js +22 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +123 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.js +14 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +78 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +23 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.d.ts +265 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.js +15 -0
- package/dist-sdk/elementum-entity-client/errors.d.ts +90 -0
- package/dist-sdk/elementum-entity-client/errors.js +111 -0
- package/dist-sdk/elementum-entity-client/models/connection.d.ts +30 -0
- package/dist-sdk/elementum-entity-client/models/connection.js +16 -0
- package/dist-sdk/elementum-entity-client/types.d.ts +71 -0
- package/dist-sdk/elementum-entity-client/types.js +1 -0
- package/dist-sdk/fs/entity.d.ts +104 -0
- package/dist-sdk/fs/entity.js +52 -0
- package/dist-sdk/pull/util.d.ts +130 -0
- package/dist-sdk/pull/util.js +204 -0
- package/dist-sdk/src/catalog/ai-provider-models.d.ts +30 -0
- package/dist-sdk/src/catalog/ai-provider-models.js +63 -0
- package/dist-sdk/src/catalog/factories.d.ts +242 -0
- package/dist-sdk/src/catalog/factories.js +265 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +467 -0
- package/dist-sdk/src/catalog/index.d.ts +12 -0
- package/dist-sdk/src/catalog/index.js +12 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +288 -0
- package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
- package/dist-sdk/src/catalog/render-helpers.js +82 -0
- package/dist-sdk/src/catalog/render.d.ts +48 -0
- package/dist-sdk/src/catalog/render.js +193 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +76 -0
- package/dist-sdk/src/catalog/types.d.ts +215 -0
- package/dist-sdk/src/catalog/types.js +86 -0
- package/dist-sdk/src/catalog/write.d.ts +43 -0
- package/dist-sdk/src/catalog/write.js +109 -0
- package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
- package/dist-sdk/src/core/app-to-ui.js +75 -0
- package/dist-sdk/src/core/index.d.ts +10 -0
- package/dist-sdk/src/core/index.js +9 -0
- package/dist-sdk/src/core/system-fields.d.ts +95 -0
- package/dist-sdk/src/core/system-fields.js +153 -0
- package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
- package/dist-sdk/src/core/triggers/on-demand.js +112 -0
- package/dist-sdk/src/core/types/ai-provider.d.ts +23 -0
- package/dist-sdk/src/core/types/ai-provider.js +8 -0
- package/dist-sdk/src/core/types/app.d.ts +857 -0
- package/dist-sdk/src/core/types/app.js +210 -0
- package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
- package/dist-sdk/src/core/types/aspect-category.js +33 -0
- package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
- package/dist-sdk/src/core/types/cloud-link.js +32 -0
- package/dist-sdk/src/core/types/display-block.d.ts +149 -0
- package/dist-sdk/src/core/types/display-block.js +61 -0
- package/dist-sdk/src/core/types/group.d.ts +13 -0
- package/dist-sdk/src/core/types/group.js +6 -0
- package/dist-sdk/src/core/types/platform.d.ts +2 -0
- package/dist-sdk/src/core/types/platform.js +1 -0
- package/dist-sdk/src/core/types/user.d.ts +20 -0
- package/dist-sdk/src/core/types/user.js +8 -0
- package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
- package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
- package/dist-sdk/src/engine/build/context.d.ts +67 -0
- package/dist-sdk/src/engine/build/context.js +6 -0
- package/dist-sdk/src/engine/build/source-context.d.ts +45 -0
- package/dist-sdk/src/engine/build/source-context.js +23 -0
- package/dist-sdk/src/engine/entity.d.ts +44 -0
- package/dist-sdk/src/engine/entity.js +15 -0
- package/dist-sdk/src/engine/pull/context.d.ts +38 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +54 -0
- package/dist-sdk/src/engine/pull/org.js +134 -0
- package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
- package/dist-sdk/src/engine/tf/escape.js +28 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
- package/dist-sdk/src/engine/tf/expr.js +405 -0
- package/dist-sdk/src/engine/tf/index.d.ts +12 -0
- package/dist-sdk/src/engine/tf/index.js +11 -0
- package/dist-sdk/src/engine/tf/labels.d.ts +76 -0
- package/dist-sdk/src/engine/tf/labels.js +196 -0
- package/dist-sdk/src/engine/tf/model.d.ts +84 -0
- package/dist-sdk/src/engine/tf/model.js +49 -0
- package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
- package/dist-sdk/src/engine/tf/parse.js +189 -0
- package/dist-sdk/src/engine/tf/render.d.ts +13 -0
- package/dist-sdk/src/engine/tf/render.js +102 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +26 -0
- package/dist-sdk/src/entities/access-policy/build.js +7 -0
- package/dist-sdk/src/entities/access-policy/filter.d.ts +61 -0
- package/dist-sdk/src/entities/access-policy/filter.js +83 -0
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +48 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +189 -0
- package/dist-sdk/src/entities/access-policy/module.d.ts +3 -0
- package/dist-sdk/src/entities/access-policy/module.js +17 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +36 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +149 -0
- package/dist-sdk/src/entities/access-policy/types.d.ts +4 -0
- package/dist-sdk/src/entities/access-policy/types.js +10 -0
- package/dist-sdk/src/entities/agent/build.d.ts +108 -0
- package/dist-sdk/src/entities/agent/build.js +148 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +53 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +344 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +65 -0
- package/dist-sdk/src/entities/agent/from-tf.js +289 -0
- package/dist-sdk/src/entities/agent/index.d.ts +7 -0
- package/dist-sdk/src/entities/agent/index.js +7 -0
- package/dist-sdk/src/entities/agent/module.d.ts +4 -0
- package/dist-sdk/src/entities/agent/module.js +122 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +188 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +284 -0
- package/dist-sdk/src/entities/agent/tools.js +238 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +110 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +265 -0
- package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-tool/module.js +32 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +40 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +250 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +43 -0
- package/dist-sdk/src/entities/agent-tool/types.js +102 -0
- package/dist-sdk/src/entities/app/build.d.ts +368 -0
- package/dist-sdk/src/entities/app/build.js +372 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +168 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
- package/dist-sdk/src/entities/app/display-blocks.js +34 -0
- package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
- package/dist-sdk/src/entities/app/from-tf.js +197 -0
- package/dist-sdk/src/entities/app/index.d.ts +14 -0
- package/dist-sdk/src/entities/app/index.js +11 -0
- package/dist-sdk/src/entities/app/locals.d.ts +11 -0
- package/dist-sdk/src/entities/app/locals.js +31 -0
- package/dist-sdk/src/entities/app/module.d.ts +4 -0
- package/dist-sdk/src/entities/app/module.js +66 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/app/to-tf.js +212 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/build.js +56 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
- package/dist-sdk/src/entities/approval-chain/index.js +6 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
- package/dist-sdk/src/entities/automation/build.d.ts +259 -0
- package/dist-sdk/src/entities/automation/build.js +436 -0
- package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +152 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +55 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1176 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +93 -0
- package/dist-sdk/src/entities/automation/filter.js +156 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +35 -0
- package/dist-sdk/src/entities/automation/from-tf.js +1258 -0
- package/dist-sdk/src/entities/automation/index.d.ts +22 -0
- package/dist-sdk/src/entities/automation/index.js +25 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +150 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +93 -0
- package/dist-sdk/src/entities/automation/operators.js +69 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +19 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +24 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +51 -0
- package/dist-sdk/src/entities/automation/script-code.js +633 -0
- package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
- package/dist-sdk/src/entities/automation/serialize.js +41 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +641 -0
- package/dist-sdk/src/entities/automation/tasks.js +765 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +19 -0
- package/dist-sdk/src/entities/automation/to-tf.js +1169 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +205 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +78 -0
- package/dist-sdk/src/entities/automation/types.js +131 -0
- package/dist-sdk/src/entities/element/build.d.ts +121 -0
- package/dist-sdk/src/entities/element/build.js +110 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +170 -0
- package/dist-sdk/src/entities/element/index.d.ts +12 -0
- package/dist-sdk/src/entities/element/index.js +10 -0
- package/dist-sdk/src/entities/element/locals.d.ts +7 -0
- package/dist-sdk/src/entities/element/locals.js +12 -0
- package/dist-sdk/src/entities/element/module.d.ts +8 -0
- package/dist-sdk/src/entities/element/module.js +65 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +169 -0
- package/dist-sdk/src/entities/field/build.d.ts +112 -0
- package/dist-sdk/src/entities/field/build.js +84 -0
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
- package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
- package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
- package/dist-sdk/src/entities/field/calc/date.js +109 -0
- package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
- package/dist-sdk/src/entities/field/calc/index.js +433 -0
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
- package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
- package/dist-sdk/src/entities/field/calc/runtime.js +174 -0
- package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
- package/dist-sdk/src/entities/field/calc/text.js +208 -0
- package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
- package/dist-sdk/src/entities/field/calc/types.js +23 -0
- package/dist-sdk/src/entities/field/calc.d.ts +108 -0
- package/dist-sdk/src/entities/field/calc.js +54 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +31 -0
- package/dist-sdk/src/entities/field/from-tf.js +184 -0
- package/dist-sdk/src/entities/field/locals.d.ts +8 -0
- package/dist-sdk/src/entities/field/locals.js +24 -0
- package/dist-sdk/src/entities/field/module.d.ts +3 -0
- package/dist-sdk/src/entities/field/module.js +50 -0
- package/dist-sdk/src/entities/field/options.d.ts +27 -0
- package/dist-sdk/src/entities/field/options.js +76 -0
- package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
- package/dist-sdk/src/entities/field/record-shape.js +1 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +73 -0
- package/dist-sdk/src/entities/field/to-tf.js +142 -0
- package/dist-sdk/src/entities/field/types.d.ts +53 -0
- package/dist-sdk/src/entities/field/types.js +68 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +182 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +6 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +109 -0
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/file-reader/from-tf.js +172 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +10 -0
- package/dist-sdk/src/entities/file-reader/index.js +10 -0
- package/dist-sdk/src/entities/file-reader/module.d.ts +3 -0
- package/dist-sdk/src/entities/file-reader/module.js +115 -0
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/file-reader/to-tf.js +84 -0
- package/dist-sdk/src/entities/file-reader/types.d.ts +32 -0
- package/dist-sdk/src/entities/file-reader/types.js +30 -0
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
- package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
- package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
- package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
- package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
- package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
- package/dist-sdk/src/entities/flow/activities/form.js +36 -0
- package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
- package/dist-sdk/src/entities/flow/activities/index.js +13 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
- package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
- package/dist-sdk/src/entities/flow/activities/types.js +1 -0
- package/dist-sdk/src/entities/flow/build.d.ts +38 -0
- package/dist-sdk/src/entities/flow/build.js +115 -0
- package/dist-sdk/src/entities/flow/index.d.ts +8 -0
- package/dist-sdk/src/entities/flow/index.js +7 -0
- package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
- package/dist-sdk/src/entities/flow/serialize.js +94 -0
- package/dist-sdk/src/entities/flow/util.d.ts +27 -0
- package/dist-sdk/src/entities/flow/util.js +38 -0
- package/dist-sdk/src/entities/org/ai-provider.d.ts +13 -0
- package/dist-sdk/src/entities/org/ai-provider.js +46 -0
- package/dist-sdk/src/entities/org/category.d.ts +5 -0
- package/dist-sdk/src/entities/org/category.js +33 -0
- package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
- package/dist-sdk/src/entities/org/cloud-link.js +33 -0
- package/dist-sdk/src/entities/org/connector.d.ts +12 -0
- package/dist-sdk/src/entities/org/connector.js +35 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +40 -0
- package/dist-sdk/src/entities/org/index.d.ts +11 -0
- package/dist-sdk/src/entities/org/index.js +11 -0
- package/dist-sdk/src/entities/org/role.d.ts +7 -0
- package/dist-sdk/src/entities/org/role.js +21 -0
- package/dist-sdk/src/entities/org/user.d.ts +7 -0
- package/dist-sdk/src/entities/org/user.js +30 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
- package/dist-sdk/src/entities/search-table/build.js +79 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
- package/dist-sdk/src/entities/search-table/index.js +5 -0
- package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
- package/dist-sdk/src/entities/search-table/module.js +64 -0
- package/dist-sdk/src/entities/shared/context.d.ts +93 -0
- package/dist-sdk/src/entities/shared/context.js +156 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +277 -0
- package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
- package/dist-sdk/src/entities/shared/filters/index.js +372 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/types.js +7 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
- package/dist-sdk/src/entities/shared/ref.js +119 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +17 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.js +31 -0
- package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
- package/dist-sdk/src/entities/shared/types/common.js +64 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +58 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +57 -0
- package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
- package/dist-sdk/src/entities/shared/types/platform.js +10 -0
- package/dist-sdk/src/entities/skill/build.d.ts +25 -0
- package/dist-sdk/src/entities/skill/build.js +50 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +39 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +124 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +96 -0
- package/dist-sdk/src/entities/skill/index.d.ts +7 -0
- package/dist-sdk/src/entities/skill/index.js +7 -0
- package/dist-sdk/src/entities/skill/module.d.ts +4 -0
- package/dist-sdk/src/entities/skill/module.js +111 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +59 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +93 -0
- package/dist-sdk/src/entities/skill/tools.js +105 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +60 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +142 -0
- package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/skill-tool/module.js +21 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +34 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +130 -0
- package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
- package/dist-sdk/src/entities/skill-tool/types.js +67 -0
- package/dist-sdk/src/entities/table/build.d.ts +74 -0
- package/dist-sdk/src/entities/table/build.js +339 -0
- package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/table/catalog-render.js +39 -0
- package/dist-sdk/src/entities/table/fields.d.ts +81 -0
- package/dist-sdk/src/entities/table/fields.js +70 -0
- package/dist-sdk/src/entities/table/filter.d.ts +41 -0
- package/dist-sdk/src/entities/table/filter.js +89 -0
- package/dist-sdk/src/entities/table/index.d.ts +8 -0
- package/dist-sdk/src/entities/table/index.js +12 -0
- package/dist-sdk/src/entities/table/joins.d.ts +26 -0
- package/dist-sdk/src/entities/table/joins.js +31 -0
- package/dist-sdk/src/entities/table/keys.d.ts +11 -0
- package/dist-sdk/src/entities/table/keys.js +25 -0
- package/dist-sdk/src/entities/table/module.d.ts +5 -0
- package/dist-sdk/src/entities/table/module.js +25 -0
- package/dist-sdk/src/entities/table/state.d.ts +39 -0
- package/dist-sdk/src/entities/table/state.js +43 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +29 -0
- package/dist-sdk/src/entities/view/from-tf.js +235 -0
- package/dist-sdk/src/entities/view/module.d.ts +24 -0
- package/dist-sdk/src/entities/view/module.js +61 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +65 -0
- package/dist-sdk/src/entities/view/to-tf.js +171 -0
- package/dist-sdk/src/entities/view/types.d.ts +58 -0
- package/dist-sdk/src/entities/view/types.js +89 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +9 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +18 -0
- package/dist-sdk/src/graph/index.d.ts +91 -0
- package/dist-sdk/src/graph/index.js +211 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +42 -0
- package/dist-sdk/src/graph/types.d.ts +375 -0
- package/dist-sdk/src/graph/types.js +102 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
- package/dist-sdk/src/internal/sdk-package.js +23 -0
- package/package.json +201 -8
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public graph barrel: KIND_MODULES + derived views for pull/build/canvas.
|
|
3
|
+
*/
|
|
4
|
+
import { renderDeferredNamedEntry } from "./deferred-catalog-render.js";
|
|
5
|
+
import { KIND_MODULES } from "./modules.js";
|
|
6
|
+
import { implementedResourceTypes, isResourceAdoptable, isTfLive, knownResourceTypes, matchType, singleResourceType, } from "./types.js";
|
|
7
|
+
export { NO_CANVAS, NO_CATALOG, NO_DATA, NO_LIFECYCLE, defaultMatchResourceType, implementedResourceTypes, isResourceAdoptable, isTfLive, knownResourceTypes, matchType, singleResourceType, } from "./types.js";
|
|
8
|
+
export { KIND_MODULES } from "./modules.js";
|
|
9
|
+
/** @deprecated Use {@link KIND_MODULES}. */
|
|
10
|
+
export const ENTITY_KIND_MODULES = KIND_MODULES;
|
|
11
|
+
/** Modules whose data facet participates (not {@link NO_DATA}). */
|
|
12
|
+
export const DATA_FACET_MODULES = KIND_MODULES.filter((m) => m.data.participates);
|
|
13
|
+
/** Data source type → module (replaces ORG_KIND_BY_TYPE). */
|
|
14
|
+
export const DATA_FACET_BY_TYPE = (() => {
|
|
15
|
+
const map = new Map();
|
|
16
|
+
for (const m of DATA_FACET_MODULES) {
|
|
17
|
+
const type = singleResourceType(m);
|
|
18
|
+
if (type !== undefined)
|
|
19
|
+
map.set(type, m);
|
|
20
|
+
}
|
|
21
|
+
return map;
|
|
22
|
+
})();
|
|
23
|
+
/** Org identity bags written by `edk pull org` (data.orgBag set). */
|
|
24
|
+
export const ORG_IDENTITY_BAGS = DATA_FACET_MODULES.filter((m) => m.data.participates && m.data.orgBag !== undefined);
|
|
25
|
+
const AI_PROVIDER_KIND_PREFIX = "ai-provider-";
|
|
26
|
+
/**
|
|
27
|
+
* `defineAiProvider({ type })` identifiers → their terraform resource type —
|
|
28
|
+
* one entry per `ai-provider-*` kind, derived from the kind id so authored
|
|
29
|
+
* source never has to name a resource type directly.
|
|
30
|
+
*/
|
|
31
|
+
export const AI_PROVIDER_RESOURCE_TYPE_BY_TYPE = new Map(ORG_IDENTITY_BAGS.filter((m) => m.kind.startsWith(AI_PROVIDER_KIND_PREFIX)).flatMap((m) => {
|
|
32
|
+
const resourceType = singleResourceType(m);
|
|
33
|
+
return resourceType === undefined ? [] : [[m.kind.slice(AI_PROVIDER_KIND_PREFIX.length), resourceType]];
|
|
34
|
+
}));
|
|
35
|
+
/** Reverse of {@link AI_PROVIDER_RESOURCE_TYPE_BY_TYPE} — resourceType → public `type`. */
|
|
36
|
+
export const AI_PROVIDER_TYPE_BY_RESOURCE_TYPE = new Map([...AI_PROVIDER_RESOURCE_TYPE_BY_TYPE].map(([type, resourceType]) => [resourceType, type]));
|
|
37
|
+
/** Backward-compatible metadata view derived from the graph. */
|
|
38
|
+
export const RESOURCE_KIND_MODULES = KIND_MODULES.filter(isTfLive).map((m) => ({
|
|
39
|
+
kind: m.kind,
|
|
40
|
+
resourceTypes: implementedResourceTypes(m.resource),
|
|
41
|
+
adoptable: isResourceAdoptable(m.resource),
|
|
42
|
+
}));
|
|
43
|
+
/** Resource types the §6 adoption gates import. */
|
|
44
|
+
export const ADOPTABLE_RESOURCE_TYPES = new Set(KIND_MODULES.filter((m) => isTfLive(m) && isResourceAdoptable(m.resource)).flatMap((m) => implementedResourceTypes(m.resource)));
|
|
45
|
+
/** Resource types included in the build-vs-export compare (TF-live ∪ data facets referenced by build). */
|
|
46
|
+
export const BUILD_VS_EXPORT_SCOPE_TYPES = new Set([
|
|
47
|
+
...KIND_MODULES.filter(isTfLive).flatMap((m) => implementedResourceTypes(m.resource)),
|
|
48
|
+
...DATA_FACET_MODULES.filter((m) => m.data.participates && m.data.referencedByBuild).flatMap((m) => {
|
|
49
|
+
const type = singleResourceType(m);
|
|
50
|
+
return type !== undefined ? [type] : [];
|
|
51
|
+
}),
|
|
52
|
+
]);
|
|
53
|
+
/** Entity-declared reference aliases normalized by the live round-trip gate. */
|
|
54
|
+
export const BUILD_VS_EXPORT_REFERENCE_ALIASES = KIND_MODULES.flatMap((module) => module.roundtrip?.referenceAliases ?? []);
|
|
55
|
+
/** Kind id → module. */
|
|
56
|
+
export const KIND_BY_ID = new Map(KIND_MODULES.map((m) => [m.kind, m]));
|
|
57
|
+
/** @deprecated Use {@link KIND_BY_ID}. */
|
|
58
|
+
export const ENTITY_KIND_BY_ID = KIND_BY_ID;
|
|
59
|
+
/**
|
|
60
|
+
* Terraform resource type → owning kind module. Excludes data-facet-only /
|
|
61
|
+
* orgExport kinds so partition does not treat org data types as resources.
|
|
62
|
+
*/
|
|
63
|
+
export const TYPE_TO_KIND = (() => {
|
|
64
|
+
const map = new Map();
|
|
65
|
+
for (const m of KIND_MODULES) {
|
|
66
|
+
if (m.stream.role === "orgExport" || m.authoring.unit === "none")
|
|
67
|
+
continue;
|
|
68
|
+
for (const type of knownResourceTypes(m.resource)) {
|
|
69
|
+
map.set(type, m);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return map;
|
|
73
|
+
})();
|
|
74
|
+
/** Stream-root kinds (app, element, …). */
|
|
75
|
+
export const STREAM_ROOT_MODULES = KIND_MODULES.filter((m) => m.stream.role === "streamRoot");
|
|
76
|
+
/** Own-file children of a parent kind (build discovery + pull print paths). */
|
|
77
|
+
export function ownFileChildrenOf(parent) {
|
|
78
|
+
return KIND_MODULES.filter((m) => m.authoring.unit === "ownFile" &&
|
|
79
|
+
m.parents.some((e) => e.parent === parent) &&
|
|
80
|
+
m.lifecycle.participates &&
|
|
81
|
+
m.lifecycle.toTf !== undefined);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Own-file children that contribute to generated catalogs (may lack `toTf`,
|
|
85
|
+
* e.g. skill / search-table before their TF tranche).
|
|
86
|
+
*/
|
|
87
|
+
export function ownFileCatalogChildrenOf(parent) {
|
|
88
|
+
return KIND_MODULES.filter((m) => m.authoring.unit === "ownFile" &&
|
|
89
|
+
m.catalog.participates &&
|
|
90
|
+
m.parents.some((e) => e.parent === parent));
|
|
91
|
+
}
|
|
92
|
+
/** All own-file bags declared under a parent (including stubs without lifecycle). */
|
|
93
|
+
export function ownFileBagsUnder(parent) {
|
|
94
|
+
const bags = new Set();
|
|
95
|
+
for (const m of KIND_MODULES) {
|
|
96
|
+
if (m.authoring.unit !== "ownFile")
|
|
97
|
+
continue;
|
|
98
|
+
if (!m.parents.some((e) => e.parent === parent))
|
|
99
|
+
continue;
|
|
100
|
+
bags.add(m.authoring.bag);
|
|
101
|
+
}
|
|
102
|
+
return [...bags].sort();
|
|
103
|
+
}
|
|
104
|
+
/** Org-root own-file bags (apps, tables, …) — authoring path roots. */
|
|
105
|
+
export function orgRootOwnFileBags() {
|
|
106
|
+
return ownFileBagsUnder("org");
|
|
107
|
+
}
|
|
108
|
+
/** Parent edges for tests / docs. */
|
|
109
|
+
export function allParentEdges() {
|
|
110
|
+
return KIND_MODULES.flatMap((m) => m.parents);
|
|
111
|
+
}
|
|
112
|
+
/** Match a resource type against the graph (false if unknown). */
|
|
113
|
+
export function matchResourceType(type) {
|
|
114
|
+
const module = TYPE_TO_KIND.get(type);
|
|
115
|
+
if (module === undefined)
|
|
116
|
+
return undefined;
|
|
117
|
+
const match = matchType(module, type);
|
|
118
|
+
if (match === false)
|
|
119
|
+
return undefined;
|
|
120
|
+
return { module, match };
|
|
121
|
+
}
|
|
122
|
+
/** Modules whose catalog facet participates. */
|
|
123
|
+
export const CATALOG_MODULES = KIND_MODULES.filter((m) => m.catalog.participates);
|
|
124
|
+
function catalogMetaOf(facet) {
|
|
125
|
+
return {
|
|
126
|
+
refKind: facet.refKind,
|
|
127
|
+
catalogBag: facet.catalogBag,
|
|
128
|
+
renderOrder: facet.renderOrder,
|
|
129
|
+
catalogRoot: facet.catalogRoot,
|
|
130
|
+
factoryName: facet.factoryName ?? `${facet.refKind}Ref`,
|
|
131
|
+
renderEntry: facet.renderEntry,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Nested / not-yet-graph-registered catalog bags. Top-level kinds move here
|
|
136
|
+
* off this table onto CatalogFacet as their modules land; nested bags
|
|
137
|
+
* (triggerParameter, tableColumn, …) stay residual.
|
|
138
|
+
*/
|
|
139
|
+
const DEFERRED_CATALOG_META = [
|
|
140
|
+
{
|
|
141
|
+
refKind: "flow",
|
|
142
|
+
catalogBag: "flows",
|
|
143
|
+
renderOrder: 25,
|
|
144
|
+
catalogRoot: "app",
|
|
145
|
+
factoryName: "flowRef",
|
|
146
|
+
renderEntry: renderDeferredNamedEntry("flowRef"),
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
refKind: "approvalChain",
|
|
150
|
+
catalogBag: "approvalChains",
|
|
151
|
+
renderOrder: 26,
|
|
152
|
+
catalogRoot: "app",
|
|
153
|
+
factoryName: "approvalChainRef",
|
|
154
|
+
renderEntry: renderDeferredNamedEntry("approvalChainRef"),
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
refKind: "tableColumn",
|
|
158
|
+
catalogBag: "columns",
|
|
159
|
+
renderOrder: 41,
|
|
160
|
+
catalogRoot: "org",
|
|
161
|
+
factoryName: "tableColumnRef",
|
|
162
|
+
renderEntry: renderDeferredNamedEntry("tableColumnRef"),
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
refKind: "documentModelField",
|
|
166
|
+
catalogBag: "fields",
|
|
167
|
+
renderOrder: 56,
|
|
168
|
+
catalogRoot: "app",
|
|
169
|
+
factoryName: "documentModelFieldRef",
|
|
170
|
+
renderEntry: renderDeferredNamedEntry("documentModelFieldRef"),
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
refKind: "triggerParameter",
|
|
174
|
+
catalogBag: "trigger",
|
|
175
|
+
renderOrder: 5,
|
|
176
|
+
catalogRoot: "app",
|
|
177
|
+
factoryName: "triggerParameterRef",
|
|
178
|
+
renderEntry: renderDeferredNamedEntry("triggerParameterRef"),
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
refKind: "outputProperty",
|
|
182
|
+
catalogBag: "outputs",
|
|
183
|
+
renderOrder: 6,
|
|
184
|
+
catalogRoot: "app",
|
|
185
|
+
factoryName: "outputPropertyRef",
|
|
186
|
+
renderEntry: renderDeferredNamedEntry("outputPropertyRef"),
|
|
187
|
+
},
|
|
188
|
+
];
|
|
189
|
+
/** refKind → catalog bag / order / root / factory — graph facets win over deferred. */
|
|
190
|
+
export const CATALOG_META_BY_REF_KIND = (() => {
|
|
191
|
+
const map = new Map();
|
|
192
|
+
for (const d of DEFERRED_CATALOG_META)
|
|
193
|
+
map.set(d.refKind, d);
|
|
194
|
+
for (const m of CATALOG_MODULES) {
|
|
195
|
+
if (!m.catalog.participates)
|
|
196
|
+
continue;
|
|
197
|
+
map.set(m.catalog.refKind, catalogMetaOf(m.catalog));
|
|
198
|
+
}
|
|
199
|
+
return map;
|
|
200
|
+
})();
|
|
201
|
+
/** Catalog kinds for a barrel root, ordered by renderOrder. */
|
|
202
|
+
export function catalogKindsForRoot(root) {
|
|
203
|
+
const want = root === "org" ? "org" : "app";
|
|
204
|
+
return [...CATALOG_META_BY_REF_KIND.values()]
|
|
205
|
+
.filter((m) => m.catalogRoot === want)
|
|
206
|
+
.sort((a, b) => a.renderOrder - b.renderOrder || a.refKind.localeCompare(b.refKind));
|
|
207
|
+
}
|
|
208
|
+
/** Bag property name for a CatalogRef.__kind, or undefined if unknown. */
|
|
209
|
+
export function catalogBagForRefKind(refKind) {
|
|
210
|
+
return CATALOG_META_BY_REF_KIND.get(refKind)?.catalogBag;
|
|
211
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KIND_MODULES assembly — the only place that imports concrete entity
|
|
3
|
+
* modules. Engine code imports derived views from {@link ./index.js}.
|
|
4
|
+
*/
|
|
5
|
+
import type { EntityKindModule } from "./types.js";
|
|
6
|
+
/** Full kind graph: managed resources + data-facet / org-identity kinds. */
|
|
7
|
+
export declare const KIND_MODULES: readonly EntityKindModule[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KIND_MODULES assembly — the only place that imports concrete entity
|
|
3
|
+
* modules. Engine code imports derived views from {@link ./index.js}.
|
|
4
|
+
*/
|
|
5
|
+
import { accessPolicyModule } from "../entities/access-policy/module.js";
|
|
6
|
+
import { agentModule } from "../entities/agent/module.js";
|
|
7
|
+
import { agentToolModule } from "../entities/agent-tool/module.js";
|
|
8
|
+
import { appModule } from "../entities/app/module.js";
|
|
9
|
+
import { automationModule } from "../entities/automation/module.js";
|
|
10
|
+
import { elementModule } from "../entities/element/module.js";
|
|
11
|
+
import { fieldModule } from "../entities/field/module.js";
|
|
12
|
+
import { fileReaderModule } from "../entities/file-reader/module.js";
|
|
13
|
+
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, groupModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
14
|
+
import { searchTableModule } from "../entities/search-table/module.js";
|
|
15
|
+
import { skillModule } from "../entities/skill/module.js";
|
|
16
|
+
import { skillToolModule } from "../entities/skill-tool/module.js";
|
|
17
|
+
import { tableModule } from "../entities/table/module.js";
|
|
18
|
+
import { managedViewOrderModule, viewModule } from "../entities/view/module.js";
|
|
19
|
+
/** Full kind graph: managed resources + data-facet / org-identity kinds. */
|
|
20
|
+
export const KIND_MODULES = [
|
|
21
|
+
appModule,
|
|
22
|
+
elementModule,
|
|
23
|
+
fieldModule,
|
|
24
|
+
accessPolicyModule,
|
|
25
|
+
agentModule,
|
|
26
|
+
agentToolModule,
|
|
27
|
+
automationModule,
|
|
28
|
+
fileReaderModule,
|
|
29
|
+
viewModule,
|
|
30
|
+
managedViewOrderModule,
|
|
31
|
+
skillModule,
|
|
32
|
+
skillToolModule,
|
|
33
|
+
searchTableModule,
|
|
34
|
+
tableModule,
|
|
35
|
+
cloudLinkModule,
|
|
36
|
+
categoryModule,
|
|
37
|
+
connectorModule,
|
|
38
|
+
...aiProviderModules,
|
|
39
|
+
groupModule,
|
|
40
|
+
roleModule,
|
|
41
|
+
userModule,
|
|
42
|
+
];
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The entity-kind graph: every kind is described by facets — some required
|
|
3
|
+
* (stream, authoring, parentage, resource), some optional (data, lifecycle,
|
|
4
|
+
* canvas, catalog). Assembled in {@link ./modules.js}; engine imports derived
|
|
5
|
+
* views from {@link ./index.js} and must not import `entities/` directly.
|
|
6
|
+
*
|
|
7
|
+
* See docs/design/entity-module-structure.md.
|
|
8
|
+
*/
|
|
9
|
+
import type { DeployableEntity } from "../engine/entity.js";
|
|
10
|
+
import type { FromTfContext } from "../engine/pull/context.js";
|
|
11
|
+
import type { TfBlock } from "../engine/tf/index.js";
|
|
12
|
+
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-tool" | "automation" | "file-reader" | "skill" | "skill-tool" | "view" | "managed-view-order" | "search-table" | "table" | "cloud-link" | "category" | "connector" | "ai-provider-anthropic" | "ai-provider-bedrock" | "ai-provider-custom" | "ai-provider-deepgram" | "ai-provider-elevenlab" | "ai-provider-gemini" | "ai-provider-openai" | "ai-provider-snowflake" | "ai-provider-xai" | "ai-provider-managed" | "group" | "role" | "user";
|
|
13
|
+
/** @deprecated Use {@link KindId}. */
|
|
14
|
+
export type EntityKindId = KindId;
|
|
15
|
+
export type StreamFacet = {
|
|
16
|
+
readonly role: "streamRoot";
|
|
17
|
+
readonly exportVerb: "apps" | "org" | "elements";
|
|
18
|
+
} | {
|
|
19
|
+
readonly role: "streamMember";
|
|
20
|
+
} | {
|
|
21
|
+
readonly role: "streamReported";
|
|
22
|
+
}
|
|
23
|
+
/** Appears in `ei org export` as data blocks (identity kinds). */
|
|
24
|
+
| {
|
|
25
|
+
readonly role: "orgExport";
|
|
26
|
+
};
|
|
27
|
+
export type AuthoringFacet = {
|
|
28
|
+
readonly unit: "ownFile";
|
|
29
|
+
/** Directory bag under the parent (e.g. "agents") or org-root bag ("apps"). */
|
|
30
|
+
readonly bag: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly unit: "inline";
|
|
33
|
+
/** Logical bag name inside the parent authoring file (e.g. "fields"). */
|
|
34
|
+
readonly bag: string;
|
|
35
|
+
} | {
|
|
36
|
+
/** No per-instance authoring file (org identity / lookup-only kinds today). */
|
|
37
|
+
readonly unit: "none";
|
|
38
|
+
};
|
|
39
|
+
export interface ParentEdge {
|
|
40
|
+
readonly parent: KindId;
|
|
41
|
+
readonly child: KindId;
|
|
42
|
+
}
|
|
43
|
+
/** Parentage facet: who may own whom (multi-parent OK). */
|
|
44
|
+
export type ParentageFacet = readonly ParentEdge[];
|
|
45
|
+
export interface SubTypeRow {
|
|
46
|
+
readonly key: string;
|
|
47
|
+
readonly resourceType: string;
|
|
48
|
+
readonly implemented: boolean;
|
|
49
|
+
readonly canvas?: {
|
|
50
|
+
readonly label: string;
|
|
51
|
+
readonly glyph?: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface CompositeMember {
|
|
55
|
+
readonly role: string;
|
|
56
|
+
readonly resourceType: string;
|
|
57
|
+
readonly implemented: boolean;
|
|
58
|
+
}
|
|
59
|
+
export type ResourceFacet = {
|
|
60
|
+
readonly shape: "single";
|
|
61
|
+
readonly resourceType: string;
|
|
62
|
+
readonly adoptable: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
readonly shape: "subTypes";
|
|
65
|
+
readonly rows: readonly SubTypeRow[];
|
|
66
|
+
/** When false, no row is adoptable even if implemented (rare). Default true. */
|
|
67
|
+
readonly adoptable?: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
readonly shape: "composite";
|
|
70
|
+
readonly members: readonly CompositeMember[];
|
|
71
|
+
readonly adoptable: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
/** Authoring/parentage graph node with no distinct terraform resource types yet. */
|
|
74
|
+
readonly shape: "none";
|
|
75
|
+
};
|
|
76
|
+
/** How a resource type belonging to this kind participates in stream partition. */
|
|
77
|
+
export type StreamMatch = "extract" | "family" | "reported";
|
|
78
|
+
/** Catalog kinds used by org identity data facets. */
|
|
79
|
+
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group" | "aiProvider";
|
|
80
|
+
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups" | "aiProviders";
|
|
81
|
+
/**
|
|
82
|
+
* Kind can be materialized as a data lookup / interface (not adopted), or
|
|
83
|
+
* {@link NO_DATA} when it does not participate.
|
|
84
|
+
*/
|
|
85
|
+
export type DataFacet = {
|
|
86
|
+
readonly participates: false;
|
|
87
|
+
} | {
|
|
88
|
+
readonly participates: true;
|
|
89
|
+
readonly lookupAttr: string;
|
|
90
|
+
readonly referencedByBuild: boolean;
|
|
91
|
+
readonly catalogKind?: DataFacetCatalogKind;
|
|
92
|
+
/** If set, pull org writes identities into org.ts under this property. */
|
|
93
|
+
readonly orgBag?: OrgIdentityBag;
|
|
94
|
+
/**
|
|
95
|
+
* Attribute that's a `data-attr` reference to this identity's owner
|
|
96
|
+
* (connector's `provider_id` → the owning `elementum_<type>_ai_provider`
|
|
97
|
+
* block) rather than a plain string — read as a TfExpr, not via
|
|
98
|
+
* `requireStringAttr`. A bag can span multiple resource types (10
|
|
99
|
+
* distinct `elementum_<type>_ai_provider` types share `orgBag:
|
|
100
|
+
* "aiProviders"`), so the referenced type isn't known until read.
|
|
101
|
+
*/
|
|
102
|
+
readonly providerRefAttr?: string;
|
|
103
|
+
};
|
|
104
|
+
/** Null-object data facet — kind is not a data lookup. */
|
|
105
|
+
export declare const NO_DATA: DataFacet;
|
|
106
|
+
/** Opaque view model the explorer shell renders — kind-specific shape. */
|
|
107
|
+
export type CanvasView = Record<string, unknown>;
|
|
108
|
+
export type CanvasComponentId = "appDetail" | "agentCard" | "automationCard" | "fieldCard" | "toolCard" | "orgIdentity" | "skillCard" | "generic";
|
|
109
|
+
export type CanvasFacet = {
|
|
110
|
+
readonly participates: false;
|
|
111
|
+
} | {
|
|
112
|
+
readonly participates: true;
|
|
113
|
+
readonly label: string;
|
|
114
|
+
readonly glyph?: string;
|
|
115
|
+
readonly component: CanvasComponentId;
|
|
116
|
+
/** Project a loaded def()/normalized instance into a plain view model. */
|
|
117
|
+
readonly toView?: (instance: unknown) => CanvasView;
|
|
118
|
+
};
|
|
119
|
+
/** Null-object canvas facet — kind is hidden from the explorer. */
|
|
120
|
+
export declare const NO_CANVAS: CanvasFacet;
|
|
121
|
+
/** Args for building a catalog ref from a loaded authoring module. */
|
|
122
|
+
export interface CatalogAuthoringArgs {
|
|
123
|
+
readonly refName: string;
|
|
124
|
+
/** Owning app/element refName (path parent). */
|
|
125
|
+
readonly parent: string;
|
|
126
|
+
readonly defaultExport: unknown;
|
|
127
|
+
/** Named exports from the authoring file (e.g. triggerParamNames). */
|
|
128
|
+
readonly namedExports: Record<string, unknown>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* How a kind contributes to generated catalogs, or {@link NO_CATALOG}.
|
|
132
|
+
* Engine catalog walkers call these hooks — no per-kind switches in engine.
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* Which catalog barrel root emits this kind's bag.
|
|
136
|
+
* `"app"` covers app + element catalogs; `"org"` is the org.ts / orgCatalog root.
|
|
137
|
+
*/
|
|
138
|
+
export type CatalogRoot = "app" | "org";
|
|
139
|
+
/** Args for {@link CatalogFacet}'s `renderEntry` (one bag key). */
|
|
140
|
+
export interface CatalogRenderArgs {
|
|
141
|
+
readonly ref: unknown;
|
|
142
|
+
/** Bag property key (usually `ref.refName`). */
|
|
143
|
+
readonly keyName: string;
|
|
144
|
+
/** Whitespace prefix for the entry's own key line (e.g. `" "`). */
|
|
145
|
+
readonly baseIndent: string;
|
|
146
|
+
}
|
|
147
|
+
/** Result of rendering one catalog bag entry. */
|
|
148
|
+
export interface CatalogRenderResult {
|
|
149
|
+
/** Source lines including the `key: factory(...),` line(s). */
|
|
150
|
+
readonly lines: readonly string[];
|
|
151
|
+
/**
|
|
152
|
+
* Extra factory imports beyond this kind's `factoryName`
|
|
153
|
+
* (e.g. `triggerParameterRef` nested under an automation).
|
|
154
|
+
*/
|
|
155
|
+
readonly extraFactories?: readonly string[];
|
|
156
|
+
}
|
|
157
|
+
export type CatalogFacet = {
|
|
158
|
+
readonly participates: false;
|
|
159
|
+
} | {
|
|
160
|
+
readonly participates: true;
|
|
161
|
+
/** `CatalogRef.__kind` string ("automation", "searchTable", …). */
|
|
162
|
+
readonly refKind: string;
|
|
163
|
+
/**
|
|
164
|
+
* Property name on the app/element/org catalog object ("automations",
|
|
165
|
+
* "searchTables"). May differ from `authoring.bag` (filesystem dir).
|
|
166
|
+
*/
|
|
167
|
+
readonly catalogBag: string;
|
|
168
|
+
/**
|
|
169
|
+
* Stable emission order in rendered catalogs (lower first). Replaces the
|
|
170
|
+
* hard-wired KIND_ORDER list in catalog/render.ts.
|
|
171
|
+
*/
|
|
172
|
+
readonly renderOrder: number;
|
|
173
|
+
/** Which barrel root includes this kind. */
|
|
174
|
+
readonly catalogRoot: CatalogRoot;
|
|
175
|
+
/**
|
|
176
|
+
* Factory import name in emitted catalogs. Defaults to `${refKind}Ref`
|
|
177
|
+
* when omitted (e.g. `agent` → `agentRef`).
|
|
178
|
+
*/
|
|
179
|
+
readonly factoryName?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Emit one bag entry's RHS. Kind-specific dialect lives here — not in
|
|
182
|
+
* `catalog/render.ts`.
|
|
183
|
+
*/
|
|
184
|
+
readonly renderEntry: (args: CatalogRenderArgs) => CatalogRenderResult;
|
|
185
|
+
/** Placeholder ref before the authoring file is imported (cross-ref stubs). */
|
|
186
|
+
readonly stubRef: (refName: string, parent: string) => unknown;
|
|
187
|
+
/**
|
|
188
|
+
* Build the catalog ref from a loaded module. Return undefined to skip
|
|
189
|
+
* (wrong kind / unloadable shape).
|
|
190
|
+
*/
|
|
191
|
+
readonly refFromAuthoring: (args: CatalogAuthoringArgs) => unknown | undefined;
|
|
192
|
+
};
|
|
193
|
+
/** Null-object catalog facet — kind does not appear in generated catalogs. */
|
|
194
|
+
export declare const NO_CATALOG: CatalogFacet;
|
|
195
|
+
export interface StreamExtractContext extends FromTfContext {
|
|
196
|
+
readonly appTfLabel: string;
|
|
197
|
+
readonly appRefName: string;
|
|
198
|
+
}
|
|
199
|
+
export interface OwnFileExtractResult {
|
|
200
|
+
readonly items: readonly unknown[];
|
|
201
|
+
readonly skipped: readonly string[];
|
|
202
|
+
readonly diagnostics: readonly string[];
|
|
203
|
+
}
|
|
204
|
+
export interface PrintedOwnFile {
|
|
205
|
+
readonly refName: string;
|
|
206
|
+
readonly source: string;
|
|
207
|
+
}
|
|
208
|
+
export interface PrintOwnFileOptions {
|
|
209
|
+
readonly appRefName: string;
|
|
210
|
+
readonly orgImportPath: string;
|
|
211
|
+
/**
|
|
212
|
+
* Set by `edk clone app --target-root` when the destination org differs
|
|
213
|
+
* from the source: org-identity references (connectors, cloud links, …)
|
|
214
|
+
* resolved against the SOURCE org's catalog are meaningless in the
|
|
215
|
+
* destination, so printers degrade them to a flagged TODO token instead of
|
|
216
|
+
* the resolved reference, for manual review — same pattern already used
|
|
217
|
+
* for a structurally-unresolved reference, just triggered unconditionally.
|
|
218
|
+
*/
|
|
219
|
+
readonly crossOrg?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* The destination org's connector compound keys (cross-org only), each
|
|
222
|
+
* `"<provider>.<model>"` — since both halves are deterministically derived
|
|
223
|
+
* from display names (`src/engine/tf/labels.ts`), a key present in both
|
|
224
|
+
* orgs means both orgs have that same provider/model pair. When set and
|
|
225
|
+
* the source's `connectorKey` is a member, printers use it directly
|
|
226
|
+
* instead of degrading to a TODO.
|
|
227
|
+
*/
|
|
228
|
+
readonly destinationConnectorKeys?: ReadonlySet<string>;
|
|
229
|
+
/**
|
|
230
|
+
* A destination-org connector compound key (`"<provider>.<model>"`) the
|
|
231
|
+
* caller already confirmed — `edk clone app --target-root` prompts the
|
|
232
|
+
* user interactively when a connector (or the total absence of one) has
|
|
233
|
+
* no automatic match, instead of always degrading to a `TODO_CONNECTOR`
|
|
234
|
+
* placeholder. Consumed today only by the agent printer; harmless
|
|
235
|
+
* (ignored) for other own-file kinds.
|
|
236
|
+
*/
|
|
237
|
+
readonly connectorKeyOverride?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Name → refName for every app already on disk in this workspace
|
|
240
|
+
* (board issue #40). A tool/skillAccess `aspect`/foreign-app reference
|
|
241
|
+
* whose name is a key here has that dependency actually pulled locally —
|
|
242
|
+
* printers use `catalog.<refName>` instead of the always-safe
|
|
243
|
+
* `{ __kind: "app", refName: name, name }` literal stub. Absent (or a
|
|
244
|
+
* miss) falls back to the stub exactly as before.
|
|
245
|
+
*/
|
|
246
|
+
readonly foreignAppRefNames?: ReadonlyMap<string, string>;
|
|
247
|
+
/**
|
|
248
|
+
* Same as {@link foreignAppRefNames}, keyed for elements (board issue
|
|
249
|
+
* #42) — a `foreignElement` aspect target whose name is a key here
|
|
250
|
+
* prints `catalog.<refName>` instead of the literal stub.
|
|
251
|
+
*/
|
|
252
|
+
readonly foreignElementRefNames?: ReadonlyMap<string, string>;
|
|
253
|
+
}
|
|
254
|
+
export interface BuildFieldMetadata {
|
|
255
|
+
readonly name: string;
|
|
256
|
+
readonly fieldType: string;
|
|
257
|
+
readonly options?: readonly string[];
|
|
258
|
+
readonly tags?: readonly string[];
|
|
259
|
+
}
|
|
260
|
+
export interface BuildChildContext {
|
|
261
|
+
readonly appRefName: string;
|
|
262
|
+
readonly appTfLabel: string;
|
|
263
|
+
readonly orgRefs: unknown;
|
|
264
|
+
readonly diagnostics: string[];
|
|
265
|
+
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
266
|
+
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
267
|
+
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
268
|
+
}
|
|
269
|
+
/** Result of extracting a stream-root kind (app, element) from a partitioned export. */
|
|
270
|
+
export interface StreamRootExtractResult {
|
|
271
|
+
/** Normalized instance; must expose `refName` for path / print wiring. */
|
|
272
|
+
readonly instance: {
|
|
273
|
+
readonly refName: string;
|
|
274
|
+
};
|
|
275
|
+
readonly cloudLinkHandle?: string;
|
|
276
|
+
}
|
|
277
|
+
export interface ToTfResult {
|
|
278
|
+
readonly blocks: readonly TfBlock[];
|
|
279
|
+
/** Present for app roots — field addresses for locals / catalog bookkeeping. */
|
|
280
|
+
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
281
|
+
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
282
|
+
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
283
|
+
/**
|
|
284
|
+
* Own-file children only — the terraform address ("type.label") of this
|
|
285
|
+
* child's own entry-point resource (e.g. `elementum_automation.x`,
|
|
286
|
+
* `elementum_agent.x`): the one thing every other block this child emits
|
|
287
|
+
* already chains back to via a real reference (a trigger's `automation =
|
|
288
|
+
* ...`, a tool's owning agent, …). When present, build.ts attaches a
|
|
289
|
+
* `depends_on` on just this one resource covering every field on the app,
|
|
290
|
+
* so the whole child transitively waits for all fields without needing to
|
|
291
|
+
* track which of its resources actually reference which field.
|
|
292
|
+
*/
|
|
293
|
+
readonly address?: string;
|
|
294
|
+
}
|
|
295
|
+
export type LifecycleFacet = {
|
|
296
|
+
readonly participates: false;
|
|
297
|
+
} | {
|
|
298
|
+
readonly participates: true;
|
|
299
|
+
/**
|
|
300
|
+
* Classify a terraform resource type owned by this kind.
|
|
301
|
+
* Default (when omitted): implemented types → "extract", other known → "reported".
|
|
302
|
+
*/
|
|
303
|
+
readonly matchResourceType?: (type: string) => StreamMatch | false;
|
|
304
|
+
/**
|
|
305
|
+
* Stream-root kinds: extract the root instance (+ inline children the root owns)
|
|
306
|
+
* from the partitioned export stream.
|
|
307
|
+
*/
|
|
308
|
+
readonly extractStreamRoot?: (stream: StreamPartition, ctx: FromTfContext) => StreamRootExtractResult;
|
|
309
|
+
/**
|
|
310
|
+
* Own-file stream members: extract instances from this kind's blocks
|
|
311
|
+
* (plus the full partitioned stream for cross-block grouping).
|
|
312
|
+
*/
|
|
313
|
+
readonly extractOwnFile?: (ownBlocks: readonly TfBlock[], stream: StreamPartition, ctx: StreamExtractContext) => OwnFileExtractResult;
|
|
314
|
+
/** Print one extracted own-file instance to TypeScript source. */
|
|
315
|
+
readonly printOwnFile?: (item: unknown, opts: PrintOwnFileOptions) => PrintedOwnFile;
|
|
316
|
+
/** Build: emit HCL for one discovered DeployableEntity. */
|
|
317
|
+
readonly toTf?: (entity: DeployableEntity, ctx: BuildChildContext) => ToTfResult;
|
|
318
|
+
/** Optional locals contribution after a root/own-file emit. */
|
|
319
|
+
readonly appendLocals?: (localsAttrs: Record<string, unknown>, ctx: {
|
|
320
|
+
readonly appTfLabel: string;
|
|
321
|
+
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
322
|
+
}) => void;
|
|
323
|
+
};
|
|
324
|
+
/** Null-object lifecycle facet — kind has no pull/build TF hooks. */
|
|
325
|
+
export declare const NO_LIFECYCLE: LifecycleFacet;
|
|
326
|
+
/** Partitioned resource blocks from one apps-export stream, keyed by kind id. */
|
|
327
|
+
export interface StreamPartition {
|
|
328
|
+
readonly byKind: ReadonlyMap<KindId, readonly TfBlock[]>;
|
|
329
|
+
readonly familyByKind: ReadonlyMap<KindId, readonly TfBlock[]>;
|
|
330
|
+
readonly reported: readonly string[];
|
|
331
|
+
readonly unknown: readonly string[];
|
|
332
|
+
readonly allResources: readonly TfBlock[];
|
|
333
|
+
readonly allBlocks: readonly TfBlock[];
|
|
334
|
+
}
|
|
335
|
+
export interface EntityKindModule {
|
|
336
|
+
readonly kind: KindId;
|
|
337
|
+
/** Export participation. */
|
|
338
|
+
readonly stream: StreamFacet;
|
|
339
|
+
/** `.ts` layout. */
|
|
340
|
+
readonly authoring: AuthoringFacet;
|
|
341
|
+
/** Ownership edges. */
|
|
342
|
+
readonly parents: ParentageFacet;
|
|
343
|
+
/** Terraform wire shape. */
|
|
344
|
+
readonly resource: ResourceFacet;
|
|
345
|
+
/** Lookup / ref-only materialization — or {@link NO_DATA}. */
|
|
346
|
+
readonly data: DataFacet;
|
|
347
|
+
/** Pull extract + build emit hooks — or {@link NO_LIFECYCLE}. */
|
|
348
|
+
readonly lifecycle: LifecycleFacet;
|
|
349
|
+
/** Workspace explorer presentation — or {@link NO_CANVAS}. */
|
|
350
|
+
readonly canvas: CanvasFacet;
|
|
351
|
+
/** Generated catalog participation — or {@link NO_CATALOG}. */
|
|
352
|
+
readonly catalog: CatalogFacet;
|
|
353
|
+
/** Entity-specific equivalences used only by live build-vs-export comparison. */
|
|
354
|
+
readonly roundtrip?: {
|
|
355
|
+
readonly referenceAliases: readonly {
|
|
356
|
+
readonly blockType: string;
|
|
357
|
+
readonly attribute: string;
|
|
358
|
+
readonly fromType: string;
|
|
359
|
+
readonly toType: string;
|
|
360
|
+
}[];
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
export declare function implementedResourceTypes(resource: ResourceFacet): readonly string[];
|
|
364
|
+
export declare function knownResourceTypes(resource: ResourceFacet): readonly string[];
|
|
365
|
+
export declare function isResourceAdoptable(resource: ResourceFacet): boolean;
|
|
366
|
+
export declare function defaultMatchResourceType(resource: ResourceFacet, type: string): StreamMatch | false;
|
|
367
|
+
export declare function matchType(module: EntityKindModule, type: string): StreamMatch | false;
|
|
368
|
+
/**
|
|
369
|
+
* Whether this kind participates in managed resource adopt / build-vs-export resource
|
|
370
|
+
* sets. Data-facet-only kinds (`authoring: none`, `orgExport`) are excluded;
|
|
371
|
+
* their types enter build-vs-export via `data.referencedByBuild` instead.
|
|
372
|
+
*/
|
|
373
|
+
export declare function isTfLive(module: EntityKindModule): boolean;
|
|
374
|
+
/** Single resource type string for data-facet / single-shape kinds. */
|
|
375
|
+
export declare function singleResourceType(module: EntityKindModule): string | undefined;
|