@elementumai/edk 0.8.2-alpha.5 → 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
|
@@ -344,12 +344,7 @@ function dedent(body) {
|
|
|
344
344
|
* params, keywords, or known script globals.
|
|
345
345
|
*/
|
|
346
346
|
export function freeIdentifiers(body, params) {
|
|
347
|
-
const stripped = body
|
|
348
|
-
.replace(/\/\*[\s\S]*?\*\//g, " ")
|
|
349
|
-
.replace(/\/\/[^\n]*/g, " ")
|
|
350
|
-
.replace(/`(?:\\.|\$\{[^}]*\}|[^`\\])*`/g, '""') // templates: keep ${} contents out (best effort)
|
|
351
|
-
.replace(/'(?:\\.|[^'\\])*'/g, '""')
|
|
352
|
-
.replace(/"(?:\\.|[^"\\])*"/g, '""');
|
|
347
|
+
const stripped = maskNonCodeForIdentifierScan(body);
|
|
353
348
|
const declared = new Set(params);
|
|
354
349
|
// const/let/var declarations, incl. destructuring lists; function/class names.
|
|
355
350
|
for (const m of stripped.matchAll(/\b(?:const|let|var)\s+([^=;]+)/g)) {
|
|
@@ -384,6 +379,99 @@ export function freeIdentifiers(body, params) {
|
|
|
384
379
|
}
|
|
385
380
|
return [...unknown].sort();
|
|
386
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Replace comments, strings, template literals, and regex literals with
|
|
384
|
+
* spaces while preserving line breaks and character offsets. A regex-only
|
|
385
|
+
* implementation cannot distinguish `//` in `"https://..."` from a line
|
|
386
|
+
* comment, or `/foo/g` from division; both caused valid pulled scripts to be
|
|
387
|
+
* rejected as closure captures. This small lexer is intentionally scoped to
|
|
388
|
+
* the free-identifier scan rather than trying to parse JavaScript.
|
|
389
|
+
*/
|
|
390
|
+
function maskNonCodeForIdentifierScan(source) {
|
|
391
|
+
// The scanner uses UTF-16 code-unit offsets (`source[i]`, `source.length`).
|
|
392
|
+
// `split("")` preserves that same indexing; spreading would collapse an
|
|
393
|
+
// astral surrogate pair into one array entry and shift every later mask.
|
|
394
|
+
const chars = source.split("");
|
|
395
|
+
const mask = (start, end) => {
|
|
396
|
+
for (let i = start; i < end; i += 1)
|
|
397
|
+
if (chars[i] !== "\n" && chars[i] !== "\r")
|
|
398
|
+
chars[i] = " ";
|
|
399
|
+
};
|
|
400
|
+
const canStartRegexAfter = /[({[=,:;!?&|+\-*%^~<>]/;
|
|
401
|
+
let i = 0;
|
|
402
|
+
let previousSignificant = "";
|
|
403
|
+
while (i < source.length) {
|
|
404
|
+
const c = source[i];
|
|
405
|
+
const next = source[i + 1];
|
|
406
|
+
if (/\s/.test(c)) {
|
|
407
|
+
i += 1;
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
if (c === "/" && next === "/") {
|
|
411
|
+
const start = i;
|
|
412
|
+
i += 2;
|
|
413
|
+
while (i < source.length && source[i] !== "\n")
|
|
414
|
+
i += 1;
|
|
415
|
+
mask(start, i);
|
|
416
|
+
continue;
|
|
417
|
+
}
|
|
418
|
+
if (c === "/" && next === "*") {
|
|
419
|
+
const start = i;
|
|
420
|
+
i += 2;
|
|
421
|
+
while (i < source.length && !(source[i] === "*" && source[i + 1] === "/"))
|
|
422
|
+
i += 1;
|
|
423
|
+
i = Math.min(source.length, i + 2);
|
|
424
|
+
mask(start, i);
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
if (c === "'" || c === '"' || c === "`") {
|
|
428
|
+
const quote = c;
|
|
429
|
+
const start = i++;
|
|
430
|
+
while (i < source.length) {
|
|
431
|
+
if (source[i] === "\\") {
|
|
432
|
+
i += 2;
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
if (source[i] === quote) {
|
|
436
|
+
i += 1;
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
i += 1;
|
|
440
|
+
}
|
|
441
|
+
mask(start, i);
|
|
442
|
+
previousSignificant = '"';
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
const regexContext = previousSignificant === "" || canStartRegexAfter.test(previousSignificant);
|
|
446
|
+
if (c === "/" && next !== "/" && next !== "*" && regexContext) {
|
|
447
|
+
const start = i++;
|
|
448
|
+
let inClass = false;
|
|
449
|
+
while (i < source.length) {
|
|
450
|
+
if (source[i] === "\\") {
|
|
451
|
+
i += 2;
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
if (source[i] === "[")
|
|
455
|
+
inClass = true;
|
|
456
|
+
else if (source[i] === "]")
|
|
457
|
+
inClass = false;
|
|
458
|
+
else if (source[i] === "/" && !inClass) {
|
|
459
|
+
i += 1;
|
|
460
|
+
while (/[A-Za-z]/.test(source[i] ?? ""))
|
|
461
|
+
i += 1;
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
i += 1;
|
|
465
|
+
}
|
|
466
|
+
mask(start, i);
|
|
467
|
+
previousSignificant = "/";
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
previousSignificant = c;
|
|
471
|
+
i += 1;
|
|
472
|
+
}
|
|
473
|
+
return chars.join("");
|
|
474
|
+
}
|
|
387
475
|
// ---------------------------------------------------------------------------
|
|
388
476
|
// Byte-exact body extraction from untranspiled source (elementum build only)
|
|
389
477
|
// ---------------------------------------------------------------------------
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
* accept a literal or a `ctx` `Ref` and are pre-serialized to the platform's
|
|
12
12
|
* `ValueReference` JSON via the shared, agnostic `serializeValueOrRef`.
|
|
13
13
|
*/
|
|
14
|
-
import type { AgentRef,
|
|
14
|
+
import type { AgentRef, AppOrElementRef, AutomationRef, CloudLinkRef, ConnectorRef, FileReaderCatalogRef, DocumentModelFieldRef, FieldRef, SearchTableRef, PhoneServiceRef } from "../../catalog/index.js";
|
|
15
15
|
import type { RecordShape } from "../field/record-shape.js";
|
|
16
16
|
import type { ValueOrRef } from "../shared/ref.js";
|
|
17
|
+
import type { RoleUserRef } from "../role/build.js";
|
|
17
18
|
import type { TaskDef } from "./build.js";
|
|
18
19
|
import type { Filter } from "./filter.js";
|
|
19
20
|
import { type ScriptCodeFn } from "./script-code.js";
|
|
@@ -22,25 +23,25 @@ export interface FieldAssignment {
|
|
|
22
23
|
readonly field: FieldRef;
|
|
23
24
|
readonly value: ValueOrRef<unknown>;
|
|
24
25
|
}
|
|
25
|
-
export interface RecordSearchOutput<A extends
|
|
26
|
+
export interface RecordSearchOutput<A extends AppOrElementRef = AppOrElementRef> {
|
|
26
27
|
readonly records: readonly RecordShape<A>[];
|
|
27
28
|
readonly record: RecordShape<A>;
|
|
28
29
|
readonly totalCount: number;
|
|
29
30
|
}
|
|
30
|
-
export interface RecordSearchOptions<A extends
|
|
31
|
+
export interface RecordSearchOptions<A extends AppOrElementRef = AppOrElementRef> {
|
|
31
32
|
readonly app: A;
|
|
32
33
|
/** Required — the platform rejects a record search with no filter (use `filter.whereTrue()` for all). */
|
|
33
34
|
readonly filter: Filter;
|
|
34
35
|
readonly sort?: Record<string, unknown>;
|
|
35
36
|
readonly limit?: number;
|
|
36
37
|
}
|
|
37
|
-
export declare function recordSearch<A extends
|
|
38
|
-
export interface TableRecordsSearchOutput<A extends
|
|
38
|
+
export declare function recordSearch<A extends AppOrElementRef>(opts: RecordSearchOptions<A>): TaskDef<RecordSearchOutput<A>>;
|
|
39
|
+
export interface TableRecordsSearchOutput<A extends AppOrElementRef = AppOrElementRef> {
|
|
39
40
|
readonly records: readonly RecordShape<A>[];
|
|
40
41
|
readonly record: RecordShape<A>;
|
|
41
42
|
readonly totalCount: number;
|
|
42
43
|
}
|
|
43
|
-
export interface TableRecordsSearchOptions<A extends
|
|
44
|
+
export interface TableRecordsSearchOptions<A extends AppOrElementRef = AppOrElementRef> {
|
|
44
45
|
/**
|
|
45
46
|
* Table id. Unlike `app`/`aspectId` slots, this is a raw string, not a
|
|
46
47
|
* catalog token — tables have no import/reference mechanism yet (they're
|
|
@@ -66,11 +67,11 @@ export interface TableRecordsSearchOptions<A extends AspectRef = AspectRef> {
|
|
|
66
67
|
readonly filter?: Filter;
|
|
67
68
|
readonly limit?: number;
|
|
68
69
|
}
|
|
69
|
-
export declare function tableRecordsSearch<A extends
|
|
70
|
-
export interface CreateRecordOutput<A extends
|
|
70
|
+
export declare function tableRecordsSearch<A extends AppOrElementRef = AppOrElementRef>(opts: TableRecordsSearchOptions<A>): TaskDef<TableRecordsSearchOutput<A>>;
|
|
71
|
+
export interface CreateRecordOutput<A extends AppOrElementRef = AppOrElementRef> {
|
|
71
72
|
readonly record: RecordShape<A>;
|
|
72
73
|
}
|
|
73
|
-
export interface CreateRecordOptions<A extends
|
|
74
|
+
export interface CreateRecordOptions<A extends AppOrElementRef = AppOrElementRef> {
|
|
74
75
|
readonly app: A;
|
|
75
76
|
readonly fields: readonly FieldAssignment[];
|
|
76
77
|
/** Relate the new record to `record` (the triggering/source record). */
|
|
@@ -78,17 +79,17 @@ export interface CreateRecordOptions<A extends AspectRef = AspectRef> {
|
|
|
78
79
|
/** A record reference to relate to, when `relateToRecord` is set. */
|
|
79
80
|
readonly record?: ValueOrRef<unknown>;
|
|
80
81
|
}
|
|
81
|
-
export declare function createRecord<A extends
|
|
82
|
-
export interface UpdateFieldOptions<A extends
|
|
82
|
+
export declare function createRecord<A extends AppOrElementRef>(opts: CreateRecordOptions<A>): TaskDef<CreateRecordOutput<A>>;
|
|
83
|
+
export interface UpdateFieldOptions<A extends AppOrElementRef = AppOrElementRef> {
|
|
83
84
|
readonly app: A;
|
|
84
85
|
/** The record to update (e.g. `ctx.trigger.record`). */
|
|
85
86
|
readonly record: ValueOrRef<unknown>;
|
|
86
87
|
readonly fields: readonly FieldAssignment[];
|
|
87
88
|
}
|
|
88
|
-
export declare function updateField<A extends
|
|
89
|
+
export declare function updateField<A extends AppOrElementRef>(opts: UpdateFieldOptions<A>): TaskDef<{
|
|
89
90
|
record: RecordShape<A>;
|
|
90
91
|
}>;
|
|
91
|
-
export interface FindRelatedRecordsOptions<A extends
|
|
92
|
+
export interface FindRelatedRecordsOptions<A extends AppOrElementRef = AppOrElementRef> {
|
|
92
93
|
readonly relatedApp: A;
|
|
93
94
|
/** The record whose related records to find. */
|
|
94
95
|
readonly record: ValueOrRef<unknown>;
|
|
@@ -96,7 +97,7 @@ export interface FindRelatedRecordsOptions<A extends AspectRef = AspectRef> {
|
|
|
96
97
|
readonly sort?: Record<string, unknown>;
|
|
97
98
|
readonly limit?: number;
|
|
98
99
|
}
|
|
99
|
-
export declare function findRelatedRecords<A extends
|
|
100
|
+
export declare function findRelatedRecords<A extends AppOrElementRef>(opts: FindRelatedRecordsOptions<A>): TaskDef<RecordSearchOutput<A>>;
|
|
100
101
|
export interface RelateRecordsOptions {
|
|
101
102
|
/** One or more source record references. */
|
|
102
103
|
readonly sources: readonly ValueOrRef<unknown>[];
|
|
@@ -115,7 +116,7 @@ export interface SendEmailOptions {
|
|
|
115
116
|
readonly fromUsername?: string;
|
|
116
117
|
readonly fromDisplayName?: string;
|
|
117
118
|
/** Recipient user references. */
|
|
118
|
-
readonly toUsers?: readonly ValueOrRef<unknown>[];
|
|
119
|
+
readonly toUsers?: readonly (ValueOrRef<unknown> | RoleUserRef)[];
|
|
119
120
|
/** Recipient group references. */
|
|
120
121
|
readonly toGroups?: readonly ValueOrRef<unknown>[];
|
|
121
122
|
/** Literal email addresses. */
|
|
@@ -370,7 +371,7 @@ export type AiClassifyCategorySource = {
|
|
|
370
371
|
readonly categories: readonly AiClassifyStaticCategory[];
|
|
371
372
|
} | {
|
|
372
373
|
readonly type: "dynamic";
|
|
373
|
-
readonly app:
|
|
374
|
+
readonly app: AppOrElementRef;
|
|
374
375
|
readonly labelField: FieldRef;
|
|
375
376
|
readonly descriptionField?: FieldRef;
|
|
376
377
|
readonly filter?: Filter;
|
|
@@ -422,7 +423,7 @@ export interface AddWatcherOptions {
|
|
|
422
423
|
}
|
|
423
424
|
export declare function addWatcher(opts: AddWatcherOptions): TaskDef<Empty>;
|
|
424
425
|
export interface RecordFieldLockingOptions {
|
|
425
|
-
readonly app:
|
|
426
|
+
readonly app: AppOrElementRef;
|
|
426
427
|
readonly record: ValueOrRef<unknown>;
|
|
427
428
|
readonly fieldsToLock?: readonly FieldRef[];
|
|
428
429
|
readonly fieldsToUnlock?: readonly FieldRef[];
|
|
@@ -477,7 +478,7 @@ export declare function procedure(opts: ProcedureOptions): TaskDef<{
|
|
|
477
478
|
}>;
|
|
478
479
|
export interface InitiateCallOptions {
|
|
479
480
|
readonly agent: AgentRef;
|
|
480
|
-
readonly
|
|
481
|
+
readonly phoneService: PhoneServiceRef;
|
|
481
482
|
readonly phoneNumber: ValueOrRef<unknown>;
|
|
482
483
|
readonly record: ValueOrRef<unknown>;
|
|
483
484
|
readonly language: ValueOrRef<unknown>;
|
|
@@ -567,7 +568,7 @@ export interface BulkExcelFieldMapping {
|
|
|
567
568
|
export interface BulkExcelOptions {
|
|
568
569
|
readonly attachmentId: ValueOrRef<unknown>;
|
|
569
570
|
readonly documentModel: FileReaderCatalogRef;
|
|
570
|
-
readonly app:
|
|
571
|
+
readonly app: AppOrElementRef;
|
|
571
572
|
readonly aspectType: string;
|
|
572
573
|
readonly strict?: boolean;
|
|
573
574
|
readonly fieldMappings: readonly BulkExcelFieldMapping[];
|
|
@@ -87,7 +87,7 @@ export function relateRecords(opts) {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
function refList(values) {
|
|
90
|
-
return values === undefined ? undefined : values.map((v) => serializeValueOrRef(v));
|
|
90
|
+
return values === undefined ? undefined : values.map((v) => typeof v === "object" && v !== null && "__kind" in v && v.__kind === "user" ? v : serializeValueOrRef(v));
|
|
91
91
|
}
|
|
92
92
|
function serializeEmailAttachment(a) {
|
|
93
93
|
return "file" in a ? { file: serializeValueOrRef(a.file) } : { record: serializeValueOrRef(a.fromRecord) };
|
|
@@ -513,7 +513,7 @@ export function initiateCall(opts) {
|
|
|
513
513
|
key: "initiateCall",
|
|
514
514
|
config: {
|
|
515
515
|
agentId: opts.agent,
|
|
516
|
-
|
|
516
|
+
phoneService: opts.phoneService,
|
|
517
517
|
phoneNumber: serializeValueOrRef(opts.phoneNumber),
|
|
518
518
|
recordId: serializeValueOrRef(opts.record),
|
|
519
519
|
defaultLanguage: serializeValueOrRef(opts.language),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DeployableEntity } from "../../engine/entity.js";
|
|
2
|
-
import { type TfBlock } from "../../engine/tf/index.js";
|
|
3
|
-
import type
|
|
2
|
+
import { type TfBlock, type TfValue } from "../../engine/tf/index.js";
|
|
3
|
+
import { type OrgRefLookup, type WorkspaceAspect } from "../../engine/build/context.js";
|
|
4
4
|
import type { BuildFieldMetadata } from "../../graph/types.js";
|
|
5
|
+
import type { AppServiceAccount } from "../service-account/build.js";
|
|
5
6
|
export interface AutomationToTfContext {
|
|
6
7
|
readonly appRefName?: string;
|
|
7
8
|
readonly appTfLabel: string;
|
|
@@ -10,6 +11,37 @@ export interface AutomationToTfContext {
|
|
|
10
11
|
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
11
12
|
readonly orgRefs?: OrgRefLookup;
|
|
12
13
|
readonly diagnostics?: string[];
|
|
14
|
+
readonly serviceAccounts?: Readonly<Record<string, AppServiceAccount>>;
|
|
15
|
+
/** App-local automations whose publish resource will be emitted in this build. */
|
|
16
|
+
readonly activeAutomationRefNames?: ReadonlySet<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Every app/element stream root discovered in this same build, keyed by
|
|
19
|
+
* `workspaceAspectKey` — lets a cross-aspect token (an app/element ref, or
|
|
20
|
+
* a field owned by one) tell a SIBLING being created in this same build
|
|
21
|
+
* apart from a genuinely foreign aspect, the same distinction every other
|
|
22
|
+
* entity kind's `toTf` already makes (see `ToTfContext.workspaceAspects`'s
|
|
23
|
+
* doc comment). A sibling resolves to a direct resource reference instead
|
|
24
|
+
* of a `data` lookup — otherwise a from-scratch apply plans the `data`
|
|
25
|
+
* read before the sibling resource exists and fails "Element/App Not
|
|
26
|
+
* Found".
|
|
27
|
+
*
|
|
28
|
+
* It also carries the owning aspect for a SEARCH TABLE ref: an
|
|
29
|
+
* `aiSearchTable` task pointing at a table on an element resolves to that
|
|
30
|
+
* element's real resource label instead of being mis-scoped to this
|
|
31
|
+
* automation's own app. Tables are recorded alongside apps and elements
|
|
32
|
+
* because a table-owned search table uses a different resource type and
|
|
33
|
+
* label shape from an element-owned one.
|
|
34
|
+
*/
|
|
35
|
+
readonly workspaceAspects?: ReadonlyMap<string, WorkspaceAspect>;
|
|
36
|
+
/**
|
|
37
|
+
* The build's shared `locals.tf` attrs map — mutated in place so a foreign
|
|
38
|
+
* field crossing through {@link crossAppFieldToTf} can contribute its own
|
|
39
|
+
* `<fieldLabel>_options_by_label` local (sourced from the `data.elementum_field`
|
|
40
|
+
* block's `options` attribute), the cross-app counterpart to
|
|
41
|
+
* `field/locals.ts`'s same-app `appendFieldLocals`. Absent in contexts that
|
|
42
|
+
* don't wire it up (unit tests) — those simply skip the contribution.
|
|
43
|
+
*/
|
|
44
|
+
readonly localsAttrs?: Record<string, TfValue>;
|
|
13
45
|
}
|
|
14
46
|
export interface AutomationToTfResult {
|
|
15
47
|
readonly blocks: readonly TfBlock[];
|