@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.0-preview.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +408 -3
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +188 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.js +20 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.d.ts +245 -0
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent.js +30 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.d.ts +18 -0
- package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.js +8 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.d.ts +718 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.js +52 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.d.ts +23 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.d.ts +148 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.js +12 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.d.ts +63 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/format.js +17 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +39 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.js +35 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +116 -0
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.js +11 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +178 -0
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.js +18 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.d.ts +200 -0
- package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.d.ts +141 -0
- package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.js +22 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +123 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.js +14 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +78 -0
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +23 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.d.ts +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/index.js +1 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.d.ts +265 -0
- package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.js +15 -0
- package/dist-sdk/elementum-entity-client/errors.d.ts +90 -0
- package/dist-sdk/elementum-entity-client/errors.js +111 -0
- package/dist-sdk/elementum-entity-client/models/connection.d.ts +30 -0
- package/dist-sdk/elementum-entity-client/models/connection.js +16 -0
- package/dist-sdk/elementum-entity-client/types.d.ts +71 -0
- package/dist-sdk/elementum-entity-client/types.js +1 -0
- package/dist-sdk/fs/entity.d.ts +104 -0
- package/dist-sdk/fs/entity.js +52 -0
- package/dist-sdk/pull/util.d.ts +130 -0
- package/dist-sdk/pull/util.js +204 -0
- package/dist-sdk/src/catalog/factories.d.ts +189 -0
- package/dist-sdk/src/catalog/factories.js +202 -0
- package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
- package/dist-sdk/src/catalog/from-authoring.js +462 -0
- package/dist-sdk/src/catalog/index.d.ts +11 -0
- package/dist-sdk/src/catalog/index.js +11 -0
- package/dist-sdk/src/catalog/org.d.ts +11 -0
- package/dist-sdk/src/catalog/org.js +211 -0
- package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
- package/dist-sdk/src/catalog/render-helpers.js +82 -0
- package/dist-sdk/src/catalog/render.d.ts +36 -0
- package/dist-sdk/src/catalog/render.js +176 -0
- package/dist-sdk/src/catalog/token.d.ts +10 -0
- package/dist-sdk/src/catalog/token.js +62 -0
- package/dist-sdk/src/catalog/types.d.ts +158 -0
- package/dist-sdk/src/catalog/types.js +83 -0
- package/dist-sdk/src/catalog/write.d.ts +43 -0
- package/dist-sdk/src/catalog/write.js +109 -0
- package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
- package/dist-sdk/src/core/app-to-ui.js +75 -0
- package/dist-sdk/src/core/index.d.ts +10 -0
- package/dist-sdk/src/core/index.js +9 -0
- package/dist-sdk/src/core/system-fields.d.ts +93 -0
- package/dist-sdk/src/core/system-fields.js +151 -0
- package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
- package/dist-sdk/src/core/triggers/on-demand.js +112 -0
- package/dist-sdk/src/core/types/ai-provider.d.ts +36 -0
- package/dist-sdk/src/core/types/ai-provider.js +32 -0
- package/dist-sdk/src/core/types/app.d.ts +838 -0
- package/dist-sdk/src/core/types/app.js +210 -0
- package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
- package/dist-sdk/src/core/types/aspect-category.js +33 -0
- package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
- package/dist-sdk/src/core/types/cloud-link.js +32 -0
- package/dist-sdk/src/core/types/display-block.d.ts +149 -0
- package/dist-sdk/src/core/types/display-block.js +61 -0
- package/dist-sdk/src/core/types/group.d.ts +13 -0
- package/dist-sdk/src/core/types/group.js +6 -0
- package/dist-sdk/src/core/types/platform.d.ts +2 -0
- package/dist-sdk/src/core/types/platform.js +1 -0
- package/dist-sdk/src/core/types/user.d.ts +20 -0
- package/dist-sdk/src/core/types/user.js +8 -0
- package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
- package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
- package/dist-sdk/src/engine/build/context.d.ts +49 -0
- package/dist-sdk/src/engine/build/context.js +6 -0
- package/dist-sdk/src/engine/entity.d.ts +44 -0
- package/dist-sdk/src/engine/entity.js +15 -0
- package/dist-sdk/src/engine/pull/context.d.ts +23 -0
- package/dist-sdk/src/engine/pull/context.js +44 -0
- package/dist-sdk/src/engine/pull/org.d.ts +44 -0
- package/dist-sdk/src/engine/pull/org.js +104 -0
- package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
- package/dist-sdk/src/engine/tf/escape.js +28 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
- package/dist-sdk/src/engine/tf/expr.js +405 -0
- package/dist-sdk/src/engine/tf/index.d.ts +12 -0
- package/dist-sdk/src/engine/tf/index.js +11 -0
- package/dist-sdk/src/engine/tf/labels.d.ts +31 -0
- package/dist-sdk/src/engine/tf/labels.js +125 -0
- package/dist-sdk/src/engine/tf/model.d.ts +84 -0
- package/dist-sdk/src/engine/tf/model.js +49 -0
- package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
- package/dist-sdk/src/engine/tf/parse.js +189 -0
- package/dist-sdk/src/engine/tf/render.d.ts +13 -0
- package/dist-sdk/src/engine/tf/render.js +102 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
- package/dist-sdk/src/entities/agent/build.d.ts +108 -0
- package/dist-sdk/src/entities/agent/build.js +148 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +18 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +177 -0
- package/dist-sdk/src/entities/agent/from-tf.d.ts +50 -0
- package/dist-sdk/src/entities/agent/from-tf.js +169 -0
- package/dist-sdk/src/entities/agent/index.d.ts +7 -0
- package/dist-sdk/src/entities/agent/index.js +7 -0
- package/dist-sdk/src/entities/agent/module.d.ts +4 -0
- package/dist-sdk/src/entities/agent/module.js +116 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/agent/to-tf.js +136 -0
- package/dist-sdk/src/entities/agent/tools.d.ts +205 -0
- package/dist-sdk/src/entities/agent/tools.js +199 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +63 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.js +169 -0
- package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-tool/module.js +32 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +38 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.js +164 -0
- package/dist-sdk/src/entities/agent-tool/types.d.ts +42 -0
- package/dist-sdk/src/entities/agent-tool/types.js +70 -0
- package/dist-sdk/src/entities/app/build.d.ts +318 -0
- package/dist-sdk/src/entities/app/build.js +325 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +165 -0
- package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
- package/dist-sdk/src/entities/app/display-blocks.js +34 -0
- package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
- package/dist-sdk/src/entities/app/from-tf.js +180 -0
- package/dist-sdk/src/entities/app/index.d.ts +11 -0
- package/dist-sdk/src/entities/app/index.js +10 -0
- package/dist-sdk/src/entities/app/locals.d.ts +11 -0
- package/dist-sdk/src/entities/app/locals.js +31 -0
- package/dist-sdk/src/entities/app/module.d.ts +4 -0
- package/dist-sdk/src/entities/app/module.js +59 -0
- package/dist-sdk/src/entities/app/to-tf.d.ts +28 -0
- package/dist-sdk/src/entities/app/to-tf.js +183 -0
- package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/build.js +56 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
- package/dist-sdk/src/entities/approval-chain/index.js +6 -0
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
- package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
- package/dist-sdk/src/entities/automation/build.d.ts +215 -0
- package/dist-sdk/src/entities/automation/build.js +424 -0
- package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +135 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +40 -0
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1040 -0
- package/dist-sdk/src/entities/automation/filter.d.ts +81 -0
- package/dist-sdk/src/entities/automation/filter.js +146 -0
- package/dist-sdk/src/entities/automation/from-tf.d.ts +36 -0
- package/dist-sdk/src/entities/automation/from-tf.js +252 -0
- package/dist-sdk/src/entities/automation/index.d.ts +18 -0
- package/dist-sdk/src/entities/automation/index.js +21 -0
- package/dist-sdk/src/entities/automation/module.d.ts +3 -0
- package/dist-sdk/src/entities/automation/module.js +153 -0
- package/dist-sdk/src/entities/automation/operators.d.ts +66 -0
- package/dist-sdk/src/entities/automation/operators.js +43 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +62 -0
- package/dist-sdk/src/entities/automation/script-code.js +366 -0
- package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
- package/dist-sdk/src/entities/automation/serialize.js +41 -0
- package/dist-sdk/src/entities/automation/tasks.d.ts +535 -0
- package/dist-sdk/src/entities/automation/tasks.js +697 -0
- package/dist-sdk/src/entities/automation/to-tf.d.ts +38 -0
- package/dist-sdk/src/entities/automation/to-tf.js +266 -0
- package/dist-sdk/src/entities/automation/triggers.d.ts +197 -0
- package/dist-sdk/src/entities/automation/triggers.js +202 -0
- package/dist-sdk/src/entities/automation/types.d.ts +53 -0
- package/dist-sdk/src/entities/automation/types.js +101 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +76 -0
- package/dist-sdk/src/entities/automation/value-ref-tf.js +190 -0
- package/dist-sdk/src/entities/element/build.d.ts +108 -0
- package/dist-sdk/src/entities/element/build.js +109 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
- package/dist-sdk/src/entities/element/from-tf.js +155 -0
- package/dist-sdk/src/entities/element/index.d.ts +9 -0
- package/dist-sdk/src/entities/element/index.js +9 -0
- package/dist-sdk/src/entities/element/locals.d.ts +7 -0
- package/dist-sdk/src/entities/element/locals.js +12 -0
- package/dist-sdk/src/entities/element/module.d.ts +8 -0
- package/dist-sdk/src/entities/element/module.js +63 -0
- package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/element/to-tf.js +151 -0
- package/dist-sdk/src/entities/field/build.d.ts +69 -0
- package/dist-sdk/src/entities/field/build.js +74 -0
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
- package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
- package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
- package/dist-sdk/src/entities/field/calc/date.js +109 -0
- package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
- package/dist-sdk/src/entities/field/calc/index.js +433 -0
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
- package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
- package/dist-sdk/src/entities/field/calc/runtime.js +170 -0
- package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
- package/dist-sdk/src/entities/field/calc/text.js +208 -0
- package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
- package/dist-sdk/src/entities/field/calc/types.js +23 -0
- package/dist-sdk/src/entities/field/calc.d.ts +108 -0
- package/dist-sdk/src/entities/field/calc.js +54 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +29 -0
- package/dist-sdk/src/entities/field/from-tf.js +73 -0
- package/dist-sdk/src/entities/field/locals.d.ts +8 -0
- package/dist-sdk/src/entities/field/locals.js +24 -0
- package/dist-sdk/src/entities/field/module.d.ts +3 -0
- package/dist-sdk/src/entities/field/module.js +49 -0
- package/dist-sdk/src/entities/field/options.d.ts +27 -0
- package/dist-sdk/src/entities/field/options.js +76 -0
- package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
- package/dist-sdk/src/entities/field/record-shape.js +1 -0
- package/dist-sdk/src/entities/field/to-tf.d.ts +55 -0
- package/dist-sdk/src/entities/field/to-tf.js +97 -0
- package/dist-sdk/src/entities/field/types.d.ts +27 -0
- package/dist-sdk/src/entities/field/types.js +46 -0
- package/dist-sdk/src/entities/file-reader/build.d.ts +124 -0
- package/dist-sdk/src/entities/file-reader/build.js +105 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +5 -0
- package/dist-sdk/src/entities/file-reader/index.js +5 -0
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
- package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
- package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
- package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
- package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
- package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
- package/dist-sdk/src/entities/flow/activities/form.js +36 -0
- package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
- package/dist-sdk/src/entities/flow/activities/index.js +13 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
- package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
- package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
- package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
- package/dist-sdk/src/entities/flow/activities/types.js +1 -0
- package/dist-sdk/src/entities/flow/build.d.ts +38 -0
- package/dist-sdk/src/entities/flow/build.js +115 -0
- package/dist-sdk/src/entities/flow/index.d.ts +8 -0
- package/dist-sdk/src/entities/flow/index.js +7 -0
- package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
- package/dist-sdk/src/entities/flow/serialize.js +94 -0
- package/dist-sdk/src/entities/flow/util.d.ts +27 -0
- package/dist-sdk/src/entities/flow/util.js +38 -0
- package/dist-sdk/src/entities/org/category.d.ts +5 -0
- package/dist-sdk/src/entities/org/category.js +33 -0
- package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
- package/dist-sdk/src/entities/org/cloud-link.js +33 -0
- package/dist-sdk/src/entities/org/connector.d.ts +5 -0
- package/dist-sdk/src/entities/org/connector.js +37 -0
- package/dist-sdk/src/entities/org/group.d.ts +5 -0
- package/dist-sdk/src/entities/org/group.js +31 -0
- package/dist-sdk/src/entities/org/index.d.ts +10 -0
- package/dist-sdk/src/entities/org/index.js +10 -0
- package/dist-sdk/src/entities/org/role.d.ts +7 -0
- package/dist-sdk/src/entities/org/role.js +21 -0
- package/dist-sdk/src/entities/org/user.d.ts +7 -0
- package/dist-sdk/src/entities/org/user.js +21 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
- package/dist-sdk/src/entities/search-table/build.js +79 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
- package/dist-sdk/src/entities/search-table/index.js +5 -0
- package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
- package/dist-sdk/src/entities/search-table/module.js +64 -0
- package/dist-sdk/src/entities/shared/context.d.ts +93 -0
- package/dist-sdk/src/entities/shared/context.js +156 -0
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +242 -0
- package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
- package/dist-sdk/src/entities/shared/filters/index.js +372 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/types.js +7 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
- package/dist-sdk/src/entities/shared/ref.js +119 -0
- package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
- package/dist-sdk/src/entities/shared/types/common.js +64 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +49 -0
- package/dist-sdk/src/entities/shared/types/field-types.js +48 -0
- package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
- package/dist-sdk/src/entities/shared/types/platform.js +10 -0
- package/dist-sdk/src/entities/skill/build.d.ts +25 -0
- package/dist-sdk/src/entities/skill/build.js +50 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +20 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +96 -0
- package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/from-tf.js +95 -0
- package/dist-sdk/src/entities/skill/index.d.ts +7 -0
- package/dist-sdk/src/entities/skill/index.js +7 -0
- package/dist-sdk/src/entities/skill/module.d.ts +4 -0
- package/dist-sdk/src/entities/skill/module.js +106 -0
- package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/skill/to-tf.js +58 -0
- package/dist-sdk/src/entities/skill/tools.d.ts +71 -0
- package/dist-sdk/src/entities/skill/tools.js +88 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +47 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +121 -0
- package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
- package/dist-sdk/src/entities/skill-tool/module.js +21 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +32 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +107 -0
- package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
- package/dist-sdk/src/entities/skill-tool/types.js +67 -0
- package/dist-sdk/src/entities/table/build.d.ts +74 -0
- package/dist-sdk/src/entities/table/build.js +339 -0
- package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
- package/dist-sdk/src/entities/table/catalog-render.js +39 -0
- package/dist-sdk/src/entities/table/fields.d.ts +81 -0
- package/dist-sdk/src/entities/table/fields.js +70 -0
- package/dist-sdk/src/entities/table/filter.d.ts +41 -0
- package/dist-sdk/src/entities/table/filter.js +89 -0
- package/dist-sdk/src/entities/table/index.d.ts +8 -0
- package/dist-sdk/src/entities/table/index.js +12 -0
- package/dist-sdk/src/entities/table/joins.d.ts +26 -0
- package/dist-sdk/src/entities/table/joins.js +31 -0
- package/dist-sdk/src/entities/table/keys.d.ts +11 -0
- package/dist-sdk/src/entities/table/keys.js +25 -0
- package/dist-sdk/src/entities/table/module.d.ts +5 -0
- package/dist-sdk/src/entities/table/module.js +25 -0
- package/dist-sdk/src/entities/table/state.d.ts +39 -0
- package/dist-sdk/src/entities/table/state.js +43 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +25 -0
- package/dist-sdk/src/entities/view/from-tf.js +233 -0
- package/dist-sdk/src/entities/view/module.d.ts +24 -0
- package/dist-sdk/src/entities/view/module.js +61 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +63 -0
- package/dist-sdk/src/entities/view/to-tf.js +156 -0
- package/dist-sdk/src/entities/view/types.d.ts +58 -0
- package/dist-sdk/src/entities/view/types.js +89 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +14 -0
- package/dist-sdk/src/graph/deferred-catalog-render.js +37 -0
- package/dist-sdk/src/graph/index.d.ts +83 -0
- package/dist-sdk/src/graph/index.js +207 -0
- package/dist-sdk/src/graph/modules.d.ts +7 -0
- package/dist-sdk/src/graph/modules.js +37 -0
- package/dist-sdk/src/graph/types.d.ts +301 -0
- package/dist-sdk/src/graph/types.js +102 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
- package/dist-sdk/src/internal/sdk-package.js +23 -0
- package/package.json +173 -8
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape mirrors for every verb on antman's aspect endpoints —
|
|
3
|
+
* request bodies, read responses, pull responses, compose/update
|
|
4
|
+
* responses. One file covers the entire aspect surface so consumers
|
|
5
|
+
* can `import { ... } from "./aspect.js"` without juggling
|
|
6
|
+
* per-endpoint files.
|
|
7
|
+
*
|
|
8
|
+
* Mirrors of ultron's:
|
|
9
|
+
* - `AgentAspectInput` / `AgentAspectUpdateInput` / `AgentCategoryInput`
|
|
10
|
+
* (`ultron/.../aspect/agent/model/`)
|
|
11
|
+
* - `CloudMappingInput`, `CloudOptionsInput`, `RecordCreateTypesInput`,
|
|
12
|
+
* `ServiceConfigInput` (`ultron/.../aspect/definition/model/`)
|
|
13
|
+
* - `AgentAspectResponse` / `AgentAspectUpdateResponse` (compose +
|
|
14
|
+
* update response shapes)
|
|
15
|
+
*
|
|
16
|
+
* Antman declares the compose/update bodies as `Map<String, Object>`
|
|
17
|
+
* to stay tolerant to ultron schema drift, but the EDK side is fully
|
|
18
|
+
* typed via `AgentAspectInput` / `AgentAspectUpdateInput`. Antman
|
|
19
|
+
* forwards the body verbatim and returns ultron's response with
|
|
20
|
+
* `aspectId` + `aspectName`, which is what the late-binding registry
|
|
21
|
+
* needs; the entity-client normalizes that to `id` on the way out
|
|
22
|
+
* — see `aspects/index.ts`.
|
|
23
|
+
*
|
|
24
|
+
* Cross-entity imports are `import type` on purpose — `Aspect`
|
|
25
|
+
* references `Agent` and `Agent` references `Aspect`, which is a
|
|
26
|
+
* type-level cycle. `import type` is erased at compile time so no
|
|
27
|
+
* runtime import is emitted and the cycle never materializes in JS.
|
|
28
|
+
* Keep these imports type-only; promoting them to value imports will
|
|
29
|
+
* reintroduce the runtime cycle and can break module initialization.
|
|
30
|
+
*
|
|
31
|
+
* Picklist values are canonical on `picklistValues` across all
|
|
32
|
+
* endpoints — the entity-client normalizes antman's wire-side `values`
|
|
33
|
+
* from the read endpoints to that name. See
|
|
34
|
+
* `aspects/index.ts:normalizeFieldNames`.
|
|
35
|
+
*
|
|
36
|
+
* Symmetry note: shapes that read identically as compose-side input
|
|
37
|
+
* and as pull-side response collapse to one named type that serves
|
|
38
|
+
* both directions. {@link AspectCategory} (was `AgentCategoryInput` +
|
|
39
|
+
* `AspectCategoryRef`) carries an optional `id` — compose ignores it
|
|
40
|
+
* (server mints); pull populates it. {@link AspectNumericFieldFormat}
|
|
41
|
+
* and {@link AspectFieldQrFormat} live in `format.ts` and likewise
|
|
42
|
+
* serve both directions. {@link PicklistValue} (was
|
|
43
|
+
* `AspectPicklistValue` + `PicklistValuePull`) is the canonical
|
|
44
|
+
* picklist-value shape — read endpoints populate id+label only; pull
|
|
45
|
+
* additionally populates active/color/icon/parentPicklistValueIds.
|
|
46
|
+
* One field-result row type ({@link AspectFieldResult}) covers
|
|
47
|
+
* compose-created, update-updated, and update-created results — the
|
|
48
|
+
* shapes were structurally identical apart from the `system` flag.
|
|
49
|
+
* One {@link AspectOperationSummary} covers both compose and update
|
|
50
|
+
* summary slots with optional counters.
|
|
51
|
+
*/
|
|
52
|
+
import type { Connection } from "../../../models/connection.js";
|
|
53
|
+
import type { AgentType } from "../../agents/models/agent.js";
|
|
54
|
+
import type { Skill } from "../../skills/models/skill.js";
|
|
55
|
+
import type { Automation } from "../../automation/models/automation.js";
|
|
56
|
+
import type { AspectFieldInput } from "./field-types.js";
|
|
57
|
+
import type { AspectFieldQrFormat, AspectNumericFieldFormat } from "./format.js";
|
|
58
|
+
/** Mirror of `AspectType` — the five aspect kinds ultron supports. */
|
|
59
|
+
export type AspectTypeWire = "APP" | "ELEMENT" | "TABLE" | "TASK" | "TRANSACTION";
|
|
60
|
+
/**
|
|
61
|
+
* Request shape for `POST /v1/apps/definition` (getAspectDefinition).
|
|
62
|
+
*
|
|
63
|
+
* Mirrors antman's `AppDefinitionInput` Java record (kept under that
|
|
64
|
+
* Java name antman-side; the EDK exposes it as `AspectDefinitionInput`
|
|
65
|
+
* to match the "aspect is the domain entity" mental model). `aspectId`
|
|
66
|
+
* is required; the six `include*` flags default to false on the wire
|
|
67
|
+
* so callers only pay for the subtrees they actually need.
|
|
68
|
+
*
|
|
69
|
+
* The EDK pull pipeline typically passes
|
|
70
|
+
* `{ includeFields: true, includeAutomations: true, includeAgents: true }`
|
|
71
|
+
* — what the printer reads — and leaves the rest false to keep
|
|
72
|
+
* payloads small.
|
|
73
|
+
*/
|
|
74
|
+
export interface AspectDefinitionInput {
|
|
75
|
+
readonly aspectId: string;
|
|
76
|
+
readonly includeFields?: boolean;
|
|
77
|
+
readonly includeAgenticSkills?: boolean;
|
|
78
|
+
readonly includeAgents?: boolean;
|
|
79
|
+
readonly includeAutomations?: boolean;
|
|
80
|
+
readonly includeFlows?: boolean;
|
|
81
|
+
readonly includeApprovalChains?: boolean;
|
|
82
|
+
readonly includeSearchTables?: boolean;
|
|
83
|
+
readonly includePhoneServices?: boolean;
|
|
84
|
+
}
|
|
85
|
+
/** Request body for `POST /v1/apps/pull`. Just the aspect id; no include flags — pull always returns the full payload. */
|
|
86
|
+
export interface AspectPullInput {
|
|
87
|
+
readonly aspectId: string;
|
|
88
|
+
}
|
|
89
|
+
/** Mirror of `SnowflakeMappingInput`. */
|
|
90
|
+
export interface SnowflakeMappingInput {
|
|
91
|
+
readonly databaseName?: string;
|
|
92
|
+
readonly schemaName?: string;
|
|
93
|
+
readonly tableName?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Mirror of `CloudMappingInput`. Element-only — ultron rejects it on
|
|
97
|
+
* non-ELEMENT aspects. The EDK doesn't enforce that here; the serializer
|
|
98
|
+
* validates at the call site.
|
|
99
|
+
*
|
|
100
|
+
* BigQuery and Databricks variants exist on ultron but are out of scope
|
|
101
|
+
* for the current EDK aspect work (Snowflake only). Add them here with
|
|
102
|
+
* mirrored input shapes when those CloudLink variants are brought in.
|
|
103
|
+
*/
|
|
104
|
+
export interface CloudMappingInput {
|
|
105
|
+
readonly snowflakeMapping?: SnowflakeMappingInput;
|
|
106
|
+
}
|
|
107
|
+
/** Mirror of `SnowflakeOptions`. */
|
|
108
|
+
export interface SnowflakeOptionsInput {
|
|
109
|
+
readonly hybridTable?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/** Mirror of `CloudOptionsInput`. */
|
|
112
|
+
export interface CloudOptionsInput {
|
|
113
|
+
readonly snowflake?: SnowflakeOptionsInput;
|
|
114
|
+
}
|
|
115
|
+
/** Mirror of `RecordCreateTypesInput`. */
|
|
116
|
+
export interface RecordCreateTypesInput {
|
|
117
|
+
readonly manual?: boolean;
|
|
118
|
+
readonly automations?: boolean;
|
|
119
|
+
readonly email?: boolean;
|
|
120
|
+
readonly api?: boolean;
|
|
121
|
+
readonly services?: boolean;
|
|
122
|
+
readonly agents?: boolean;
|
|
123
|
+
}
|
|
124
|
+
/** Mirror of `ServiceConfigInput`. */
|
|
125
|
+
export interface ServiceConfigInput {
|
|
126
|
+
readonly statusFieldId?: string;
|
|
127
|
+
readonly openValueId?: string;
|
|
128
|
+
readonly closedValueId?: string;
|
|
129
|
+
readonly dueDateFieldId?: string;
|
|
130
|
+
readonly active?: boolean;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Aspect category — bidirectional. As compose-side input (mirror of
|
|
134
|
+
* ultron's `AgentCategoryInput`), `name` is required and ultron does
|
|
135
|
+
* upsert-by-name (creates if missing). On pull-side response, `id` is
|
|
136
|
+
* the server-assigned UUID. Both compose and pull populate optional
|
|
137
|
+
* `icon` / `color` / `description`.
|
|
138
|
+
*
|
|
139
|
+
* On compose, the agent provides name (+ optional cosmetics) and
|
|
140
|
+
* leaves `id` unset — ultron mints it. On pull, the agent receives
|
|
141
|
+
* everything including the server-assigned id, ready to round-trip
|
|
142
|
+
* unchanged.
|
|
143
|
+
*
|
|
144
|
+
* `icon` / `color` default to `"apps"` / `"#6B7280"` on create.
|
|
145
|
+
*/
|
|
146
|
+
export interface AspectCategory {
|
|
147
|
+
readonly id?: string;
|
|
148
|
+
readonly name: string;
|
|
149
|
+
readonly icon?: string;
|
|
150
|
+
readonly color?: string;
|
|
151
|
+
readonly description?: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Variant-tagged properties blob carried on a display block. The
|
|
155
|
+
* platform stores this as one JSON column discriminated on `type`;
|
|
156
|
+
* the serializer constructs the matching shape per block variant.
|
|
157
|
+
* Common fields (`displayLocation`, `hidden`, `sideNavItem`,
|
|
158
|
+
* `displayType`) apply to every variant; the rest are variant-
|
|
159
|
+
* specific (e.g. `name`/`color`/`icon` on GROUP, `widgetId` on
|
|
160
|
+
* WIDGET, `channels` on COMMENTS). Kept loose (`[key: string]`) so
|
|
161
|
+
* the round-trip can forward variant fields the EDK doesn't model
|
|
162
|
+
* without dropping them.
|
|
163
|
+
*/
|
|
164
|
+
export interface DisplayBlockPropertiesInput {
|
|
165
|
+
readonly type: string;
|
|
166
|
+
readonly displayLocation?: string;
|
|
167
|
+
readonly hidden?: boolean;
|
|
168
|
+
readonly sideNavItem?: boolean;
|
|
169
|
+
readonly displayType?: string;
|
|
170
|
+
readonly [key: string]: unknown;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* One display block on the bulk aspect compose/update path
|
|
174
|
+
* (`AspectInput.displayBlocks`). `id` present → update the existing
|
|
175
|
+
* block; absent → create. `fieldId` is set only on FIELD blocks,
|
|
176
|
+
* `stageId` scopes the block to a workflow stage (null → the default
|
|
177
|
+
* unstaged layout), and `children` carries nested blocks for GROUP
|
|
178
|
+
* blocks. `displayOrder` is implicit — the platform derives it from
|
|
179
|
+
* array position.
|
|
180
|
+
*/
|
|
181
|
+
export interface AspectDisplayBlockInput {
|
|
182
|
+
readonly id?: string;
|
|
183
|
+
readonly fieldId?: string;
|
|
184
|
+
readonly stageId?: string;
|
|
185
|
+
readonly children?: readonly AspectDisplayBlockInput[];
|
|
186
|
+
readonly properties: DisplayBlockPropertiesInput;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Mirror of ultron's `AgentAspectInput`. The shape antman accepts on
|
|
190
|
+
* `POST /v1/aspects/compose` (it forwards body verbatim — antman's
|
|
191
|
+
* `Map<String, Object>` declaration is a tolerance hatch, not a
|
|
192
|
+
* different schema).
|
|
193
|
+
*/
|
|
194
|
+
export interface AgentAspectInput {
|
|
195
|
+
/**
|
|
196
|
+
* Optional caller-supplied aspect id. Present → the server reuses it;
|
|
197
|
+
* absent → it mints one.
|
|
198
|
+
*/
|
|
199
|
+
readonly id?: string;
|
|
200
|
+
/** Optional caller-supplied stable handle. */
|
|
201
|
+
readonly clientHandle?: string;
|
|
202
|
+
readonly name: string;
|
|
203
|
+
readonly description?: string;
|
|
204
|
+
readonly handle: string;
|
|
205
|
+
readonly namespace: string;
|
|
206
|
+
readonly type: AspectTypeWire;
|
|
207
|
+
readonly readOnly?: boolean;
|
|
208
|
+
readonly cloudLinkId?: string;
|
|
209
|
+
readonly cloudMapping?: CloudMappingInput;
|
|
210
|
+
readonly cloudOptions?: CloudOptionsInput;
|
|
211
|
+
readonly category: AspectCategory;
|
|
212
|
+
readonly icon?: string;
|
|
213
|
+
readonly color?: string;
|
|
214
|
+
readonly template?: boolean;
|
|
215
|
+
readonly service?: ServiceConfigInput;
|
|
216
|
+
readonly allowAnonymousEmailCreation?: boolean;
|
|
217
|
+
readonly allowForwardedEmailIngestion?: boolean;
|
|
218
|
+
readonly allowInlineImageIngestion?: boolean;
|
|
219
|
+
readonly workflowValuePerAutomation?: number;
|
|
220
|
+
readonly recordCreateTypes?: RecordCreateTypesInput;
|
|
221
|
+
readonly snowflakeWarehouse?: string;
|
|
222
|
+
readonly fields: readonly AspectFieldInput[];
|
|
223
|
+
/** LAYOUT-surface display blocks (the record view). */
|
|
224
|
+
readonly displayBlocks?: readonly AspectDisplayBlockInput[];
|
|
225
|
+
/** CREATE-surface display blocks (the new-record form). */
|
|
226
|
+
readonly recordCreateDisplayBlocks?: readonly AspectDisplayBlockInput[];
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* One row in `AgentAspectUpdateInput.fields`. `id` present →
|
|
230
|
+
* update existing field with that uuid; absent → create a new field.
|
|
231
|
+
* `field` is the same discriminated wrapper used on create.
|
|
232
|
+
*/
|
|
233
|
+
export interface AgentFieldUpdateInput {
|
|
234
|
+
readonly id?: string;
|
|
235
|
+
readonly field: AspectFieldInput;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Mirror of ultron's `AgentAspectUpdateInput`. All scalars are
|
|
239
|
+
* optional — only set what you want changed. `fields` and
|
|
240
|
+
* `deleteFieldIds` are independent operations within one payload.
|
|
241
|
+
*/
|
|
242
|
+
export interface AgentAspectUpdateInput {
|
|
243
|
+
readonly name?: string;
|
|
244
|
+
readonly description?: string;
|
|
245
|
+
readonly handle?: string;
|
|
246
|
+
readonly namespace?: string;
|
|
247
|
+
readonly readOnly?: boolean;
|
|
248
|
+
readonly cloudMapping?: CloudMappingInput;
|
|
249
|
+
readonly cloudOptions?: CloudOptionsInput;
|
|
250
|
+
readonly category?: AspectCategory;
|
|
251
|
+
readonly icon?: string;
|
|
252
|
+
readonly color?: string;
|
|
253
|
+
readonly service?: ServiceConfigInput;
|
|
254
|
+
readonly allowAnonymousEmailCreation?: boolean;
|
|
255
|
+
readonly allowForwardedEmailIngestion?: boolean;
|
|
256
|
+
readonly allowInlineImageIngestion?: boolean;
|
|
257
|
+
readonly workflowValuePerAutomation?: number;
|
|
258
|
+
readonly recordCreateTypes?: RecordCreateTypesInput;
|
|
259
|
+
readonly snowflakeWarehouse?: string;
|
|
260
|
+
readonly fields?: readonly AgentFieldUpdateInput[];
|
|
261
|
+
readonly deleteFieldIds?: readonly string[];
|
|
262
|
+
/**
|
|
263
|
+
* Full LAYOUT-surface display-block list. The platform's sync is
|
|
264
|
+
* destructive — any existing block absent from this list is
|
|
265
|
+
* deleted — so callers must send the complete set, not a partial
|
|
266
|
+
* patch. Omit (undefined) to leave display blocks untouched.
|
|
267
|
+
*/
|
|
268
|
+
readonly displayBlocks?: readonly AspectDisplayBlockInput[];
|
|
269
|
+
/** Full CREATE-surface display-block list. Same destructive-sync semantics. */
|
|
270
|
+
readonly recordCreateDisplayBlocks?: readonly AspectDisplayBlockInput[];
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Canonical picklist value shape — used by every endpoint that
|
|
274
|
+
* returns picklist values. Read endpoints (listAspects /
|
|
275
|
+
* getAspectDefinition) populate `id` + `label` only; the pull
|
|
276
|
+
* endpoint additionally populates the cosmetic + relationship fields
|
|
277
|
+
* (`active`, `color`, `icon`, `parentPicklistValueIds`). All non-id
|
|
278
|
+
* fields are optional, so consumers don't have to switch on endpoint
|
|
279
|
+
* — they read whatever was populated.
|
|
280
|
+
*/
|
|
281
|
+
export interface PicklistValue {
|
|
282
|
+
readonly id: string;
|
|
283
|
+
readonly label: string;
|
|
284
|
+
readonly active?: boolean;
|
|
285
|
+
readonly color?: string;
|
|
286
|
+
readonly icon?: string;
|
|
287
|
+
readonly parentPicklistValueIds?: readonly string[];
|
|
288
|
+
/**
|
|
289
|
+
* Per-value semantic tags (CLOSED, CRITICAL, HIGH, MEDIUM, LOW).
|
|
290
|
+
* CLOSED on a STATUS picklist value tells the platform that
|
|
291
|
+
* moving a record to this value should auto-stamp the
|
|
292
|
+
* close-timestamp / closed-by system fields. The priority tags
|
|
293
|
+
* (CRITICAL/HIGH/MEDIUM/LOW) are cosmetic-priority hints.
|
|
294
|
+
*/
|
|
295
|
+
readonly tags?: readonly string[];
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Wire shape of one stage. `color` and `icon` are pull-only — the
|
|
299
|
+
* catalog selection omits them.
|
|
300
|
+
*/
|
|
301
|
+
export interface AspectStage {
|
|
302
|
+
readonly id: string;
|
|
303
|
+
readonly name: string;
|
|
304
|
+
/** Server-assigned stable handle; preferred over a name-derived key. */
|
|
305
|
+
readonly clientHandle?: string;
|
|
306
|
+
readonly displayOrder: number;
|
|
307
|
+
readonly color?: string;
|
|
308
|
+
readonly icon?: string;
|
|
309
|
+
}
|
|
310
|
+
export interface AspectField {
|
|
311
|
+
readonly __typename?: string;
|
|
312
|
+
readonly id: string;
|
|
313
|
+
readonly name: string;
|
|
314
|
+
/** Server-assigned stable handle (e.g. `FLD_0lpb6sa5`); preferred over a name-derived key. */
|
|
315
|
+
readonly clientHandle?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Immutable creation timestamp (ISO-8601). The primary ordering key for
|
|
318
|
+
* deterministic handle minting (`src/handles`). Optional — absent on older
|
|
319
|
+
* data or endpoints that don't surface it, in which case minting falls back
|
|
320
|
+
* to `id` ordering.
|
|
321
|
+
*/
|
|
322
|
+
readonly createdAt?: string;
|
|
323
|
+
readonly description?: string;
|
|
324
|
+
readonly required?: boolean;
|
|
325
|
+
readonly system?: boolean;
|
|
326
|
+
readonly semanticTags?: readonly string[];
|
|
327
|
+
/**
|
|
328
|
+
* Picklist values for PICKLIST / MULTI_PICKLIST fields. Antman's
|
|
329
|
+
* `listAspects` / `getAspectDefinition` GraphQL responses surface
|
|
330
|
+
* this connection under the wire name `values`; the entity-client
|
|
331
|
+
* normalizes it to `picklistValues` on the way in so callers see
|
|
332
|
+
* one canonical name regardless of which endpoint produced the
|
|
333
|
+
* data (pull responses already use `picklistValues` on the wire).
|
|
334
|
+
* See `aspects/index.ts:normalizeFieldNames`.
|
|
335
|
+
*/
|
|
336
|
+
readonly picklistValues?: Connection<PicklistValue>;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Wire shape of one field on a search table. Mirrors antman's
|
|
340
|
+
* `SearchTableField` record. `type` carries the concrete field
|
|
341
|
+
* subtype (e.g. `AspectTextField`) so the printer can map it to the
|
|
342
|
+
* canonical `WorkflowFieldType` for emission. Aliased from hydra's
|
|
343
|
+
* GraphQL `__typename` antman-side.
|
|
344
|
+
*/
|
|
345
|
+
export interface AspectSearchTableField {
|
|
346
|
+
readonly id: string;
|
|
347
|
+
readonly name: string;
|
|
348
|
+
readonly type?: string;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Wire shape of an aspect's search table. Mirrors antman's
|
|
352
|
+
* `SearchTable` record (`shared/.../searchtable/model/SearchTable.java`).
|
|
353
|
+
* `displayName` is the human-readable identifier; the deserializer
|
|
354
|
+
* uses it to disambiguate keys for the `searchTables.<key>` bag.
|
|
355
|
+
* `field` and `attributeFields` are the searchable column set.
|
|
356
|
+
*/
|
|
357
|
+
export interface AspectSearchTable {
|
|
358
|
+
readonly id: string;
|
|
359
|
+
readonly name: string;
|
|
360
|
+
/** Server-assigned stable handle; preferred over the id-derived key. */
|
|
361
|
+
readonly clientHandle?: string;
|
|
362
|
+
readonly displayName?: string;
|
|
363
|
+
readonly field?: AspectSearchTableField;
|
|
364
|
+
readonly attributeFields?: readonly AspectSearchTableField[];
|
|
365
|
+
}
|
|
366
|
+
/** Wire shape of one field on a document model. */
|
|
367
|
+
export interface AspectDocumentModelField {
|
|
368
|
+
readonly id: string;
|
|
369
|
+
readonly name: string;
|
|
370
|
+
readonly fieldType?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Wire shape of an app's document model — an AI/OCR/Excel/Invoice/JSON/XML
|
|
374
|
+
* extraction template. App-owned only (`AspectApp.documentModels`).
|
|
375
|
+
*/
|
|
376
|
+
export interface AspectDocumentModel {
|
|
377
|
+
readonly id: string;
|
|
378
|
+
readonly name: string;
|
|
379
|
+
readonly createdAt?: string;
|
|
380
|
+
readonly fields?: Connection<AspectDocumentModelField>;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Wire shape of an approval chain template summary on the wire
|
|
384
|
+
* `Aspect`. The full chain definition comes from
|
|
385
|
+
* `getApprovalChainTemplate(id)`. Named `…Template` (not `…Chain`) to
|
|
386
|
+
* match antman's `approvalChainTemplates` field — the serialization
|
|
387
|
+
* vocabulary, distinct from the user-facing `approvalChains` bag.
|
|
388
|
+
*/
|
|
389
|
+
export interface ApprovalChainTemplate {
|
|
390
|
+
readonly id: string;
|
|
391
|
+
readonly name: string;
|
|
392
|
+
/** Server-assigned stable handle; preferred over a name-derived key. */
|
|
393
|
+
readonly clientHandle?: string;
|
|
394
|
+
}
|
|
395
|
+
export interface AspectFlow {
|
|
396
|
+
readonly id: string;
|
|
397
|
+
readonly name: string;
|
|
398
|
+
/** Server-assigned stable handle; preferred over a name-derived key. */
|
|
399
|
+
readonly clientHandle?: string;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Agent reference on the wire `Aspect` — `getAspectDefinition` returns identity
|
|
403
|
+
* (id / name / clientHandle) plus the variant discriminator, not a full `Agent`
|
|
404
|
+
* (the full agent comes from `getAgent(id)`).
|
|
405
|
+
*
|
|
406
|
+
* NOTE: distinct from the catalog's authored `AgentRef` (`CatalogRef<"agent">`),
|
|
407
|
+
* which is a handle-token with no `id`. This is the wire summary. Name TBD.
|
|
408
|
+
*/
|
|
409
|
+
export interface AgentRef {
|
|
410
|
+
readonly id: string;
|
|
411
|
+
readonly name: string;
|
|
412
|
+
/** Server-assigned stable handle; preferred over a name-derived key. */
|
|
413
|
+
readonly clientHandle?: string;
|
|
414
|
+
readonly type?: AgentType;
|
|
415
|
+
}
|
|
416
|
+
export interface Aspect {
|
|
417
|
+
readonly __typename: string;
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly name: string;
|
|
420
|
+
/**
|
|
421
|
+
* Server-assigned stable handle (e.g. `ELEM_wzx1yw21`). When present it's
|
|
422
|
+
* the canonical identity used as the aspect's handle — preferred over a
|
|
423
|
+
* name-derived handle. Optional during the antman rollout window where some
|
|
424
|
+
* payloads still omit it.
|
|
425
|
+
*/
|
|
426
|
+
readonly clientHandle?: string;
|
|
427
|
+
/** Immutable creation timestamp (ISO-8601); see {@link AspectField.createdAt}. */
|
|
428
|
+
readonly createdAt?: string;
|
|
429
|
+
readonly description?: string;
|
|
430
|
+
readonly namespace?: string;
|
|
431
|
+
readonly fields?: Connection<AspectField>;
|
|
432
|
+
readonly stages?: readonly AspectStage[];
|
|
433
|
+
readonly agenticSkills?: Connection<Skill>;
|
|
434
|
+
readonly agentsV2?: Connection<AgentRef>;
|
|
435
|
+
readonly automations?: Connection<Automation>;
|
|
436
|
+
readonly flows?: Connection<AspectFlow>;
|
|
437
|
+
readonly approvalChainTemplates?: Connection<ApprovalChainTemplate>;
|
|
438
|
+
readonly searchTables?: Connection<AspectSearchTable>;
|
|
439
|
+
readonly documentModels?: Connection<AspectDocumentModel>;
|
|
440
|
+
readonly [key: string]: unknown;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Subset of ultron's `AspectDynamicPicklistConfig` carried in the
|
|
444
|
+
* pull response — the related aspect/field the picklist sources values
|
|
445
|
+
* from, plus the auto-relate flag. Each id field is wrapped in a
|
|
446
|
+
* GraphQL-style nested-object envelope (`{ id }`) per the wire
|
|
447
|
+
* convention; inlined here rather than carried as a named type since
|
|
448
|
+
* the envelope is trivial and only used in this shape.
|
|
449
|
+
*/
|
|
450
|
+
export interface AspectPicklistDynamicConfigRef {
|
|
451
|
+
readonly relatedAspect?: {
|
|
452
|
+
readonly id: string;
|
|
453
|
+
};
|
|
454
|
+
readonly relatedLabelField?: {
|
|
455
|
+
readonly id: string;
|
|
456
|
+
};
|
|
457
|
+
readonly parentField?: {
|
|
458
|
+
readonly id: string;
|
|
459
|
+
};
|
|
460
|
+
readonly autoRelate?: boolean;
|
|
461
|
+
readonly valuesRenderType?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Per-mapping pairing of a parent-aspect field with a related-aspect
|
|
464
|
+
* field for cascading dynamic picklists. Both ends are wrapped in the
|
|
465
|
+
* usual `{ id }` envelope per GraphQL convention. Inlined here since
|
|
466
|
+
* the shape is trivial and only used in this slot.
|
|
467
|
+
*/
|
|
468
|
+
readonly parentMappings?: readonly {
|
|
469
|
+
readonly parentAspectField?: {
|
|
470
|
+
readonly id: string;
|
|
471
|
+
};
|
|
472
|
+
readonly relatedAspectField?: {
|
|
473
|
+
readonly id: string;
|
|
474
|
+
};
|
|
475
|
+
}[];
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* One referenced-field entry surfaced by the server on the read side of
|
|
479
|
+
* a calculated field. `start` / `end` are character positions within
|
|
480
|
+
* the calculation's `text`; `referencedField` carries enough to map
|
|
481
|
+
* back to the underlying field if the EDK ever needs that. Server-
|
|
482
|
+
* derived from parsing `text` — never input.
|
|
483
|
+
*/
|
|
484
|
+
export interface AspectFieldCalculationReferencedField {
|
|
485
|
+
readonly start: number;
|
|
486
|
+
readonly end: number;
|
|
487
|
+
readonly referencedField?: {
|
|
488
|
+
readonly id: string;
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Discriminated read-side union for an entry in
|
|
493
|
+
* `AspectFieldCalculation.includeTypes`. The wire surfaces it as a
|
|
494
|
+
* GraphQL union with one `__typename` per variant; the EDK mirrors
|
|
495
|
+
* that as a TS discriminated union keyed on `__typename`.
|
|
496
|
+
*/
|
|
497
|
+
export type AspectFieldCalculationIncludeType = {
|
|
498
|
+
readonly __typename: "AspectFieldCalculationIncludeAutoType";
|
|
499
|
+
readonly type: string;
|
|
500
|
+
} | {
|
|
501
|
+
readonly __typename: "AspectFieldCalculationIncludeManualType";
|
|
502
|
+
readonly type: string;
|
|
503
|
+
} | {
|
|
504
|
+
readonly __typename: "AspectFieldCalculationIncludePicklistType";
|
|
505
|
+
readonly type: string;
|
|
506
|
+
readonly picklistField: {
|
|
507
|
+
readonly id: string;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Read-side projection of a calculated field's calculation, surfaced on
|
|
512
|
+
* every `AspectFieldPullResponse` whose stored `calculation` is set.
|
|
513
|
+
* Mirrors ultron's `AspectFieldCalculation`.
|
|
514
|
+
*
|
|
515
|
+
* No `AspectCalculatedField` __typename exists on the graph — calculated
|
|
516
|
+
* fields come back as one of the existing 14 variant typenames
|
|
517
|
+
* (`AspectNumberField` / `AspectTextField` / etc.) with this slot
|
|
518
|
+
* populated. The EDK deserializer detects calculated fields by checking
|
|
519
|
+
* `calculation != null`, not by typename. See
|
|
520
|
+
* `src/aspects/deserializer/normalize.ts`.
|
|
521
|
+
*/
|
|
522
|
+
export interface AspectFieldCalculation {
|
|
523
|
+
readonly text: string;
|
|
524
|
+
readonly includeTypes: readonly AspectFieldCalculationIncludeType[];
|
|
525
|
+
readonly referencedFields: readonly AspectFieldCalculationReferencedField[];
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* One field as returned by the pull endpoint. Extends the read-side
|
|
529
|
+
* {@link AspectField} with the per-field metadata the lighter
|
|
530
|
+
* endpoints don't expose: the three create-time flags
|
|
531
|
+
* (`requiredOnClose` / `showOnCreate` / `lockOnCreate`),
|
|
532
|
+
* `defaultValue`, attachment `mediaTypes`, the two format aliases,
|
|
533
|
+
* picklist values (with full cosmetic per {@link PicklistValue}),
|
|
534
|
+
* and dynamic-picklist config.
|
|
535
|
+
*
|
|
536
|
+
* `__typename` (inherited) discriminates which field-type the row
|
|
537
|
+
* represents (`AspectTextField`, `AspectPicklistField`, …); the
|
|
538
|
+
* variant-specific slots below are populated only on the matching
|
|
539
|
+
* variant.
|
|
540
|
+
*/
|
|
541
|
+
export interface AspectFieldPullResponse extends AspectField {
|
|
542
|
+
readonly requiredOnClose?: boolean;
|
|
543
|
+
readonly showOnCreate?: boolean;
|
|
544
|
+
readonly lockOnCreate?: boolean;
|
|
545
|
+
readonly defaultValue?: unknown;
|
|
546
|
+
readonly mediaTypes?: readonly string[];
|
|
547
|
+
readonly numericFormat?: AspectNumericFieldFormat;
|
|
548
|
+
readonly qrFormat?: AspectFieldQrFormat;
|
|
549
|
+
readonly dynamicPicklistConfig?: AspectPicklistDynamicConfigRef;
|
|
550
|
+
/**
|
|
551
|
+
* Per-field cloud-storage column binding. Populated for fields that
|
|
552
|
+
* live on a cloud-backed aspect (imported tables and natively-stored
|
|
553
|
+
* apps both surface here). The column name is the only slot the EDK
|
|
554
|
+
* round-trips today; richer per-field cloud metadata can extend
|
|
555
|
+
* this shape later without breaking callers.
|
|
556
|
+
*/
|
|
557
|
+
readonly cloudFieldConnection?: {
|
|
558
|
+
readonly columnName?: string;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Field-level parent picklist for dependent-dropdown fields. Surfaces
|
|
562
|
+
* for both static and dynamic dependent picklists. The dynamic
|
|
563
|
+
* variant also exposes it inside {@link AspectPicklistDynamicConfigRef}
|
|
564
|
+
* — the EDK reads the field-level slot first and falls back to the
|
|
565
|
+
* dynamic-config slot.
|
|
566
|
+
*/
|
|
567
|
+
readonly parentField?: {
|
|
568
|
+
readonly id: string;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Server-stored calculation. Populated on the pull-side typename of
|
|
572
|
+
* whatever output type the server inferred (NUMBER/DECIMAL/TEXT/...).
|
|
573
|
+
* When present, the EDK deserializer projects this field as
|
|
574
|
+
* `CalculatedAppField` regardless of `__typename`.
|
|
575
|
+
*/
|
|
576
|
+
readonly calculation?: AspectFieldCalculation;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* One row from an aspect's `displayBlocks` connection on the pull
|
|
580
|
+
* response. The read side exposes strongly-typed per-variant fields
|
|
581
|
+
* (not an opaque properties scalar), so this shape carries the union
|
|
582
|
+
* of every variant's read fields — all optional, populated only on
|
|
583
|
+
* the matching `__typename`:
|
|
584
|
+
*
|
|
585
|
+
* - interface-level: `id`, `displayLocation`, `hidden`, `sideNavItem`,
|
|
586
|
+
* `stage`
|
|
587
|
+
* - FIELD: `field { id }`
|
|
588
|
+
* - GROUP: `name`, `color`, `icon`, `maxColumns`, `blocks` (children)
|
|
589
|
+
* - WIDGET: `widget { id }`
|
|
590
|
+
* - COMMENTS: `channels`, `channelNames`
|
|
591
|
+
*
|
|
592
|
+
* Parent/child linkage comes entirely from the GROUP `blocks` nesting,
|
|
593
|
+
* not from a parent ref — the deserializer walks each group's children
|
|
594
|
+
* and flattens them into the bag. SURVEYS `surveys` and RELATED_CREATE
|
|
595
|
+
* `modules` aren't pulled — the EDK models those variants by `kind` only.
|
|
596
|
+
*/
|
|
597
|
+
export interface AspectDisplayBlockPullResponse {
|
|
598
|
+
readonly __typename?: string;
|
|
599
|
+
readonly id?: string;
|
|
600
|
+
readonly displayLocation?: string;
|
|
601
|
+
readonly hidden?: boolean;
|
|
602
|
+
readonly sideNavItem?: boolean;
|
|
603
|
+
readonly stage?: {
|
|
604
|
+
readonly id: string;
|
|
605
|
+
};
|
|
606
|
+
readonly field?: {
|
|
607
|
+
readonly id: string;
|
|
608
|
+
};
|
|
609
|
+
readonly name?: string;
|
|
610
|
+
readonly color?: string;
|
|
611
|
+
readonly icon?: string;
|
|
612
|
+
readonly maxColumns?: number;
|
|
613
|
+
readonly blocks?: Connection<AspectDisplayBlockPullResponse>;
|
|
614
|
+
readonly widget?: {
|
|
615
|
+
readonly id: string;
|
|
616
|
+
};
|
|
617
|
+
readonly channels?: readonly string[];
|
|
618
|
+
readonly channelNames?: readonly {
|
|
619
|
+
readonly channel: string;
|
|
620
|
+
readonly name: string;
|
|
621
|
+
}[];
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* The aspect's cloud-storage table binding. Discriminated on
|
|
625
|
+
* `__typename` so additional cloud backends (BigQuery, Databricks)
|
|
626
|
+
* can extend the union without touching consumers that only branch
|
|
627
|
+
* on `SnowflakeConnection`.
|
|
628
|
+
*/
|
|
629
|
+
export type AspectCloudConnection = {
|
|
630
|
+
readonly __typename: "SnowflakeConnection";
|
|
631
|
+
readonly databaseName?: string;
|
|
632
|
+
readonly schemaName?: string;
|
|
633
|
+
readonly tableName?: string;
|
|
634
|
+
readonly readOnly?: boolean;
|
|
635
|
+
} | {
|
|
636
|
+
readonly __typename?: string;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Full aspect snapshot as returned by `POST /v1/apps/pull`. Extends
|
|
640
|
+
* the read-side {@link Aspect} with the top-level scalars the lighter
|
|
641
|
+
* endpoints omit (`handle`, `icon`, `color`, `readOnly`, `category`)
|
|
642
|
+
* and narrows `fields` to the richer {@link AspectFieldPullResponse}
|
|
643
|
+
* variant.
|
|
644
|
+
*
|
|
645
|
+
* `cloudLink`, `displayBlocks`, and `cloudConnection` are pull-only —
|
|
646
|
+
* the lighter discovery endpoints don't surface them. They feed
|
|
647
|
+
* downstream derivations: parent cloud-link reference,
|
|
648
|
+
* commentsEnabled, and the imported-table mapping for elements.
|
|
649
|
+
*/
|
|
650
|
+
export interface AspectPullResponse extends Aspect {
|
|
651
|
+
readonly handle?: string;
|
|
652
|
+
readonly icon?: string;
|
|
653
|
+
readonly color?: string;
|
|
654
|
+
readonly readOnly?: boolean;
|
|
655
|
+
readonly category?: AspectCategory;
|
|
656
|
+
readonly fields?: Connection<AspectFieldPullResponse>;
|
|
657
|
+
readonly cloudLink?: {
|
|
658
|
+
readonly id: string;
|
|
659
|
+
readonly clientHandle?: string;
|
|
660
|
+
};
|
|
661
|
+
readonly displayBlocks?: Connection<AspectDisplayBlockPullResponse>;
|
|
662
|
+
readonly recordCreateDisplayBlocks?: Connection<AspectDisplayBlockPullResponse>;
|
|
663
|
+
readonly cloudConnection?: AspectCloudConnection;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* One field row in a compose / update response — covers all three
|
|
667
|
+
* server-side outcomes (compose-created, update-updated,
|
|
668
|
+
* update-created). The shapes diverge only in whether `system` is
|
|
669
|
+
* populated (compose-side response always includes it; update-side
|
|
670
|
+
* doesn't surface it), so we widen to optional. Consumers reading
|
|
671
|
+
* `system` should treat absent as "unknown" rather than `false`.
|
|
672
|
+
*/
|
|
673
|
+
export interface AspectFieldResult {
|
|
674
|
+
readonly id: string;
|
|
675
|
+
readonly name: string;
|
|
676
|
+
readonly type?: string;
|
|
677
|
+
readonly system?: boolean;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Summary counters for compose + update responses. Compose populates
|
|
681
|
+
* `fieldsCreated` + `durationMs`; update additionally populates
|
|
682
|
+
* `fieldsUpdated` + `fieldsDeleted`. Everything optional so one type
|
|
683
|
+
* covers both verbs.
|
|
684
|
+
*/
|
|
685
|
+
export interface AspectOperationSummary {
|
|
686
|
+
readonly fieldsCreated?: number;
|
|
687
|
+
readonly fieldsUpdated?: number;
|
|
688
|
+
readonly fieldsDeleted?: number;
|
|
689
|
+
readonly durationMs: number;
|
|
690
|
+
}
|
|
691
|
+
/** Wire response from ultron's compose endpoint, before id normalization. */
|
|
692
|
+
export interface ComposeAspectWireResponse {
|
|
693
|
+
readonly aspectId: string;
|
|
694
|
+
readonly aspectName: string;
|
|
695
|
+
readonly fields: readonly AspectFieldResult[];
|
|
696
|
+
readonly summary: AspectOperationSummary;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Normalized response — `aspectId` surfaced as `id` so the late-binding
|
|
700
|
+
* registry and the cross-builder stamp store can use it uniformly.
|
|
701
|
+
* Mirrors the agent/automation client convention. The `[key: string]:
|
|
702
|
+
* unknown` index signature is required by the shared `DeployResponse`
|
|
703
|
+
* shape so the deploy graph's stamp store can hold any builder's result
|
|
704
|
+
* uniformly.
|
|
705
|
+
*/
|
|
706
|
+
export interface DeployedAspect extends ComposeAspectWireResponse {
|
|
707
|
+
readonly id: string;
|
|
708
|
+
readonly [key: string]: unknown;
|
|
709
|
+
}
|
|
710
|
+
/** Wire response from `PUT /v1/aspects/compose/{id}`, before id normalization. */
|
|
711
|
+
export interface UpdateAspectWireResponse {
|
|
712
|
+
readonly aspectId: string;
|
|
713
|
+
readonly aspectName: string;
|
|
714
|
+
readonly updatedFields?: readonly AspectFieldResult[];
|
|
715
|
+
readonly createdFields?: readonly AspectFieldResult[];
|
|
716
|
+
readonly deletedFieldIds?: readonly string[];
|
|
717
|
+
readonly summary?: AspectOperationSummary;
|
|
718
|
+
}
|