@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,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog emission dialect for automations (trigger / outputs bags).
|
|
3
|
+
*/
|
|
4
|
+
import { bareFactoryEntry, safeCatalogKey, } from "../../catalog/render-helpers.js";
|
|
5
|
+
export function renderAutomationCatalogEntry(args) {
|
|
6
|
+
const ref = args.ref;
|
|
7
|
+
const triggerKeys = Object.keys(ref.trigger ?? {}).sort();
|
|
8
|
+
const outputKeys = Object.keys(ref.outputs ?? {}).sort();
|
|
9
|
+
const { keyName, baseIndent } = args;
|
|
10
|
+
if (triggerKeys.length === 0 && outputKeys.length === 0) {
|
|
11
|
+
return bareFactoryEntry("automationRef", keyName, baseIndent);
|
|
12
|
+
}
|
|
13
|
+
const lines = [`${baseIndent}${safeCatalogKey(keyName)}: automationRef({`];
|
|
14
|
+
const extraFactories = [];
|
|
15
|
+
if (triggerKeys.length > 0) {
|
|
16
|
+
extraFactories.push("triggerParameterRef");
|
|
17
|
+
lines.push(`${baseIndent} trigger: {`);
|
|
18
|
+
for (const key of triggerKeys) {
|
|
19
|
+
const param = ref.trigger[key];
|
|
20
|
+
lines.push(`${baseIndent} ${safeCatalogKey(key)}: triggerParameterRef({ name: ${JSON.stringify(param.name)}, parent: ${JSON.stringify(param.parent ?? "")}${param.required === true ? ", required: true" : ""} }),`);
|
|
21
|
+
}
|
|
22
|
+
lines.push(`${baseIndent} },`);
|
|
23
|
+
}
|
|
24
|
+
if (outputKeys.length > 0) {
|
|
25
|
+
extraFactories.push("outputPropertyRef");
|
|
26
|
+
lines.push(`${baseIndent} outputs: {`);
|
|
27
|
+
for (const key of outputKeys) {
|
|
28
|
+
const prop = ref.outputs[key];
|
|
29
|
+
lines.push(`${baseIndent} ${safeCatalogKey(key)}: outputPropertyRef({ name: ${JSON.stringify(prop.name)}, parent: ${JSON.stringify(prop.parent ?? "")} }),`);
|
|
30
|
+
}
|
|
31
|
+
lines.push(`${baseIndent} },`);
|
|
32
|
+
}
|
|
33
|
+
lines.push(`${baseIndent}}),`);
|
|
34
|
+
return { lines, extraFactories };
|
|
35
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Printer AST — purpose-built, minimal, decoupled from TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* The ref/filter/task deserializers return nodes in this AST; the printer
|
|
5
|
+
* is the only module that turns them into TS source. Strings that would
|
|
6
|
+
* otherwise get quote/escape foot-guns (e.g. `template` parts) live as
|
|
7
|
+
* structured data until the final print step.
|
|
8
|
+
*
|
|
9
|
+
* Filter / sort / ref types live in `src/core/filters/ast.ts` and are
|
|
10
|
+
* re-exported here for backwards compatibility. Other tool surfaces
|
|
11
|
+
* (agent search tools, etc.) import the same definitions from there.
|
|
12
|
+
*/
|
|
13
|
+
import type { RefExpr, FilterValueAst, FilterAst, SortAst, AppRefAst, FieldRefAst, UnresolvedRefAst } from "../../shared/filters/ast.js";
|
|
14
|
+
export type { RefExpr, FilterValueAst, FilterAst, SortAst, AppRefAst, FieldRefAst, UnresolvedRefAst, };
|
|
15
|
+
/**
|
|
16
|
+
* A TaskCall represents one call to a task factory like `executeScript({...})`.
|
|
17
|
+
* `args` is a map of argument-name -> value; the printer emits each value
|
|
18
|
+
* according to its dynamic shape (RefExpr, FilterAst, nested object, etc.).
|
|
19
|
+
*
|
|
20
|
+
* `children` carries the AST for operator tasks (forEach / switch). For
|
|
21
|
+
* forEach the array has exactly one entry; for switch each entry is a case
|
|
22
|
+
* branch (plus optionally a default, stored with `label: null`).
|
|
23
|
+
*/
|
|
24
|
+
export interface TaskCall {
|
|
25
|
+
readonly factory: string;
|
|
26
|
+
readonly refKey: string;
|
|
27
|
+
readonly args: Record<string, unknown>;
|
|
28
|
+
readonly children?: readonly OperatorChildAst[];
|
|
29
|
+
/** The task's real wire display name, when it differs from `refKey` (e.g. a platform-authored "For Each" vs. the slugged `refKey` "For_Each"). */
|
|
30
|
+
readonly displayName?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface OperatorChildAst {
|
|
33
|
+
readonly label: string | null;
|
|
34
|
+
readonly filter?: FilterAst;
|
|
35
|
+
readonly tasks: readonly TaskCall[];
|
|
36
|
+
}
|
|
37
|
+
export type TriggerAst = {
|
|
38
|
+
kind: "onDemand";
|
|
39
|
+
/** Schema entries, keyed by camelCase input name. */
|
|
40
|
+
inputs: Array<{
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
required?: boolean;
|
|
44
|
+
multiple?: boolean;
|
|
45
|
+
defaultValue?: unknown;
|
|
46
|
+
description?: string;
|
|
47
|
+
}>;
|
|
48
|
+
/** Round-tripped from the wire's `onDemand.showTriggeredBy` flag. */
|
|
49
|
+
showTriggeredBy?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Set when a task in this workflow references `ctx.trigger.record` —
|
|
52
|
+
* i.e. this on-demand automation is invoked against a specific record.
|
|
53
|
+
* Not carried on the wire; inferred by scanning the deserialized tasks.
|
|
54
|
+
*/
|
|
55
|
+
hasRecord?: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
kind: "recordCreate" | "recordUpdate" | "attachment";
|
|
58
|
+
/** The owning app — `{kind: "unresolved", ...}` when the aspect never made it into the pull's catalog. */
|
|
59
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
60
|
+
filter?: FilterAst;
|
|
61
|
+
changedFields?: readonly (FieldRefAst | UnresolvedRefAst)[];
|
|
62
|
+
thinkUi?: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
kind: "commentAdded";
|
|
65
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
66
|
+
conversationType: string;
|
|
67
|
+
filter?: FilterAst;
|
|
68
|
+
} | {
|
|
69
|
+
kind: "conversationEnd";
|
|
70
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
71
|
+
conversationType: string;
|
|
72
|
+
} | {
|
|
73
|
+
kind: "webhook";
|
|
74
|
+
authenticated?: boolean;
|
|
75
|
+
/** Raw passthrough — printer emits as-is. */
|
|
76
|
+
customResponse?: {
|
|
77
|
+
success: {
|
|
78
|
+
enabled: boolean;
|
|
79
|
+
format: "JSON" | "XML" | "Text";
|
|
80
|
+
statusCode: number;
|
|
81
|
+
body: string;
|
|
82
|
+
};
|
|
83
|
+
failure: {
|
|
84
|
+
enabled: boolean;
|
|
85
|
+
format: "JSON" | "XML" | "Text";
|
|
86
|
+
statusCode: number;
|
|
87
|
+
body: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} | {
|
|
91
|
+
kind: "temporal";
|
|
92
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
93
|
+
fieldKey: string;
|
|
94
|
+
temporalUnit: "MINUTES" | "HOURS" | "DAYS";
|
|
95
|
+
value: number;
|
|
96
|
+
} | {
|
|
97
|
+
kind: "approvalProcessStatusUpdated";
|
|
98
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
99
|
+
approvalChain: string;
|
|
100
|
+
status: "ACTIVE" | "STEP_APPROVED" | "CANCELLED" | "DENIED" | "APPROVED";
|
|
101
|
+
} | {
|
|
102
|
+
kind: "schedule";
|
|
103
|
+
frequency: "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
104
|
+
interval?: number;
|
|
105
|
+
timezone: string;
|
|
106
|
+
startAt: string;
|
|
107
|
+
weekdays?: readonly string[];
|
|
108
|
+
dayOfMonth?: number;
|
|
109
|
+
} | {
|
|
110
|
+
kind: "dataMine";
|
|
111
|
+
datamineId: string;
|
|
112
|
+
fireOnAlert?: boolean;
|
|
113
|
+
fireOnRecovery?: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
kind: "emailReceived";
|
|
116
|
+
emailAliasId: string;
|
|
117
|
+
} | {
|
|
118
|
+
kind: "slackMessage";
|
|
119
|
+
} | {
|
|
120
|
+
kind: "surveyResponseCreate";
|
|
121
|
+
app: AppRefAst | UnresolvedRefAst;
|
|
122
|
+
survey: string;
|
|
123
|
+
};
|
|
124
|
+
export interface AutomationAst {
|
|
125
|
+
readonly ownerHandle: string;
|
|
126
|
+
readonly name: string;
|
|
127
|
+
readonly status: "DRAFT" | "ACTIVE";
|
|
128
|
+
readonly workflowRevision?: string;
|
|
129
|
+
readonly trigger: TriggerAst;
|
|
130
|
+
readonly tasks: readonly TaskCall[];
|
|
131
|
+
readonly outputs?: readonly {
|
|
132
|
+
name: string;
|
|
133
|
+
value: unknown;
|
|
134
|
+
}[];
|
|
135
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Printer AST — purpose-built, minimal, decoupled from TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* The ref/filter/task deserializers return nodes in this AST; the printer
|
|
5
|
+
* is the only module that turns them into TS source. Strings that would
|
|
6
|
+
* otherwise get quote/escape foot-guns (e.g. `template` parts) live as
|
|
7
|
+
* structured data until the final print step.
|
|
8
|
+
*
|
|
9
|
+
* Filter / sort / ref types live in `src/core/filters/ast.ts` and are
|
|
10
|
+
* re-exported here for backwards compatibility. Other tool surfaces
|
|
11
|
+
* (agent search tools, etc.) import the same definitions from there.
|
|
12
|
+
*/
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2 automation printer — walks the SAME `AutomationAst` the v1 deserializer
|
|
3
|
+
* produces (`src/automations/deserializer/ast.ts`) and emits **v2** EDK
|
|
4
|
+
* TypeScript source: an options-shaped `defineAutomation({ name, parent, status,
|
|
5
|
+
* workflow: defineWorkflow().trigger(...).task(...).outputs(...) })`, exported
|
|
6
|
+
* as default. `defineAutomation` itself is not chained — the trigger/task/
|
|
7
|
+
* outputs chain lives on the `workflow` field.
|
|
8
|
+
*
|
|
9
|
+
* Where v1 emits `defineAutomation({ owner, name, status }).trigger(...)` with
|
|
10
|
+
* refs carrying ids, v2 emits the chainable builder with flat `name`/`parent`
|
|
11
|
+
* options and every cross-entity reference as a **handle-token** off the owning app's
|
|
12
|
+
* catalog barrel (`<ownerHandle>.fields.<key>`, `<ownerHandle>.agents.<key>`,
|
|
13
|
+
* `<ownerHandle>.automations.<key>`) — no ids ever surface.
|
|
14
|
+
*
|
|
15
|
+
* The structure mirrors the v1 printer (`./
|
|
16
|
+
* print-automation.ts`): same `ImportTracker`, same `RefCtx` (the bound ctx
|
|
17
|
+
* name threaded through nested operator bodies), same quote/escape/indent
|
|
18
|
+
* helpers, same recursion over operator `children` via `childTask`. Only the
|
|
19
|
+
* emitted *syntax* changes:
|
|
20
|
+
* - the builder API (`defineAutomation`, `recordCreated`, `recordSearch`,
|
|
21
|
+
* `forEach`/`switch`/`forkJoin`, `childTask`, the `*V2` task factories);
|
|
22
|
+
* - references are catalog handle-tokens, not v1 typed-id objects;
|
|
23
|
+
* - filters use the `filter.*` DSL with `FieldRef` tokens (`filter.eq(app
|
|
24
|
+
* .fields.x, "v")`), passed as a bare value (not v1's `(app) => ...` lambda);
|
|
25
|
+
* - ctx refs use the v2 ctx shape (`ctx.trigger.…`, `ctx.tasks.<key>.…`,
|
|
26
|
+
* `innerCtx.…` inside operator bodies, `item.…` for the forEach item).
|
|
27
|
+
*
|
|
28
|
+
* Unresolved refs emit `"<uuid>" /* TODO: <hint> *\/` (v2 has no `val()`
|
|
29
|
+
* wrapper — value slots accept literals directly), so the generated file still
|
|
30
|
+
* compiles when the catalog is partial.
|
|
31
|
+
*/
|
|
32
|
+
import type { AutomationAst } from "./ast.js";
|
|
33
|
+
export interface PrintAutomationV2Options {
|
|
34
|
+
readonly refName?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Public entry point. Kept as a thin wrapper so call sites match the v1
|
|
38
|
+
* printer's `printAutomationFinalized` convention.
|
|
39
|
+
*/
|
|
40
|
+
export declare function printAutomationV2(ast: AutomationAst, opts?: PrintAutomationV2Options): string;
|