@elementumai/edk 0.8.2-alpha.6 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +3 -3
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +3 -11
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +2 -10
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
- package/dist-sdk/fs/entity.d.ts +2 -2
- package/dist-sdk/fs/entity.js +1 -1
- package/dist-sdk/pull/missing-report.d.ts +81 -0
- package/dist-sdk/pull/missing-report.js +52 -0
- package/dist-sdk/src/catalog/factories.d.ts +53 -19
- package/dist-sdk/src/catalog/factories.js +51 -12
- package/dist-sdk/src/catalog/from-authoring.js +13 -3
- package/dist-sdk/src/catalog/index.d.ts +2 -2
- package/dist-sdk/src/catalog/index.js +1 -1
- package/dist-sdk/src/catalog/org.js +1 -0
- package/dist-sdk/src/catalog/render.js +6 -0
- package/dist-sdk/src/catalog/token.js +7 -0
- package/dist-sdk/src/catalog/types.d.ts +34 -23
- package/dist-sdk/src/catalog/types.js +7 -4
- package/dist-sdk/src/core/app-to-ui.d.ts +6 -6
- package/dist-sdk/src/core/app-to-ui.js +7 -9
- package/dist-sdk/src/core/index.d.ts +1 -0
- package/dist-sdk/src/core/index.js +1 -0
- package/dist-sdk/src/core/platform-id.d.ts +11 -0
- package/dist-sdk/src/core/platform-id.js +8 -0
- package/dist-sdk/src/{entities/flow/activities/render-catalog.d.ts → core/render-tree.d.ts} +2 -2
- package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +6 -8
- package/dist-sdk/src/core/types/app.d.ts +13 -23
- package/dist-sdk/src/core/types/app.js +0 -1
- package/dist-sdk/src/engine/build/context.d.ts +3 -3
- package/dist-sdk/src/engine/pull/attrs.d.ts +4 -0
- package/dist-sdk/src/engine/pull/attrs.js +17 -0
- package/dist-sdk/src/engine/pull/context.d.ts +39 -0
- package/dist-sdk/src/engine/pull/org.d.ts +1 -0
- package/dist-sdk/src/engine/pull/org.js +2 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +1 -1
- package/dist-sdk/src/engine/tf/expr.js +10 -3
- package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
- package/dist-sdk/src/entities/access-policy/build.d.ts +4 -13
- package/dist-sdk/src/entities/access-policy/build.js +1 -1
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +12 -38
- package/dist-sdk/src/entities/access-policy/from-tf.js +16 -74
- package/dist-sdk/src/entities/access-policy/principal.d.ts +29 -0
- package/dist-sdk/src/entities/access-policy/principal.js +13 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +20 -5
- package/dist-sdk/src/entities/access-policy/to-tf.js +26 -54
- package/dist-sdk/src/entities/agent/build.d.ts +39 -8
- package/dist-sdk/src/entities/agent/build.js +36 -15
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +5 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +121 -36
- package/dist-sdk/src/entities/agent/from-tf.js +5 -8
- package/dist-sdk/src/entities/agent/index.d.ts +5 -2
- package/dist-sdk/src/entities/agent/index.js +4 -2
- package/dist-sdk/src/entities/agent/module.js +5 -2
- package/dist-sdk/src/entities/agent/run-as.d.ts +16 -0
- package/dist-sdk/src/entities/agent/run-as.js +1 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/agent/to-tf.js +2 -1
- package/dist-sdk/src/entities/agent/tools.d.ts +60 -48
- package/dist-sdk/src/entities/agent/tools.js +44 -38
- package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +1 -1
- package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +4 -4
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +17 -8
- package/dist-sdk/src/entities/agent-tool/from-tf.js +127 -37
- package/dist-sdk/src/entities/agent-tool/module.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +5 -5
- package/dist-sdk/src/entities/agent-tool/to-tf.js +93 -20
- package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -5
- package/dist-sdk/src/entities/agent-tool/types.js +36 -8
- package/dist-sdk/src/entities/app/build.d.ts +137 -25
- package/dist-sdk/src/entities/app/build.js +104 -53
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +173 -1
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +68 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +2 -1
- package/dist-sdk/src/entities/app/display-blocks.js +1 -1
- package/dist-sdk/src/entities/app/from-tf.d.ts +11 -1
- package/dist-sdk/src/entities/app/from-tf.js +30 -2
- package/dist-sdk/src/entities/app/index.d.ts +13 -4
- package/dist-sdk/src/entities/app/index.js +8 -1
- package/dist-sdk/src/entities/app/module.js +27 -2
- package/dist-sdk/src/entities/app/to-tf.js +75 -1
- package/dist-sdk/src/entities/approval-chain/build.d.ts +31 -16
- package/dist-sdk/src/entities/approval-chain/build.js +49 -49
- package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/approval-chain/from-tf.js +57 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +2 -3
- package/dist-sdk/src/entities/approval-chain/index.js +2 -3
- package/dist-sdk/src/entities/approval-chain/module.d.ts +3 -0
- package/dist-sdk/src/entities/approval-chain/module.js +51 -0
- package/dist-sdk/src/entities/approval-chain/printer.d.ts +2 -0
- package/dist-sdk/src/entities/approval-chain/printer.js +21 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.js +43 -0
- package/dist-sdk/src/entities/automation/build.d.ts +10 -6
- package/dist-sdk/src/entities/automation/build.js +5 -4
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +10 -8
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +51 -114
- package/dist-sdk/src/entities/automation/filter.d.ts +1 -115
- package/dist-sdk/src/entities/automation/filter.js +1 -197
- package/dist-sdk/src/entities/automation/from-tf.d.ts +4 -0
- package/dist-sdk/src/entities/automation/from-tf.js +202 -119
- package/dist-sdk/src/entities/automation/index.d.ts +4 -2
- package/dist-sdk/src/entities/automation/index.js +3 -1
- package/dist-sdk/src/entities/automation/module.js +10 -4
- package/dist-sdk/src/entities/automation/script-code.js +94 -6
- package/dist-sdk/src/entities/automation/tasks.d.ts +20 -19
- package/dist-sdk/src/entities/automation/tasks.js +2 -2
- package/dist-sdk/src/entities/automation/to-tf.d.ts +34 -2
- package/dist-sdk/src/entities/automation/to-tf.js +273 -98
- package/dist-sdk/src/entities/automation/triggers.d.ts +18 -17
- package/dist-sdk/src/entities/automation/triggers.js +1 -1
- package/dist-sdk/src/entities/dashboard/build.d.ts +17 -0
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/dashboard/from-tf.js +95 -0
- package/dist-sdk/src/entities/dashboard/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard/module.js +16 -0
- package/dist-sdk/src/entities/dashboard/to-tf.d.ts +30 -0
- package/dist-sdk/src/entities/dashboard/to-tf.js +94 -0
- package/dist-sdk/src/entities/dashboard-widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard-widget/module.js +10 -0
- package/dist-sdk/src/entities/data-lookup/module.d.ts +3 -0
- package/dist-sdk/src/entities/data-lookup/module.js +22 -0
- package/dist-sdk/src/entities/datamine/build.d.ts +22 -0
- package/dist-sdk/src/entities/datamine/build.js +1 -0
- package/dist-sdk/src/entities/datamine/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/datamine/from-tf.js +98 -0
- package/dist-sdk/src/entities/datamine/module.d.ts +3 -0
- package/dist-sdk/src/entities/datamine/module.js +23 -0
- package/dist-sdk/src/entities/datamine/to-tf.d.ts +11 -0
- package/dist-sdk/src/entities/datamine/to-tf.js +53 -0
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +303 -0
- package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +2 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +9 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +233 -0
- package/dist-sdk/src/entities/dynamic-layout/module.d.ts +3 -0
- package/dist-sdk/src/entities/dynamic-layout/module.js +13 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +26 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +267 -0
- package/dist-sdk/src/entities/element/build.d.ts +31 -14
- package/dist-sdk/src/entities/element/build.js +12 -4
- package/dist-sdk/src/entities/element/from-tf.d.ts +9 -1
- package/dist-sdk/src/entities/element/from-tf.js +31 -2
- package/dist-sdk/src/entities/element/index.d.ts +8 -3
- package/dist-sdk/src/entities/element/index.js +4 -1
- package/dist-sdk/src/entities/element/module.js +19 -2
- package/dist-sdk/src/entities/element/to-tf.js +57 -1
- package/dist-sdk/src/entities/field/build.d.ts +4 -3
- package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
- package/dist-sdk/src/entities/field/calculation-types.js +42 -0
- package/dist-sdk/src/entities/field/from-tf.js +90 -11
- package/dist-sdk/src/entities/field/module.d.ts +1 -0
- package/dist-sdk/src/entities/field/module.js +5 -2
- package/dist-sdk/src/entities/field/record-shape.d.ts +1 -1
- package/dist-sdk/src/entities/field/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/field/to-tf.js +22 -6
- package/dist-sdk/src/entities/field/types.js +3 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +66 -19
- package/dist-sdk/src/entities/file-reader/build.js +49 -4
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +1 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +11 -9
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/from-tf.js +31 -2
- package/dist-sdk/src/entities/file-reader/index.d.ts +3 -3
- package/dist-sdk/src/entities/file-reader/index.js +3 -3
- package/dist-sdk/src/entities/file-reader/module.js +6 -5
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/to-tf.js +5 -2
- package/dist-sdk/src/entities/file-reader/types.d.ts +3 -4
- package/dist-sdk/src/entities/file-reader/types.js +4 -5
- package/dist-sdk/src/entities/org/category.js +4 -5
- package/dist-sdk/src/entities/org/group.js +4 -5
- package/dist-sdk/src/entities/org/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
- package/dist-sdk/src/entities/org/phone-provider.js +33 -0
- package/dist-sdk/src/entities/org/role.d.ts +3 -3
- package/dist-sdk/src/entities/org/role.js +9 -6
- package/dist-sdk/src/entities/organization/build.d.ts +29 -0
- package/dist-sdk/src/entities/organization/build.js +24 -0
- package/dist-sdk/src/entities/organization/index.d.ts +2 -0
- package/dist-sdk/src/entities/organization/index.js +2 -0
- package/dist-sdk/src/entities/organization/module.d.ts +2 -0
- package/dist-sdk/src/entities/organization/module.js +18 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +6 -0
- package/dist-sdk/src/entities/organization/to-tf.js +37 -0
- package/dist-sdk/src/entities/phone-service/build.d.ts +17 -0
- package/dist-sdk/src/entities/phone-service/build.js +31 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.d.ts +4 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +54 -0
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +25 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +75 -0
- package/dist-sdk/src/entities/phone-service/index.d.ts +2 -0
- package/dist-sdk/src/entities/phone-service/index.js +2 -0
- package/dist-sdk/src/entities/phone-service/module.d.ts +3 -0
- package/dist-sdk/src/entities/phone-service/module.js +55 -0
- package/dist-sdk/src/entities/phone-service/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/phone-service/to-tf.js +54 -0
- package/dist-sdk/src/entities/phone-service/types.d.ts +35 -0
- package/dist-sdk/src/entities/phone-service/types.js +22 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +74 -0
- package/dist-sdk/src/entities/record-create-form/module.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/module.js +24 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.js +80 -0
- package/dist-sdk/src/entities/relationship/build.d.ts +16 -0
- package/dist-sdk/src/entities/relationship/build.js +1 -0
- package/dist-sdk/src/entities/relationship/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/relationship/from-tf.js +109 -0
- package/dist-sdk/src/entities/relationship/module.d.ts +3 -0
- package/dist-sdk/src/entities/relationship/module.js +16 -0
- package/dist-sdk/src/entities/relationship/to-tf.d.ts +31 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +153 -0
- package/dist-sdk/src/entities/role/build.d.ts +65 -0
- package/dist-sdk/src/entities/role/build.js +33 -0
- package/dist-sdk/src/entities/role/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/from-tf.js +138 -0
- package/dist-sdk/src/entities/role/to-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/to-tf.js +69 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +67 -28
- package/dist-sdk/src/entities/search-table/build.js +110 -56
- package/dist-sdk/src/entities/search-table/from-tf.d.ts +37 -0
- package/dist-sdk/src/entities/search-table/from-tf.js +113 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +2 -2
- package/dist-sdk/src/entities/search-table/index.js +2 -2
- package/dist-sdk/src/entities/search-table/module.js +88 -10
- package/dist-sdk/src/entities/search-table/printer.d.ts +2 -0
- package/dist-sdk/src/entities/search-table/printer.js +52 -0
- package/dist-sdk/src/entities/search-table/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/search-table/to-tf.js +104 -0
- package/dist-sdk/src/entities/search-table/types.d.ts +8 -0
- package/dist-sdk/src/entities/search-table/types.js +21 -0
- package/dist-sdk/src/entities/service-account/build.d.ts +32 -0
- package/dist-sdk/src/entities/service-account/build.js +9 -0
- package/dist-sdk/src/entities/service-account/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/service-account/from-tf.js +109 -0
- package/dist-sdk/src/entities/service-account/module.d.ts +4 -0
- package/dist-sdk/src/entities/service-account/module.js +21 -0
- package/dist-sdk/src/entities/service-account/ref.d.ts +11 -0
- package/dist-sdk/src/entities/service-account/ref.js +5 -0
- package/dist-sdk/src/entities/service-account/to-tf.d.ts +11 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +72 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.d.ts +14 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.js +14 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +21 -79
- package/dist-sdk/src/entities/shared/filters/ast.js +5 -2
- package/dist-sdk/src/entities/shared/filters/index.d.ts +94 -206
- package/dist-sdk/src/entities/shared/filters/index.js +189 -341
- package/dist-sdk/src/entities/shared/filters/print.d.ts +11 -0
- package/dist-sdk/src/entities/shared/filters/print.js +122 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +527 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +66 -69
- package/dist-sdk/src/entities/shared/filters/types.js +2 -3
- package/dist-sdk/src/entities/skill/build.d.ts +2 -2
- package/dist-sdk/src/entities/skill/build.js +4 -3
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +10 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +74 -32
- package/dist-sdk/src/entities/skill/index.d.ts +2 -1
- package/dist-sdk/src/entities/skill/index.js +2 -1
- package/dist-sdk/src/entities/skill/module.js +6 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +5 -1
- package/dist-sdk/src/entities/skill/to-tf.js +18 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +46 -31
- package/dist-sdk/src/entities/skill/tools.js +33 -20
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +4 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +76 -8
- package/dist-sdk/src/entities/skill-tool/module.js +9 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +6 -1
- package/dist-sdk/src/entities/skill-tool/to-tf.js +94 -42
- package/dist-sdk/src/entities/skill-tool/types.js +18 -1
- package/dist-sdk/src/entities/table/build.d.ts +64 -23
- package/dist-sdk/src/entities/table/build.js +33 -18
- package/dist-sdk/src/entities/table/catalog-render.js +6 -0
- package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +99 -0
- package/dist-sdk/src/entities/table/deserializer/normalize.js +192 -0
- package/dist-sdk/src/entities/table/fields/types.d.ts +86 -0
- package/dist-sdk/src/entities/table/fields/types.js +12 -0
- package/dist-sdk/src/entities/table/fields.d.ts +107 -47
- package/dist-sdk/src/entities/table/fields.js +76 -55
- package/dist-sdk/src/entities/table/from-tf.d.ts +4 -0
- package/dist-sdk/src/entities/table/from-tf.js +261 -0
- package/dist-sdk/src/entities/table/index.d.ts +7 -5
- package/dist-sdk/src/entities/table/index.js +7 -7
- package/dist-sdk/src/entities/table/joins.d.ts +22 -9
- package/dist-sdk/src/entities/table/joins.js +8 -16
- package/dist-sdk/src/entities/table/module.d.ts +2 -1
- package/dist-sdk/src/entities/table/module.js +13 -6
- package/dist-sdk/src/entities/table/to-tf.d.ts +10 -0
- package/dist-sdk/src/entities/table/to-tf.js +230 -0
- package/dist-sdk/src/entities/task/build.d.ts +43 -0
- package/dist-sdk/src/entities/task/build.js +17 -0
- package/dist-sdk/src/entities/task/from-tf.d.ts +28 -0
- package/dist-sdk/src/entities/task/from-tf.js +38 -0
- package/dist-sdk/src/entities/task/index.d.ts +1 -0
- package/dist-sdk/src/entities/task/index.js +1 -0
- package/dist-sdk/src/entities/task/module.d.ts +3 -0
- package/dist-sdk/src/entities/task/module.js +12 -0
- package/dist-sdk/src/entities/task/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/task/to-tf.js +49 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
- package/dist-sdk/src/entities/view/from-tf.js +209 -25
- package/dist-sdk/src/entities/view/module.js +5 -1
- package/dist-sdk/src/entities/view/to-tf.d.ts +49 -7
- package/dist-sdk/src/entities/view/to-tf.js +155 -18
- package/dist-sdk/src/entities/view/types.d.ts +8 -0
- package/dist-sdk/src/entities/view/types.js +43 -0
- package/dist-sdk/src/entities/visual-flow/build.d.ts +87 -0
- package/dist-sdk/src/entities/visual-flow/build.js +72 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +49 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.js +124 -0
- package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -0
- package/dist-sdk/src/entities/visual-flow/index.js +1 -0
- package/dist-sdk/src/entities/visual-flow/module.d.ts +3 -0
- package/dist-sdk/src/entities/visual-flow/module.js +41 -0
- package/dist-sdk/src/entities/visual-flow/printer.d.ts +8 -0
- package/dist-sdk/src/entities/visual-flow/printer.js +92 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +101 -0
- package/dist-sdk/src/entities/widget/build.d.ts +55 -0
- package/dist-sdk/src/entities/widget/build.js +1 -0
- package/dist-sdk/src/entities/widget/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/widget/from-tf.js +209 -0
- package/dist-sdk/src/entities/widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/widget/module.js +16 -0
- package/dist-sdk/src/entities/widget/to-tf.d.ts +44 -0
- package/dist-sdk/src/entities/widget/to-tf.js +204 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +1 -1
- package/dist-sdk/src/graph/deferred-catalog-render.js +1 -1
- package/dist-sdk/src/graph/index.d.ts +7 -0
- package/dist-sdk/src/graph/index.js +4 -18
- package/dist-sdk/src/graph/modules.js +30 -1
- package/dist-sdk/src/graph/types.d.ts +55 -7
- package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
- package/dist-sdk/src/internal/sdk-package.js +4 -2
- package/package.json +30 -15
- package/dist-sdk/src/entities/access-policy/filter.d.ts +0 -61
- package/dist-sdk/src/entities/access-policy/filter.js +0 -83
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +0 -24
- package/dist-sdk/src/entities/approval-chain/steps.js +0 -20
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +0 -15
- package/dist-sdk/src/entities/flow/activities/agent.js +0 -29
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +0 -9
- package/dist-sdk/src/entities/flow/activities/approval.js +0 -18
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +0 -12
- package/dist-sdk/src/entities/flow/activities/automation.js +0 -22
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +0 -34
- package/dist-sdk/src/entities/flow/activities/ctx.js +0 -38
- package/dist-sdk/src/entities/flow/activities/form.d.ts +0 -22
- package/dist-sdk/src/entities/flow/activities/form.js +0 -36
- package/dist-sdk/src/entities/flow/activities/index.d.ts +0 -14
- package/dist-sdk/src/entities/flow/activities/index.js +0 -13
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +0 -39
- package/dist-sdk/src/entities/flow/activities/input-refs.js +0 -19
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +0 -13
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +0 -34
- package/dist-sdk/src/entities/flow/activities/types.d.ts +0 -33
- package/dist-sdk/src/entities/flow/build.d.ts +0 -38
- package/dist-sdk/src/entities/flow/build.js +0 -115
- package/dist-sdk/src/entities/flow/index.d.ts +0 -8
- package/dist-sdk/src/entities/flow/index.js +0 -7
- package/dist-sdk/src/entities/flow/serialize.d.ts +0 -51
- package/dist-sdk/src/entities/flow/serialize.js +0 -94
- package/dist-sdk/src/entities/flow/util.d.ts +0 -27
- package/dist-sdk/src/entities/flow/util.js +0 -38
- package/dist-sdk/src/entities/table/filter.d.ts +0 -41
- package/dist-sdk/src/entities/table/filter.js +0 -89
- /package/dist-sdk/src/entities/{flow/activities/types.js → dashboard/build.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type EntityKindModule } from "../../graph/types.js";
|
|
2
|
+
export declare const SERVICE_ACCOUNT_RESOURCE_TYPE = "elementum_service_account";
|
|
3
|
+
export declare const SERVICE_ACCOUNT_ACCESS_POLICY_RESOURCE_TYPE = "elementum_service_account_access_policy";
|
|
4
|
+
export declare const serviceAccountModule: EntityKindModule;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NO_CANVAS, NO_CATALOG, NO_LIFECYCLE } from "../../graph/types.js";
|
|
2
|
+
export const SERVICE_ACCOUNT_RESOURCE_TYPE = "elementum_service_account";
|
|
3
|
+
export const SERVICE_ACCOUNT_ACCESS_POLICY_RESOURCE_TYPE = "elementum_service_account_access_policy";
|
|
4
|
+
export const serviceAccountModule = {
|
|
5
|
+
kind: "service-account",
|
|
6
|
+
stream: { role: "streamMember" },
|
|
7
|
+
authoring: { unit: "inline", bag: "serviceAccounts" },
|
|
8
|
+
parents: [{ parent: "app", child: "service-account" }],
|
|
9
|
+
resource: {
|
|
10
|
+
shape: "composite",
|
|
11
|
+
adoptable: true,
|
|
12
|
+
members: [
|
|
13
|
+
{ role: "skeleton", resourceType: SERVICE_ACCOUNT_RESOURCE_TYPE, implemented: true },
|
|
14
|
+
{ role: "accessPolicy", resourceType: SERVICE_ACCOUNT_ACCESS_POLICY_RESOURCE_TYPE, implemented: true },
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
data: { participates: true, resourceType: SERVICE_ACCOUNT_RESOURCE_TYPE, lookupAttr: "name", referencedByBuild: true },
|
|
18
|
+
lifecycle: NO_LIFECYCLE,
|
|
19
|
+
canvas: NO_CANVAS,
|
|
20
|
+
catalog: NO_CATALOG,
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AppCatalogRef } from "../../catalog/index.js";
|
|
2
|
+
/** A portable reference to a service account by display name within its app. */
|
|
3
|
+
export interface ServiceAccountRef {
|
|
4
|
+
readonly __kind: "serviceAccount";
|
|
5
|
+
readonly appRefName: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function serviceAccountRef(opts: {
|
|
9
|
+
readonly app: AppCatalogRef;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
}): ServiceAccountRef;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OrgRefLookup } from "../../engine/build/context.js";
|
|
2
|
+
import { type TfBlock, type TfValue } from "../../engine/tf/index.js";
|
|
3
|
+
import type { AppRole } from "../role/build.js";
|
|
4
|
+
import type { AppServiceAccount } from "./build.js";
|
|
5
|
+
export declare function serviceAccountsToTf(accounts: Readonly<Record<string, AppServiceAccount>> | undefined, opts: {
|
|
6
|
+
readonly ownerTfLabel: string;
|
|
7
|
+
readonly appId: TfValue;
|
|
8
|
+
readonly roles?: Readonly<Record<string, AppRole>>;
|
|
9
|
+
readonly orgRefs: OrgRefLookup;
|
|
10
|
+
readonly diagnostics: string[];
|
|
11
|
+
}): TfBlock[];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { expr, sanitizeName, scopedResourceLabel, tsLabelToTfLabel } from "../../engine/tf/index.js";
|
|
2
|
+
import { SERVICE_ACCOUNT_ACCESS_POLICY_RESOURCE_TYPE, SERVICE_ACCOUNT_RESOURCE_TYPE } from "./module.js";
|
|
3
|
+
function principalValues(values, type, where, orgRefs, diagnostics) {
|
|
4
|
+
if (values === undefined || values.length === 0)
|
|
5
|
+
return undefined;
|
|
6
|
+
const out = [];
|
|
7
|
+
for (const value of values) {
|
|
8
|
+
if (type === "elementum_user" && value.__kind === "user") {
|
|
9
|
+
const email = value.email;
|
|
10
|
+
const label = sanitizeName(email.split("@", 1)[0] ?? email);
|
|
11
|
+
orgRefs.rawLookup(type, label, email);
|
|
12
|
+
out.push(expr.dataAttr(type, label, ["id"]));
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
if (type === "elementum_group" && value.__kind === "group") {
|
|
16
|
+
const refName = value.refName ?? "";
|
|
17
|
+
const resolved = orgRefs.byTsLabel("groups", refName);
|
|
18
|
+
if (resolved === undefined)
|
|
19
|
+
diagnostics.push(`${where}: group ${JSON.stringify(refName)} is not in org.ts; dropped`);
|
|
20
|
+
else
|
|
21
|
+
out.push(expr.dataAttr(type, resolved.tfLabel, ["id"]));
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
diagnostics.push(`${where}: expected a typed ${type === "elementum_user" ? "userRef" : "group ref"}; dropped`);
|
|
25
|
+
}
|
|
26
|
+
return out.length > 0 ? out : undefined;
|
|
27
|
+
}
|
|
28
|
+
function roleValue(value, roles, ownerTfLabel, appId, orgRefs) {
|
|
29
|
+
const local = Object.entries(roles ?? {}).find(([, role]) => role.name === value.name);
|
|
30
|
+
if (local !== undefined) {
|
|
31
|
+
return expr.resourceAttr("elementum_role", scopedResourceLabel(ownerTfLabel, tsLabelToTfLabel(local[0]), "app"), ["id"]);
|
|
32
|
+
}
|
|
33
|
+
const label = sanitizeName(value.name);
|
|
34
|
+
orgRefs.rawLookup("elementum_role", label, value.name, { object_id: appId });
|
|
35
|
+
return expr.dataAttr("elementum_role", label, ["id"]);
|
|
36
|
+
}
|
|
37
|
+
export function serviceAccountsToTf(accounts, opts) {
|
|
38
|
+
const blocks = [];
|
|
39
|
+
for (const [key, account] of Object.entries(accounts ?? {})) {
|
|
40
|
+
const label = scopedResourceLabel(opts.ownerTfLabel, tsLabelToTfLabel(key), "app");
|
|
41
|
+
const attrs = {
|
|
42
|
+
app_id: opts.appId,
|
|
43
|
+
first_name: account.firstName,
|
|
44
|
+
last_name: account.lastName,
|
|
45
|
+
purpose: account.purpose,
|
|
46
|
+
};
|
|
47
|
+
if (account.status !== undefined)
|
|
48
|
+
attrs["status"] = account.status;
|
|
49
|
+
if (account.roles !== undefined)
|
|
50
|
+
attrs["role_ids"] = account.roles.map((role) => roleValue(role, opts.roles, opts.ownerTfLabel, opts.appId, opts.orgRefs));
|
|
51
|
+
blocks.push({ kind: "resource", type: SERVICE_ACCOUNT_RESOURCE_TYPE, label, attrs });
|
|
52
|
+
for (const [index, policy] of (account.accessPolicies ?? []).entries()) {
|
|
53
|
+
const policyAttrs = {
|
|
54
|
+
app_id: opts.appId,
|
|
55
|
+
service_account_id: expr.resourceAttr(SERVICE_ACCOUNT_RESOURCE_TYPE, label, ["id"]),
|
|
56
|
+
};
|
|
57
|
+
const users = principalValues(policy.users, "elementum_user", `serviceAccounts.${key}.accessPolicies[${index}].users`, opts.orgRefs, opts.diagnostics);
|
|
58
|
+
const groups = principalValues(policy.groups, "elementum_group", `serviceAccounts.${key}.accessPolicies[${index}].groups`, opts.orgRefs, opts.diagnostics);
|
|
59
|
+
if (users !== undefined)
|
|
60
|
+
policyAttrs["user_ids"] = users;
|
|
61
|
+
if (groups !== undefined)
|
|
62
|
+
policyAttrs["group_ids"] = groups;
|
|
63
|
+
blocks.push({
|
|
64
|
+
kind: "resource",
|
|
65
|
+
type: SERVICE_ACCOUNT_ACCESS_POLICY_RESOURCE_TYPE,
|
|
66
|
+
label: `${label}_access_policy${index === 0 ? "" : `_${index}`}`,
|
|
67
|
+
attrs: policyAttrs,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return blocks;
|
|
72
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ConnectorDataLookup {
|
|
2
|
+
dataName(type: string, label: string): string | undefined;
|
|
3
|
+
dataRef(type: string, label: string): {
|
|
4
|
+
readonly resourceType: string;
|
|
5
|
+
readonly tfLabel: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface ConnectorIdentity {
|
|
9
|
+
readonly handle: string;
|
|
10
|
+
readonly providerKey?: string;
|
|
11
|
+
readonly catalogKey?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Derive connector identity from its own model and provider data blocks. */
|
|
14
|
+
export declare function connectorIdentityFromTf(connectorType: string, connectorLabel: string, lookup: ConnectorDataLookup): ConnectorIdentity;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { sanitizeName, tfLabelToTsLabel } from "../../engine/tf/index.js";
|
|
2
|
+
/** Derive connector identity from its own model and provider data blocks. */
|
|
3
|
+
export function connectorIdentityFromTf(connectorType, connectorLabel, lookup) {
|
|
4
|
+
const modelName = lookup.dataName(connectorType, connectorLabel);
|
|
5
|
+
const handle = tfLabelToTsLabel(sanitizeName(modelName ?? connectorLabel));
|
|
6
|
+
const providerRef = lookup.dataRef(connectorType, connectorLabel);
|
|
7
|
+
const providerName = providerRef === undefined
|
|
8
|
+
? undefined
|
|
9
|
+
: lookup.dataName(providerRef.resourceType, providerRef.tfLabel);
|
|
10
|
+
if (providerName === undefined || modelName === undefined)
|
|
11
|
+
return { handle };
|
|
12
|
+
const providerKey = tfLabelToTsLabel(sanitizeName(providerName));
|
|
13
|
+
return { handle, providerKey, catalogKey: `${providerKey}.${handle}` };
|
|
14
|
+
}
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
* filters, for instance, only produce `literal`, `field`, `app`, and
|
|
34
34
|
* `unresolved`).
|
|
35
35
|
*/
|
|
36
|
-
import type { LikeMode } from "./types.js";
|
|
37
36
|
import type { UserFieldKey } from "../../../catalog/types.js";
|
|
38
37
|
/** Reference to an app: `<appHandle>`. */
|
|
39
38
|
export interface AppRefAst {
|
|
@@ -70,12 +69,23 @@ export interface UserFieldRefAst {
|
|
|
70
69
|
readonly kind: "userField";
|
|
71
70
|
readonly fieldKey: UserFieldKey;
|
|
72
71
|
}
|
|
73
|
-
/** Reference to an
|
|
72
|
+
/** Reference to an element's search table: `<handle>.searchTables.<tableKey>`. */
|
|
74
73
|
export interface SearchTableRefAst {
|
|
75
74
|
readonly kind: "searchTable";
|
|
76
75
|
readonly appHandle: string;
|
|
77
76
|
readonly tableKey: string;
|
|
78
77
|
}
|
|
78
|
+
/** Reference to an app-owned phone service. */
|
|
79
|
+
export interface PhoneServiceRefAst {
|
|
80
|
+
readonly kind: "phoneService";
|
|
81
|
+
readonly appHandle: string;
|
|
82
|
+
readonly phoneServiceKey: string;
|
|
83
|
+
}
|
|
84
|
+
/** Stable lookup of an organization user by email. */
|
|
85
|
+
export interface UserRefAst {
|
|
86
|
+
readonly kind: "user";
|
|
87
|
+
readonly email: string;
|
|
88
|
+
}
|
|
79
89
|
/** Reference to a sub-automation via the app's `automations` bag. */
|
|
80
90
|
export interface AutomationRefAst {
|
|
81
91
|
readonly kind: "automation";
|
|
@@ -111,6 +121,12 @@ export interface ApprovalChainRefAst {
|
|
|
111
121
|
/** Imported provider id used when EDK does not emit the approval process. */
|
|
112
122
|
readonly unresolvedId?: string;
|
|
113
123
|
}
|
|
124
|
+
/** Reference to a table-owned datamine. */
|
|
125
|
+
export interface DatamineRefAst {
|
|
126
|
+
readonly kind: "datamine";
|
|
127
|
+
readonly tableHandle: string;
|
|
128
|
+
readonly datamineKey: string;
|
|
129
|
+
}
|
|
114
130
|
/**
|
|
115
131
|
* Reference to an org-level AI provider connector, nested under its owning
|
|
116
132
|
* provider (`catalog.aiProviders.<provider>.models.<model>`) — connectors
|
|
@@ -198,95 +214,21 @@ export type RefExpr =
|
|
|
198
214
|
| {
|
|
199
215
|
kind: "template";
|
|
200
216
|
parts: readonly (string | RefExpr)[];
|
|
201
|
-
} | FieldRefAst | UserFieldRefAst | AppRefAst | AgentRefAst | AutomationRefAst | DocumentModelRefAst | DocumentModelFieldRefAst | ApprovalChainRefAst | ConnectorRefAst | CloudLinkRefAst | UnresolvedRefAst
|
|
217
|
+
} | FieldRefAst | UserFieldRefAst | AppRefAst | AgentRefAst | AutomationRefAst | DocumentModelRefAst | DocumentModelFieldRefAst | ApprovalChainRefAst | DatamineRefAst | ConnectorRefAst | CloudLinkRefAst | PhoneServiceRefAst | UserRefAst | UnresolvedRefAst
|
|
202
218
|
/** Preserved terraform local expression for round-trip (e.g. status option ids by label). */
|
|
203
219
|
| {
|
|
204
220
|
kind: "localRef";
|
|
205
221
|
readonly localName: string;
|
|
206
222
|
readonly path: readonly import("../../../engine/tf/model.js").PathSeg[];
|
|
207
223
|
};
|
|
208
|
-
export type FilterValueAst = {
|
|
209
|
-
kind: "text";
|
|
210
|
-
value: string;
|
|
211
|
-
} | {
|
|
212
|
-
kind: "number";
|
|
213
|
-
value: number;
|
|
214
|
-
} | {
|
|
215
|
-
kind: "boolean";
|
|
216
|
-
value: boolean;
|
|
217
|
-
} | {
|
|
218
|
-
kind: "uuid";
|
|
219
|
-
value: string;
|
|
220
|
-
} | {
|
|
221
|
-
kind: "date";
|
|
222
|
-
value: string;
|
|
223
|
-
} | {
|
|
224
|
-
kind: "datetime";
|
|
225
|
-
value: string;
|
|
226
|
-
} | {
|
|
227
|
-
kind: "null";
|
|
228
|
-
} | {
|
|
229
|
-
kind: "currentUser";
|
|
230
|
-
currentUserType: "id" | "email" | "domain";
|
|
231
|
-
}
|
|
232
|
-
/** A reference value — wraps a RefExpr for the printer to render. */
|
|
233
|
-
| {
|
|
234
|
-
kind: "reference";
|
|
235
|
-
ref: RefExpr;
|
|
236
|
-
};
|
|
237
|
-
export type FilterAst = {
|
|
238
|
-
kind: "eq" | "gt" | "gte" | "lt" | "lte";
|
|
239
|
-
/** Either a field descriptor (`app.fields.X`) or a RefExpr (for ref* operators). */
|
|
240
|
-
left: RefExpr;
|
|
241
|
-
right: FilterValueAst | RefExpr;
|
|
242
|
-
not?: boolean;
|
|
243
|
-
} | {
|
|
244
|
-
kind: "like";
|
|
245
|
-
left: RefExpr;
|
|
246
|
-
right: FilterValueAst | RefExpr;
|
|
247
|
-
not?: boolean;
|
|
248
|
-
caseInsensitive?: boolean;
|
|
249
|
-
mode?: LikeMode;
|
|
250
|
-
} | {
|
|
251
|
-
kind: "in";
|
|
252
|
-
left: RefExpr;
|
|
253
|
-
values: readonly (FilterValueAst | RefExpr)[];
|
|
254
|
-
not?: boolean;
|
|
255
|
-
} | {
|
|
256
|
-
kind: "between";
|
|
257
|
-
left: RefExpr;
|
|
258
|
-
values: readonly [FilterValueAst | RefExpr, FilterValueAst | RefExpr];
|
|
259
|
-
not?: boolean;
|
|
260
|
-
} | {
|
|
261
|
-
/** Field falls within a relative calendar range — see `ConsecutiveRangeFilter`. */
|
|
262
|
-
kind: "consecutiveRange";
|
|
263
|
-
left: RefExpr;
|
|
264
|
-
unit: string;
|
|
265
|
-
count: number;
|
|
266
|
-
offset: number;
|
|
267
|
-
semantic: boolean;
|
|
268
|
-
} | {
|
|
269
|
-
kind: "contains" | "overlaps";
|
|
270
|
-
left: RefExpr;
|
|
271
|
-
values: readonly (FilterValueAst | RefExpr)[];
|
|
272
|
-
} | {
|
|
273
|
-
kind: "isNull";
|
|
274
|
-
left: RefExpr;
|
|
275
|
-
not?: boolean;
|
|
276
|
-
} | {
|
|
277
|
-
kind: "and" | "or";
|
|
278
|
-
children: readonly FilterAst[];
|
|
279
|
-
} | {
|
|
280
|
-
kind: "true" | "false";
|
|
281
|
-
};
|
|
282
224
|
export interface SortAst {
|
|
283
225
|
readonly field: RefExpr;
|
|
284
226
|
readonly direction: "ASC" | "DESC";
|
|
285
227
|
}
|
|
286
228
|
/**
|
|
287
229
|
* Runtime predicate matching the closed `RefExpr` discriminant set.
|
|
288
|
-
* Used by
|
|
289
|
-
*
|
|
230
|
+
* Used by shared printers and per-consumer printers to identify reference
|
|
231
|
+
* nodes without conflating them with canonical `type`-discriminated values.
|
|
290
232
|
* printers when dispatching generic task-arg values.
|
|
291
233
|
*/
|
|
292
234
|
export declare function isRefExpr(value: unknown): value is RefExpr;
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
// ---------------------------------------------------------------------------
|
|
39
39
|
/**
|
|
40
40
|
* Runtime predicate matching the closed `RefExpr` discriminant set.
|
|
41
|
-
* Used by
|
|
42
|
-
*
|
|
41
|
+
* Used by shared printers and per-consumer printers to identify reference
|
|
42
|
+
* nodes without conflating them with canonical `type`-discriminated values.
|
|
43
43
|
* printers when dispatching generic task-arg values.
|
|
44
44
|
*/
|
|
45
45
|
export function isRefExpr(value) {
|
|
@@ -60,6 +60,9 @@ export function isRefExpr(value) {
|
|
|
60
60
|
kind === "documentModel" ||
|
|
61
61
|
kind === "documentModelField" ||
|
|
62
62
|
kind === "approvalChain" ||
|
|
63
|
+
kind === "datamine" ||
|
|
63
64
|
kind === "connector" ||
|
|
65
|
+
kind === "phoneService" ||
|
|
66
|
+
kind === "user" ||
|
|
64
67
|
kind === "unresolved");
|
|
65
68
|
}
|