@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.0-preview.11
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 +408 -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/factories.d.ts +189 -0
- package/dist-sdk/src/catalog/factories.js +202 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +462 -0
- package/dist-sdk/src/catalog/index.d.ts +11 -0
- package/dist-sdk/src/catalog/index.js +11 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +211 -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 +36 -0
- package/dist-sdk/src/catalog/render.js +176 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +62 -0
- package/dist-sdk/src/catalog/types.d.ts +158 -0
- package/dist-sdk/src/catalog/types.js +83 -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 +93 -0
- package/dist-sdk/src/core/system-fields.js +151 -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 +36 -0
- package/dist-sdk/src/core/types/ai-provider.js +32 -0
- package/dist-sdk/src/core/types/app.d.ts +838 -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 +49 -0
- package/dist-sdk/src/engine/build/context.js +6 -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 +23 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +44 -0
- package/dist-sdk/src/engine/pull/org.js +104 -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 +31 -0
- package/dist-sdk/src/engine/tf/labels.js +125 -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/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 +18 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +177 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +50 -0
- package/dist-sdk/src/entities/agent/from-tf.js +169 -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 +116 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +136 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +205 -0
- package/dist-sdk/src/entities/agent/tools.js +199 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +63 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +169 -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 +38 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +164 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +42 -0
- package/dist-sdk/src/entities/agent-tool/types.js +70 -0
- package/dist-sdk/src/entities/app/build.d.ts +318 -0
- package/dist-sdk/src/entities/app/build.js +325 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +165 -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 +180 -0
- package/dist-sdk/src/entities/app/index.d.ts +11 -0
- package/dist-sdk/src/entities/app/index.js +10 -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 +59 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +28 -0
- package/dist-sdk/src/entities/app/to-tf.js +183 -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 +215 -0
- package/dist-sdk/src/entities/automation/build.js +424 -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 +135 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +40 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1040 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +81 -0
- package/dist-sdk/src/entities/automation/filter.js +146 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +36 -0
- package/dist-sdk/src/entities/automation/from-tf.js +252 -0
- package/dist-sdk/src/entities/automation/index.d.ts +18 -0
- package/dist-sdk/src/entities/automation/index.js +21 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +153 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +66 -0
- package/dist-sdk/src/entities/automation/operators.js +43 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +62 -0
- package/dist-sdk/src/entities/automation/script-code.js +366 -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 +535 -0
- package/dist-sdk/src/entities/automation/tasks.js +697 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +38 -0
- package/dist-sdk/src/entities/automation/to-tf.js +266 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +197 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +53 -0
- package/dist-sdk/src/entities/automation/types.js +101 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +76 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.js +190 -0
- package/dist-sdk/src/entities/element/build.d.ts +108 -0
- package/dist-sdk/src/entities/element/build.js +109 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +155 -0
- package/dist-sdk/src/entities/element/index.d.ts +9 -0
- package/dist-sdk/src/entities/element/index.js +9 -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 +63 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +151 -0
- package/dist-sdk/src/entities/field/build.d.ts +69 -0
- package/dist-sdk/src/entities/field/build.js +74 -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 +170 -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 +29 -0
- package/dist-sdk/src/entities/field/from-tf.js +73 -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 +49 -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 +55 -0
- package/dist-sdk/src/entities/field/to-tf.js +97 -0
- package/dist-sdk/src/entities/field/types.d.ts +27 -0
- package/dist-sdk/src/entities/field/types.js +46 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +124 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +5 -0
- package/dist-sdk/src/entities/file-reader/index.js +5 -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/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 +5 -0
- package/dist-sdk/src/entities/org/connector.js +37 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +31 -0
- package/dist-sdk/src/entities/org/index.d.ts +10 -0
- package/dist-sdk/src/entities/org/index.js +10 -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 +21 -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 +242 -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/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 +49 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +48 -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 +20 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +96 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +95 -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 +106 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +58 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +71 -0
- package/dist-sdk/src/entities/skill/tools.js +88 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +47 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +121 -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 +32 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +107 -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 +25 -0
- package/dist-sdk/src/entities/view/from-tf.js +233 -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 +63 -0
- package/dist-sdk/src/entities/view/to-tf.js +156 -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 +14 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +37 -0
- package/dist-sdk/src/graph/index.d.ts +83 -0
- package/dist-sdk/src/graph/index.js +207 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +37 -0
- package/dist-sdk/src/graph/types.d.ts +301 -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 +173 -8
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/** The automation entity's registry entry (see src/graph/). */
|
|
2
|
+
import { isTfExpr, sanitizeName, tfLabelToTsLabel } from "../../engine/tf/index.js";
|
|
3
|
+
import { NO_DATA, } from "../../graph/types.js";
|
|
4
|
+
import { renderAutomationCatalogEntry } from "./catalog-render.js";
|
|
5
|
+
import { printAutomationV2 } from "./deserializer/print-automation.js";
|
|
6
|
+
import { automationFromTf } from "./from-tf.js";
|
|
7
|
+
import { automationToTf } from "./to-tf.js";
|
|
8
|
+
import { ALL_AUTOMATION_SUB_TYPES, AUTOMATION_RESOURCE_TYPE, WORKFLOW_PUBLISH_RESOURCE_TYPE, } from "./types.js";
|
|
9
|
+
function isConfigured(value) {
|
|
10
|
+
return (typeof value === "object" &&
|
|
11
|
+
value !== null &&
|
|
12
|
+
typeof value.ref === "function" &&
|
|
13
|
+
typeof value.def === "function");
|
|
14
|
+
}
|
|
15
|
+
function automationStubRef(refName, parent) {
|
|
16
|
+
return { __kind: "automation", refName, name: refName, parent, trigger: {}, outputs: {} };
|
|
17
|
+
}
|
|
18
|
+
function automationRefFromAuthoring(args) {
|
|
19
|
+
const { refName, parent, defaultExport, namedExports } = args;
|
|
20
|
+
if (isConfigured(defaultExport)) {
|
|
21
|
+
const catalogRef = defaultExport.ref(refName);
|
|
22
|
+
if (catalogRef.__kind !== "automation")
|
|
23
|
+
return undefined;
|
|
24
|
+
return catalogRef;
|
|
25
|
+
}
|
|
26
|
+
if (typeof defaultExport !== "object" ||
|
|
27
|
+
defaultExport === null ||
|
|
28
|
+
defaultExport.kind !== "automation") {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const entity = defaultExport;
|
|
32
|
+
const entityRefName = entity.refName === "" ? refName : entity.refName;
|
|
33
|
+
const entityParent = entity.parent === "" ? parent : entity.parent;
|
|
34
|
+
const maybeRefName = entity.ref?.name;
|
|
35
|
+
const payloadName = entity.payload?.name;
|
|
36
|
+
const name = typeof maybeRefName === "string"
|
|
37
|
+
? maybeRefName
|
|
38
|
+
: typeof payloadName === "string"
|
|
39
|
+
? payloadName
|
|
40
|
+
: entityRefName;
|
|
41
|
+
const triggerParamNames = Array.isArray(namedExports.triggerParamNames)
|
|
42
|
+
? namedExports.triggerParamNames
|
|
43
|
+
: [];
|
|
44
|
+
const outputPropertyNames = Array.isArray(namedExports.outputPropertyNames)
|
|
45
|
+
? namedExports.outputPropertyNames
|
|
46
|
+
: [];
|
|
47
|
+
const trigger = triggerParamNames.length > 0
|
|
48
|
+
? Object.fromEntries(triggerParamNames.map((n) => [n, { __kind: "triggerParameter", refName: n, name: n, parent: entityRefName }]))
|
|
49
|
+
: undefined;
|
|
50
|
+
const outputs = outputPropertyNames.length > 0
|
|
51
|
+
? Object.fromEntries(outputPropertyNames.map((n) => [n, { __kind: "outputProperty", refName: n, name: n, parent: entityRefName }]))
|
|
52
|
+
: undefined;
|
|
53
|
+
return {
|
|
54
|
+
__kind: "automation",
|
|
55
|
+
refName: entityRefName,
|
|
56
|
+
name,
|
|
57
|
+
parent: entityParent,
|
|
58
|
+
...(trigger !== undefined ? { trigger } : {}),
|
|
59
|
+
...(outputs !== undefined ? { outputs } : {}),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function bareRefLabel(v, refType) {
|
|
63
|
+
return v !== undefined && isTfExpr(v) && v.$expr === "resource-attr" && v.type === refType ? v.label : undefined;
|
|
64
|
+
}
|
|
65
|
+
function extractAutomations(ownBlocks, stream, ctx) {
|
|
66
|
+
const familyBlocks = stream.familyByKind.get("automation") ?? [];
|
|
67
|
+
const taskFamilyBlocks = familyBlocks.filter((b) => b.type?.endsWith("_task"));
|
|
68
|
+
const items = [];
|
|
69
|
+
const skipped = [];
|
|
70
|
+
const diagnostics = [];
|
|
71
|
+
for (const autoBlock of ownBlocks) {
|
|
72
|
+
const autoLabel = autoBlock.label ?? "";
|
|
73
|
+
const trigger = familyBlocks.find((b) => b.type?.endsWith("_trigger") &&
|
|
74
|
+
bareRefLabel(b.attrs["automation"], AUTOMATION_RESOURCE_TYPE) === autoLabel);
|
|
75
|
+
const publish = familyBlocks.find((b) => b.type === WORKFLOW_PUBLISH_RESOURCE_TYPE &&
|
|
76
|
+
bareRefLabel(b.attrs["automation"], AUTOMATION_RESOURCE_TYPE) === autoLabel);
|
|
77
|
+
const group = [
|
|
78
|
+
autoBlock,
|
|
79
|
+
...(trigger !== undefined ? [trigger] : []),
|
|
80
|
+
...taskFamilyBlocks,
|
|
81
|
+
...(publish !== undefined ? [publish] : []),
|
|
82
|
+
];
|
|
83
|
+
const extractDiagnostics = [];
|
|
84
|
+
const { automation, skippedReason } = automationFromTf(group, {
|
|
85
|
+
ownerHandle: ctx.appRefName,
|
|
86
|
+
diagnostics: extractDiagnostics,
|
|
87
|
+
});
|
|
88
|
+
diagnostics.push(...extractDiagnostics);
|
|
89
|
+
if (automation !== undefined)
|
|
90
|
+
items.push(automation);
|
|
91
|
+
else if (skippedReason !== undefined) {
|
|
92
|
+
skipped.push(`${AUTOMATION_RESOURCE_TYPE}.${autoLabel}`);
|
|
93
|
+
diagnostics.push(skippedReason);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return { items, skipped, diagnostics };
|
|
97
|
+
}
|
|
98
|
+
export const automationModule = {
|
|
99
|
+
kind: "automation",
|
|
100
|
+
stream: { role: "streamMember" },
|
|
101
|
+
authoring: { unit: "ownFile", bag: "automations" },
|
|
102
|
+
parents: [
|
|
103
|
+
{ parent: "app", child: "automation" },
|
|
104
|
+
{ parent: "element", child: "automation" },
|
|
105
|
+
],
|
|
106
|
+
resource: {
|
|
107
|
+
shape: "composite",
|
|
108
|
+
adoptable: true,
|
|
109
|
+
members: [
|
|
110
|
+
{ role: "skeleton", resourceType: AUTOMATION_RESOURCE_TYPE, implemented: true },
|
|
111
|
+
{ role: "publish", resourceType: WORKFLOW_PUBLISH_RESOURCE_TYPE, implemented: true },
|
|
112
|
+
...ALL_AUTOMATION_SUB_TYPES.map((t) => ({
|
|
113
|
+
role: t.resourceType.endsWith("_trigger") ? "trigger" : "task",
|
|
114
|
+
resourceType: t.resourceType,
|
|
115
|
+
implemented: t.implemented === true,
|
|
116
|
+
})),
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
data: NO_DATA,
|
|
120
|
+
canvas: {
|
|
121
|
+
participates: true,
|
|
122
|
+
label: "Automations",
|
|
123
|
+
glyph: "⚡",
|
|
124
|
+
component: "automationCard",
|
|
125
|
+
toView: (instance) => {
|
|
126
|
+
const a = instance;
|
|
127
|
+
return { name: a.name, status: a.status, taskCount: a.tasks.length };
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
lifecycle: {
|
|
131
|
+
participates: true,
|
|
132
|
+
extractOwnFile: extractAutomations,
|
|
133
|
+
printOwnFile: (item) => {
|
|
134
|
+
const automation = item;
|
|
135
|
+
const refName = tfLabelToTsLabel(sanitizeName(automation.name));
|
|
136
|
+
return { refName, source: printAutomationV2(automation, { refName }) };
|
|
137
|
+
},
|
|
138
|
+
toTf: (entity, ctx) => automationToTf(entity, {
|
|
139
|
+
appTfLabel: ctx.appTfLabel,
|
|
140
|
+
diagnostics: ctx.diagnostics,
|
|
141
|
+
}),
|
|
142
|
+
},
|
|
143
|
+
catalog: {
|
|
144
|
+
participates: true,
|
|
145
|
+
refKind: "automation",
|
|
146
|
+
catalogBag: "automations",
|
|
147
|
+
renderOrder: 10,
|
|
148
|
+
catalogRoot: "app",
|
|
149
|
+
renderEntry: renderAutomationCatalogEntry,
|
|
150
|
+
stubRef: automationStubRef,
|
|
151
|
+
refFromAuthoring: automationRefFromAuthoring,
|
|
152
|
+
},
|
|
153
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2 operator tasks — `forEach` / `switch` / `forkJoin`. Unlike leaf tasks these
|
|
3
|
+
* carry **nested child task lists** (`operatorChildren`), which the builder emits
|
|
4
|
+
* as the wire task's `children`. The typed `ctx` (the forEach item proxy, the
|
|
5
|
+
* inner context) is reused from `core/context` — same as v1.
|
|
6
|
+
*
|
|
7
|
+
* Child tasks are `{ name, def }` pairs; each `def` is any task factory's output
|
|
8
|
+
* (including nested operators). The callbacks receive an inner `ctx` so child
|
|
9
|
+
* tasks can reference the trigger and outer task outputs.
|
|
10
|
+
*/
|
|
11
|
+
import type { Context, ForEachItem } from "../shared/context.js";
|
|
12
|
+
import type { Ref } from "../shared/ref.js";
|
|
13
|
+
import { type ChildTask, type TaskDef } from "./build.js";
|
|
14
|
+
import type { Filter } from "./filter.js";
|
|
15
|
+
type Empty = Record<string, never>;
|
|
16
|
+
/**
|
|
17
|
+
* Convenience: name a child task. Equivalent to `{ name, def }`.
|
|
18
|
+
*
|
|
19
|
+
* `displayName` is only needed when adopting a platform-authored task whose
|
|
20
|
+
* wire `name` differs from its `refKey` (e.g. a UI-built "For Each" task,
|
|
21
|
+
* whose slugged refKey is "For_Each"); omit it otherwise.
|
|
22
|
+
*/
|
|
23
|
+
export declare function childTask(name: string, def: TaskDef<unknown>, displayName?: string): ChildTask;
|
|
24
|
+
export interface ForEachConfig<TTrigger, TTasks extends Record<string, unknown>, TItem> {
|
|
25
|
+
/** The collection to iterate (e.g. `ctx.tasks.find.records`). */
|
|
26
|
+
readonly collection: Ref<readonly TItem[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Child tasks executed per item. `item` is a ref to the whole item with typed
|
|
29
|
+
* field drilling (`item.fieldName`); `innerCtx` exposes the trigger + outer tasks.
|
|
30
|
+
*/
|
|
31
|
+
readonly tasks: (item: ForEachItem<TItem>, innerCtx: Context<TTrigger, TTasks>) => readonly ChildTask[];
|
|
32
|
+
}
|
|
33
|
+
export declare function forEach<TTrigger, TTasks extends Record<string, unknown>, TItem = unknown>(_ctx: Context<TTrigger, TTasks>, config: ForEachConfig<TTrigger, TTasks, TItem>): TaskDef<Empty>;
|
|
34
|
+
export interface SwitchCase<TTrigger, TTasks extends Record<string, unknown>> {
|
|
35
|
+
readonly label: string;
|
|
36
|
+
/**
|
|
37
|
+
* Condition for this case, built with the `filter.*` DSL
|
|
38
|
+
* (`@elementumai/edk/automations`). Omit for a condition-free fallthrough
|
|
39
|
+
* case (e.g. a labeled "otherwise"/"default" branch) — it matches whenever
|
|
40
|
+
* no earlier case matches.
|
|
41
|
+
*
|
|
42
|
+
* Switch conditions have no row in scope, so every `filter.*` comparison
|
|
43
|
+
* (`eq`/`gt`/`like`/`isNull`/`between`/…) accepts a task/trigger `Ref` in
|
|
44
|
+
* place of a field — e.g. `filter.lt(ctx.tasks.search.totalCount, 1)` —
|
|
45
|
+
* in addition to the usual `FieldRef` token.
|
|
46
|
+
*/
|
|
47
|
+
readonly condition?: Filter;
|
|
48
|
+
readonly tasks: (innerCtx: Context<TTrigger, TTasks>) => readonly ChildTask[];
|
|
49
|
+
}
|
|
50
|
+
export interface SwitchConfig<TTrigger, TTasks extends Record<string, unknown>> {
|
|
51
|
+
/** Ordered cases — first match wins. */
|
|
52
|
+
readonly cases: readonly SwitchCase<TTrigger, TTasks>[];
|
|
53
|
+
/** Tasks when no case matches (the default/else branch). */
|
|
54
|
+
readonly defaultTasks?: (innerCtx: Context<TTrigger, TTasks>) => readonly ChildTask[];
|
|
55
|
+
}
|
|
56
|
+
export declare function switchTask<TTrigger, TTasks extends Record<string, unknown>>(_ctx: Context<TTrigger, TTasks>, config: SwitchConfig<TTrigger, TTasks>): TaskDef<Empty>;
|
|
57
|
+
export interface ForkJoinBranch<TTrigger, TTasks extends Record<string, unknown>> {
|
|
58
|
+
readonly label: string;
|
|
59
|
+
readonly tasks: (innerCtx: Context<TTrigger, TTasks>) => readonly ChildTask[];
|
|
60
|
+
}
|
|
61
|
+
export interface ForkJoinConfig<TTrigger, TTasks extends Record<string, unknown>> {
|
|
62
|
+
/** Parallel branches, each executed concurrently. */
|
|
63
|
+
readonly branches: readonly ForkJoinBranch<TTrigger, TTasks>[];
|
|
64
|
+
}
|
|
65
|
+
export declare function forkJoin<TTrigger, TTasks extends Record<string, unknown>>(_ctx: Context<TTrigger, TTasks>, config: ForkJoinConfig<TTrigger, TTasks>): TaskDef<Empty>;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { buildContext, createForEachItemProxy } from "../shared/context.js";
|
|
2
|
+
import { FOR_EACH_PLACEHOLDER } from "./build.js";
|
|
3
|
+
/**
|
|
4
|
+
* Convenience: name a child task. Equivalent to `{ name, def }`.
|
|
5
|
+
*
|
|
6
|
+
* `displayName` is only needed when adopting a platform-authored task whose
|
|
7
|
+
* wire `name` differs from its `refKey` (e.g. a UI-built "For Each" task,
|
|
8
|
+
* whose slugged refKey is "For_Each"); omit it otherwise.
|
|
9
|
+
*/
|
|
10
|
+
export function childTask(name, def, displayName) {
|
|
11
|
+
return { name, def, displayName };
|
|
12
|
+
}
|
|
13
|
+
export function forEach(_ctx, config) {
|
|
14
|
+
const item = createForEachItemProxy(FOR_EACH_PLACEHOLDER);
|
|
15
|
+
const innerCtx = buildContext([]);
|
|
16
|
+
return {
|
|
17
|
+
key: "forEach",
|
|
18
|
+
config: { forEach: config.collection },
|
|
19
|
+
operatorChildren: [{ label: null, tasks: config.tasks(item, innerCtx) }],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function switchTask(_ctx, config) {
|
|
23
|
+
if (config.cases.length === 0)
|
|
24
|
+
throw new Error("switch requires at least one case");
|
|
25
|
+
const innerCtx = buildContext([]);
|
|
26
|
+
const operatorChildren = config.cases.map((c) => ({
|
|
27
|
+
label: c.label,
|
|
28
|
+
...(c.condition !== undefined ? { filter: c.condition } : {}),
|
|
29
|
+
tasks: c.tasks(innerCtx),
|
|
30
|
+
}));
|
|
31
|
+
if (config.defaultTasks) {
|
|
32
|
+
operatorChildren.push({ label: null, tasks: config.defaultTasks(innerCtx) });
|
|
33
|
+
}
|
|
34
|
+
return { key: "switch", config: {}, operatorChildren };
|
|
35
|
+
}
|
|
36
|
+
export function forkJoin(_ctx, config) {
|
|
37
|
+
const innerCtx = buildContext([]);
|
|
38
|
+
return {
|
|
39
|
+
key: "forkJoin",
|
|
40
|
+
config: {},
|
|
41
|
+
operatorChildren: config.branches.map((b) => ({ label: b.label, tasks: b.tasks(innerCtx) })),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function-form `code:` for executeScript (authoring v3).
|
|
3
|
+
*
|
|
4
|
+
* The platform's script contract (Hydra AddExecuteScriptActionInternalToolProvider):
|
|
5
|
+
* the code is a top-level script body with `input` in scope — inputs are read
|
|
6
|
+
* via `input.parameters.<name>`, and the script MUST `return` a plain object;
|
|
7
|
+
* downstream refs read `result.<key>`. So an authored
|
|
8
|
+
*
|
|
9
|
+
* code: (input) => { const { X } = input.parameters; return { OUT: X }; }
|
|
10
|
+
*
|
|
11
|
+
* ships as the function's BODY, extracted from `Function.prototype.toString()`.
|
|
12
|
+
*
|
|
13
|
+
* Two authoring hazards, handled here:
|
|
14
|
+
* - CLOSURES CANNOT SURVIVE: `const x = 5; code: () => ({v: x})` serializes the
|
|
15
|
+
* reference, not the value — on the platform `x` is undefined. A best-effort
|
|
16
|
+
* free-identifier scan throws at def() time on obvious captures (per the
|
|
17
|
+
* tranche decision: best effort, not a guarantee).
|
|
18
|
+
* - WHAT YOU AUTHOR IS TRANSPILED FIRST: jiti/tsc strip type annotations and
|
|
19
|
+
* may normalize formatting before toString(), so the wire body is the
|
|
20
|
+
* transpiled form. Pulled automations print the body as a plain string.
|
|
21
|
+
*/
|
|
22
|
+
/** The shape the platform passes to a script: inputs under `parameters`. */
|
|
23
|
+
export interface ScriptInput<I extends Record<string, unknown> = Record<string, unknown>> {
|
|
24
|
+
readonly parameters: I;
|
|
25
|
+
}
|
|
26
|
+
export type ScriptCodeFn<I extends Record<string, unknown> = Record<string, unknown>, R = Record<string, unknown>> = (input: ScriptInput<I>) => R;
|
|
27
|
+
export declare class ScriptCodeError extends Error {
|
|
28
|
+
constructor(message: string);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Extract the platform script body from an authored code function. Accepts the
|
|
32
|
+
* shapes a transpiler emits for `(input) => …`: arrow with block body, arrow
|
|
33
|
+
* with expression body (wrapped into a `return`), and `function` declarations.
|
|
34
|
+
*/
|
|
35
|
+
export declare function extractScriptBody(fn: (...args: never[]) => unknown): string;
|
|
36
|
+
/**
|
|
37
|
+
* Infer the executeScript output schema (property name → authoring type
|
|
38
|
+
* alias) from the script body's `return {...}` object literals — the runtime
|
|
39
|
+
* half of what the `code` function's TS return type already gives the type
|
|
40
|
+
* system. Same best-effort contract as the closure scan:
|
|
41
|
+
*
|
|
42
|
+
* - every `return`ed object literal contributes its top-level keys; multiple
|
|
43
|
+
* returns merge (a key typed differently across branches widens to "text")
|
|
44
|
+
* - value types come from LITERAL values only: string/template → "text",
|
|
45
|
+
* integral number → "integer", other number → "number", true/false →
|
|
46
|
+
* "boolean"; any other expression defaults to "text"
|
|
47
|
+
* - a return that is NOT a statically enumerable object literal (returning a
|
|
48
|
+
* variable, a call, a literal with spread/computed keys) makes the whole
|
|
49
|
+
* inference bail — returns undefined, meaning NO schema is emitted. Using
|
|
50
|
+
* `result.<prop>` refs downstream then fails at build with the explicit
|
|
51
|
+
* `outputs:` fix-it. The explicit `outputs` option always overrides.
|
|
52
|
+
*
|
|
53
|
+
* The scan is context-aware (skips comments, strings, and template literals
|
|
54
|
+
* with `${}` nesting) so braces inside them don't derail the literal walk.
|
|
55
|
+
*/
|
|
56
|
+
export declare function inferOutputSchema(body: string): Record<string, string> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Best-effort free-identifier scan: strip comments/strings/templates, collect
|
|
59
|
+
* identifier tokens that are not property accesses, object keys, declarations,
|
|
60
|
+
* params, keywords, or known script globals.
|
|
61
|
+
*/
|
|
62
|
+
export declare function freeIdentifiers(body: string, params: ReadonlySet<string>): string[];
|