@elementumai/edk 0.8.2-alpha.6 → 0.9.5
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 +49 -37
- 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 +3 -11
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +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/pull/util.d.ts +1 -1
- package/dist-sdk/pull/util.js +3 -3
- package/dist-sdk/src/catalog/factories.d.ts +96 -23
- package/dist-sdk/src/catalog/factories.js +141 -21
- package/dist-sdk/src/catalog/from-authoring.d.ts +5 -5
- package/dist-sdk/src/catalog/from-authoring.js +20 -10
- 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 +63 -4
- package/dist-sdk/src/catalog/render-helpers.d.ts +1 -1
- package/dist-sdk/src/catalog/render-helpers.js +1 -1
- package/dist-sdk/src/catalog/render.d.ts +1 -0
- package/dist-sdk/src/catalog/render.js +8 -2
- package/dist-sdk/src/catalog/token.js +18 -4
- package/dist-sdk/src/catalog/types.d.ts +64 -24
- package/dist-sdk/src/catalog/types.js +12 -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 +11 -10
- package/dist-sdk/src/core/index.js +10 -9
- 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} +3 -3
- package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +7 -10
- package/dist-sdk/src/core/types/ai-provider.d.ts +1 -1
- package/dist-sdk/src/core/types/ai-provider.js +1 -1
- package/dist-sdk/src/core/types/app.d.ts +78 -52
- package/dist-sdk/src/core/types/app.js +2 -3
- package/dist-sdk/src/core/types/aspect-category.d.ts +4 -4
- package/dist-sdk/src/core/types/aspect-category.js +4 -4
- package/dist-sdk/src/core/types/cloud-link.d.ts +3 -3
- package/dist-sdk/src/core/types/cloud-link.js +3 -3
- package/dist-sdk/src/core/types/display-block.d.ts +2 -2
- package/dist-sdk/src/core/types/display-block.js +2 -2
- package/dist-sdk/src/core/types/group.d.ts +1 -1
- package/dist-sdk/src/core/types/group.js +1 -1
- package/dist-sdk/src/core/types/user.d.ts +1 -1
- package/dist-sdk/src/core/types/user.js +1 -1
- package/dist-sdk/src/core/wire/ref-serializer.js +3 -3
- package/dist-sdk/src/engine/build/context.d.ts +23 -16
- package/dist-sdk/src/engine/entity.d.ts +1 -1
- 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 +73 -0
- package/dist-sdk/src/engine/pull/context.js +14 -0
- package/dist-sdk/src/engine/pull/org.d.ts +10 -0
- package/dist-sdk/src/engine/pull/org.js +35 -0
- package/dist-sdk/src/engine/pull/ref-only.d.ts +37 -0
- package/dist-sdk/src/engine/pull/ref-only.js +204 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +7 -3
- package/dist-sdk/src/engine/tf/expr.js +27 -15
- package/dist-sdk/src/engine/tf/index.d.ts +1 -1
- package/dist-sdk/src/engine/tf/index.js +1 -1
- package/dist-sdk/src/engine/tf/model.d.ts +8 -1
- package/dist-sdk/src/engine/tf/model.js +4 -0
- package/dist-sdk/src/engine/tf/parse.js +13 -2
- package/dist-sdk/src/engine/tf/render.js +4 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
- package/dist-sdk/src/entities/access-policy/build.d.ts +6 -16
- package/dist-sdk/src/entities/access-policy/build.js +2 -2
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +14 -40
- package/dist-sdk/src/entities/access-policy/from-tf.js +26 -85
- package/dist-sdk/src/entities/access-policy/principal.d.ts +39 -0
- package/dist-sdk/src/entities/access-policy/principal.js +13 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +33 -6
- package/dist-sdk/src/entities/access-policy/to-tf.js +62 -60
- package/dist-sdk/src/entities/agent/build.d.ts +42 -11
- package/dist-sdk/src/entities/agent/build.js +40 -19
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +11 -1
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +180 -45
- package/dist-sdk/src/entities/agent/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/agent/from-tf.js +17 -12
- 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 +7 -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 +6 -2
- package/dist-sdk/src/entities/agent/to-tf.js +58 -9
- package/dist-sdk/src/entities/agent/tools.d.ts +97 -70
- package/dist-sdk/src/entities/agent/tools.js +63 -43
- 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-evaluation/build.d.ts +19 -0
- package/dist-sdk/src/entities/agent-evaluation/build.js +41 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.d.ts +4 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.js +30 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.js +46 -0
- package/dist-sdk/src/entities/agent-evaluation/index.d.ts +1 -0
- package/dist-sdk/src/entities/agent-evaluation/index.js +1 -0
- package/dist-sdk/src/entities/agent-evaluation/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-evaluation/module.js +58 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.js +35 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +25 -15
- package/dist-sdk/src/entities/agent-tool/from-tf.js +175 -43
- package/dist-sdk/src/entities/agent-tool/module.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +15 -7
- package/dist-sdk/src/entities/agent-tool/to-tf.js +169 -48
- package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -6
- package/dist-sdk/src/entities/agent-tool/types.js +30 -29
- package/dist-sdk/src/entities/app/build.d.ts +214 -47
- package/dist-sdk/src/entities/app/build.js +128 -66
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +188 -8
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +70 -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 +20 -8
- package/dist-sdk/src/entities/app/index.js +16 -6
- package/dist-sdk/src/entities/app/module.js +29 -4
- package/dist-sdk/src/entities/app/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/app/to-tf.js +97 -7
- 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 +177 -95
- package/dist-sdk/src/entities/automation/build.js +164 -72
- package/dist-sdk/src/entities/automation/calculation-expression.d.ts +191 -0
- package/dist-sdk/src/entities/automation/calculation-expression.js +57 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +18 -9
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +18 -14
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +214 -311
- 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 +28 -0
- package/dist-sdk/src/entities/automation/from-tf.js +695 -182
- package/dist-sdk/src/entities/automation/index.d.ts +9 -10
- package/dist-sdk/src/entities/automation/index.js +11 -11
- package/dist-sdk/src/entities/automation/module.js +82 -8
- package/dist-sdk/src/entities/automation/operators.d.ts +32 -48
- package/dist-sdk/src/entities/automation/operators.js +10 -37
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +1 -1
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +1 -1
- package/dist-sdk/src/entities/automation/script-code.js +107 -28
- package/dist-sdk/src/entities/automation/serialize.js +1 -1
- package/dist-sdk/src/entities/automation/tasks.d.ts +167 -102
- package/dist-sdk/src/entities/automation/tasks.js +66 -13
- package/dist-sdk/src/entities/automation/to-tf.d.ts +44 -3
- package/dist-sdk/src/entities/automation/to-tf.js +607 -161
- package/dist-sdk/src/entities/automation/triggers.d.ts +33 -25
- package/dist-sdk/src/entities/automation/triggers.js +8 -2
- package/dist-sdk/src/entities/automation/types.d.ts +3 -2
- package/dist-sdk/src/entities/automation/types.js +3 -2
- package/dist-sdk/src/entities/chart/build.d.ts +95 -0
- package/dist-sdk/src/entities/chart/build.js +42 -0
- package/dist-sdk/src/entities/chart/from-tf.d.ts +55 -0
- package/dist-sdk/src/entities/chart/from-tf.js +269 -0
- package/dist-sdk/src/entities/chart/index.d.ts +4 -0
- package/dist-sdk/src/entities/chart/index.js +3 -0
- package/dist-sdk/src/entities/chart/module.d.ts +3 -0
- package/dist-sdk/src/entities/chart/module.js +61 -0
- package/dist-sdk/src/entities/chart/printer.d.ts +5 -0
- package/dist-sdk/src/entities/chart/printer.js +104 -0
- package/dist-sdk/src/entities/chart/to-tf.d.ts +15 -0
- package/dist-sdk/src/entities/chart/to-tf.js +150 -0
- package/dist-sdk/src/entities/chart/types.d.ts +53 -0
- package/dist-sdk/src/entities/chart/types.js +22 -0
- package/dist-sdk/src/entities/dashboard/build.d.ts +44 -0
- package/dist-sdk/src/entities/dashboard/build.js +16 -0
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/dashboard/from-tf.js +113 -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 +43 -0
- package/dist-sdk/src/entities/dashboard/to-tf.js +121 -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/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 +304 -0
- package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +47 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +239 -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 +48 -38
- package/dist-sdk/src/entities/element/build.js +24 -33
- 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 +14 -7
- package/dist-sdk/src/entities/element/index.js +11 -5
- package/dist-sdk/src/entities/element/module.js +26 -5
- package/dist-sdk/src/entities/element/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/element/to-tf.js +64 -4
- package/dist-sdk/src/entities/field/build.d.ts +55 -27
- package/dist-sdk/src/entities/field/build.js +31 -6
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +52 -21
- package/dist-sdk/src/entities/field/calc/aggregate.js +59 -29
- package/dist-sdk/src/entities/field/calc/date.d.ts +78 -29
- package/dist-sdk/src/entities/field/calc/date.js +120 -29
- package/dist-sdk/src/entities/field/calc/index.d.ts +80 -85
- package/dist-sdk/src/entities/field/calc/index.js +82 -139
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +8 -12
- package/dist-sdk/src/entities/field/calc/numeric.js +10 -27
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +19 -2
- package/dist-sdk/src/entities/field/calc/runtime.js +79 -8
- package/dist-sdk/src/entities/field/calc/text.d.ts +32 -23
- package/dist-sdk/src/entities/field/calc/text.js +43 -31
- package/dist-sdk/src/entities/field/calc/types.d.ts +36 -81
- package/dist-sdk/src/entities/field/calc/types.js +1 -22
- package/dist-sdk/src/entities/field/calc.d.ts +71 -48
- package/dist-sdk/src/entities/field/calc.js +5 -15
- package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
- package/dist-sdk/src/entities/field/calculation-types.js +49 -0
- package/dist-sdk/src/entities/field/from-tf.js +238 -13
- package/dist-sdk/src/entities/field/locals.d.ts +11 -3
- package/dist-sdk/src/entities/field/locals.js +15 -2
- package/dist-sdk/src/entities/field/module.d.ts +1 -0
- package/dist-sdk/src/entities/field/module.js +27 -7
- package/dist-sdk/src/entities/field/record-shape.d.ts +25 -11
- package/dist-sdk/src/entities/field/to-tf.d.ts +41 -2
- package/dist-sdk/src/entities/field/to-tf.js +314 -40
- package/dist-sdk/src/entities/field/types.d.ts +1 -1
- package/dist-sdk/src/entities/field/types.js +10 -1
- package/dist-sdk/src/entities/file-reader/build.d.ts +71 -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 +12 -10
- 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/cloud-link.js +4 -5
- package/dist-sdk/src/entities/org/email-alias.d.ts +2 -0
- package/dist-sdk/src/entities/org/email-alias.js +12 -0
- package/dist-sdk/src/entities/org/group.js +4 -5
- package/dist-sdk/src/entities/org/index.d.ts +2 -0
- package/dist-sdk/src/entities/org/index.js +2 -0
- package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
- package/dist-sdk/src/entities/org/phone-provider.js +30 -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 +241 -0
- package/dist-sdk/src/entities/organization/build.js +165 -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 +21 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +7 -0
- package/dist-sdk/src/entities/organization/to-tf.js +154 -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 +56 -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 +88 -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 +32 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +145 -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 +32 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +103 -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/context.d.ts +25 -24
- package/dist-sdk/src/entities/shared/context.js +36 -35
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +30 -81
- package/dist-sdk/src/entities/shared/filters/ast.js +6 -2
- package/dist-sdk/src/entities/shared/filters/index.d.ts +95 -206
- package/dist-sdk/src/entities/shared/filters/index.js +196 -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/shared/foreign-ref.d.ts +14 -0
- package/dist-sdk/src/entities/shared/foreign-ref.js +12 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +26 -11
- package/dist-sdk/src/entities/shared/ref.js +8 -3
- package/dist-sdk/src/entities/shared/types/common.d.ts +2 -2
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +1 -1
- package/dist-sdk/src/entities/shared/types/field-types.js +1 -1
- package/dist-sdk/src/entities/skill/build.d.ts +4 -4
- package/dist-sdk/src/entities/skill/build.js +6 -5
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +11 -1
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +100 -39
- package/dist-sdk/src/entities/skill/index.d.ts +3 -2
- package/dist-sdk/src/entities/skill/index.js +3 -2
- package/dist-sdk/src/entities/skill/module.js +8 -2
- package/dist-sdk/src/entities/skill/to-tf.d.ts +6 -2
- package/dist-sdk/src/entities/skill/to-tf.js +20 -2
- package/dist-sdk/src/entities/skill/tools.d.ts +47 -31
- package/dist-sdk/src/entities/skill/tools.js +37 -23
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +17 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +118 -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 +100 -48
- 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 +41 -26
- package/dist-sdk/src/entities/table/catalog-render.js +15 -1
- 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 +222 -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/build.d.ts +46 -0
- package/dist-sdk/src/entities/view/build.js +19 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
- package/dist-sdk/src/entities/view/from-tf.js +264 -30
- package/dist-sdk/src/entities/view/module.d.ts +6 -13
- package/dist-sdk/src/entities/view/module.js +12 -15
- package/dist-sdk/src/entities/view/sharing.d.ts +10 -0
- package/dist-sdk/src/entities/view/sharing.js +6 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +56 -12
- package/dist-sdk/src/entities/view/to-tf.js +192 -20
- package/dist-sdk/src/entities/view/types.d.ts +8 -0
- package/dist-sdk/src/entities/view/types.js +46 -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 +15 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +97 -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 +45 -0
- package/dist-sdk/src/entities/widget/to-tf.js +206 -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 +12 -1
- package/dist-sdk/src/graph/index.js +8 -19
- package/dist-sdk/src/graph/modules.js +35 -1
- package/dist-sdk/src/graph/types.d.ts +106 -7
- package/dist-sdk/src/internal/safe-identifier.d.ts +4 -0
- package/dist-sdk/src/internal/safe-identifier.js +13 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
- package/dist-sdk/src/internal/sdk-package.js +5 -2
- package/package.json +39 -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 → datamine/build.js} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/** Groups: org-owned reference identities, name-keyed data lookups. */
|
|
2
2
|
import { namedOnlyFactoryEntry } from "../../catalog/render-helpers.js";
|
|
3
|
-
import { NO_LIFECYCLE, } from "../../graph/types.js";
|
|
4
3
|
/** org.ts / OrgRefLookup bag — keep in lockstep with `data.orgBag`. */
|
|
5
4
|
export const GROUP_ORG_BAG = "groups";
|
|
6
5
|
export const groupModule = {
|
|
7
6
|
kind: "group",
|
|
8
|
-
stream: { role: "
|
|
7
|
+
stream: { role: "streamMember" },
|
|
9
8
|
data: {
|
|
10
9
|
participates: true,
|
|
11
10
|
lookupAttr: "name",
|
|
@@ -22,10 +21,10 @@ export const groupModule = {
|
|
|
22
21
|
// real one, extend the reproducing path rather than reverting this flag.
|
|
23
22
|
referencedByBuild: true,
|
|
24
23
|
},
|
|
25
|
-
authoring: { unit: "
|
|
24
|
+
authoring: { unit: "inline", bag: "groups" },
|
|
26
25
|
parents: [{ parent: "org", child: "group" }],
|
|
27
|
-
resource: { shape: "single", resourceType: "elementum_group", adoptable:
|
|
28
|
-
lifecycle:
|
|
26
|
+
resource: { shape: "single", resourceType: "elementum_group", adoptable: true },
|
|
27
|
+
lifecycle: { participates: true },
|
|
29
28
|
canvas: { participates: true, label: "Groups", glyph: "◎", component: "orgIdentity" },
|
|
30
29
|
catalog: {
|
|
31
30
|
participates: true,
|
|
@@ -6,6 +6,8 @@ export { aiProviderModules } from "./ai-provider.js";
|
|
|
6
6
|
export { categoryModule } from "./category.js";
|
|
7
7
|
export { cloudLinkModule } from "./cloud-link.js";
|
|
8
8
|
export { connectorModule } from "./connector.js";
|
|
9
|
+
export { emailAliasModule } from "./email-alias.js";
|
|
9
10
|
export { groupModule } from "./group.js";
|
|
11
|
+
export { phoneProviderModule } from "./phone-provider.js";
|
|
10
12
|
export { roleModule } from "./role.js";
|
|
11
13
|
export { userModule } from "./user.js";
|
|
@@ -6,6 +6,8 @@ export { aiProviderModules } from "./ai-provider.js";
|
|
|
6
6
|
export { categoryModule } from "./category.js";
|
|
7
7
|
export { cloudLinkModule } from "./cloud-link.js";
|
|
8
8
|
export { connectorModule } from "./connector.js";
|
|
9
|
+
export { emailAliasModule } from "./email-alias.js";
|
|
9
10
|
export { groupModule } from "./group.js";
|
|
11
|
+
export { phoneProviderModule } from "./phone-provider.js";
|
|
10
12
|
export { roleModule } from "./role.js";
|
|
11
13
|
export { userModule } from "./user.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Phone providers: org-owned reference identities, name-keyed data lookups. */
|
|
2
|
+
import { namedOnlyFactoryEntry } from "../../catalog/render-helpers.js";
|
|
3
|
+
export const PHONE_PROVIDER_ORG_BAG = "phoneProviders";
|
|
4
|
+
export const phoneProviderModule = {
|
|
5
|
+
kind: "phone-provider",
|
|
6
|
+
stream: { role: "streamMember" },
|
|
7
|
+
data: {
|
|
8
|
+
participates: true,
|
|
9
|
+
resourceType: "elementum_phone_provider",
|
|
10
|
+
lookupAttr: "name",
|
|
11
|
+
catalogKind: "phoneProvider",
|
|
12
|
+
orgBag: PHONE_PROVIDER_ORG_BAG,
|
|
13
|
+
referencedByBuild: true,
|
|
14
|
+
},
|
|
15
|
+
authoring: { unit: "inline", bag: "phoneProviders" },
|
|
16
|
+
parents: [{ parent: "org", child: "phone-provider" }],
|
|
17
|
+
resource: { shape: "single", resourceType: "elementum_phone_provider", adoptable: true },
|
|
18
|
+
lifecycle: { participates: true },
|
|
19
|
+
canvas: { participates: true, label: "Phone Providers", glyph: "☎", component: "orgIdentity" },
|
|
20
|
+
catalog: {
|
|
21
|
+
participates: true,
|
|
22
|
+
refKind: "phoneProvider",
|
|
23
|
+
catalogBag: "phoneProviders",
|
|
24
|
+
renderOrder: 115,
|
|
25
|
+
catalogRoot: "org",
|
|
26
|
+
renderEntry: namedOnlyFactoryEntry("phoneProviderRef"),
|
|
27
|
+
stubRef: (refName) => ({ __kind: "phoneProvider", refName, name: refName }),
|
|
28
|
+
refFromAuthoring: () => undefined,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* author roles or expose them through the org catalog.
|
|
2
|
+
* Custom roles are inline app/element resources. Managed Admin/Edit/View
|
|
3
|
+
* roles remain lookup-only data blocks in the same export stream.
|
|
5
4
|
*/
|
|
6
5
|
import { type EntityKindModule } from "../../graph/types.js";
|
|
7
6
|
export declare const roleModule: EntityKindModule;
|
|
7
|
+
export declare const ROLE_RESOURCE_TYPE = "elementum_role";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* author roles or expose them through the org catalog.
|
|
2
|
+
* Custom roles are inline app/element resources. Managed Admin/Edit/View
|
|
3
|
+
* roles remain lookup-only data blocks in the same export stream.
|
|
5
4
|
*/
|
|
6
5
|
import { NO_CANVAS, NO_CATALOG, NO_LIFECYCLE, } from "../../graph/types.js";
|
|
7
6
|
export const roleModule = {
|
|
@@ -12,10 +11,14 @@ export const roleModule = {
|
|
|
12
11
|
lookupAttr: "name",
|
|
13
12
|
referencedByBuild: false,
|
|
14
13
|
},
|
|
15
|
-
authoring: { unit: "
|
|
16
|
-
parents: [
|
|
17
|
-
|
|
14
|
+
authoring: { unit: "inline", bag: "roles" },
|
|
15
|
+
parents: [
|
|
16
|
+
{ parent: "app", child: "role" },
|
|
17
|
+
{ parent: "element", child: "role" },
|
|
18
|
+
],
|
|
19
|
+
resource: { shape: "single", resourceType: "elementum_role", adoptable: true },
|
|
18
20
|
lifecycle: NO_LIFECYCLE,
|
|
19
21
|
canvas: NO_CANVAS,
|
|
20
22
|
catalog: NO_CATALOG,
|
|
21
23
|
};
|
|
24
|
+
export const ROLE_RESOURCE_TYPE = "elementum_role";
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type { RoleUserRef } from "../role/build.js";
|
|
2
|
+
export interface OrganizationCategory {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly color?: string;
|
|
5
|
+
readonly icon?: string;
|
|
6
|
+
readonly description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OrganizationGroup {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly approver?: boolean;
|
|
11
|
+
readonly assignable?: boolean;
|
|
12
|
+
readonly mentionable?: boolean;
|
|
13
|
+
readonly watchable?: boolean;
|
|
14
|
+
readonly dynamic?: boolean;
|
|
15
|
+
readonly tags?: readonly string[];
|
|
16
|
+
/**
|
|
17
|
+
* Typed users whose membership this configuration owns. Omit the property
|
|
18
|
+
* to preserve membership managed outside EDK; use an empty list to remove
|
|
19
|
+
* all members explicitly. Provider IDs stay internal to build and pull.
|
|
20
|
+
*/
|
|
21
|
+
readonly members?: readonly RoleUserRef[];
|
|
22
|
+
}
|
|
23
|
+
export interface OrganizationSecret {
|
|
24
|
+
readonly __kind: "organizationSecret";
|
|
25
|
+
/** Terraform variable name. Supply it as TF_VAR_<variable>. */
|
|
26
|
+
readonly variable: string;
|
|
27
|
+
}
|
|
28
|
+
export interface RedactedOrganizationSecret {
|
|
29
|
+
readonly __kind: "redactedOrganizationSecret";
|
|
30
|
+
readonly variable: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UnavailableOrganizationValue {
|
|
33
|
+
readonly __kind: "unavailableOrganizationValue";
|
|
34
|
+
readonly field: string;
|
|
35
|
+
}
|
|
36
|
+
export type OrganizationSecretValue = OrganizationSecret | RedactedOrganizationSecret;
|
|
37
|
+
export declare function secret(variable: string): OrganizationSecret;
|
|
38
|
+
/** Pull-only placeholder for a write-only credential. Replace with secret(...). */
|
|
39
|
+
export declare function redactedSecret(variable: string): RedactedOrganizationSecret;
|
|
40
|
+
/** Pull-only marker for an input the platform does not expose. Replace it with the real value. */
|
|
41
|
+
export declare function unavailableValue(field: string): UnavailableOrganizationValue;
|
|
42
|
+
declare const cloudLinkScheduleUnitBrand: unique symbol;
|
|
43
|
+
export type CloudLinkScheduleUnit = string & {
|
|
44
|
+
readonly [cloudLinkScheduleUnitBrand]: "CloudLinkScheduleUnit";
|
|
45
|
+
};
|
|
46
|
+
export declare const cloudLinkScheduleUnit: {
|
|
47
|
+
readonly hours: CloudLinkScheduleUnit;
|
|
48
|
+
readonly minutes: CloudLinkScheduleUnit;
|
|
49
|
+
};
|
|
50
|
+
declare const cloudLinkWarehouseSizeBrand: unique symbol;
|
|
51
|
+
export type CloudLinkWarehouseSize = string & {
|
|
52
|
+
readonly [cloudLinkWarehouseSizeBrand]: "CloudLinkWarehouseSize";
|
|
53
|
+
};
|
|
54
|
+
export declare const cloudLinkWarehouseSize: {
|
|
55
|
+
readonly xSmall: CloudLinkWarehouseSize;
|
|
56
|
+
readonly small: CloudLinkWarehouseSize;
|
|
57
|
+
readonly medium: CloudLinkWarehouseSize;
|
|
58
|
+
readonly large: CloudLinkWarehouseSize;
|
|
59
|
+
readonly xLarge: CloudLinkWarehouseSize;
|
|
60
|
+
readonly xxLarge: CloudLinkWarehouseSize;
|
|
61
|
+
readonly xxxLarge: CloudLinkWarehouseSize;
|
|
62
|
+
readonly x4Large: CloudLinkWarehouseSize;
|
|
63
|
+
readonly x5Large: CloudLinkWarehouseSize;
|
|
64
|
+
readonly x6Large: CloudLinkWarehouseSize;
|
|
65
|
+
};
|
|
66
|
+
declare const cloudLinkUsageTypeBrand: unique symbol;
|
|
67
|
+
export type CloudLinkUsageType = string & {
|
|
68
|
+
readonly [cloudLinkUsageTypeBrand]: "CloudLinkUsageType";
|
|
69
|
+
};
|
|
70
|
+
export declare const cloudLinkUsageType: {
|
|
71
|
+
readonly standard: CloudLinkUsageType;
|
|
72
|
+
readonly provider: CloudLinkUsageType;
|
|
73
|
+
readonly external: CloudLinkUsageType;
|
|
74
|
+
};
|
|
75
|
+
declare const cloudLinkTypeBrand: unique symbol;
|
|
76
|
+
export type CloudLinkType = string & {
|
|
77
|
+
readonly [cloudLinkTypeBrand]: "CloudLinkType";
|
|
78
|
+
};
|
|
79
|
+
export declare const cloudLinkTypeMetadata: {
|
|
80
|
+
readonly api: {
|
|
81
|
+
readonly config: "api";
|
|
82
|
+
readonly credentials: true;
|
|
83
|
+
};
|
|
84
|
+
readonly bigquery: {
|
|
85
|
+
readonly config: "bigQuery";
|
|
86
|
+
readonly credentials: true;
|
|
87
|
+
};
|
|
88
|
+
readonly databricks: {
|
|
89
|
+
readonly config: "databricks";
|
|
90
|
+
readonly credentials: true;
|
|
91
|
+
};
|
|
92
|
+
readonly elementum: {
|
|
93
|
+
readonly config: undefined;
|
|
94
|
+
readonly credentials: false;
|
|
95
|
+
};
|
|
96
|
+
readonly elementum_snowflake: {
|
|
97
|
+
readonly config: "elementumSnowflake";
|
|
98
|
+
readonly credentials: false;
|
|
99
|
+
};
|
|
100
|
+
readonly snowflake: {
|
|
101
|
+
readonly config: "snowflake";
|
|
102
|
+
readonly credentials: true;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare function cloudLinkScheduleUnitKey(value: CloudLinkScheduleUnit): keyof typeof cloudLinkScheduleUnit | undefined;
|
|
106
|
+
export declare function cloudLinkWarehouseSizeKey(value: CloudLinkWarehouseSize): keyof typeof cloudLinkWarehouseSize | undefined;
|
|
107
|
+
export declare function cloudLinkUsageTypeKey(value: CloudLinkUsageType): keyof typeof cloudLinkUsageType | undefined;
|
|
108
|
+
export declare function isCloudLinkWarehouseSize(value: string): value is CloudLinkWarehouseSize;
|
|
109
|
+
export interface CloudLinkSchedule {
|
|
110
|
+
readonly interval: number;
|
|
111
|
+
readonly unit: CloudLinkScheduleUnit;
|
|
112
|
+
}
|
|
113
|
+
type ExactlyOneCredential<Map extends object> = {
|
|
114
|
+
[K in keyof Map]: {
|
|
115
|
+
readonly [P in K]: Map[K];
|
|
116
|
+
} & {
|
|
117
|
+
readonly [P in Exclude<keyof Map, K>]?: never;
|
|
118
|
+
};
|
|
119
|
+
}[keyof Map];
|
|
120
|
+
export type CloudLinkCredentials = ExactlyOneCredential<{
|
|
121
|
+
readonly bearerToken: {
|
|
122
|
+
readonly token: OrganizationSecretValue;
|
|
123
|
+
};
|
|
124
|
+
readonly password: {
|
|
125
|
+
readonly username: string;
|
|
126
|
+
readonly password: OrganizationSecretValue;
|
|
127
|
+
};
|
|
128
|
+
readonly privateKey: {
|
|
129
|
+
readonly username: string;
|
|
130
|
+
};
|
|
131
|
+
readonly externalOauth: {
|
|
132
|
+
readonly clientId: string;
|
|
133
|
+
readonly clientSecret: OrganizationSecretValue;
|
|
134
|
+
readonly url: string;
|
|
135
|
+
readonly username?: string;
|
|
136
|
+
readonly password?: OrganizationSecretValue;
|
|
137
|
+
};
|
|
138
|
+
readonly serviceAccount: {
|
|
139
|
+
readonly json: OrganizationSecretValue;
|
|
140
|
+
};
|
|
141
|
+
readonly redacted: RedactedOrganizationSecret;
|
|
142
|
+
}>;
|
|
143
|
+
export declare const bearerTokenCredentials: (token: OrganizationSecretValue) => CloudLinkCredentials;
|
|
144
|
+
export declare const passwordCredentials: (opts: {
|
|
145
|
+
readonly username: string;
|
|
146
|
+
readonly password: OrganizationSecretValue;
|
|
147
|
+
}) => CloudLinkCredentials;
|
|
148
|
+
export declare const privateKeyCredentials: (username: string) => CloudLinkCredentials;
|
|
149
|
+
export declare const externalOauthCredentials: (opts: {
|
|
150
|
+
readonly clientId: string;
|
|
151
|
+
readonly clientSecret: OrganizationSecretValue;
|
|
152
|
+
readonly url: string;
|
|
153
|
+
readonly username?: string;
|
|
154
|
+
readonly password?: OrganizationSecretValue;
|
|
155
|
+
}) => CloudLinkCredentials;
|
|
156
|
+
export declare const serviceAccountCredentials: (json: OrganizationSecretValue) => CloudLinkCredentials;
|
|
157
|
+
export interface OrganizationCloudLink {
|
|
158
|
+
readonly name: string;
|
|
159
|
+
readonly type: CloudLinkType;
|
|
160
|
+
readonly cache?: boolean;
|
|
161
|
+
readonly encryptCache?: boolean;
|
|
162
|
+
readonly usageType?: CloudLinkUsageType;
|
|
163
|
+
readonly credentials?: CloudLinkCredentials;
|
|
164
|
+
readonly api?: {
|
|
165
|
+
readonly baseUrl: string;
|
|
166
|
+
};
|
|
167
|
+
readonly bigQuery?: {
|
|
168
|
+
readonly projectId: string;
|
|
169
|
+
readonly datasetId: string;
|
|
170
|
+
readonly location: string;
|
|
171
|
+
readonly readOnly: boolean;
|
|
172
|
+
readonly schedule?: CloudLinkSchedule;
|
|
173
|
+
};
|
|
174
|
+
readonly databricks?: {
|
|
175
|
+
readonly hostname: string;
|
|
176
|
+
readonly port: number;
|
|
177
|
+
readonly database: string;
|
|
178
|
+
readonly schema: string;
|
|
179
|
+
readonly readOnly: boolean;
|
|
180
|
+
readonly schedule?: CloudLinkSchedule;
|
|
181
|
+
};
|
|
182
|
+
readonly elementumSnowflake?: {
|
|
183
|
+
readonly region: string | UnavailableOrganizationValue;
|
|
184
|
+
readonly warehouseSize: CloudLinkWarehouseSize;
|
|
185
|
+
readonly schedule?: CloudLinkSchedule;
|
|
186
|
+
};
|
|
187
|
+
readonly snowflake?: {
|
|
188
|
+
readonly url: string;
|
|
189
|
+
readonly account: string;
|
|
190
|
+
readonly warehouse: string;
|
|
191
|
+
readonly role: string;
|
|
192
|
+
readonly readOnly: boolean;
|
|
193
|
+
readonly createDatabase?: string;
|
|
194
|
+
readonly createSchema?: string;
|
|
195
|
+
readonly gzip?: boolean;
|
|
196
|
+
readonly schedule?: CloudLinkSchedule;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export interface OrganizationEmailAlias {
|
|
200
|
+
readonly alias: string;
|
|
201
|
+
}
|
|
202
|
+
export interface OrganizationPhoneProvider {
|
|
203
|
+
readonly name: string;
|
|
204
|
+
readonly twilio: {
|
|
205
|
+
readonly accountId: OrganizationSecretValue;
|
|
206
|
+
readonly authToken: OrganizationSecretValue;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
type CloudLinkCommon = Pick<OrganizationCloudLink, "name" | "cache" | "encryptCache" | "usageType" | "credentials">;
|
|
210
|
+
export declare function apiCloudLink(opts: CloudLinkCommon & {
|
|
211
|
+
readonly baseUrl: string;
|
|
212
|
+
}): OrganizationCloudLink;
|
|
213
|
+
export declare function bigQueryCloudLink(opts: CloudLinkCommon & NonNullable<OrganizationCloudLink["bigQuery"]>): OrganizationCloudLink;
|
|
214
|
+
export declare function databricksCloudLink(opts: CloudLinkCommon & NonNullable<OrganizationCloudLink["databricks"]>): OrganizationCloudLink;
|
|
215
|
+
export declare function elementumCloudLink(opts: Omit<CloudLinkCommon, "credentials">): OrganizationCloudLink;
|
|
216
|
+
export declare function elementumSnowflakeCloudLink(opts: Omit<CloudLinkCommon, "credentials"> & NonNullable<OrganizationCloudLink["elementumSnowflake"]>): OrganizationCloudLink;
|
|
217
|
+
export declare function snowflakeCloudLink(opts: CloudLinkCommon & NonNullable<OrganizationCloudLink["snowflake"]>): OrganizationCloudLink;
|
|
218
|
+
export declare function emailAlias(alias: string): OrganizationEmailAlias;
|
|
219
|
+
export declare function twilioPhoneProvider(opts: {
|
|
220
|
+
readonly name: string;
|
|
221
|
+
readonly accountId: OrganizationSecretValue;
|
|
222
|
+
readonly authToken: OrganizationSecretValue;
|
|
223
|
+
}): OrganizationPhoneProvider;
|
|
224
|
+
export interface DefineOrganizationOptions {
|
|
225
|
+
readonly categories?: Readonly<Record<string, OrganizationCategory>>;
|
|
226
|
+
readonly groups?: Readonly<Record<string, OrganizationGroup>>;
|
|
227
|
+
readonly cloudLinks?: Readonly<Record<string, OrganizationCloudLink>>;
|
|
228
|
+
readonly emailAliases?: Readonly<Record<string, OrganizationEmailAlias>>;
|
|
229
|
+
readonly phoneProviders?: Readonly<Record<string, OrganizationPhoneProvider>>;
|
|
230
|
+
}
|
|
231
|
+
export interface ConfiguredOrganization {
|
|
232
|
+
readonly kind: "organizationConfig";
|
|
233
|
+
readonly categories: Readonly<Record<string, OrganizationCategory>>;
|
|
234
|
+
readonly groups: Readonly<Record<string, OrganizationGroup>>;
|
|
235
|
+
readonly cloudLinks: Readonly<Record<string, OrganizationCloudLink>>;
|
|
236
|
+
readonly emailAliases: Readonly<Record<string, OrganizationEmailAlias>>;
|
|
237
|
+
readonly phoneProviders: Readonly<Record<string, OrganizationPhoneProvider>>;
|
|
238
|
+
}
|
|
239
|
+
/** Organization-owned resources live in one ergonomic, optional `organization.ts` file. */
|
|
240
|
+
export declare function organization(opts: DefineOrganizationOptions): ConfiguredOrganization;
|
|
241
|
+
export {};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { EdkValidationError } from "../../../elementum-entity-client/errors.js";
|
|
2
|
+
export function secret(variable) {
|
|
3
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(variable)) {
|
|
4
|
+
throw new EdkValidationError("organization secret variable must be a Terraform identifier; supply it as TF_VAR_<variable>.");
|
|
5
|
+
}
|
|
6
|
+
return { __kind: "organizationSecret", variable };
|
|
7
|
+
}
|
|
8
|
+
/** Pull-only placeholder for a write-only credential. Replace with secret(...). */
|
|
9
|
+
export function redactedSecret(variable) {
|
|
10
|
+
return { __kind: "redactedOrganizationSecret", variable };
|
|
11
|
+
}
|
|
12
|
+
/** Pull-only marker for an input the platform does not expose. Replace it with the real value. */
|
|
13
|
+
export function unavailableValue(field) {
|
|
14
|
+
return { __kind: "unavailableOrganizationValue", field };
|
|
15
|
+
}
|
|
16
|
+
export const cloudLinkScheduleUnit = {
|
|
17
|
+
hours: "HOUR",
|
|
18
|
+
minutes: "MINUTE",
|
|
19
|
+
};
|
|
20
|
+
export const cloudLinkWarehouseSize = {
|
|
21
|
+
xSmall: "XSMALL",
|
|
22
|
+
small: "SMALL",
|
|
23
|
+
medium: "MEDIUM",
|
|
24
|
+
large: "LARGE",
|
|
25
|
+
xLarge: "XLARGE",
|
|
26
|
+
xxLarge: "XXLARGE",
|
|
27
|
+
xxxLarge: "XXXLARGE",
|
|
28
|
+
x4Large: "X4LARGE",
|
|
29
|
+
x5Large: "X5LARGE",
|
|
30
|
+
x6Large: "X6LARGE",
|
|
31
|
+
};
|
|
32
|
+
export const cloudLinkUsageType = {
|
|
33
|
+
standard: "STANDARD",
|
|
34
|
+
provider: "PROVIDER",
|
|
35
|
+
external: "EXTERNAL",
|
|
36
|
+
};
|
|
37
|
+
const cloudLinkType = {
|
|
38
|
+
api: "api",
|
|
39
|
+
bigQuery: "bigquery",
|
|
40
|
+
databricks: "databricks",
|
|
41
|
+
elementum: "elementum",
|
|
42
|
+
elementumSnowflake: "elementum_snowflake",
|
|
43
|
+
snowflake: "snowflake",
|
|
44
|
+
};
|
|
45
|
+
export const cloudLinkTypeMetadata = {
|
|
46
|
+
api: { config: "api", credentials: true },
|
|
47
|
+
bigquery: { config: "bigQuery", credentials: true },
|
|
48
|
+
databricks: { config: "databricks", credentials: true },
|
|
49
|
+
elementum: { config: undefined, credentials: false },
|
|
50
|
+
elementum_snowflake: { config: "elementumSnowflake", credentials: false },
|
|
51
|
+
snowflake: { config: "snowflake", credentials: true },
|
|
52
|
+
};
|
|
53
|
+
export function cloudLinkScheduleUnitKey(value) {
|
|
54
|
+
return Object.entries(cloudLinkScheduleUnit)
|
|
55
|
+
.find(([, candidate]) => candidate === value)?.[0];
|
|
56
|
+
}
|
|
57
|
+
export function cloudLinkWarehouseSizeKey(value) {
|
|
58
|
+
return Object.entries(cloudLinkWarehouseSize)
|
|
59
|
+
.find(([, candidate]) => candidate === value)?.[0];
|
|
60
|
+
}
|
|
61
|
+
export function cloudLinkUsageTypeKey(value) {
|
|
62
|
+
return Object.entries(cloudLinkUsageType)
|
|
63
|
+
.find(([, candidate]) => candidate === value)?.[0];
|
|
64
|
+
}
|
|
65
|
+
export function isCloudLinkWarehouseSize(value) {
|
|
66
|
+
return Object.values(cloudLinkWarehouseSize).some((candidate) => candidate === value);
|
|
67
|
+
}
|
|
68
|
+
export const bearerTokenCredentials = (token) => ({ bearerToken: { token } });
|
|
69
|
+
export const passwordCredentials = (opts) => ({ password: opts });
|
|
70
|
+
export const privateKeyCredentials = (username) => ({ privateKey: { username } });
|
|
71
|
+
export const externalOauthCredentials = (opts) => ({ externalOauth: opts });
|
|
72
|
+
export const serviceAccountCredentials = (json) => ({ serviceAccount: { json } });
|
|
73
|
+
export function apiCloudLink(opts) {
|
|
74
|
+
const { baseUrl, ...common } = opts;
|
|
75
|
+
return { ...common, type: cloudLinkType.api, api: { baseUrl } };
|
|
76
|
+
}
|
|
77
|
+
export function bigQueryCloudLink(opts) {
|
|
78
|
+
const { projectId, datasetId, location, readOnly, schedule, ...common } = opts;
|
|
79
|
+
return { ...common, type: cloudLinkType.bigQuery, bigQuery: { projectId, datasetId, location, readOnly, ...(schedule !== undefined && { schedule }) } };
|
|
80
|
+
}
|
|
81
|
+
export function databricksCloudLink(opts) {
|
|
82
|
+
const { hostname, port, database, schema, readOnly, schedule, ...common } = opts;
|
|
83
|
+
return { ...common, type: cloudLinkType.databricks, databricks: { hostname, port, database, schema, readOnly, ...(schedule !== undefined && { schedule }) } };
|
|
84
|
+
}
|
|
85
|
+
export function elementumCloudLink(opts) {
|
|
86
|
+
return { ...opts, type: cloudLinkType.elementum };
|
|
87
|
+
}
|
|
88
|
+
export function elementumSnowflakeCloudLink(opts) {
|
|
89
|
+
const { region, warehouseSize, schedule, ...common } = opts;
|
|
90
|
+
return { ...common, type: cloudLinkType.elementumSnowflake, elementumSnowflake: { region, warehouseSize, ...(schedule !== undefined && { schedule }) } };
|
|
91
|
+
}
|
|
92
|
+
export function snowflakeCloudLink(opts) {
|
|
93
|
+
const { url, account, warehouse, role, readOnly, createDatabase, createSchema, gzip, schedule, ...common } = opts;
|
|
94
|
+
return { ...common, type: cloudLinkType.snowflake, snowflake: { url, account, warehouse, role, readOnly, ...(createDatabase !== undefined && { createDatabase }), ...(createSchema !== undefined && { createSchema }), ...(gzip !== undefined && { gzip }), ...(schedule !== undefined && { schedule }) } };
|
|
95
|
+
}
|
|
96
|
+
export function emailAlias(alias) {
|
|
97
|
+
if (alias.trim() === "")
|
|
98
|
+
throw new EdkValidationError("email alias must not be empty");
|
|
99
|
+
return { alias };
|
|
100
|
+
}
|
|
101
|
+
export function twilioPhoneProvider(opts) {
|
|
102
|
+
return { name: opts.name, twilio: { accountId: opts.accountId, authToken: opts.authToken } };
|
|
103
|
+
}
|
|
104
|
+
function requireNames(bag, values) {
|
|
105
|
+
for (const [key, value] of Object.entries(values ?? {})) {
|
|
106
|
+
if (key.trim() === "")
|
|
107
|
+
throw new EdkValidationError(`organization ${bag} keys must be non-empty.`);
|
|
108
|
+
if (value.name.trim() === "")
|
|
109
|
+
throw new EdkValidationError(`organization ${bag}.${key}.name must be non-empty.`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function validateCloudLink(key, value) {
|
|
113
|
+
const metadata = cloudLinkTypeMetadata[value.type];
|
|
114
|
+
if (metadata === undefined) {
|
|
115
|
+
throw new EdkValidationError(`organization cloudLinks.${key} has unsupported type ${JSON.stringify(value.type)}.`);
|
|
116
|
+
}
|
|
117
|
+
const configs = {
|
|
118
|
+
api: value.api,
|
|
119
|
+
bigQuery: value.bigQuery,
|
|
120
|
+
databricks: value.databricks,
|
|
121
|
+
elementumSnowflake: value.elementumSnowflake,
|
|
122
|
+
snowflake: value.snowflake,
|
|
123
|
+
};
|
|
124
|
+
for (const [configKey, config] of Object.entries(configs)) {
|
|
125
|
+
if (configKey === metadata.config && config === undefined) {
|
|
126
|
+
throw new EdkValidationError(`organization cloudLinks.${key} requires its ${configKey} configuration.`);
|
|
127
|
+
}
|
|
128
|
+
if (configKey !== metadata.config && config !== undefined) {
|
|
129
|
+
throw new EdkValidationError(`organization cloudLinks.${key} type ${value.type} cannot include ${configKey} configuration.`);
|
|
130
|
+
}
|
|
131
|
+
const schedule = config !== undefined && "schedule" in config ? config.schedule : undefined;
|
|
132
|
+
if (schedule !== undefined && (!Number.isInteger(schedule.interval) || schedule.interval < 1)) {
|
|
133
|
+
throw new EdkValidationError(`organization cloudLinks.${key} schedule interval must be a positive integer.`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (!metadata.credentials && value.credentials !== undefined) {
|
|
137
|
+
throw new EdkValidationError(`organization cloudLinks.${key} type ${value.type} cannot include credentials.`);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/** Organization-owned resources live in one ergonomic, optional `organization.ts` file. */
|
|
141
|
+
export function organization(opts) {
|
|
142
|
+
requireNames("categories", opts.categories);
|
|
143
|
+
requireNames("groups", opts.groups);
|
|
144
|
+
requireNames("cloudLinks", opts.cloudLinks);
|
|
145
|
+
requireNames("phoneProviders", opts.phoneProviders);
|
|
146
|
+
for (const [key, value] of Object.entries(opts.emailAliases ?? {})) {
|
|
147
|
+
if (key.trim() === "" || value.alias.trim() === "")
|
|
148
|
+
throw new EdkValidationError(`organization emailAliases.${key} must have a non-empty alias.`);
|
|
149
|
+
}
|
|
150
|
+
for (const [key, value] of Object.entries(opts.cloudLinks ?? {}))
|
|
151
|
+
validateCloudLink(key, value);
|
|
152
|
+
for (const [key, group] of Object.entries(opts.groups ?? {})) {
|
|
153
|
+
if (group.dynamic === true && (group.members?.length ?? 0) > 0) {
|
|
154
|
+
throw new EdkValidationError(`organization groups.${key} cannot set members on a dynamic group.`);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
kind: "organizationConfig",
|
|
159
|
+
categories: opts.categories ?? {},
|
|
160
|
+
groups: opts.groups ?? {},
|
|
161
|
+
cloudLinks: opts.cloudLinks ?? {},
|
|
162
|
+
emailAliases: opts.emailAliases ?? {},
|
|
163
|
+
phoneProviders: opts.phoneProviders ?? {},
|
|
164
|
+
};
|
|
165
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { organization, apiCloudLink, bearerTokenCredentials, bigQueryCloudLink, cloudLinkScheduleUnit, cloudLinkUsageType, cloudLinkWarehouseSize, databricksCloudLink, emailAlias, elementumCloudLink, elementumSnowflakeCloudLink, externalOauthCredentials, passwordCredentials, privateKeyCredentials, serviceAccountCredentials, snowflakeCloudLink, twilioPhoneProvider, type ConfiguredOrganization, type DefineOrganizationOptions, type OrganizationCategory, type OrganizationGroup, redactedSecret, secret, unavailableValue, type CloudLinkCredentials, type CloudLinkSchedule, type CloudLinkScheduleUnit, type CloudLinkUsageType, type CloudLinkWarehouseSize, type OrganizationCloudLink, type OrganizationEmailAlias, type OrganizationPhoneProvider, type OrganizationSecret, type OrganizationSecretValue, type RedactedOrganizationSecret, type UnavailableOrganizationValue, } from "./build.js";
|
|
2
|
+
export { userRef, type RoleUserRef as OrganizationUserRef } from "../role/build.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { organization, apiCloudLink, bearerTokenCredentials, bigQueryCloudLink, cloudLinkScheduleUnit, cloudLinkUsageType, cloudLinkWarehouseSize, databricksCloudLink, emailAlias, elementumCloudLink, elementumSnowflakeCloudLink, externalOauthCredentials, passwordCredentials, privateKeyCredentials, serviceAccountCredentials, snowflakeCloudLink, twilioPhoneProvider, redactedSecret, secret, unavailableValue, } from "./build.js";
|
|
2
|
+
export { userRef } from "../role/build.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NO_CANVAS, NO_CATALOG, NO_DATA } from "../../graph/types.js";
|
|
2
|
+
import { organizationToTf } from "./to-tf.js";
|
|
3
|
+
export const organizationModule = {
|
|
4
|
+
kind: "org",
|
|
5
|
+
stream: { role: "streamMember" },
|
|
6
|
+
authoring: { unit: "inline", bag: "organization" },
|
|
7
|
+
parents: [],
|
|
8
|
+
resource: { shape: "none" },
|
|
9
|
+
data: NO_DATA,
|
|
10
|
+
lifecycle: {
|
|
11
|
+
participates: true,
|
|
12
|
+
toTf: (entity, ctx) => ({
|
|
13
|
+
blocks: organizationToTf(entity.payload, {
|
|
14
|
+
orgRefs: ctx.orgRefs,
|
|
15
|
+
diagnostics: ctx.diagnostics,
|
|
16
|
+
}),
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
canvas: NO_CANVAS,
|
|
20
|
+
catalog: NO_CATALOG,
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OrgRefLookup } from "../../engine/build/context.js";
|
|
2
|
+
import { type TfBlock } from "../../engine/tf/index.js";
|
|
3
|
+
import type { ConfiguredOrganization } from "./build.js";
|
|
4
|
+
export declare function organizationToTf(organization: ConfiguredOrganization, ctx: {
|
|
5
|
+
readonly orgRefs: OrgRefLookup;
|
|
6
|
+
readonly diagnostics?: string[];
|
|
7
|
+
}): TfBlock[];
|