@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,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire model for the platform's polymorphic `AgenticSkillTool`
|
|
3
|
+
* GraphQL interface, surfaced through antman's `getSkill` endpoint
|
|
4
|
+
* (`antman/.../skill/SkillClient.java`'s GraphQL fragment).
|
|
5
|
+
*
|
|
6
|
+
* Mirrors antman's flat-union `SkillTool` Java record: every
|
|
7
|
+
* variant-specific field is optional on the wire, populated based on
|
|
8
|
+
* `type`. Same convention as the canonical agent-tool model. Antman
|
|
9
|
+
* aliases the platform's `__typename` to `type` so the GraphQL-y
|
|
10
|
+
* field name doesn't leak into the REST surface; it also aliases the
|
|
11
|
+
* platform's coarser `type` scalar to `category` to avoid colliding
|
|
12
|
+
* with the variant discriminator above.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Closed set of `SkillTool` variants the EDK round-trips. Mirrors
|
|
16
|
+
* the platform's `AgenticSkillTool` union discriminators.
|
|
17
|
+
*/
|
|
18
|
+
export type SkillToolType = "AgenticSkillAutomationTool" | "AgenticSkillSearchAspectTool" | "AgenticSkillSearchTableTool" | "AgenticSkillCreateRecordTool" | "AgenticSkillUpdateRecordTool" | "AgenticSkillRunAgentTool";
|
|
19
|
+
/**
|
|
20
|
+
* One field entry on a skill tool's `fields[]` array — covers the
|
|
21
|
+
* search-side and record-side variants. `required` and `defaultValue`
|
|
22
|
+
* are populated only on the create/update variants.
|
|
23
|
+
*
|
|
24
|
+
* The field reference itself appears in two shapes depending on the
|
|
25
|
+
* read path: `GET /v1/skills/{id}` (antman's REST facade over the
|
|
26
|
+
* graph) nests it the same way agent tools do — `field: { id, ... }`,
|
|
27
|
+
* with every other property on that nested object left `null` — while
|
|
28
|
+
* some callers still send/expect the flatter `fieldId` UUID. Both are
|
|
29
|
+
* optional here so a reader can fall back (`fieldId ?? field?.id`)
|
|
30
|
+
* regardless of which shape actually arrived; don't assume either is
|
|
31
|
+
* exclusively present.
|
|
32
|
+
*/
|
|
33
|
+
export interface SkillToolField {
|
|
34
|
+
readonly fieldId?: string;
|
|
35
|
+
readonly field?: {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
};
|
|
38
|
+
readonly name?: string;
|
|
39
|
+
readonly description?: string;
|
|
40
|
+
readonly required?: boolean;
|
|
41
|
+
readonly defaultValue?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Filter variable carried on search variants — `{ name, value }`
|
|
45
|
+
* pair. The EDK builder doesn't surface these today; pulled skills
|
|
46
|
+
* with non-empty `filterVariables` drop the variable list with a
|
|
47
|
+
* structured miss.
|
|
48
|
+
*/
|
|
49
|
+
export interface SkillToolFilterVariable {
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly value: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Polymorphic skill-tool wire shape. `type` is the discriminator;
|
|
55
|
+
* only the fields a given variant supplies are populated. Every
|
|
56
|
+
* variant carries the shared identity bookkeeping (`id`, `name`,
|
|
57
|
+
* `description`, `status`, `startMessage`).
|
|
58
|
+
*
|
|
59
|
+
* Variant-to-fields map (every field optional, populated per `type`):
|
|
60
|
+
*
|
|
61
|
+
* | type | extra fields |
|
|
62
|
+
* |---------------------------------|--------------------------------------------------------------------|
|
|
63
|
+
* | AgenticSkillAutomationTool | automation |
|
|
64
|
+
* | AgenticSkillSearchAspectTool | aspect, fields, filter, filterVariables, sort, limit, queryDescription |
|
|
65
|
+
* | AgenticSkillSearchTableTool | aspect, table, fields, filter, filterVariables, limit, queryDescription |
|
|
66
|
+
* | AgenticSkillCreateRecordTool | aspect, fields |
|
|
67
|
+
* | AgenticSkillUpdateRecordTool | aspect, fields, handleDescription |
|
|
68
|
+
* | AgenticSkillRunAgentTool | targetAgent, workerTaskPrompt |
|
|
69
|
+
*
|
|
70
|
+
* `filter` / `sort` / `limit` / `filterVariables` aren't authored by
|
|
71
|
+
* the EDK skill builder today — the deserializer drops them with a
|
|
72
|
+
* structured miss when they're non-empty so the pulled source stays
|
|
73
|
+
* within what the builder can re-emit.
|
|
74
|
+
*
|
|
75
|
+
* Note: `aspect.__typename` retains the GraphQL-y name because the
|
|
76
|
+
* apps/aspect wire surface still uses `__typename`; antman doesn't
|
|
77
|
+
* rename it across the skill query either.
|
|
78
|
+
*/
|
|
79
|
+
export interface SkillTool {
|
|
80
|
+
readonly type?: SkillToolType;
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly name: string;
|
|
83
|
+
readonly description: string;
|
|
84
|
+
readonly status?: string;
|
|
85
|
+
readonly startMessage?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Coarser tool-type scalar — aliased from the platform's `type`
|
|
88
|
+
* field via GraphQL so it doesn't collide with the variant
|
|
89
|
+
* discriminator. Informational only; the EDK doesn't author it.
|
|
90
|
+
*/
|
|
91
|
+
readonly category?: string;
|
|
92
|
+
readonly automation?: {
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly name?: string;
|
|
95
|
+
};
|
|
96
|
+
readonly aspect?: {
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly __typename?: string;
|
|
99
|
+
readonly name?: string;
|
|
100
|
+
};
|
|
101
|
+
readonly table?: {
|
|
102
|
+
readonly id: string;
|
|
103
|
+
readonly displayName?: string;
|
|
104
|
+
};
|
|
105
|
+
readonly fields?: readonly SkillToolField[];
|
|
106
|
+
readonly filter?: import("../../../../src/entities/shared/filters/types.js").FilterExpr;
|
|
107
|
+
readonly filterVariables?: readonly SkillToolFilterVariable[];
|
|
108
|
+
readonly sort?: {
|
|
109
|
+
readonly orders: ReadonlyArray<{
|
|
110
|
+
readonly field: string;
|
|
111
|
+
readonly direction: "ASC" | "DESC";
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
readonly limit?: number;
|
|
115
|
+
readonly queryDescription?: string;
|
|
116
|
+
readonly handleDescription?: string;
|
|
117
|
+
readonly targetAgent?: {
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly name?: string;
|
|
120
|
+
readonly type?: string;
|
|
121
|
+
};
|
|
122
|
+
readonly workerTaskPrompt?: string;
|
|
123
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire model for the platform's polymorphic `AgenticSkillTool`
|
|
3
|
+
* GraphQL interface, surfaced through antman's `getSkill` endpoint
|
|
4
|
+
* (`antman/.../skill/SkillClient.java`'s GraphQL fragment).
|
|
5
|
+
*
|
|
6
|
+
* Mirrors antman's flat-union `SkillTool` Java record: every
|
|
7
|
+
* variant-specific field is optional on the wire, populated based on
|
|
8
|
+
* `type`. Same convention as the canonical agent-tool model. Antman
|
|
9
|
+
* aliases the platform's `__typename` to `type` so the GraphQL-y
|
|
10
|
+
* field name doesn't leak into the REST surface; it also aliases the
|
|
11
|
+
* platform's coarser `type` scalar to `category` to avoid colliding
|
|
12
|
+
* with the variant discriminator above.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical Skill model — single source of truth for every antman
|
|
3
|
+
* endpoint that returns a skill or a piece of one. These endpoints
|
|
4
|
+
* populate this type today:
|
|
5
|
+
*
|
|
6
|
+
* - `Aspect.agenticSkills` (catalog view from `POST /v1/apps/definition`)
|
|
7
|
+
* populates identity-only fields: `id`, `name`, `description`.
|
|
8
|
+
* - `GET /v1/apps/{appId}/skills` (availability view) populates identity
|
|
9
|
+
* fields plus `clientHandle` for skills that an app can reference.
|
|
10
|
+
* - `GET /v1/skills/{skillId}` (full view) populates everything else
|
|
11
|
+
* (`instructions`, `status`, `type`, `properties`, `tools`, `app`).
|
|
12
|
+
*
|
|
13
|
+
* Different endpoints populate different fields on the same type;
|
|
14
|
+
* every field that isn't required on both views is optional. Same
|
|
15
|
+
* pattern as the canonical `Agent` model.
|
|
16
|
+
*
|
|
17
|
+
* `app` is the owning aspect — present for app-scoped skills, absent
|
|
18
|
+
* for org-scoped skills. The EDK builder today only supports
|
|
19
|
+
* authoring app-scoped skills, so the pull deserializer drops
|
|
20
|
+
* org-scoped skills with a structured miss (the skill body is still
|
|
21
|
+
* readable, but no `defineSkill({...})` source is emitted).
|
|
22
|
+
*/
|
|
23
|
+
import type { Connection } from "../../../models/connection.js";
|
|
24
|
+
import type { SkillTool } from "./skill-tool.js";
|
|
25
|
+
/**
|
|
26
|
+
* Closed set of `AgenticSkillType` values mirrored from the platform's
|
|
27
|
+
* enum (`INTERNAL` | `CUSTOM`). The EDK serializer always emits
|
|
28
|
+
* `"CUSTOM"` on create; the read shape keeps both values so a pulled
|
|
29
|
+
* skill round-trips honestly.
|
|
30
|
+
*/
|
|
31
|
+
export type SkillType = "INTERNAL" | "CUSTOM";
|
|
32
|
+
/**
|
|
33
|
+
* Closed set of `AgenticSkillStatus` values — `DRAFT` (default on the
|
|
34
|
+
* EDK builder), `ACTIVE`, or `INACTIVE`.
|
|
35
|
+
*/
|
|
36
|
+
export type SkillStatus = "DRAFT" | "ACTIVE" | "INACTIVE";
|
|
37
|
+
/**
|
|
38
|
+
* Canonical wire shape. Identity-only views populate `id` / `name` /
|
|
39
|
+
* (optionally) `description`; the full view populates the rest. Every
|
|
40
|
+
* non-identity field is optional so the type can carry both shapes
|
|
41
|
+
* without callers needing to narrow on which endpoint produced it.
|
|
42
|
+
*/
|
|
43
|
+
export interface Skill {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/** Server-assigned stable handle (e.g. `SKL_5op9ei66`); preferred over a name-derived handle. */
|
|
47
|
+
readonly clientHandle?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Immutable creation timestamp (ISO-8601). Primary ordering key for
|
|
50
|
+
* deterministic handle minting (`src/handles`); optional, falls back to
|
|
51
|
+
* `id` ordering when absent.
|
|
52
|
+
*/
|
|
53
|
+
readonly createdAt?: string;
|
|
54
|
+
readonly description?: string;
|
|
55
|
+
readonly instructions?: string;
|
|
56
|
+
readonly status?: SkillStatus;
|
|
57
|
+
readonly type?: SkillType;
|
|
58
|
+
/**
|
|
59
|
+
* Opaque pass-through JSON for the skill's properties field. The
|
|
60
|
+
* platform stores it verbatim; the EDK serializer hands the builder's
|
|
61
|
+
* `properties` option through unchanged and the deserializer hands
|
|
62
|
+
* the wire value back to the printer the same way.
|
|
63
|
+
*/
|
|
64
|
+
readonly properties?: Record<string, unknown> | null;
|
|
65
|
+
/**
|
|
66
|
+
* Owner aspect — present when the skill is app-scoped, absent (null
|
|
67
|
+
* / undefined) when org-scoped. Antman queries the field via hydra's
|
|
68
|
+
* GraphQL; org-scoped skills produce `null` on the wire.
|
|
69
|
+
*/
|
|
70
|
+
readonly app?: {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
} | null;
|
|
73
|
+
/**
|
|
74
|
+
* Polymorphic tool list — populated by the full view only. Variant
|
|
75
|
+
* dispatch is on `tools.edges[].node.type`.
|
|
76
|
+
*/
|
|
77
|
+
readonly tools?: Connection<SkillTool>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical Skill model — single source of truth for every antman
|
|
3
|
+
* endpoint that returns a skill or a piece of one. These endpoints
|
|
4
|
+
* populate this type today:
|
|
5
|
+
*
|
|
6
|
+
* - `Aspect.agenticSkills` (catalog view from `POST /v1/apps/definition`)
|
|
7
|
+
* populates identity-only fields: `id`, `name`, `description`.
|
|
8
|
+
* - `GET /v1/apps/{appId}/skills` (availability view) populates identity
|
|
9
|
+
* fields plus `clientHandle` for skills that an app can reference.
|
|
10
|
+
* - `GET /v1/skills/{skillId}` (full view) populates everything else
|
|
11
|
+
* (`instructions`, `status`, `type`, `properties`, `tools`, `app`).
|
|
12
|
+
*
|
|
13
|
+
* Different endpoints populate different fields on the same type;
|
|
14
|
+
* every field that isn't required on both views is optional. Same
|
|
15
|
+
* pattern as the canonical `Agent` model.
|
|
16
|
+
*
|
|
17
|
+
* `app` is the owning aspect — present for app-scoped skills, absent
|
|
18
|
+
* for org-scoped skills. The EDK builder today only supports
|
|
19
|
+
* authoring app-scoped skills, so the pull deserializer drops
|
|
20
|
+
* org-scoped skills with a structured miss (the skill body is still
|
|
21
|
+
* readable, but no `defineSkill({...})` source is emitted).
|
|
22
|
+
*/
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AspectFieldSemanticTag, AspectFieldType, TableFieldAggregation, TableFieldExpanded, TableJoinType, TableFieldSnowflakeInput, TableFieldBigQueryInput, TableFieldCloudCreateInput, TableCalculationCreateInput, TableFieldAggregatableCreateInput, TableFieldCreateInput, TableFieldCloudUpdateInput, TableCalculationUpdateInput, TableFieldAggregatableUpdateInput, TableFieldUpdateInput, TableFieldIdentityInput, TableFieldEnvelopeUpdateInput, TableFieldUpdatePayload, TableFieldsV3UpdateCreateInput, TableFieldsV3UpdateSetInput, TableFieldsV3UpdateDeleteInput, TableFieldsV3UpdateInput, TableJoinFieldInput, TableJoinInput, TableSnowflakeMappingInput, TableBigQueryMappingInput, TableDatabricksMappingInput, TableCloudMappingInput, TableDataViewSnowflakeCreateInput, TableDataViewCreateInput, TableDataViewSnowflakeUpdateInput, TableDataViewUpdateInput, TableCreateRequest, TableUpdateRequest, TableFieldWire, TableJoinWire, TableWire, TablePagedList, DeployedTable, } from "./table-wire.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape types for the platform's table endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the platform table wire schemas:
|
|
5
|
+
* - TableCreateRequest
|
|
6
|
+
* - TableUpdateRequest
|
|
7
|
+
* - Table
|
|
8
|
+
* - TablePagedList
|
|
9
|
+
*
|
|
10
|
+
* The shapes here are the literal JSON payload — the serializer in
|
|
11
|
+
* `src/tables/serializer/` resolves EDK refs (App / Element /
|
|
12
|
+
* AspectCategoryRef / CloudLink / built TableField factory output)
|
|
13
|
+
* to id-strings and discriminated objects the platform request expects.
|
|
14
|
+
*/
|
|
15
|
+
import type { DeployResponse } from "../../../types.js";
|
|
16
|
+
export type AspectFieldSemanticTag = "ASSIGNEE" | "ASSIGNMENT_GROUP" | "BREAK_LINE" | "CLOSED_AT" | "CLOSED_BY" | "COST" | "CREATED_AT" | "CREATED_BY" | "CURRENCY" | "DESCRIPTION" | "DUE_DATE" | "FULL_LINE" | "HANDLE" | "PERCENT" | "PERCENT_MULTIPLY" | "PRIORITY" | "REVENUE" | "STAGE" | "STATUS" | "TITLE" | "TOTAL_VALUE_MANAGED" | "UPDATED_AT" | "UPDATED_BY" | "VERSION";
|
|
17
|
+
export type AspectFieldType = "ATTACHMENT_ID" | "BOOLEAN" | "DATE" | "DATETIME" | "DECIMAL" | "GROUP_ID" | "HANDLE" | "HTML" | "JSON" | "MULTI_PICKLIST" | "NUMBER" | "PICKLIST" | "TEXT" | "USER_ID";
|
|
18
|
+
export type TableFieldAggregation = "AVERAGE" | "COUNT" | "COUNT_DISTINCT" | "MAX" | "MIN" | "NOT_SET" | "STANDARD_DEVIATION" | "SUM";
|
|
19
|
+
export type TableFieldExpanded = "GROUP_NAME" | "MULTI_PICKLIST_LABEL" | "PICKLIST_LABEL" | "STAGE_NAME" | "USER_EMAIL" | "USER_FIRST_NAME" | "USER_LAST_NAME";
|
|
20
|
+
export type TableJoinType = "FULL" | "INNER" | "LEFT" | "RIGHT";
|
|
21
|
+
export interface TableFieldSnowflakeInput {
|
|
22
|
+
readonly columnName: string;
|
|
23
|
+
readonly type: AspectFieldType;
|
|
24
|
+
}
|
|
25
|
+
export interface TableFieldBigQueryInput {
|
|
26
|
+
readonly columnName: string;
|
|
27
|
+
readonly type: AspectFieldType;
|
|
28
|
+
}
|
|
29
|
+
export interface TableFieldCloudCreateInput {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly snowflake?: TableFieldSnowflakeInput;
|
|
32
|
+
readonly bigQuery?: TableFieldBigQueryInput;
|
|
33
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
34
|
+
}
|
|
35
|
+
export interface TableCalculationCreateInput {
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly text: string;
|
|
38
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
39
|
+
}
|
|
40
|
+
export interface TableFieldAggregatableCreateInput {
|
|
41
|
+
readonly name: string;
|
|
42
|
+
/** Source field id (a TableField on this or a related table). */
|
|
43
|
+
readonly field: string;
|
|
44
|
+
readonly aggregation?: TableFieldAggregation;
|
|
45
|
+
readonly expanded?: TableFieldExpanded;
|
|
46
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Discriminated field input — populate exactly one of `cloud`,
|
|
50
|
+
* `calculation`, or `reference`. The platform validates this at the
|
|
51
|
+
* server boundary; the SDK serializer enforces it locally so the
|
|
52
|
+
* compiler catches misuse.
|
|
53
|
+
*/
|
|
54
|
+
export interface TableFieldCreateInput {
|
|
55
|
+
readonly cloud?: TableFieldCloudCreateInput;
|
|
56
|
+
readonly calculation?: TableCalculationCreateInput;
|
|
57
|
+
readonly reference?: TableFieldAggregatableCreateInput;
|
|
58
|
+
}
|
|
59
|
+
export interface TableFieldCloudUpdateInput {
|
|
60
|
+
readonly name: string;
|
|
61
|
+
readonly snowflake?: TableFieldSnowflakeInput;
|
|
62
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
63
|
+
}
|
|
64
|
+
export interface TableCalculationUpdateInput {
|
|
65
|
+
readonly name?: string;
|
|
66
|
+
readonly text?: string;
|
|
67
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
68
|
+
}
|
|
69
|
+
export interface TableFieldAggregatableUpdateInput {
|
|
70
|
+
readonly name?: string;
|
|
71
|
+
readonly field?: string;
|
|
72
|
+
readonly aggregation?: TableFieldAggregation;
|
|
73
|
+
readonly expanded?: TableFieldExpanded;
|
|
74
|
+
readonly tags?: readonly AspectFieldSemanticTag[];
|
|
75
|
+
}
|
|
76
|
+
export interface TableFieldUpdateInput {
|
|
77
|
+
readonly cloud?: TableFieldCloudUpdateInput;
|
|
78
|
+
readonly calculation?: TableCalculationUpdateInput;
|
|
79
|
+
readonly reference?: TableFieldAggregatableUpdateInput;
|
|
80
|
+
}
|
|
81
|
+
export interface TableFieldIdentityInput {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly clientHandle?: string;
|
|
84
|
+
readonly __typename?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface TableFieldEnvelopeUpdateInput {
|
|
87
|
+
readonly id?: string;
|
|
88
|
+
readonly name?: string;
|
|
89
|
+
readonly fieldType?: AspectFieldType | string;
|
|
90
|
+
readonly tags?: readonly string[];
|
|
91
|
+
readonly semanticTags?: readonly string[];
|
|
92
|
+
readonly field?: TableFieldIdentityInput;
|
|
93
|
+
readonly source?: TableFieldIdentityInput;
|
|
94
|
+
readonly clientHandle?: string;
|
|
95
|
+
readonly isAggregated?: boolean;
|
|
96
|
+
readonly configured?: boolean;
|
|
97
|
+
readonly __typename?: string;
|
|
98
|
+
readonly cloud?: TableFieldCloudUpdateInput;
|
|
99
|
+
readonly calculation?: TableCalculationUpdateInput;
|
|
100
|
+
readonly reference?: TableFieldAggregatableUpdateInput;
|
|
101
|
+
readonly aggregation?: TableFieldAggregation;
|
|
102
|
+
readonly expanded?: TableFieldExpanded;
|
|
103
|
+
}
|
|
104
|
+
export type TableFieldUpdatePayload = TableFieldUpdateInput | TableFieldEnvelopeUpdateInput;
|
|
105
|
+
export interface TableFieldsV3UpdateCreateInput {
|
|
106
|
+
readonly field: TableFieldCreateInput;
|
|
107
|
+
readonly index?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface TableFieldsV3UpdateSetInput {
|
|
110
|
+
readonly id: string;
|
|
111
|
+
readonly field: TableFieldUpdatePayload;
|
|
112
|
+
readonly index?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface TableFieldsV3UpdateDeleteInput {
|
|
115
|
+
readonly id: string;
|
|
116
|
+
}
|
|
117
|
+
export interface TableFieldsV3UpdateInput {
|
|
118
|
+
readonly creates?: readonly TableFieldsV3UpdateCreateInput[];
|
|
119
|
+
readonly updates?: readonly TableFieldsV3UpdateSetInput[];
|
|
120
|
+
readonly deletes?: readonly TableFieldsV3UpdateDeleteInput[];
|
|
121
|
+
}
|
|
122
|
+
export interface TableJoinFieldInput {
|
|
123
|
+
/** Field id on the parent (host) table side of the join. */
|
|
124
|
+
readonly leftFieldId: string;
|
|
125
|
+
/** Field id on the joined-in (source) table side of the join. */
|
|
126
|
+
readonly rightFieldId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface TableJoinInput {
|
|
129
|
+
readonly source: string;
|
|
130
|
+
readonly type: TableJoinType;
|
|
131
|
+
readonly joinOn: readonly TableJoinFieldInput[];
|
|
132
|
+
readonly filter?: unknown;
|
|
133
|
+
}
|
|
134
|
+
export interface TableSnowflakeMappingInput {
|
|
135
|
+
readonly databaseName: string;
|
|
136
|
+
readonly schemaName: string;
|
|
137
|
+
readonly tableName: string;
|
|
138
|
+
}
|
|
139
|
+
export interface TableBigQueryMappingInput {
|
|
140
|
+
readonly datasetName: string;
|
|
141
|
+
readonly tableName: string;
|
|
142
|
+
}
|
|
143
|
+
export interface TableDatabricksMappingInput {
|
|
144
|
+
readonly databaseName: string;
|
|
145
|
+
readonly schemaName: string;
|
|
146
|
+
readonly tableName: string;
|
|
147
|
+
}
|
|
148
|
+
export interface TableCloudMappingInput {
|
|
149
|
+
readonly cloudLinkId: string;
|
|
150
|
+
readonly snowflakeMapping?: TableSnowflakeMappingInput;
|
|
151
|
+
readonly bigQueryMapping?: TableBigQueryMappingInput;
|
|
152
|
+
readonly databricksMapping?: TableDatabricksMappingInput;
|
|
153
|
+
}
|
|
154
|
+
export interface TableDataViewSnowflakeCreateInput {
|
|
155
|
+
readonly databaseName: string;
|
|
156
|
+
readonly schemaName: string;
|
|
157
|
+
readonly name: string;
|
|
158
|
+
}
|
|
159
|
+
export interface TableDataViewCreateInput {
|
|
160
|
+
readonly snowflake?: TableDataViewSnowflakeCreateInput;
|
|
161
|
+
}
|
|
162
|
+
export interface TableDataViewSnowflakeUpdateInput {
|
|
163
|
+
readonly databaseName?: string;
|
|
164
|
+
readonly schemaName?: string;
|
|
165
|
+
readonly name?: string;
|
|
166
|
+
}
|
|
167
|
+
export interface TableDataViewUpdateInput {
|
|
168
|
+
readonly snowflake?: TableDataViewSnowflakeUpdateInput;
|
|
169
|
+
}
|
|
170
|
+
/** Body for creating a table. */
|
|
171
|
+
export interface TableCreateRequest {
|
|
172
|
+
readonly name: string;
|
|
173
|
+
/** Record-handle prefix (e.g. "TKT"). */
|
|
174
|
+
readonly handle: string;
|
|
175
|
+
/** Source aspect (App / Element) id, or another Table id. */
|
|
176
|
+
readonly source: string;
|
|
177
|
+
/** AspectCategory id this table files under. */
|
|
178
|
+
readonly categoryId: string;
|
|
179
|
+
readonly fields: readonly TableFieldCreateInput[];
|
|
180
|
+
readonly description?: string;
|
|
181
|
+
readonly icon?: string;
|
|
182
|
+
readonly color?: string;
|
|
183
|
+
readonly cloudMapping?: TableCloudMappingInput;
|
|
184
|
+
readonly dataView?: TableDataViewCreateInput;
|
|
185
|
+
readonly join?: TableJoinInput;
|
|
186
|
+
readonly joins?: readonly TableJoinInput[];
|
|
187
|
+
/** Opaque Filter JSON applied to the table results. */
|
|
188
|
+
readonly filter?: unknown;
|
|
189
|
+
/** Opaque Limit JSON. */
|
|
190
|
+
readonly limit?: unknown;
|
|
191
|
+
/** Opaque Sort JSON. */
|
|
192
|
+
readonly orderBy?: unknown;
|
|
193
|
+
}
|
|
194
|
+
/** Body for updating a table. */
|
|
195
|
+
export interface TableUpdateRequest {
|
|
196
|
+
readonly name?: string;
|
|
197
|
+
readonly source?: string;
|
|
198
|
+
readonly categoryId?: string;
|
|
199
|
+
readonly description?: string;
|
|
200
|
+
readonly icon?: string;
|
|
201
|
+
readonly color?: string;
|
|
202
|
+
readonly fields?: TableFieldsV3UpdateInput;
|
|
203
|
+
readonly cloudMapping?: TableCloudMappingInput;
|
|
204
|
+
readonly dataView?: TableDataViewUpdateInput;
|
|
205
|
+
readonly filter?: unknown;
|
|
206
|
+
readonly limit?: unknown;
|
|
207
|
+
readonly orderBy?: unknown;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Response field shape — narrow union that mirrors what the platform
|
|
211
|
+
* surfaces today on `Table.fields[]`. Each variant carries the same
|
|
212
|
+
* identity surface (`id`, `name`, `fieldType`, `tags`,
|
|
213
|
+
* `semanticTags`); per-variant slots round-trip extra metadata.
|
|
214
|
+
*/
|
|
215
|
+
export interface TableFieldWire {
|
|
216
|
+
readonly id: string;
|
|
217
|
+
readonly name: string;
|
|
218
|
+
readonly fieldType: AspectFieldType;
|
|
219
|
+
readonly configured?: boolean;
|
|
220
|
+
readonly isAggregated?: boolean;
|
|
221
|
+
readonly tags?: readonly string[];
|
|
222
|
+
readonly semanticTags?: readonly AspectFieldSemanticTag[];
|
|
223
|
+
/** Discriminator surfaced by the platform on each variant. */
|
|
224
|
+
readonly __typename?: string;
|
|
225
|
+
/** Extra metadata passes through opaquely. */
|
|
226
|
+
readonly [key: string]: unknown;
|
|
227
|
+
}
|
|
228
|
+
export interface TableJoinWire {
|
|
229
|
+
readonly id: string;
|
|
230
|
+
readonly type?: TableJoinType;
|
|
231
|
+
readonly [key: string]: unknown;
|
|
232
|
+
}
|
|
233
|
+
/** Trimmed Table response. The platform returns more; we project to id + the bits the SDK needs. */
|
|
234
|
+
export interface TableWire {
|
|
235
|
+
readonly id: string;
|
|
236
|
+
readonly name: string;
|
|
237
|
+
readonly handle: string;
|
|
238
|
+
readonly type?: string;
|
|
239
|
+
readonly configured?: boolean;
|
|
240
|
+
readonly editable?: boolean;
|
|
241
|
+
readonly cloudManaged?: boolean;
|
|
242
|
+
readonly fields?: readonly TableFieldWire[];
|
|
243
|
+
readonly joins?: readonly TableJoinWire[];
|
|
244
|
+
readonly __typename?: string;
|
|
245
|
+
readonly [key: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Normalized deploy response. Matches the `DeployResponse` contract
|
|
249
|
+
* (a top-level `id`) so the late-binding registry and per-process
|
|
250
|
+
* stamp WeakMap key uniformly across entity kinds.
|
|
251
|
+
*/
|
|
252
|
+
export interface DeployedTable extends DeployResponse {
|
|
253
|
+
readonly id: string;
|
|
254
|
+
readonly name?: string;
|
|
255
|
+
readonly handle?: string;
|
|
256
|
+
readonly __typename?: string;
|
|
257
|
+
}
|
|
258
|
+
/** Trimmed page shape for `GET /tables`. */
|
|
259
|
+
export interface TablePagedList {
|
|
260
|
+
readonly items: readonly TableWire[];
|
|
261
|
+
readonly paging?: {
|
|
262
|
+
readonly has_next_page?: boolean;
|
|
263
|
+
readonly end_cursor?: string;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire-shape types for the platform's table endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the platform table wire schemas:
|
|
5
|
+
* - TableCreateRequest
|
|
6
|
+
* - TableUpdateRequest
|
|
7
|
+
* - Table
|
|
8
|
+
* - TablePagedList
|
|
9
|
+
*
|
|
10
|
+
* The shapes here are the literal JSON payload — the serializer in
|
|
11
|
+
* `src/tables/serializer/` resolves EDK refs (App / Element /
|
|
12
|
+
* AspectCategoryRef / CloudLink / built TableField factory output)
|
|
13
|
+
* to id-strings and discriminated objects the platform request expects.
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error types surfaced by the EDK SDK.
|
|
3
|
+
*
|
|
4
|
+
* Five classes, distinguished by *what* went wrong:
|
|
5
|
+
*
|
|
6
|
+
* `DeployConfigError` — misconfiguration detected before any
|
|
7
|
+
* network call (missing client id/secret,
|
|
8
|
+
* bad URL, etc.).
|
|
9
|
+
* `EdkValidationError` — author/SDK invariant violation: malformed
|
|
10
|
+
* entity source, unknown parameter, missing
|
|
11
|
+
* required field, etc. Detected at
|
|
12
|
+
* build/serialize time before any HTTP
|
|
13
|
+
* call. Distinct from `DeployError` so
|
|
14
|
+
* callers can branch on type.
|
|
15
|
+
* `DeployError` — the request reached a service and failed;
|
|
16
|
+
* carries the status, response body, and
|
|
17
|
+
* the original AxiosError as `cause` so an
|
|
18
|
+
* agent catching it can diagnose without
|
|
19
|
+
* re-reading the transcript.
|
|
20
|
+
* `DeployUpdateUnsupportedError` — the entity's hash changed (so an update
|
|
21
|
+
* is required) but the backend has no PUT
|
|
22
|
+
* path for this entity kind yet (skills,
|
|
23
|
+
* flows). Carries the recorded id so the
|
|
24
|
+
* operator can locate and delete it on the
|
|
25
|
+
* platform, then re-run.
|
|
26
|
+
* `DeployStateCorruptError` — `.edk-state/<appId>.json` exists but does
|
|
27
|
+
* not parse to the supported schema. The
|
|
28
|
+
* SDK never silently rebuilds — the
|
|
29
|
+
* operator must run the import CLI to
|
|
30
|
+
* regenerate state from the server.
|
|
31
|
+
*
|
|
32
|
+
* **Convention for new throws:** anywhere SDK code throws because of an
|
|
33
|
+
* agent's invalid input or a config-time invariant violation, throw
|
|
34
|
+
* `EdkValidationError` (not plain `Error`/`TypeError`). This keeps
|
|
35
|
+
* `.message` consistently surfaced by SDK error renderers / agent catch
|
|
36
|
+
* handlers, and lets callers branch on `instanceof EdkValidationError`
|
|
37
|
+
* vs `DeployError` if they want different recovery paths. Reserve plain
|
|
38
|
+
* `Error` for genuinely-internal invariants the agent can't fix
|
|
39
|
+
* (cycle detection, "unreachable" states, etc.).
|
|
40
|
+
*/
|
|
41
|
+
export declare class DeployConfigError extends Error {
|
|
42
|
+
constructor(message: string);
|
|
43
|
+
}
|
|
44
|
+
export declare class EdkValidationError extends Error {
|
|
45
|
+
constructor(message: string, options?: {
|
|
46
|
+
cause?: unknown;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export declare class DeployError extends Error {
|
|
50
|
+
readonly status: number;
|
|
51
|
+
readonly body: unknown;
|
|
52
|
+
constructor(message: string, status: number, body: unknown, options?: {
|
|
53
|
+
cause?: unknown;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Thrown by `.deploy()` when an entity's source hash differs from the
|
|
58
|
+
* recorded state hash and the backend has no PUT path for the entity's
|
|
59
|
+
* kind. Skills (hydra) and flows (wolverine) currently sit here.
|
|
60
|
+
*
|
|
61
|
+
* Carries the recorded `id` (e.g. `skillId`, `flowId`) so the operator
|
|
62
|
+
* can find the entity on the platform, delete it, and re-run. Once the
|
|
63
|
+
* backend ships PUT for the kind, the EDK side wires a `doUpdate`
|
|
64
|
+
* closure and this error stops firing.
|
|
65
|
+
*/
|
|
66
|
+
export declare class DeployUpdateUnsupportedError extends Error {
|
|
67
|
+
readonly entityKind: string;
|
|
68
|
+
readonly entityName: string;
|
|
69
|
+
readonly recordedId: string;
|
|
70
|
+
constructor(entityKind: string, entityName: string, recordedId: string);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Thrown when `.edk-state/<appId>.json` exists but does not parse to
|
|
74
|
+
* the supported schema (missing fields, wrong version, malformed JSON).
|
|
75
|
+
*
|
|
76
|
+
* The SDK refuses to overwrite or "silently rebuild" the file because
|
|
77
|
+
* that would mask the underlying problem — e.g. someone hand-edited
|
|
78
|
+
* the file, a half-written file from a crashed deploy, or a downgrade
|
|
79
|
+
* to an older SDK that wrote an incompatible schema.
|
|
80
|
+
*
|
|
81
|
+
* Recovery: run `edk generate --aspect-id <UUID>`
|
|
82
|
+
* to regenerate state from server, or delete the file and re-run if the
|
|
83
|
+
* cohort is empty on the platform.
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeployStateCorruptError extends Error {
|
|
86
|
+
readonly statePath: string;
|
|
87
|
+
constructor(statePath: string, detail: string, options?: {
|
|
88
|
+
cause?: unknown;
|
|
89
|
+
});
|
|
90
|
+
}
|